]> sourceware.org Git - lvm2.git/blob - configure
Rewrite clvmd configuration code.
[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 CLOGD
692 CLVMD
693 CLUSTER
694 CLDWHOLEARCHIVE
695 CLDNOWHOLEARCHIVE
696 CLDFLAGS
697 BUILD_DMEVENTD
698 APPLIB
699 MODPROBE_CMD
700 MSGFMT
701 LVM2CMD_LIB
702 LVM2APP_LIB
703 GENHTML
704 LCOV
705 DLM_LIBS
706 DLM_CFLAGS
707 CPG_LIBS
708 CPG_CFLAGS
709 CONFDB_LIBS
710 CONFDB_CFLAGS
711 SALCK_LIBS
712 SALCK_CFLAGS
713 QUORUM_LIBS
714 QUORUM_CFLAGS
715 COROSYNC_LIBS
716 COROSYNC_CFLAGS
717 CMAN_LIBS
718 CMAN_CFLAGS
719 GULM_LIBS
720 GULM_CFLAGS
721 CCS_LIBS
722 CCS_CFLAGS
723 PKGCONFIGINIT_LIBS
724 PKGCONFIGINIT_CFLAGS
725 PKG_CONFIG
726 POW_LIB
727 LIBOBJS
728 ALLOCA
729 CSCOPE_CMD
730 CFLOW_CMD
731 RANLIB
732 MKDIR_P
733 SET_MAKE
734 LN_S
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 EGREP
739 GREP
740 CPP
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 AWK
749 SED
750 target_os
751 target_vendor
752 target_cpu
753 target
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_static_link
803 with_user
804 with_group
805 with_device_uid
806 with_device_gid
807 with_device_mode
808 enable_lvm1_fallback
809 with_lvm1
810 with_pool
811 with_cluster
812 with_snapshots
813 with_mirrors
814 enable_readline
815 enable_realtime
816 with_clvmd
817 enable_clogd
818 enable_debug
819 with_optimisation
820 enable_profiling
821 enable_devmapper
822 enable_udev_sync
823 enable_udev_rules
824 enable_compat
825 enable_ioctl
826 enable_o_direct
827 enable_applib
828 enable_cmdlib
829 enable_pkgconfig
830 enable_fsadm
831 enable_dmeventd
832 enable_selinux
833 enable_nls
834 with_localedir
835 with_confdir
836 with_staticdir
837 with_usrlibdir
838 with_usrsbindir
839 with_udev_prefix
840 with_udevdir
841 with_dmeventd_pidfile
842 with_dmeventd_path
843 with_interface
844 '
845 ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CPP
854 PKG_CONFIG
855 PKGCONFIGINIT_CFLAGS
856 PKGCONFIGINIT_LIBS
857 CCS_CFLAGS
858 CCS_LIBS
859 GULM_CFLAGS
860 GULM_LIBS
861 CMAN_CFLAGS
862 CMAN_LIBS
863 COROSYNC_CFLAGS
864 COROSYNC_LIBS
865 QUORUM_CFLAGS
866 QUORUM_LIBS
867 SALCK_CFLAGS
868 SALCK_LIBS
869 CONFDB_CFLAGS
870 CONFDB_LIBS
871 CPG_CFLAGS
872 CPG_LIBS
873 DLM_CFLAGS
874 DLM_LIBS'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
971
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
984 { (exit 1); exit 1; }; }
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1042
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1047
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1077
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1151
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1298 { (exit 1); exit 1; }; } ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1308 do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1322 { (exit 1); exit 1; }; }
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1353 { (exit 1); exit 1; }; }
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1356 { (exit 1); exit 1; }; }
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1389 fi
1390 else
1391 ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1396 { (exit 1); exit 1; }; }
1397 fi
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1401 { (exit 1); exit 1; }; }
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures this package to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1481
1482 cat <<\_ACEOF
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 --target=TARGET configure for building compilers for TARGET [HOST]
1488 _ACEOF
1489 fi
1490
1491 if test -n "$ac_init_help"; then
1492
1493 cat <<\_ACEOF
1494
1495 Optional Features:
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-static_link Use this to link the tools to their libraries
1500 statically. Default is dynamic linking
1501 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1502 device-mapper is missing from the kernel
1503 --disable-readline Disable readline support
1504 --disable-realtime Disable realtime clock support
1505 --enable-clogd Enable the cluster log daemon
1506 --enable-debug Enable debugging
1507 --enable-profiling Gather gcov profiling data
1508 --disable-devmapper Disable LVM2 device-mapper interaction
1509 --enable-udev_sync Enable synchronisation with udev processing
1510 --enable-udev_rules Install rule files needed for udev synchronisation
1511 --enable-compat Enable support for old device-mapper versions
1512 --disable-driver Disable calls to device-mapper in the kernel
1513 --disable-o_direct Disable O_DIRECT
1514 --enable-applib Build application library
1515 --enable-cmdlib Build shared command library
1516 --enable-pkgconfig Install pkgconfig support
1517 --enable-fsadm Enable fsadm
1518 --enable-dmeventd Enable the device-mapper event daemon
1519 --disable-selinux Disable selinux support
1520 --enable-nls Enable Native Language Support
1521
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-user=USER Set the owner of installed files [USER=root]
1526 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1527 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1528 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1529 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1530 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1531 TYPE=internal
1532 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1533 TYPE=internal
1534 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1535 TYPE=internal
1536 --with-snapshots=TYPE Snapshot support: internal/shared/none
1537 TYPE=internal
1538 --with-mirrors=TYPE Mirror support: internal/shared/none
1539 TYPE=internal
1540 --with-clvmd=TYPE Build cluster LVM Daemon.
1541 The following locking combinations are valid:
1542 * cman,gulm (RHEL4 or equivalent)
1543 * cman (RHEL5 or equivalent)
1544 * cman,corosync,openais (or selection of them)
1545 * all (autodetect)
1546 * none (disable build)
1547 TYPE=none
1548 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1549 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1550 --with-confdir=DIR Configuration files in DIR [/etc]
1551 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1552 --with-usrlibdir=DIR
1553 --with-usrsbindir=DIR
1554 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1555 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1556 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1557 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1558 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1559
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CPP C preprocessor
1569 PKG_CONFIG path to pkg-config utility
1570 PKGCONFIGINIT_CFLAGS
1571 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1572 PKGCONFIGINIT_LIBS
1573 linker flags for PKGCONFIGINIT, overriding pkg-config
1574 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1575 CCS_LIBS linker flags for CCS, overriding pkg-config
1576 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1577 GULM_LIBS linker flags for GULM, overriding pkg-config
1578 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1579 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1580 COROSYNC_CFLAGS
1581 C compiler flags for COROSYNC, overriding pkg-config
1582 COROSYNC_LIBS
1583 linker flags for COROSYNC, overriding pkg-config
1584 QUORUM_CFLAGS
1585 C compiler flags for QUORUM, overriding pkg-config
1586 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1587 SALCK_CFLAGS
1588 C compiler flags for SALCK, overriding pkg-config
1589 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1590 CONFDB_CFLAGS
1591 C compiler flags for CONFDB, overriding pkg-config
1592 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1593 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1594 CPG_LIBS linker flags for CPG, overriding pkg-config
1595 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1596 DLM_LIBS linker flags for DLM, overriding pkg-config
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 configure
1664 generated by GNU Autoconf 2.63
1665
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1676
1677 It was created by $as_me, which was
1678 generated by GNU Autoconf 2.63. Invocation command line was
1679
1680 $ $0 $@
1681
1682 _ACEOF
1683 exec 5>>config.log
1684 {
1685 cat <<_ASUNAME
1686 ## --------- ##
1687 ## Platform. ##
1688 ## --------- ##
1689
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1695
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1698
1699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706
1707 _ASUNAME
1708
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 $as_echo "PATH: $as_dir"
1715 done
1716 IFS=$as_save_IFS
1717
1718 } >&5
1719
1720 cat >&5 <<_ACEOF
1721
1722
1723 ## ----------- ##
1724 ## Core tests. ##
1725 ## ----------- ##
1726
1727 _ACEOF
1728
1729
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_configure_args=
1736 ac_configure_args0=
1737 ac_configure_args1=
1738 ac_must_keep_next=false
1739 for ac_pass in 1 2
1740 do
1741 for ac_arg
1742 do
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
1748 *\'*)
1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 case $ac_pass in
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1753 2)
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
1756 ac_must_keep_next=false # Got value, back to normal.
1757 else
1758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1766 ;;
1767 -* ) ac_must_keep_next=true ;;
1768 esac
1769 fi
1770 ac_configure_args="$ac_configure_args '$ac_arg'"
1771 ;;
1772 esac
1773 done
1774 done
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1777
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log. We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1785 {
1786 echo
1787
1788 cat <<\_ASBOX
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1792 _ASBOX
1793 echo
1794 # The following way of writing the cache mishandles newlines in values,
1795 (
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
1801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
1811 (set) 2>&1 |
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1814 sed -n \
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
1818 *)
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820 ;;
1821 esac |
1822 sort
1823 )
1824 echo
1825
1826 cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 $as_echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 $as_echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1858 fi
1859
1860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866 echo
1867 cat confdefs.h
1868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 $as_echo "$as_me: caught signal $ac_signal"
1872 $as_echo "$as_me: exit $exit_status"
1873 } >&5
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 exit $exit_status
1877 ' 0
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1882
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1885
1886 # Predefined preprocessor variables.
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1911
1912
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer an explicitly selected file to automatically selected ones.
1915 ac_site_file1=NONE
1916 ac_site_file2=NONE
1917 if test -n "$CONFIG_SITE"; then
1918 ac_site_file1=$CONFIG_SITE
1919 elif test "x$prefix" != xNONE; then
1920 ac_site_file1=$prefix/share/config.site
1921 ac_site_file2=$prefix/etc/config.site
1922 else
1923 ac_site_file1=$ac_default_prefix/share/config.site
1924 ac_site_file2=$ac_default_prefix/etc/config.site
1925 fi
1926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1927 do
1928 test "x$ac_site_file" = xNONE && continue
1929 if test -r "$ac_site_file"; then
1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1934 fi
1935 done
1936
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 $as_echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1946 esac
1947 fi
1948 else
1949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 $as_echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1952 fi
1953
1954 # Check that the precious variables saved in the cache have kept the same
1955 # value.
1956 ac_cache_corrupted=false
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1963 set,)
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,set)
1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,);;
1972 *)
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 # differences in whitespace do not lead to failure.
1975 ac_old_val_w=`echo x $ac_old_val`
1976 ac_new_val_w=`echo x $ac_new_val`
1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980 ac_cache_corrupted=:
1981 else
1982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984 eval $ac_var=\$ac_old_val
1985 fi
1986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1987 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1990 fi;;
1991 esac
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1994 case $ac_new_val in
1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 *) ac_arg=$ac_var=$ac_new_val ;;
1997 esac
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 esac
2002 fi
2003 done
2004 if $ac_cache_corrupted; then
2005 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2010 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2011 { (exit 1); exit 1; }; }
2012 fi
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
2038 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2039
2040
2041 ################################################################################
2042 ac_aux_dir=
2043 for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
2048 elif test -f "$ac_dir/install.sh"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
2052 elif test -f "$ac_dir/shtool"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057 done
2058 if test -z "$ac_aux_dir"; then
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
2072
2073
2074 ################################################################################
2075 # Make sure we can run config.sub.
2076 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2077 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2078 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2079 { (exit 1); exit 1; }; }
2080
2081 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2082 $as_echo_n "checking build system type... " >&6; }
2083 if test "${ac_cv_build+set}" = set; then
2084 $as_echo_n "(cached) " >&6
2085 else
2086 ac_build_alias=$build_alias
2087 test "x$ac_build_alias" = x &&
2088 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2089 test "x$ac_build_alias" = x &&
2090 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2091 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2092 { (exit 1); exit 1; }; }
2093 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2094 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2095 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2096 { (exit 1); exit 1; }; }
2097
2098 fi
2099 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2100 $as_echo "$ac_cv_build" >&6; }
2101 case $ac_cv_build in
2102 *-*-*) ;;
2103 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2104 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2105 { (exit 1); exit 1; }; };;
2106 esac
2107 build=$ac_cv_build
2108 ac_save_IFS=$IFS; IFS='-'
2109 set x $ac_cv_build
2110 shift
2111 build_cpu=$1
2112 build_vendor=$2
2113 shift; shift
2114 # Remember, the first character of IFS is used to create $*,
2115 # except with old shells:
2116 build_os=$*
2117 IFS=$ac_save_IFS
2118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2119
2120
2121 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2122 $as_echo_n "checking host system type... " >&6; }
2123 if test "${ac_cv_host+set}" = set; then
2124 $as_echo_n "(cached) " >&6
2125 else
2126 if test "x$host_alias" = x; then
2127 ac_cv_host=$ac_cv_build
2128 else
2129 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2130 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2131 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2132 { (exit 1); exit 1; }; }
2133 fi
2134
2135 fi
2136 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2137 $as_echo "$ac_cv_host" >&6; }
2138 case $ac_cv_host in
2139 *-*-*) ;;
2140 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2141 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2142 { (exit 1); exit 1; }; };;
2143 esac
2144 host=$ac_cv_host
2145 ac_save_IFS=$IFS; IFS='-'
2146 set x $ac_cv_host
2147 shift
2148 host_cpu=$1
2149 host_vendor=$2
2150 shift; shift
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2153 host_os=$*
2154 IFS=$ac_save_IFS
2155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2156
2157
2158 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2159 $as_echo_n "checking target system type... " >&6; }
2160 if test "${ac_cv_target+set}" = set; then
2161 $as_echo_n "(cached) " >&6
2162 else
2163 if test "x$target_alias" = x; then
2164 ac_cv_target=$ac_cv_host
2165 else
2166 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2167 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2168 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2170 fi
2171
2172 fi
2173 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2174 $as_echo "$ac_cv_target" >&6; }
2175 case $ac_cv_target in
2176 *-*-*) ;;
2177 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2178 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2179 { (exit 1); exit 1; }; };;
2180 esac
2181 target=$ac_cv_target
2182 ac_save_IFS=$IFS; IFS='-'
2183 set x $ac_cv_target
2184 shift
2185 target_cpu=$1
2186 target_vendor=$2
2187 shift; shift
2188 # Remember, the first character of IFS is used to create $*,
2189 # except with old shells:
2190 target_os=$*
2191 IFS=$ac_save_IFS
2192 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2193
2194
2195 # The aliases save the names the user supplied, while $host etc.
2196 # will get canonicalized.
2197 test -n "$target_alias" &&
2198 test "$program_prefix$program_suffix$program_transform_name" = \
2199 NONENONEs,x,x, &&
2200 program_prefix=${target_alias}-
2201
2202 case "$host_os" in
2203 linux*)
2204 CFLAGS="$CFLAGS"
2205 COPTIMISE_FLAG="-O2"
2206 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2207 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2208 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2209 LDDEPS="$LDDEPS .export.sym"
2210 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2211 LIB_SUFFIX=so
2212 DEVMAPPER=yes
2213 ODIRECT=yes
2214 DM_IOCTLS=yes
2215 SELINUX=yes
2216 REALTIME=yes
2217 CLUSTER=internal
2218 FSADM=yes
2219 ;;
2220 darwin*)
2221 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2222 COPTIMISE_FLAG="-O2"
2223 CLDFLAGS="$CLDFLAGS"
2224 CLDWHOLEARCHIVE="-all_load"
2225 CLDNOWHOLEARCHIVE=
2226 LIB_SUFFIX=dylib
2227 DEVMAPPER=yes
2228 ODIRECT=no
2229 DM_IOCTLS=no
2230 SELINUX=no
2231 REALTIME=no
2232 CLUSTER=none
2233 FSADM=no
2234 ;;
2235 esac
2236
2237 ################################################################################
2238 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2239 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2240 if test "${ac_cv_path_SED+set}" = set; then
2241 $as_echo_n "(cached) " >&6
2242 else
2243 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2244 for ac_i in 1 2 3 4 5 6 7; do
2245 ac_script="$ac_script$as_nl$ac_script"
2246 done
2247 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2248 $as_unset ac_script || ac_script=
2249 if test -z "$SED"; then
2250 ac_path_SED_found=false
2251 # Loop through the user's path and test for each of PROGNAME-LIST
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_prog in sed gsed; do
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2260 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2261 # Check for GNU ac_path_SED and select it if it is found.
2262 # Check for GNU $ac_path_SED
2263 case `"$ac_path_SED" --version 2>&1` in
2264 *GNU*)
2265 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2266 *)
2267 ac_count=0
2268 $as_echo_n 0123456789 >"conftest.in"
2269 while :
2270 do
2271 cat "conftest.in" "conftest.in" >"conftest.tmp"
2272 mv "conftest.tmp" "conftest.in"
2273 cp "conftest.in" "conftest.nl"
2274 $as_echo '' >> "conftest.nl"
2275 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2277 ac_count=`expr $ac_count + 1`
2278 if test $ac_count -gt ${ac_path_SED_max-0}; then
2279 # Best one so far, save it but keep looking for a better one
2280 ac_cv_path_SED="$ac_path_SED"
2281 ac_path_SED_max=$ac_count
2282 fi
2283 # 10*(2^10) chars as input seems more than enough
2284 test $ac_count -gt 10 && break
2285 done
2286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2287 esac
2288
2289 $ac_path_SED_found && break 3
2290 done
2291 done
2292 done
2293 IFS=$as_save_IFS
2294 if test -z "$ac_cv_path_SED"; then
2295 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2296 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2297 { (exit 1); exit 1; }; }
2298 fi
2299 else
2300 ac_cv_path_SED=$SED
2301 fi
2302
2303 fi
2304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2305 $as_echo "$ac_cv_path_SED" >&6; }
2306 SED="$ac_cv_path_SED"
2307 rm -f conftest.sed
2308
2309 for ac_prog in gawk mawk nawk awk
2310 do
2311 # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy $ac_prog; ac_word=$2
2313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if test "${ac_cv_prog_AWK+set}" = set; then
2316 $as_echo_n "(cached) " >&6
2317 else
2318 if test -n "$AWK"; then
2319 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_AWK="$ac_prog"
2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2331 fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336 fi
2337 fi
2338 AWK=$ac_cv_prog_AWK
2339 if test -n "$AWK"; then
2340 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2341 $as_echo "$AWK" >&6; }
2342 else
2343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344 $as_echo "no" >&6; }
2345 fi
2346
2347
2348 test -n "$AWK" && break
2349 done
2350
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2387 $as_echo "$CC" >&6; }
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2392
2393
2394 fi
2395 if test -z "$ac_cv_prog_CC"; then
2396 ac_ct_CC=$CC
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_CC="gcc"
2415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427 $as_echo "$ac_ct_CC" >&6; }
2428 else
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2431 fi
2432
2433 if test "x$ac_ct_CC" = x; then
2434 CC=""
2435 else
2436 case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442 CC=$ac_ct_CC
2443 fi
2444 else
2445 CC="$ac_cv_prog_CC"
2446 fi
2447
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_CC="${ac_tool_prefix}cc"
2468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 CC=$ac_cv_prog_CC
2478 if test -n "$CC"; then
2479 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2480 $as_echo "$CC" >&6; }
2481 else
2482 { $as_echo "$as_me:$LINENO: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 fi
2488 fi
2489 if test -z "$CC"; then
2490 # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 ac_prog_rejected=no
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2510 continue
2511 fi
2512 ac_cv_prog_CC="cc"
2513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 if test $ac_prog_rejected = yes; then
2521 # We found a bogon in the path, so make sure we never use it.
2522 set dummy $ac_cv_prog_CC
2523 shift
2524 if test $# != 0; then
2525 # We chose a different compiler from the bogus one.
2526 # However, it has the same basename, so the bogon will be chosen
2527 # first if we set CC to just the basename; use the full file name.
2528 shift
2529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530 fi
2531 fi
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2537 $as_echo "$CC" >&6; }
2538 else
2539 { $as_echo "$as_me:$LINENO: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543
2544 fi
2545 if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
2547 for ac_prog in cl.exe
2548 do
2549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2580 else
2581 { $as_echo "$as_me:$LINENO: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 test -n "$CC" && break
2587 done
2588 fi
2589 if test -z "$CC"; then
2590 ac_ct_CC=$CC
2591 for ac_prog in cl.exe
2592 do
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC="$ac_prog"
2611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 $as_echo "$ac_ct_CC" >&6; }
2624 else
2625 { $as_echo "$as_me:$LINENO: result: no" >&5
2626 $as_echo "no" >&6; }
2627 fi
2628
2629
2630 test -n "$ac_ct_CC" && break
2631 done
2632
2633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642 CC=$ac_ct_CC
2643 fi
2644 fi
2645
2646 fi
2647
2648
2649 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2652 See \`config.log' for more details." >&5
2653 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }; }
2656
2657 # Provide some information about the compiler.
2658 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2659 set X $ac_compile
2660 ac_compiler=$2
2661 { (ac_try="$ac_compiler --version >&5"
2662 case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665 esac
2666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2667 $as_echo "$ac_try_echo") >&5
2668 (eval "$ac_compiler --version >&5") 2>&5
2669 ac_status=$?
2670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2673 case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2678 $as_echo "$ac_try_echo") >&5
2679 (eval "$ac_compiler -v >&5") 2>&5
2680 ac_status=$?
2681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (ac_try="$ac_compiler -V >&5"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689 $as_echo "$ac_try_echo") >&5
2690 (eval "$ac_compiler -V >&5") 2>&5
2691 ac_status=$?
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694
2695 cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2701
2702 int
2703 main ()
2704 {
2705
2706 ;
2707 return 0;
2708 }
2709 _ACEOF
2710 ac_clean_files_save=$ac_clean_files
2711 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2712 # Try to create an executable without -o first, disregard a.out.
2713 # It will help us diagnose broken compilers, and finding out an intuition
2714 # of exeext.
2715 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2716 $as_echo_n "checking for C compiler default output file name... " >&6; }
2717 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2718
2719 # The possible output files:
2720 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2721
2722 ac_rmfiles=
2723 for ac_file in $ac_files
2724 do
2725 case $ac_file in
2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2728 esac
2729 done
2730 rm -f $ac_rmfiles
2731
2732 if { (ac_try="$ac_link_default"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738 $as_echo "$ac_try_echo") >&5
2739 (eval "$ac_link_default") 2>&5
2740 ac_status=$?
2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; then
2743 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2744 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2745 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2746 # so that the user can short-circuit this test for compilers unknown to
2747 # Autoconf.
2748 for ac_file in $ac_files ''
2749 do
2750 test -f "$ac_file" || continue
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2753 ;;
2754 [ab].out )
2755 # We found the default executable, but exeext='' is most
2756 # certainly right.
2757 break;;
2758 *.* )
2759 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2760 then :; else
2761 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2762 fi
2763 # We set ac_cv_exeext here because the later test for it is not
2764 # safe: cross compilers may not add the suffix if given an `-o'
2765 # argument, so we may need to know it at that point already.
2766 # Even if this section looks crufty: it has the advantage of
2767 # actually working.
2768 break;;
2769 * )
2770 break;;
2771 esac
2772 done
2773 test "$ac_cv_exeext" = no && ac_cv_exeext=
2774
2775 else
2776 ac_file=''
2777 fi
2778
2779 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2780 $as_echo "$ac_file" >&6; }
2781 if test -z "$ac_file"; then
2782 $as_echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 $as_echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791 { (exit 77); exit 77; }; }; }
2792 fi
2793
2794 ac_exeext=$ac_cv_exeext
2795
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 $as_echo_n "checking whether the C compiler works... " >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803 if { ac_try='./$ac_file'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807 esac
2808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809 $as_echo "$ac_try_echo") >&5
2810 (eval "$ac_try") 2>&5
2811 ac_status=$?
2812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 cross_compiling=no
2815 else
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
2819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 $as_echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }; }
2828 fi
2829 fi
2830 fi
2831 { $as_echo "$as_me:$LINENO: result: yes" >&5
2832 $as_echo "yes" >&6; }
2833
2834 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 $as_echo_n "checking whether we are cross compiling... " >&6; }
2840 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 $as_echo "$cross_compiling" >&6; }
2842
2843 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 $as_echo_n "checking for suffix of executables... " >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849 esac
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852 (eval "$ac_link") 2>&5
2853 ac_status=$?
2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2858 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 # `rm'.
2860 for ac_file in conftest.exe conftest conftest.*; do
2861 test -f "$ac_file" || continue
2862 case $ac_file in
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865 break;;
2866 * ) break;;
2867 esac
2868 done
2869 else
2870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }; }
2877 fi
2878
2879 rm -f conftest$ac_cv_exeext
2880 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 $as_echo "$ac_cv_exeext" >&6; }
2882
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2885 ac_exeext=$EXEEXT
2886 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 $as_echo_n "checking for suffix of object files... " >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889 $as_echo_n "(cached) " >&6
2890 else
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897
2898 int
2899 main ()
2900 {
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2913 $as_echo "$ac_try_echo") >&5
2914 (eval "$ac_compile") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; then
2918 for ac_file in conftest.o conftest.obj conftest.*; do
2919 test -f "$ac_file" || continue;
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 break;;
2924 esac
2925 done
2926 else
2927 $as_echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&5
2934 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2935 See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }; }
2937 fi
2938
2939 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940 fi
2941 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2942 $as_echo "$ac_cv_objext" >&6; }
2943 OBJEXT=$ac_cv_objext
2944 ac_objext=$OBJEXT
2945 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2946 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2948 $as_echo_n "(cached) " >&6
2949 else
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956
2957 int
2958 main ()
2959 {
2960 #ifndef __GNUC__
2961 choke me
2962 #endif
2963
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2975 $as_echo "$ac_try_echo") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2986 ac_compiler_gnu=yes
2987 else
2988 $as_echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_compiler_gnu=no
2992 fi
2993
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2996
2997 fi
2998 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2999 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3000 if test $ac_compiler_gnu = yes; then
3001 GCC=yes
3002 else
3003 GCC=
3004 fi
3005 ac_test_CFLAGS=${CFLAGS+set}
3006 ac_save_CFLAGS=$CFLAGS
3007 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3008 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3009 if test "${ac_cv_prog_cc_g+set}" = set; then
3010 $as_echo_n "(cached) " >&6
3011 else
3012 ac_save_c_werror_flag=$ac_c_werror_flag
3013 ac_c_werror_flag=yes
3014 ac_cv_prog_cc_g=no
3015 CFLAGS="-g"
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022
3023 int
3024 main ()
3025 {
3026
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (ac_try="$ac_compile"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3038 $as_echo "$ac_try_echo") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3049 ac_cv_prog_cc_g=yes
3050 else
3051 $as_echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 CFLAGS=""
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061
3062 int
3063 main ()
3064 {
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3077 $as_echo "$ac_try_echo") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
3088 :
3089 else
3090 $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3094 CFLAGS="-g"
3095 cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h. */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3101
3102 int
3103 main ()
3104 {
3105
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } && {
3125 test -z "$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 } && test -s conftest.$ac_objext; then
3128 ac_cv_prog_cc_g=yes
3129 else
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133
3134 fi
3135
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 fi
3138
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 fi
3141
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_c_werror_flag=$ac_save_c_werror_flag
3144 fi
3145 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3146 $as_echo "$ac_cv_prog_cc_g" >&6; }
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3151 CFLAGS="-g -O2"
3152 else
3153 CFLAGS="-g"
3154 fi
3155 else
3156 if test "$GCC" = yes; then
3157 CFLAGS="-O2"
3158 else
3159 CFLAGS=
3160 fi
3161 fi
3162 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3164 if test "${ac_cv_prog_cc_c89+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3166 else
3167 ac_cv_prog_cc_c89=no
3168 ac_save_CC=$CC
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 #include <sys/types.h>
3178 #include <sys/stat.h>
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3183 char **p;
3184 int i;
3185 {
3186 return p[i];
3187 }
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3189 {
3190 char *s;
3191 va_list v;
3192 va_start (v,p);
3193 s = g (p, va_arg (v,int));
3194 va_end (v);
3195 return s;
3196 }
3197
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3209 #define FOO(x) 'x'
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 int argc;
3217 char **argv;
3218 int
3219 main ()
3220 {
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3228 do
3229 CC="$ac_save_CC $ac_arg"
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3237 $as_echo "$ac_try_echo") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3248 ac_cv_prog_cc_c89=$ac_arg
3249 else
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253
3254 fi
3255
3256 rm -f core conftest.err conftest.$ac_objext
3257 test "x$ac_cv_prog_cc_c89" != "xno" && break
3258 done
3259 rm -f conftest.$ac_ext
3260 CC=$ac_save_CC
3261
3262 fi
3263 # AC_CACHE_VAL
3264 case "x$ac_cv_prog_cc_c89" in
3265 x)
3266 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3267 $as_echo "none needed" >&6; } ;;
3268 xno)
3269 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3270 $as_echo "unsupported" >&6; } ;;
3271 *)
3272 CC="$CC $ac_cv_prog_cc_c89"
3273 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3275 esac
3276
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283
3284
3285
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3292 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3293 # On Suns, sometimes $CPP names a directory.
3294 if test -n "$CPP" && test -d "$CPP"; then
3295 CPP=
3296 fi
3297 if test -z "$CPP"; then
3298 if test "${ac_cv_prog_CPP+set}" = set; then
3299 $as_echo_n "(cached) " >&6
3300 else
3301 # Double quotes because CPP needs to be expanded
3302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3303 do
3304 ac_preproc_ok=false
3305 for ac_c_preproc_warn_flag in '' yes
3306 do
3307 # Use a header file that comes with gcc, so configuring glibc
3308 # with a fresh cross-compiler works.
3309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3310 # <limits.h> exists even on freestanding compilers.
3311 # On the NeXT, cc -E runs the code through the compiler's parser,
3312 # not just through cpp. "Syntax error" is here to catch this case.
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #ifdef __STDC__
3320 # include <limits.h>
3321 #else
3322 # include <assert.h>
3323 #endif
3324 Syntax error
3325 _ACEOF
3326 if { (ac_try="$ac_cpp conftest.$ac_ext"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null && {
3340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 }; then
3343 :
3344 else
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 # Broken: fails on valid input.
3349 continue
3350 fi
3351
3352 rm -f conftest.err conftest.$ac_ext
3353
3354 # OK, works on sane cases. Now check whether nonexistent headers
3355 # can be detected and how.
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include <ac_nonexistent.h>
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3370 $as_echo "$ac_try_echo") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null && {
3378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3379 test ! -s conftest.err
3380 }; then
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 # Passes both tests.
3388 ac_preproc_ok=:
3389 break
3390 fi
3391
3392 rm -f conftest.err conftest.$ac_ext
3393
3394 done
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then
3398 break
3399 fi
3400
3401 done
3402 ac_cv_prog_CPP=$CPP
3403
3404 fi
3405 CPP=$ac_cv_prog_CPP
3406 else
3407 ac_cv_prog_CPP=$CPP
3408 fi
3409 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3410 $as_echo "$CPP" >&6; }
3411 ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3413 do
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431 Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439 $as_echo "$ac_try_echo") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null && {
3447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 }; then
3450 :
3451 else
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 # Broken: fails on valid input.
3456 continue
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477 $as_echo "$ac_try_echo") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null && {
3485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 }; then
3488 # Broken: success on invalid input.
3489 continue
3490 else
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 # Passes both tests.
3495 ac_preproc_ok=:
3496 break
3497 fi
3498
3499 rm -f conftest.err conftest.$ac_ext
3500
3501 done
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3505 :
3506 else
3507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3510 See \`config.log' for more details." >&5
3511 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3512 See \`config.log' for more details." >&2;}
3513 { (exit 1); exit 1; }; }; }
3514 fi
3515
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521
3522
3523 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3524 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3525 if test "${ac_cv_path_GREP+set}" = set; then
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if test -z "$GREP"; then
3529 ac_path_GREP_found=false
3530 # Loop through the user's path and test for each of PROGNAME-LIST
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_prog in grep ggrep; do
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3539 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3540 # Check for GNU ac_path_GREP and select it if it is found.
3541 # Check for GNU $ac_path_GREP
3542 case `"$ac_path_GREP" --version 2>&1` in
3543 *GNU*)
3544 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3545 *)
3546 ac_count=0
3547 $as_echo_n 0123456789 >"conftest.in"
3548 while :
3549 do
3550 cat "conftest.in" "conftest.in" >"conftest.tmp"
3551 mv "conftest.tmp" "conftest.in"
3552 cp "conftest.in" "conftest.nl"
3553 $as_echo 'GREP' >> "conftest.nl"
3554 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3556 ac_count=`expr $ac_count + 1`
3557 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3558 # Best one so far, save it but keep looking for a better one
3559 ac_cv_path_GREP="$ac_path_GREP"
3560 ac_path_GREP_max=$ac_count
3561 fi
3562 # 10*(2^10) chars as input seems more than enough
3563 test $ac_count -gt 10 && break
3564 done
3565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3566 esac
3567
3568 $ac_path_GREP_found && break 3
3569 done
3570 done
3571 done
3572 IFS=$as_save_IFS
3573 if test -z "$ac_cv_path_GREP"; then
3574 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3575 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3576 { (exit 1); exit 1; }; }
3577 fi
3578 else
3579 ac_cv_path_GREP=$GREP
3580 fi
3581
3582 fi
3583 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3584 $as_echo "$ac_cv_path_GREP" >&6; }
3585 GREP="$ac_cv_path_GREP"
3586
3587
3588 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3589 $as_echo_n "checking for egrep... " >&6; }
3590 if test "${ac_cv_path_EGREP+set}" = set; then
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3594 then ac_cv_path_EGREP="$GREP -E"
3595 else
3596 if test -z "$EGREP"; then
3597 ac_path_EGREP_found=false
3598 # Loop through the user's path and test for each of PROGNAME-LIST
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3601 do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_prog in egrep; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3607 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3608 # Check for GNU ac_path_EGREP and select it if it is found.
3609 # Check for GNU $ac_path_EGREP
3610 case `"$ac_path_EGREP" --version 2>&1` in
3611 *GNU*)
3612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3613 *)
3614 ac_count=0
3615 $as_echo_n 0123456789 >"conftest.in"
3616 while :
3617 do
3618 cat "conftest.in" "conftest.in" >"conftest.tmp"
3619 mv "conftest.tmp" "conftest.in"
3620 cp "conftest.in" "conftest.nl"
3621 $as_echo 'EGREP' >> "conftest.nl"
3622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3624 ac_count=`expr $ac_count + 1`
3625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3626 # Best one so far, save it but keep looking for a better one
3627 ac_cv_path_EGREP="$ac_path_EGREP"
3628 ac_path_EGREP_max=$ac_count
3629 fi
3630 # 10*(2^10) chars as input seems more than enough
3631 test $ac_count -gt 10 && break
3632 done
3633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3634 esac
3635
3636 $ac_path_EGREP_found && break 3
3637 done
3638 done
3639 done
3640 IFS=$as_save_IFS
3641 if test -z "$ac_cv_path_EGREP"; then
3642 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3643 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3644 { (exit 1); exit 1; }; }
3645 fi
3646 else
3647 ac_cv_path_EGREP=$EGREP
3648 fi
3649
3650 fi
3651 fi
3652 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3653 $as_echo "$ac_cv_path_EGREP" >&6; }
3654 EGREP="$ac_cv_path_EGREP"
3655
3656
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_pattern="Autoconf.*'x'"
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 #include <sgtty.h>
3671 Autoconf TIOCGETP
3672 _ACEOF
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675 ac_cv_prog_gcc_traditional=yes
3676 else
3677 ac_cv_prog_gcc_traditional=no
3678 fi
3679 rm -f conftest*
3680
3681
3682 if test $ac_cv_prog_gcc_traditional = no; then
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 #include <termio.h>
3690 Autoconf TCGETA
3691 _ACEOF
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694 ac_cv_prog_gcc_traditional=yes
3695 fi
3696 rm -f conftest*
3697
3698 fi
3699 fi
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3702 if test $ac_cv_prog_gcc_traditional = yes; then
3703 CC="$CC -traditional"
3704 fi
3705 fi
3706
3707 # Find a good install program. We prefer a C program (faster),
3708 # so one script is as good as another. But avoid the broken or
3709 # incompatible versions:
3710 # SysV /etc/install, /usr/sbin/install
3711 # SunOS /usr/etc/install
3712 # IRIX /sbin/install
3713 # AIX /bin/install
3714 # AmigaOS /C/install, which installs bootblocks on floppy discs
3715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3718 # OS/2's system install, which has a completely different semantic
3719 # ./install, which can be erroneously created by make from ./install.sh.
3720 # Reject install programs that cannot install multiple files.
3721 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3723 if test -z "$INSTALL"; then
3724 if test "${ac_cv_path_install+set}" = set; then
3725 $as_echo_n "(cached) " >&6
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 # Account for people who put trailing slashes in PATH elements.
3733 case $as_dir/ in
3734 ./ | .// | /cC/* | \
3735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3736 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3737 /usr/ucb/* ) ;;
3738 *)
3739 # OSF1 and SCO ODT 3.0 have their own names for install.
3740 # Don't use installbsd from OSF since it installs stuff as root
3741 # by default.
3742 for ac_prog in ginstall scoinst install; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3745 if test $ac_prog = install &&
3746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3747 # AIX install. It has an incompatible calling convention.
3748 :
3749 elif test $ac_prog = install &&
3750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3751 # program-specific install script used by HP pwplus--don't use.
3752 :
3753 else
3754 rm -rf conftest.one conftest.two conftest.dir
3755 echo one > conftest.one
3756 echo two > conftest.two
3757 mkdir conftest.dir
3758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3759 test -s conftest.one && test -s conftest.two &&
3760 test -s conftest.dir/conftest.one &&
3761 test -s conftest.dir/conftest.two
3762 then
3763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3764 break 3
3765 fi
3766 fi
3767 fi
3768 done
3769 done
3770 ;;
3771 esac
3772
3773 done
3774 IFS=$as_save_IFS
3775
3776 rm -rf conftest.one conftest.two conftest.dir
3777
3778 fi
3779 if test "${ac_cv_path_install+set}" = set; then
3780 INSTALL=$ac_cv_path_install
3781 else
3782 # As a last resort, use the slow shell script. Don't cache a
3783 # value for INSTALL within a source directory, because that will
3784 # break other packages using the cache if that directory is
3785 # removed, or if the value is a relative name.
3786 INSTALL=$ac_install_sh
3787 fi
3788 fi
3789 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3790 $as_echo "$INSTALL" >&6; }
3791
3792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3793 # It thinks the first close brace ends the variable substitution.
3794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3795
3796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3797
3798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3799
3800 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3801 $as_echo_n "checking whether ln -s works... " >&6; }
3802 LN_S=$as_ln_s
3803 if test "$LN_S" = "ln -s"; then
3804 { $as_echo "$as_me:$LINENO: result: yes" >&5
3805 $as_echo "yes" >&6; }
3806 else
3807 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3808 $as_echo "no, using $LN_S" >&6; }
3809 fi
3810
3811 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3812 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3813 set x ${MAKE-make}
3814 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3815 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3816 $as_echo_n "(cached) " >&6
3817 else
3818 cat >conftest.make <<\_ACEOF
3819 SHELL = /bin/sh
3820 all:
3821 @echo '@@@%%%=$(MAKE)=@@@%%%'
3822 _ACEOF
3823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3824 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3825 *@@@%%%=?*=@@@%%%*)
3826 eval ac_cv_prog_make_${ac_make}_set=yes;;
3827 *)
3828 eval ac_cv_prog_make_${ac_make}_set=no;;
3829 esac
3830 rm -f conftest.make
3831 fi
3832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3833 { $as_echo "$as_me:$LINENO: result: yes" >&5
3834 $as_echo "yes" >&6; }
3835 SET_MAKE=
3836 else
3837 { $as_echo "$as_me:$LINENO: result: no" >&5
3838 $as_echo "no" >&6; }
3839 SET_MAKE="MAKE=${MAKE-make}"
3840 fi
3841
3842 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3843 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3844 if test -z "$MKDIR_P"; then
3845 if test "${ac_cv_path_mkdir+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3850 do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in mkdir gmkdir; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3857 'mkdir (GNU coreutils) '* | \
3858 'mkdir (coreutils) '* | \
3859 'mkdir (fileutils) '4.1*)
3860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3861 break 3;;
3862 esac
3863 done
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869
3870 if test "${ac_cv_path_mkdir+set}" = set; then
3871 MKDIR_P="$ac_cv_path_mkdir -p"
3872 else
3873 # As a last resort, use the slow shell script. Don't cache a
3874 # value for MKDIR_P within a source directory, because that will
3875 # break other packages using the cache if that directory is
3876 # removed, or if the value is a relative name.
3877 test -d ./--version && rmdir ./--version
3878 MKDIR_P="$ac_install_sh -d"
3879 fi
3880 fi
3881 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3882 $as_echo "$MKDIR_P" >&6; }
3883
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if test "${ac_cv_prog_RANLIB+set}" = set; then
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if test -n "$RANLIB"; then
3893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 fi
3911 fi
3912 RANLIB=$ac_cv_prog_RANLIB
3913 if test -n "$RANLIB"; then
3914 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3915 $as_echo "$RANLIB" >&6; }
3916 else
3917 { $as_echo "$as_me:$LINENO: result: no" >&5
3918 $as_echo "no" >&6; }
3919 fi
3920
3921
3922 fi
3923 if test -z "$ac_cv_prog_RANLIB"; then
3924 ac_ct_RANLIB=$RANLIB
3925 # Extract the first word of "ranlib", so it can be a program name with args.
3926 set dummy ranlib; ac_word=$2
3927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$ac_ct_RANLIB"; then
3933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_prog_ac_ct_RANLIB="ranlib"
3943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3953 if test -n "$ac_ct_RANLIB"; then
3954 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3955 $as_echo "$ac_ct_RANLIB" >&6; }
3956 else
3957 { $as_echo "$as_me:$LINENO: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960
3961 if test "x$ac_ct_RANLIB" = x; then
3962 RANLIB=":"
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965 yes:)
3966 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned=yes ;;
3969 esac
3970 RANLIB=$ac_ct_RANLIB
3971 fi
3972 else
3973 RANLIB="$ac_cv_prog_RANLIB"
3974 fi
3975
3976 # Extract the first word of "cflow", so it can be a program name with args.
3977 set dummy cflow; ac_word=$2
3978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3981 $as_echo_n "(cached) " >&6
3982 else
3983 case $CFLOW_CMD in
3984 [\\/]* | ?:[\\/]*)
3985 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3986 ;;
3987 *)
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 ;;
4004 esac
4005 fi
4006 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4007 if test -n "$CFLOW_CMD"; then
4008 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4009 $as_echo "$CFLOW_CMD" >&6; }
4010 else
4011 { $as_echo "$as_me:$LINENO: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 # Extract the first word of "cscope", so it can be a program name with args.
4017 set dummy cscope; ac_word=$2
4018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4021 $as_echo_n "(cached) " >&6
4022 else
4023 case $CSCOPE_CMD in
4024 [\\/]* | ?:[\\/]*)
4025 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4026 ;;
4027 *)
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 ;;
4044 esac
4045 fi
4046 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4047 if test -n "$CSCOPE_CMD"; then
4048 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4049 $as_echo "$CSCOPE_CMD" >&6; }
4050 else
4051 { $as_echo "$as_me:$LINENO: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056
4057 ################################################################################
4058
4059
4060
4061
4062
4063 ac_header_dirent=no
4064 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4065 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4066 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4067 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <sys/types.h>
4078 #include <$ac_hdr>
4079
4080 int
4081 main ()
4082 {
4083 if ((DIR *) 0)
4084 return 0;
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (ac_try="$ac_compile"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097 (eval "$ac_compile") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 } && test -s conftest.$ac_objext; then
4107 eval "$as_ac_Header=yes"
4108 else
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 eval "$as_ac_Header=no"
4113 fi
4114
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117 ac_res=`eval 'as_val=${'$as_ac_Header'}
4118 $as_echo "$as_val"'`
4119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4120 $as_echo "$ac_res" >&6; }
4121 as_val=`eval 'as_val=${'$as_ac_Header'}
4122 $as_echo "$as_val"'`
4123 if test "x$as_val" = x""yes; then
4124 cat >>confdefs.h <<_ACEOF
4125 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4126 _ACEOF
4127
4128 ac_header_dirent=$ac_hdr; break
4129 fi
4130
4131 done
4132 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4133 if test $ac_header_dirent = dirent.h; then
4134 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4135 $as_echo_n "checking for library containing opendir... " >&6; }
4136 if test "${ac_cv_search_opendir+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4138 else
4139 ac_func_search_save_LIBS=$LIBS
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146
4147 /* Override any GCC internal prototype to avoid an error.
4148 Use char because int might match the return type of a GCC
4149 builtin and then its argument prototype would still apply. */
4150 #ifdef __cplusplus
4151 extern "C"
4152 #endif
4153 char opendir ();
4154 int
4155 main ()
4156 {
4157 return opendir ();
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 for ac_lib in '' dir; do
4163 if test -z "$ac_lib"; then
4164 ac_res="none required"
4165 else
4166 ac_res=-l$ac_lib
4167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4168 fi
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (ac_try="$ac_link"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_link") 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && {
4184 test -z "$ac_c_werror_flag" ||
4185 test ! -s conftest.err
4186 } && test -s conftest$ac_exeext && {
4187 test "$cross_compiling" = yes ||
4188 $as_test_x conftest$ac_exeext
4189 }; then
4190 ac_cv_search_opendir=$ac_res
4191 else
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195
4196 fi
4197
4198 rm -rf conftest.dSYM
4199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4200 conftest$ac_exeext
4201 if test "${ac_cv_search_opendir+set}" = set; then
4202 break
4203 fi
4204 done
4205 if test "${ac_cv_search_opendir+set}" = set; then
4206 :
4207 else
4208 ac_cv_search_opendir=no
4209 fi
4210 rm conftest.$ac_ext
4211 LIBS=$ac_func_search_save_LIBS
4212 fi
4213 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4214 $as_echo "$ac_cv_search_opendir" >&6; }
4215 ac_res=$ac_cv_search_opendir
4216 if test "$ac_res" != no; then
4217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4218
4219 fi
4220
4221 else
4222 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4223 $as_echo_n "checking for library containing opendir... " >&6; }
4224 if test "${ac_cv_search_opendir+set}" = set; then
4225 $as_echo_n "(cached) " >&6
4226 else
4227 ac_func_search_save_LIBS=$LIBS
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234
4235 /* Override any GCC internal prototype to avoid an error.
4236 Use char because int might match the return type of a GCC
4237 builtin and then its argument prototype would still apply. */
4238 #ifdef __cplusplus
4239 extern "C"
4240 #endif
4241 char opendir ();
4242 int
4243 main ()
4244 {
4245 return opendir ();
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 for ac_lib in '' x; do
4251 if test -z "$ac_lib"; then
4252 ac_res="none required"
4253 else
4254 ac_res=-l$ac_lib
4255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4256 fi
4257 rm -f conftest.$ac_objext conftest$ac_exeext
4258 if { (ac_try="$ac_link"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265 (eval "$ac_link") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest$ac_exeext && {
4275 test "$cross_compiling" = yes ||
4276 $as_test_x conftest$ac_exeext
4277 }; then
4278 ac_cv_search_opendir=$ac_res
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283
4284 fi
4285
4286 rm -rf conftest.dSYM
4287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4288 conftest$ac_exeext
4289 if test "${ac_cv_search_opendir+set}" = set; then
4290 break
4291 fi
4292 done
4293 if test "${ac_cv_search_opendir+set}" = set; then
4294 :
4295 else
4296 ac_cv_search_opendir=no
4297 fi
4298 rm conftest.$ac_ext
4299 LIBS=$ac_func_search_save_LIBS
4300 fi
4301 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4302 $as_echo "$ac_cv_search_opendir" >&6; }
4303 ac_res=$ac_cv_search_opendir
4304 if test "$ac_res" != no; then
4305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4306
4307 fi
4308
4309 fi
4310
4311 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4312 $as_echo_n "checking for ANSI C header files... " >&6; }
4313 if test "${ac_cv_header_stdc+set}" = set; then
4314 $as_echo_n "(cached) " >&6
4315 else
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <stdlib.h>
4323 #include <stdarg.h>
4324 #include <string.h>
4325 #include <float.h>
4326
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (ac_try="$ac_compile"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && {
4350 test -z "$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 } && test -s conftest.$ac_objext; then
4353 ac_cv_header_stdc=yes
4354 else
4355 $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ac_cv_header_stdc=no
4359 fi
4360
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362
4363 if test $ac_cv_header_stdc = yes; then
4364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <string.h>
4372
4373 _ACEOF
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375 $EGREP "memchr" >/dev/null 2>&1; then
4376 :
4377 else
4378 ac_cv_header_stdc=no
4379 fi
4380 rm -f conftest*
4381
4382 fi
4383
4384 if test $ac_cv_header_stdc = yes; then
4385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4386 cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h. */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 #include <stdlib.h>
4393
4394 _ACEOF
4395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396 $EGREP "free" >/dev/null 2>&1; then
4397 :
4398 else
4399 ac_cv_header_stdc=no
4400 fi
4401 rm -f conftest*
4402
4403 fi
4404
4405 if test $ac_cv_header_stdc = yes; then
4406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4407 if test "$cross_compiling" = yes; then
4408 :
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <ctype.h>
4417 #include <stdlib.h>
4418 #if ((' ' & 0x0FF) == 0x020)
4419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4421 #else
4422 # define ISLOWER(c) \
4423 (('a' <= (c) && (c) <= 'i') \
4424 || ('j' <= (c) && (c) <= 'r') \
4425 || ('s' <= (c) && (c) <= 'z'))
4426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4427 #endif
4428
4429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4430 int
4431 main ()
4432 {
4433 int i;
4434 for (i = 0; i < 256; i++)
4435 if (XOR (islower (i), ISLOWER (i))
4436 || toupper (i) != TOUPPER (i))
4437 return 2;
4438 return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest$ac_exeext
4442 if { (ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4448 $as_echo "$ac_try_echo") >&5
4449 (eval "$ac_link") 2>&5
4450 ac_status=$?
4451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_try") 2>&5
4460 ac_status=$?
4461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 :
4464 else
4465 $as_echo "$as_me: program exited with status $ac_status" >&5
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 ( exit $ac_status )
4470 ac_cv_header_stdc=no
4471 fi
4472 rm -rf conftest.dSYM
4473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4474 fi
4475
4476
4477 fi
4478 fi
4479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4480 $as_echo "$ac_cv_header_stdc" >&6; }
4481 if test $ac_cv_header_stdc = yes; then
4482
4483 cat >>confdefs.h <<\_ACEOF
4484 #define STDC_HEADERS 1
4485 _ACEOF
4486
4487 fi
4488
4489 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4490 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4491 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4492 $as_echo_n "(cached) " >&6
4493 else
4494 cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h. */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 #include <sys/types.h>
4501 #include <sys/wait.h>
4502 #ifndef WEXITSTATUS
4503 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4504 #endif
4505 #ifndef WIFEXITED
4506 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4507 #endif
4508
4509 int
4510 main ()
4511 {
4512 int s;
4513 wait (&s);
4514 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4526 $as_echo "$ac_try_echo") >&5
4527 (eval "$ac_compile") 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && {
4534 test -z "$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest.$ac_objext; then
4537 ac_cv_header_sys_wait_h=yes
4538 else
4539 $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_cv_header_sys_wait_h=no
4543 fi
4544
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4548 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4549 if test $ac_cv_header_sys_wait_h = yes; then
4550
4551 cat >>confdefs.h <<\_ACEOF
4552 #define HAVE_SYS_WAIT_H 1
4553 _ACEOF
4554
4555 fi
4556
4557 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4558 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4559 if test "${ac_cv_header_time+set}" = set; then
4560 $as_echo_n "(cached) " >&6
4561 else
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 #include <sys/types.h>
4569 #include <sys/time.h>
4570 #include <time.h>
4571
4572 int
4573 main ()
4574 {
4575 if ((struct tm *) 0)
4576 return 0;
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (ac_try="$ac_compile"
4583 case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586 esac
4587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588 $as_echo "$ac_try_echo") >&5
4589 (eval "$ac_compile") 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4599 ac_cv_header_time=yes
4600 else
4601 $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 ac_cv_header_time=no
4605 fi
4606
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 fi
4609 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4610 $as_echo "$ac_cv_header_time" >&6; }
4611 if test $ac_cv_header_time = yes; then
4612
4613 cat >>confdefs.h <<\_ACEOF
4614 #define TIME_WITH_SYS_TIME 1
4615 _ACEOF
4616
4617 fi
4618
4619
4620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4631 inttypes.h stdint.h unistd.h
4632 do
4633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4635 $as_echo_n "checking for $ac_header... " >&6; }
4636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4637 $as_echo_n "(cached) " >&6
4638 else
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 $ac_includes_default
4646
4647 #include <$ac_header>
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (ac_try="$ac_compile"
4651 case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4656 $as_echo "$ac_try_echo") >&5
4657 (eval "$ac_compile") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest.$ac_objext; then
4667 eval "$as_ac_Header=yes"
4668 else
4669 $as_echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 eval "$as_ac_Header=no"
4673 fi
4674
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 fi
4677 ac_res=`eval 'as_val=${'$as_ac_Header'}
4678 $as_echo "$as_val"'`
4679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4680 $as_echo "$ac_res" >&6; }
4681 as_val=`eval 'as_val=${'$as_ac_Header'}
4682 $as_echo "$as_val"'`
4683 if test "x$as_val" = x""yes; then
4684 cat >>confdefs.h <<_ACEOF
4685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4686 _ACEOF
4687
4688 fi
4689
4690 done
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4707 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4708 do
4709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4712 $as_echo_n "checking for $ac_header... " >&6; }
4713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4714 $as_echo_n "(cached) " >&6
4715 fi
4716 ac_res=`eval 'as_val=${'$as_ac_Header'}
4717 $as_echo "$as_val"'`
4718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4719 $as_echo "$ac_res" >&6; }
4720 else
4721 # Is the header compilable?
4722 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4723 $as_echo_n "checking $ac_header usability... " >&6; }
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 $ac_includes_default
4731 #include <$ac_header>
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (ac_try="$ac_compile"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740 $as_echo "$ac_try_echo") >&5
4741 (eval "$ac_compile") 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && {
4748 test -z "$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 } && test -s conftest.$ac_objext; then
4751 ac_header_compiler=yes
4752 else
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_header_compiler=no
4757 fi
4758
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4761 $as_echo "$ac_header_compiler" >&6; }
4762
4763 # Is the header present?
4764 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4765 $as_echo_n "checking $ac_header presence... " >&6; }
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <$ac_header>
4773 _ACEOF
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null && {
4788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 }; then
4791 ac_header_preproc=yes
4792 else
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_header_preproc=no
4797 fi
4798
4799 rm -f conftest.err conftest.$ac_ext
4800 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4801 $as_echo "$ac_header_preproc" >&6; }
4802
4803 # So? What about this header?
4804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4805 yes:no: )
4806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4807 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4810 ac_header_preproc=yes
4811 ;;
4812 no:yes:* )
4813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4814 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4816 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4818 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4820 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4824 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4825
4826 ;;
4827 esac
4828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4829 $as_echo_n "checking for $ac_header... " >&6; }
4830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4831 $as_echo_n "(cached) " >&6
4832 else
4833 eval "$as_ac_Header=\$ac_header_preproc"
4834 fi
4835 ac_res=`eval 'as_val=${'$as_ac_Header'}
4836 $as_echo "$as_val"'`
4837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4838 $as_echo "$ac_res" >&6; }
4839
4840 fi
4841 as_val=`eval 'as_val=${'$as_ac_Header'}
4842 $as_echo "$as_val"'`
4843 if test "x$as_val" = x""yes; then
4844 cat >>confdefs.h <<_ACEOF
4845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 _ACEOF
4847
4848 else
4849 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4850 $as_echo "$as_me: error: bailing out" >&2;}
4851 { (exit 1); exit 1; }; }
4852 fi
4853
4854 done
4855
4856
4857 case "$host_os" in
4858 linux*)
4859
4860
4861
4862 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4863 do
4864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4867 $as_echo_n "checking for $ac_header... " >&6; }
4868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4869 $as_echo_n "(cached) " >&6
4870 fi
4871 ac_res=`eval 'as_val=${'$as_ac_Header'}
4872 $as_echo "$as_val"'`
4873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4874 $as_echo "$ac_res" >&6; }
4875 else
4876 # Is the header compilable?
4877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4878 $as_echo_n "checking $ac_header usability... " >&6; }
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4886 #include <$ac_header>
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (ac_try="$ac_compile"
4890 case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893 esac
4894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4895 $as_echo "$ac_try_echo") >&5
4896 (eval "$ac_compile") 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && {
4903 test -z "$ac_c_werror_flag" ||
4904 test ! -s conftest.err
4905 } && test -s conftest.$ac_objext; then
4906 ac_header_compiler=yes
4907 else
4908 $as_echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 ac_header_compiler=no
4912 fi
4913
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4916 $as_echo "$ac_header_compiler" >&6; }
4917
4918 # Is the header present?
4919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4920 $as_echo_n "checking $ac_header presence... " >&6; }
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #include <$ac_header>
4928 _ACEOF
4929 if { (ac_try="$ac_cpp conftest.$ac_ext"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935 $as_echo "$ac_try_echo") >&5
4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null && {
4943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 }; then
4946 ac_header_preproc=yes
4947 else
4948 $as_echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ac_header_preproc=no
4952 fi
4953
4954 rm -f conftest.err conftest.$ac_ext
4955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4956 $as_echo "$ac_header_preproc" >&6; }
4957
4958 # So? What about this header?
4959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4960 yes:no: )
4961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4965 ac_header_preproc=yes
4966 ;;
4967 no:yes:* )
4968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4971 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4975 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4980
4981 ;;
4982 esac
4983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 $as_echo_n "checking for $ac_header... " >&6; }
4985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 eval "$as_ac_Header=\$ac_header_preproc"
4989 fi
4990 ac_res=`eval 'as_val=${'$as_ac_Header'}
4991 $as_echo "$as_val"'`
4992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4993 $as_echo "$ac_res" >&6; }
4994
4995 fi
4996 as_val=`eval 'as_val=${'$as_ac_Header'}
4997 $as_echo "$as_val"'`
4998 if test "x$as_val" = x""yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 _ACEOF
5002
5003 else
5004 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5005 $as_echo "$as_me: error: bailing out" >&2;}
5006 { (exit 1); exit 1; }; }
5007 fi
5008
5009 done
5010 ;;
5011 darwin*)
5012
5013
5014 for ac_header in machine/endian.h sys/disk.h
5015 do
5016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 $as_echo_n "checking for $ac_header... " >&6; }
5020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021 $as_echo_n "(cached) " >&6
5022 fi
5023 ac_res=`eval 'as_val=${'$as_ac_Header'}
5024 $as_echo "$as_val"'`
5025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5026 $as_echo "$ac_res" >&6; }
5027 else
5028 # Is the header compilable?
5029 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5030 $as_echo_n "checking $ac_header usability... " >&6; }
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 $ac_includes_default
5038 #include <$ac_header>
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (ac_try="$ac_compile"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047 $as_echo "$ac_try_echo") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
5058 ac_header_compiler=yes
5059 else
5060 $as_echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_header_compiler=no
5064 fi
5065
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068 $as_echo "$ac_header_compiler" >&6; }
5069
5070 # Is the header present?
5071 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072 $as_echo_n "checking $ac_header presence... " >&6; }
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <$ac_header>
5080 _ACEOF
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5087 $as_echo "$ac_try_echo") >&5
5088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null && {
5095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 }; then
5098 ac_header_preproc=yes
5099 else
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 ac_header_preproc=no
5104 fi
5105
5106 rm -f conftest.err conftest.$ac_ext
5107 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5108 $as_echo "$ac_header_preproc" >&6; }
5109
5110 # So? What about this header?
5111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5112 yes:no: )
5113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5114 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5117 ac_header_preproc=yes
5118 ;;
5119 no:yes:* )
5120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5123 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5125 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5127 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5131 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5132
5133 ;;
5134 esac
5135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 $as_echo_n "checking for $ac_header... " >&6; }
5137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138 $as_echo_n "(cached) " >&6
5139 else
5140 eval "$as_ac_Header=\$ac_header_preproc"
5141 fi
5142 ac_res=`eval 'as_val=${'$as_ac_Header'}
5143 $as_echo "$as_val"'`
5144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145 $as_echo "$ac_res" >&6; }
5146
5147 fi
5148 as_val=`eval 'as_val=${'$as_ac_Header'}
5149 $as_echo "$as_val"'`
5150 if test "x$as_val" = x""yes; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153 _ACEOF
5154
5155 else
5156 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5157 $as_echo "$as_me: error: bailing out" >&2;}
5158 { (exit 1); exit 1; }; }
5159 fi
5160
5161 done
5162 ;;
5163 esac
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5182 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5183 sys/types.h unistd.h
5184 do
5185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5188 $as_echo_n "checking for $ac_header... " >&6; }
5189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5190 $as_echo_n "(cached) " >&6
5191 fi
5192 ac_res=`eval 'as_val=${'$as_ac_Header'}
5193 $as_echo "$as_val"'`
5194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5195 $as_echo "$ac_res" >&6; }
5196 else
5197 # Is the header compilable?
5198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5199 $as_echo_n "checking $ac_header usability... " >&6; }
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5207 #include <$ac_header>
5208 _ACEOF
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5211 case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214 esac
5215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216 $as_echo "$ac_try_echo") >&5
5217 (eval "$ac_compile") 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
5227 ac_header_compiler=yes
5228 else
5229 $as_echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 ac_header_compiler=no
5233 fi
5234
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5237 $as_echo "$ac_header_compiler" >&6; }
5238
5239 # Is the header present?
5240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5241 $as_echo_n "checking $ac_header presence... " >&6; }
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <$ac_header>
5249 _ACEOF
5250 if { (ac_try="$ac_cpp conftest.$ac_ext"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256 $as_echo "$ac_try_echo") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 }; then
5267 ac_header_preproc=yes
5268 else
5269 $as_echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_preproc=no
5273 fi
5274
5275 rm -f conftest.err conftest.$ac_ext
5276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277 $as_echo "$ac_header_preproc" >&6; }
5278
5279 # So? What about this header?
5280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281 yes:no: )
5282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5286 ac_header_preproc=yes
5287 ;;
5288 no:yes:* )
5289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5292 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5296 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5301
5302 ;;
5303 esac
5304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 $as_echo_n "checking for $ac_header... " >&6; }
5306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5307 $as_echo_n "(cached) " >&6
5308 else
5309 eval "$as_ac_Header=\$ac_header_preproc"
5310 fi
5311 ac_res=`eval 'as_val=${'$as_ac_Header'}
5312 $as_echo "$as_val"'`
5313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5314 $as_echo "$ac_res" >&6; }
5315
5316 fi
5317 as_val=`eval 'as_val=${'$as_ac_Header'}
5318 $as_echo "$as_val"'`
5319 if test "x$as_val" = x""yes; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5322 _ACEOF
5323
5324 else
5325 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5326 $as_echo "$as_me: error: bailing out" >&2;}
5327 { (exit 1); exit 1; }; }
5328 fi
5329
5330 done
5331
5332
5333
5334 for ac_header in termios.h sys/statvfs.h
5335 do
5336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5339 $as_echo_n "checking for $ac_header... " >&6; }
5340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5341 $as_echo_n "(cached) " >&6
5342 fi
5343 ac_res=`eval 'as_val=${'$as_ac_Header'}
5344 $as_echo "$as_val"'`
5345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5346 $as_echo "$ac_res" >&6; }
5347 else
5348 # Is the header compilable?
5349 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5350 $as_echo_n "checking $ac_header usability... " >&6; }
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5358 #include <$ac_header>
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5362 case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5367 $as_echo "$ac_try_echo") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5369 ac_status=$?
5370 grep -v '^ *+' conftest.er1 >conftest.err
5371 rm -f conftest.er1
5372 cat conftest.err >&5
5373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_c_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5378 ac_header_compiler=yes
5379 else
5380 $as_echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_header_compiler=no
5384 fi
5385
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5388 $as_echo "$ac_header_compiler" >&6; }
5389
5390 # Is the header present?
5391 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5392 $as_echo_n "checking $ac_header presence... " >&6; }
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <$ac_header>
5400 _ACEOF
5401 if { (ac_try="$ac_cpp conftest.$ac_ext"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5407 $as_echo "$ac_try_echo") >&5
5408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } >/dev/null && {
5415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 }; then
5418 ac_header_preproc=yes
5419 else
5420 $as_echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_header_preproc=no
5424 fi
5425
5426 rm -f conftest.err conftest.$ac_ext
5427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5428 $as_echo "$ac_header_preproc" >&6; }
5429
5430 # So? What about this header?
5431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5432 yes:no: )
5433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5434 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5437 ac_header_preproc=yes
5438 ;;
5439 no:yes:* )
5440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5441 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5443 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5445 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5447 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5449 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5451 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5452
5453 ;;
5454 esac
5455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5456 $as_echo_n "checking for $ac_header... " >&6; }
5457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5458 $as_echo_n "(cached) " >&6
5459 else
5460 eval "$as_ac_Header=\$ac_header_preproc"
5461 fi
5462 ac_res=`eval 'as_val=${'$as_ac_Header'}
5463 $as_echo "$as_val"'`
5464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5465 $as_echo "$ac_res" >&6; }
5466
5467 fi
5468 as_val=`eval 'as_val=${'$as_ac_Header'}
5469 $as_echo "$as_val"'`
5470 if test "x$as_val" = x""yes; then
5471 cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5474
5475 fi
5476
5477 done
5478
5479
5480 ################################################################################
5481 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5482 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5483 if test "${ac_cv_c_const+set}" = set; then
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492
5493 int
5494 main ()
5495 {
5496 /* FIXME: Include the comments suggested by Paul. */
5497 #ifndef __cplusplus
5498 /* Ultrix mips cc rejects this. */
5499 typedef int charset[2];
5500 const charset cs;
5501 /* SunOS 4.1.1 cc rejects this. */
5502 char const *const *pcpcc;
5503 char **ppc;
5504 /* NEC SVR4.0.2 mips cc rejects this. */
5505 struct point {int x, y;};
5506 static struct point const zero = {0,0};
5507 /* AIX XL C 1.02.0.0 rejects this.
5508 It does not let you subtract one const X* pointer from another in
5509 an arm of an if-expression whose if-part is not a constant
5510 expression */
5511 const char *g = "string";
5512 pcpcc = &g + (g ? g-g : 0);
5513 /* HPUX 7.0 cc rejects these. */
5514 ++pcpcc;
5515 ppc = (char**) pcpcc;
5516 pcpcc = (char const *const *) ppc;
5517 { /* SCO 3.2v4 cc rejects this. */
5518 char *t;
5519 char const *s = 0 ? (char *) 0 : (char const *) 0;
5520
5521 *t++ = 0;
5522 if (s) return 0;
5523 }
5524 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5525 int x[] = {25, 17};
5526 const int *foo = &x[0];
5527 ++foo;
5528 }
5529 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5530 typedef const int *iptr;
5531 iptr p = 0;
5532 ++p;
5533 }
5534 { /* AIX XL C 1.02.0.0 rejects this saying
5535 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5536 struct s { int j; const int *ap[3]; };
5537 struct s *b; b->j = 5;
5538 }
5539 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5540 const int foo = 10;
5541 if (!foo) return 0;
5542 }
5543 return !cs[0] && !zero.x;
5544 #endif
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557 $as_echo "$ac_try_echo") >&5
5558 (eval "$ac_compile") 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
5568 ac_cv_c_const=yes
5569 else
5570 $as_echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573 ac_cv_c_const=no
5574 fi
5575
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5579 $as_echo "$ac_cv_c_const" >&6; }
5580 if test $ac_cv_c_const = no; then
5581
5582 cat >>confdefs.h <<\_ACEOF
5583 #define const /**/
5584 _ACEOF
5585
5586 fi
5587
5588 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5589 $as_echo_n "checking for inline... " >&6; }
5590 if test "${ac_cv_c_inline+set}" = set; then
5591 $as_echo_n "(cached) " >&6
5592 else
5593 ac_cv_c_inline=no
5594 for ac_kw in inline __inline__ __inline; do
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 #ifndef __cplusplus
5602 typedef int foo_t;
5603 static $ac_kw foo_t static_foo () {return 0; }
5604 $ac_kw foo_t foo () {return 0; }
5605 #endif
5606
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5626 ac_cv_c_inline=$ac_kw
5627 else
5628 $as_echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631
5632 fi
5633
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 test "$ac_cv_c_inline" != no && break
5636 done
5637
5638 fi
5639 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5640 $as_echo "$ac_cv_c_inline" >&6; }
5641
5642
5643 case $ac_cv_c_inline in
5644 inline | yes) ;;
5645 *)
5646 case $ac_cv_c_inline in
5647 no) ac_val=;;
5648 *) ac_val=$ac_cv_c_inline;;
5649 esac
5650 cat >>confdefs.h <<_ACEOF
5651 #ifndef __cplusplus
5652 #define inline $ac_val
5653 #endif
5654 _ACEOF
5655 ;;
5656 esac
5657
5658 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5659 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5660 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5661 $as_echo_n "(cached) " >&6
5662 else
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 int
5671 main ()
5672 {
5673 static struct stat ac_aggr;
5674 if (ac_aggr.st_rdev)
5675 return 0;
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687 $as_echo "$ac_try_echo") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_cv_member_struct_stat_st_rdev=yes
5699 else
5700 $as_echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 $ac_includes_default
5710 int
5711 main ()
5712 {
5713 static struct stat ac_aggr;
5714 if (sizeof ac_aggr.st_rdev)
5715 return 0;
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5727 $as_echo "$ac_try_echo") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 ac_cv_member_struct_stat_st_rdev=yes
5739 else
5740 $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 ac_cv_member_struct_stat_st_rdev=no
5744 fi
5745
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 fi
5748
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 fi
5751 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5752 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5753 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5754
5755 cat >>confdefs.h <<_ACEOF
5756 #define HAVE_STRUCT_STAT_ST_RDEV 1
5757 _ACEOF
5758
5759
5760 fi
5761
5762 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5763 $as_echo_n "checking for off_t... " >&6; }
5764 if test "${ac_cv_type_off_t+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5766 else
5767 ac_cv_type_off_t=no
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 $ac_includes_default
5775 int
5776 main ()
5777 {
5778 if (sizeof (off_t))
5779 return 0;
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5786 case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789 esac
5790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5791 $as_echo "$ac_try_echo") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest.$ac_objext; then
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 $ac_includes_default
5809 int
5810 main ()
5811 {
5812 if (sizeof ((off_t)))
5813 return 0;
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5825 $as_echo "$ac_try_echo") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 :
5837 else
5838 $as_echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_cv_type_off_t=yes
5842 fi
5843
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 else
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849
5850 fi
5851
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 fi
5854 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5855 $as_echo "$ac_cv_type_off_t" >&6; }
5856 if test "x$ac_cv_type_off_t" = x""yes; then
5857 :
5858 else
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define off_t long int
5862 _ACEOF
5863
5864 fi
5865
5866 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5867 $as_echo_n "checking for pid_t... " >&6; }
5868 if test "${ac_cv_type_pid_t+set}" = set; then
5869 $as_echo_n "(cached) " >&6
5870 else
5871 ac_cv_type_pid_t=no
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 $ac_includes_default
5879 int
5880 main ()
5881 {
5882 if (sizeof (pid_t))
5883 return 0;
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5895 $as_echo "$ac_try_echo") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5913 int
5914 main ()
5915 {
5916 if (sizeof ((pid_t)))
5917 return 0;
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5924 case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929 $as_echo "$ac_try_echo") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5940 :
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_type_pid_t=yes
5946 fi
5947
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 else
5950 $as_echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953
5954 fi
5955
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 fi
5958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5959 $as_echo "$ac_cv_type_pid_t" >&6; }
5960 if test "x$ac_cv_type_pid_t" = x""yes; then
5961 :
5962 else
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define pid_t int
5966 _ACEOF
5967
5968 fi
5969
5970 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5971 $as_echo_n "checking return type of signal handlers... " >&6; }
5972 if test "${ac_cv_type_signal+set}" = set; then
5973 $as_echo_n "(cached) " >&6
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <sys/types.h>
5982 #include <signal.h>
5983
5984 int
5985 main ()
5986 {
5987 return *(signal (0, 0)) (0) == 1;
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999 $as_echo "$ac_try_echo") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_cv_type_signal=int
6011 else
6012 $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_cv_type_signal=void
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6021 $as_echo "$ac_cv_type_signal" >&6; }
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define RETSIGTYPE $ac_cv_type_signal
6025 _ACEOF
6026
6027
6028 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6029 $as_echo_n "checking for size_t... " >&6; }
6030 if test "${ac_cv_type_size_t+set}" = set; then
6031 $as_echo_n "(cached) " >&6
6032 else
6033 ac_cv_type_size_t=no
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6041 int
6042 main ()
6043 {
6044 if (sizeof (size_t))
6045 return 0;
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6075 int
6076 main ()
6077 {
6078 if (sizeof ((size_t)))
6079 return 0;
6080 ;
6081 return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (ac_try="$ac_compile"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092 (eval "$ac_compile") 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest.$ac_objext; then
6102 :
6103 else
6104 $as_echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 ac_cv_type_size_t=yes
6108 fi
6109
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 else
6112 $as_echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115
6116 fi
6117
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 fi
6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6121 $as_echo "$ac_cv_type_size_t" >&6; }
6122 if test "x$ac_cv_type_size_t" = x""yes; then
6123 :
6124 else
6125
6126 cat >>confdefs.h <<_ACEOF
6127 #define size_t unsigned int
6128 _ACEOF
6129
6130 fi
6131
6132 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6133 $as_echo_n "checking for mode_t... " >&6; }
6134 if test "${ac_cv_type_mode_t+set}" = set; then
6135 $as_echo_n "(cached) " >&6
6136 else
6137 ac_cv_type_mode_t=no
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6145 int
6146 main ()
6147 {
6148 if (sizeof (mode_t))
6149 return 0;
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_compile") 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest.$ac_objext; then
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179 int
6180 main ()
6181 {
6182 if (sizeof ((mode_t)))
6183 return 0;
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195 $as_echo "$ac_try_echo") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 :
6207 else
6208 $as_echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 ac_cv_type_mode_t=yes
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 else
6216 $as_echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219
6220 fi
6221
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 fi
6224 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6225 $as_echo "$ac_cv_type_mode_t" >&6; }
6226 if test "x$ac_cv_type_mode_t" = x""yes; then
6227 :
6228 else
6229
6230 cat >>confdefs.h <<_ACEOF
6231 #define mode_t int
6232 _ACEOF
6233
6234 fi
6235
6236 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6237 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6238 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 int
6249 main ()
6250 {
6251 static struct stat ac_aggr;
6252 if (ac_aggr.st_rdev)
6253 return 0;
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6265 $as_echo "$ac_try_echo") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
6275 } && test -s conftest.$ac_objext; then
6276 ac_cv_member_struct_stat_st_rdev=yes
6277 else
6278 $as_echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 $ac_includes_default
6288 int
6289 main ()
6290 {
6291 static struct stat ac_aggr;
6292 if (sizeof ac_aggr.st_rdev)
6293 return 0;
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6305 $as_echo "$ac_try_echo") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 ac_cv_member_struct_stat_st_rdev=yes
6317 else
6318 $as_echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ac_cv_member_struct_stat_st_rdev=no
6322 fi
6323
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6330 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6331 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define HAVE_STRUCT_STAT_ST_RDEV 1
6335 _ACEOF
6336
6337
6338 fi
6339
6340 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6341 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6342 if test "${ac_cv_struct_tm+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 #include <sys/types.h>
6352 #include <time.h>
6353
6354 int
6355 main ()
6356 {
6357 struct tm tm;
6358 int *p = &tm.tm_sec;
6359 return !p;
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371 $as_echo "$ac_try_echo") >&5
6372 (eval "$ac_compile") 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
6382 ac_cv_struct_tm=time.h
6383 else
6384 $as_echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cv_struct_tm=sys/time.h
6388 fi
6389
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 fi
6392 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6393 $as_echo "$ac_cv_struct_tm" >&6; }
6394 if test $ac_cv_struct_tm = sys/time.h; then
6395
6396 cat >>confdefs.h <<\_ACEOF
6397 #define TM_IN_SYS_TIME 1
6398 _ACEOF
6399
6400 fi
6401
6402
6403 ################################################################################
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6422 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6423 uname
6424 do
6425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6427 $as_echo_n "checking for $ac_func... " >&6; }
6428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6429 $as_echo_n "(cached) " >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6439 #define $ac_func innocuous_$ac_func
6440
6441 /* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char $ac_func (); below.
6443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6444 <limits.h> exists even on freestanding compilers. */
6445
6446 #ifdef __STDC__
6447 # include <limits.h>
6448 #else
6449 # include <assert.h>
6450 #endif
6451
6452 #undef $ac_func
6453
6454 /* Override any GCC internal prototype to avoid an error.
6455 Use char because int might match the return type of a GCC
6456 builtin and then its argument prototype would still apply. */
6457 #ifdef __cplusplus
6458 extern "C"
6459 #endif
6460 char $ac_func ();
6461 /* The GNU C library defines this for functions which it implements
6462 to always fail with ENOSYS. Some functions are actually named
6463 something starting with __ and the normal name is an alias. */
6464 #if defined __stub_$ac_func || defined __stub___$ac_func
6465 choke me
6466 #endif
6467
6468 int
6469 main ()
6470 {
6471 return $ac_func ();
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484 (eval "$ac_link") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest$ac_exeext && {
6494 test "$cross_compiling" = yes ||
6495 $as_test_x conftest$ac_exeext
6496 }; then
6497 eval "$as_ac_var=yes"
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 eval "$as_ac_var=no"
6503 fi
6504
6505 rm -rf conftest.dSYM
6506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6507 conftest$ac_exeext conftest.$ac_ext
6508 fi
6509 ac_res=`eval 'as_val=${'$as_ac_var'}
6510 $as_echo "$as_val"'`
6511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 as_val=`eval 'as_val=${'$as_ac_var'}
6514 $as_echo "$as_val"'`
6515 if test "x$as_val" = x""yes; then
6516 cat >>confdefs.h <<_ACEOF
6517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6518 _ACEOF
6519
6520 else
6521 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6522 $as_echo "$as_me: error: bailing out" >&2;}
6523 { (exit 1); exit 1; }; }
6524 fi
6525 done
6526
6527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6528 # for constant arguments. Useless!
6529 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6530 $as_echo_n "checking for working alloca.h... " >&6; }
6531 if test "${ac_cv_working_alloca_h+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <alloca.h>
6541 int
6542 main ()
6543 {
6544 char *p = (char *) alloca (2 * sizeof (int));
6545 if (p) return 0;
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6552 case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557 $as_echo "$ac_try_echo") >&5
6558 (eval "$ac_link") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest$ac_exeext && {
6568 test "$cross_compiling" = yes ||
6569 $as_test_x conftest$ac_exeext
6570 }; then
6571 ac_cv_working_alloca_h=yes
6572 else
6573 $as_echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 ac_cv_working_alloca_h=no
6577 fi
6578
6579 rm -rf conftest.dSYM
6580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6581 conftest$ac_exeext conftest.$ac_ext
6582 fi
6583 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6584 $as_echo "$ac_cv_working_alloca_h" >&6; }
6585 if test $ac_cv_working_alloca_h = yes; then
6586
6587 cat >>confdefs.h <<\_ACEOF
6588 #define HAVE_ALLOCA_H 1
6589 _ACEOF
6590
6591 fi
6592
6593 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6594 $as_echo_n "checking for alloca... " >&6; }
6595 if test "${ac_cv_func_alloca_works+set}" = set; then
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #ifdef __GNUC__
6605 # define alloca __builtin_alloca
6606 #else
6607 # ifdef _MSC_VER
6608 # include <malloc.h>
6609 # define alloca _alloca
6610 # else
6611 # ifdef HAVE_ALLOCA_H
6612 # include <alloca.h>
6613 # else
6614 # ifdef _AIX
6615 #pragma alloca
6616 # else
6617 # ifndef alloca /* predefined by HP cc +Olibcalls */
6618 char *alloca ();
6619 # endif
6620 # endif
6621 # endif
6622 # endif
6623 #endif
6624
6625 int
6626 main ()
6627 {
6628 char *p = (char *) alloca (1);
6629 if (p) return 0;
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (ac_try="$ac_link"
6636 case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639 esac
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642 (eval "$ac_link") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest$ac_exeext && {
6652 test "$cross_compiling" = yes ||
6653 $as_test_x conftest$ac_exeext
6654 }; then
6655 ac_cv_func_alloca_works=yes
6656 else
6657 $as_echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_cv_func_alloca_works=no
6661 fi
6662
6663 rm -rf conftest.dSYM
6664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6665 conftest$ac_exeext conftest.$ac_ext
6666 fi
6667 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6668 $as_echo "$ac_cv_func_alloca_works" >&6; }
6669
6670 if test $ac_cv_func_alloca_works = yes; then
6671
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_ALLOCA 1
6674 _ACEOF
6675
6676 else
6677 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6678 # that cause trouble. Some versions do not even contain alloca or
6679 # contain a buggy version. If you still want to use their alloca,
6680 # use ar to extract alloca.o from them instead of compiling alloca.c.
6681
6682 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define C_ALLOCA 1
6686 _ACEOF
6687
6688
6689 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6690 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6691 if test "${ac_cv_os_cray+set}" = set; then
6692 $as_echo_n "(cached) " >&6
6693 else
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #if defined CRAY && ! defined CRAY2
6701 webecray
6702 #else
6703 wenotbecray
6704 #endif
6705
6706 _ACEOF
6707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6708 $EGREP "webecray" >/dev/null 2>&1; then
6709 ac_cv_os_cray=yes
6710 else
6711 ac_cv_os_cray=no
6712 fi
6713 rm -f conftest*
6714
6715 fi
6716 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6717 $as_echo "$ac_cv_os_cray" >&6; }
6718 if test $ac_cv_os_cray = yes; then
6719 for ac_func in _getb67 GETB67 getb67; do
6720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6722 $as_echo_n "checking for $ac_func... " >&6; }
6723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6734 #define $ac_func innocuous_$ac_func
6735
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char $ac_func (); below.
6738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6739 <limits.h> exists even on freestanding compilers. */
6740
6741 #ifdef __STDC__
6742 # include <limits.h>
6743 #else
6744 # include <assert.h>
6745 #endif
6746
6747 #undef $ac_func
6748
6749 /* Override any GCC internal prototype to avoid an error.
6750 Use char because int might match the return type of a GCC
6751 builtin and then its argument prototype would still apply. */
6752 #ifdef __cplusplus
6753 extern "C"
6754 #endif
6755 char $ac_func ();
6756 /* The GNU C library defines this for functions which it implements
6757 to always fail with ENOSYS. Some functions are actually named
6758 something starting with __ and the normal name is an alias. */
6759 #if defined __stub_$ac_func || defined __stub___$ac_func
6760 choke me
6761 #endif
6762
6763 int
6764 main ()
6765 {
6766 return $ac_func ();
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (ac_try="$ac_link"
6773 case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776 esac
6777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6778 $as_echo "$ac_try_echo") >&5
6779 (eval "$ac_link") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest$ac_exeext && {
6789 test "$cross_compiling" = yes ||
6790 $as_test_x conftest$ac_exeext
6791 }; then
6792 eval "$as_ac_var=yes"
6793 else
6794 $as_echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 eval "$as_ac_var=no"
6798 fi
6799
6800 rm -rf conftest.dSYM
6801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6802 conftest$ac_exeext conftest.$ac_ext
6803 fi
6804 ac_res=`eval 'as_val=${'$as_ac_var'}
6805 $as_echo "$as_val"'`
6806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6807 $as_echo "$ac_res" >&6; }
6808 as_val=`eval 'as_val=${'$as_ac_var'}
6809 $as_echo "$as_val"'`
6810 if test "x$as_val" = x""yes; then
6811
6812 cat >>confdefs.h <<_ACEOF
6813 #define CRAY_STACKSEG_END $ac_func
6814 _ACEOF
6815
6816 break
6817 fi
6818
6819 done
6820 fi
6821
6822 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6823 $as_echo_n "checking stack direction for C alloca... " >&6; }
6824 if test "${ac_cv_c_stack_direction+set}" = set; then
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test "$cross_compiling" = yes; then
6828 ac_cv_c_stack_direction=0
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 $ac_includes_default
6837 int
6838 find_stack_direction ()
6839 {
6840 static char *addr = 0;
6841 auto char dummy;
6842 if (addr == 0)
6843 {
6844 addr = &dummy;
6845 return find_stack_direction ();
6846 }
6847 else
6848 return (&dummy > addr) ? 1 : -1;
6849 }
6850
6851 int
6852 main ()
6853 {
6854 return find_stack_direction () < 0;
6855 }
6856 _ACEOF
6857 rm -f conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6859 case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864 $as_echo "$ac_try_echo") >&5
6865 (eval "$ac_link") 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874 $as_echo "$ac_try_echo") >&5
6875 (eval "$ac_try") 2>&5
6876 ac_status=$?
6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_cv_c_stack_direction=1
6880 else
6881 $as_echo "$as_me: program exited with status $ac_status" >&5
6882 $as_echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ( exit $ac_status )
6886 ac_cv_c_stack_direction=-1
6887 fi
6888 rm -rf conftest.dSYM
6889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6890 fi
6891
6892
6893 fi
6894 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6895 $as_echo "$ac_cv_c_stack_direction" >&6; }
6896
6897 cat >>confdefs.h <<_ACEOF
6898 #define STACK_DIRECTION $ac_cv_c_stack_direction
6899 _ACEOF
6900
6901
6902 fi
6903
6904 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6905 $as_echo_n "checking whether closedir returns void... " >&6; }
6906 if test "${ac_cv_func_closedir_void+set}" = set; then
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test "$cross_compiling" = yes; then
6910 ac_cv_func_closedir_void=yes
6911 else
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6919 #include <$ac_header_dirent>
6920 #ifndef __cplusplus
6921 int closedir ();
6922 #endif
6923
6924 int
6925 main ()
6926 {
6927 return closedir (opendir (".")) != 0;
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest$ac_exeext
6933 if { (ac_try="$ac_link"
6934 case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937 esac
6938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6939 $as_echo "$ac_try_echo") >&5
6940 (eval "$ac_link") 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6944 { (case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947 esac
6948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949 $as_echo "$ac_try_echo") >&5
6950 (eval "$ac_try") 2>&5
6951 ac_status=$?
6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_cv_func_closedir_void=no
6955 else
6956 $as_echo "$as_me: program exited with status $ac_status" >&5
6957 $as_echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ( exit $ac_status )
6961 ac_cv_func_closedir_void=yes
6962 fi
6963 rm -rf conftest.dSYM
6964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6965 fi
6966
6967
6968 fi
6969 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6970 $as_echo "$ac_cv_func_closedir_void" >&6; }
6971 if test $ac_cv_func_closedir_void = yes; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define CLOSEDIR_VOID 1
6975 _ACEOF
6976
6977 fi
6978
6979
6980 for ac_header in vfork.h
6981 do
6982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6985 $as_echo_n "checking for $ac_header... " >&6; }
6986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6987 $as_echo_n "(cached) " >&6
6988 fi
6989 ac_res=`eval 'as_val=${'$as_ac_Header'}
6990 $as_echo "$as_val"'`
6991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6992 $as_echo "$ac_res" >&6; }
6993 else
6994 # Is the header compilable?
6995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6996 $as_echo_n "checking $ac_header usability... " >&6; }
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 #include <$ac_header>
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_header_compiler=yes
7025 else
7026 $as_echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ac_header_compiler=no
7030 fi
7031
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 $as_echo "$ac_header_compiler" >&6; }
7035
7036 # Is the header present?
7037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 $as_echo_n "checking $ac_header presence... " >&6; }
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <$ac_header>
7046 _ACEOF
7047 if { (ac_try="$ac_cpp conftest.$ac_ext"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } >/dev/null && {
7061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 }; then
7064 ac_header_preproc=yes
7065 else
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_header_preproc=no
7070 fi
7071
7072 rm -f conftest.err conftest.$ac_ext
7073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074 $as_echo "$ac_header_preproc" >&6; }
7075
7076 # So? What about this header?
7077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 yes:no: )
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083 ac_header_preproc=yes
7084 ;;
7085 no:yes:* )
7086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7098
7099 ;;
7100 esac
7101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 $as_echo_n "checking for $ac_header... " >&6; }
7103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7104 $as_echo_n "(cached) " >&6
7105 else
7106 eval "$as_ac_Header=\$ac_header_preproc"
7107 fi
7108 ac_res=`eval 'as_val=${'$as_ac_Header'}
7109 $as_echo "$as_val"'`
7110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7111 $as_echo "$ac_res" >&6; }
7112
7113 fi
7114 as_val=`eval 'as_val=${'$as_ac_Header'}
7115 $as_echo "$as_val"'`
7116 if test "x$as_val" = x""yes; then
7117 cat >>confdefs.h <<_ACEOF
7118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7119 _ACEOF
7120
7121 fi
7122
7123 done
7124
7125
7126
7127 for ac_func in fork vfork
7128 do
7129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7131 $as_echo_n "checking for $ac_func... " >&6; }
7132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7133 $as_echo_n "(cached) " >&6
7134 else
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7143 #define $ac_func innocuous_$ac_func
7144
7145 /* System header to define __stub macros and hopefully few prototypes,
7146 which can conflict with char $ac_func (); below.
7147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148 <limits.h> exists even on freestanding compilers. */
7149
7150 #ifdef __STDC__
7151 # include <limits.h>
7152 #else
7153 # include <assert.h>
7154 #endif
7155
7156 #undef $ac_func
7157
7158 /* Override any GCC internal prototype to avoid an error.
7159 Use char because int might match the return type of a GCC
7160 builtin and then its argument prototype would still apply. */
7161 #ifdef __cplusplus
7162 extern "C"
7163 #endif
7164 char $ac_func ();
7165 /* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7168 #if defined __stub_$ac_func || defined __stub___$ac_func
7169 choke me
7170 #endif
7171
7172 int
7173 main ()
7174 {
7175 return $ac_func ();
7176 ;
7177 return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext conftest$ac_exeext
7181 if { (ac_try="$ac_link"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_link") 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest$ac_exeext && {
7198 test "$cross_compiling" = yes ||
7199 $as_test_x conftest$ac_exeext
7200 }; then
7201 eval "$as_ac_var=yes"
7202 else
7203 $as_echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 eval "$as_ac_var=no"
7207 fi
7208
7209 rm -rf conftest.dSYM
7210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7211 conftest$ac_exeext conftest.$ac_ext
7212 fi
7213 ac_res=`eval 'as_val=${'$as_ac_var'}
7214 $as_echo "$as_val"'`
7215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7216 $as_echo "$ac_res" >&6; }
7217 as_val=`eval 'as_val=${'$as_ac_var'}
7218 $as_echo "$as_val"'`
7219 if test "x$as_val" = x""yes; then
7220 cat >>confdefs.h <<_ACEOF
7221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7222 _ACEOF
7223
7224 fi
7225 done
7226
7227 if test "x$ac_cv_func_fork" = xyes; then
7228 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7229 $as_echo_n "checking for working fork... " >&6; }
7230 if test "${ac_cv_func_fork_works+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test "$cross_compiling" = yes; then
7234 ac_cv_func_fork_works=cross
7235 else
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 $ac_includes_default
7243 int
7244 main ()
7245 {
7246
7247 /* By Ruediger Kuhlmann. */
7248 return fork () < 0;
7249
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest$ac_exeext
7255 if { (ac_try="$ac_link"
7256 case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259 esac
7260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261 $as_echo "$ac_try_echo") >&5
7262 (eval "$ac_link") 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7266 { (case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_try") 2>&5
7273 ac_status=$?
7274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 ac_cv_func_fork_works=yes
7277 else
7278 $as_echo "$as_me: program exited with status $ac_status" >&5
7279 $as_echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ( exit $ac_status )
7283 ac_cv_func_fork_works=no
7284 fi
7285 rm -rf conftest.dSYM
7286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7287 fi
7288
7289
7290 fi
7291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7292 $as_echo "$ac_cv_func_fork_works" >&6; }
7293
7294 else
7295 ac_cv_func_fork_works=$ac_cv_func_fork
7296 fi
7297 if test "x$ac_cv_func_fork_works" = xcross; then
7298 case $host in
7299 *-*-amigaos* | *-*-msdosdjgpp*)
7300 # Override, as these systems have only a dummy fork() stub
7301 ac_cv_func_fork_works=no
7302 ;;
7303 *)
7304 ac_cv_func_fork_works=yes
7305 ;;
7306 esac
7307 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7308 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7309 fi
7310 ac_cv_func_vfork_works=$ac_cv_func_vfork
7311 if test "x$ac_cv_func_vfork" = xyes; then
7312 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7313 $as_echo_n "checking for working vfork... " >&6; }
7314 if test "${ac_cv_func_vfork_works+set}" = set; then
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test "$cross_compiling" = yes; then
7318 ac_cv_func_vfork_works=cross
7319 else
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 /* Thanks to Paul Eggert for this test. */
7327 $ac_includes_default
7328 #include <sys/wait.h>
7329 #ifdef HAVE_VFORK_H
7330 # include <vfork.h>
7331 #endif
7332 /* On some sparc systems, changes by the child to local and incoming
7333 argument registers are propagated back to the parent. The compiler
7334 is told about this with #include <vfork.h>, but some compilers
7335 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7336 static variable whose address is put into a register that is
7337 clobbered by the vfork. */
7338 static void
7339 #ifdef __cplusplus
7340 sparc_address_test (int arg)
7341 # else
7342 sparc_address_test (arg) int arg;
7343 #endif
7344 {
7345 static pid_t child;
7346 if (!child) {
7347 child = vfork ();
7348 if (child < 0) {
7349 perror ("vfork");
7350 _exit(2);
7351 }
7352 if (!child) {
7353 arg = getpid();
7354 write(-1, "", 0);
7355 _exit (arg);
7356 }
7357 }
7358 }
7359
7360 int
7361 main ()
7362 {
7363 pid_t parent = getpid ();
7364 pid_t child;
7365
7366 sparc_address_test (0);
7367
7368 child = vfork ();
7369
7370 if (child == 0) {
7371 /* Here is another test for sparc vfork register problems. This
7372 test uses lots of local variables, at least as many local
7373 variables as main has allocated so far including compiler
7374 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7375 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7376 reuse the register of parent for one of the local variables,
7377 since it will think that parent can't possibly be used any more
7378 in this routine. Assigning to the local variable will thus
7379 munge parent in the parent process. */
7380 pid_t
7381 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7382 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7383 /* Convince the compiler that p..p7 are live; otherwise, it might
7384 use the same hardware register for all 8 local variables. */
7385 if (p != p1 || p != p2 || p != p3 || p != p4
7386 || p != p5 || p != p6 || p != p7)
7387 _exit(1);
7388
7389 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7390 from child file descriptors. If the child closes a descriptor
7391 before it execs or exits, this munges the parent's descriptor
7392 as well. Test for this by closing stdout in the child. */
7393 _exit(close(fileno(stdout)) != 0);
7394 } else {
7395 int status;
7396 struct stat st;
7397
7398 while (wait(&status) != child)
7399 ;
7400 return (
7401 /* Was there some problem with vforking? */
7402 child < 0
7403
7404 /* Did the child fail? (This shouldn't happen.) */
7405 || status
7406
7407 /* Did the vfork/compiler bug occur? */
7408 || parent != getpid()
7409
7410 /* Did the file descriptor bug occur? */
7411 || fstat(fileno(stdout), &st) != 0
7412 );
7413 }
7414 }
7415 _ACEOF
7416 rm -f conftest$ac_exeext
7417 if { (ac_try="$ac_link"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7423 $as_echo "$ac_try_echo") >&5
7424 (eval "$ac_link") 2>&5
7425 ac_status=$?
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7428 { (case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7433 $as_echo "$ac_try_echo") >&5
7434 (eval "$ac_try") 2>&5
7435 ac_status=$?
7436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_func_vfork_works=yes
7439 else
7440 $as_echo "$as_me: program exited with status $ac_status" >&5
7441 $as_echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7443
7444 ( exit $ac_status )
7445 ac_cv_func_vfork_works=no
7446 fi
7447 rm -rf conftest.dSYM
7448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7449 fi
7450
7451
7452 fi
7453 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7454 $as_echo "$ac_cv_func_vfork_works" >&6; }
7455
7456 fi;
7457 if test "x$ac_cv_func_fork_works" = xcross; then
7458 ac_cv_func_vfork_works=$ac_cv_func_vfork
7459 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7460 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7461 fi
7462
7463 if test "x$ac_cv_func_vfork_works" = xyes; then
7464
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_WORKING_VFORK 1
7467 _ACEOF
7468
7469 else
7470
7471 cat >>confdefs.h <<\_ACEOF
7472 #define vfork fork
7473 _ACEOF
7474
7475 fi
7476 if test "x$ac_cv_func_fork_works" = xyes; then
7477
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_WORKING_FORK 1
7480 _ACEOF
7481
7482 fi
7483
7484 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7485 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7486 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7487 $as_echo_n "(cached) " >&6
7488 else
7489 rm -f conftest.sym conftest.file
7490 echo >conftest.file
7491 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7492 if test "$cross_compiling" = yes; then
7493 ac_cv_func_lstat_dereferences_slashed_symlink=no
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7502 int
7503 main ()
7504 {
7505 struct stat sbuf;
7506 /* Linux will dereference the symlink and fail.
7507 That is better in the sense that it means we will not
7508 have to compile and use the lstat wrapper. */
7509 return lstat ("conftest.sym/", &sbuf) == 0;
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7516 case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519 esac
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522 (eval "$ac_link") 2>&5
7523 ac_status=$?
7524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7526 { (case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529 esac
7530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531 $as_echo "$ac_try_echo") >&5
7532 (eval "$ac_try") 2>&5
7533 ac_status=$?
7534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7537 else
7538 $as_echo "$as_me: program exited with status $ac_status" >&5
7539 $as_echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 ( exit $ac_status )
7543 ac_cv_func_lstat_dereferences_slashed_symlink=no
7544 fi
7545 rm -rf conftest.dSYM
7546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7547 fi
7548
7549
7550 else
7551 # If the `ln -s' command failed, then we probably don't even
7552 # have an lstat function.
7553 ac_cv_func_lstat_dereferences_slashed_symlink=no
7554 fi
7555 rm -f conftest.sym conftest.file
7556
7557 fi
7558 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7559 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7560
7561 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7565 _ACEOF
7566
7567
7568 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7569 case " $LIBOBJS " in
7570 *" lstat.$ac_objext "* ) ;;
7571 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7572 ;;
7573 esac
7574
7575 fi
7576
7577 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7578 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7579 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test "$cross_compiling" = yes; then
7583 ac_cv_func_lstat_empty_string_bug=yes
7584 else
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7592 int
7593 main ()
7594 {
7595 struct stat sbuf;
7596 return lstat ("", &sbuf) == 0;
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7603 case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606 esac
7607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7608 $as_echo "$ac_try_echo") >&5
7609 (eval "$ac_link") 2>&5
7610 ac_status=$?
7611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7613 { (case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616 esac
7617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7618 $as_echo "$ac_try_echo") >&5
7619 (eval "$ac_try") 2>&5
7620 ac_status=$?
7621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_func_lstat_empty_string_bug=no
7624 else
7625 $as_echo "$as_me: program exited with status $ac_status" >&5
7626 $as_echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ( exit $ac_status )
7630 ac_cv_func_lstat_empty_string_bug=yes
7631 fi
7632 rm -rf conftest.dSYM
7633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7634 fi
7635
7636
7637 fi
7638 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7639 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7640 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7641 case " $LIBOBJS " in
7642 *" lstat.$ac_objext "* ) ;;
7643 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7644 ;;
7645 esac
7646
7647
7648 cat >>confdefs.h <<_ACEOF
7649 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7650 _ACEOF
7651
7652 fi
7653
7654
7655 for ac_header in stdlib.h
7656 do
7657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7659 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 $as_echo_n "checking for $ac_header... " >&6; }
7661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7662 $as_echo_n "(cached) " >&6
7663 fi
7664 ac_res=`eval 'as_val=${'$as_ac_Header'}
7665 $as_echo "$as_val"'`
7666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7667 $as_echo "$ac_res" >&6; }
7668 else
7669 # Is the header compilable?
7670 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7671 $as_echo_n "checking $ac_header usability... " >&6; }
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7679 #include <$ac_header>
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (ac_try="$ac_compile"
7683 case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686 esac
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 ac_header_compiler=yes
7700 else
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 ac_header_compiler=no
7705 fi
7706
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7709 $as_echo "$ac_header_compiler" >&6; }
7710
7711 # Is the header present?
7712 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7713 $as_echo_n "checking $ac_header presence... " >&6; }
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 #include <$ac_header>
7721 _ACEOF
7722 if { (ac_try="$ac_cpp conftest.$ac_ext"
7723 case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726 esac
7727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728 $as_echo "$ac_try_echo") >&5
7729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } >/dev/null && {
7736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 }; then
7739 ac_header_preproc=yes
7740 else
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ac_header_preproc=no
7745 fi
7746
7747 rm -f conftest.err conftest.$ac_ext
7748 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7749 $as_echo "$ac_header_preproc" >&6; }
7750
7751 # So? What about this header?
7752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7753 yes:no: )
7754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7755 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7757 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7758 ac_header_preproc=yes
7759 ;;
7760 no:yes:* )
7761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7762 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7764 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7766 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7768 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7770 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7772 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7773
7774 ;;
7775 esac
7776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 $as_echo_n "checking for $ac_header... " >&6; }
7778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779 $as_echo_n "(cached) " >&6
7780 else
7781 eval "$as_ac_Header=\$ac_header_preproc"
7782 fi
7783 ac_res=`eval 'as_val=${'$as_ac_Header'}
7784 $as_echo "$as_val"'`
7785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7786 $as_echo "$ac_res" >&6; }
7787
7788 fi
7789 as_val=`eval 'as_val=${'$as_ac_Header'}
7790 $as_echo "$as_val"'`
7791 if test "x$as_val" = x""yes; then
7792 cat >>confdefs.h <<_ACEOF
7793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794 _ACEOF
7795
7796 fi
7797
7798 done
7799
7800 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7801 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7802 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test "$cross_compiling" = yes; then
7806 ac_cv_func_malloc_0_nonnull=no
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7815 # include <stdlib.h>
7816 #else
7817 char *malloc ();
7818 #endif
7819
7820 int
7821 main ()
7822 {
7823 return ! malloc (0);
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7835 $as_echo "$ac_try_echo") >&5
7836 (eval "$ac_link") 2>&5
7837 ac_status=$?
7838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7845 $as_echo "$ac_try_echo") >&5
7846 (eval "$ac_try") 2>&5
7847 ac_status=$?
7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_func_malloc_0_nonnull=yes
7851 else
7852 $as_echo "$as_me: program exited with status $ac_status" >&5
7853 $as_echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 ( exit $ac_status )
7857 ac_cv_func_malloc_0_nonnull=no
7858 fi
7859 rm -rf conftest.dSYM
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7861 fi
7862
7863
7864 fi
7865 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7866 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7867 if test $ac_cv_func_malloc_0_nonnull = yes; then
7868
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_MALLOC 1
7871 _ACEOF
7872
7873 else
7874 cat >>confdefs.h <<\_ACEOF
7875 #define HAVE_MALLOC 0
7876 _ACEOF
7877
7878 case " $LIBOBJS " in
7879 *" malloc.$ac_objext "* ) ;;
7880 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7881 ;;
7882 esac
7883
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define malloc rpl_malloc
7887 _ACEOF
7888
7889 fi
7890
7891
7892
7893 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7894 $as_echo_n "checking for working memcmp... " >&6; }
7895 if test "${ac_cv_func_memcmp_working+set}" = set; then
7896 $as_echo_n "(cached) " >&6
7897 else
7898 if test "$cross_compiling" = yes; then
7899 ac_cv_func_memcmp_working=no
7900 else
7901 cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h. */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 $ac_includes_default
7908 int
7909 main ()
7910 {
7911
7912 /* Some versions of memcmp are not 8-bit clean. */
7913 char c0 = '\100', c1 = '\200', c2 = '\201';
7914 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7915 return 1;
7916
7917 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7918 or more and with at least one buffer not starting on a 4-byte boundary.
7919 William Lewis provided this test program. */
7920 {
7921 char foo[21];
7922 char bar[21];
7923 int i;
7924 for (i = 0; i < 4; i++)
7925 {
7926 char *a = foo + i;
7927 char *b = bar + i;
7928 strcpy (a, "--------01111111");
7929 strcpy (b, "--------10000000");
7930 if (memcmp (a, b, 16) >= 0)
7931 return 1;
7932 }
7933 return 0;
7934 }
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_link") 2>&5
7949 ac_status=$?
7950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7952 { (case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955 esac
7956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7957 $as_echo "$ac_try_echo") >&5
7958 (eval "$ac_try") 2>&5
7959 ac_status=$?
7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_func_memcmp_working=yes
7963 else
7964 $as_echo "$as_me: program exited with status $ac_status" >&5
7965 $as_echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968 ( exit $ac_status )
7969 ac_cv_func_memcmp_working=no
7970 fi
7971 rm -rf conftest.dSYM
7972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7973 fi
7974
7975
7976 fi
7977 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7978 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7979 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7980 *" memcmp.$ac_objext "* ) ;;
7981 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7982 ;;
7983 esac
7984
7985
7986
7987
7988 for ac_header in stdlib.h unistd.h
7989 do
7990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 $as_echo_n "checking for $ac_header... " >&6; }
7994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7995 $as_echo_n "(cached) " >&6
7996 fi
7997 ac_res=`eval 'as_val=${'$as_ac_Header'}
7998 $as_echo "$as_val"'`
7999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8000 $as_echo "$ac_res" >&6; }
8001 else
8002 # Is the header compilable?
8003 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8004 $as_echo_n "checking $ac_header usability... " >&6; }
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8012 #include <$ac_header>
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (ac_try="$ac_compile"
8016 case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019 esac
8020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8021 $as_echo "$ac_try_echo") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_header_compiler=yes
8033 else
8034 $as_echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_header_compiler=no
8038 fi
8039
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8042 $as_echo "$ac_header_compiler" >&6; }
8043
8044 # Is the header present?
8045 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8046 $as_echo_n "checking $ac_header presence... " >&6; }
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 #include <$ac_header>
8054 _ACEOF
8055 if { (ac_try="$ac_cpp conftest.$ac_ext"
8056 case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059 esac
8060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8061 $as_echo "$ac_try_echo") >&5
8062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } >/dev/null && {
8069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 }; then
8072 ac_header_preproc=yes
8073 else
8074 $as_echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 ac_header_preproc=no
8078 fi
8079
8080 rm -f conftest.err conftest.$ac_ext
8081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8082 $as_echo "$ac_header_preproc" >&6; }
8083
8084 # So? What about this header?
8085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8086 yes:no: )
8087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8088 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8091 ac_header_preproc=yes
8092 ;;
8093 no:yes:* )
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8099 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8101 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8106
8107 ;;
8108 esac
8109 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 $as_echo_n "checking for $ac_header... " >&6; }
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112 $as_echo_n "(cached) " >&6
8113 else
8114 eval "$as_ac_Header=\$ac_header_preproc"
8115 fi
8116 ac_res=`eval 'as_val=${'$as_ac_Header'}
8117 $as_echo "$as_val"'`
8118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8119 $as_echo "$ac_res" >&6; }
8120
8121 fi
8122 as_val=`eval 'as_val=${'$as_ac_Header'}
8123 $as_echo "$as_val"'`
8124 if test "x$as_val" = x""yes; then
8125 cat >>confdefs.h <<_ACEOF
8126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127 _ACEOF
8128
8129 fi
8130
8131 done
8132
8133
8134 for ac_func in getpagesize
8135 do
8136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8137 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8138 $as_echo_n "checking for $ac_func... " >&6; }
8139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8140 $as_echo_n "(cached) " >&6
8141 else
8142 cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h. */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8150 #define $ac_func innocuous_$ac_func
8151
8152 /* System header to define __stub macros and hopefully few prototypes,
8153 which can conflict with char $ac_func (); below.
8154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155 <limits.h> exists even on freestanding compilers. */
8156
8157 #ifdef __STDC__
8158 # include <limits.h>
8159 #else
8160 # include <assert.h>
8161 #endif
8162
8163 #undef $ac_func
8164
8165 /* Override any GCC internal prototype to avoid an error.
8166 Use char because int might match the return type of a GCC
8167 builtin and then its argument prototype would still apply. */
8168 #ifdef __cplusplus
8169 extern "C"
8170 #endif
8171 char $ac_func ();
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined __stub_$ac_func || defined __stub___$ac_func
8176 choke me
8177 #endif
8178
8179 int
8180 main ()
8181 {
8182 return $ac_func ();
8183 ;
8184 return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext conftest$ac_exeext
8188 if { (ac_try="$ac_link"
8189 case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192 esac
8193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8194 $as_echo "$ac_try_echo") >&5
8195 (eval "$ac_link") 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest$ac_exeext && {
8205 test "$cross_compiling" = yes ||
8206 $as_test_x conftest$ac_exeext
8207 }; then
8208 eval "$as_ac_var=yes"
8209 else
8210 $as_echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 eval "$as_ac_var=no"
8214 fi
8215
8216 rm -rf conftest.dSYM
8217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8218 conftest$ac_exeext conftest.$ac_ext
8219 fi
8220 ac_res=`eval 'as_val=${'$as_ac_var'}
8221 $as_echo "$as_val"'`
8222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8223 $as_echo "$ac_res" >&6; }
8224 as_val=`eval 'as_val=${'$as_ac_var'}
8225 $as_echo "$as_val"'`
8226 if test "x$as_val" = x""yes; then
8227 cat >>confdefs.h <<_ACEOF
8228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8229 _ACEOF
8230
8231 fi
8232 done
8233
8234 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8235 $as_echo_n "checking for working mmap... " >&6; }
8236 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test "$cross_compiling" = yes; then
8240 ac_cv_func_mmap_fixed_mapped=no
8241 else
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8249 /* malloc might have been renamed as rpl_malloc. */
8250 #undef malloc
8251
8252 /* Thanks to Mike Haertel and Jim Avera for this test.
8253 Here is a matrix of mmap possibilities:
8254 mmap private not fixed
8255 mmap private fixed at somewhere currently unmapped
8256 mmap private fixed at somewhere already mapped
8257 mmap shared not fixed
8258 mmap shared fixed at somewhere currently unmapped
8259 mmap shared fixed at somewhere already mapped
8260 For private mappings, we should verify that changes cannot be read()
8261 back from the file, nor mmap's back from the file at a different
8262 address. (There have been systems where private was not correctly
8263 implemented like the infamous i386 svr4.0, and systems where the
8264 VM page cache was not coherent with the file system buffer cache
8265 like early versions of FreeBSD and possibly contemporary NetBSD.)
8266 For shared mappings, we should conversely verify that changes get
8267 propagated back to all the places they're supposed to be.
8268
8269 Grep wants private fixed already mapped.
8270 The main things grep needs to know about mmap are:
8271 * does it exist and is it safe to write into the mmap'd area
8272 * how to use it (BSD variants) */
8273
8274 #include <fcntl.h>
8275 #include <sys/mman.h>
8276
8277 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8278 char *malloc ();
8279 #endif
8280
8281 /* This mess was copied from the GNU getpagesize.h. */
8282 #ifndef HAVE_GETPAGESIZE
8283 /* Assume that all systems that can run configure have sys/param.h. */
8284 # ifndef HAVE_SYS_PARAM_H
8285 # define HAVE_SYS_PARAM_H 1
8286 # endif
8287
8288 # ifdef _SC_PAGESIZE
8289 # define getpagesize() sysconf(_SC_PAGESIZE)
8290 # else /* no _SC_PAGESIZE */
8291 # ifdef HAVE_SYS_PARAM_H
8292 # include <sys/param.h>
8293 # ifdef EXEC_PAGESIZE
8294 # define getpagesize() EXEC_PAGESIZE
8295 # else /* no EXEC_PAGESIZE */
8296 # ifdef NBPG
8297 # define getpagesize() NBPG * CLSIZE
8298 # ifndef CLSIZE
8299 # define CLSIZE 1
8300 # endif /* no CLSIZE */
8301 # else /* no NBPG */
8302 # ifdef NBPC
8303 # define getpagesize() NBPC
8304 # else /* no NBPC */
8305 # ifdef PAGESIZE
8306 # define getpagesize() PAGESIZE
8307 # endif /* PAGESIZE */
8308 # endif /* no NBPC */
8309 # endif /* no NBPG */
8310 # endif /* no EXEC_PAGESIZE */
8311 # else /* no HAVE_SYS_PARAM_H */
8312 # define getpagesize() 8192 /* punt totally */
8313 # endif /* no HAVE_SYS_PARAM_H */
8314 # endif /* no _SC_PAGESIZE */
8315
8316 #endif /* no HAVE_GETPAGESIZE */
8317
8318 int
8319 main ()
8320 {
8321 char *data, *data2, *data3;
8322 int i, pagesize;
8323 int fd;
8324
8325 pagesize = getpagesize ();
8326
8327 /* First, make a file with some known garbage in it. */
8328 data = (char *) malloc (pagesize);
8329 if (!data)
8330 return 1;
8331 for (i = 0; i < pagesize; ++i)
8332 *(data + i) = rand ();
8333 umask (0);
8334 fd = creat ("conftest.mmap", 0600);
8335 if (fd < 0)
8336 return 1;
8337 if (write (fd, data, pagesize) != pagesize)
8338 return 1;
8339 close (fd);
8340
8341 /* Next, try to mmap the file at a fixed address which already has
8342 something else allocated at it. If we can, also make sure that
8343 we see the same garbage. */
8344 fd = open ("conftest.mmap", O_RDWR);
8345 if (fd < 0)
8346 return 1;
8347 data2 = (char *) malloc (2 * pagesize);
8348 if (!data2)
8349 return 1;
8350 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8351 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8352 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8353 return 1;
8354 for (i = 0; i < pagesize; ++i)
8355 if (*(data + i) != *(data2 + i))
8356 return 1;
8357
8358 /* Finally, make sure that changes to the mapped area do not
8359 percolate back to the file as seen by read(). (This is a bug on
8360 some variants of i386 svr4.0.) */
8361 for (i = 0; i < pagesize; ++i)
8362 *(data2 + i) = *(data2 + i) + 1;
8363 data3 = (char *) malloc (pagesize);
8364 if (!data3)
8365 return 1;
8366 if (read (fd, data3, pagesize) != pagesize)
8367 return 1;
8368 for (i = 0; i < pagesize; ++i)
8369 if (*(data + i) != *(data3 + i))
8370 return 1;
8371 close (fd);
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382 $as_echo "$ac_try_echo") >&5
8383 (eval "$ac_link") 2>&5
8384 ac_status=$?
8385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390 esac
8391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392 $as_echo "$ac_try_echo") >&5
8393 (eval "$ac_try") 2>&5
8394 ac_status=$?
8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_func_mmap_fixed_mapped=yes
8398 else
8399 $as_echo "$as_me: program exited with status $ac_status" >&5
8400 $as_echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8402
8403 ( exit $ac_status )
8404 ac_cv_func_mmap_fixed_mapped=no
8405 fi
8406 rm -rf conftest.dSYM
8407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8408 fi
8409
8410
8411 fi
8412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8413 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8414 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8415
8416 cat >>confdefs.h <<\_ACEOF
8417 #define HAVE_MMAP 1
8418 _ACEOF
8419
8420 fi
8421 rm -f conftest.mmap
8422
8423 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8424 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8425 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8426 $as_echo_n "(cached) " >&6
8427 else
8428 if test "$cross_compiling" = yes; then
8429 ac_cv_func_stat_empty_string_bug=yes
8430 else
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 $ac_includes_default
8438 int
8439 main ()
8440 {
8441 struct stat sbuf;
8442 return stat ("", &sbuf) == 0;
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8449 case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_link") 2>&5
8456 ac_status=$?
8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464 $as_echo "$ac_try_echo") >&5
8465 (eval "$ac_try") 2>&5
8466 ac_status=$?
8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_func_stat_empty_string_bug=no
8470 else
8471 $as_echo "$as_me: program exited with status $ac_status" >&5
8472 $as_echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ( exit $ac_status )
8476 ac_cv_func_stat_empty_string_bug=yes
8477 fi
8478 rm -rf conftest.dSYM
8479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8480 fi
8481
8482
8483 fi
8484 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8485 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8486 if test $ac_cv_func_stat_empty_string_bug = yes; then
8487 case " $LIBOBJS " in
8488 *" stat.$ac_objext "* ) ;;
8489 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8490 ;;
8491 esac
8492
8493
8494 cat >>confdefs.h <<_ACEOF
8495 #define HAVE_STAT_EMPTY_STRING_BUG 1
8496 _ACEOF
8497
8498 fi
8499
8500 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8501 $as_echo_n "checking for working strtod... " >&6; }
8502 if test "${ac_cv_func_strtod+set}" = set; then
8503 $as_echo_n "(cached) " >&6
8504 else
8505 if test "$cross_compiling" = yes; then
8506 ac_cv_func_strtod=no
8507 else
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514
8515 $ac_includes_default
8516 #ifndef strtod
8517 double strtod ();
8518 #endif
8519 int
8520 main()
8521 {
8522 {
8523 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8524 char *string = " +69";
8525 char *term;
8526 double value;
8527 value = strtod (string, &term);
8528 if (value != 69 || term != (string + 4))
8529 return 1;
8530 }
8531
8532 {
8533 /* Under Solaris 2.4, strtod returns the wrong value for the
8534 terminating character under some conditions. */
8535 char *string = "NaN";
8536 char *term;
8537 strtod (string, &term);
8538 if (term != string && *(term - 1) == 0)
8539 return 1;
8540 }
8541 return 0;
8542 }
8543
8544 _ACEOF
8545 rm -f conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552 $as_echo "$ac_try_echo") >&5
8553 (eval "$ac_link") 2>&5
8554 ac_status=$?
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8562 $as_echo "$ac_try_echo") >&5
8563 (eval "$ac_try") 2>&5
8564 ac_status=$?
8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_func_strtod=yes
8568 else
8569 $as_echo "$as_me: program exited with status $ac_status" >&5
8570 $as_echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ( exit $ac_status )
8574 ac_cv_func_strtod=no
8575 fi
8576 rm -rf conftest.dSYM
8577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8578 fi
8579
8580
8581 fi
8582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8583 $as_echo "$ac_cv_func_strtod" >&6; }
8584 if test $ac_cv_func_strtod = no; then
8585 case " $LIBOBJS " in
8586 *" strtod.$ac_objext "* ) ;;
8587 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8588 ;;
8589 esac
8590
8591 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8592 $as_echo_n "checking for pow... " >&6; }
8593 if test "${ac_cv_func_pow+set}" = set; then
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604 #define pow innocuous_pow
8605
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char pow (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
8610
8611 #ifdef __STDC__
8612 # include <limits.h>
8613 #else
8614 # include <assert.h>
8615 #endif
8616
8617 #undef pow
8618
8619 /* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 char pow ();
8626 /* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629 #if defined __stub_pow || defined __stub___pow
8630 choke me
8631 #endif
8632
8633 int
8634 main ()
8635 {
8636 return pow ();
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (ac_try="$ac_link"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649 (eval "$ac_link") 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest$ac_exeext && {
8659 test "$cross_compiling" = yes ||
8660 $as_test_x conftest$ac_exeext
8661 }; then
8662 ac_cv_func_pow=yes
8663 else
8664 $as_echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_cv_func_pow=no
8668 fi
8669
8670 rm -rf conftest.dSYM
8671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672 conftest$ac_exeext conftest.$ac_ext
8673 fi
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8675 $as_echo "$ac_cv_func_pow" >&6; }
8676
8677 if test $ac_cv_func_pow = no; then
8678 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8679 $as_echo_n "checking for pow in -lm... " >&6; }
8680 if test "${ac_cv_lib_m_pow+set}" = set; then
8681 $as_echo_n "(cached) " >&6
8682 else
8683 ac_check_lib_save_LIBS=$LIBS
8684 LIBS="-lm $LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691
8692 /* Override any GCC internal prototype to avoid an error.
8693 Use char because int might match the return type of a GCC
8694 builtin and then its argument prototype would still apply. */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 char pow ();
8699 int
8700 main ()
8701 {
8702 return pow ();
8703 ;
8704 return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (ac_try="$ac_link"
8709 case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712 esac
8713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714 $as_echo "$ac_try_echo") >&5
8715 (eval "$ac_link") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest$ac_exeext && {
8725 test "$cross_compiling" = yes ||
8726 $as_test_x conftest$ac_exeext
8727 }; then
8728 ac_cv_lib_m_pow=yes
8729 else
8730 $as_echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733 ac_cv_lib_m_pow=no
8734 fi
8735
8736 rm -rf conftest.dSYM
8737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8740 fi
8741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8742 $as_echo "$ac_cv_lib_m_pow" >&6; }
8743 if test "x$ac_cv_lib_m_pow" = x""yes; then
8744 POW_LIB=-lm
8745 else
8746 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8747 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8748 fi
8749
8750 fi
8751
8752 fi
8753
8754
8755 for ac_func in vprintf
8756 do
8757 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8758 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8759 $as_echo_n "checking for $ac_func... " >&6; }
8760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8761 $as_echo_n "(cached) " >&6
8762 else
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8771 #define $ac_func innocuous_$ac_func
8772
8773 /* System header to define __stub macros and hopefully few prototypes,
8774 which can conflict with char $ac_func (); below.
8775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8776 <limits.h> exists even on freestanding compilers. */
8777
8778 #ifdef __STDC__
8779 # include <limits.h>
8780 #else
8781 # include <assert.h>
8782 #endif
8783
8784 #undef $ac_func
8785
8786 /* Override any GCC internal prototype to avoid an error.
8787 Use char because int might match the return type of a GCC
8788 builtin and then its argument prototype would still apply. */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 char $ac_func ();
8793 /* The GNU C library defines this for functions which it implements
8794 to always fail with ENOSYS. Some functions are actually named
8795 something starting with __ and the normal name is an alias. */
8796 #if defined __stub_$ac_func || defined __stub___$ac_func
8797 choke me
8798 #endif
8799
8800 int
8801 main ()
8802 {
8803 return $ac_func ();
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (ac_try="$ac_link"
8810 case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816 (eval "$ac_link") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest$ac_exeext && {
8826 test "$cross_compiling" = yes ||
8827 $as_test_x conftest$ac_exeext
8828 }; then
8829 eval "$as_ac_var=yes"
8830 else
8831 $as_echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 eval "$as_ac_var=no"
8835 fi
8836
8837 rm -rf conftest.dSYM
8838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839 conftest$ac_exeext conftest.$ac_ext
8840 fi
8841 ac_res=`eval 'as_val=${'$as_ac_var'}
8842 $as_echo "$as_val"'`
8843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8844 $as_echo "$ac_res" >&6; }
8845 as_val=`eval 'as_val=${'$as_ac_var'}
8846 $as_echo "$as_val"'`
8847 if test "x$as_val" = x""yes; then
8848 cat >>confdefs.h <<_ACEOF
8849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8850 _ACEOF
8851
8852 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8853 $as_echo_n "checking for _doprnt... " >&6; }
8854 if test "${ac_cv_func__doprnt+set}" = set; then
8855 $as_echo_n "(cached) " >&6
8856 else
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8865 #define _doprnt innocuous__doprnt
8866
8867 /* System header to define __stub macros and hopefully few prototypes,
8868 which can conflict with char _doprnt (); below.
8869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870 <limits.h> exists even on freestanding compilers. */
8871
8872 #ifdef __STDC__
8873 # include <limits.h>
8874 #else
8875 # include <assert.h>
8876 #endif
8877
8878 #undef _doprnt
8879
8880 /* Override any GCC internal prototype to avoid an error.
8881 Use char because int might match the return type of a GCC
8882 builtin and then its argument prototype would still apply. */
8883 #ifdef __cplusplus
8884 extern "C"
8885 #endif
8886 char _doprnt ();
8887 /* The GNU C library defines this for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890 #if defined __stub__doprnt || defined __stub____doprnt
8891 choke me
8892 #endif
8893
8894 int
8895 main ()
8896 {
8897 return _doprnt ();
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8904 case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907 esac
8908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8909 $as_echo "$ac_try_echo") >&5
8910 (eval "$ac_link") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest$ac_exeext && {
8920 test "$cross_compiling" = yes ||
8921 $as_test_x conftest$ac_exeext
8922 }; then
8923 ac_cv_func__doprnt=yes
8924 else
8925 $as_echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928 ac_cv_func__doprnt=no
8929 fi
8930
8931 rm -rf conftest.dSYM
8932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8933 conftest$ac_exeext conftest.$ac_ext
8934 fi
8935 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8936 $as_echo "$ac_cv_func__doprnt" >&6; }
8937 if test "x$ac_cv_func__doprnt" = x""yes; then
8938
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_DOPRNT 1
8941 _ACEOF
8942
8943 fi
8944
8945 fi
8946 done
8947
8948
8949
8950 ################################################################################
8951 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8952 $as_echo_n "checking whether to use static linking... " >&6; }
8953 # Check whether --enable-static_link was given.
8954 if test "${enable_static_link+set}" = set; then
8955 enableval=$enable_static_link; STATIC_LINK=$enableval
8956 else
8957 STATIC_LINK=no
8958 fi
8959
8960 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8961 $as_echo "$STATIC_LINK" >&6; }
8962
8963 ################################################################################
8964
8965
8966 ################################################################################
8967 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8968 $as_echo_n "checking file owner... " >&6; }
8969 OWNER="root"
8970
8971
8972 # Check whether --with-user was given.
8973 if test "${with_user+set}" = set; then
8974 withval=$with_user; OWNER="$withval"
8975 fi
8976
8977 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8978 $as_echo "$OWNER" >&6; }
8979
8980 if test x$OWNER != x; then
8981 OWNER="-o $OWNER"
8982 fi
8983
8984 ################################################################################
8985 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8986 $as_echo_n "checking group owner... " >&6; }
8987 GROUP="root"
8988
8989 # Check whether --with-group was given.
8990 if test "${with_group+set}" = set; then
8991 withval=$with_group; GROUP="$withval"
8992 fi
8993
8994 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8995 $as_echo "$GROUP" >&6; }
8996
8997 if test x$GROUP != x; then
8998 GROUP="-g $GROUP"
8999 fi
9000
9001 ################################################################################
9002 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9003 $as_echo_n "checking device node uid... " >&6; }
9004
9005
9006 # Check whether --with-device-uid was given.
9007 if test "${with_device_uid+set}" = set; then
9008 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9009 else
9010 DM_DEVICE_UID="0"
9011 fi
9012
9013 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9014 $as_echo "$DM_DEVICE_UID" >&6; }
9015
9016 ################################################################################
9017 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9018 $as_echo_n "checking device node gid... " >&6; }
9019
9020
9021 # Check whether --with-device-gid was given.
9022 if test "${with_device_gid+set}" = set; then
9023 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9024 else
9025 DM_DEVICE_GID="0"
9026 fi
9027
9028 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9029 $as_echo "$DM_DEVICE_GID" >&6; }
9030
9031 ################################################################################
9032 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9033 $as_echo_n "checking device node mode... " >&6; }
9034
9035
9036 # Check whether --with-device-mode was given.
9037 if test "${with_device_mode+set}" = set; then
9038 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9039 else
9040 DM_DEVICE_MODE="0600"
9041 fi
9042
9043 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9044 $as_echo "$DM_DEVICE_MODE" >&6; }
9045
9046 ################################################################################
9047 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9048 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9049 # Check whether --enable-lvm1_fallback was given.
9050 if test "${enable_lvm1_fallback+set}" = set; then
9051 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9052 else
9053 LVM1_FALLBACK=no
9054 fi
9055
9056 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9057 $as_echo "$LVM1_FALLBACK" >&6; }
9058
9059 if test x$LVM1_FALLBACK = xyes; then
9060
9061 cat >>confdefs.h <<\_ACEOF
9062 #define LVM1_FALLBACK 1
9063 _ACEOF
9064
9065 fi
9066
9067 ################################################################################
9068 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9069 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9070
9071 # Check whether --with-lvm1 was given.
9072 if test "${with_lvm1+set}" = set; then
9073 withval=$with_lvm1; LVM1="$withval"
9074 else
9075 LVM1="internal"
9076 fi
9077
9078 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9079 $as_echo "$LVM1" >&6; }
9080
9081 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9082 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9083 " >&5
9084 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9085 " >&2;}
9086 { (exit 1); exit 1; }; }
9087 fi;
9088
9089 if test x$LVM1 = xinternal; then
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define LVM1_INTERNAL 1
9093 _ACEOF
9094
9095 fi
9096
9097 ################################################################################
9098 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9099 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9100
9101 # Check whether --with-pool was given.
9102 if test "${with_pool+set}" = set; then
9103 withval=$with_pool; POOL="$withval"
9104 else
9105 POOL="internal"
9106 fi
9107
9108 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9109 $as_echo "$POOL" >&6; }
9110
9111 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9112 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9113 " >&5
9114 $as_echo "$as_me: error: --with-pool parameter invalid
9115 " >&2;}
9116 { (exit 1); exit 1; }; }
9117 fi;
9118
9119 if test x$POOL = xinternal; then
9120
9121 cat >>confdefs.h <<\_ACEOF
9122 #define POOL_INTERNAL 1
9123 _ACEOF
9124
9125 fi
9126
9127 ################################################################################
9128 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9129 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9130
9131 # Check whether --with-cluster was given.
9132 if test "${with_cluster+set}" = set; then
9133 withval=$with_cluster; CLUSTER="$withval"
9134 fi
9135
9136 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9137 $as_echo "$CLUSTER" >&6; }
9138
9139 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9140 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9141 " >&5
9142 $as_echo "$as_me: error: --with-cluster parameter invalid
9143 " >&2;}
9144 { (exit 1); exit 1; }; }
9145 fi;
9146
9147 if test x$CLUSTER = xinternal; then
9148
9149 cat >>confdefs.h <<\_ACEOF
9150 #define CLUSTER_LOCKING_INTERNAL 1
9151 _ACEOF
9152
9153 fi
9154
9155 ################################################################################
9156 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9157 $as_echo_n "checking whether to include snapshots... " >&6; }
9158
9159 # Check whether --with-snapshots was given.
9160 if test "${with_snapshots+set}" = set; then
9161 withval=$with_snapshots; SNAPSHOTS="$withval"
9162 else
9163 SNAPSHOTS="internal"
9164 fi
9165
9166 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9167 $as_echo "$SNAPSHOTS" >&6; }
9168
9169 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9170 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9171 " >&5
9172 $as_echo "$as_me: error: --with-snapshots parameter invalid
9173 " >&2;}
9174 { (exit 1); exit 1; }; }
9175 fi;
9176
9177 if test x$SNAPSHOTS = xinternal; then
9178
9179 cat >>confdefs.h <<\_ACEOF
9180 #define SNAPSHOT_INTERNAL 1
9181 _ACEOF
9182
9183 fi
9184
9185 ################################################################################
9186 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9187 $as_echo_n "checking whether to include mirrors... " >&6; }
9188
9189 # Check whether --with-mirrors was given.
9190 if test "${with_mirrors+set}" = set; then
9191 withval=$with_mirrors; MIRRORS="$withval"
9192 else
9193 MIRRORS="internal"
9194 fi
9195
9196 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9197 $as_echo "$MIRRORS" >&6; }
9198
9199 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9200 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9201 " >&5
9202 $as_echo "$as_me: error: --with-mirrors parameter invalid
9203 " >&2;}
9204 { (exit 1); exit 1; }; }
9205 fi;
9206
9207 if test x$MIRRORS = xinternal; then
9208
9209 cat >>confdefs.h <<\_ACEOF
9210 #define MIRRORED_INTERNAL 1
9211 _ACEOF
9212
9213 fi
9214
9215 ################################################################################
9216 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9217 $as_echo_n "checking whether to enable readline... " >&6; }
9218 # Check whether --enable-readline was given.
9219 if test "${enable_readline+set}" = set; then
9220 enableval=$enable_readline; READLINE=$enableval
9221 else
9222 READLINE=maybe
9223 fi
9224
9225 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9226 $as_echo "$READLINE" >&6; }
9227
9228 ################################################################################
9229 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9230 $as_echo_n "checking whether to enable realtime support... " >&6; }
9231 # Check whether --enable-realtime was given.
9232 if test "${enable_realtime+set}" = set; then
9233 enableval=$enable_realtime; REALTIME=$enableval
9234 fi
9235
9236 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9237 $as_echo "$REALTIME" >&6; }
9238
9239 ################################################################################
9240 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9241 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9242
9243 # Check whether --with-clvmd was given.
9244 if test "${with_clvmd+set}" = set; then
9245 withval=$with_clvmd; CLVMD="$withval"
9246 else
9247 CLVMD="none"
9248 fi
9249
9250 if test x$CLVMD = xyes; then
9251 CLVMD=all
9252 fi
9253 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9254 $as_echo "$CLVMD" >&6; }
9255
9256 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9257 CLUSTER=internal
9258 fi
9259
9260 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9261 BUILDGULM=yes
9262 fi
9263 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9264 BUILDCOROSYNC=yes
9265 fi
9266 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9267 BUILDOPENAIS=yes
9268 fi
9269 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9270 BUILDCMAN=yes
9271 fi
9272
9273 if test x$BUILDGULM = xyes; then
9274 if test x$BUILDCOROSYNC = xyes || \
9275 test x$BUILDOPENAIS = xyes; then
9276 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9277 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9278 { (exit 1); exit 1; }; }
9279 fi
9280 fi
9281
9282 if test x$CLVMD != xnone; then
9283
9284
9285 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9286 if test -n "$ac_tool_prefix"; then
9287 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9288 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9293 else
9294 case $PKG_CONFIG in
9295 [\\/]* | ?:[\\/]*)
9296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9297 ;;
9298 *)
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310 done
9311 done
9312 IFS=$as_save_IFS
9313
9314 ;;
9315 esac
9316 fi
9317 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9318 if test -n "$PKG_CONFIG"; then
9319 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9320 $as_echo "$PKG_CONFIG" >&6; }
9321 else
9322 { $as_echo "$as_me:$LINENO: result: no" >&5
9323 $as_echo "no" >&6; }
9324 fi
9325
9326
9327 fi
9328 if test -z "$ac_cv_path_PKG_CONFIG"; then
9329 ac_pt_PKG_CONFIG=$PKG_CONFIG
9330 # Extract the first word of "pkg-config", so it can be a program name with args.
9331 set dummy pkg-config; ac_word=$2
9332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9335 $as_echo_n "(cached) " >&6
9336 else
9337 case $ac_pt_PKG_CONFIG in
9338 [\\/]* | ?:[\\/]*)
9339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9340 ;;
9341 *)
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353 done
9354 done
9355 IFS=$as_save_IFS
9356
9357 ;;
9358 esac
9359 fi
9360 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9361 if test -n "$ac_pt_PKG_CONFIG"; then
9362 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9363 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9364 else
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369 if test "x$ac_pt_PKG_CONFIG" = x; then
9370 PKG_CONFIG=""
9371 else
9372 case $cross_compiling:$ac_tool_warned in
9373 yes:)
9374 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9376 ac_tool_warned=yes ;;
9377 esac
9378 PKG_CONFIG=$ac_pt_PKG_CONFIG
9379 fi
9380 else
9381 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9382 fi
9383
9384 fi
9385 if test -n "$PKG_CONFIG"; then
9386 _pkg_min_version=0.9.0
9387 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9388 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9389 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9390 { $as_echo "$as_me:$LINENO: result: yes" >&5
9391 $as_echo "yes" >&6; }
9392 else
9393 { $as_echo "$as_me:$LINENO: result: no" >&5
9394 $as_echo "no" >&6; }
9395 PKG_CONFIG=""
9396 fi
9397
9398 fi
9399
9400 pkg_failed=no
9401 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9402 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9403
9404 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9405 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9406 elif test -n "$PKG_CONFIG"; then
9407 if test -n "$PKG_CONFIG" && \
9408 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9409 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9410 ac_status=$?
9411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; then
9413 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9414 else
9415 pkg_failed=yes
9416 fi
9417 else
9418 pkg_failed=untried
9419 fi
9420 if test -n "$PKGCONFIGINIT_LIBS"; then
9421 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9422 elif test -n "$PKG_CONFIG"; then
9423 if test -n "$PKG_CONFIG" && \
9424 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9425 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9426 ac_status=$?
9427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; then
9429 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9430 else
9431 pkg_failed=yes
9432 fi
9433 else
9434 pkg_failed=untried
9435 fi
9436
9437
9438
9439 if test $pkg_failed = yes; then
9440
9441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9442 _pkg_short_errors_supported=yes
9443 else
9444 _pkg_short_errors_supported=no
9445 fi
9446 if test $_pkg_short_errors_supported = yes; then
9447 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9448 else
9449 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9450 fi
9451 # Put the nasty error message in config.log where it belongs
9452 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9453
9454 { $as_echo "$as_me:$LINENO: result: no" >&5
9455 $as_echo "no" >&6; }
9456 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9457 $as_echo "pkg-config initialized" >&6; }
9458 elif test $pkg_failed = untried; then
9459 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9460 $as_echo "pkg-config initialized" >&6; }
9461 else
9462 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9463 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9464 { $as_echo "$as_me:$LINENO: result: yes" >&5
9465 $as_echo "yes" >&6; }
9466 :
9467 fi
9468 fi
9469
9470 soft_bailout() {
9471 NOTFOUND=1
9472 }
9473
9474 hard_bailout() {
9475 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9476 $as_echo "$as_me: error: bailing out" >&2;}
9477 { (exit 1); exit 1; }; }
9478 }
9479
9480 if test x$CLVMD = xall; then
9481 bailout=soft_bailout
9482 BUILDGULM=yes
9483 BUILDCMAN=yes
9484 BUILDCOROSYNC=yes
9485 BUILDOPENAIS=yes
9486 else
9487 bailout=hard_bailout
9488 fi
9489
9490 check_lib_no_libs() {
9491 lib_no_libs_arg1=$1
9492 shift
9493 lib_no_libs_arg2=$1
9494 shift
9495 lib_no_libs_args=$@
9496
9497 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9498 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9499 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9500 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9501 $as_echo_n "(cached) " >&6
9502 else
9503 ac_check_lib_save_LIBS=$LIBS
9504 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char $lib_no_libs_arg2 ();
9519 int
9520 main ()
9521 {
9522 return $lib_no_libs_arg2 ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534 $as_echo "$ac_try_echo") >&5
9535 (eval "$ac_link") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest$ac_exeext && {
9545 test "$cross_compiling" = yes ||
9546 $as_test_x conftest$ac_exeext
9547 }; then
9548 eval "$as_ac_Lib=yes"
9549 else
9550 $as_echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9552
9553 eval "$as_ac_Lib=no"
9554 fi
9555
9556 rm -rf conftest.dSYM
9557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9559 LIBS=$ac_check_lib_save_LIBS
9560 fi
9561 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9562 $as_echo "$as_val"'`
9563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9564 $as_echo "$ac_res" >&6; }
9565 as_val=`eval 'as_val=${'$as_ac_Lib'}
9566 $as_echo "$as_val"'`
9567 if test "x$as_val" = x""yes; then
9568 cat >>confdefs.h <<_ACEOF
9569 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9570 _ACEOF
9571
9572 LIBS="-l$lib_no_libs_arg1 $LIBS"
9573
9574 else
9575 $bailout
9576 fi
9577
9578 LIBS=$ac_check_lib_save_LIBS
9579 }
9580
9581 if test x$BUILDGULM = xyes; then
9582
9583 pkg_failed=no
9584 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9585 $as_echo_n "checking for CCS... " >&6; }
9586
9587 if test -n "$CCS_CFLAGS"; then
9588 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9589 elif test -n "$PKG_CONFIG"; then
9590 if test -n "$PKG_CONFIG" && \
9591 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9592 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9593 ac_status=$?
9594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
9596 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9597 else
9598 pkg_failed=yes
9599 fi
9600 else
9601 pkg_failed=untried
9602 fi
9603 if test -n "$CCS_LIBS"; then
9604 pkg_cv_CCS_LIBS="$CCS_LIBS"
9605 elif test -n "$PKG_CONFIG"; then
9606 if test -n "$PKG_CONFIG" && \
9607 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9608 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9609 ac_status=$?
9610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; then
9612 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9613 else
9614 pkg_failed=yes
9615 fi
9616 else
9617 pkg_failed=untried
9618 fi
9619
9620
9621
9622 if test $pkg_failed = yes; then
9623
9624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9625 _pkg_short_errors_supported=yes
9626 else
9627 _pkg_short_errors_supported=no
9628 fi
9629 if test $_pkg_short_errors_supported = yes; then
9630 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9631 else
9632 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9633 fi
9634 # Put the nasty error message in config.log where it belongs
9635 echo "$CCS_PKG_ERRORS" >&5
9636
9637 { $as_echo "$as_me:$LINENO: result: no" >&5
9638 $as_echo "no" >&6; }
9639 NOTFOUND=0
9640
9641 for ac_header in ccs.h
9642 do
9643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9646 $as_echo_n "checking for $ac_header... " >&6; }
9647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9648 $as_echo_n "(cached) " >&6
9649 fi
9650 ac_res=`eval 'as_val=${'$as_ac_Header'}
9651 $as_echo "$as_val"'`
9652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9653 $as_echo "$ac_res" >&6; }
9654 else
9655 # Is the header compilable?
9656 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657 $as_echo_n "checking $ac_header usability... " >&6; }
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 #include <$ac_header>
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9669 case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672 esac
9673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674 $as_echo "$ac_try_echo") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 ac_header_compiler=yes
9686 else
9687 $as_echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 ac_header_compiler=no
9691 fi
9692
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695 $as_echo "$ac_header_compiler" >&6; }
9696
9697 # Is the header present?
9698 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699 $as_echo_n "checking $ac_header presence... " >&6; }
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <$ac_header>
9707 _ACEOF
9708 if { (ac_try="$ac_cpp conftest.$ac_ext"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714 $as_echo "$ac_try_echo") >&5
9715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } >/dev/null && {
9722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 }; then
9725 ac_header_preproc=yes
9726 else
9727 $as_echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 ac_header_preproc=no
9731 fi
9732
9733 rm -f conftest.err conftest.$ac_ext
9734 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735 $as_echo "$ac_header_preproc" >&6; }
9736
9737 # So? What about this header?
9738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9739 yes:no: )
9740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9745 ;;
9746 no:yes:* )
9747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9759
9760 ;;
9761 esac
9762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9763 $as_echo_n "checking for $ac_header... " >&6; }
9764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 $as_echo_n "(cached) " >&6
9766 else
9767 eval "$as_ac_Header=\$ac_header_preproc"
9768 fi
9769 ac_res=`eval 'as_val=${'$as_ac_Header'}
9770 $as_echo "$as_val"'`
9771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9772 $as_echo "$ac_res" >&6; }
9773
9774 fi
9775 as_val=`eval 'as_val=${'$as_ac_Header'}
9776 $as_echo "$as_val"'`
9777 if test "x$as_val" = x""yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9780 _ACEOF
9781
9782 else
9783 $bailout
9784 fi
9785
9786 done
9787
9788 check_lib_no_libs ccs ccs_connect
9789 if test $NOTFOUND = 0; then
9790 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9791 $as_echo "no pkg for libccs, using -lccs" >&6; }
9792 CCS_LIBS="-lccs"
9793 HAVE_CCS=yes
9794 fi
9795 elif test $pkg_failed = untried; then
9796 NOTFOUND=0
9797
9798 for ac_header in ccs.h
9799 do
9800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9803 $as_echo_n "checking for $ac_header... " >&6; }
9804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9805 $as_echo_n "(cached) " >&6
9806 fi
9807 ac_res=`eval 'as_val=${'$as_ac_Header'}
9808 $as_echo "$as_val"'`
9809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9810 $as_echo "$ac_res" >&6; }
9811 else
9812 # Is the header compilable?
9813 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9814 $as_echo_n "checking $ac_header usability... " >&6; }
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9821 $ac_includes_default
9822 #include <$ac_header>
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9826 case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829 esac
9830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831 $as_echo "$ac_try_echo") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_header_compiler=yes
9843 else
9844 $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_header_compiler=no
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 $as_echo "$ac_header_compiler" >&6; }
9853
9854 # Is the header present?
9855 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 $as_echo_n "checking $ac_header presence... " >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <$ac_header>
9864 _ACEOF
9865 if { (ac_try="$ac_cpp conftest.$ac_ext"
9866 case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869 esac
9870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9871 $as_echo "$ac_try_echo") >&5
9872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } >/dev/null && {
9879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9880 test ! -s conftest.err
9881 }; then
9882 ac_header_preproc=yes
9883 else
9884 $as_echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ac_header_preproc=no
9888 fi
9889
9890 rm -f conftest.err conftest.$ac_ext
9891 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9892 $as_echo "$ac_header_preproc" >&6; }
9893
9894 # So? What about this header?
9895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9896 yes:no: )
9897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9900 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9901 ac_header_preproc=yes
9902 ;;
9903 no:yes:* )
9904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9905 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9907 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9909 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9911 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9915 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9916
9917 ;;
9918 esac
9919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9920 $as_echo_n "checking for $ac_header... " >&6; }
9921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9922 $as_echo_n "(cached) " >&6
9923 else
9924 eval "$as_ac_Header=\$ac_header_preproc"
9925 fi
9926 ac_res=`eval 'as_val=${'$as_ac_Header'}
9927 $as_echo "$as_val"'`
9928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9929 $as_echo "$ac_res" >&6; }
9930
9931 fi
9932 as_val=`eval 'as_val=${'$as_ac_Header'}
9933 $as_echo "$as_val"'`
9934 if test "x$as_val" = x""yes; then
9935 cat >>confdefs.h <<_ACEOF
9936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9937 _ACEOF
9938
9939 else
9940 $bailout
9941 fi
9942
9943 done
9944
9945 check_lib_no_libs ccs ccs_connect
9946 if test $NOTFOUND = 0; then
9947 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9948 $as_echo "no pkg for libccs, using -lccs" >&6; }
9949 CCS_LIBS="-lccs"
9950 HAVE_CCS=yes
9951 fi
9952 else
9953 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
9954 CCS_LIBS=$pkg_cv_CCS_LIBS
9955 { $as_echo "$as_me:$LINENO: result: yes" >&5
9956 $as_echo "yes" >&6; }
9957 HAVE_CCS=yes
9958 fi
9959
9960 pkg_failed=no
9961 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
9962 $as_echo_n "checking for GULM... " >&6; }
9963
9964 if test -n "$GULM_CFLAGS"; then
9965 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
9966 elif test -n "$PKG_CONFIG"; then
9967 if test -n "$PKG_CONFIG" && \
9968 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9969 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9970 ac_status=$?
9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; then
9973 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
9974 else
9975 pkg_failed=yes
9976 fi
9977 else
9978 pkg_failed=untried
9979 fi
9980 if test -n "$GULM_LIBS"; then
9981 pkg_cv_GULM_LIBS="$GULM_LIBS"
9982 elif test -n "$PKG_CONFIG"; then
9983 if test -n "$PKG_CONFIG" && \
9984 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9985 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9986 ac_status=$?
9987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; then
9989 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
9990 else
9991 pkg_failed=yes
9992 fi
9993 else
9994 pkg_failed=untried
9995 fi
9996
9997
9998
9999 if test $pkg_failed = yes; then
10000
10001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10002 _pkg_short_errors_supported=yes
10003 else
10004 _pkg_short_errors_supported=no
10005 fi
10006 if test $_pkg_short_errors_supported = yes; then
10007 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10008 else
10009 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10010 fi
10011 # Put the nasty error message in config.log where it belongs
10012 echo "$GULM_PKG_ERRORS" >&5
10013
10014 { $as_echo "$as_me:$LINENO: result: no" >&5
10015 $as_echo "no" >&6; }
10016 NOTFOUND=0
10017
10018 for ac_header in libgulm.h
10019 do
10020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 $as_echo_n "checking for $ac_header... " >&6; }
10024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025 $as_echo_n "(cached) " >&6
10026 fi
10027 ac_res=`eval 'as_val=${'$as_ac_Header'}
10028 $as_echo "$as_val"'`
10029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10030 $as_echo "$ac_res" >&6; }
10031 else
10032 # Is the header compilable?
10033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10034 $as_echo_n "checking $ac_header usability... " >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10042 #include <$ac_header>
10043 _ACEOF
10044 rm -f conftest.$ac_objext
10045 if { (ac_try="$ac_compile"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051 $as_echo "$ac_try_echo") >&5
10052 (eval "$ac_compile") 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
10061 } && test -s conftest.$ac_objext; then
10062 ac_header_compiler=yes
10063 else
10064 $as_echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 ac_header_compiler=no
10068 fi
10069
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 $as_echo "$ac_header_compiler" >&6; }
10073
10074 # Is the header present?
10075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076 $as_echo_n "checking $ac_header presence... " >&6; }
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <$ac_header>
10084 _ACEOF
10085 if { (ac_try="$ac_cpp conftest.$ac_ext"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091 $as_echo "$ac_try_echo") >&5
10092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev/null && {
10099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 }; then
10102 ac_header_preproc=yes
10103 else
10104 $as_echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_header_preproc=no
10108 fi
10109
10110 rm -f conftest.err conftest.$ac_ext
10111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 $as_echo "$ac_header_preproc" >&6; }
10113
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10116 yes:no: )
10117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136
10137 ;;
10138 esac
10139 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10140 $as_echo_n "checking for $ac_header... " >&6; }
10141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10142 $as_echo_n "(cached) " >&6
10143 else
10144 eval "$as_ac_Header=\$ac_header_preproc"
10145 fi
10146 ac_res=`eval 'as_val=${'$as_ac_Header'}
10147 $as_echo "$as_val"'`
10148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10149 $as_echo "$ac_res" >&6; }
10150
10151 fi
10152 as_val=`eval 'as_val=${'$as_ac_Header'}
10153 $as_echo "$as_val"'`
10154 if test "x$as_val" = x""yes; then
10155 cat >>confdefs.h <<_ACEOF
10156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10157 _ACEOF
10158
10159 else
10160 $bailout
10161 fi
10162
10163 done
10164
10165 check_lib_no_libs gulm lg_core_login
10166 if test $NOTFOUND = 0; then
10167 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10168 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10169 GULM_LIBS="-lgulm"
10170 HAVE_GULM=yes
10171 fi
10172 elif test $pkg_failed = untried; then
10173 NOTFOUND=0
10174
10175 for ac_header in libgulm.h
10176 do
10177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10180 $as_echo_n "checking for $ac_header... " >&6; }
10181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10182 $as_echo_n "(cached) " >&6
10183 fi
10184 ac_res=`eval 'as_val=${'$as_ac_Header'}
10185 $as_echo "$as_val"'`
10186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10187 $as_echo "$ac_res" >&6; }
10188 else
10189 # Is the header compilable?
10190 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10191 $as_echo_n "checking $ac_header usability... " >&6; }
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 $ac_includes_default
10199 #include <$ac_header>
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (ac_try="$ac_compile"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206 esac
10207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10208 $as_echo "$ac_try_echo") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_header_compiler=yes
10220 else
10221 $as_echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 ac_header_compiler=no
10225 fi
10226
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10229 $as_echo "$ac_header_compiler" >&6; }
10230
10231 # Is the header present?
10232 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10233 $as_echo_n "checking $ac_header presence... " >&6; }
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h. */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240 #include <$ac_header>
10241 _ACEOF
10242 if { (ac_try="$ac_cpp conftest.$ac_ext"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248 $as_echo "$ac_try_echo") >&5
10249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } >/dev/null && {
10256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 }; then
10259 ac_header_preproc=yes
10260 else
10261 $as_echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_header_preproc=no
10265 fi
10266
10267 rm -f conftest.err conftest.$ac_ext
10268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10269 $as_echo "$ac_header_preproc" >&6; }
10270
10271 # So? What about this header?
10272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10273 yes:no: )
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10278 ac_header_preproc=yes
10279 ;;
10280 no:yes:* )
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10292 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10293
10294 ;;
10295 esac
10296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10297 $as_echo_n "checking for $ac_header... " >&6; }
10298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10299 $as_echo_n "(cached) " >&6
10300 else
10301 eval "$as_ac_Header=\$ac_header_preproc"
10302 fi
10303 ac_res=`eval 'as_val=${'$as_ac_Header'}
10304 $as_echo "$as_val"'`
10305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306 $as_echo "$ac_res" >&6; }
10307
10308 fi
10309 as_val=`eval 'as_val=${'$as_ac_Header'}
10310 $as_echo "$as_val"'`
10311 if test "x$as_val" = x""yes; then
10312 cat >>confdefs.h <<_ACEOF
10313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314 _ACEOF
10315
10316 else
10317 $bailout
10318 fi
10319
10320 done
10321
10322 check_lib_no_libs gulm lg_core_login
10323 if test $NOTFOUND = 0; then
10324 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10325 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10326 GULM_LIBS="-lgulm"
10327 HAVE_GULM=yes
10328 fi
10329 else
10330 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10331 GULM_LIBS=$pkg_cv_GULM_LIBS
10332 { $as_echo "$as_me:$LINENO: result: yes" >&5
10333 $as_echo "yes" >&6; }
10334 HAVE_GULM=yes
10335 fi
10336 fi
10337
10338 if test x$BUILDCMAN = xyes; then
10339
10340 pkg_failed=no
10341 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10342 $as_echo_n "checking for CMAN... " >&6; }
10343
10344 if test -n "$CMAN_CFLAGS"; then
10345 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10346 elif test -n "$PKG_CONFIG"; then
10347 if test -n "$PKG_CONFIG" && \
10348 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10349 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10350 ac_status=$?
10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; then
10353 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10354 else
10355 pkg_failed=yes
10356 fi
10357 else
10358 pkg_failed=untried
10359 fi
10360 if test -n "$CMAN_LIBS"; then
10361 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10365 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10370 else
10371 pkg_failed=yes
10372 fi
10373 else
10374 pkg_failed=untried
10375 fi
10376
10377
10378
10379 if test $pkg_failed = yes; then
10380
10381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10382 _pkg_short_errors_supported=yes
10383 else
10384 _pkg_short_errors_supported=no
10385 fi
10386 if test $_pkg_short_errors_supported = yes; then
10387 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10388 else
10389 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10390 fi
10391 # Put the nasty error message in config.log where it belongs
10392 echo "$CMAN_PKG_ERRORS" >&5
10393
10394 { $as_echo "$as_me:$LINENO: result: no" >&5
10395 $as_echo "no" >&6; }
10396 NOTFOUND=0
10397
10398 for ac_header in libcman.h
10399 do
10400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10402 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10403 $as_echo_n "checking for $ac_header... " >&6; }
10404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10405 $as_echo_n "(cached) " >&6
10406 fi
10407 ac_res=`eval 'as_val=${'$as_ac_Header'}
10408 $as_echo "$as_val"'`
10409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10410 $as_echo "$ac_res" >&6; }
10411 else
10412 # Is the header compilable?
10413 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10414 $as_echo_n "checking $ac_header usability... " >&6; }
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 $ac_includes_default
10422 #include <$ac_header>
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (ac_try="$ac_compile"
10426 case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429 esac
10430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10431 $as_echo "$ac_try_echo") >&5
10432 (eval "$ac_compile") 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest.$ac_objext; then
10442 ac_header_compiler=yes
10443 else
10444 $as_echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ac_header_compiler=no
10448 fi
10449
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452 $as_echo "$ac_header_compiler" >&6; }
10453
10454 # Is the header present?
10455 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456 $as_echo_n "checking $ac_header presence... " >&6; }
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <$ac_header>
10464 _ACEOF
10465 if { (ac_try="$ac_cpp conftest.$ac_ext"
10466 case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469 esac
10470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } >/dev/null && {
10479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 }; then
10482 ac_header_preproc=yes
10483 else
10484 $as_echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_header_preproc=no
10488 fi
10489
10490 rm -f conftest.err conftest.$ac_ext
10491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492 $as_echo "$ac_header_preproc" >&6; }
10493
10494 # So? What about this header?
10495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10516
10517 ;;
10518 esac
10519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10520 $as_echo_n "checking for $ac_header... " >&6; }
10521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 $as_echo_n "(cached) " >&6
10523 else
10524 eval "$as_ac_Header=\$ac_header_preproc"
10525 fi
10526 ac_res=`eval 'as_val=${'$as_ac_Header'}
10527 $as_echo "$as_val"'`
10528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10529 $as_echo "$ac_res" >&6; }
10530
10531 fi
10532 as_val=`eval 'as_val=${'$as_ac_Header'}
10533 $as_echo "$as_val"'`
10534 if test "x$as_val" = x""yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537 _ACEOF
10538
10539 else
10540 $bailout
10541 fi
10542
10543 done
10544
10545 check_lib_no_libs cman cman_init
10546 if test $NOTFOUND = 0; then
10547 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10548 $as_echo "no pkg for libcman, using -lcman" >&6; }
10549 CMAN_LIBS="-lcman"
10550 HAVE_CMAN=yes
10551 fi
10552 elif test $pkg_failed = untried; then
10553 NOTFOUND=0
10554
10555 for ac_header in libcman.h
10556 do
10557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 $as_echo_n "checking for $ac_header... " >&6; }
10561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 $as_echo_n "(cached) " >&6
10563 fi
10564 ac_res=`eval 'as_val=${'$as_ac_Header'}
10565 $as_echo "$as_val"'`
10566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10567 $as_echo "$ac_res" >&6; }
10568 else
10569 # Is the header compilable?
10570 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 $as_echo_n "checking $ac_header usability... " >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <$ac_header>
10580 _ACEOF
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588 $as_echo "$ac_try_echo") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_header_compiler=yes
10600 else
10601 $as_echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10603
10604 ac_header_compiler=no
10605 fi
10606
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10609 $as_echo "$ac_header_compiler" >&6; }
10610
10611 # Is the header present?
10612 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10613 $as_echo_n "checking $ac_header presence... " >&6; }
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #include <$ac_header>
10621 _ACEOF
10622 if { (ac_try="$ac_cpp conftest.$ac_ext"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626 esac
10627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10628 $as_echo "$ac_try_echo") >&5
10629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } >/dev/null && {
10636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 }; then
10639 ac_header_preproc=yes
10640 else
10641 $as_echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 ac_header_preproc=no
10645 fi
10646
10647 rm -f conftest.err conftest.$ac_ext
10648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649 $as_echo "$ac_header_preproc" >&6; }
10650
10651 # So? What about this header?
10652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 yes:no: )
10654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658 ac_header_preproc=yes
10659 ;;
10660 no:yes:* )
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10668 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673
10674 ;;
10675 esac
10676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 $as_echo_n "checking for $ac_header... " >&6; }
10678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679 $as_echo_n "(cached) " >&6
10680 else
10681 eval "$as_ac_Header=\$ac_header_preproc"
10682 fi
10683 ac_res=`eval 'as_val=${'$as_ac_Header'}
10684 $as_echo "$as_val"'`
10685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10686 $as_echo "$ac_res" >&6; }
10687
10688 fi
10689 as_val=`eval 'as_val=${'$as_ac_Header'}
10690 $as_echo "$as_val"'`
10691 if test "x$as_val" = x""yes; then
10692 cat >>confdefs.h <<_ACEOF
10693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694 _ACEOF
10695
10696 else
10697 $bailout
10698 fi
10699
10700 done
10701
10702 check_lib_no_libs cman cman_init
10703 if test $NOTFOUND = 0; then
10704 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10705 $as_echo "no pkg for libcman, using -lcman" >&6; }
10706 CMAN_LIBS="-lcman"
10707 HAVE_CMAN=yes
10708 fi
10709 else
10710 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10711 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10712 { $as_echo "$as_me:$LINENO: result: yes" >&5
10713 $as_echo "yes" >&6; }
10714 HAVE_CMAN=yes
10715 fi
10716 CHECKCONFDB=yes
10717 CHECKDLM=yes
10718 fi
10719
10720 if test x$BUILDCOROSYNC = xyes || \
10721 test x$BUILDOPENAIS = xyes; then
10722
10723 pkg_failed=no
10724 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10725 $as_echo_n "checking for COROSYNC... " >&6; }
10726
10727 if test -n "$COROSYNC_CFLAGS"; then
10728 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10729 elif test -n "$PKG_CONFIG"; then
10730 if test -n "$PKG_CONFIG" && \
10731 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10732 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10733 ac_status=$?
10734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; then
10736 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10737 else
10738 pkg_failed=yes
10739 fi
10740 else
10741 pkg_failed=untried
10742 fi
10743 if test -n "$COROSYNC_LIBS"; then
10744 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10745 elif test -n "$PKG_CONFIG"; then
10746 if test -n "$PKG_CONFIG" && \
10747 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10748 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10749 ac_status=$?
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; then
10752 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10753 else
10754 pkg_failed=yes
10755 fi
10756 else
10757 pkg_failed=untried
10758 fi
10759
10760
10761
10762 if test $pkg_failed = yes; then
10763
10764 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10765 _pkg_short_errors_supported=yes
10766 else
10767 _pkg_short_errors_supported=no
10768 fi
10769 if test $_pkg_short_errors_supported = yes; then
10770 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10771 else
10772 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10773 fi
10774 # Put the nasty error message in config.log where it belongs
10775 echo "$COROSYNC_PKG_ERRORS" >&5
10776
10777 { $as_echo "$as_me:$LINENO: result: no" >&5
10778 $as_echo "no" >&6; }
10779 $bailout
10780 elif test $pkg_failed = untried; then
10781 $bailout
10782 else
10783 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10784 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10785 { $as_echo "$as_me:$LINENO: result: yes" >&5
10786 $as_echo "yes" >&6; }
10787 HAVE_COROSYNC=yes
10788 fi
10789 CHECKCONFDB=yes
10790 fi
10791
10792 if test x$BUILDCOROSYNC = xyes; then
10793
10794 pkg_failed=no
10795 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10796 $as_echo_n "checking for QUORUM... " >&6; }
10797
10798 if test -n "$QUORUM_CFLAGS"; then
10799 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10800 elif test -n "$PKG_CONFIG"; then
10801 if test -n "$PKG_CONFIG" && \
10802 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10803 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10804 ac_status=$?
10805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; then
10807 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10808 else
10809 pkg_failed=yes
10810 fi
10811 else
10812 pkg_failed=untried
10813 fi
10814 if test -n "$QUORUM_LIBS"; then
10815 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10816 elif test -n "$PKG_CONFIG"; then
10817 if test -n "$PKG_CONFIG" && \
10818 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10819 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; then
10823 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10824 else
10825 pkg_failed=yes
10826 fi
10827 else
10828 pkg_failed=untried
10829 fi
10830
10831
10832
10833 if test $pkg_failed = yes; then
10834
10835 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10836 _pkg_short_errors_supported=yes
10837 else
10838 _pkg_short_errors_supported=no
10839 fi
10840 if test $_pkg_short_errors_supported = yes; then
10841 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10842 else
10843 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10844 fi
10845 # Put the nasty error message in config.log where it belongs
10846 echo "$QUORUM_PKG_ERRORS" >&5
10847
10848 { $as_echo "$as_me:$LINENO: result: no" >&5
10849 $as_echo "no" >&6; }
10850 $bailout
10851 elif test $pkg_failed = untried; then
10852 $bailout
10853 else
10854 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10855 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10856 { $as_echo "$as_me:$LINENO: result: yes" >&5
10857 $as_echo "yes" >&6; }
10858 HAVE_QUORUM=yes
10859 fi
10860 CHECKCPG=yes
10861 CHECKDLM=yes
10862 fi
10863
10864 if test x$BUILDOPENAIS = xyes; then
10865
10866 pkg_failed=no
10867 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10868 $as_echo_n "checking for SALCK... " >&6; }
10869
10870 if test -n "$SALCK_CFLAGS"; then
10871 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10872 elif test -n "$PKG_CONFIG"; then
10873 if test -n "$PKG_CONFIG" && \
10874 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10875 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10876 ac_status=$?
10877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; then
10879 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10880 else
10881 pkg_failed=yes
10882 fi
10883 else
10884 pkg_failed=untried
10885 fi
10886 if test -n "$SALCK_LIBS"; then
10887 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
10888 elif test -n "$PKG_CONFIG"; then
10889 if test -n "$PKG_CONFIG" && \
10890 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10891 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10892 ac_status=$?
10893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; then
10895 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
10896 else
10897 pkg_failed=yes
10898 fi
10899 else
10900 pkg_failed=untried
10901 fi
10902
10903
10904
10905 if test $pkg_failed = yes; then
10906
10907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908 _pkg_short_errors_supported=yes
10909 else
10910 _pkg_short_errors_supported=no
10911 fi
10912 if test $_pkg_short_errors_supported = yes; then
10913 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
10914 else
10915 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
10916 fi
10917 # Put the nasty error message in config.log where it belongs
10918 echo "$SALCK_PKG_ERRORS" >&5
10919
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10922 $bailout
10923 elif test $pkg_failed = untried; then
10924 $bailout
10925 else
10926 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
10927 SALCK_LIBS=$pkg_cv_SALCK_LIBS
10928 { $as_echo "$as_me:$LINENO: result: yes" >&5
10929 $as_echo "yes" >&6; }
10930 HAVE_SALCK=yes
10931 fi
10932 CHECKCPG=yes
10933 fi
10934
10935
10936
10937 if test x$CHECKCONFDB = xyes; then
10938
10939 pkg_failed=no
10940 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
10941 $as_echo_n "checking for CONFDB... " >&6; }
10942
10943 if test -n "$CONFDB_CFLAGS"; then
10944 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
10945 elif test -n "$PKG_CONFIG"; then
10946 if test -n "$PKG_CONFIG" && \
10947 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10948 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10949 ac_status=$?
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; then
10952 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
10953 else
10954 pkg_failed=yes
10955 fi
10956 else
10957 pkg_failed=untried
10958 fi
10959 if test -n "$CONFDB_LIBS"; then
10960 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
10961 elif test -n "$PKG_CONFIG"; then
10962 if test -n "$PKG_CONFIG" && \
10963 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10964 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; then
10968 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
10969 else
10970 pkg_failed=yes
10971 fi
10972 else
10973 pkg_failed=untried
10974 fi
10975
10976
10977
10978 if test $pkg_failed = yes; then
10979
10980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10981 _pkg_short_errors_supported=yes
10982 else
10983 _pkg_short_errors_supported=no
10984 fi
10985 if test $_pkg_short_errors_supported = yes; then
10986 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
10987 else
10988 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
10989 fi
10990 # Put the nasty error message in config.log where it belongs
10991 echo "$CONFDB_PKG_ERRORS" >&5
10992
10993 { $as_echo "$as_me:$LINENO: result: no" >&5
10994 $as_echo "no" >&6; }
10995 HAVE_CONFDB=no
10996 elif test $pkg_failed = untried; then
10997 HAVE_CONFDB=no
10998 else
10999 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11000 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11001 { $as_echo "$as_me:$LINENO: result: yes" >&5
11002 $as_echo "yes" >&6; }
11003 HAVE_CONFDB=yes
11004 fi
11005
11006
11007 for ac_header in corosync/confdb.h
11008 do
11009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 $as_echo_n "checking for $ac_header... " >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 $as_echo_n "(cached) " >&6
11015 fi
11016 ac_res=`eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'`
11018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11019 $as_echo "$ac_res" >&6; }
11020 else
11021 # Is the header compilable?
11022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023 $as_echo_n "checking $ac_header usability... " >&6; }
11024 cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h. */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 #include <$ac_header>
11032 _ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (ac_try="$ac_compile"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038 esac
11039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11040 $as_echo "$ac_try_echo") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest.$ac_objext; then
11051 ac_header_compiler=yes
11052 else
11053 $as_echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_header_compiler=no
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061 $as_echo "$ac_header_compiler" >&6; }
11062
11063 # Is the header present?
11064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065 $as_echo_n "checking $ac_header presence... " >&6; }
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h. */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 #include <$ac_header>
11073 _ACEOF
11074 if { (ac_try="$ac_cpp conftest.$ac_ext"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078 esac
11079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080 $as_echo "$ac_try_echo") >&5
11081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } >/dev/null && {
11088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 }; then
11091 ac_header_preproc=yes
11092 else
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_header_preproc=no
11097 fi
11098
11099 rm -f conftest.err conftest.$ac_ext
11100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 $as_echo "$ac_header_preproc" >&6; }
11102
11103 # So? What about this header?
11104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105 yes:no: )
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110 ac_header_preproc=yes
11111 ;;
11112 no:yes:* )
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11125
11126 ;;
11127 esac
11128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 $as_echo_n "checking for $ac_header... " >&6; }
11130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 $as_echo_n "(cached) " >&6
11132 else
11133 eval "$as_ac_Header=\$ac_header_preproc"
11134 fi
11135 ac_res=`eval 'as_val=${'$as_ac_Header'}
11136 $as_echo "$as_val"'`
11137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11138 $as_echo "$ac_res" >&6; }
11139
11140 fi
11141 as_val=`eval 'as_val=${'$as_ac_Header'}
11142 $as_echo "$as_val"'`
11143 if test "x$as_val" = x""yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 _ACEOF
11147 HAVE_CONFDB_H=yes
11148 else
11149 HAVE_CONFDB_H=no
11150 fi
11151
11152 done
11153
11154
11155 if test x$HAVE_CONFDB != xyes && \
11156 test x$HAVE_CONFDB_H = xyes; then
11157 check_lib_no_libs confdb confdb_initialize
11158 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11159 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11160 CONFDB_LIBS="-lconfdb"
11161 HAVE_CONFDB=yes
11162 fi
11163
11164 if test x$BUILDCOROSYNC = xyes && \
11165 test x$HAVE_CONFDB != xyes &&
11166 test x$CLVMD != xall; then
11167 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11168 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11169 { (exit 1); exit 1; }; }
11170 fi
11171 fi
11172
11173 if test x$CHECKCPG = xyes; then
11174
11175 pkg_failed=no
11176 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11177 $as_echo_n "checking for CPG... " >&6; }
11178
11179 if test -n "$CPG_CFLAGS"; then
11180 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11181 elif test -n "$PKG_CONFIG"; then
11182 if test -n "$PKG_CONFIG" && \
11183 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11184 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; then
11188 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11189 else
11190 pkg_failed=yes
11191 fi
11192 else
11193 pkg_failed=untried
11194 fi
11195 if test -n "$CPG_LIBS"; then
11196 pkg_cv_CPG_LIBS="$CPG_LIBS"
11197 elif test -n "$PKG_CONFIG"; then
11198 if test -n "$PKG_CONFIG" && \
11199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11200 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11201 ac_status=$?
11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; then
11204 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11205 else
11206 pkg_failed=yes
11207 fi
11208 else
11209 pkg_failed=untried
11210 fi
11211
11212
11213
11214 if test $pkg_failed = yes; then
11215
11216 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11217 _pkg_short_errors_supported=yes
11218 else
11219 _pkg_short_errors_supported=no
11220 fi
11221 if test $_pkg_short_errors_supported = yes; then
11222 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11223 else
11224 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11225 fi
11226 # Put the nasty error message in config.log where it belongs
11227 echo "$CPG_PKG_ERRORS" >&5
11228
11229 { $as_echo "$as_me:$LINENO: result: no" >&5
11230 $as_echo "no" >&6; }
11231 $bailout
11232 elif test $pkg_failed = untried; then
11233 $bailout
11234 else
11235 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11236 CPG_LIBS=$pkg_cv_CPG_LIBS
11237 { $as_echo "$as_me:$LINENO: result: yes" >&5
11238 $as_echo "yes" >&6; }
11239 HAVE_CPG=yes
11240 fi
11241 fi
11242
11243 if test x$CHECKDLM = xyes; then
11244
11245 pkg_failed=no
11246 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11247 $as_echo_n "checking for DLM... " >&6; }
11248
11249 if test -n "$DLM_CFLAGS"; then
11250 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11251 elif test -n "$PKG_CONFIG"; then
11252 if test -n "$PKG_CONFIG" && \
11253 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11254 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11255 ac_status=$?
11256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; then
11258 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11259 else
11260 pkg_failed=yes
11261 fi
11262 else
11263 pkg_failed=untried
11264 fi
11265 if test -n "$DLM_LIBS"; then
11266 pkg_cv_DLM_LIBS="$DLM_LIBS"
11267 elif test -n "$PKG_CONFIG"; then
11268 if test -n "$PKG_CONFIG" && \
11269 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11270 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11271 ac_status=$?
11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; then
11274 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11275 else
11276 pkg_failed=yes
11277 fi
11278 else
11279 pkg_failed=untried
11280 fi
11281
11282
11283
11284 if test $pkg_failed = yes; then
11285
11286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11287 _pkg_short_errors_supported=yes
11288 else
11289 _pkg_short_errors_supported=no
11290 fi
11291 if test $_pkg_short_errors_supported = yes; then
11292 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11293 else
11294 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11295 fi
11296 # Put the nasty error message in config.log where it belongs
11297 echo "$DLM_PKG_ERRORS" >&5
11298
11299 { $as_echo "$as_me:$LINENO: result: no" >&5
11300 $as_echo "no" >&6; }
11301 NOTFOUND=0
11302
11303 for ac_header in libdlm.h
11304 do
11305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 $as_echo_n "checking for $ac_header... " >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310 $as_echo_n "(cached) " >&6
11311 fi
11312 ac_res=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11315 $as_echo "$ac_res" >&6; }
11316 else
11317 # Is the header compilable?
11318 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11319 $as_echo_n "checking $ac_header usability... " >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 #include <$ac_header>
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336 $as_echo "$ac_try_echo") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_header_compiler=yes
11348 else
11349 $as_echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_header_compiler=no
11353 fi
11354
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11357 $as_echo "$ac_header_compiler" >&6; }
11358
11359 # Is the header present?
11360 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11361 $as_echo_n "checking $ac_header presence... " >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <$ac_header>
11369 _ACEOF
11370 if { (ac_try="$ac_cpp conftest.$ac_ext"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } >/dev/null && {
11384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 }; then
11387 ac_header_preproc=yes
11388 else
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11391
11392 ac_header_preproc=no
11393 fi
11394
11395 rm -f conftest.err conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11397 $as_echo "$ac_header_preproc" >&6; }
11398
11399 # So? What about this header?
11400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11401 yes:no: )
11402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11403 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11405 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11406 ac_header_preproc=yes
11407 ;;
11408 no:yes:* )
11409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11410 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11414 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11416 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11420 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11421
11422 ;;
11423 esac
11424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 $as_echo_n "checking for $ac_header... " >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 $as_echo_n "(cached) " >&6
11428 else
11429 eval "$as_ac_Header=\$ac_header_preproc"
11430 fi
11431 ac_res=`eval 'as_val=${'$as_ac_Header'}
11432 $as_echo "$as_val"'`
11433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11434 $as_echo "$ac_res" >&6; }
11435
11436 fi
11437 as_val=`eval 'as_val=${'$as_ac_Header'}
11438 $as_echo "$as_val"'`
11439 if test "x$as_val" = x""yes; then
11440 cat >>confdefs.h <<_ACEOF
11441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11442 _ACEOF
11443
11444 else
11445 $bailout
11446 fi
11447
11448 done
11449
11450 check_lib_no_libs dlm dlm_lock -lpthread
11451 if test $NOTFOUND = 0; then
11452 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11453 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11454 DLM_LIBS="-ldlm -lpthread"
11455 HAVE_DLM=yes
11456 fi
11457 elif test $pkg_failed = untried; then
11458 NOTFOUND=0
11459
11460 for ac_header in libdlm.h
11461 do
11462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 $as_echo_n "checking for $ac_header... " >&6; }
11466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467 $as_echo_n "(cached) " >&6
11468 fi
11469 ac_res=`eval 'as_val=${'$as_ac_Header'}
11470 $as_echo "$as_val"'`
11471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11472 $as_echo "$ac_res" >&6; }
11473 else
11474 # Is the header compilable?
11475 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 $as_echo_n "checking $ac_header usability... " >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 $ac_includes_default
11484 #include <$ac_header>
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (ac_try="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493 $as_echo "$ac_try_echo") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && {
11501 test -z "$ac_c_werror_flag" ||
11502 test ! -s conftest.err
11503 } && test -s conftest.$ac_objext; then
11504 ac_header_compiler=yes
11505 else
11506 $as_echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_header_compiler=no
11510 fi
11511
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11514 $as_echo "$ac_header_compiler" >&6; }
11515
11516 # Is the header present?
11517 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11518 $as_echo_n "checking $ac_header presence... " >&6; }
11519 cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h. */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 #include <$ac_header>
11526 _ACEOF
11527 if { (ac_try="$ac_cpp conftest.$ac_ext"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531 esac
11532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11533 $as_echo "$ac_try_echo") >&5
11534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } >/dev/null && {
11541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 }; then
11544 ac_header_preproc=yes
11545 else
11546 $as_echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 ac_header_preproc=no
11550 fi
11551
11552 rm -f conftest.err conftest.$ac_ext
11553 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11554 $as_echo "$ac_header_preproc" >&6; }
11555
11556 # So? What about this header?
11557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11558 yes:no: )
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11563 ac_header_preproc=yes
11564 ;;
11565 no:yes:* )
11566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11567 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11569 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11571 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11573 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11575 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11577 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11578
11579 ;;
11580 esac
11581 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 $as_echo_n "checking for $ac_header... " >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 $as_echo_n "(cached) " >&6
11585 else
11586 eval "$as_ac_Header=\$ac_header_preproc"
11587 fi
11588 ac_res=`eval 'as_val=${'$as_ac_Header'}
11589 $as_echo "$as_val"'`
11590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11591 $as_echo "$ac_res" >&6; }
11592
11593 fi
11594 as_val=`eval 'as_val=${'$as_ac_Header'}
11595 $as_echo "$as_val"'`
11596 if test "x$as_val" = x""yes; then
11597 cat >>confdefs.h <<_ACEOF
11598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11599 _ACEOF
11600
11601 else
11602 $bailout
11603 fi
11604
11605 done
11606
11607 check_lib_no_libs dlm dlm_lock -lpthread
11608 if test $NOTFOUND = 0; then
11609 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11610 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11611 DLM_LIBS="-ldlm -lpthread"
11612 HAVE_DLM=yes
11613 fi
11614 else
11615 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11616 DLM_LIBS=$pkg_cv_DLM_LIBS
11617 { $as_echo "$as_me:$LINENO: result: yes" >&5
11618 $as_echo "yes" >&6; }
11619 HAVE_DLM=yes
11620 fi
11621 fi
11622
11623 if test x$CLVMD = xall; then
11624 if test x$HAVE_CCS = xyes && \
11625 test x$HAVE_GULM = xyes; then
11626 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm backend" >&5
11627 $as_echo "Enabling clvmd gulm backend" >&6; }
11628 NEWCLVMD="$NEWCLVMD,gulm"
11629 fi
11630 if test x$HAVE_CMAN = xyes && \
11631 test x$HAVE_DLM = xyes; then
11632 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman backend" >&5
11633 $as_echo "Enabling clvmd cman backend" >&6; }
11634 NEWCLVMD="$NEWCLVMD,cman"
11635 fi
11636 if test x$HAVE_COROSYNC = xyes && \
11637 test x$HAVE_QUORUM = xyes && \
11638 test x$HAVE_CPG = xyes && \
11639 test x$HAVE_DLM = xyes && \
11640 test x$HAVE_CONFDB = xyes; then
11641 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync backend" >&5
11642 $as_echo "Enabling clvmd corosync backend" >&6; }
11643 NEWCLVMD="$NEWCLVMD,corosync"
11644 fi
11645 if test x$HAVE_COROSYNC = xyes && \
11646 test x$HAVE_CPG = xyes && \
11647 test x$HAVE_SALCK = xyes; then
11648 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais backend" >&5
11649 $as_echo "Enabling clvmd openais backend" >&6; }
11650 NEWCLVMD="$NEWCLVMD,openais"
11651 fi
11652 CLVMD="$NEWCLVMD"
11653 fi
11654
11655 ################################################################################
11656 { $as_echo "$as_me:$LINENO: checking whether to build cluster log daemon" >&5
11657 $as_echo_n "checking whether to build cluster log daemon... " >&6; }
11658 # Check whether --enable-clogd was given.
11659 if test "${enable_clogd+set}" = set; then
11660 enableval=$enable_clogd; CLOGD=$enableval
11661 fi
11662
11663 { $as_echo "$as_me:$LINENO: result: $CLOGD" >&5
11664 $as_echo "$CLOGD" >&6; }
11665
11666 if [ "x$CLOGD" = xall -o `expr x"$CLOGD" : '.*corosync.*'` != 0 ]; then
11667 #
11668 # FIXME: ALSO NEED TO CHECK FOR CHECKPOINT MODULE
11669 #
11670
11671 pkg_failed=no
11672 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11673 $as_echo_n "checking for CPG... " >&6; }
11674
11675 if test -n "$CPG_CFLAGS"; then
11676 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11677 elif test -n "$PKG_CONFIG"; then
11678 if test -n "$PKG_CONFIG" && \
11679 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11680 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11681 ac_status=$?
11682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; then
11684 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11685 else
11686 pkg_failed=yes
11687 fi
11688 else
11689 pkg_failed=untried
11690 fi
11691 if test -n "$CPG_LIBS"; then
11692 pkg_cv_CPG_LIBS="$CPG_LIBS"
11693 elif test -n "$PKG_CONFIG"; then
11694 if test -n "$PKG_CONFIG" && \
11695 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11696 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11697 ac_status=$?
11698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; then
11700 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11701 else
11702 pkg_failed=yes
11703 fi
11704 else
11705 pkg_failed=untried
11706 fi
11707
11708
11709
11710 if test $pkg_failed = yes; then
11711
11712 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11713 _pkg_short_errors_supported=yes
11714 else
11715 _pkg_short_errors_supported=no
11716 fi
11717 if test $_pkg_short_errors_supported = yes; then
11718 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11719 else
11720 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11721 fi
11722 # Put the nasty error message in config.log where it belongs
11723 echo "$CPG_PKG_ERRORS" >&5
11724
11725 { $as_echo "$as_me:$LINENO: result: no" >&5
11726 $as_echo "no" >&6; }
11727 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11728 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11729 CPG_LIBS="-lcpg"
11730 elif test $pkg_failed = untried; then
11731 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11732 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11733 CPG_LIBS="-lcpg"
11734 else
11735 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11736 CPG_LIBS=$pkg_cv_CPG_LIBS
11737 { $as_echo "$as_me:$LINENO: result: yes" >&5
11738 $as_echo "yes" >&6; }
11739 :
11740 fi
11741 fi
11742
11743 ################################################################################
11744 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
11745 $as_echo_n "checking whether to enable debugging... " >&6; }
11746 # Check whether --enable-debug was given.
11747 if test "${enable_debug+set}" = set; then
11748 enableval=$enable_debug; DEBUG=$enableval
11749 else
11750 DEBUG=no
11751 fi
11752
11753 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
11754 $as_echo "$DEBUG" >&6; }
11755
11756 if test x$DEBUG = xyes; then
11757 COPTIMISE_FLAG=
11758 else
11759 CSCOPE_CMD=
11760 fi
11761
11762 ################################################################################
11763 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
11764 $as_echo_n "checking for C optimisation flag... " >&6; }
11765
11766 # Check whether --with-optimisation was given.
11767 if test "${with_optimisation+set}" = set; then
11768 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
11769 fi
11770
11771 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
11772 $as_echo "$COPTIMISE_FLAG" >&6; }
11773
11774 ################################################################################
11775 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
11776 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
11777 # Check whether --enable-profiling was given.
11778 if test "${enable_profiling+set}" = set; then
11779 enableval=$enable_profiling; PROFILING=$enableval
11780 else
11781 PROFILING=no
11782 fi
11783
11784 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
11785 $as_echo "$PROFILING" >&6; }
11786
11787 if test "x$PROFILING" = xyes; then
11788 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
11789 # Extract the first word of "lcov", so it can be a program name with args.
11790 set dummy lcov; ac_word=$2
11791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if test "${ac_cv_path_LCOV+set}" = set; then
11794 $as_echo_n "(cached) " >&6
11795 else
11796 case $LCOV in
11797 [\\/]* | ?:[\\/]*)
11798 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11799 ;;
11800 *)
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
11809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
11817 ;;
11818 esac
11819 fi
11820 LCOV=$ac_cv_path_LCOV
11821 if test -n "$LCOV"; then
11822 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
11823 $as_echo "$LCOV" >&6; }
11824 else
11825 { $as_echo "$as_me:$LINENO: result: no" >&5
11826 $as_echo "no" >&6; }
11827 fi
11828
11829
11830 # Extract the first word of "genhtml", so it can be a program name with args.
11831 set dummy genhtml; ac_word=$2
11832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if test "${ac_cv_path_GENHTML+set}" = set; then
11835 $as_echo_n "(cached) " >&6
11836 else
11837 case $GENHTML in
11838 [\\/]* | ?:[\\/]*)
11839 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11840 ;;
11841 *)
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11844 do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
11850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11852 fi
11853 done
11854 done
11855 IFS=$as_save_IFS
11856
11857 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
11858 ;;
11859 esac
11860 fi
11861 GENHTML=$ac_cv_path_GENHTML
11862 if test -n "$GENHTML"; then
11863 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
11864 $as_echo "$GENHTML" >&6; }
11865 else
11866 { $as_echo "$as_me:$LINENO: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869
11870
11871 if test "$LCOV" = no -o "$GENHTML" = no ; then
11872 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
11873 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
11874 { (exit 1); exit 1; }; }
11875 fi
11876 fi
11877
11878 ################################################################################
11879 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
11880 $as_echo_n "checking whether to use device-mapper... " >&6; }
11881 # Check whether --enable-devmapper was given.
11882 if test "${enable_devmapper+set}" = set; then
11883 enableval=$enable_devmapper; DEVMAPPER=$enableval
11884 fi
11885
11886 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
11887 $as_echo "$DEVMAPPER" >&6; }
11888
11889 if test x$DEVMAPPER = xyes; then
11890
11891 cat >>confdefs.h <<\_ACEOF
11892 #define DEVMAPPER_SUPPORT 1
11893 _ACEOF
11894
11895 fi
11896
11897 ################################################################################
11898 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
11899 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
11900 # Check whether --enable-udev_sync was given.
11901 if test "${enable_udev_sync+set}" = set; then
11902 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
11903 else
11904 UDEV_SYNC=no
11905 fi
11906
11907 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
11908 $as_echo "$UDEV_SYNC" >&6; }
11909
11910 if test x$UDEV_SYNC = xyes; then
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define UDEV_SYNC_SUPPORT 1
11914 _ACEOF
11915
11916 fi
11917
11918 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
11919 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
11920 # Check whether --enable-udev_rules was given.
11921 if test "${enable_udev_rules+set}" = set; then
11922 enableval=$enable_udev_rules; UDEV_RULES=$enableval
11923 else
11924 UDEV_RULES=$UDEV_SYNC
11925 fi
11926
11927 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
11928 $as_echo "$UDEV_RULES" >&6; }
11929
11930 ################################################################################
11931 # Check whether --enable-compat was given.
11932 if test "${enable_compat+set}" = set; then
11933 enableval=$enable_compat; DM_COMPAT=$enableval
11934 else
11935 DM_COMPAT=no
11936 fi
11937
11938
11939 ################################################################################
11940 # Check whether --enable-ioctl was given.
11941 if test "${enable_ioctl+set}" = set; then
11942 enableval=$enable_ioctl; DM_IOCTLS=$enableval
11943 fi
11944
11945
11946 ################################################################################
11947 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
11948 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
11949 # Check whether --enable-o_direct was given.
11950 if test "${enable_o_direct+set}" = set; then
11951 enableval=$enable_o_direct; ODIRECT=$enableval
11952 fi
11953
11954 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
11955 $as_echo "$ODIRECT" >&6; }
11956
11957 if test x$ODIRECT = xyes; then
11958
11959 cat >>confdefs.h <<\_ACEOF
11960 #define O_DIRECT_SUPPORT 1
11961 _ACEOF
11962
11963 fi
11964
11965 ################################################################################
11966 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
11967 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
11968 # Check whether --enable-applib was given.
11969 if test "${enable_applib+set}" = set; then
11970 enableval=$enable_applib; APPLIB=$enableval
11971 else
11972 APPLIB=no
11973 fi
11974
11975 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
11976 $as_echo "$APPLIB" >&6; }
11977
11978 test x$APPLIB = xyes \
11979 && LVM2APP_LIB=-llvm2app \
11980 || LVM2APP_LIB=
11981
11982 ################################################################################
11983 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
11984 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
11985 # Check whether --enable-cmdlib was given.
11986 if test "${enable_cmdlib+set}" = set; then
11987 enableval=$enable_cmdlib; CMDLIB=$enableval
11988 else
11989 CMDLIB=no
11990 fi
11991
11992 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
11993 $as_echo "$CMDLIB" >&6; }
11994
11995 test x$CMDLIB = xyes \
11996 && LVM2CMD_LIB=-llvm2cmd \
11997 || LVM2CMD_LIB=
11998
11999 ################################################################################
12000 # Check whether --enable-pkgconfig was given.
12001 if test "${enable_pkgconfig+set}" = set; then
12002 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12003 else
12004 PKGCONFIG=no
12005 fi
12006
12007
12008 ################################################################################
12009 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12010 $as_echo_n "checking whether to install fsadm... " >&6; }
12011 # Check whether --enable-fsadm was given.
12012 if test "${enable_fsadm+set}" = set; then
12013 enableval=$enable_fsadm; FSADM=$enableval
12014 fi
12015
12016 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12017 $as_echo "$FSADM" >&6; }
12018
12019 ################################################################################
12020 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12021 $as_echo_n "checking whether to use dmeventd... " >&6; }
12022 # Check whether --enable-dmeventd was given.
12023 if test "${enable_dmeventd+set}" = set; then
12024 enableval=$enable_dmeventd; DMEVENTD=$enableval
12025 fi
12026
12027 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12028 $as_echo "$DMEVENTD" >&6; }
12029
12030 BUILD_DMEVENTD=$DMEVENTD
12031
12032 if test x$DMEVENTD = xyes; then
12033 if test x$MIRRORS != xinternal; then
12034 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12035 " >&5
12036 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12037 " >&2;}
12038 { (exit 1); exit 1; }; }
12039 fi
12040 if test x$CMDLIB = xno; then
12041 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12042 " >&5
12043 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12044 " >&2;}
12045 { (exit 1); exit 1; }; }
12046 fi
12047 fi
12048
12049 if test x$DMEVENTD = xyes; then
12050
12051 cat >>confdefs.h <<\_ACEOF
12052 #define DMEVENTD 1
12053 _ACEOF
12054
12055 fi
12056
12057 ################################################################################
12058
12059 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12060 $as_echo_n "checking for getline in -lc... " >&6; }
12061 if test "${ac_cv_lib_c_getline+set}" = set; then
12062 $as_echo_n "(cached) " >&6
12063 else
12064 ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-lc $LIBS"
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h. */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 char getline ();
12080 int
12081 main ()
12082 {
12083 return getline ();
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_link") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest$ac_exeext && {
12106 test "$cross_compiling" = yes ||
12107 $as_test_x conftest$ac_exeext
12108 }; then
12109 ac_cv_lib_c_getline=yes
12110 else
12111 $as_echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_cv_lib_c_getline=no
12115 fi
12116
12117 rm -rf conftest.dSYM
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12121 fi
12122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12123 $as_echo "$ac_cv_lib_c_getline" >&6; }
12124 if test "x$ac_cv_lib_c_getline" = x""yes; then
12125
12126 cat >>confdefs.h <<\_ACEOF
12127 #define HAVE_GETLINE 1
12128 _ACEOF
12129
12130 fi
12131
12132
12133 ################################################################################
12134
12135 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12136 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12137 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12138 $as_echo_n "(cached) " >&6
12139 else
12140 ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-lc $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char canonicalize_file_name ();
12156 int
12157 main ()
12158 {
12159 return canonicalize_file_name ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_link") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest$ac_exeext && {
12182 test "$cross_compiling" = yes ||
12183 $as_test_x conftest$ac_exeext
12184 }; then
12185 ac_cv_lib_c_canonicalize_file_name=yes
12186 else
12187 $as_echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 ac_cv_lib_c_canonicalize_file_name=no
12191 fi
12192
12193 rm -rf conftest.dSYM
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12199 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12200 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12201
12202 cat >>confdefs.h <<\_ACEOF
12203 #define HAVE_CANONICALIZE_FILE_NAME 1
12204 _ACEOF
12205
12206 fi
12207
12208
12209 ################################################################################
12210 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12211 then exec_prefix="";
12212 fi;
12213
12214 ################################################################################
12215 if test x$READLINE != xno; then
12216 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12217 $as_echo_n "checking for library containing tgetent... " >&6; }
12218 if test "${ac_cv_search_tgetent+set}" = set; then
12219 $as_echo_n "(cached) " >&6
12220 else
12221 ac_func_search_save_LIBS=$LIBS
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12232 #ifdef __cplusplus
12233 extern "C"
12234 #endif
12235 char tgetent ();
12236 int
12237 main ()
12238 {
12239 return tgetent ();
12240 ;
12241 return 0;
12242 }
12243 _ACEOF
12244 for ac_lib in '' tinfo ncurses curses termcap termlib; do
12245 if test -z "$ac_lib"; then
12246 ac_res="none required"
12247 else
12248 ac_res=-l$ac_lib
12249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12250 fi
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12258 $as_echo "$ac_try_echo") >&5
12259 (eval "$ac_link") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest$ac_exeext && {
12269 test "$cross_compiling" = yes ||
12270 $as_test_x conftest$ac_exeext
12271 }; then
12272 ac_cv_search_tgetent=$ac_res
12273 else
12274 $as_echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277
12278 fi
12279
12280 rm -rf conftest.dSYM
12281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12282 conftest$ac_exeext
12283 if test "${ac_cv_search_tgetent+set}" = set; then
12284 break
12285 fi
12286 done
12287 if test "${ac_cv_search_tgetent+set}" = set; then
12288 :
12289 else
12290 ac_cv_search_tgetent=no
12291 fi
12292 rm conftest.$ac_ext
12293 LIBS=$ac_func_search_save_LIBS
12294 fi
12295 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12296 $as_echo "$ac_cv_search_tgetent" >&6; }
12297 ac_res=$ac_cv_search_tgetent
12298 if test "$ac_res" != no; then
12299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12300 tg_found=yes
12301 else
12302 tg_found=no
12303 fi
12304
12305 test x$READLINE:$tg_found = xyes:no &&
12306 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
12307 --enable-readline option (which is enabled by default). Either disable readline
12308 support with --disable-readline or download and install termcap from:
12309 ftp.gnu.org/gnu/termcap
12310 Note: if you are using precompiled packages you will also need the development
12311 package as well (which may be called termcap-devel or something similar).
12312 Note: (n)curses also seems to work as a substitute for termcap. This was
12313 not found either - but you could try installing that as well.
12314 " >&5
12315 $as_echo "$as_me: error: termcap could not be found which is required for the
12316 --enable-readline option (which is enabled by default). Either disable readline
12317 support with --disable-readline or download and install termcap from:
12318 ftp.gnu.org/gnu/termcap
12319 Note: if you are using precompiled packages you will also need the development
12320 package as well (which may be called termcap-devel or something similar).
12321 Note: (n)curses also seems to work as a substitute for termcap. This was
12322 not found either - but you could try installing that as well.
12323 " >&2;}
12324 { (exit 1); exit 1; }; }
12325 fi
12326
12327 ################################################################################
12328 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12329 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12330 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12331 $as_echo_n "(cached) " >&6
12332 else
12333 ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-ldl $LIBS"
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char dlopen ();
12349 int
12350 main ()
12351 {
12352 return dlopen ();
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12364 $as_echo "$ac_try_echo") >&5
12365 (eval "$ac_link") 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest$ac_exeext && {
12375 test "$cross_compiling" = yes ||
12376 $as_test_x conftest$ac_exeext
12377 }; then
12378 ac_cv_lib_dl_dlopen=yes
12379 else
12380 $as_echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_cv_lib_dl_dlopen=no
12384 fi
12385
12386 rm -rf conftest.dSYM
12387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12390 fi
12391 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12392 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12393 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12394 HAVE_LIBDL=yes
12395 else
12396 HAVE_LIBDL=no
12397 fi
12398
12399
12400 if [ "x$HAVE_LIBDL" = xyes ]; then
12401
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_LIBDL 1
12404 _ACEOF
12405
12406 LIBS="-ldl $LIBS"
12407 else
12408 HAVE_LIBDL=no
12409 fi
12410
12411 ################################################################################
12412 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12413 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12414 \) -a "x$STATIC_LINK" = xyes ];
12415 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12416 " >&5
12417 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12418 " >&2;}
12419 { (exit 1); exit 1; }; }
12420 fi
12421
12422 ################################################################################
12423 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12424 $as_echo_n "checking whether to enable selinux support... " >&6; }
12425 # Check whether --enable-selinux was given.
12426 if test "${enable_selinux+set}" = set; then
12427 enableval=$enable_selinux; SELINUX=$enableval
12428 fi
12429
12430 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12431 $as_echo "$SELINUX" >&6; }
12432
12433 ################################################################################
12434 if test x$SELINUX = xyes; then
12435 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12436 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12437 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12438 $as_echo_n "(cached) " >&6
12439 else
12440 ac_check_lib_save_LIBS=$LIBS
12441 LIBS="-lsepol $LIBS"
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h. */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char sepol_check_context ();
12456 int
12457 main ()
12458 {
12459 return sepol_check_context ();
12460 ;
12461 return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (ac_try="$ac_link"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469 esac
12470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471 $as_echo "$ac_try_echo") >&5
12472 (eval "$ac_link") 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest$ac_exeext && {
12482 test "$cross_compiling" = yes ||
12483 $as_test_x conftest$ac_exeext
12484 }; then
12485 ac_cv_lib_sepol_sepol_check_context=yes
12486 else
12487 $as_echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 ac_cv_lib_sepol_sepol_check_context=no
12491 fi
12492
12493 rm -rf conftest.dSYM
12494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12497 fi
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12499 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12500 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12501 HAVE_SEPOL=yes
12502 else
12503 HAVE_SEPOL=no
12504 fi
12505
12506
12507 if test x$HAVE_SEPOL = xyes; then
12508
12509 cat >>confdefs.h <<\_ACEOF
12510 #define HAVE_SEPOL 1
12511 _ACEOF
12512
12513 LIBS="-lsepol $LIBS"
12514 fi
12515
12516 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12517 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12518 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12519 $as_echo_n "(cached) " >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lselinux $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char is_selinux_enabled ();
12537 int
12538 main ()
12539 {
12540 return is_selinux_enabled ();
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12552 $as_echo "$ac_try_echo") >&5
12553 (eval "$ac_link") 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest$ac_exeext && {
12563 test "$cross_compiling" = yes ||
12564 $as_test_x conftest$ac_exeext
12565 }; then
12566 ac_cv_lib_selinux_is_selinux_enabled=yes
12567 else
12568 $as_echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ac_cv_lib_selinux_is_selinux_enabled=no
12572 fi
12573
12574 rm -rf conftest.dSYM
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12580 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12581 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12582 HAVE_SELINUX=yes
12583 else
12584 HAVE_SELINUX=no
12585 fi
12586
12587
12588 if test x$HAVE_SELINUX = xyes; then
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_SELINUX 1
12592 _ACEOF
12593
12594 LIBS="-lselinux $LIBS"
12595 else
12596 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12597 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
12598 fi
12599
12600 # With --enable-static_link and selinux enabled, linking
12601 # fails on at least Debian unstable due to unsatisfied references
12602 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12603 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12604 lvm_saved_libs=$LIBS
12605 LIBS="$LIBS -static"
12606 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12607 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
12608 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12609 $as_echo_n "(cached) " >&6
12610 else
12611 ac_func_search_save_LIBS=$LIBS
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char pthread_mutex_lock ();
12626 int
12627 main ()
12628 {
12629 return pthread_mutex_lock ();
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 for ac_lib in '' pthread; do
12635 if test -z "$ac_lib"; then
12636 ac_res="none required"
12637 else
12638 ac_res=-l$ac_lib
12639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12640 fi
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649 (eval "$ac_link") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest$ac_exeext && {
12659 test "$cross_compiling" = yes ||
12660 $as_test_x conftest$ac_exeext
12661 }; then
12662 ac_cv_search_pthread_mutex_lock=$ac_res
12663 else
12664 $as_echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667
12668 fi
12669
12670 rm -rf conftest.dSYM
12671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12672 conftest$ac_exeext
12673 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12674 break
12675 fi
12676 done
12677 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12678 :
12679 else
12680 ac_cv_search_pthread_mutex_lock=no
12681 fi
12682 rm conftest.$ac_ext
12683 LIBS=$ac_func_search_save_LIBS
12684 fi
12685 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12686 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
12687 ac_res=$ac_cv_search_pthread_mutex_lock
12688 if test "$ac_res" != no; then
12689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
12691 LIB_PTHREAD=-lpthread
12692 fi
12693
12694 LIBS=$lvm_saved_libs
12695 fi
12696 fi
12697
12698 ################################################################################
12699 if test x$REALTIME = xyes; then
12700 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12701 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12702 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12703 $as_echo_n "(cached) " >&6
12704 else
12705 ac_check_lib_save_LIBS=$LIBS
12706 LIBS="-lrt $LIBS"
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char clock_gettime ();
12721 int
12722 main ()
12723 {
12724 return clock_gettime ();
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737 (eval "$ac_link") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest$ac_exeext && {
12747 test "$cross_compiling" = yes ||
12748 $as_test_x conftest$ac_exeext
12749 }; then
12750 ac_cv_lib_rt_clock_gettime=yes
12751 else
12752 $as_echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ac_cv_lib_rt_clock_gettime=no
12756 fi
12757
12758 rm -rf conftest.dSYM
12759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12760 conftest$ac_exeext conftest.$ac_ext
12761 LIBS=$ac_check_lib_save_LIBS
12762 fi
12763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12764 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12765 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
12766 HAVE_REALTIME=yes
12767 else
12768 HAVE_REALTIME=no
12769 fi
12770
12771
12772 if test x$HAVE_REALTIME = xyes; then
12773
12774 cat >>confdefs.h <<\_ACEOF
12775 #define HAVE_REALTIME 1
12776 _ACEOF
12777
12778 LIBS="-lrt $LIBS"
12779 else
12780 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
12781 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
12782 fi
12783 fi
12784
12785 ################################################################################
12786
12787 for ac_header in getopt.h
12788 do
12789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12792 $as_echo_n "checking for $ac_header... " >&6; }
12793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12794 $as_echo_n "(cached) " >&6
12795 fi
12796 ac_res=`eval 'as_val=${'$as_ac_Header'}
12797 $as_echo "$as_val"'`
12798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12799 $as_echo "$ac_res" >&6; }
12800 else
12801 # Is the header compilable?
12802 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12803 $as_echo_n "checking $ac_header usability... " >&6; }
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 $ac_includes_default
12811 #include <$ac_header>
12812 _ACEOF
12813 rm -f conftest.$ac_objext
12814 if { (ac_try="$ac_compile"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818 esac
12819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12820 $as_echo "$ac_try_echo") >&5
12821 (eval "$ac_compile") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.$ac_objext; then
12831 ac_header_compiler=yes
12832 else
12833 $as_echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 ac_header_compiler=no
12837 fi
12838
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12841 $as_echo "$ac_header_compiler" >&6; }
12842
12843 # Is the header present?
12844 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12845 $as_echo_n "checking $ac_header presence... " >&6; }
12846 cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h. */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12852 #include <$ac_header>
12853 _ACEOF
12854 if { (ac_try="$ac_cpp conftest.$ac_ext"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858 esac
12859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12860 $as_echo "$ac_try_echo") >&5
12861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } >/dev/null && {
12868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 }; then
12871 ac_header_preproc=yes
12872 else
12873 $as_echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_header_preproc=no
12877 fi
12878
12879 rm -f conftest.err conftest.$ac_ext
12880 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 $as_echo "$ac_header_preproc" >&6; }
12882
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885 yes:no: )
12886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc=yes
12891 ;;
12892 no:yes:* )
12893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12896 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12900 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12905
12906 ;;
12907 esac
12908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12909 $as_echo_n "checking for $ac_header... " >&6; }
12910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12911 $as_echo_n "(cached) " >&6
12912 else
12913 eval "$as_ac_Header=\$ac_header_preproc"
12914 fi
12915 ac_res=`eval 'as_val=${'$as_ac_Header'}
12916 $as_echo "$as_val"'`
12917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12918 $as_echo "$ac_res" >&6; }
12919
12920 fi
12921 as_val=`eval 'as_val=${'$as_ac_Header'}
12922 $as_echo "$as_val"'`
12923 if test "x$as_val" = x""yes; then
12924 cat >>confdefs.h <<_ACEOF
12925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12926 _ACEOF
12927
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_GETOPTLONG 1
12930 _ACEOF
12931
12932 fi
12933
12934 done
12935
12936
12937 ################################################################################
12938 if test x$READLINE != xno; then
12939 rl_found=yes
12940
12941 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
12942 $as_echo_n "checking for readline in -lreadline... " >&6; }
12943 if test "${ac_cv_lib_readline_readline+set}" = set; then
12944 $as_echo_n "(cached) " >&6
12945 else
12946 ac_check_lib_save_LIBS=$LIBS
12947 LIBS="-lreadline $LIBS"
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char readline ();
12962 int
12963 main ()
12964 {
12965 return readline ();
12966 ;
12967 return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (ac_try="$ac_link"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977 $as_echo "$ac_try_echo") >&5
12978 (eval "$ac_link") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } && {
12985 test -z "$ac_c_werror_flag" ||
12986 test ! -s conftest.err
12987 } && test -s conftest$ac_exeext && {
12988 test "$cross_compiling" = yes ||
12989 $as_test_x conftest$ac_exeext
12990 }; then
12991 ac_cv_lib_readline_readline=yes
12992 else
12993 $as_echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_cv_lib_readline_readline=no
12997 fi
12998
12999 rm -rf conftest.dSYM
13000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13001 conftest$ac_exeext conftest.$ac_ext
13002 LIBS=$ac_check_lib_save_LIBS
13003 fi
13004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13005 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13006 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13007 cat >>confdefs.h <<_ACEOF
13008 #define HAVE_LIBREADLINE 1
13009 _ACEOF
13010
13011 LIBS="-lreadline $LIBS"
13012
13013 else
13014 rl_found=no
13015 fi
13016
13017 test x$READLINE:$rl_found = xyes:no &&
13018 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13019 --enable-readline option (which is enabled by default). Either disable readline
13020 support with --disable-readline or download and install readline from:
13021 ftp.gnu.org/gnu/readline
13022 Note: if you are using precompiled packages you will also need the development
13023 package as well (which may be called readline-devel or something similar).
13024 " >&5
13025 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13026 --enable-readline option (which is enabled by default). Either disable readline
13027 support with --disable-readline or download and install readline from:
13028 ftp.gnu.org/gnu/readline
13029 Note: if you are using precompiled packages you will also need the development
13030 package as well (which may be called readline-devel or something similar).
13031 " >&2;}
13032 { (exit 1); exit 1; }; }
13033 if test $rl_found = yes; then
13034
13035 for ac_func in rl_completion_matches
13036 do
13037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13039 $as_echo_n "checking for $ac_func... " >&6; }
13040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13041 $as_echo_n "(cached) " >&6
13042 else
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13051 #define $ac_func innocuous_$ac_func
13052
13053 /* System header to define __stub macros and hopefully few prototypes,
13054 which can conflict with char $ac_func (); below.
13055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056 <limits.h> exists even on freestanding compilers. */
13057
13058 #ifdef __STDC__
13059 # include <limits.h>
13060 #else
13061 # include <assert.h>
13062 #endif
13063
13064 #undef $ac_func
13065
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 char $ac_func ();
13073 /* The GNU C library defines this for functions which it implements
13074 to always fail with ENOSYS. Some functions are actually named
13075 something starting with __ and the normal name is an alias. */
13076 #if defined __stub_$ac_func || defined __stub___$ac_func
13077 choke me
13078 #endif
13079
13080 int
13081 main ()
13082 {
13083 return $ac_func ();
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096 (eval "$ac_link") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest$ac_exeext && {
13106 test "$cross_compiling" = yes ||
13107 $as_test_x conftest$ac_exeext
13108 }; then
13109 eval "$as_ac_var=yes"
13110 else
13111 $as_echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 eval "$as_ac_var=no"
13115 fi
13116
13117 rm -rf conftest.dSYM
13118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13119 conftest$ac_exeext conftest.$ac_ext
13120 fi
13121 ac_res=`eval 'as_val=${'$as_ac_var'}
13122 $as_echo "$as_val"'`
13123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13124 $as_echo "$ac_res" >&6; }
13125 as_val=`eval 'as_val=${'$as_ac_var'}
13126 $as_echo "$as_val"'`
13127 if test "x$as_val" = x""yes; then
13128 cat >>confdefs.h <<_ACEOF
13129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13130 _ACEOF
13131
13132 fi
13133 done
13134
13135
13136 cat >>confdefs.h <<\_ACEOF
13137 #define READLINE_SUPPORT 1
13138 _ACEOF
13139
13140 fi
13141 fi
13142
13143 ################################################################################
13144 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13145 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13146 # Check whether --enable-nls was given.
13147 if test "${enable_nls+set}" = set; then
13148 enableval=$enable_nls; INTL=$enableval
13149 else
13150 INTL=no
13151 fi
13152
13153 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13154 $as_echo "$INTL" >&6; }
13155
13156 if test x$INTL = xyes; then
13157 # FIXME - Move this - can be device-mapper too
13158 INTL_PACKAGE="lvm2"
13159 # Extract the first word of "msgfmt", so it can be a program name with args.
13160 set dummy msgfmt; ac_word=$2
13161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if test "${ac_cv_path_MSGFMT+set}" = set; then
13164 $as_echo_n "(cached) " >&6
13165 else
13166 case $MSGFMT in
13167 [\\/]* | ?:[\\/]*)
13168 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13169 ;;
13170 *)
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13173 do
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 break 2
13181 fi
13182 done
13183 done
13184 IFS=$as_save_IFS
13185
13186 ;;
13187 esac
13188 fi
13189 MSGFMT=$ac_cv_path_MSGFMT
13190 if test -n "$MSGFMT"; then
13191 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13192 $as_echo "$MSGFMT" >&6; }
13193 else
13194 { $as_echo "$as_me:$LINENO: result: no" >&5
13195 $as_echo "no" >&6; }
13196 fi
13197
13198
13199 if [ "x$MSGFMT" == x ];
13200 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13201 " >&5
13202 $as_echo "$as_me: error: msgfmt not found in path $PATH
13203 " >&2;}
13204 { (exit 1); exit 1; }; }
13205 fi;
13206
13207
13208 # Check whether --with-localedir was given.
13209 if test "${with_localedir+set}" = set; then
13210 withval=$with_localedir; LOCALEDIR="$withval"
13211 else
13212 LOCALEDIR='${prefix}/share/locale'
13213 fi
13214
13215 fi
13216
13217 ################################################################################
13218
13219 # Check whether --with-confdir was given.
13220 if test "${with_confdir+set}" = set; then
13221 withval=$with_confdir; CONFDIR="$withval"
13222 else
13223 CONFDIR='/etc'
13224 fi
13225
13226
13227
13228 # Check whether --with-staticdir was given.
13229 if test "${with_staticdir+set}" = set; then
13230 withval=$with_staticdir; STATICDIR="$withval"
13231 else
13232 STATICDIR='${exec_prefix}/sbin'
13233 fi
13234
13235
13236
13237 # Check whether --with-usrlibdir was given.
13238 if test "${with_usrlibdir+set}" = set; then
13239 withval=$with_usrlibdir; usrlibdir="$withval"
13240 else
13241 usrlibdir='${prefix}/lib'
13242 fi
13243
13244
13245
13246 # Check whether --with-usrsbindir was given.
13247 if test "${with_usrsbindir+set}" = set; then
13248 withval=$with_usrsbindir; usrsbindir="$withval"
13249 else
13250 usrsbindir='${prefix}/sbin'
13251 fi
13252
13253
13254 ################################################################################
13255
13256 # Check whether --with-udev_prefix was given.
13257 if test "${with_udev_prefix+set}" = set; then
13258 withval=$with_udev_prefix; udev_prefix="$withval"
13259 else
13260 udev_prefix='${exec_prefix}'
13261 fi
13262
13263
13264
13265 # Check whether --with-udevdir was given.
13266 if test "${with_udevdir+set}" = set; then
13267 withval=$with_udevdir; udevdir="$withval"
13268 else
13269 udevdir='${udev_prefix}/lib/udev/rules.d'
13270 fi
13271
13272
13273 ################################################################################
13274 if test x$READLINE = xyes; then
13275
13276
13277 for ac_header in readline/readline.h readline/history.h
13278 do
13279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13282 $as_echo_n "checking for $ac_header... " >&6; }
13283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13284 $as_echo_n "(cached) " >&6
13285 fi
13286 ac_res=`eval 'as_val=${'$as_ac_Header'}
13287 $as_echo "$as_val"'`
13288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13289 $as_echo "$ac_res" >&6; }
13290 else
13291 # Is the header compilable?
13292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13293 $as_echo_n "checking $ac_header usability... " >&6; }
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h. */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 $ac_includes_default
13301 #include <$ac_header>
13302 _ACEOF
13303 rm -f conftest.$ac_objext
13304 if { (ac_try="$ac_compile"
13305 case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311 (eval "$ac_compile") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest.$ac_objext; then
13321 ac_header_compiler=yes
13322 else
13323 $as_echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_header_compiler=no
13327 fi
13328
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13331 $as_echo "$ac_header_compiler" >&6; }
13332
13333 # Is the header present?
13334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13335 $as_echo_n "checking $ac_header presence... " >&6; }
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include <$ac_header>
13343 _ACEOF
13344 if { (ac_try="$ac_cpp conftest.$ac_ext"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348 esac
13349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13350 $as_echo "$ac_try_echo") >&5
13351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } >/dev/null && {
13358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13359 test ! -s conftest.err
13360 }; then
13361 ac_header_preproc=yes
13362 else
13363 $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 ac_header_preproc=no
13367 fi
13368
13369 rm -f conftest.err conftest.$ac_ext
13370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13371 $as_echo "$ac_header_preproc" >&6; }
13372
13373 # So? What about this header?
13374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13375 yes:no: )
13376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13380 ac_header_preproc=yes
13381 ;;
13382 no:yes:* )
13383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13386 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13390 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13395
13396 ;;
13397 esac
13398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 $as_echo_n "checking for $ac_header... " >&6; }
13400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13401 $as_echo_n "(cached) " >&6
13402 else
13403 eval "$as_ac_Header=\$ac_header_preproc"
13404 fi
13405 ac_res=`eval 'as_val=${'$as_ac_Header'}
13406 $as_echo "$as_val"'`
13407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13409
13410 fi
13411 as_val=`eval 'as_val=${'$as_ac_Header'}
13412 $as_echo "$as_val"'`
13413 if test "x$as_val" = x""yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 _ACEOF
13417
13418 else
13419 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13420 $as_echo "$as_me: error: bailing out" >&2;}
13421 { (exit 1); exit 1; }; }
13422 fi
13423
13424 done
13425
13426 fi
13427
13428 if test x$CLVMD != xnone; then
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439 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
13440 do
13441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 $as_echo_n "checking for $ac_header... " >&6; }
13445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13446 $as_echo_n "(cached) " >&6
13447 fi
13448 ac_res=`eval 'as_val=${'$as_ac_Header'}
13449 $as_echo "$as_val"'`
13450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13451 $as_echo "$ac_res" >&6; }
13452 else
13453 # Is the header compilable?
13454 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13455 $as_echo_n "checking $ac_header usability... " >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <$ac_header>
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13472 $as_echo "$ac_try_echo") >&5
13473 (eval "$ac_compile") 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && {
13480 test -z "$ac_c_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest.$ac_objext; then
13483 ac_header_compiler=yes
13484 else
13485 $as_echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 ac_header_compiler=no
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 $as_echo "$ac_header_compiler" >&6; }
13494
13495 # Is the header present?
13496 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 $as_echo_n "checking $ac_header presence... " >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h. */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <$ac_header>
13505 _ACEOF
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510 esac
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } >/dev/null && {
13520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 }; then
13523 ac_header_preproc=yes
13524 else
13525 $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_header_preproc=no
13529 fi
13530
13531 rm -f conftest.err conftest.$ac_ext
13532 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533 $as_echo "$ac_header_preproc" >&6; }
13534
13535 # So? What about this header?
13536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 yes:no: )
13538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13539 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13542 ac_header_preproc=yes
13543 ;;
13544 no:yes:* )
13545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13550 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13552 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13556 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13557
13558 ;;
13559 esac
13560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13561 $as_echo_n "checking for $ac_header... " >&6; }
13562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13563 $as_echo_n "(cached) " >&6
13564 else
13565 eval "$as_ac_Header=\$ac_header_preproc"
13566 fi
13567 ac_res=`eval 'as_val=${'$as_ac_Header'}
13568 $as_echo "$as_val"'`
13569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13570 $as_echo "$ac_res" >&6; }
13571
13572 fi
13573 as_val=`eval 'as_val=${'$as_ac_Header'}
13574 $as_echo "$as_val"'`
13575 if test "x$as_val" = x""yes; then
13576 cat >>confdefs.h <<_ACEOF
13577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13578 _ACEOF
13579
13580 else
13581 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13582 $as_echo "$as_me: error: bailing out" >&2;}
13583 { (exit 1); exit 1; }; }
13584 fi
13585
13586 done
13587
13588
13589
13590
13591
13592
13593 for ac_func in dup2 getmntent memmove select socket
13594 do
13595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13597 $as_echo_n "checking for $ac_func... " >&6; }
13598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13599 $as_echo_n "(cached) " >&6
13600 else
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13609 #define $ac_func innocuous_$ac_func
13610
13611 /* System header to define __stub macros and hopefully few prototypes,
13612 which can conflict with char $ac_func (); below.
13613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13614 <limits.h> exists even on freestanding compilers. */
13615
13616 #ifdef __STDC__
13617 # include <limits.h>
13618 #else
13619 # include <assert.h>
13620 #endif
13621
13622 #undef $ac_func
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char $ac_func ();
13631 /* The GNU C library defines this for functions which it implements
13632 to always fail with ENOSYS. Some functions are actually named
13633 something starting with __ and the normal name is an alias. */
13634 #if defined __stub_$ac_func || defined __stub___$ac_func
13635 choke me
13636 #endif
13637
13638 int
13639 main ()
13640 {
13641 return $ac_func ();
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651 esac
13652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653 $as_echo "$ac_try_echo") >&5
13654 (eval "$ac_link") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest$ac_exeext && {
13664 test "$cross_compiling" = yes ||
13665 $as_test_x conftest$ac_exeext
13666 }; then
13667 eval "$as_ac_var=yes"
13668 else
13669 $as_echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 eval "$as_ac_var=no"
13673 fi
13674
13675 rm -rf conftest.dSYM
13676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13677 conftest$ac_exeext conftest.$ac_ext
13678 fi
13679 ac_res=`eval 'as_val=${'$as_ac_var'}
13680 $as_echo "$as_val"'`
13681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13682 $as_echo "$ac_res" >&6; }
13683 as_val=`eval 'as_val=${'$as_ac_var'}
13684 $as_echo "$as_val"'`
13685 if test "x$as_val" = x""yes; then
13686 cat >>confdefs.h <<_ACEOF
13687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13688 _ACEOF
13689
13690 else
13691 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13692 $as_echo "$as_me: error: bailing out" >&2;}
13693 { (exit 1); exit 1; }; }
13694 fi
13695 done
13696
13697 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
13698 # -lseq on Dynix/PTX, -lgen on Unixware.
13699 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
13700 $as_echo_n "checking for library containing getmntent... " >&6; }
13701 if test "${ac_cv_search_getmntent+set}" = set; then
13702 $as_echo_n "(cached) " >&6
13703 else
13704 ac_func_search_save_LIBS=$LIBS
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h. */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13715 #ifdef __cplusplus
13716 extern "C"
13717 #endif
13718 char getmntent ();
13719 int
13720 main ()
13721 {
13722 return getmntent ();
13723 ;
13724 return 0;
13725 }
13726 _ACEOF
13727 for ac_lib in '' sun seq gen; do
13728 if test -z "$ac_lib"; then
13729 ac_res="none required"
13730 else
13731 ac_res=-l$ac_lib
13732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13733 fi
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (ac_try="$ac_link"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13741 $as_echo "$ac_try_echo") >&5
13742 (eval "$ac_link") 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && {
13749 test -z "$ac_c_werror_flag" ||
13750 test ! -s conftest.err
13751 } && test -s conftest$ac_exeext && {
13752 test "$cross_compiling" = yes ||
13753 $as_test_x conftest$ac_exeext
13754 }; then
13755 ac_cv_search_getmntent=$ac_res
13756 else
13757 $as_echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760
13761 fi
13762
13763 rm -rf conftest.dSYM
13764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13765 conftest$ac_exeext
13766 if test "${ac_cv_search_getmntent+set}" = set; then
13767 break
13768 fi
13769 done
13770 if test "${ac_cv_search_getmntent+set}" = set; then
13771 :
13772 else
13773 ac_cv_search_getmntent=no
13774 fi
13775 rm conftest.$ac_ext
13776 LIBS=$ac_func_search_save_LIBS
13777 fi
13778 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
13779 $as_echo "$ac_cv_search_getmntent" >&6; }
13780 ac_res=$ac_cv_search_getmntent
13781 if test "$ac_res" != no; then
13782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13783 ac_cv_func_getmntent=yes
13784
13785 cat >>confdefs.h <<\_ACEOF
13786 #define HAVE_GETMNTENT 1
13787 _ACEOF
13788
13789 else
13790 ac_cv_func_getmntent=no
13791 fi
13792
13793
13794 # AC_FUNC_REALLOC
13795
13796
13797 for ac_header in sys/select.h sys/socket.h
13798 do
13799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13802 $as_echo_n "checking for $ac_header... " >&6; }
13803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13804 $as_echo_n "(cached) " >&6
13805 fi
13806 ac_res=`eval 'as_val=${'$as_ac_Header'}
13807 $as_echo "$as_val"'`
13808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13809 $as_echo "$ac_res" >&6; }
13810 else
13811 # Is the header compilable?
13812 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13813 $as_echo_n "checking $ac_header usability... " >&6; }
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13821 #include <$ac_header>
13822 _ACEOF
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828 esac
13829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13830 $as_echo "$ac_try_echo") >&5
13831 (eval "$ac_compile") 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 } && test -s conftest.$ac_objext; then
13841 ac_header_compiler=yes
13842 else
13843 $as_echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_header_compiler=no
13847 fi
13848
13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13851 $as_echo "$ac_header_compiler" >&6; }
13852
13853 # Is the header present?
13854 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13855 $as_echo_n "checking $ac_header presence... " >&6; }
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <$ac_header>
13863 _ACEOF
13864 if { (ac_try="$ac_cpp conftest.$ac_ext"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868 esac
13869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13870 $as_echo "$ac_try_echo") >&5
13871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } >/dev/null && {
13878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 }; then
13881 ac_header_preproc=yes
13882 else
13883 $as_echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 ac_header_preproc=no
13887 fi
13888
13889 rm -f conftest.err conftest.$ac_ext
13890 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13891 $as_echo "$ac_header_preproc" >&6; }
13892
13893 # So? What about this header?
13894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13895 yes:no: )
13896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13897 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13900 ac_header_preproc=yes
13901 ;;
13902 no:yes:* )
13903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13904 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13906 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13908 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13910 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13914 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13915
13916 ;;
13917 esac
13918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13919 $as_echo_n "checking for $ac_header... " >&6; }
13920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13921 $as_echo_n "(cached) " >&6
13922 else
13923 eval "$as_ac_Header=\$ac_header_preproc"
13924 fi
13925 ac_res=`eval 'as_val=${'$as_ac_Header'}
13926 $as_echo "$as_val"'`
13927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13928 $as_echo "$ac_res" >&6; }
13929
13930 fi
13931 as_val=`eval 'as_val=${'$as_ac_Header'}
13932 $as_echo "$as_val"'`
13933 if test "x$as_val" = x""yes; then
13934 cat >>confdefs.h <<_ACEOF
13935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13936 _ACEOF
13937
13938 fi
13939
13940 done
13941
13942 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
13943 $as_echo_n "checking types of arguments for select... " >&6; }
13944 if test "${ac_cv_func_select_args+set}" = set; then
13945 $as_echo_n "(cached) " >&6
13946 else
13947 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13948 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13949 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13950 cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h. */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13956 $ac_includes_default
13957 #ifdef HAVE_SYS_SELECT_H
13958 # include <sys/select.h>
13959 #endif
13960 #ifdef HAVE_SYS_SOCKET_H
13961 # include <sys/socket.h>
13962 #endif
13963
13964 int
13965 main ()
13966 {
13967 extern int select ($ac_arg1,
13968 $ac_arg234, $ac_arg234, $ac_arg234,
13969 $ac_arg5);
13970 ;
13971 return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13981 $as_echo "$ac_try_echo") >&5
13982 (eval "$ac_compile") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest.$ac_objext; then
13992 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13993 else
13994 $as_echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13996
13997
13998 fi
13999
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 done
14002 done
14003 done
14004 # Provide a safe default value.
14005 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14006
14007 fi
14008 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14009 $as_echo "$ac_cv_func_select_args" >&6; }
14010 ac_save_IFS=$IFS; IFS=','
14011 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14012 IFS=$ac_save_IFS
14013 shift
14014
14015 cat >>confdefs.h <<_ACEOF
14016 #define SELECT_TYPE_ARG1 $1
14017 _ACEOF
14018
14019
14020 cat >>confdefs.h <<_ACEOF
14021 #define SELECT_TYPE_ARG234 ($2)
14022 _ACEOF
14023
14024
14025 cat >>confdefs.h <<_ACEOF
14026 #define SELECT_TYPE_ARG5 ($3)
14027 _ACEOF
14028
14029 rm -f conftest*
14030
14031 fi
14032
14033 if test x$CLUSTER != xnone; then
14034
14035
14036 for ac_header in sys/socket.h sys/un.h
14037 do
14038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 $as_echo_n "checking for $ac_header... " >&6; }
14042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14043 $as_echo_n "(cached) " >&6
14044 fi
14045 ac_res=`eval 'as_val=${'$as_ac_Header'}
14046 $as_echo "$as_val"'`
14047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14048 $as_echo "$ac_res" >&6; }
14049 else
14050 # Is the header compilable?
14051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14052 $as_echo_n "checking $ac_header usability... " >&6; }
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h. */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 $ac_includes_default
14060 #include <$ac_header>
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (ac_try="$ac_compile"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067 esac
14068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14069 $as_echo "$ac_try_echo") >&5
14070 (eval "$ac_compile") 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest.$ac_objext; then
14080 ac_header_compiler=yes
14081 else
14082 $as_echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 ac_header_compiler=no
14086 fi
14087
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14090 $as_echo "$ac_header_compiler" >&6; }
14091
14092 # Is the header present?
14093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14094 $as_echo_n "checking $ac_header presence... " >&6; }
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h. */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 #include <$ac_header>
14102 _ACEOF
14103 if { (ac_try="$ac_cpp conftest.$ac_ext"
14104 case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107 esac
14108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14109 $as_echo "$ac_try_echo") >&5
14110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } >/dev/null && {
14117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 }; then
14120 ac_header_preproc=yes
14121 else
14122 $as_echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_header_preproc=no
14126 fi
14127
14128 rm -f conftest.err conftest.$ac_ext
14129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130 $as_echo "$ac_header_preproc" >&6; }
14131
14132 # So? What about this header?
14133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14134 yes:no: )
14135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14139 ac_header_preproc=yes
14140 ;;
14141 no:yes:* )
14142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14145 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14149 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14154
14155 ;;
14156 esac
14157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14158 $as_echo_n "checking for $ac_header... " >&6; }
14159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160 $as_echo_n "(cached) " >&6
14161 else
14162 eval "$as_ac_Header=\$ac_header_preproc"
14163 fi
14164 ac_res=`eval 'as_val=${'$as_ac_Header'}
14165 $as_echo "$as_val"'`
14166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14167 $as_echo "$ac_res" >&6; }
14168
14169 fi
14170 as_val=`eval 'as_val=${'$as_ac_Header'}
14171 $as_echo "$as_val"'`
14172 if test "x$as_val" = x""yes; then
14173 cat >>confdefs.h <<_ACEOF
14174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14175 _ACEOF
14176
14177 else
14178 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14179 $as_echo "$as_me: error: bailing out" >&2;}
14180 { (exit 1); exit 1; }; }
14181 fi
14182
14183 done
14184
14185
14186 for ac_func in socket
14187 do
14188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14190 $as_echo_n "checking for $ac_func... " >&6; }
14191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h. */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14202 #define $ac_func innocuous_$ac_func
14203
14204 /* System header to define __stub macros and hopefully few prototypes,
14205 which can conflict with char $ac_func (); below.
14206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14207 <limits.h> exists even on freestanding compilers. */
14208
14209 #ifdef __STDC__
14210 # include <limits.h>
14211 #else
14212 # include <assert.h>
14213 #endif
14214
14215 #undef $ac_func
14216
14217 /* Override any GCC internal prototype to avoid an error.
14218 Use char because int might match the return type of a GCC
14219 builtin and then its argument prototype would still apply. */
14220 #ifdef __cplusplus
14221 extern "C"
14222 #endif
14223 char $ac_func ();
14224 /* The GNU C library defines this for functions which it implements
14225 to always fail with ENOSYS. Some functions are actually named
14226 something starting with __ and the normal name is an alias. */
14227 #if defined __stub_$ac_func || defined __stub___$ac_func
14228 choke me
14229 #endif
14230
14231 int
14232 main ()
14233 {
14234 return $ac_func ();
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14246 $as_echo "$ac_try_echo") >&5
14247 (eval "$ac_link") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest$ac_exeext && {
14257 test "$cross_compiling" = yes ||
14258 $as_test_x conftest$ac_exeext
14259 }; then
14260 eval "$as_ac_var=yes"
14261 else
14262 $as_echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 eval "$as_ac_var=no"
14266 fi
14267
14268 rm -rf conftest.dSYM
14269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14270 conftest$ac_exeext conftest.$ac_ext
14271 fi
14272 ac_res=`eval 'as_val=${'$as_ac_var'}
14273 $as_echo "$as_val"'`
14274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14275 $as_echo "$ac_res" >&6; }
14276 as_val=`eval 'as_val=${'$as_ac_var'}
14277 $as_echo "$as_val"'`
14278 if test "x$as_val" = x""yes; then
14279 cat >>confdefs.h <<_ACEOF
14280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14281 _ACEOF
14282
14283 else
14284 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14285 $as_echo "$as_me: error: bailing out" >&2;}
14286 { (exit 1); exit 1; }; }
14287 fi
14288 done
14289
14290 fi
14291
14292 if test x$HAVE_LIBDL = xyes; then
14293
14294 for ac_header in dlfcn.h
14295 do
14296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14299 $as_echo_n "checking for $ac_header... " >&6; }
14300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14301 $as_echo_n "(cached) " >&6
14302 fi
14303 ac_res=`eval 'as_val=${'$as_ac_Header'}
14304 $as_echo "$as_val"'`
14305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14306 $as_echo "$ac_res" >&6; }
14307 else
14308 # Is the header compilable?
14309 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14310 $as_echo_n "checking $ac_header usability... " >&6; }
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h. */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 $ac_includes_default
14318 #include <$ac_header>
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (ac_try="$ac_compile"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325 esac
14326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14327 $as_echo "$ac_try_echo") >&5
14328 (eval "$ac_compile") 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest.$ac_objext; then
14338 ac_header_compiler=yes
14339 else
14340 $as_echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ac_header_compiler=no
14344 fi
14345
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14348 $as_echo "$ac_header_compiler" >&6; }
14349
14350 # Is the header present?
14351 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14352 $as_echo_n "checking $ac_header presence... " >&6; }
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 #include <$ac_header>
14360 _ACEOF
14361 if { (ac_try="$ac_cpp conftest.$ac_ext"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365 esac
14366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14367 $as_echo "$ac_try_echo") >&5
14368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14369 ac_status=$?
14370 grep -v '^ *+' conftest.er1 >conftest.err
14371 rm -f conftest.er1
14372 cat conftest.err >&5
14373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } >/dev/null && {
14375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14376 test ! -s conftest.err
14377 }; then
14378 ac_header_preproc=yes
14379 else
14380 $as_echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 ac_header_preproc=no
14384 fi
14385
14386 rm -f conftest.err conftest.$ac_ext
14387 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14388 $as_echo "$ac_header_preproc" >&6; }
14389
14390 # So? What about this header?
14391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14392 yes:no: )
14393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14394 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14396 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14397 ac_header_preproc=yes
14398 ;;
14399 no:yes:* )
14400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14401 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14403 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14405 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14407 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14411 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14412
14413 ;;
14414 esac
14415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14416 $as_echo_n "checking for $ac_header... " >&6; }
14417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14418 $as_echo_n "(cached) " >&6
14419 else
14420 eval "$as_ac_Header=\$ac_header_preproc"
14421 fi
14422 ac_res=`eval 'as_val=${'$as_ac_Header'}
14423 $as_echo "$as_val"'`
14424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14425 $as_echo "$ac_res" >&6; }
14426
14427 fi
14428 as_val=`eval 'as_val=${'$as_ac_Header'}
14429 $as_echo "$as_val"'`
14430 if test "x$as_val" = x""yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14433 _ACEOF
14434
14435 else
14436 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14437 $as_echo "$as_me: error: bailing out" >&2;}
14438 { (exit 1); exit 1; }; }
14439 fi
14440
14441 done
14442
14443 fi
14444
14445 if test x$INTL = xyes; then
14446
14447 for ac_header in libintl.h
14448 do
14449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14452 $as_echo_n "checking for $ac_header... " >&6; }
14453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14454 $as_echo_n "(cached) " >&6
14455 fi
14456 ac_res=`eval 'as_val=${'$as_ac_Header'}
14457 $as_echo "$as_val"'`
14458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14459 $as_echo "$ac_res" >&6; }
14460 else
14461 # Is the header compilable?
14462 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14463 $as_echo_n "checking $ac_header usability... " >&6; }
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 $ac_includes_default
14471 #include <$ac_header>
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478 esac
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_compile") 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest.$ac_objext; then
14491 ac_header_compiler=yes
14492 else
14493 $as_echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_header_compiler=no
14497 fi
14498
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14501 $as_echo "$ac_header_compiler" >&6; }
14502
14503 # Is the header present?
14504 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14505 $as_echo_n "checking $ac_header presence... " >&6; }
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 #include <$ac_header>
14513 _ACEOF
14514 if { (ac_try="$ac_cpp conftest.$ac_ext"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518 esac
14519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14520 $as_echo "$ac_try_echo") >&5
14521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } >/dev/null && {
14528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 }; then
14531 ac_header_preproc=yes
14532 else
14533 $as_echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ac_header_preproc=no
14537 fi
14538
14539 rm -f conftest.err conftest.$ac_ext
14540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14541 $as_echo "$ac_header_preproc" >&6; }
14542
14543 # So? What about this header?
14544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14545 yes:no: )
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14547 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14550 ac_header_preproc=yes
14551 ;;
14552 no:yes:* )
14553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14554 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14556 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14564 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14565
14566 ;;
14567 esac
14568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14569 $as_echo_n "checking for $ac_header... " >&6; }
14570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14571 $as_echo_n "(cached) " >&6
14572 else
14573 eval "$as_ac_Header=\$ac_header_preproc"
14574 fi
14575 ac_res=`eval 'as_val=${'$as_ac_Header'}
14576 $as_echo "$as_val"'`
14577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14578 $as_echo "$ac_res" >&6; }
14579
14580 fi
14581 as_val=`eval 'as_val=${'$as_ac_Header'}
14582 $as_echo "$as_val"'`
14583 if test "x$as_val" = x""yes; then
14584 cat >>confdefs.h <<_ACEOF
14585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14586 _ACEOF
14587
14588 else
14589 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14590 $as_echo "$as_me: error: bailing out" >&2;}
14591 { (exit 1); exit 1; }; }
14592 fi
14593
14594 done
14595
14596 fi
14597
14598 if test x$HAVE_SELINUX = xyes; then
14599
14600 for ac_header in selinux/selinux.h
14601 do
14602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14605 $as_echo_n "checking for $ac_header... " >&6; }
14606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14607 $as_echo_n "(cached) " >&6
14608 fi
14609 ac_res=`eval 'as_val=${'$as_ac_Header'}
14610 $as_echo "$as_val"'`
14611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14612 $as_echo "$ac_res" >&6; }
14613 else
14614 # Is the header compilable?
14615 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14616 $as_echo_n "checking $ac_header usability... " >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14624 #include <$ac_header>
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631 esac
14632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14633 $as_echo "$ac_try_echo") >&5
14634 (eval "$ac_compile") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } && {
14641 test -z "$ac_c_werror_flag" ||
14642 test ! -s conftest.err
14643 } && test -s conftest.$ac_objext; then
14644 ac_header_compiler=yes
14645 else
14646 $as_echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 ac_header_compiler=no
14650 fi
14651
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14654 $as_echo "$ac_header_compiler" >&6; }
14655
14656 # Is the header present?
14657 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14658 $as_echo_n "checking $ac_header presence... " >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h. */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 #include <$ac_header>
14666 _ACEOF
14667 if { (ac_try="$ac_cpp conftest.$ac_ext"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673 $as_echo "$ac_try_echo") >&5
14674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } >/dev/null && {
14681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 }; then
14684 ac_header_preproc=yes
14685 else
14686 $as_echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_header_preproc=no
14690 fi
14691
14692 rm -f conftest.err conftest.$ac_ext
14693 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14694 $as_echo "$ac_header_preproc" >&6; }
14695
14696 # So? What about this header?
14697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14698 yes:no: )
14699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14700 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14703 ac_header_preproc=yes
14704 ;;
14705 no:yes:* )
14706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14707 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14709 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14711 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14713 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14717 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14718
14719 ;;
14720 esac
14721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14722 $as_echo_n "checking for $ac_header... " >&6; }
14723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14724 $as_echo_n "(cached) " >&6
14725 else
14726 eval "$as_ac_Header=\$ac_header_preproc"
14727 fi
14728 ac_res=`eval 'as_val=${'$as_ac_Header'}
14729 $as_echo "$as_val"'`
14730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14731 $as_echo "$ac_res" >&6; }
14732
14733 fi
14734 as_val=`eval 'as_val=${'$as_ac_Header'}
14735 $as_echo "$as_val"'`
14736 if test "x$as_val" = x""yes; then
14737 cat >>confdefs.h <<_ACEOF
14738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14739 _ACEOF
14740
14741 else
14742 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14743 $as_echo "$as_me: error: bailing out" >&2;}
14744 { (exit 1); exit 1; }; }
14745 fi
14746
14747 done
14748
14749 fi
14750
14751 if test x$UDEV_SYNC = xyes; then
14752
14753
14754 for ac_header in sys/ipc.h sys/sem.h
14755 do
14756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14759 $as_echo_n "checking for $ac_header... " >&6; }
14760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761 $as_echo_n "(cached) " >&6
14762 fi
14763 ac_res=`eval 'as_val=${'$as_ac_Header'}
14764 $as_echo "$as_val"'`
14765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14766 $as_echo "$ac_res" >&6; }
14767 else
14768 # Is the header compilable?
14769 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14770 $as_echo_n "checking $ac_header usability... " >&6; }
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 $ac_includes_default
14778 #include <$ac_header>
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (ac_try="$ac_compile"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785 esac
14786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14787 $as_echo "$ac_try_echo") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest.$ac_objext; then
14798 ac_header_compiler=yes
14799 else
14800 $as_echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 ac_header_compiler=no
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 $as_echo "$ac_header_compiler" >&6; }
14809
14810 # Is the header present?
14811 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 $as_echo_n "checking $ac_header presence... " >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <$ac_header>
14820 _ACEOF
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825 esac
14826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14827 $as_echo "$ac_try_echo") >&5
14828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
14833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } >/dev/null && {
14835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 }; then
14838 ac_header_preproc=yes
14839 else
14840 $as_echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 ac_header_preproc=no
14844 fi
14845
14846 rm -f conftest.err conftest.$ac_ext
14847 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14848 $as_echo "$ac_header_preproc" >&6; }
14849
14850 # So? What about this header?
14851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14852 yes:no: )
14853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14854 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14857 ac_header_preproc=yes
14858 ;;
14859 no:yes:* )
14860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14861 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14863 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14865 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14867 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14871 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14872
14873 ;;
14874 esac
14875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14876 $as_echo_n "checking for $ac_header... " >&6; }
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 $as_echo_n "(cached) " >&6
14879 else
14880 eval "$as_ac_Header=\$ac_header_preproc"
14881 fi
14882 ac_res=`eval 'as_val=${'$as_ac_Header'}
14883 $as_echo "$as_val"'`
14884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14885 $as_echo "$ac_res" >&6; }
14886
14887 fi
14888 as_val=`eval 'as_val=${'$as_ac_Header'}
14889 $as_echo "$as_val"'`
14890 if test "x$as_val" = x""yes; then
14891 cat >>confdefs.h <<_ACEOF
14892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14893 _ACEOF
14894
14895 else
14896 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14897 $as_echo "$as_me: error: bailing out" >&2;}
14898 { (exit 1); exit 1; }; }
14899 fi
14900
14901 done
14902
14903 fi
14904
14905 ################################################################################
14906 # Extract the first word of "modprobe", so it can be a program name with args.
14907 set dummy modprobe; ac_word=$2
14908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14909 $as_echo_n "checking for $ac_word... " >&6; }
14910 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
14911 $as_echo_n "(cached) " >&6
14912 else
14913 case $MODPROBE_CMD in
14914 [\\/]* | ?:[\\/]*)
14915 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
14916 ;;
14917 *)
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 for ac_exec_ext in '' $ac_executable_extensions; do
14924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14925 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
14926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14927 break 2
14928 fi
14929 done
14930 done
14931 IFS=$as_save_IFS
14932
14933 ;;
14934 esac
14935 fi
14936 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
14937 if test -n "$MODPROBE_CMD"; then
14938 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
14939 $as_echo "$MODPROBE_CMD" >&6; }
14940 else
14941 { $as_echo "$as_me:$LINENO: result: no" >&5
14942 $as_echo "no" >&6; }
14943 fi
14944
14945
14946
14947 if test x$MODPROBE_CMD != x; then
14948
14949 cat >>confdefs.h <<_ACEOF
14950 #define MODPROBE_CMD "$MODPROBE_CMD"
14951 _ACEOF
14952
14953 fi
14954
14955 ################################################################################
14956
14957
14958 if test "$BUILD_DMEVENTD" = yes; then
14959
14960 # Check whether --with-dmeventd-pidfile was given.
14961 if test "${with_dmeventd_pidfile+set}" = set; then
14962 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
14963 #define DMEVENTD_PIDFILE "$withval"
14964 _ACEOF
14965
14966 else
14967 cat >>confdefs.h <<_ACEOF
14968 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
14969 _ACEOF
14970
14971 fi
14972
14973 fi
14974
14975
14976
14977 if test "$BUILD_DMEVENTD" = yes; then
14978 dmeventd_prefix="$exec_prefix"
14979 if test "x$dmeventd_prefix" = "xNONE"; then
14980 dmeventd_prefix="$prefix"
14981 fi
14982 if test "x$dmeventd_prefix" = "xNONE"; then
14983 dmeventd_prefix=""
14984 fi
14985
14986 # Check whether --with-dmeventd-path was given.
14987 if test "${with_dmeventd_path+set}" = set; then
14988 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
14989 #define DMEVENTD_PATH "$withval"
14990 _ACEOF
14991
14992 else
14993 cat >>confdefs.h <<_ACEOF
14994 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
14995 _ACEOF
14996
14997 fi
14998
14999 fi
15000
15001 ################################################################################
15002 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15003 $as_echo_n "checking for kernel interface choice... " >&6; }
15004
15005 # Check whether --with-interface was given.
15006 if test "${with_interface+set}" = set; then
15007 withval=$with_interface; interface="$withval"
15008 else
15009 interface=ioctl
15010 fi
15011
15012 if [ "x$interface" != xioctl ];
15013 then
15014 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15015 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15016 { (exit 1); exit 1; }; }
15017 fi
15018 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15019 $as_echo "$interface" >&6; }
15020
15021 ################################################################################
15022 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
15023
15024 cat >>confdefs.h <<_ACEOF
15025 #define DM_LIB_VERSION $DM_LIB_VERSION
15026 _ACEOF
15027
15028
15029 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15030
15031 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
15032
15033 VER=`cat VERSION`
15034 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15035 VER=`echo "$VER" | $AWK '{print $1}'`
15036 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15037 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15038 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15039 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15040 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15041 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15042
15043 ################################################################################
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125 ################################################################################
15126 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/clogd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15127
15128 cat >confcache <<\_ACEOF
15129 # This file is a shell script that caches the results of configure
15130 # tests run on this system so they can be shared between configure
15131 # scripts and configure runs, see configure's option --config-cache.
15132 # It is not useful on other systems. If it contains results you don't
15133 # want to keep, you may remove or edit it.
15134 #
15135 # config.status only pays attention to the cache file if you give it
15136 # the --recheck option to rerun configure.
15137 #
15138 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15139 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15140 # following values.
15141
15142 _ACEOF
15143
15144 # The following way of writing the cache mishandles newlines in values,
15145 # but we know of no workaround that is simple, portable, and efficient.
15146 # So, we kill variables containing newlines.
15147 # Ultrix sh set writes to stderr and can't be redirected directly,
15148 # and sets the high bit in the cache file unless we assign to the vars.
15149 (
15150 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15151 eval ac_val=\$$ac_var
15152 case $ac_val in #(
15153 *${as_nl}*)
15154 case $ac_var in #(
15155 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15157 esac
15158 case $ac_var in #(
15159 _ | IFS | as_nl) ;; #(
15160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15161 *) $as_unset $ac_var ;;
15162 esac ;;
15163 esac
15164 done
15165
15166 (set) 2>&1 |
15167 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15168 *${as_nl}ac_space=\ *)
15169 # `set' does not quote correctly, so add quotes (double-quote
15170 # substitution turns \\\\ into \\, and sed turns \\ into \).
15171 sed -n \
15172 "s/'/'\\\\''/g;
15173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15174 ;; #(
15175 *)
15176 # `set' quotes correctly as required by POSIX, so do not add quotes.
15177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15178 ;;
15179 esac |
15180 sort
15181 ) |
15182 sed '
15183 /^ac_cv_env_/b end
15184 t clear
15185 :clear
15186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15187 t end
15188 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15189 :end' >>confcache
15190 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15191 if test -w "$cache_file"; then
15192 test "x$cache_file" != "x/dev/null" &&
15193 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15194 $as_echo "$as_me: updating cache $cache_file" >&6;}
15195 cat confcache >$cache_file
15196 else
15197 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15198 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15199 fi
15200 fi
15201 rm -f confcache
15202
15203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15204 # Let make expand exec_prefix.
15205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15206
15207 DEFS=-DHAVE_CONFIG_H
15208
15209 ac_libobjs=
15210 ac_ltlibobjs=
15211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15212 # 1. Remove the extension, and $U if already installed.
15213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15214 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15216 # will be set to the directory where LIBOBJS objects are built.
15217 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15218 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15219 done
15220 LIBOBJS=$ac_libobjs
15221
15222 LTLIBOBJS=$ac_ltlibobjs
15223
15224
15225
15226 : ${CONFIG_STATUS=./config.status}
15227 ac_write_fail=0
15228 ac_clean_files_save=$ac_clean_files
15229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15230 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15231 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15232 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 #! $SHELL
15234 # Generated by $as_me.
15235 # Run this file to recreate the current configuration.
15236 # Compiler output produced by configure, useful for debugging
15237 # configure, is in config.log if it exists.
15238
15239 debug=false
15240 ac_cs_recheck=false
15241 ac_cs_silent=false
15242 SHELL=\${CONFIG_SHELL-$SHELL}
15243 _ACEOF
15244
15245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15246 ## --------------------- ##
15247 ## M4sh Initialization. ##
15248 ## --------------------- ##
15249
15250 # Be more Bourne compatible
15251 DUALCASE=1; export DUALCASE # for MKS sh
15252 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15253 emulate sh
15254 NULLCMD=:
15255 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15256 # is contrary to our usage. Disable this feature.
15257 alias -g '${1+"$@"}'='"$@"'
15258 setopt NO_GLOB_SUBST
15259 else
15260 case `(set -o) 2>/dev/null` in
15261 *posix*) set -o posix ;;
15262 esac
15263
15264 fi
15265
15266
15267
15268
15269 # PATH needs CR
15270 # Avoid depending upon Character Ranges.
15271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15274 as_cr_digits='0123456789'
15275 as_cr_alnum=$as_cr_Letters$as_cr_digits
15276
15277 as_nl='
15278 '
15279 export as_nl
15280 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15281 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15282 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15284 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15285 as_echo='printf %s\n'
15286 as_echo_n='printf %s'
15287 else
15288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15289 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15290 as_echo_n='/usr/ucb/echo -n'
15291 else
15292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15293 as_echo_n_body='eval
15294 arg=$1;
15295 case $arg in
15296 *"$as_nl"*)
15297 expr "X$arg" : "X\\(.*\\)$as_nl";
15298 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15299 esac;
15300 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15301 '
15302 export as_echo_n_body
15303 as_echo_n='sh -c $as_echo_n_body as_echo'
15304 fi
15305 export as_echo_body
15306 as_echo='sh -c $as_echo_body as_echo'
15307 fi
15308
15309 # The user is always right.
15310 if test "${PATH_SEPARATOR+set}" != set; then
15311 PATH_SEPARATOR=:
15312 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15313 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15314 PATH_SEPARATOR=';'
15315 }
15316 fi
15317
15318 # Support unset when possible.
15319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15320 as_unset=unset
15321 else
15322 as_unset=false
15323 fi
15324
15325
15326 # IFS
15327 # We need space, tab and new line, in precisely that order. Quoting is
15328 # there to prevent editors from complaining about space-tab.
15329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15330 # splitting by setting IFS to empty value.)
15331 IFS=" "" $as_nl"
15332
15333 # Find who we are. Look in the path if we contain no directory separator.
15334 case $0 in
15335 *[\\/]* ) as_myself=$0 ;;
15336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337 for as_dir in $PATH
15338 do
15339 IFS=$as_save_IFS
15340 test -z "$as_dir" && as_dir=.
15341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15342 done
15343 IFS=$as_save_IFS
15344
15345 ;;
15346 esac
15347 # We did not find ourselves, most probably we were run as `sh COMMAND'
15348 # in which case we are not to be found in the path.
15349 if test "x$as_myself" = x; then
15350 as_myself=$0
15351 fi
15352 if test ! -f "$as_myself"; then
15353 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15354 { (exit 1); exit 1; }
15355 fi
15356
15357 # Work around bugs in pre-3.0 UWIN ksh.
15358 for as_var in ENV MAIL MAILPATH
15359 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15360 done
15361 PS1='$ '
15362 PS2='> '
15363 PS4='+ '
15364
15365 # NLS nuisances.
15366 LC_ALL=C
15367 export LC_ALL
15368 LANGUAGE=C
15369 export LANGUAGE
15370
15371 # Required to use basename.
15372 if expr a : '\(a\)' >/dev/null 2>&1 &&
15373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15374 as_expr=expr
15375 else
15376 as_expr=false
15377 fi
15378
15379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15380 as_basename=basename
15381 else
15382 as_basename=false
15383 fi
15384
15385
15386 # Name of the executable.
15387 as_me=`$as_basename -- "$0" ||
15388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15389 X"$0" : 'X\(//\)$' \| \
15390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15391 $as_echo X/"$0" |
15392 sed '/^.*\/\([^/][^/]*\)\/*$/{
15393 s//\1/
15394 q
15395 }
15396 /^X\/\(\/\/\)$/{
15397 s//\1/
15398 q
15399 }
15400 /^X\/\(\/\).*/{
15401 s//\1/
15402 q
15403 }
15404 s/.*/./; q'`
15405
15406 # CDPATH.
15407 $as_unset CDPATH
15408
15409
15410
15411 as_lineno_1=$LINENO
15412 as_lineno_2=$LINENO
15413 test "x$as_lineno_1" != "x$as_lineno_2" &&
15414 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15415
15416 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15417 # uniformly replaced by the line number. The first 'sed' inserts a
15418 # line-number line after each line using $LINENO; the second 'sed'
15419 # does the real work. The second script uses 'N' to pair each
15420 # line-number line with the line containing $LINENO, and appends
15421 # trailing '-' during substitution so that $LINENO is not a special
15422 # case at line end.
15423 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15424 # scripts with optimization help from Paolo Bonzini. Blame Lee
15425 # E. McMahon (1931-1989) for sed's syntax. :-)
15426 sed -n '
15427 p
15428 /[$]LINENO/=
15429 ' <$as_myself |
15430 sed '
15431 s/[$]LINENO.*/&-/
15432 t lineno
15433 b
15434 :lineno
15435 N
15436 :loop
15437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15438 t loop
15439 s/-\n.*//
15440 ' >$as_me.lineno &&
15441 chmod +x "$as_me.lineno" ||
15442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15443 { (exit 1); exit 1; }; }
15444
15445 # Don't try to exec as it changes $[0], causing all sort of problems
15446 # (the dirname of $[0] is not the place where we might find the
15447 # original and so on. Autoconf is especially sensitive to this).
15448 . "./$as_me.lineno"
15449 # Exit status is that of the last command.
15450 exit
15451 }
15452
15453
15454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15455 as_dirname=dirname
15456 else
15457 as_dirname=false
15458 fi
15459
15460 ECHO_C= ECHO_N= ECHO_T=
15461 case `echo -n x` in
15462 -n*)
15463 case `echo 'x\c'` in
15464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15465 *) ECHO_C='\c';;
15466 esac;;
15467 *)
15468 ECHO_N='-n';;
15469 esac
15470 if expr a : '\(a\)' >/dev/null 2>&1 &&
15471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15472 as_expr=expr
15473 else
15474 as_expr=false
15475 fi
15476
15477 rm -f conf$$ conf$$.exe conf$$.file
15478 if test -d conf$$.dir; then
15479 rm -f conf$$.dir/conf$$.file
15480 else
15481 rm -f conf$$.dir
15482 mkdir conf$$.dir 2>/dev/null
15483 fi
15484 if (echo >conf$$.file) 2>/dev/null; then
15485 if ln -s conf$$.file conf$$ 2>/dev/null; then
15486 as_ln_s='ln -s'
15487 # ... but there are two gotchas:
15488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15490 # In both cases, we have to default to `cp -p'.
15491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15492 as_ln_s='cp -p'
15493 elif ln conf$$.file conf$$ 2>/dev/null; then
15494 as_ln_s=ln
15495 else
15496 as_ln_s='cp -p'
15497 fi
15498 else
15499 as_ln_s='cp -p'
15500 fi
15501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15502 rmdir conf$$.dir 2>/dev/null
15503
15504 if mkdir -p . 2>/dev/null; then
15505 as_mkdir_p=:
15506 else
15507 test -d ./-p && rmdir ./-p
15508 as_mkdir_p=false
15509 fi
15510
15511 if test -x / >/dev/null 2>&1; then
15512 as_test_x='test -x'
15513 else
15514 if ls -dL / >/dev/null 2>&1; then
15515 as_ls_L_option=L
15516 else
15517 as_ls_L_option=
15518 fi
15519 as_test_x='
15520 eval sh -c '\''
15521 if test -d "$1"; then
15522 test -d "$1/.";
15523 else
15524 case $1 in
15525 -*)set "./$1";;
15526 esac;
15527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15528 ???[sx]*):;;*)false;;esac;fi
15529 '\'' sh
15530 '
15531 fi
15532 as_executable_p=$as_test_x
15533
15534 # Sed expression to map a string onto a valid CPP name.
15535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15536
15537 # Sed expression to map a string onto a valid variable name.
15538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15539
15540
15541 exec 6>&1
15542
15543 # Save the log message, to keep $[0] and so on meaningful, and to
15544 # report actual input values of CONFIG_FILES etc. instead of their
15545 # values after options handling.
15546 ac_log="
15547 This file was extended by $as_me, which was
15548 generated by GNU Autoconf 2.63. Invocation command line was
15549
15550 CONFIG_FILES = $CONFIG_FILES
15551 CONFIG_HEADERS = $CONFIG_HEADERS
15552 CONFIG_LINKS = $CONFIG_LINKS
15553 CONFIG_COMMANDS = $CONFIG_COMMANDS
15554 $ $0 $@
15555
15556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15557 "
15558
15559 _ACEOF
15560
15561 case $ac_config_files in *"
15562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15563 esac
15564
15565 case $ac_config_headers in *"
15566 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15567 esac
15568
15569
15570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571 # Files that config.status was made for.
15572 config_files="$ac_config_files"
15573 config_headers="$ac_config_headers"
15574
15575 _ACEOF
15576
15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578 ac_cs_usage="\
15579 \`$as_me' instantiates files from templates according to the
15580 current configuration.
15581
15582 Usage: $0 [OPTION]... [FILE]...
15583
15584 -h, --help print this help, then exit
15585 -V, --version print version number and configuration settings, then exit
15586 -q, --quiet, --silent
15587 do not print progress messages
15588 -d, --debug don't remove temporary files
15589 --recheck update $as_me by reconfiguring in the same conditions
15590 --file=FILE[:TEMPLATE]
15591 instantiate the configuration file FILE
15592 --header=FILE[:TEMPLATE]
15593 instantiate the configuration header FILE
15594
15595 Configuration files:
15596 $config_files
15597
15598 Configuration headers:
15599 $config_headers
15600
15601 Report bugs to <bug-autoconf@gnu.org>."
15602
15603 _ACEOF
15604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605 ac_cs_version="\\
15606 config.status
15607 configured by $0, generated by GNU Autoconf 2.63,
15608 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15609
15610 Copyright (C) 2008 Free Software Foundation, Inc.
15611 This config.status script is free software; the Free Software Foundation
15612 gives unlimited permission to copy, distribute and modify it."
15613
15614 ac_pwd='$ac_pwd'
15615 srcdir='$srcdir'
15616 INSTALL='$INSTALL'
15617 MKDIR_P='$MKDIR_P'
15618 AWK='$AWK'
15619 test -n "\$AWK" || AWK=awk
15620 _ACEOF
15621
15622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623 # The default lists apply if the user does not specify any file.
15624 ac_need_defaults=:
15625 while test $# != 0
15626 do
15627 case $1 in
15628 --*=*)
15629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15631 ac_shift=:
15632 ;;
15633 *)
15634 ac_option=$1
15635 ac_optarg=$2
15636 ac_shift=shift
15637 ;;
15638 esac
15639
15640 case $ac_option in
15641 # Handling of the options.
15642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15643 ac_cs_recheck=: ;;
15644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15645 $as_echo "$ac_cs_version"; exit ;;
15646 --debug | --debu | --deb | --de | --d | -d )
15647 debug=: ;;
15648 --file | --fil | --fi | --f )
15649 $ac_shift
15650 case $ac_optarg in
15651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15652 esac
15653 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15654 ac_need_defaults=false;;
15655 --header | --heade | --head | --hea )
15656 $ac_shift
15657 case $ac_optarg in
15658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15659 esac
15660 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15661 ac_need_defaults=false;;
15662 --he | --h)
15663 # Conflict between --help and --header
15664 { $as_echo "$as_me: error: ambiguous option: $1
15665 Try \`$0 --help' for more information." >&2
15666 { (exit 1); exit 1; }; };;
15667 --help | --hel | -h )
15668 $as_echo "$ac_cs_usage"; exit ;;
15669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15671 ac_cs_silent=: ;;
15672
15673 # This is an error.
15674 -*) { $as_echo "$as_me: error: unrecognized option: $1
15675 Try \`$0 --help' for more information." >&2
15676 { (exit 1); exit 1; }; } ;;
15677
15678 *) ac_config_targets="$ac_config_targets $1"
15679 ac_need_defaults=false ;;
15680
15681 esac
15682 shift
15683 done
15684
15685 ac_configure_extra_args=
15686
15687 if $ac_cs_silent; then
15688 exec 6>/dev/null
15689 ac_configure_extra_args="$ac_configure_extra_args --silent"
15690 fi
15691
15692 _ACEOF
15693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15694 if \$ac_cs_recheck; then
15695 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15696 shift
15697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15698 CONFIG_SHELL='$SHELL'
15699 export CONFIG_SHELL
15700 exec "\$@"
15701 fi
15702
15703 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 exec 5>>config.log
15706 {
15707 echo
15708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15709 ## Running $as_me. ##
15710 _ASBOX
15711 $as_echo "$ac_log"
15712 } >&5
15713
15714 _ACEOF
15715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15716 _ACEOF
15717
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719
15720 # Handling of arguments.
15721 for ac_config_target in $ac_config_targets
15722 do
15723 case $ac_config_target in
15724 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
15725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15726 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
15727 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
15728 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
15729 "daemons/clogd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clogd/Makefile" ;;
15730 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
15731 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
15732 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
15733 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
15734 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
15735 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15736 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15737 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15738 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
15739 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
15740 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
15741 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
15742 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
15743 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
15744 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
15745 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
15746 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
15747 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
15748 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15749 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
15750 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
15751 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
15752 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15753 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
15754 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15755 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
15756
15757 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15758 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15759 { (exit 1); exit 1; }; };;
15760 esac
15761 done
15762
15763
15764 # If the user did not use the arguments to specify the items to instantiate,
15765 # then the envvar interface is used. Set only those that are not.
15766 # We use the long form for the default assignment because of an extremely
15767 # bizarre bug on SunOS 4.1.3.
15768 if $ac_need_defaults; then
15769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15771 fi
15772
15773 # Have a temporary directory for convenience. Make it in the build tree
15774 # simply because there is no reason against having it here, and in addition,
15775 # creating and moving files from /tmp can sometimes cause problems.
15776 # Hook for its removal unless debugging.
15777 # Note that there is a small window in which the directory will not be cleaned:
15778 # after its creation but before its name has been assigned to `$tmp'.
15779 $debug ||
15780 {
15781 tmp=
15782 trap 'exit_status=$?
15783 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15784 ' 0
15785 trap '{ (exit 1); exit 1; }' 1 2 13 15
15786 }
15787 # Create a (secure) tmp directory for tmp files.
15788
15789 {
15790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15791 test -n "$tmp" && test -d "$tmp"
15792 } ||
15793 {
15794 tmp=./conf$$-$RANDOM
15795 (umask 077 && mkdir "$tmp")
15796 } ||
15797 {
15798 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15799 { (exit 1); exit 1; }
15800 }
15801
15802 # Set up the scripts for CONFIG_FILES section.
15803 # No need to generate them if there are no CONFIG_FILES.
15804 # This happens for instance with `./config.status config.h'.
15805 if test -n "$CONFIG_FILES"; then
15806
15807
15808 ac_cr=' '
15809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15811 ac_cs_awk_cr='\\r'
15812 else
15813 ac_cs_awk_cr=$ac_cr
15814 fi
15815
15816 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15817 _ACEOF
15818
15819
15820 {
15821 echo "cat >conf$$subs.awk <<_ACEOF" &&
15822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15823 echo "_ACEOF"
15824 } >conf$$subs.sh ||
15825 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15826 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15827 { (exit 1); exit 1; }; }
15828 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15829 ac_delim='%!_!# '
15830 for ac_last_try in false false false false false :; do
15831 . ./conf$$subs.sh ||
15832 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15833 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15834 { (exit 1); exit 1; }; }
15835
15836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15837 if test $ac_delim_n = $ac_delim_num; then
15838 break
15839 elif $ac_last_try; then
15840 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15841 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15842 { (exit 1); exit 1; }; }
15843 else
15844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15845 fi
15846 done
15847 rm -f conf$$subs.sh
15848
15849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15850 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15851 _ACEOF
15852 sed -n '
15853 h
15854 s/^/S["/; s/!.*/"]=/
15855 p
15856 g
15857 s/^[^!]*!//
15858 :repl
15859 t repl
15860 s/'"$ac_delim"'$//
15861 t delim
15862 :nl
15863 h
15864 s/\(.\{148\}\).*/\1/
15865 t more1
15866 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15867 p
15868 n
15869 b repl
15870 :more1
15871 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15872 p
15873 g
15874 s/.\{148\}//
15875 t nl
15876 :delim
15877 h
15878 s/\(.\{148\}\).*/\1/
15879 t more2
15880 s/["\\]/\\&/g; s/^/"/; s/$/"/
15881 p
15882 b
15883 :more2
15884 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15885 p
15886 g
15887 s/.\{148\}//
15888 t delim
15889 ' <conf$$subs.awk | sed '
15890 /^[^""]/{
15891 N
15892 s/\n//
15893 }
15894 ' >>$CONFIG_STATUS || ac_write_fail=1
15895 rm -f conf$$subs.awk
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 _ACAWK
15898 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15899 for (key in S) S_is_set[key] = 1
15900 FS = "\a"
15901
15902 }
15903 {
15904 line = $ 0
15905 nfields = split(line, field, "@")
15906 substed = 0
15907 len = length(field[1])
15908 for (i = 2; i < nfields; i++) {
15909 key = field[i]
15910 keylen = length(key)
15911 if (S_is_set[key]) {
15912 value = S[key]
15913 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15914 len += length(value) + length(field[++i])
15915 substed = 1
15916 } else
15917 len += 1 + keylen
15918 }
15919
15920 print line
15921 }
15922
15923 _ACAWK
15924 _ACEOF
15925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15927 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15928 else
15929 cat
15930 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15931 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15932 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15933 { (exit 1); exit 1; }; }
15934 _ACEOF
15935
15936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15938 # trailing colons and then remove the whole line if VPATH becomes empty
15939 # (actually we leave an empty line to preserve line numbers).
15940 if test "x$srcdir" = x.; then
15941 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15942 s/:*\$(srcdir):*/:/
15943 s/:*\${srcdir}:*/:/
15944 s/:*@srcdir@:*/:/
15945 s/^\([^=]*=[ ]*\):*/\1/
15946 s/:*$//
15947 s/^[^=]*=[ ]*$//
15948 }'
15949 fi
15950
15951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15952 fi # test -n "$CONFIG_FILES"
15953
15954 # Set up the scripts for CONFIG_HEADERS section.
15955 # No need to generate them if there are no CONFIG_HEADERS.
15956 # This happens for instance with `./config.status Makefile'.
15957 if test -n "$CONFIG_HEADERS"; then
15958 cat >"$tmp/defines.awk" <<\_ACAWK ||
15959 BEGIN {
15960 _ACEOF
15961
15962 # Transform confdefs.h into an awk script `defines.awk', embedded as
15963 # here-document in config.status, that substitutes the proper values into
15964 # config.h.in to produce config.h.
15965
15966 # Create a delimiter string that does not exist in confdefs.h, to ease
15967 # handling of long lines.
15968 ac_delim='%!_!# '
15969 for ac_last_try in false false :; do
15970 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15971 if test -z "$ac_t"; then
15972 break
15973 elif $ac_last_try; then
15974 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15975 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15976 { (exit 1); exit 1; }; }
15977 else
15978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15979 fi
15980 done
15981
15982 # For the awk script, D is an array of macro values keyed by name,
15983 # likewise P contains macro parameters if any. Preserve backslash
15984 # newline sequences.
15985
15986 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15987 sed -n '
15988 s/.\{148\}/&'"$ac_delim"'/g
15989 t rset
15990 :rset
15991 s/^[ ]*#[ ]*define[ ][ ]*/ /
15992 t def
15993 d
15994 :def
15995 s/\\$//
15996 t bsnl
15997 s/["\\]/\\&/g
15998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15999 D["\1"]=" \3"/p
16000 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16001 d
16002 :bsnl
16003 s/["\\]/\\&/g
16004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16005 D["\1"]=" \3\\\\\\n"\\/p
16006 t cont
16007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16008 t cont
16009 d
16010 :cont
16011 n
16012 s/.\{148\}/&'"$ac_delim"'/g
16013 t clear
16014 :clear
16015 s/\\$//
16016 t bsnlc
16017 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16018 d
16019 :bsnlc
16020 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16021 b cont
16022 ' <confdefs.h | sed '
16023 s/'"$ac_delim"'/"\\\
16024 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16025
16026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 for (key in D) D_is_set[key] = 1
16028 FS = "\a"
16029 }
16030 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16031 line = \$ 0
16032 split(line, arg, " ")
16033 if (arg[1] == "#") {
16034 defundef = arg[2]
16035 mac1 = arg[3]
16036 } else {
16037 defundef = substr(arg[1], 2)
16038 mac1 = arg[2]
16039 }
16040 split(mac1, mac2, "(") #)
16041 macro = mac2[1]
16042 prefix = substr(line, 1, index(line, defundef) - 1)
16043 if (D_is_set[macro]) {
16044 # Preserve the white space surrounding the "#".
16045 print prefix "define", macro P[macro] D[macro]
16046 next
16047 } else {
16048 # Replace #undef with comments. This is necessary, for example,
16049 # in the case of _POSIX_SOURCE, which is predefined and required
16050 # on some systems where configure will not decide to define it.
16051 if (defundef == "undef") {
16052 print "/*", prefix defundef, macro, "*/"
16053 next
16054 }
16055 }
16056 }
16057 { print }
16058 _ACAWK
16059 _ACEOF
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16062 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16063 { (exit 1); exit 1; }; }
16064 fi # test -n "$CONFIG_HEADERS"
16065
16066
16067 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16068 shift
16069 for ac_tag
16070 do
16071 case $ac_tag in
16072 :[FHLC]) ac_mode=$ac_tag; continue;;
16073 esac
16074 case $ac_mode$ac_tag in
16075 :[FHL]*:*);;
16076 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16077 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16078 { (exit 1); exit 1; }; };;
16079 :[FH]-) ac_tag=-:-;;
16080 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16081 esac
16082 ac_save_IFS=$IFS
16083 IFS=:
16084 set x $ac_tag
16085 IFS=$ac_save_IFS
16086 shift
16087 ac_file=$1
16088 shift
16089
16090 case $ac_mode in
16091 :L) ac_source=$1;;
16092 :[FH])
16093 ac_file_inputs=
16094 for ac_f
16095 do
16096 case $ac_f in
16097 -) ac_f="$tmp/stdin";;
16098 *) # Look for the file first in the build tree, then in the source tree
16099 # (if the path is not absolute). The absolute path cannot be DOS-style,
16100 # because $ac_f cannot contain `:'.
16101 test -f "$ac_f" ||
16102 case $ac_f in
16103 [\\/$]*) false;;
16104 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16105 esac ||
16106 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16107 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16108 { (exit 1); exit 1; }; };;
16109 esac
16110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16111 ac_file_inputs="$ac_file_inputs '$ac_f'"
16112 done
16113
16114 # Let's still pretend it is `configure' which instantiates (i.e., don't
16115 # use $as_me), people would be surprised to read:
16116 # /* config.h. Generated by config.status. */
16117 configure_input='Generated from '`
16118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16119 `' by configure.'
16120 if test x"$ac_file" != x-; then
16121 configure_input="$ac_file. $configure_input"
16122 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16123 $as_echo "$as_me: creating $ac_file" >&6;}
16124 fi
16125 # Neutralize special characters interpreted by sed in replacement strings.
16126 case $configure_input in #(
16127 *\&* | *\|* | *\\* )
16128 ac_sed_conf_input=`$as_echo "$configure_input" |
16129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16130 *) ac_sed_conf_input=$configure_input;;
16131 esac
16132
16133 case $ac_tag in
16134 *:-:* | *:-) cat >"$tmp/stdin" \
16135 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16136 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16137 { (exit 1); exit 1; }; } ;;
16138 esac
16139 ;;
16140 esac
16141
16142 ac_dir=`$as_dirname -- "$ac_file" ||
16143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16144 X"$ac_file" : 'X\(//\)[^/]' \| \
16145 X"$ac_file" : 'X\(//\)$' \| \
16146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16147 $as_echo X"$ac_file" |
16148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16149 s//\1/
16150 q
16151 }
16152 /^X\(\/\/\)[^/].*/{
16153 s//\1/
16154 q
16155 }
16156 /^X\(\/\/\)$/{
16157 s//\1/
16158 q
16159 }
16160 /^X\(\/\).*/{
16161 s//\1/
16162 q
16163 }
16164 s/.*/./; q'`
16165 { as_dir="$ac_dir"
16166 case $as_dir in #(
16167 -*) as_dir=./$as_dir;;
16168 esac
16169 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16170 as_dirs=
16171 while :; do
16172 case $as_dir in #(
16173 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16174 *) as_qdir=$as_dir;;
16175 esac
16176 as_dirs="'$as_qdir' $as_dirs"
16177 as_dir=`$as_dirname -- "$as_dir" ||
16178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16179 X"$as_dir" : 'X\(//\)[^/]' \| \
16180 X"$as_dir" : 'X\(//\)$' \| \
16181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16182 $as_echo X"$as_dir" |
16183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16184 s//\1/
16185 q
16186 }
16187 /^X\(\/\/\)[^/].*/{
16188 s//\1/
16189 q
16190 }
16191 /^X\(\/\/\)$/{
16192 s//\1/
16193 q
16194 }
16195 /^X\(\/\).*/{
16196 s//\1/
16197 q
16198 }
16199 s/.*/./; q'`
16200 test -d "$as_dir" && break
16201 done
16202 test -z "$as_dirs" || eval "mkdir $as_dirs"
16203 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16204 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16205 { (exit 1); exit 1; }; }; }
16206 ac_builddir=.
16207
16208 case "$ac_dir" in
16209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16210 *)
16211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16212 # A ".." for each directory in $ac_dir_suffix.
16213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16214 case $ac_top_builddir_sub in
16215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16217 esac ;;
16218 esac
16219 ac_abs_top_builddir=$ac_pwd
16220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16221 # for backward compatibility:
16222 ac_top_builddir=$ac_top_build_prefix
16223
16224 case $srcdir in
16225 .) # We are building in place.
16226 ac_srcdir=.
16227 ac_top_srcdir=$ac_top_builddir_sub
16228 ac_abs_top_srcdir=$ac_pwd ;;
16229 [\\/]* | ?:[\\/]* ) # Absolute name.
16230 ac_srcdir=$srcdir$ac_dir_suffix;
16231 ac_top_srcdir=$srcdir
16232 ac_abs_top_srcdir=$srcdir ;;
16233 *) # Relative name.
16234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16235 ac_top_srcdir=$ac_top_build_prefix$srcdir
16236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16237 esac
16238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16239
16240
16241 case $ac_mode in
16242 :F)
16243 #
16244 # CONFIG_FILE
16245 #
16246
16247 case $INSTALL in
16248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16250 esac
16251 ac_MKDIR_P=$MKDIR_P
16252 case $MKDIR_P in
16253 [\\/$]* | ?:[\\/]* ) ;;
16254 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16255 esac
16256 _ACEOF
16257
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259 # If the template does not know about datarootdir, expand it.
16260 # FIXME: This hack should be removed a few years after 2.60.
16261 ac_datarootdir_hack=; ac_datarootdir_seen=
16262
16263 ac_sed_dataroot='
16264 /datarootdir/ {
16265 p
16266 q
16267 }
16268 /@datadir@/p
16269 /@docdir@/p
16270 /@infodir@/p
16271 /@localedir@/p
16272 /@mandir@/p
16273 '
16274 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16275 *datarootdir*) ac_datarootdir_seen=yes;;
16276 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16277 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16278 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16279 _ACEOF
16280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 ac_datarootdir_hack='
16282 s&@datadir@&$datadir&g
16283 s&@docdir@&$docdir&g
16284 s&@infodir@&$infodir&g
16285 s&@localedir@&$localedir&g
16286 s&@mandir@&$mandir&g
16287 s&\\\${datarootdir}&$datarootdir&g' ;;
16288 esac
16289 _ACEOF
16290
16291 # Neutralize VPATH when `$srcdir' = `.'.
16292 # Shell code in configure.ac might set extrasub.
16293 # FIXME: do we really want to maintain this feature?
16294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16295 ac_sed_extra="$ac_vpsub
16296 $extrasub
16297 _ACEOF
16298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16299 :t
16300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16301 s|@configure_input@|$ac_sed_conf_input|;t t
16302 s&@top_builddir@&$ac_top_builddir_sub&;t t
16303 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16304 s&@srcdir@&$ac_srcdir&;t t
16305 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16306 s&@top_srcdir@&$ac_top_srcdir&;t t
16307 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16308 s&@builddir@&$ac_builddir&;t t
16309 s&@abs_builddir@&$ac_abs_builddir&;t t
16310 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16311 s&@INSTALL@&$ac_INSTALL&;t t
16312 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16313 $ac_datarootdir_hack
16314 "
16315 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16316 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16317 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16318 { (exit 1); exit 1; }; }
16319
16320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16321 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16323 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16324 which seems to be undefined. Please make sure it is defined." >&5
16325 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16326 which seems to be undefined. Please make sure it is defined." >&2;}
16327
16328 rm -f "$tmp/stdin"
16329 case $ac_file in
16330 -) cat "$tmp/out" && rm -f "$tmp/out";;
16331 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16332 esac \
16333 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16334 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16335 { (exit 1); exit 1; }; }
16336 ;;
16337 :H)
16338 #
16339 # CONFIG_HEADER
16340 #
16341 if test x"$ac_file" != x-; then
16342 {
16343 $as_echo "/* $configure_input */" \
16344 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16345 } >"$tmp/config.h" \
16346 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16347 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16348 { (exit 1); exit 1; }; }
16349 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16350 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16351 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16352 else
16353 rm -f "$ac_file"
16354 mv "$tmp/config.h" "$ac_file" \
16355 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16356 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16357 { (exit 1); exit 1; }; }
16358 fi
16359 else
16360 $as_echo "/* $configure_input */" \
16361 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16362 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16363 $as_echo "$as_me: error: could not create -" >&2;}
16364 { (exit 1); exit 1; }; }
16365 fi
16366 ;;
16367
16368
16369 esac
16370
16371 done # for ac_tag
16372
16373
16374 { (exit 0); exit 0; }
16375 _ACEOF
16376 chmod +x $CONFIG_STATUS
16377 ac_clean_files=$ac_clean_files_save
16378
16379 test $ac_write_fail = 0 ||
16380 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16381 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16382 { (exit 1); exit 1; }; }
16383
16384
16385 # configure is writing to config.log, and then calls config.status.
16386 # config.status does its own redirection, appending to config.log.
16387 # Unfortunately, on DOS this fails, as config.log is still kept open
16388 # by configure, so config.status won't be able to write to it; its
16389 # output is simply discarded. So we exec the FD to /dev/null,
16390 # effectively closing config.log, so it can be properly (re)opened and
16391 # appended to by config.status. When coming back to configure, we
16392 # need to make the FD available again.
16393 if test "$no_create" != yes; then
16394 ac_cs_success=:
16395 ac_config_status_args=
16396 test "$silent" = yes &&
16397 ac_config_status_args="$ac_config_status_args --quiet"
16398 exec 5>/dev/null
16399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16400 exec 5>>config.log
16401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16402 # would make configure fail if this is the last instruction.
16403 $ac_cs_success || { (exit 1); exit 1; }
16404 fi
16405 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16406 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16407 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16408 fi
16409
16410
16411 if test x$ODIRECT != xyes; then
16412 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16413 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16414 fi
This page took 0.889567 seconds and 6 git commands to generate.