]> sourceware.org Git - lvm2.git/blob - configure
Pthread linking change
[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 UDEV_SYNC
650 UDEV_RULES
651 STATIC_LINK
652 STATICDIR
653 SNAPSHOTS
654 SELINUX_LIBS
655 READLINE_LIBS
656 PTHREAD_LIBS
657 POOL
658 PKGCONFIG
659 OWNER
660 MIRRORS
661 LVM_RELEASE_DATE
662 LVM_RELEASE
663 LVM_PATCHLEVEL
664 LVM_MINOR
665 LVM_MAJOR
666 LVM_LIBAPI
667 LVM_VERSION
668 LVM1_FALLBACK
669 LVM1
670 LOCALEDIR
671 LIB_SUFFIX
672 LDDEPS
673 JOBS
674 INTL_PACKAGE
675 INTL
676 HAVE_SELINUX
677 HAVE_REALTIME
678 HAVE_LIBDL
679 GROUP
680 FSADM
681 DM_LIB_PATCHLEVEL
682 DM_LIB_VERSION
683 DM_IOCTLS
684 DM_DEVICE_UID
685 DM_DEVICE_MODE
686 DM_DEVICE_GID
687 DM_COMPAT
688 DMEVENTD
689 DEVMAPPER
690 DEBUG
691 COPTIMISE_FLAG
692 CONFDIR
693 CMDLIB
694 CLVMD
695 CLUSTER
696 CLDWHOLEARCHIVE
697 CLDNOWHOLEARCHIVE
698 CLDFLAGS
699 BUILD_DMEVENTD
700 BUILD_CMIRRORD
701 APPLIB
702 MODPROBE_CMD
703 MSGFMT
704 LVM2CMD_LIB
705 LVM2APP_LIB
706 GENHTML
707 LCOV
708 SACKPT_LIBS
709 SACKPT_CFLAGS
710 DLM_LIBS
711 DLM_CFLAGS
712 CPG_LIBS
713 CPG_CFLAGS
714 CONFDB_LIBS
715 CONFDB_CFLAGS
716 SALCK_LIBS
717 SALCK_CFLAGS
718 QUORUM_LIBS
719 QUORUM_CFLAGS
720 COROSYNC_LIBS
721 COROSYNC_CFLAGS
722 CMAN_LIBS
723 CMAN_CFLAGS
724 GULM_LIBS
725 GULM_CFLAGS
726 CCS_LIBS
727 CCS_CFLAGS
728 PKGCONFIGINIT_LIBS
729 PKGCONFIGINIT_CFLAGS
730 PKG_CONFIG
731 POW_LIB
732 LIBOBJS
733 ALLOCA
734 CSCOPE_CMD
735 CFLOW_CMD
736 RANLIB
737 MKDIR_P
738 SET_MAKE
739 LN_S
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 EGREP
744 GREP
745 CPP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 AWK
754 SED
755 target_os
756 target_vendor
757 target_cpu
758 target
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_static_link
808 with_user
809 with_group
810 with_device_uid
811 with_device_gid
812 with_device_mode
813 enable_lvm1_fallback
814 with_lvm1
815 with_pool
816 with_cluster
817 with_snapshots
818 with_mirrors
819 enable_readline
820 enable_realtime
821 with_clvmd
822 enable_cmirrord
823 with_cmirrord_pidfile
824 enable_debug
825 with_optimisation
826 enable_profiling
827 enable_devmapper
828 enable_udev_sync
829 enable_udev_rules
830 enable_compat
831 enable_units_compat
832 enable_ioctl
833 enable_o_direct
834 enable_applib
835 enable_cmdlib
836 enable_pkgconfig
837 enable_fsadm
838 enable_dmeventd
839 enable_selinux
840 enable_nls
841 with_localedir
842 with_confdir
843 with_staticdir
844 with_usrlibdir
845 with_usrsbindir
846 with_udev_prefix
847 with_udevdir
848 with_dmeventd_pidfile
849 with_dmeventd_path
850 with_interface
851 '
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 PKG_CONFIG
862 PKGCONFIGINIT_CFLAGS
863 PKGCONFIGINIT_LIBS
864 CCS_CFLAGS
865 CCS_LIBS
866 GULM_CFLAGS
867 GULM_LIBS
868 CMAN_CFLAGS
869 CMAN_LIBS
870 COROSYNC_CFLAGS
871 COROSYNC_LIBS
872 QUORUM_CFLAGS
873 QUORUM_LIBS
874 SALCK_CFLAGS
875 SALCK_LIBS
876 CONFDB_CFLAGS
877 CONFDB_LIBS
878 CPG_CFLAGS
879 CPG_LIBS
880 DLM_CFLAGS
881 DLM_LIBS
882 SACKPT_CFLAGS
883 SACKPT_LIBS'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
943 fi
944
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
949
950 # Accept the important Cygnus configure options, so we can diagnose typos.
951
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
960
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
975
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
980
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1051
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1056
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1086
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1160
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1236
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
1275 ;;
1276
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282 { (exit 1); exit 1; }; }
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 ;;
1293
1294 esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1300 { (exit 1); exit 1; }; }
1301 fi
1302
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1307 { (exit 1); exit 1; }; } ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1317 do
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331 { (exit 1); exit 1; }; }
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1362 { (exit 1); exit 1; }; }
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1365 { (exit 1); exit 1; }; }
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\).*/{
1391 s//\1/
1392 q
1393 }
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1398 fi
1399 else
1400 ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405 { (exit 1); exit 1; }; }
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1410 { (exit 1); exit 1; }; }
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures this package to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1490
1491 cat <<\_ACEOF
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-static_link Use this to link the tools to their libraries
1509 statically. Default is dynamic linking
1510 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1511 device-mapper is missing from the kernel
1512 --disable-readline Disable readline support
1513 --enable-realtime Enable realtime clock support
1514 --enable-cmirrord Enable the cluster mirror log daemon
1515 --enable-debug Enable debugging
1516 --enable-profiling Gather gcov profiling data
1517 --disable-devmapper Disable LVM2 device-mapper interaction
1518 --enable-udev_sync Enable synchronisation with udev processing
1519 --enable-udev_rules Install rule files needed for udev synchronisation
1520 --enable-compat Enable support for old device-mapper versions
1521 --enable-units-compat Enable output compatibility with old versions that
1522 that don't use KiB-style unit suffixes
1523 --disable-driver Disable calls to device-mapper in the kernel
1524 --disable-o_direct Disable O_DIRECT
1525 --enable-applib Build application library
1526 --enable-cmdlib Build shared command library
1527 --enable-pkgconfig Install pkgconfig support
1528 --disable-fsadm Disable fsadm
1529 --enable-dmeventd Enable the device-mapper event daemon
1530 --disable-selinux Disable selinux support
1531 --enable-nls Enable Native Language Support
1532
1533 Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --with-user=USER Set the owner of installed files [USER=]
1537 --with-group=GROUP Set the group owner of installed files [GROUP=]
1538 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1539 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1540 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1541 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1542 TYPE=internal
1543 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1544 TYPE=internal
1545 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1546 TYPE=internal
1547 --with-snapshots=TYPE Snapshot support: internal/shared/none
1548 TYPE=internal
1549 --with-mirrors=TYPE Mirror support: internal/shared/none
1550 TYPE=internal
1551 --with-clvmd=TYPE Build cluster LVM Daemon.
1552 The following cluster manager combinations are valid:
1553 * cman,gulm (RHEL4 or equivalent)
1554 * cman (RHEL5 or equivalent)
1555 * cman,corosync,openais (or selection of them)
1556 * all (autodetect)
1557 * none (disable build)
1558 TYPE=none
1559 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1560 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1561 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1562 --with-confdir=DIR Configuration files in DIR [/etc]
1563 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1564 --with-usrlibdir=DIR
1565 --with-usrsbindir=DIR
1566 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1567 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1568 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1569 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1570 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1571
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor
1581 PKG_CONFIG path to pkg-config utility
1582 PKGCONFIGINIT_CFLAGS
1583 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1584 PKGCONFIGINIT_LIBS
1585 linker flags for PKGCONFIGINIT, overriding pkg-config
1586 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1587 CCS_LIBS linker flags for CCS, overriding pkg-config
1588 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1589 GULM_LIBS linker flags for GULM, overriding pkg-config
1590 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1591 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1592 COROSYNC_CFLAGS
1593 C compiler flags for COROSYNC, overriding pkg-config
1594 COROSYNC_LIBS
1595 linker flags for COROSYNC, overriding pkg-config
1596 QUORUM_CFLAGS
1597 C compiler flags for QUORUM, overriding pkg-config
1598 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1599 SALCK_CFLAGS
1600 C compiler flags for SALCK, overriding pkg-config
1601 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1602 CONFDB_CFLAGS
1603 C compiler flags for CONFDB, overriding pkg-config
1604 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1605 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1606 CPG_LIBS linker flags for CPG, overriding pkg-config
1607 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1608 DLM_LIBS linker flags for DLM, overriding pkg-config
1609 SACKPT_CFLAGS
1610 C compiler flags for SACKPT, overriding pkg-config
1611 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1612
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1615
1616 _ACEOF
1617 ac_status=$?
1618 fi
1619
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1626 ac_builddir=.
1627
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *)
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1643
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1673 fi
1674
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.63
1680
1681 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1682 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1687 fi
1688 cat >config.log <<_ACEOF
1689 This file contains any messages produced by compilers while
1690 running configure, to aid debugging if configure makes a mistake.
1691
1692 It was created by $as_me, which was
1693 generated by GNU Autoconf 2.63. Invocation command line was
1694
1695 $ $0 $@
1696
1697 _ACEOF
1698 exec 5>>config.log
1699 {
1700 cat <<_ASUNAME
1701 ## --------- ##
1702 ## Platform. ##
1703 ## --------- ##
1704
1705 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1706 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1707 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1708 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1709 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1710
1711 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1712 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1713
1714 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1715 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1716 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1717 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1718 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1719 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1720 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1721
1722 _ASUNAME
1723
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 $as_echo "PATH: $as_dir"
1730 done
1731 IFS=$as_save_IFS
1732
1733 } >&5
1734
1735 cat >&5 <<_ACEOF
1736
1737
1738 ## ----------- ##
1739 ## Core tests. ##
1740 ## ----------- ##
1741
1742 _ACEOF
1743
1744
1745 # Keep a trace of the command line.
1746 # Strip out --no-create and --no-recursion so they do not pile up.
1747 # Strip out --silent because we don't want to record it for future runs.
1748 # Also quote any args containing shell meta-characters.
1749 # Make two passes to allow for proper duplicate-argument suppression.
1750 ac_configure_args=
1751 ac_configure_args0=
1752 ac_configure_args1=
1753 ac_must_keep_next=false
1754 for ac_pass in 1 2
1755 do
1756 for ac_arg
1757 do
1758 case $ac_arg in
1759 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1761 | -silent | --silent | --silen | --sile | --sil)
1762 continue ;;
1763 *\'*)
1764 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 esac
1766 case $ac_pass in
1767 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1768 2)
1769 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1770 if test $ac_must_keep_next = true; then
1771 ac_must_keep_next=false # Got value, back to normal.
1772 else
1773 case $ac_arg in
1774 *=* | --config-cache | -C | -disable-* | --disable-* \
1775 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1776 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1777 | -with-* | --with-* | -without-* | --without-* | --x)
1778 case "$ac_configure_args0 " in
1779 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1780 esac
1781 ;;
1782 -* ) ac_must_keep_next=true ;;
1783 esac
1784 fi
1785 ac_configure_args="$ac_configure_args '$ac_arg'"
1786 ;;
1787 esac
1788 done
1789 done
1790 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1791 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1792
1793 # When interrupted or exit'd, cleanup temporary files, and complete
1794 # config.log. We remove comments because anyway the quotes in there
1795 # would cause problems or look ugly.
1796 # WARNING: Use '\'' to represent an apostrophe within the trap.
1797 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1798 trap 'exit_status=$?
1799 # Save into config.log some information that might help in debugging.
1800 {
1801 echo
1802
1803 cat <<\_ASBOX
1804 ## ---------------- ##
1805 ## Cache variables. ##
1806 ## ---------------- ##
1807 _ASBOX
1808 echo
1809 # The following way of writing the cache mishandles newlines in values,
1810 (
1811 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1812 eval ac_val=\$$ac_var
1813 case $ac_val in #(
1814 *${as_nl}*)
1815 case $ac_var in #(
1816 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1817 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1818 esac
1819 case $ac_var in #(
1820 _ | IFS | as_nl) ;; #(
1821 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1822 *) $as_unset $ac_var ;;
1823 esac ;;
1824 esac
1825 done
1826 (set) 2>&1 |
1827 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1828 *${as_nl}ac_space=\ *)
1829 sed -n \
1830 "s/'\''/'\''\\\\'\'''\''/g;
1831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1832 ;; #(
1833 *)
1834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1835 ;;
1836 esac |
1837 sort
1838 )
1839 echo
1840
1841 cat <<\_ASBOX
1842 ## ----------------- ##
1843 ## Output variables. ##
1844 ## ----------------- ##
1845 _ASBOX
1846 echo
1847 for ac_var in $ac_subst_vars
1848 do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 $as_echo "$ac_var='\''$ac_val'\''"
1854 done | sort
1855 echo
1856
1857 if test -n "$ac_subst_files"; then
1858 cat <<\_ASBOX
1859 ## ------------------- ##
1860 ## File substitutions. ##
1861 ## ------------------- ##
1862 _ASBOX
1863 echo
1864 for ac_var in $ac_subst_files
1865 do
1866 eval ac_val=\$$ac_var
1867 case $ac_val in
1868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869 esac
1870 $as_echo "$ac_var='\''$ac_val'\''"
1871 done | sort
1872 echo
1873 fi
1874
1875 if test -s confdefs.h; then
1876 cat <<\_ASBOX
1877 ## ----------- ##
1878 ## confdefs.h. ##
1879 ## ----------- ##
1880 _ASBOX
1881 echo
1882 cat confdefs.h
1883 echo
1884 fi
1885 test "$ac_signal" != 0 &&
1886 $as_echo "$as_me: caught signal $ac_signal"
1887 $as_echo "$as_me: exit $exit_status"
1888 } >&5
1889 rm -f core *.core core.conftest.* &&
1890 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1891 exit $exit_status
1892 ' 0
1893 for ac_signal in 1 2 13 15; do
1894 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1895 done
1896 ac_signal=0
1897
1898 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1899 rm -f -r conftest* confdefs.h
1900
1901 # Predefined preprocessor variables.
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_NAME "$PACKAGE_NAME"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1915 _ACEOF
1916
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_STRING "$PACKAGE_STRING"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1925 _ACEOF
1926
1927
1928 # Let the site file select an alternate cache file if it wants to.
1929 # Prefer an explicitly selected file to automatically selected ones.
1930 ac_site_file1=NONE
1931 ac_site_file2=NONE
1932 if test -n "$CONFIG_SITE"; then
1933 ac_site_file1=$CONFIG_SITE
1934 elif test "x$prefix" != xNONE; then
1935 ac_site_file1=$prefix/share/config.site
1936 ac_site_file2=$prefix/etc/config.site
1937 else
1938 ac_site_file1=$ac_default_prefix/share/config.site
1939 ac_site_file2=$ac_default_prefix/etc/config.site
1940 fi
1941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1942 do
1943 test "x$ac_site_file" = xNONE && continue
1944 if test -r "$ac_site_file"; then
1945 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1946 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1947 sed 's/^/| /' "$ac_site_file" >&5
1948 . "$ac_site_file"
1949 fi
1950 done
1951
1952 if test -r "$cache_file"; then
1953 # Some versions of bash will fail to source /dev/null (special
1954 # files actually), so we avoid doing that.
1955 if test -f "$cache_file"; then
1956 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1957 $as_echo "$as_me: loading cache $cache_file" >&6;}
1958 case $cache_file in
1959 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1960 *) . "./$cache_file";;
1961 esac
1962 fi
1963 else
1964 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1965 $as_echo "$as_me: creating cache $cache_file" >&6;}
1966 >$cache_file
1967 fi
1968
1969 # Check that the precious variables saved in the cache have kept the same
1970 # value.
1971 ac_cache_corrupted=false
1972 for ac_var in $ac_precious_vars; do
1973 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1974 eval ac_new_set=\$ac_env_${ac_var}_set
1975 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1976 eval ac_new_val=\$ac_env_${ac_var}_value
1977 case $ac_old_set,$ac_new_set in
1978 set,)
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1980 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1981 ac_cache_corrupted=: ;;
1982 ,set)
1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1984 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,);;
1987 *)
1988 if test "x$ac_old_val" != "x$ac_new_val"; then
1989 # differences in whitespace do not lead to failure.
1990 ac_old_val_w=`echo x $ac_old_val`
1991 ac_new_val_w=`echo x $ac_new_val`
1992 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 ac_cache_corrupted=:
1996 else
1997 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1998 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1999 eval $ac_var=\$ac_old_val
2000 fi
2001 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2002 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2003 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2004 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2005 fi;;
2006 esac
2007 # Pass precious variables to config.status.
2008 if test "$ac_new_set" = set; then
2009 case $ac_new_val in
2010 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 *) ac_arg=$ac_var=$ac_new_val ;;
2012 esac
2013 case " $ac_configure_args " in
2014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2015 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2016 esac
2017 fi
2018 done
2019 if $ac_cache_corrupted; then
2020 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2022 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2023 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2024 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2025 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2026 { (exit 1); exit 1; }; }
2027 fi
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050
2051
2052
2053 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2054
2055
2056 ################################################################################
2057 ac_aux_dir=
2058 for ac_dir in autoconf "$srcdir"/autoconf; do
2059 if test -f "$ac_dir/install-sh"; then
2060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
2063 elif test -f "$ac_dir/install.sh"; then
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
2067 elif test -f "$ac_dir/shtool"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
2071 fi
2072 done
2073 if test -z "$ac_aux_dir"; then
2074 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2076 { (exit 1); exit 1; }; }
2077 fi
2078
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2086
2087
2088
2089 ################################################################################
2090 # Make sure we can run config.sub.
2091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2092 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2093 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2094 { (exit 1); exit 1; }; }
2095
2096 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2097 $as_echo_n "checking build system type... " >&6; }
2098 if test "${ac_cv_build+set}" = set; then
2099 $as_echo_n "(cached) " >&6
2100 else
2101 ac_build_alias=$build_alias
2102 test "x$ac_build_alias" = x &&
2103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2104 test "x$ac_build_alias" = x &&
2105 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2106 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2107 { (exit 1); exit 1; }; }
2108 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2110 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2112
2113 fi
2114 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2115 $as_echo "$ac_cv_build" >&6; }
2116 case $ac_cv_build in
2117 *-*-*) ;;
2118 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2119 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2120 { (exit 1); exit 1; }; };;
2121 esac
2122 build=$ac_cv_build
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_build
2125 shift
2126 build_cpu=$1
2127 build_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 build_os=$*
2132 IFS=$ac_save_IFS
2133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2137 $as_echo_n "checking host system type... " >&6; }
2138 if test "${ac_cv_host+set}" = set; then
2139 $as_echo_n "(cached) " >&6
2140 else
2141 if test "x$host_alias" = x; then
2142 ac_cv_host=$ac_cv_build
2143 else
2144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2145 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2146 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2148 fi
2149
2150 fi
2151 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2152 $as_echo "$ac_cv_host" >&6; }
2153 case $ac_cv_host in
2154 *-*-*) ;;
2155 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2156 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2157 { (exit 1); exit 1; }; };;
2158 esac
2159 host=$ac_cv_host
2160 ac_save_IFS=$IFS; IFS='-'
2161 set x $ac_cv_host
2162 shift
2163 host_cpu=$1
2164 host_vendor=$2
2165 shift; shift
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2168 host_os=$*
2169 IFS=$ac_save_IFS
2170 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171
2172
2173 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2174 $as_echo_n "checking target system type... " >&6; }
2175 if test "${ac_cv_target+set}" = set; then
2176 $as_echo_n "(cached) " >&6
2177 else
2178 if test "x$target_alias" = x; then
2179 ac_cv_target=$ac_cv_host
2180 else
2181 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2182 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2183 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2184 { (exit 1); exit 1; }; }
2185 fi
2186
2187 fi
2188 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2189 $as_echo "$ac_cv_target" >&6; }
2190 case $ac_cv_target in
2191 *-*-*) ;;
2192 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2193 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2194 { (exit 1); exit 1; }; };;
2195 esac
2196 target=$ac_cv_target
2197 ac_save_IFS=$IFS; IFS='-'
2198 set x $ac_cv_target
2199 shift
2200 target_cpu=$1
2201 target_vendor=$2
2202 shift; shift
2203 # Remember, the first character of IFS is used to create $*,
2204 # except with old shells:
2205 target_os=$*
2206 IFS=$ac_save_IFS
2207 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2208
2209
2210 # The aliases save the names the user supplied, while $host etc.
2211 # will get canonicalized.
2212 test -n "$target_alias" &&
2213 test "$program_prefix$program_suffix$program_transform_name" = \
2214 NONENONEs,x,x, &&
2215 program_prefix=${target_alias}-
2216
2217 case "$host_os" in
2218 linux*)
2219 CFLAGS="$CFLAGS"
2220 COPTIMISE_FLAG="-O2"
2221 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2222 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2223 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2224 LDDEPS="$LDDEPS .export.sym"
2225 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2226 LIB_SUFFIX=so
2227 DEVMAPPER=yes
2228 ODIRECT=yes
2229 DM_IOCTLS=yes
2230 SELINUX=yes
2231 CLUSTER=internal
2232 FSADM=yes
2233 ;;
2234 darwin*)
2235 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2236 COPTIMISE_FLAG="-O2"
2237 CLDFLAGS="$CLDFLAGS"
2238 CLDWHOLEARCHIVE="-all_load"
2239 CLDNOWHOLEARCHIVE=
2240 LIB_SUFFIX=dylib
2241 DEVMAPPER=yes
2242 ODIRECT=no
2243 DM_IOCTLS=no
2244 SELINUX=no
2245 CLUSTER=none
2246 FSADM=no
2247 ;;
2248 esac
2249
2250 ################################################################################
2251 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2252 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2253 if test "${ac_cv_path_SED+set}" = set; then
2254 $as_echo_n "(cached) " >&6
2255 else
2256 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2257 for ac_i in 1 2 3 4 5 6 7; do
2258 ac_script="$ac_script$as_nl$ac_script"
2259 done
2260 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2261 $as_unset ac_script || ac_script=
2262 if test -z "$SED"; then
2263 ac_path_SED_found=false
2264 # Loop through the user's path and test for each of PROGNAME-LIST
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_prog in sed gsed; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2273 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2274 # Check for GNU ac_path_SED and select it if it is found.
2275 # Check for GNU $ac_path_SED
2276 case `"$ac_path_SED" --version 2>&1` in
2277 *GNU*)
2278 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2279 *)
2280 ac_count=0
2281 $as_echo_n 0123456789 >"conftest.in"
2282 while :
2283 do
2284 cat "conftest.in" "conftest.in" >"conftest.tmp"
2285 mv "conftest.tmp" "conftest.in"
2286 cp "conftest.in" "conftest.nl"
2287 $as_echo '' >> "conftest.nl"
2288 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2290 ac_count=`expr $ac_count + 1`
2291 if test $ac_count -gt ${ac_path_SED_max-0}; then
2292 # Best one so far, save it but keep looking for a better one
2293 ac_cv_path_SED="$ac_path_SED"
2294 ac_path_SED_max=$ac_count
2295 fi
2296 # 10*(2^10) chars as input seems more than enough
2297 test $ac_count -gt 10 && break
2298 done
2299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2300 esac
2301
2302 $ac_path_SED_found && break 3
2303 done
2304 done
2305 done
2306 IFS=$as_save_IFS
2307 if test -z "$ac_cv_path_SED"; then
2308 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2309 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2310 { (exit 1); exit 1; }; }
2311 fi
2312 else
2313 ac_cv_path_SED=$SED
2314 fi
2315
2316 fi
2317 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2318 $as_echo "$ac_cv_path_SED" >&6; }
2319 SED="$ac_cv_path_SED"
2320 rm -f conftest.sed
2321
2322 for ac_prog in gawk mawk nawk awk
2323 do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 AWK=$ac_cv_prog_AWK
2352 if test -n "$AWK"; then
2353 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2354 $as_echo "$AWK" >&6; }
2355 else
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 test -n "$AWK" && break
2362 done
2363
2364 ac_ext=c
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 $as_echo_n "checking for $ac_word... " >&6; }
2374 if test "${ac_cv_prog_CC+set}" = set; then
2375 $as_echo_n "(cached) " >&6
2376 else
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC="$CC" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 break 2
2390 fi
2391 done
2392 done
2393 IFS=$as_save_IFS
2394
2395 fi
2396 fi
2397 CC=$ac_cv_prog_CC
2398 if test -n "$CC"; then
2399 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2400 $as_echo "$CC" >&6; }
2401 else
2402 { $as_echo "$as_me:$LINENO: result: no" >&5
2403 $as_echo "no" >&6; }
2404 fi
2405
2406
2407 fi
2408 if test -z "$ac_cv_prog_CC"; then
2409 ac_ct_CC=$CC
2410 # Extract the first word of "gcc", so it can be a program name with args.
2411 set dummy gcc; ac_word=$2
2412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$ac_ct_CC"; then
2418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_ac_ct_CC="gcc"
2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438 if test -n "$ac_ct_CC"; then
2439 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440 $as_echo "$ac_ct_CC" >&6; }
2441 else
2442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446 if test "x$ac_ct_CC" = x; then
2447 CC=""
2448 else
2449 case $cross_compiling:$ac_tool_warned in
2450 yes:)
2451 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2453 ac_tool_warned=yes ;;
2454 esac
2455 CC=$ac_ct_CC
2456 fi
2457 else
2458 CC="$ac_cv_prog_CC"
2459 fi
2460
2461 if test -z "$CC"; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}cc; ac_word=$2
2465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC="${ac_tool_prefix}cc"
2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2494 else
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 fi
2502 if test -z "$CC"; then
2503 # Extract the first word of "cc", so it can be a program name with args.
2504 set dummy cc; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512 else
2513 ac_prog_rejected=no
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2522 ac_prog_rejected=yes
2523 continue
2524 fi
2525 ac_cv_prog_CC="cc"
2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 if test $ac_prog_rejected = yes; then
2534 # We found a bogon in the path, so make sure we never use it.
2535 set dummy $ac_cv_prog_CC
2536 shift
2537 if test $# != 0; then
2538 # We chose a different compiler from the bogus one.
2539 # However, it has the same basename, so the bogon will be chosen
2540 # first if we set CC to just the basename; use the full file name.
2541 shift
2542 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543 fi
2544 fi
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2551 else
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
2560 for ac_prog in cl.exe
2561 do
2562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 test -n "$CC" && break
2600 done
2601 fi
2602 if test -z "$CC"; then
2603 ac_ct_CC=$CC
2604 for ac_prog in cl.exe
2605 do
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_CC="$ac_prog"
2624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634 if test -n "$ac_ct_CC"; then
2635 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 $as_echo "$ac_ct_CC" >&6; }
2637 else
2638 { $as_echo "$as_me:$LINENO: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 test -n "$ac_ct_CC" && break
2644 done
2645
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2656 fi
2657 fi
2658
2659 fi
2660
2661
2662 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&5
2666 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }; }
2669
2670 # Provide some information about the compiler.
2671 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2672 set X $ac_compile
2673 ac_compiler=$2
2674 { (ac_try="$ac_compiler --version >&5"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680 $as_echo "$ac_try_echo") >&5
2681 (eval "$ac_compiler --version >&5") 2>&5
2682 ac_status=$?
2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -v >&5"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691 $as_echo "$ac_try_echo") >&5
2692 (eval "$ac_compiler -v >&5") 2>&5
2693 ac_status=$?
2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (ac_try="$ac_compiler -V >&5"
2697 case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2702 $as_echo "$ac_try_echo") >&5
2703 (eval "$ac_compiler -V >&5") 2>&5
2704 ac_status=$?
2705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }
2707
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714
2715 int
2716 main ()
2717 {
2718
2719 ;
2720 return 0;
2721 }
2722 _ACEOF
2723 ac_clean_files_save=$ac_clean_files
2724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2725 # Try to create an executable without -o first, disregard a.out.
2726 # It will help us diagnose broken compilers, and finding out an intuition
2727 # of exeext.
2728 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2729 $as_echo_n "checking for C compiler default output file name... " >&6; }
2730 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2731
2732 # The possible output files:
2733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2734
2735 ac_rmfiles=
2736 for ac_file in $ac_files
2737 do
2738 case $ac_file in
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 esac
2742 done
2743 rm -f $ac_rmfiles
2744
2745 if { (ac_try="$ac_link_default"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2751 $as_echo "$ac_try_echo") >&5
2752 (eval "$ac_link_default") 2>&5
2753 ac_status=$?
2754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; then
2756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2759 # so that the user can short-circuit this test for compilers unknown to
2760 # Autoconf.
2761 for ac_file in $ac_files ''
2762 do
2763 test -f "$ac_file" || continue
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2766 ;;
2767 [ab].out )
2768 # We found the default executable, but exeext='' is most
2769 # certainly right.
2770 break;;
2771 *.* )
2772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2773 then :; else
2774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 fi
2776 # We set ac_cv_exeext here because the later test for it is not
2777 # safe: cross compilers may not add the suffix if given an `-o'
2778 # argument, so we may need to know it at that point already.
2779 # Even if this section looks crufty: it has the advantage of
2780 # actually working.
2781 break;;
2782 * )
2783 break;;
2784 esac
2785 done
2786 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787
2788 else
2789 ac_file=''
2790 fi
2791
2792 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2793 $as_echo "$ac_file" >&6; }
2794 if test -z "$ac_file"; then
2795 $as_echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2801 See \`config.log' for more details." >&5
2802 $as_echo "$as_me: error: C compiler cannot create executables
2803 See \`config.log' for more details." >&2;}
2804 { (exit 77); exit 77; }; }; }
2805 fi
2806
2807 ac_exeext=$ac_cv_exeext
2808
2809 # Check that the compiler produces executables we can run. If not, either
2810 # the compiler is broken, or we cross compile.
2811 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2812 $as_echo_n "checking whether the C compiler works... " >&6; }
2813 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2814 # If not cross compiling, check that we can run a simple program.
2815 if test "$cross_compiling" != yes; then
2816 if { ac_try='./$ac_file'
2817 { (case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820 esac
2821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2822 $as_echo "$ac_try_echo") >&5
2823 (eval "$ac_try") 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 cross_compiling=no
2828 else
2829 if test "$cross_compiling" = maybe; then
2830 cross_compiling=yes
2831 else
2832 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2835 If you meant to cross compile, use \`--host'.
2836 See \`config.log' for more details." >&5
2837 $as_echo "$as_me: error: cannot run C compiled programs.
2838 If you meant to cross compile, use \`--host'.
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }; }
2841 fi
2842 fi
2843 fi
2844 { $as_echo "$as_me:$LINENO: result: yes" >&5
2845 $as_echo "yes" >&6; }
2846
2847 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2848 ac_clean_files=$ac_clean_files_save
2849 # Check that the compiler produces executables we can run. If not, either
2850 # the compiler is broken, or we cross compile.
2851 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2852 $as_echo_n "checking whether we are cross compiling... " >&6; }
2853 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2854 $as_echo "$cross_compiling" >&6; }
2855
2856 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2857 $as_echo_n "checking for suffix of executables... " >&6; }
2858 if { (ac_try="$ac_link"
2859 case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862 esac
2863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864 $as_echo "$ac_try_echo") >&5
2865 (eval "$ac_link") 2>&5
2866 ac_status=$?
2867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2871 # work properly (i.e., refer to `conftest.exe'), while it won't with
2872 # `rm'.
2873 for ac_file in conftest.exe conftest conftest.*; do
2874 test -f "$ac_file" || continue
2875 case $ac_file in
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878 break;;
2879 * ) break;;
2880 esac
2881 done
2882 else
2883 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&5
2887 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }; }
2890 fi
2891
2892 rm -f conftest$ac_cv_exeext
2893 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894 $as_echo "$ac_cv_exeext" >&6; }
2895
2896 rm -f conftest.$ac_ext
2897 EXEEXT=$ac_cv_exeext
2898 ac_exeext=$EXEEXT
2899 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900 $as_echo_n "checking for suffix of object files... " >&6; }
2901 if test "${ac_cv_objext+set}" = set; then
2902 $as_echo_n "(cached) " >&6
2903 else
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910
2911 int
2912 main ()
2913 {
2914
2915 ;
2916 return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.o conftest.obj
2920 if { (ac_try="$ac_compile"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2926 $as_echo "$ac_try_echo") >&5
2927 (eval "$ac_compile") 2>&5
2928 ac_status=$?
2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 for ac_file in conftest.o conftest.obj conftest.*; do
2932 test -f "$ac_file" || continue;
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2935 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2936 break;;
2937 esac
2938 done
2939 else
2940 $as_echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2946 See \`config.log' for more details." >&5
2947 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }; }
2950 fi
2951
2952 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953 fi
2954 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2955 $as_echo "$ac_cv_objext" >&6; }
2956 OBJEXT=$ac_cv_objext
2957 ac_objext=$OBJEXT
2958 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2960 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2961 $as_echo_n "(cached) " >&6
2962 else
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969
2970 int
2971 main ()
2972 {
2973 #ifndef __GNUC__
2974 choke me
2975 #endif
2976
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988 $as_echo "$ac_try_echo") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 ac_compiler_gnu=yes
3000 else
3001 $as_echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 ac_compiler_gnu=no
3005 fi
3006
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3009
3010 fi
3011 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3012 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3013 if test $ac_compiler_gnu = yes; then
3014 GCC=yes
3015 else
3016 GCC=
3017 fi
3018 ac_test_CFLAGS=${CFLAGS+set}
3019 ac_save_CFLAGS=$CFLAGS
3020 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3021 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3022 if test "${ac_cv_prog_cc_g+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3024 else
3025 ac_save_c_werror_flag=$ac_c_werror_flag
3026 ac_c_werror_flag=yes
3027 ac_cv_prog_cc_g=no
3028 CFLAGS="-g"
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035
3036 int
3037 main ()
3038 {
3039
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3051 $as_echo "$ac_try_echo") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3062 ac_cv_prog_cc_g=yes
3063 else
3064 $as_echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 CFLAGS=""
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090 $as_echo "$ac_try_echo") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 :
3102 else
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3107 CFLAGS="-g"
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130 $as_echo "$ac_try_echo") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3141 ac_cv_prog_cc_g=yes
3142 else
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146
3147 fi
3148
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 fi
3151
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3157 fi
3158 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3159 $as_echo "$ac_cv_prog_cc_g" >&6; }
3160 if test "$ac_test_CFLAGS" = set; then
3161 CFLAGS=$ac_save_CFLAGS
3162 elif test $ac_cv_prog_cc_g = yes; then
3163 if test "$GCC" = yes; then
3164 CFLAGS="-g -O2"
3165 else
3166 CFLAGS="-g"
3167 fi
3168 else
3169 if test "$GCC" = yes; then
3170 CFLAGS="-O2"
3171 else
3172 CFLAGS=
3173 fi
3174 fi
3175 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3177 if test "${ac_cv_prog_cc_c89+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 ac_cv_prog_cc_c89=no
3181 ac_save_CC=$CC
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <stdarg.h>
3189 #include <stdio.h>
3190 #include <sys/types.h>
3191 #include <sys/stat.h>
3192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193 struct buf { int x; };
3194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195 static char *e (p, i)
3196 char **p;
3197 int i;
3198 {
3199 return p[i];
3200 }
3201 static char *f (char * (*g) (char **, int), char **p, ...)
3202 {
3203 char *s;
3204 va_list v;
3205 va_start (v,p);
3206 s = g (p, va_arg (v,int));
3207 va_end (v);
3208 return s;
3209 }
3210
3211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
3214 as 'x'. The following induces an error, until -std is added to get
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
3217 that's true only with -std. */
3218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219
3220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3222 #define FOO(x) 'x'
3223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
3225 int test (int i, double x);
3226 struct s1 {int (*f) (int a);};
3227 struct s2 {int (*f) (double a);};
3228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229 int argc;
3230 char **argv;
3231 int
3232 main ()
3233 {
3234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 ;
3236 return 0;
3237 }
3238 _ACEOF
3239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241 do
3242 CC="$ac_save_CC $ac_arg"
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250 $as_echo "$ac_try_echo") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 ac_cv_prog_cc_c89=$ac_arg
3262 else
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext
3270 test "x$ac_cv_prog_cc_c89" != "xno" && break
3271 done
3272 rm -f conftest.$ac_ext
3273 CC=$ac_save_CC
3274
3275 fi
3276 # AC_CACHE_VAL
3277 case "x$ac_cv_prog_cc_c89" in
3278 x)
3279 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3280 $as_echo "none needed" >&6; } ;;
3281 xno)
3282 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3283 $as_echo "unsupported" >&6; } ;;
3284 *)
3285 CC="$CC $ac_cv_prog_cc_c89"
3286 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3288 esac
3289
3290
3291 ac_ext=c
3292 ac_cpp='$CPP $CPPFLAGS'
3293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296
3297
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3306 # On Suns, sometimes $CPP names a directory.
3307 if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3309 fi
3310 if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
3312 $as_echo_n "(cached) " >&6
3313 else
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 do
3317 ac_preproc_ok=false
3318 for ac_c_preproc_warn_flag in '' yes
3319 do
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 #ifdef __STDC__
3333 # include <limits.h>
3334 #else
3335 # include <assert.h>
3336 #endif
3337 Syntax error
3338 _ACEOF
3339 if { (ac_try="$ac_cpp conftest.$ac_ext"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 }; then
3356 :
3357 else
3358 $as_echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 # Broken: fails on valid input.
3362 continue
3363 fi
3364
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 }; then
3394 # Broken: success on invalid input.
3395 continue
3396 else
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 # Passes both tests.
3401 ac_preproc_ok=:
3402 break
3403 fi
3404
3405 rm -f conftest.err conftest.$ac_ext
3406
3407 done
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.err conftest.$ac_ext
3410 if $ac_preproc_ok; then
3411 break
3412 fi
3413
3414 done
3415 ac_cv_prog_CPP=$CPP
3416
3417 fi
3418 CPP=$ac_cv_prog_CPP
3419 else
3420 ac_cv_prog_CPP=$CPP
3421 fi
3422 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3423 $as_echo "$CPP" >&6; }
3424 ac_preproc_ok=false
3425 for ac_c_preproc_warn_flag in '' yes
3426 do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } >/dev/null && {
3460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3461 test ! -s conftest.err
3462 }; then
3463 :
3464 else
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 # Broken: fails on valid input.
3469 continue
3470 fi
3471
3472 rm -f conftest.err conftest.$ac_ext
3473
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3490 $as_echo "$ac_try_echo") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 }; then
3501 # Broken: success on invalid input.
3502 continue
3503 else
3504 $as_echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 # Passes both tests.
3508 ac_preproc_ok=:
3509 break
3510 fi
3511
3512 rm -f conftest.err conftest.$ac_ext
3513
3514 done
3515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516 rm -f conftest.err conftest.$ac_ext
3517 if $ac_preproc_ok; then
3518 :
3519 else
3520 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&5
3524 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3525 See \`config.log' for more details." >&2;}
3526 { (exit 1); exit 1; }; }; }
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535
3536 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3538 if test "${ac_cv_path_GREP+set}" = set; then
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -z "$GREP"; then
3542 ac_path_GREP_found=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3546 do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_prog in grep ggrep; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3553 # Check for GNU ac_path_GREP and select it if it is found.
3554 # Check for GNU $ac_path_GREP
3555 case `"$ac_path_GREP" --version 2>&1` in
3556 *GNU*)
3557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3558 *)
3559 ac_count=0
3560 $as_echo_n 0123456789 >"conftest.in"
3561 while :
3562 do
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 $as_echo 'GREP' >> "conftest.nl"
3567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 ac_count=`expr $ac_count + 1`
3570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_GREP="$ac_path_GREP"
3573 ac_path_GREP_max=$ac_count
3574 fi
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3577 done
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3579 esac
3580
3581 $ac_path_GREP_found && break 3
3582 done
3583 done
3584 done
3585 IFS=$as_save_IFS
3586 if test -z "$ac_cv_path_GREP"; then
3587 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3588 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3589 { (exit 1); exit 1; }; }
3590 fi
3591 else
3592 ac_cv_path_GREP=$GREP
3593 fi
3594
3595 fi
3596 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3597 $as_echo "$ac_cv_path_GREP" >&6; }
3598 GREP="$ac_cv_path_GREP"
3599
3600
3601 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3602 $as_echo_n "checking for egrep... " >&6; }
3603 if test "${ac_cv_path_EGREP+set}" = set; then
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607 then ac_cv_path_EGREP="$GREP -E"
3608 else
3609 if test -z "$EGREP"; then
3610 ac_path_EGREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in egrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621 # Check for GNU ac_path_EGREP and select it if it is found.
3622 # Check for GNU $ac_path_EGREP
3623 case `"$ac_path_EGREP" --version 2>&1` in
3624 *GNU*)
3625 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3626 *)
3627 ac_count=0
3628 $as_echo_n 0123456789 >"conftest.in"
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'EGREP' >> "conftest.nl"
3635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 ac_count=`expr $ac_count + 1`
3638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_EGREP="$ac_path_EGREP"
3641 ac_path_EGREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3645 done
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647 esac
3648
3649 $ac_path_EGREP_found && break 3
3650 done
3651 done
3652 done
3653 IFS=$as_save_IFS
3654 if test -z "$ac_cv_path_EGREP"; then
3655 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3656 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3657 { (exit 1); exit 1; }; }
3658 fi
3659 else
3660 ac_cv_path_EGREP=$EGREP
3661 fi
3662
3663 fi
3664 fi
3665 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3666 $as_echo "$ac_cv_path_EGREP" >&6; }
3667 EGREP="$ac_cv_path_EGREP"
3668
3669
3670 if test $ac_cv_c_compiler_gnu = yes; then
3671 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3672 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3673 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_pattern="Autoconf.*'x'"
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 #include <sgtty.h>
3684 Autoconf TIOCGETP
3685 _ACEOF
3686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3688 ac_cv_prog_gcc_traditional=yes
3689 else
3690 ac_cv_prog_gcc_traditional=no
3691 fi
3692 rm -f conftest*
3693
3694
3695 if test $ac_cv_prog_gcc_traditional = no; then
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <termio.h>
3703 Autoconf TCGETA
3704 _ACEOF
3705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3707 ac_cv_prog_gcc_traditional=yes
3708 fi
3709 rm -f conftest*
3710
3711 fi
3712 fi
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3714 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3715 if test $ac_cv_prog_gcc_traditional = yes; then
3716 CC="$CC -traditional"
3717 fi
3718 fi
3719
3720 # Find a good install program. We prefer a C program (faster),
3721 # so one script is as good as another. But avoid the broken or
3722 # incompatible versions:
3723 # SysV /etc/install, /usr/sbin/install
3724 # SunOS /usr/etc/install
3725 # IRIX /sbin/install
3726 # AIX /bin/install
3727 # AmigaOS /C/install, which installs bootblocks on floppy discs
3728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3731 # OS/2's system install, which has a completely different semantic
3732 # ./install, which can be erroneously created by make from ./install.sh.
3733 # Reject install programs that cannot install multiple files.
3734 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3735 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3736 if test -z "$INSTALL"; then
3737 if test "${ac_cv_path_install+set}" = set; then
3738 $as_echo_n "(cached) " >&6
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 # Account for people who put trailing slashes in PATH elements.
3746 case $as_dir/ in
3747 ./ | .// | /cC/* | \
3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3750 /usr/ucb/* ) ;;
3751 *)
3752 # OSF1 and SCO ODT 3.0 have their own names for install.
3753 # Don't use installbsd from OSF since it installs stuff as root
3754 # by default.
3755 for ac_prog in ginstall scoinst install; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3758 if test $ac_prog = install &&
3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # AIX install. It has an incompatible calling convention.
3761 :
3762 elif test $ac_prog = install &&
3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # program-specific install script used by HP pwplus--don't use.
3765 :
3766 else
3767 rm -rf conftest.one conftest.two conftest.dir
3768 echo one > conftest.one
3769 echo two > conftest.two
3770 mkdir conftest.dir
3771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3772 test -s conftest.one && test -s conftest.two &&
3773 test -s conftest.dir/conftest.one &&
3774 test -s conftest.dir/conftest.two
3775 then
3776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3777 break 3
3778 fi
3779 fi
3780 fi
3781 done
3782 done
3783 ;;
3784 esac
3785
3786 done
3787 IFS=$as_save_IFS
3788
3789 rm -rf conftest.one conftest.two conftest.dir
3790
3791 fi
3792 if test "${ac_cv_path_install+set}" = set; then
3793 INSTALL=$ac_cv_path_install
3794 else
3795 # As a last resort, use the slow shell script. Don't cache a
3796 # value for INSTALL within a source directory, because that will
3797 # break other packages using the cache if that directory is
3798 # removed, or if the value is a relative name.
3799 INSTALL=$ac_install_sh
3800 fi
3801 fi
3802 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3803 $as_echo "$INSTALL" >&6; }
3804
3805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806 # It thinks the first close brace ends the variable substitution.
3807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3808
3809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3810
3811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3812
3813 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3814 $as_echo_n "checking whether ln -s works... " >&6; }
3815 LN_S=$as_ln_s
3816 if test "$LN_S" = "ln -s"; then
3817 { $as_echo "$as_me:$LINENO: result: yes" >&5
3818 $as_echo "yes" >&6; }
3819 else
3820 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3821 $as_echo "no, using $LN_S" >&6; }
3822 fi
3823
3824 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3825 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826 set x ${MAKE-make}
3827 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3828 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3829 $as_echo_n "(cached) " >&6
3830 else
3831 cat >conftest.make <<\_ACEOF
3832 SHELL = /bin/sh
3833 all:
3834 @echo '@@@%%%=$(MAKE)=@@@%%%'
3835 _ACEOF
3836 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3837 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838 *@@@%%%=?*=@@@%%%*)
3839 eval ac_cv_prog_make_${ac_make}_set=yes;;
3840 *)
3841 eval ac_cv_prog_make_${ac_make}_set=no;;
3842 esac
3843 rm -f conftest.make
3844 fi
3845 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3846 { $as_echo "$as_me:$LINENO: result: yes" >&5
3847 $as_echo "yes" >&6; }
3848 SET_MAKE=
3849 else
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3852 SET_MAKE="MAKE=${MAKE-make}"
3853 fi
3854
3855 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3856 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3857 if test -z "$MKDIR_P"; then
3858 if test "${ac_cv_path_mkdir+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3863 do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in mkdir gmkdir; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3869 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3870 'mkdir (GNU coreutils) '* | \
3871 'mkdir (coreutils) '* | \
3872 'mkdir (fileutils) '4.1*)
3873 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3874 break 3;;
3875 esac
3876 done
3877 done
3878 done
3879 IFS=$as_save_IFS
3880
3881 fi
3882
3883 if test "${ac_cv_path_mkdir+set}" = set; then
3884 MKDIR_P="$ac_cv_path_mkdir -p"
3885 else
3886 # As a last resort, use the slow shell script. Don't cache a
3887 # value for MKDIR_P within a source directory, because that will
3888 # break other packages using the cache if that directory is
3889 # removed, or if the value is a relative name.
3890 test -d ./--version && rmdir ./--version
3891 MKDIR_P="$ac_install_sh -d"
3892 fi
3893 fi
3894 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3895 $as_echo "$MKDIR_P" >&6; }
3896
3897 if test -n "$ac_tool_prefix"; then
3898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if test "${ac_cv_prog_RANLIB+set}" = set; then
3903 $as_echo_n "(cached) " >&6
3904 else
3905 if test -n "$RANLIB"; then
3906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 RANLIB=$ac_cv_prog_RANLIB
3926 if test -n "$RANLIB"; then
3927 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3928 $as_echo "$RANLIB" >&6; }
3929 else
3930 { $as_echo "$as_me:$LINENO: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935 fi
3936 if test -z "$ac_cv_prog_RANLIB"; then
3937 ac_ct_RANLIB=$RANLIB
3938 # Extract the first word of "ranlib", so it can be a program name with args.
3939 set dummy ranlib; ac_word=$2
3940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$ac_ct_RANLIB"; then
3946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_ac_ct_RANLIB="ranlib"
3956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3958 fi
3959 done
3960 done
3961 IFS=$as_save_IFS
3962
3963 fi
3964 fi
3965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3966 if test -n "$ac_ct_RANLIB"; then
3967 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3968 $as_echo "$ac_ct_RANLIB" >&6; }
3969 else
3970 { $as_echo "$as_me:$LINENO: result: no" >&5
3971 $as_echo "no" >&6; }
3972 fi
3973
3974 if test "x$ac_ct_RANLIB" = x; then
3975 RANLIB=":"
3976 else
3977 case $cross_compiling:$ac_tool_warned in
3978 yes:)
3979 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3982 esac
3983 RANLIB=$ac_ct_RANLIB
3984 fi
3985 else
3986 RANLIB="$ac_cv_prog_RANLIB"
3987 fi
3988
3989 # Extract the first word of "cflow", so it can be a program name with args.
3990 set dummy cflow; ac_word=$2
3991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3994 $as_echo_n "(cached) " >&6
3995 else
3996 case $CFLOW_CMD in
3997 [\\/]* | ?:[\\/]*)
3998 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3999 ;;
4000 *)
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016 ;;
4017 esac
4018 fi
4019 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4020 if test -n "$CFLOW_CMD"; then
4021 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4022 $as_echo "$CFLOW_CMD" >&6; }
4023 else
4024 { $as_echo "$as_me:$LINENO: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029 # Extract the first word of "cscope", so it can be a program name with args.
4030 set dummy cscope; ac_word=$2
4031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4034 $as_echo_n "(cached) " >&6
4035 else
4036 case $CSCOPE_CMD in
4037 [\\/]* | ?:[\\/]*)
4038 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4039 ;;
4040 *)
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052 done
4053 done
4054 IFS=$as_save_IFS
4055
4056 ;;
4057 esac
4058 fi
4059 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4060 if test -n "$CSCOPE_CMD"; then
4061 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4062 $as_echo "$CSCOPE_CMD" >&6; }
4063 else
4064 { $as_echo "$as_me:$LINENO: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069
4070 ################################################################################
4071
4072
4073
4074
4075
4076 ac_header_dirent=no
4077 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4078 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4079 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4080 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4082 $as_echo_n "(cached) " >&6
4083 else
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <sys/types.h>
4091 #include <$ac_hdr>
4092
4093 int
4094 main ()
4095 {
4096 if ((DIR *) 0)
4097 return 0;
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 eval "$as_ac_Header=yes"
4121 else
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 eval "$as_ac_Header=no"
4126 fi
4127
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 ac_res=`eval 'as_val=${'$as_ac_Header'}
4131 $as_echo "$as_val"'`
4132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4133 $as_echo "$ac_res" >&6; }
4134 as_val=`eval 'as_val=${'$as_ac_Header'}
4135 $as_echo "$as_val"'`
4136 if test "x$as_val" = x""yes; then
4137 cat >>confdefs.h <<_ACEOF
4138 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4139 _ACEOF
4140
4141 ac_header_dirent=$ac_hdr; break
4142 fi
4143
4144 done
4145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4146 if test $ac_header_dirent = dirent.h; then
4147 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4148 $as_echo_n "checking for library containing opendir... " >&6; }
4149 if test "${ac_cv_search_opendir+set}" = set; then
4150 $as_echo_n "(cached) " >&6
4151 else
4152 ac_func_search_save_LIBS=$LIBS
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159
4160 /* Override any GCC internal prototype to avoid an error.
4161 Use char because int might match the return type of a GCC
4162 builtin and then its argument prototype would still apply. */
4163 #ifdef __cplusplus
4164 extern "C"
4165 #endif
4166 char opendir ();
4167 int
4168 main ()
4169 {
4170 return opendir ();
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 for ac_lib in '' dir; do
4176 if test -z "$ac_lib"; then
4177 ac_res="none required"
4178 else
4179 ac_res=-l$ac_lib
4180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4181 fi
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4184 case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4189 $as_echo "$ac_try_echo") >&5
4190 (eval "$ac_link") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && {
4197 test -z "$ac_c_werror_flag" ||
4198 test ! -s conftest.err
4199 } && test -s conftest$ac_exeext && {
4200 test "$cross_compiling" = yes ||
4201 $as_test_x conftest$ac_exeext
4202 }; then
4203 ac_cv_search_opendir=$ac_res
4204 else
4205 $as_echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208
4209 fi
4210
4211 rm -rf conftest.dSYM
4212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4213 conftest$ac_exeext
4214 if test "${ac_cv_search_opendir+set}" = set; then
4215 break
4216 fi
4217 done
4218 if test "${ac_cv_search_opendir+set}" = set; then
4219 :
4220 else
4221 ac_cv_search_opendir=no
4222 fi
4223 rm conftest.$ac_ext
4224 LIBS=$ac_func_search_save_LIBS
4225 fi
4226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4227 $as_echo "$ac_cv_search_opendir" >&6; }
4228 ac_res=$ac_cv_search_opendir
4229 if test "$ac_res" != no; then
4230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4231
4232 fi
4233
4234 else
4235 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4236 $as_echo_n "checking for library containing opendir... " >&6; }
4237 if test "${ac_cv_search_opendir+set}" = set; then
4238 $as_echo_n "(cached) " >&6
4239 else
4240 ac_func_search_save_LIBS=$LIBS
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247
4248 /* Override any GCC internal prototype to avoid an error.
4249 Use char because int might match the return type of a GCC
4250 builtin and then its argument prototype would still apply. */
4251 #ifdef __cplusplus
4252 extern "C"
4253 #endif
4254 char opendir ();
4255 int
4256 main ()
4257 {
4258 return opendir ();
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 for ac_lib in '' x; do
4264 if test -z "$ac_lib"; then
4265 ac_res="none required"
4266 else
4267 ac_res=-l$ac_lib
4268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4269 fi
4270 rm -f conftest.$ac_objext conftest$ac_exeext
4271 if { (ac_try="$ac_link"
4272 case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4277 $as_echo "$ac_try_echo") >&5
4278 (eval "$ac_link") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest$ac_exeext && {
4288 test "$cross_compiling" = yes ||
4289 $as_test_x conftest$ac_exeext
4290 }; then
4291 ac_cv_search_opendir=$ac_res
4292 else
4293 $as_echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296
4297 fi
4298
4299 rm -rf conftest.dSYM
4300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4301 conftest$ac_exeext
4302 if test "${ac_cv_search_opendir+set}" = set; then
4303 break
4304 fi
4305 done
4306 if test "${ac_cv_search_opendir+set}" = set; then
4307 :
4308 else
4309 ac_cv_search_opendir=no
4310 fi
4311 rm conftest.$ac_ext
4312 LIBS=$ac_func_search_save_LIBS
4313 fi
4314 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4315 $as_echo "$ac_cv_search_opendir" >&6; }
4316 ac_res=$ac_cv_search_opendir
4317 if test "$ac_res" != no; then
4318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4319
4320 fi
4321
4322 fi
4323
4324 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4325 $as_echo_n "checking for ANSI C header files... " >&6; }
4326 if test "${ac_cv_header_stdc+set}" = set; then
4327 $as_echo_n "(cached) " >&6
4328 else
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <stdlib.h>
4336 #include <stdarg.h>
4337 #include <string.h>
4338 #include <float.h>
4339
4340 int
4341 main ()
4342 {
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4350 case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355 $as_echo "$ac_try_echo") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && {
4363 test -z "$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 } && test -s conftest.$ac_objext; then
4366 ac_cv_header_stdc=yes
4367 else
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 ac_cv_header_stdc=no
4372 fi
4373
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375
4376 if test $ac_cv_header_stdc = yes; then
4377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #include <string.h>
4385
4386 _ACEOF
4387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388 $EGREP "memchr" >/dev/null 2>&1; then
4389 :
4390 else
4391 ac_cv_header_stdc=no
4392 fi
4393 rm -f conftest*
4394
4395 fi
4396
4397 if test $ac_cv_header_stdc = yes; then
4398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <stdlib.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "free" >/dev/null 2>&1; then
4410 :
4411 else
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420 if test "$cross_compiling" = yes; then
4421 :
4422 else
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <ctype.h>
4430 #include <stdlib.h>
4431 #if ((' ' & 0x0FF) == 0x020)
4432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4434 #else
4435 # define ISLOWER(c) \
4436 (('a' <= (c) && (c) <= 'i') \
4437 || ('j' <= (c) && (c) <= 'r') \
4438 || ('s' <= (c) && (c) <= 'z'))
4439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440 #endif
4441
4442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4443 int
4444 main ()
4445 {
4446 int i;
4447 for (i = 0; i < 256; i++)
4448 if (XOR (islower (i), ISLOWER (i))
4449 || toupper (i) != TOUPPER (i))
4450 return 2;
4451 return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest$ac_exeext
4455 if { (ac_try="$ac_link"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4461 $as_echo "$ac_try_echo") >&5
4462 (eval "$ac_link") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469 esac
4470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4471 $as_echo "$ac_try_echo") >&5
4472 (eval "$ac_try") 2>&5
4473 ac_status=$?
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 :
4477 else
4478 $as_echo "$as_me: program exited with status $ac_status" >&5
4479 $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 ( exit $ac_status )
4483 ac_cv_header_stdc=no
4484 fi
4485 rm -rf conftest.dSYM
4486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487 fi
4488
4489
4490 fi
4491 fi
4492 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 $as_echo "$ac_cv_header_stdc" >&6; }
4494 if test $ac_cv_header_stdc = yes; then
4495
4496 cat >>confdefs.h <<\_ACEOF
4497 #define STDC_HEADERS 1
4498 _ACEOF
4499
4500 fi
4501
4502 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4503 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4504 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4505 $as_echo_n "(cached) " >&6
4506 else
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 #include <sys/types.h>
4514 #include <sys/wait.h>
4515 #ifndef WEXITSTATUS
4516 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4517 #endif
4518 #ifndef WIFEXITED
4519 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4520 #endif
4521
4522 int
4523 main ()
4524 {
4525 int s;
4526 wait (&s);
4527 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (ac_try="$ac_compile"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_compile") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest.$ac_objext; then
4550 ac_cv_header_sys_wait_h=yes
4551 else
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ac_cv_header_sys_wait_h=no
4556 fi
4557
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 fi
4560 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4561 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4562 if test $ac_cv_header_sys_wait_h = yes; then
4563
4564 cat >>confdefs.h <<\_ACEOF
4565 #define HAVE_SYS_WAIT_H 1
4566 _ACEOF
4567
4568 fi
4569
4570 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4571 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4572 if test "${ac_cv_header_time+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4574 else
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <sys/types.h>
4582 #include <sys/time.h>
4583 #include <time.h>
4584
4585 int
4586 main ()
4587 {
4588 if ((struct tm *) 0)
4589 return 0;
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 rm -f conftest.$ac_objext
4595 if { (ac_try="$ac_compile"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601 $as_echo "$ac_try_echo") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4612 ac_cv_header_time=yes
4613 else
4614 $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 ac_cv_header_time=no
4618 fi
4619
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4623 $as_echo "$ac_cv_header_time" >&6; }
4624 if test $ac_cv_header_time = yes; then
4625
4626 cat >>confdefs.h <<\_ACEOF
4627 #define TIME_WITH_SYS_TIME 1
4628 _ACEOF
4629
4630 fi
4631
4632
4633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4644 inttypes.h stdint.h unistd.h
4645 do
4646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4648 $as_echo_n "checking for $ac_header... " >&6; }
4649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4650 $as_echo_n "(cached) " >&6
4651 else
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659
4660 #include <$ac_header>
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (ac_try="$ac_compile"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4669 $as_echo "$ac_try_echo") >&5
4670 (eval "$ac_compile") 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } && {
4677 test -z "$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 } && test -s conftest.$ac_objext; then
4680 eval "$as_ac_Header=yes"
4681 else
4682 $as_echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 eval "$as_ac_Header=no"
4686 fi
4687
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 ac_res=`eval 'as_val=${'$as_ac_Header'}
4691 $as_echo "$as_val"'`
4692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4693 $as_echo "$ac_res" >&6; }
4694 as_val=`eval 'as_val=${'$as_ac_Header'}
4695 $as_echo "$as_val"'`
4696 if test "x$as_val" = x""yes; then
4697 cat >>confdefs.h <<_ACEOF
4698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4699 _ACEOF
4700
4701 fi
4702
4703 done
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4720 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4721 do
4722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4725 $as_echo_n "checking for $ac_header... " >&6; }
4726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4727 $as_echo_n "(cached) " >&6
4728 fi
4729 ac_res=`eval 'as_val=${'$as_ac_Header'}
4730 $as_echo "$as_val"'`
4731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4732 $as_echo "$ac_res" >&6; }
4733 else
4734 # Is the header compilable?
4735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4736 $as_echo_n "checking $ac_header usability... " >&6; }
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 $ac_includes_default
4744 #include <$ac_header>
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4748 case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753 $as_echo "$ac_try_echo") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest.$ac_objext; then
4764 ac_header_compiler=yes
4765 else
4766 $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_header_compiler=no
4770 fi
4771
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4774 $as_echo "$ac_header_compiler" >&6; }
4775
4776 # Is the header present?
4777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4778 $as_echo_n "checking $ac_header presence... " >&6; }
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <$ac_header>
4786 _ACEOF
4787 if { (ac_try="$ac_cpp conftest.$ac_ext"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793 $as_echo "$ac_try_echo") >&5
4794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null && {
4801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 }; then
4804 ac_header_preproc=yes
4805 else
4806 $as_echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 ac_header_preproc=no
4810 fi
4811
4812 rm -f conftest.err conftest.$ac_ext
4813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4814 $as_echo "$ac_header_preproc" >&6; }
4815
4816 # So? What about this header?
4817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4818 yes:no: )
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4823 ac_header_preproc=yes
4824 ;;
4825 no:yes:* )
4826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4829 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4833 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4838
4839 ;;
4840 esac
4841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4842 $as_echo_n "checking for $ac_header... " >&6; }
4843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4844 $as_echo_n "(cached) " >&6
4845 else
4846 eval "$as_ac_Header=\$ac_header_preproc"
4847 fi
4848 ac_res=`eval 'as_val=${'$as_ac_Header'}
4849 $as_echo "$as_val"'`
4850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4851 $as_echo "$ac_res" >&6; }
4852
4853 fi
4854 as_val=`eval 'as_val=${'$as_ac_Header'}
4855 $as_echo "$as_val"'`
4856 if test "x$as_val" = x""yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4860
4861 else
4862 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4863 $as_echo "$as_me: error: bailing out" >&2;}
4864 { (exit 1); exit 1; }; }
4865 fi
4866
4867 done
4868
4869
4870 case "$host_os" in
4871 linux*)
4872
4873
4874
4875 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4876 do
4877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4880 $as_echo_n "checking for $ac_header... " >&6; }
4881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4882 $as_echo_n "(cached) " >&6
4883 fi
4884 ac_res=`eval 'as_val=${'$as_ac_Header'}
4885 $as_echo "$as_val"'`
4886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4887 $as_echo "$ac_res" >&6; }
4888 else
4889 # Is the header compilable?
4890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4891 $as_echo_n "checking $ac_header usability... " >&6; }
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 #include <$ac_header>
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (ac_try="$ac_compile"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909 (eval "$ac_compile") 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } && {
4916 test -z "$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 } && test -s conftest.$ac_objext; then
4919 ac_header_compiler=yes
4920 else
4921 $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 ac_header_compiler=no
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4929 $as_echo "$ac_header_compiler" >&6; }
4930
4931 # Is the header present?
4932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4933 $as_echo_n "checking $ac_header presence... " >&6; }
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <$ac_header>
4941 _ACEOF
4942 if { (ac_try="$ac_cpp conftest.$ac_ext"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4948 $as_echo "$ac_try_echo") >&5
4949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null && {
4956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 }; then
4959 ac_header_preproc=yes
4960 else
4961 $as_echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_header_preproc=no
4965 fi
4966
4967 rm -f conftest.err conftest.$ac_ext
4968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4969 $as_echo "$ac_header_preproc" >&6; }
4970
4971 # So? What about this header?
4972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4973 yes:no: )
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4978 ac_header_preproc=yes
4979 ;;
4980 no:yes:* )
4981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4984 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4988 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4993
4994 ;;
4995 esac
4996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4997 $as_echo_n "checking for $ac_header... " >&6; }
4998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4999 $as_echo_n "(cached) " >&6
5000 else
5001 eval "$as_ac_Header=\$ac_header_preproc"
5002 fi
5003 ac_res=`eval 'as_val=${'$as_ac_Header'}
5004 $as_echo "$as_val"'`
5005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5006 $as_echo "$ac_res" >&6; }
5007
5008 fi
5009 as_val=`eval 'as_val=${'$as_ac_Header'}
5010 $as_echo "$as_val"'`
5011 if test "x$as_val" = x""yes; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 _ACEOF
5015
5016 else
5017 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5018 $as_echo "$as_me: error: bailing out" >&2;}
5019 { (exit 1); exit 1; }; }
5020 fi
5021
5022 done
5023 ;;
5024 darwin*)
5025
5026
5027 for ac_header in machine/endian.h sys/disk.h
5028 do
5029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 $as_echo_n "checking for $ac_header... " >&6; }
5033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034 $as_echo_n "(cached) " >&6
5035 fi
5036 ac_res=`eval 'as_val=${'$as_ac_Header'}
5037 $as_echo "$as_val"'`
5038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5039 $as_echo "$ac_res" >&6; }
5040 else
5041 # Is the header compilable?
5042 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5043 $as_echo_n "checking $ac_header usability... " >&6; }
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5051 #include <$ac_header>
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (ac_try="$ac_compile"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5060 $as_echo "$ac_try_echo") >&5
5061 (eval "$ac_compile") 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest.$ac_objext; then
5071 ac_header_compiler=yes
5072 else
5073 $as_echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 ac_header_compiler=no
5077 fi
5078
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5081 $as_echo "$ac_header_compiler" >&6; }
5082
5083 # Is the header present?
5084 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5085 $as_echo_n "checking $ac_header presence... " >&6; }
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <$ac_header>
5093 _ACEOF
5094 if { (ac_try="$ac_cpp conftest.$ac_ext"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 }; then
5111 ac_header_preproc=yes
5112 else
5113 $as_echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_preproc=no
5117 fi
5118
5119 rm -f conftest.err conftest.$ac_ext
5120 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5121 $as_echo "$ac_header_preproc" >&6; }
5122
5123 # So? What about this header?
5124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5125 yes:no: )
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5127 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5130 ac_header_preproc=yes
5131 ;;
5132 no:yes:* )
5133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5134 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5136 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5138 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5140 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5142 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5144 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5145
5146 ;;
5147 esac
5148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5149 $as_echo_n "checking for $ac_header... " >&6; }
5150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5151 $as_echo_n "(cached) " >&6
5152 else
5153 eval "$as_ac_Header=\$ac_header_preproc"
5154 fi
5155 ac_res=`eval 'as_val=${'$as_ac_Header'}
5156 $as_echo "$as_val"'`
5157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5158 $as_echo "$ac_res" >&6; }
5159
5160 fi
5161 as_val=`eval 'as_val=${'$as_ac_Header'}
5162 $as_echo "$as_val"'`
5163 if test "x$as_val" = x""yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5166 _ACEOF
5167
5168 else
5169 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5170 $as_echo "$as_me: error: bailing out" >&2;}
5171 { (exit 1); exit 1; }; }
5172 fi
5173
5174 done
5175 ;;
5176 esac
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5195 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5196 sys/types.h unistd.h
5197 do
5198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5201 $as_echo_n "checking for $ac_header... " >&6; }
5202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5203 $as_echo_n "(cached) " >&6
5204 fi
5205 ac_res=`eval 'as_val=${'$as_ac_Header'}
5206 $as_echo "$as_val"'`
5207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5208 $as_echo "$ac_res" >&6; }
5209 else
5210 # Is the header compilable?
5211 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5212 $as_echo_n "checking $ac_header usability... " >&6; }
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 $ac_includes_default
5220 #include <$ac_header>
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230 (eval "$ac_compile") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_objext; then
5240 ac_header_compiler=yes
5241 else
5242 $as_echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ac_header_compiler=no
5246 fi
5247
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 $as_echo "$ac_header_compiler" >&6; }
5251
5252 # Is the header present?
5253 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 $as_echo_n "checking $ac_header presence... " >&6; }
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 #include <$ac_header>
5262 _ACEOF
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5269 $as_echo "$ac_try_echo") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null && {
5277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 }; then
5280 ac_header_preproc=yes
5281 else
5282 $as_echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_header_preproc=no
5286 fi
5287
5288 rm -f conftest.err conftest.$ac_ext
5289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 $as_echo "$ac_header_preproc" >&6; }
5291
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5294 yes:no: )
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5299 ac_header_preproc=yes
5300 ;;
5301 no:yes:* )
5302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5303 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5305 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5307 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5309 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5311 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5313 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5314
5315 ;;
5316 esac
5317 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5318 $as_echo_n "checking for $ac_header... " >&6; }
5319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5320 $as_echo_n "(cached) " >&6
5321 else
5322 eval "$as_ac_Header=\$ac_header_preproc"
5323 fi
5324 ac_res=`eval 'as_val=${'$as_ac_Header'}
5325 $as_echo "$as_val"'`
5326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5327 $as_echo "$ac_res" >&6; }
5328
5329 fi
5330 as_val=`eval 'as_val=${'$as_ac_Header'}
5331 $as_echo "$as_val"'`
5332 if test "x$as_val" = x""yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5335 _ACEOF
5336
5337 else
5338 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5339 $as_echo "$as_me: error: bailing out" >&2;}
5340 { (exit 1); exit 1; }; }
5341 fi
5342
5343 done
5344
5345
5346
5347 for ac_header in termios.h sys/statvfs.h
5348 do
5349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5352 $as_echo_n "checking for $ac_header... " >&6; }
5353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354 $as_echo_n "(cached) " >&6
5355 fi
5356 ac_res=`eval 'as_val=${'$as_ac_Header'}
5357 $as_echo "$as_val"'`
5358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5359 $as_echo "$ac_res" >&6; }
5360 else
5361 # Is the header compilable?
5362 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5363 $as_echo_n "checking $ac_header usability... " >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 $ac_includes_default
5371 #include <$ac_header>
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
5391 ac_header_compiler=yes
5392 else
5393 $as_echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_header_compiler=no
5397 fi
5398
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5401 $as_echo "$ac_header_compiler" >&6; }
5402
5403 # Is the header present?
5404 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5405 $as_echo_n "checking $ac_header presence... " >&6; }
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <$ac_header>
5413 _ACEOF
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5415 case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418 esac
5419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5420 $as_echo "$ac_try_echo") >&5
5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null && {
5428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 }; then
5431 ac_header_preproc=yes
5432 else
5433 $as_echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_header_preproc=no
5437 fi
5438
5439 rm -f conftest.err conftest.$ac_ext
5440 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5441 $as_echo "$ac_header_preproc" >&6; }
5442
5443 # So? What about this header?
5444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5445 yes:no: )
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5447 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5449 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5450 ac_header_preproc=yes
5451 ;;
5452 no:yes:* )
5453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5454 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5456 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5458 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5460 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5464 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5465
5466 ;;
5467 esac
5468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5469 $as_echo_n "checking for $ac_header... " >&6; }
5470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471 $as_echo_n "(cached) " >&6
5472 else
5473 eval "$as_ac_Header=\$ac_header_preproc"
5474 fi
5475 ac_res=`eval 'as_val=${'$as_ac_Header'}
5476 $as_echo "$as_val"'`
5477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5478 $as_echo "$ac_res" >&6; }
5479
5480 fi
5481 as_val=`eval 'as_val=${'$as_ac_Header'}
5482 $as_echo "$as_val"'`
5483 if test "x$as_val" = x""yes; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5486 _ACEOF
5487
5488 fi
5489
5490 done
5491
5492
5493 ################################################################################
5494 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5495 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5496 if test "${ac_cv_c_const+set}" = set; then
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505
5506 int
5507 main ()
5508 {
5509 /* FIXME: Include the comments suggested by Paul. */
5510 #ifndef __cplusplus
5511 /* Ultrix mips cc rejects this. */
5512 typedef int charset[2];
5513 const charset cs;
5514 /* SunOS 4.1.1 cc rejects this. */
5515 char const *const *pcpcc;
5516 char **ppc;
5517 /* NEC SVR4.0.2 mips cc rejects this. */
5518 struct point {int x, y;};
5519 static struct point const zero = {0,0};
5520 /* AIX XL C 1.02.0.0 rejects this.
5521 It does not let you subtract one const X* pointer from another in
5522 an arm of an if-expression whose if-part is not a constant
5523 expression */
5524 const char *g = "string";
5525 pcpcc = &g + (g ? g-g : 0);
5526 /* HPUX 7.0 cc rejects these. */
5527 ++pcpcc;
5528 ppc = (char**) pcpcc;
5529 pcpcc = (char const *const *) ppc;
5530 { /* SCO 3.2v4 cc rejects this. */
5531 char *t;
5532 char const *s = 0 ? (char *) 0 : (char const *) 0;
5533
5534 *t++ = 0;
5535 if (s) return 0;
5536 }
5537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5538 int x[] = {25, 17};
5539 const int *foo = &x[0];
5540 ++foo;
5541 }
5542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5543 typedef const int *iptr;
5544 iptr p = 0;
5545 ++p;
5546 }
5547 { /* AIX XL C 1.02.0.0 rejects this saying
5548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5549 struct s { int j; const int *ap[3]; };
5550 struct s *b; b->j = 5;
5551 }
5552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5553 const int foo = 10;
5554 if (!foo) return 0;
5555 }
5556 return !cs[0] && !zero.x;
5557 #endif
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570 $as_echo "$ac_try_echo") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && {
5578 test -z "$ac_c_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest.$ac_objext; then
5581 ac_cv_c_const=yes
5582 else
5583 $as_echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_cv_c_const=no
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5592 $as_echo "$ac_cv_c_const" >&6; }
5593 if test $ac_cv_c_const = no; then
5594
5595 cat >>confdefs.h <<\_ACEOF
5596 #define const /**/
5597 _ACEOF
5598
5599 fi
5600
5601 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5602 $as_echo_n "checking for inline... " >&6; }
5603 if test "${ac_cv_c_inline+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5605 else
5606 ac_cv_c_inline=no
5607 for ac_kw in inline __inline__ __inline; do
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #ifndef __cplusplus
5615 typedef int foo_t;
5616 static $ac_kw foo_t static_foo () {return 0; }
5617 $ac_kw foo_t foo () {return 0; }
5618 #endif
5619
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628 $as_echo "$ac_try_echo") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest.$ac_objext; then
5639 ac_cv_c_inline=$ac_kw
5640 else
5641 $as_echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644
5645 fi
5646
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 test "$ac_cv_c_inline" != no && break
5649 done
5650
5651 fi
5652 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5653 $as_echo "$ac_cv_c_inline" >&6; }
5654
5655
5656 case $ac_cv_c_inline in
5657 inline | yes) ;;
5658 *)
5659 case $ac_cv_c_inline in
5660 no) ac_val=;;
5661 *) ac_val=$ac_cv_c_inline;;
5662 esac
5663 cat >>confdefs.h <<_ACEOF
5664 #ifndef __cplusplus
5665 #define inline $ac_val
5666 #endif
5667 _ACEOF
5668 ;;
5669 esac
5670
5671 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5672 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5673 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5674 $as_echo_n "(cached) " >&6
5675 else
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 $ac_includes_default
5683 int
5684 main ()
5685 {
5686 static struct stat ac_aggr;
5687 if (ac_aggr.st_rdev)
5688 return 0;
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 rm -f conftest.$ac_objext
5694 if { (ac_try="$ac_compile"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5700 $as_echo "$ac_try_echo") >&5
5701 (eval "$ac_compile") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && {
5708 test -z "$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 } && test -s conftest.$ac_objext; then
5711 ac_cv_member_struct_stat_st_rdev=yes
5712 else
5713 $as_echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5723 int
5724 main ()
5725 {
5726 static struct stat ac_aggr;
5727 if (sizeof ac_aggr.st_rdev)
5728 return 0;
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (ac_try="$ac_compile"
5735 case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738 esac
5739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5740 $as_echo "$ac_try_echo") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_member_struct_stat_st_rdev=yes
5752 else
5753 $as_echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_member_struct_stat_st_rdev=no
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 fi
5764 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5765 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5766 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5767
5768 cat >>confdefs.h <<_ACEOF
5769 #define HAVE_STRUCT_STAT_ST_RDEV 1
5770 _ACEOF
5771
5772
5773 fi
5774
5775 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5776 $as_echo_n "checking for off_t... " >&6; }
5777 if test "${ac_cv_type_off_t+set}" = set; then
5778 $as_echo_n "(cached) " >&6
5779 else
5780 ac_cv_type_off_t=no
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5788 int
5789 main ()
5790 {
5791 if (sizeof (off_t))
5792 return 0;
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5822 int
5823 main ()
5824 {
5825 if (sizeof ((off_t)))
5826 return 0;
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838 $as_echo "$ac_try_echo") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 :
5850 else
5851 $as_echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_cv_type_off_t=yes
5855 fi
5856
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 else
5859 $as_echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862
5863 fi
5864
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5868 $as_echo "$ac_cv_type_off_t" >&6; }
5869 if test "x$ac_cv_type_off_t" = x""yes; then
5870 :
5871 else
5872
5873 cat >>confdefs.h <<_ACEOF
5874 #define off_t long int
5875 _ACEOF
5876
5877 fi
5878
5879 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5880 $as_echo_n "checking for pid_t... " >&6; }
5881 if test "${ac_cv_type_pid_t+set}" = set; then
5882 $as_echo_n "(cached) " >&6
5883 else
5884 ac_cv_type_pid_t=no
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 $ac_includes_default
5892 int
5893 main ()
5894 {
5895 if (sizeof (pid_t))
5896 return 0;
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 $ac_includes_default
5926 int
5927 main ()
5928 {
5929 if (sizeof ((pid_t)))
5930 return 0;
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942 $as_echo "$ac_try_echo") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && {
5950 test -z "$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 } && test -s conftest.$ac_objext; then
5953 :
5954 else
5955 $as_echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_cv_type_pid_t=yes
5959 fi
5960
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 else
5963 $as_echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5972 $as_echo "$ac_cv_type_pid_t" >&6; }
5973 if test "x$ac_cv_type_pid_t" = x""yes; then
5974 :
5975 else
5976
5977 cat >>confdefs.h <<_ACEOF
5978 #define pid_t int
5979 _ACEOF
5980
5981 fi
5982
5983 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5984 $as_echo_n "checking return type of signal handlers... " >&6; }
5985 if test "${ac_cv_type_signal+set}" = set; then
5986 $as_echo_n "(cached) " >&6
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <sys/types.h>
5995 #include <signal.h>
5996
5997 int
5998 main ()
5999 {
6000 return *(signal (0, 0)) (0) == 1;
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6012 $as_echo "$ac_try_echo") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 ac_cv_type_signal=int
6024 else
6025 $as_echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ac_cv_type_signal=void
6029 fi
6030
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 fi
6033 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6034 $as_echo "$ac_cv_type_signal" >&6; }
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define RETSIGTYPE $ac_cv_type_signal
6038 _ACEOF
6039
6040
6041 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6042 $as_echo_n "checking for size_t... " >&6; }
6043 if test "${ac_cv_type_size_t+set}" = set; then
6044 $as_echo_n "(cached) " >&6
6045 else
6046 ac_cv_type_size_t=no
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6054 int
6055 main ()
6056 {
6057 if (sizeof (size_t))
6058 return 0;
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6065 case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
6081 cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 $ac_includes_default
6088 int
6089 main ()
6090 {
6091 if (sizeof ((size_t)))
6092 return 0;
6093 ;
6094 return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
6115 :
6116 else
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ac_cv_type_size_t=yes
6121 fi
6122
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 else
6125 $as_echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 fi
6133 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6134 $as_echo "$ac_cv_type_size_t" >&6; }
6135 if test "x$ac_cv_type_size_t" = x""yes; then
6136 :
6137 else
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define size_t unsigned int
6141 _ACEOF
6142
6143 fi
6144
6145 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6146 $as_echo_n "checking for mode_t... " >&6; }
6147 if test "${ac_cv_type_mode_t+set}" = set; then
6148 $as_echo_n "(cached) " >&6
6149 else
6150 ac_cv_type_mode_t=no
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 $ac_includes_default
6158 int
6159 main ()
6160 {
6161 if (sizeof (mode_t))
6162 return 0;
6163 ;
6164 return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6174 $as_echo "$ac_try_echo") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } && {
6182 test -z "$ac_c_werror_flag" ||
6183 test ! -s conftest.err
6184 } && test -s conftest.$ac_objext; then
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 int
6193 main ()
6194 {
6195 if (sizeof ((mode_t)))
6196 return 0;
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219 :
6220 else
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 ac_cv_type_mode_t=yes
6225 fi
6226
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 else
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6238 $as_echo "$ac_cv_type_mode_t" >&6; }
6239 if test "x$ac_cv_type_mode_t" = x""yes; then
6240 :
6241 else
6242
6243 cat >>confdefs.h <<_ACEOF
6244 #define mode_t int
6245 _ACEOF
6246
6247 fi
6248
6249 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6250 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6251 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6252 $as_echo_n "(cached) " >&6
6253 else
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 $ac_includes_default
6261 int
6262 main ()
6263 {
6264 static struct stat ac_aggr;
6265 if (ac_aggr.st_rdev)
6266 return 0;
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (ac_try="$ac_compile"
6273 case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276 esac
6277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278 $as_echo "$ac_try_echo") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.$ac_objext; then
6289 ac_cv_member_struct_stat_st_rdev=yes
6290 else
6291 $as_echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6301 int
6302 main ()
6303 {
6304 static struct stat ac_aggr;
6305 if (sizeof ac_aggr.st_rdev)
6306 return 0;
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319 (eval "$ac_compile") 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest.$ac_objext; then
6329 ac_cv_member_struct_stat_st_rdev=yes
6330 else
6331 $as_echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 ac_cv_member_struct_stat_st_rdev=no
6335 fi
6336
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 fi
6339
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 fi
6342 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6343 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6344 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6345
6346 cat >>confdefs.h <<_ACEOF
6347 #define HAVE_STRUCT_STAT_ST_RDEV 1
6348 _ACEOF
6349
6350
6351 fi
6352
6353 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6354 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6355 if test "${ac_cv_struct_tm+set}" = set; then
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 #include <sys/types.h>
6365 #include <time.h>
6366
6367 int
6368 main ()
6369 {
6370 struct tm tm;
6371 int *p = &tm.tm_sec;
6372 return !p;
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6395 ac_cv_struct_tm=time.h
6396 else
6397 $as_echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 ac_cv_struct_tm=sys/time.h
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 fi
6405 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6406 $as_echo "$ac_cv_struct_tm" >&6; }
6407 if test $ac_cv_struct_tm = sys/time.h; then
6408
6409 cat >>confdefs.h <<\_ACEOF
6410 #define TM_IN_SYS_TIME 1
6411 _ACEOF
6412
6413 fi
6414
6415
6416 ################################################################################
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6435 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6436 uname
6437 do
6438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6439 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6440 $as_echo_n "checking for $ac_func... " >&6; }
6441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6452 #define $ac_func innocuous_$ac_func
6453
6454 /* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char $ac_func (); below.
6456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457 <limits.h> exists even on freestanding compilers. */
6458
6459 #ifdef __STDC__
6460 # include <limits.h>
6461 #else
6462 # include <assert.h>
6463 #endif
6464
6465 #undef $ac_func
6466
6467 /* Override any GCC internal prototype to avoid an error.
6468 Use char because int might match the return type of a GCC
6469 builtin and then its argument prototype would still apply. */
6470 #ifdef __cplusplus
6471 extern "C"
6472 #endif
6473 char $ac_func ();
6474 /* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477 #if defined __stub_$ac_func || defined __stub___$ac_func
6478 choke me
6479 #endif
6480
6481 int
6482 main ()
6483 {
6484 return $ac_func ();
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (ac_try="$ac_link"
6491 case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6496 $as_echo "$ac_try_echo") >&5
6497 (eval "$ac_link") 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest$ac_exeext && {
6507 test "$cross_compiling" = yes ||
6508 $as_test_x conftest$ac_exeext
6509 }; then
6510 eval "$as_ac_var=yes"
6511 else
6512 $as_echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 eval "$as_ac_var=no"
6516 fi
6517
6518 rm -rf conftest.dSYM
6519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6520 conftest$ac_exeext conftest.$ac_ext
6521 fi
6522 ac_res=`eval 'as_val=${'$as_ac_var'}
6523 $as_echo "$as_val"'`
6524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6525 $as_echo "$ac_res" >&6; }
6526 as_val=`eval 'as_val=${'$as_ac_var'}
6527 $as_echo "$as_val"'`
6528 if test "x$as_val" = x""yes; then
6529 cat >>confdefs.h <<_ACEOF
6530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6531 _ACEOF
6532
6533 else
6534 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6535 $as_echo "$as_me: error: bailing out" >&2;}
6536 { (exit 1); exit 1; }; }
6537 fi
6538 done
6539
6540
6541 for ac_func in siginterrupt
6542 do
6543 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6544 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6545 $as_echo_n "checking for $ac_func... " >&6; }
6546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6547 $as_echo_n "(cached) " >&6
6548 else
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6557 #define $ac_func innocuous_$ac_func
6558
6559 /* System header to define __stub macros and hopefully few prototypes,
6560 which can conflict with char $ac_func (); below.
6561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6562 <limits.h> exists even on freestanding compilers. */
6563
6564 #ifdef __STDC__
6565 # include <limits.h>
6566 #else
6567 # include <assert.h>
6568 #endif
6569
6570 #undef $ac_func
6571
6572 /* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575 #ifdef __cplusplus
6576 extern "C"
6577 #endif
6578 char $ac_func ();
6579 /* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582 #if defined __stub_$ac_func || defined __stub___$ac_func
6583 choke me
6584 #endif
6585
6586 int
6587 main ()
6588 {
6589 return $ac_func ();
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (ac_try="$ac_link"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest$ac_exeext && {
6612 test "$cross_compiling" = yes ||
6613 $as_test_x conftest$ac_exeext
6614 }; then
6615 eval "$as_ac_var=yes"
6616 else
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 eval "$as_ac_var=no"
6621 fi
6622
6623 rm -rf conftest.dSYM
6624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6625 conftest$ac_exeext conftest.$ac_ext
6626 fi
6627 ac_res=`eval 'as_val=${'$as_ac_var'}
6628 $as_echo "$as_val"'`
6629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6630 $as_echo "$ac_res" >&6; }
6631 as_val=`eval 'as_val=${'$as_ac_var'}
6632 $as_echo "$as_val"'`
6633 if test "x$as_val" = x""yes; then
6634 cat >>confdefs.h <<_ACEOF
6635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6636 _ACEOF
6637
6638 fi
6639 done
6640
6641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6642 # for constant arguments. Useless!
6643 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6644 $as_echo_n "checking for working alloca.h... " >&6; }
6645 if test "${ac_cv_working_alloca_h+set}" = set; then
6646 $as_echo_n "(cached) " >&6
6647 else
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <alloca.h>
6655 int
6656 main ()
6657 {
6658 char *p = (char *) alloca (2 * sizeof (int));
6659 if (p) return 0;
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (ac_try="$ac_link"
6666 case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669 esac
6670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6671 $as_echo "$ac_try_echo") >&5
6672 (eval "$ac_link") 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest$ac_exeext && {
6682 test "$cross_compiling" = yes ||
6683 $as_test_x conftest$ac_exeext
6684 }; then
6685 ac_cv_working_alloca_h=yes
6686 else
6687 $as_echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690 ac_cv_working_alloca_h=no
6691 fi
6692
6693 rm -rf conftest.dSYM
6694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6695 conftest$ac_exeext conftest.$ac_ext
6696 fi
6697 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6698 $as_echo "$ac_cv_working_alloca_h" >&6; }
6699 if test $ac_cv_working_alloca_h = yes; then
6700
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_ALLOCA_H 1
6703 _ACEOF
6704
6705 fi
6706
6707 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6708 $as_echo_n "checking for alloca... " >&6; }
6709 if test "${ac_cv_func_alloca_works+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6711 else
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #ifdef __GNUC__
6719 # define alloca __builtin_alloca
6720 #else
6721 # ifdef _MSC_VER
6722 # include <malloc.h>
6723 # define alloca _alloca
6724 # else
6725 # ifdef HAVE_ALLOCA_H
6726 # include <alloca.h>
6727 # else
6728 # ifdef _AIX
6729 #pragma alloca
6730 # else
6731 # ifndef alloca /* predefined by HP cc +Olibcalls */
6732 char *alloca ();
6733 # endif
6734 # endif
6735 # endif
6736 # endif
6737 #endif
6738
6739 int
6740 main ()
6741 {
6742 char *p = (char *) alloca (1);
6743 if (p) return 0;
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (ac_try="$ac_link"
6750 case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753 esac
6754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6755 $as_echo "$ac_try_echo") >&5
6756 (eval "$ac_link") 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && {
6763 test -z "$ac_c_werror_flag" ||
6764 test ! -s conftest.err
6765 } && test -s conftest$ac_exeext && {
6766 test "$cross_compiling" = yes ||
6767 $as_test_x conftest$ac_exeext
6768 }; then
6769 ac_cv_func_alloca_works=yes
6770 else
6771 $as_echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_cv_func_alloca_works=no
6775 fi
6776
6777 rm -rf conftest.dSYM
6778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6779 conftest$ac_exeext conftest.$ac_ext
6780 fi
6781 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6782 $as_echo "$ac_cv_func_alloca_works" >&6; }
6783
6784 if test $ac_cv_func_alloca_works = yes; then
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_ALLOCA 1
6788 _ACEOF
6789
6790 else
6791 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6792 # that cause trouble. Some versions do not even contain alloca or
6793 # contain a buggy version. If you still want to use their alloca,
6794 # use ar to extract alloca.o from them instead of compiling alloca.c.
6795
6796 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6797
6798 cat >>confdefs.h <<\_ACEOF
6799 #define C_ALLOCA 1
6800 _ACEOF
6801
6802
6803 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6804 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6805 if test "${ac_cv_os_cray+set}" = set; then
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #if defined CRAY && ! defined CRAY2
6815 webecray
6816 #else
6817 wenotbecray
6818 #endif
6819
6820 _ACEOF
6821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6822 $EGREP "webecray" >/dev/null 2>&1; then
6823 ac_cv_os_cray=yes
6824 else
6825 ac_cv_os_cray=no
6826 fi
6827 rm -f conftest*
6828
6829 fi
6830 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6831 $as_echo "$ac_cv_os_cray" >&6; }
6832 if test $ac_cv_os_cray = yes; then
6833 for ac_func in _getb67 GETB67 getb67; do
6834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6835 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6836 $as_echo_n "checking for $ac_func... " >&6; }
6837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6838 $as_echo_n "(cached) " >&6
6839 else
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6848 #define $ac_func innocuous_$ac_func
6849
6850 /* System header to define __stub macros and hopefully few prototypes,
6851 which can conflict with char $ac_func (); below.
6852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6853 <limits.h> exists even on freestanding compilers. */
6854
6855 #ifdef __STDC__
6856 # include <limits.h>
6857 #else
6858 # include <assert.h>
6859 #endif
6860
6861 #undef $ac_func
6862
6863 /* Override any GCC internal prototype to avoid an error.
6864 Use char because int might match the return type of a GCC
6865 builtin and then its argument prototype would still apply. */
6866 #ifdef __cplusplus
6867 extern "C"
6868 #endif
6869 char $ac_func ();
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined __stub_$ac_func || defined __stub___$ac_func
6874 choke me
6875 #endif
6876
6877 int
6878 main ()
6879 {
6880 return $ac_func ();
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (ac_try="$ac_link"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6892 $as_echo "$ac_try_echo") >&5
6893 (eval "$ac_link") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext && {
6903 test "$cross_compiling" = yes ||
6904 $as_test_x conftest$ac_exeext
6905 }; then
6906 eval "$as_ac_var=yes"
6907 else
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 eval "$as_ac_var=no"
6912 fi
6913
6914 rm -rf conftest.dSYM
6915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6916 conftest$ac_exeext conftest.$ac_ext
6917 fi
6918 ac_res=`eval 'as_val=${'$as_ac_var'}
6919 $as_echo "$as_val"'`
6920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6921 $as_echo "$ac_res" >&6; }
6922 as_val=`eval 'as_val=${'$as_ac_var'}
6923 $as_echo "$as_val"'`
6924 if test "x$as_val" = x""yes; then
6925
6926 cat >>confdefs.h <<_ACEOF
6927 #define CRAY_STACKSEG_END $ac_func
6928 _ACEOF
6929
6930 break
6931 fi
6932
6933 done
6934 fi
6935
6936 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6937 $as_echo_n "checking stack direction for C alloca... " >&6; }
6938 if test "${ac_cv_c_stack_direction+set}" = set; then
6939 $as_echo_n "(cached) " >&6
6940 else
6941 if test "$cross_compiling" = yes; then
6942 ac_cv_c_stack_direction=0
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951 int
6952 find_stack_direction ()
6953 {
6954 static char *addr = 0;
6955 auto char dummy;
6956 if (addr == 0)
6957 {
6958 addr = &dummy;
6959 return find_stack_direction ();
6960 }
6961 else
6962 return (&dummy > addr) ? 1 : -1;
6963 }
6964
6965 int
6966 main ()
6967 {
6968 return find_stack_direction () < 0;
6969 }
6970 _ACEOF
6971 rm -f conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_link") 2>&5
6980 ac_status=$?
6981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6983 { (case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_try") 2>&5
6990 ac_status=$?
6991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_c_stack_direction=1
6994 else
6995 $as_echo "$as_me: program exited with status $ac_status" >&5
6996 $as_echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 ( exit $ac_status )
7000 ac_cv_c_stack_direction=-1
7001 fi
7002 rm -rf conftest.dSYM
7003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7004 fi
7005
7006
7007 fi
7008 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7009 $as_echo "$ac_cv_c_stack_direction" >&6; }
7010
7011 cat >>confdefs.h <<_ACEOF
7012 #define STACK_DIRECTION $ac_cv_c_stack_direction
7013 _ACEOF
7014
7015
7016 fi
7017
7018 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7019 $as_echo_n "checking whether closedir returns void... " >&6; }
7020 if test "${ac_cv_func_closedir_void+set}" = set; then
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test "$cross_compiling" = yes; then
7024 ac_cv_func_closedir_void=yes
7025 else
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 $ac_includes_default
7033 #include <$ac_header_dirent>
7034 #ifndef __cplusplus
7035 int closedir ();
7036 #endif
7037
7038 int
7039 main ()
7040 {
7041 return closedir (opendir (".")) != 0;
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest$ac_exeext
7047 if { (ac_try="$ac_link"
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_link") 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7058 { (case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7063 $as_echo "$ac_try_echo") >&5
7064 (eval "$ac_try") 2>&5
7065 ac_status=$?
7066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_func_closedir_void=no
7069 else
7070 $as_echo "$as_me: program exited with status $ac_status" >&5
7071 $as_echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074 ( exit $ac_status )
7075 ac_cv_func_closedir_void=yes
7076 fi
7077 rm -rf conftest.dSYM
7078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 fi
7080
7081
7082 fi
7083 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7084 $as_echo "$ac_cv_func_closedir_void" >&6; }
7085 if test $ac_cv_func_closedir_void = yes; then
7086
7087 cat >>confdefs.h <<\_ACEOF
7088 #define CLOSEDIR_VOID 1
7089 _ACEOF
7090
7091 fi
7092
7093
7094 for ac_header in vfork.h
7095 do
7096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 $as_echo_n "checking for $ac_header... " >&6; }
7100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7101 $as_echo_n "(cached) " >&6
7102 fi
7103 ac_res=`eval 'as_val=${'$as_ac_Header'}
7104 $as_echo "$as_val"'`
7105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7106 $as_echo "$ac_res" >&6; }
7107 else
7108 # Is the header compilable?
7109 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7110 $as_echo_n "checking $ac_header usability... " >&6; }
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 $ac_includes_default
7118 #include <$ac_header>
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_header_compiler=yes
7139 else
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_header_compiler=no
7144 fi
7145
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7148 $as_echo "$ac_header_compiler" >&6; }
7149
7150 # Is the header present?
7151 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7152 $as_echo_n "checking $ac_header presence... " >&6; }
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <$ac_header>
7160 _ACEOF
7161 if { (ac_try="$ac_cpp conftest.$ac_ext"
7162 case "(($ac_try" in
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7165 esac
7166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7167 $as_echo "$ac_try_echo") >&5
7168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } >/dev/null && {
7175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 }; then
7178 ac_header_preproc=yes
7179 else
7180 $as_echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ac_header_preproc=no
7184 fi
7185
7186 rm -f conftest.err conftest.$ac_ext
7187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7188 $as_echo "$ac_header_preproc" >&6; }
7189
7190 # So? What about this header?
7191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7192 yes:no: )
7193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7194 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7197 ac_header_preproc=yes
7198 ;;
7199 no:yes:* )
7200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7201 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7203 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7205 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7207 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7209 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7211 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7212
7213 ;;
7214 esac
7215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7216 $as_echo_n "checking for $ac_header... " >&6; }
7217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7218 $as_echo_n "(cached) " >&6
7219 else
7220 eval "$as_ac_Header=\$ac_header_preproc"
7221 fi
7222 ac_res=`eval 'as_val=${'$as_ac_Header'}
7223 $as_echo "$as_val"'`
7224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7225 $as_echo "$ac_res" >&6; }
7226
7227 fi
7228 as_val=`eval 'as_val=${'$as_ac_Header'}
7229 $as_echo "$as_val"'`
7230 if test "x$as_val" = x""yes; then
7231 cat >>confdefs.h <<_ACEOF
7232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7233 _ACEOF
7234
7235 fi
7236
7237 done
7238
7239
7240
7241 for ac_func in fork vfork
7242 do
7243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7244 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7245 $as_echo_n "checking for $ac_func... " >&6; }
7246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7247 $as_echo_n "(cached) " >&6
7248 else
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7257 #define $ac_func innocuous_$ac_func
7258
7259 /* System header to define __stub macros and hopefully few prototypes,
7260 which can conflict with char $ac_func (); below.
7261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7262 <limits.h> exists even on freestanding compilers. */
7263
7264 #ifdef __STDC__
7265 # include <limits.h>
7266 #else
7267 # include <assert.h>
7268 #endif
7269
7270 #undef $ac_func
7271
7272 /* Override any GCC internal prototype to avoid an error.
7273 Use char because int might match the return type of a GCC
7274 builtin and then its argument prototype would still apply. */
7275 #ifdef __cplusplus
7276 extern "C"
7277 #endif
7278 char $ac_func ();
7279 /* The GNU C library defines this for functions which it implements
7280 to always fail with ENOSYS. Some functions are actually named
7281 something starting with __ and the normal name is an alias. */
7282 #if defined __stub_$ac_func || defined __stub___$ac_func
7283 choke me
7284 #endif
7285
7286 int
7287 main ()
7288 {
7289 return $ac_func ();
7290 ;
7291 return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (ac_try="$ac_link"
7296 case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299 esac
7300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7301 $as_echo "$ac_try_echo") >&5
7302 (eval "$ac_link") 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest$ac_exeext && {
7312 test "$cross_compiling" = yes ||
7313 $as_test_x conftest$ac_exeext
7314 }; then
7315 eval "$as_ac_var=yes"
7316 else
7317 $as_echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 eval "$as_ac_var=no"
7321 fi
7322
7323 rm -rf conftest.dSYM
7324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7325 conftest$ac_exeext conftest.$ac_ext
7326 fi
7327 ac_res=`eval 'as_val=${'$as_ac_var'}
7328 $as_echo "$as_val"'`
7329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7330 $as_echo "$ac_res" >&6; }
7331 as_val=`eval 'as_val=${'$as_ac_var'}
7332 $as_echo "$as_val"'`
7333 if test "x$as_val" = x""yes; then
7334 cat >>confdefs.h <<_ACEOF
7335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 _ACEOF
7337
7338 fi
7339 done
7340
7341 if test "x$ac_cv_func_fork" = xyes; then
7342 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7343 $as_echo_n "checking for working fork... " >&6; }
7344 if test "${ac_cv_func_fork_works+set}" = set; then
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test "$cross_compiling" = yes; then
7348 ac_cv_func_fork_works=cross
7349 else
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 $ac_includes_default
7357 int
7358 main ()
7359 {
7360
7361 /* By Ruediger Kuhlmann. */
7362 return fork () < 0;
7363
7364 ;
7365 return 0;
7366 }
7367 _ACEOF
7368 rm -f conftest$ac_exeext
7369 if { (ac_try="$ac_link"
7370 case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_link") 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7380 { (case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383 esac
7384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7385 $as_echo "$ac_try_echo") >&5
7386 (eval "$ac_try") 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_cv_func_fork_works=yes
7391 else
7392 $as_echo "$as_me: program exited with status $ac_status" >&5
7393 $as_echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 ( exit $ac_status )
7397 ac_cv_func_fork_works=no
7398 fi
7399 rm -rf conftest.dSYM
7400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7401 fi
7402
7403
7404 fi
7405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7406 $as_echo "$ac_cv_func_fork_works" >&6; }
7407
7408 else
7409 ac_cv_func_fork_works=$ac_cv_func_fork
7410 fi
7411 if test "x$ac_cv_func_fork_works" = xcross; then
7412 case $host in
7413 *-*-amigaos* | *-*-msdosdjgpp*)
7414 # Override, as these systems have only a dummy fork() stub
7415 ac_cv_func_fork_works=no
7416 ;;
7417 *)
7418 ac_cv_func_fork_works=yes
7419 ;;
7420 esac
7421 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7422 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7423 fi
7424 ac_cv_func_vfork_works=$ac_cv_func_vfork
7425 if test "x$ac_cv_func_vfork" = xyes; then
7426 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7427 $as_echo_n "checking for working vfork... " >&6; }
7428 if test "${ac_cv_func_vfork_works+set}" = set; then
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test "$cross_compiling" = yes; then
7432 ac_cv_func_vfork_works=cross
7433 else
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 /* Thanks to Paul Eggert for this test. */
7441 $ac_includes_default
7442 #include <sys/wait.h>
7443 #ifdef HAVE_VFORK_H
7444 # include <vfork.h>
7445 #endif
7446 /* On some sparc systems, changes by the child to local and incoming
7447 argument registers are propagated back to the parent. The compiler
7448 is told about this with #include <vfork.h>, but some compilers
7449 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7450 static variable whose address is put into a register that is
7451 clobbered by the vfork. */
7452 static void
7453 #ifdef __cplusplus
7454 sparc_address_test (int arg)
7455 # else
7456 sparc_address_test (arg) int arg;
7457 #endif
7458 {
7459 static pid_t child;
7460 if (!child) {
7461 child = vfork ();
7462 if (child < 0) {
7463 perror ("vfork");
7464 _exit(2);
7465 }
7466 if (!child) {
7467 arg = getpid();
7468 write(-1, "", 0);
7469 _exit (arg);
7470 }
7471 }
7472 }
7473
7474 int
7475 main ()
7476 {
7477 pid_t parent = getpid ();
7478 pid_t child;
7479
7480 sparc_address_test (0);
7481
7482 child = vfork ();
7483
7484 if (child == 0) {
7485 /* Here is another test for sparc vfork register problems. This
7486 test uses lots of local variables, at least as many local
7487 variables as main has allocated so far including compiler
7488 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7489 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7490 reuse the register of parent for one of the local variables,
7491 since it will think that parent can't possibly be used any more
7492 in this routine. Assigning to the local variable will thus
7493 munge parent in the parent process. */
7494 pid_t
7495 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7496 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7497 /* Convince the compiler that p..p7 are live; otherwise, it might
7498 use the same hardware register for all 8 local variables. */
7499 if (p != p1 || p != p2 || p != p3 || p != p4
7500 || p != p5 || p != p6 || p != p7)
7501 _exit(1);
7502
7503 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7504 from child file descriptors. If the child closes a descriptor
7505 before it execs or exits, this munges the parent's descriptor
7506 as well. Test for this by closing stdout in the child. */
7507 _exit(close(fileno(stdout)) != 0);
7508 } else {
7509 int status;
7510 struct stat st;
7511
7512 while (wait(&status) != child)
7513 ;
7514 return (
7515 /* Was there some problem with vforking? */
7516 child < 0
7517
7518 /* Did the child fail? (This shouldn't happen.) */
7519 || status
7520
7521 /* Did the vfork/compiler bug occur? */
7522 || parent != getpid()
7523
7524 /* Did the file descriptor bug occur? */
7525 || fstat(fileno(stdout), &st) != 0
7526 );
7527 }
7528 }
7529 _ACEOF
7530 rm -f conftest$ac_exeext
7531 if { (ac_try="$ac_link"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537 $as_echo "$ac_try_echo") >&5
7538 (eval "$ac_link") 2>&5
7539 ac_status=$?
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7542 { (case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_try") 2>&5
7549 ac_status=$?
7550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_func_vfork_works=yes
7553 else
7554 $as_echo "$as_me: program exited with status $ac_status" >&5
7555 $as_echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ( exit $ac_status )
7559 ac_cv_func_vfork_works=no
7560 fi
7561 rm -rf conftest.dSYM
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7563 fi
7564
7565
7566 fi
7567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7568 $as_echo "$ac_cv_func_vfork_works" >&6; }
7569
7570 fi;
7571 if test "x$ac_cv_func_fork_works" = xcross; then
7572 ac_cv_func_vfork_works=$ac_cv_func_vfork
7573 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7574 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7575 fi
7576
7577 if test "x$ac_cv_func_vfork_works" = xyes; then
7578
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_WORKING_VFORK 1
7581 _ACEOF
7582
7583 else
7584
7585 cat >>confdefs.h <<\_ACEOF
7586 #define vfork fork
7587 _ACEOF
7588
7589 fi
7590 if test "x$ac_cv_func_fork_works" = xyes; then
7591
7592 cat >>confdefs.h <<\_ACEOF
7593 #define HAVE_WORKING_FORK 1
7594 _ACEOF
7595
7596 fi
7597
7598 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7599 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7600 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7601 $as_echo_n "(cached) " >&6
7602 else
7603 rm -f conftest.sym conftest.file
7604 echo >conftest.file
7605 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7606 if test "$cross_compiling" = yes; then
7607 ac_cv_func_lstat_dereferences_slashed_symlink=no
7608 else
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7616 int
7617 main ()
7618 {
7619 struct stat sbuf;
7620 /* Linux will dereference the symlink and fail.
7621 That is better in the sense that it means we will not
7622 have to compile and use the lstat wrapper. */
7623 return lstat ("conftest.sym/", &sbuf) == 0;
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 rm -f conftest$ac_exeext
7629 if { (ac_try="$ac_link"
7630 case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633 esac
7634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7635 $as_echo "$ac_try_echo") >&5
7636 (eval "$ac_link") 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7640 { (case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645 $as_echo "$ac_try_echo") >&5
7646 (eval "$ac_try") 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7651 else
7652 $as_echo "$as_me: program exited with status $ac_status" >&5
7653 $as_echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656 ( exit $ac_status )
7657 ac_cv_func_lstat_dereferences_slashed_symlink=no
7658 fi
7659 rm -rf conftest.dSYM
7660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7661 fi
7662
7663
7664 else
7665 # If the `ln -s' command failed, then we probably don't even
7666 # have an lstat function.
7667 ac_cv_func_lstat_dereferences_slashed_symlink=no
7668 fi
7669 rm -f conftest.sym conftest.file
7670
7671 fi
7672 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7673 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7674
7675 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7679 _ACEOF
7680
7681
7682 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7683 case " $LIBOBJS " in
7684 *" lstat.$ac_objext "* ) ;;
7685 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7686 ;;
7687 esac
7688
7689 fi
7690
7691 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7692 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7693 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7694 $as_echo_n "(cached) " >&6
7695 else
7696 if test "$cross_compiling" = yes; then
7697 ac_cv_func_lstat_empty_string_bug=yes
7698 else
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7706 int
7707 main ()
7708 {
7709 struct stat sbuf;
7710 return lstat ("", &sbuf) == 0;
7711 ;
7712 return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest$ac_exeext
7716 if { (ac_try="$ac_link"
7717 case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720 esac
7721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7722 $as_echo "$ac_try_echo") >&5
7723 (eval "$ac_link") 2>&5
7724 ac_status=$?
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7727 { (case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733 (eval "$ac_try") 2>&5
7734 ac_status=$?
7735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_cv_func_lstat_empty_string_bug=no
7738 else
7739 $as_echo "$as_me: program exited with status $ac_status" >&5
7740 $as_echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ( exit $ac_status )
7744 ac_cv_func_lstat_empty_string_bug=yes
7745 fi
7746 rm -rf conftest.dSYM
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7748 fi
7749
7750
7751 fi
7752 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7753 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7754 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7755 case " $LIBOBJS " in
7756 *" lstat.$ac_objext "* ) ;;
7757 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7758 ;;
7759 esac
7760
7761
7762 cat >>confdefs.h <<_ACEOF
7763 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7764 _ACEOF
7765
7766 fi
7767
7768
7769 for ac_header in stdlib.h
7770 do
7771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7774 $as_echo_n "checking for $ac_header... " >&6; }
7775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7776 $as_echo_n "(cached) " >&6
7777 fi
7778 ac_res=`eval 'as_val=${'$as_ac_Header'}
7779 $as_echo "$as_val"'`
7780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7781 $as_echo "$ac_res" >&6; }
7782 else
7783 # Is the header compilable?
7784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7785 $as_echo_n "checking $ac_header usability... " >&6; }
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 $ac_includes_default
7793 #include <$ac_header>
7794 _ACEOF
7795 rm -f conftest.$ac_objext
7796 if { (ac_try="$ac_compile"
7797 case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800 esac
7801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 ac_header_compiler=yes
7814 else
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 ac_header_compiler=no
7819 fi
7820
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823 $as_echo "$ac_header_compiler" >&6; }
7824
7825 # Is the header present?
7826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827 $as_echo_n "checking $ac_header presence... " >&6; }
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <$ac_header>
7835 _ACEOF
7836 if { (ac_try="$ac_cpp conftest.$ac_ext"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842 $as_echo "$ac_try_echo") >&5
7843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } >/dev/null && {
7850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 }; then
7853 ac_header_preproc=yes
7854 else
7855 $as_echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 ac_header_preproc=no
7859 fi
7860
7861 rm -f conftest.err conftest.$ac_ext
7862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863 $as_echo "$ac_header_preproc" >&6; }
7864
7865 # So? What about this header?
7866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7867 yes:no: )
7868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7872 ac_header_preproc=yes
7873 ;;
7874 no:yes:* )
7875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7878 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7882 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7887
7888 ;;
7889 esac
7890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7891 $as_echo_n "checking for $ac_header... " >&6; }
7892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7893 $as_echo_n "(cached) " >&6
7894 else
7895 eval "$as_ac_Header=\$ac_header_preproc"
7896 fi
7897 ac_res=`eval 'as_val=${'$as_ac_Header'}
7898 $as_echo "$as_val"'`
7899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7900 $as_echo "$ac_res" >&6; }
7901
7902 fi
7903 as_val=`eval 'as_val=${'$as_ac_Header'}
7904 $as_echo "$as_val"'`
7905 if test "x$as_val" = x""yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908 _ACEOF
7909
7910 fi
7911
7912 done
7913
7914 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7915 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7916 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test "$cross_compiling" = yes; then
7920 ac_cv_func_malloc_0_nonnull=no
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7929 # include <stdlib.h>
7930 #else
7931 char *malloc ();
7932 #endif
7933
7934 int
7935 main ()
7936 {
7937 return ! malloc (0);
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_link") 2>&5
7951 ac_status=$?
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_try") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_malloc_0_nonnull=yes
7965 else
7966 $as_echo "$as_me: program exited with status $ac_status" >&5
7967 $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ( exit $ac_status )
7971 ac_cv_func_malloc_0_nonnull=no
7972 fi
7973 rm -rf conftest.dSYM
7974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975 fi
7976
7977
7978 fi
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7980 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7981 if test $ac_cv_func_malloc_0_nonnull = yes; then
7982
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_MALLOC 1
7985 _ACEOF
7986
7987 else
7988 cat >>confdefs.h <<\_ACEOF
7989 #define HAVE_MALLOC 0
7990 _ACEOF
7991
7992 case " $LIBOBJS " in
7993 *" malloc.$ac_objext "* ) ;;
7994 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7995 ;;
7996 esac
7997
7998
7999 cat >>confdefs.h <<\_ACEOF
8000 #define malloc rpl_malloc
8001 _ACEOF
8002
8003 fi
8004
8005
8006
8007 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8008 $as_echo_n "checking for working memcmp... " >&6; }
8009 if test "${ac_cv_func_memcmp_working+set}" = set; then
8010 $as_echo_n "(cached) " >&6
8011 else
8012 if test "$cross_compiling" = yes; then
8013 ac_cv_func_memcmp_working=no
8014 else
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8022 int
8023 main ()
8024 {
8025
8026 /* Some versions of memcmp are not 8-bit clean. */
8027 char c0 = '\100', c1 = '\200', c2 = '\201';
8028 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8029 return 1;
8030
8031 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8032 or more and with at least one buffer not starting on a 4-byte boundary.
8033 William Lewis provided this test program. */
8034 {
8035 char foo[21];
8036 char bar[21];
8037 int i;
8038 for (i = 0; i < 4; i++)
8039 {
8040 char *a = foo + i;
8041 char *b = bar + i;
8042 strcpy (a, "--------01111111");
8043 strcpy (b, "--------10000000");
8044 if (memcmp (a, b, 16) >= 0)
8045 return 1;
8046 }
8047 return 0;
8048 }
8049
8050 ;
8051 return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest$ac_exeext
8055 if { (ac_try="$ac_link"
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_link") 2>&5
8063 ac_status=$?
8064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8066 { (case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069 esac
8070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8071 $as_echo "$ac_try_echo") >&5
8072 (eval "$ac_try") 2>&5
8073 ac_status=$?
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_func_memcmp_working=yes
8077 else
8078 $as_echo "$as_me: program exited with status $ac_status" >&5
8079 $as_echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ( exit $ac_status )
8083 ac_cv_func_memcmp_working=no
8084 fi
8085 rm -rf conftest.dSYM
8086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8087 fi
8088
8089
8090 fi
8091 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8092 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8093 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8094 *" memcmp.$ac_objext "* ) ;;
8095 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8096 ;;
8097 esac
8098
8099
8100
8101
8102 for ac_header in stdlib.h unistd.h
8103 do
8104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 $as_echo_n "checking for $ac_header... " >&6; }
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 $as_echo_n "(cached) " >&6
8110 fi
8111 ac_res=`eval 'as_val=${'$as_ac_Header'}
8112 $as_echo "$as_val"'`
8113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8114 $as_echo "$ac_res" >&6; }
8115 else
8116 # Is the header compilable?
8117 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 $as_echo_n "checking $ac_header usability... " >&6; }
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #include <$ac_header>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (ac_try="$ac_compile"
8130 case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8135 $as_echo "$ac_try_echo") >&5
8136 (eval "$ac_compile") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
8146 ac_header_compiler=yes
8147 else
8148 $as_echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_header_compiler=no
8152 fi
8153
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 $as_echo "$ac_header_compiler" >&6; }
8157
8158 # Is the header present?
8159 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 $as_echo_n "checking $ac_header presence... " >&6; }
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 #include <$ac_header>
8168 _ACEOF
8169 if { (ac_try="$ac_cpp conftest.$ac_ext"
8170 case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175 $as_echo "$ac_try_echo") >&5
8176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } >/dev/null && {
8183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 }; then
8186 ac_header_preproc=yes
8187 else
8188 $as_echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ac_header_preproc=no
8192 fi
8193
8194 rm -f conftest.err conftest.$ac_ext
8195 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196 $as_echo "$ac_header_preproc" >&6; }
8197
8198 # So? What about this header?
8199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 yes:no: )
8201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8205 ac_header_preproc=yes
8206 ;;
8207 no:yes:* )
8208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8209 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8211 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8213 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8215 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8219 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8220
8221 ;;
8222 esac
8223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 $as_echo_n "checking for $ac_header... " >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226 $as_echo_n "(cached) " >&6
8227 else
8228 eval "$as_ac_Header=\$ac_header_preproc"
8229 fi
8230 ac_res=`eval 'as_val=${'$as_ac_Header'}
8231 $as_echo "$as_val"'`
8232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8233 $as_echo "$ac_res" >&6; }
8234
8235 fi
8236 as_val=`eval 'as_val=${'$as_ac_Header'}
8237 $as_echo "$as_val"'`
8238 if test "x$as_val" = x""yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247
8248 for ac_func in getpagesize
8249 do
8250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8252 $as_echo_n "checking for $ac_func... " >&6; }
8253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8254 $as_echo_n "(cached) " >&6
8255 else
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264 #define $ac_func innocuous_$ac_func
8265
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char $ac_func (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8270
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276
8277 #undef $ac_func
8278
8279 /* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 char $ac_func ();
8286 /* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289 #if defined __stub_$ac_func || defined __stub___$ac_func
8290 choke me
8291 #endif
8292
8293 int
8294 main ()
8295 {
8296 return $ac_func ();
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8308 $as_echo "$ac_try_echo") >&5
8309 (eval "$ac_link") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext && {
8319 test "$cross_compiling" = yes ||
8320 $as_test_x conftest$ac_exeext
8321 }; then
8322 eval "$as_ac_var=yes"
8323 else
8324 $as_echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 eval "$as_ac_var=no"
8328 fi
8329
8330 rm -rf conftest.dSYM
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8333 fi
8334 ac_res=`eval 'as_val=${'$as_ac_var'}
8335 $as_echo "$as_val"'`
8336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8337 $as_echo "$ac_res" >&6; }
8338 as_val=`eval 'as_val=${'$as_ac_var'}
8339 $as_echo "$as_val"'`
8340 if test "x$as_val" = x""yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8343 _ACEOF
8344
8345 fi
8346 done
8347
8348 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8349 $as_echo_n "checking for working mmap... " >&6; }
8350 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8351 $as_echo_n "(cached) " >&6
8352 else
8353 if test "$cross_compiling" = yes; then
8354 ac_cv_func_mmap_fixed_mapped=no
8355 else
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h. */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 $ac_includes_default
8363 /* malloc might have been renamed as rpl_malloc. */
8364 #undef malloc
8365
8366 /* Thanks to Mike Haertel and Jim Avera for this test.
8367 Here is a matrix of mmap possibilities:
8368 mmap private not fixed
8369 mmap private fixed at somewhere currently unmapped
8370 mmap private fixed at somewhere already mapped
8371 mmap shared not fixed
8372 mmap shared fixed at somewhere currently unmapped
8373 mmap shared fixed at somewhere already mapped
8374 For private mappings, we should verify that changes cannot be read()
8375 back from the file, nor mmap's back from the file at a different
8376 address. (There have been systems where private was not correctly
8377 implemented like the infamous i386 svr4.0, and systems where the
8378 VM page cache was not coherent with the file system buffer cache
8379 like early versions of FreeBSD and possibly contemporary NetBSD.)
8380 For shared mappings, we should conversely verify that changes get
8381 propagated back to all the places they're supposed to be.
8382
8383 Grep wants private fixed already mapped.
8384 The main things grep needs to know about mmap are:
8385 * does it exist and is it safe to write into the mmap'd area
8386 * how to use it (BSD variants) */
8387
8388 #include <fcntl.h>
8389 #include <sys/mman.h>
8390
8391 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8392 char *malloc ();
8393 #endif
8394
8395 /* This mess was copied from the GNU getpagesize.h. */
8396 #ifndef HAVE_GETPAGESIZE
8397 /* Assume that all systems that can run configure have sys/param.h. */
8398 # ifndef HAVE_SYS_PARAM_H
8399 # define HAVE_SYS_PARAM_H 1
8400 # endif
8401
8402 # ifdef _SC_PAGESIZE
8403 # define getpagesize() sysconf(_SC_PAGESIZE)
8404 # else /* no _SC_PAGESIZE */
8405 # ifdef HAVE_SYS_PARAM_H
8406 # include <sys/param.h>
8407 # ifdef EXEC_PAGESIZE
8408 # define getpagesize() EXEC_PAGESIZE
8409 # else /* no EXEC_PAGESIZE */
8410 # ifdef NBPG
8411 # define getpagesize() NBPG * CLSIZE
8412 # ifndef CLSIZE
8413 # define CLSIZE 1
8414 # endif /* no CLSIZE */
8415 # else /* no NBPG */
8416 # ifdef NBPC
8417 # define getpagesize() NBPC
8418 # else /* no NBPC */
8419 # ifdef PAGESIZE
8420 # define getpagesize() PAGESIZE
8421 # endif /* PAGESIZE */
8422 # endif /* no NBPC */
8423 # endif /* no NBPG */
8424 # endif /* no EXEC_PAGESIZE */
8425 # else /* no HAVE_SYS_PARAM_H */
8426 # define getpagesize() 8192 /* punt totally */
8427 # endif /* no HAVE_SYS_PARAM_H */
8428 # endif /* no _SC_PAGESIZE */
8429
8430 #endif /* no HAVE_GETPAGESIZE */
8431
8432 int
8433 main ()
8434 {
8435 char *data, *data2, *data3;
8436 int i, pagesize;
8437 int fd;
8438
8439 pagesize = getpagesize ();
8440
8441 /* First, make a file with some known garbage in it. */
8442 data = (char *) malloc (pagesize);
8443 if (!data)
8444 return 1;
8445 for (i = 0; i < pagesize; ++i)
8446 *(data + i) = rand ();
8447 umask (0);
8448 fd = creat ("conftest.mmap", 0600);
8449 if (fd < 0)
8450 return 1;
8451 if (write (fd, data, pagesize) != pagesize)
8452 return 1;
8453 close (fd);
8454
8455 /* Next, try to mmap the file at a fixed address which already has
8456 something else allocated at it. If we can, also make sure that
8457 we see the same garbage. */
8458 fd = open ("conftest.mmap", O_RDWR);
8459 if (fd < 0)
8460 return 1;
8461 data2 = (char *) malloc (2 * pagesize);
8462 if (!data2)
8463 return 1;
8464 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8465 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8466 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8467 return 1;
8468 for (i = 0; i < pagesize; ++i)
8469 if (*(data + i) != *(data2 + i))
8470 return 1;
8471
8472 /* Finally, make sure that changes to the mapped area do not
8473 percolate back to the file as seen by read(). (This is a bug on
8474 some variants of i386 svr4.0.) */
8475 for (i = 0; i < pagesize; ++i)
8476 *(data2 + i) = *(data2 + i) + 1;
8477 data3 = (char *) malloc (pagesize);
8478 if (!data3)
8479 return 1;
8480 if (read (fd, data3, pagesize) != pagesize)
8481 return 1;
8482 for (i = 0; i < pagesize; ++i)
8483 if (*(data + i) != *(data3 + i))
8484 return 1;
8485 close (fd);
8486 return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest$ac_exeext
8490 if { (ac_try="$ac_link"
8491 case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8496 $as_echo "$ac_try_echo") >&5
8497 (eval "$ac_link") 2>&5
8498 ac_status=$?
8499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506 $as_echo "$ac_try_echo") >&5
8507 (eval "$ac_try") 2>&5
8508 ac_status=$?
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_mmap_fixed_mapped=yes
8512 else
8513 $as_echo "$as_me: program exited with status $ac_status" >&5
8514 $as_echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ( exit $ac_status )
8518 ac_cv_func_mmap_fixed_mapped=no
8519 fi
8520 rm -rf conftest.dSYM
8521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8522 fi
8523
8524
8525 fi
8526 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8527 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8528 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8529
8530 cat >>confdefs.h <<\_ACEOF
8531 #define HAVE_MMAP 1
8532 _ACEOF
8533
8534 fi
8535 rm -f conftest.mmap
8536
8537 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8538 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8539 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test "$cross_compiling" = yes; then
8543 ac_cv_func_stat_empty_string_bug=yes
8544 else
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8552 int
8553 main ()
8554 {
8555 struct stat sbuf;
8556 return stat ("", &sbuf) == 0;
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_link") 2>&5
8570 ac_status=$?
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_try") 2>&5
8580 ac_status=$?
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 ac_cv_func_stat_empty_string_bug=no
8584 else
8585 $as_echo "$as_me: program exited with status $ac_status" >&5
8586 $as_echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 ( exit $ac_status )
8590 ac_cv_func_stat_empty_string_bug=yes
8591 fi
8592 rm -rf conftest.dSYM
8593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8594 fi
8595
8596
8597 fi
8598 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8599 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8600 if test $ac_cv_func_stat_empty_string_bug = yes; then
8601 case " $LIBOBJS " in
8602 *" stat.$ac_objext "* ) ;;
8603 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8604 ;;
8605 esac
8606
8607
8608 cat >>confdefs.h <<_ACEOF
8609 #define HAVE_STAT_EMPTY_STRING_BUG 1
8610 _ACEOF
8611
8612 fi
8613
8614 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8615 $as_echo_n "checking for working strtod... " >&6; }
8616 if test "${ac_cv_func_strtod+set}" = set; then
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test "$cross_compiling" = yes; then
8620 ac_cv_func_strtod=no
8621 else
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628
8629 $ac_includes_default
8630 #ifndef strtod
8631 double strtod ();
8632 #endif
8633 int
8634 main()
8635 {
8636 {
8637 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8638 char *string = " +69";
8639 char *term;
8640 double value;
8641 value = strtod (string, &term);
8642 if (value != 69 || term != (string + 4))
8643 return 1;
8644 }
8645
8646 {
8647 /* Under Solaris 2.4, strtod returns the wrong value for the
8648 terminating character under some conditions. */
8649 char *string = "NaN";
8650 char *term;
8651 strtod (string, &term);
8652 if (term != string && *(term - 1) == 0)
8653 return 1;
8654 }
8655 return 0;
8656 }
8657
8658 _ACEOF
8659 rm -f conftest$ac_exeext
8660 if { (ac_try="$ac_link"
8661 case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8664 esac
8665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8666 $as_echo "$ac_try_echo") >&5
8667 (eval "$ac_link") 2>&5
8668 ac_status=$?
8669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8671 { (case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676 $as_echo "$ac_try_echo") >&5
8677 (eval "$ac_try") 2>&5
8678 ac_status=$?
8679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_func_strtod=yes
8682 else
8683 $as_echo "$as_me: program exited with status $ac_status" >&5
8684 $as_echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8686
8687 ( exit $ac_status )
8688 ac_cv_func_strtod=no
8689 fi
8690 rm -rf conftest.dSYM
8691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8692 fi
8693
8694
8695 fi
8696 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8697 $as_echo "$ac_cv_func_strtod" >&6; }
8698 if test $ac_cv_func_strtod = no; then
8699 case " $LIBOBJS " in
8700 *" strtod.$ac_objext "* ) ;;
8701 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8702 ;;
8703 esac
8704
8705 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8706 $as_echo_n "checking for pow... " >&6; }
8707 if test "${ac_cv_func_pow+set}" = set; then
8708 $as_echo_n "(cached) " >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8718 #define pow innocuous_pow
8719
8720 /* System header to define __stub macros and hopefully few prototypes,
8721 which can conflict with char pow (); below.
8722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723 <limits.h> exists even on freestanding compilers. */
8724
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730
8731 #undef pow
8732
8733 /* Override any GCC internal prototype to avoid an error.
8734 Use char because int might match the return type of a GCC
8735 builtin and then its argument prototype would still apply. */
8736 #ifdef __cplusplus
8737 extern "C"
8738 #endif
8739 char pow ();
8740 /* The GNU C library defines this for functions which it implements
8741 to always fail with ENOSYS. Some functions are actually named
8742 something starting with __ and the normal name is an alias. */
8743 #if defined __stub_pow || defined __stub___pow
8744 choke me
8745 #endif
8746
8747 int
8748 main ()
8749 {
8750 return pow ();
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (ac_try="$ac_link"
8757 case "(($ac_try" in
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8760 esac
8761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8762 $as_echo "$ac_try_echo") >&5
8763 (eval "$ac_link") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest$ac_exeext && {
8773 test "$cross_compiling" = yes ||
8774 $as_test_x conftest$ac_exeext
8775 }; then
8776 ac_cv_func_pow=yes
8777 else
8778 $as_echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 ac_cv_func_pow=no
8782 fi
8783
8784 rm -rf conftest.dSYM
8785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8786 conftest$ac_exeext conftest.$ac_ext
8787 fi
8788 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8789 $as_echo "$ac_cv_func_pow" >&6; }
8790
8791 if test $ac_cv_func_pow = no; then
8792 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8793 $as_echo_n "checking for pow in -lm... " >&6; }
8794 if test "${ac_cv_lib_m_pow+set}" = set; then
8795 $as_echo_n "(cached) " >&6
8796 else
8797 ac_check_lib_save_LIBS=$LIBS
8798 LIBS="-lm $LIBS"
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 char pow ();
8813 int
8814 main ()
8815 {
8816 return pow ();
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (ac_try="$ac_link"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8828 $as_echo "$ac_try_echo") >&5
8829 (eval "$ac_link") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest$ac_exeext && {
8839 test "$cross_compiling" = yes ||
8840 $as_test_x conftest$ac_exeext
8841 }; then
8842 ac_cv_lib_m_pow=yes
8843 else
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ac_cv_lib_m_pow=no
8848 fi
8849
8850 rm -rf conftest.dSYM
8851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8854 fi
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8856 $as_echo "$ac_cv_lib_m_pow" >&6; }
8857 if test "x$ac_cv_lib_m_pow" = x""yes; then
8858 POW_LIB=-lm
8859 else
8860 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8861 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8862 fi
8863
8864 fi
8865
8866 fi
8867
8868
8869 for ac_func in vprintf
8870 do
8871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8873 $as_echo_n "checking for $ac_func... " >&6; }
8874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8875 $as_echo_n "(cached) " >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8885 #define $ac_func innocuous_$ac_func
8886
8887 /* System header to define __stub macros and hopefully few prototypes,
8888 which can conflict with char $ac_func (); below.
8889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8890 <limits.h> exists even on freestanding compilers. */
8891
8892 #ifdef __STDC__
8893 # include <limits.h>
8894 #else
8895 # include <assert.h>
8896 #endif
8897
8898 #undef $ac_func
8899
8900 /* Override any GCC internal prototype to avoid an error.
8901 Use char because int might match the return type of a GCC
8902 builtin and then its argument prototype would still apply. */
8903 #ifdef __cplusplus
8904 extern "C"
8905 #endif
8906 char $ac_func ();
8907 /* The GNU C library defines this for functions which it implements
8908 to always fail with ENOSYS. Some functions are actually named
8909 something starting with __ and the normal name is an alias. */
8910 #if defined __stub_$ac_func || defined __stub___$ac_func
8911 choke me
8912 #endif
8913
8914 int
8915 main ()
8916 {
8917 return $ac_func ();
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (ac_try="$ac_link"
8924 case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927 esac
8928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929 $as_echo "$ac_try_echo") >&5
8930 (eval "$ac_link") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest$ac_exeext && {
8940 test "$cross_compiling" = yes ||
8941 $as_test_x conftest$ac_exeext
8942 }; then
8943 eval "$as_ac_var=yes"
8944 else
8945 $as_echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 eval "$as_ac_var=no"
8949 fi
8950
8951 rm -rf conftest.dSYM
8952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953 conftest$ac_exeext conftest.$ac_ext
8954 fi
8955 ac_res=`eval 'as_val=${'$as_ac_var'}
8956 $as_echo "$as_val"'`
8957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8958 $as_echo "$ac_res" >&6; }
8959 as_val=`eval 'as_val=${'$as_ac_var'}
8960 $as_echo "$as_val"'`
8961 if test "x$as_val" = x""yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8964 _ACEOF
8965
8966 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8967 $as_echo_n "checking for _doprnt... " >&6; }
8968 if test "${ac_cv_func__doprnt+set}" = set; then
8969 $as_echo_n "(cached) " >&6
8970 else
8971 cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h. */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8979 #define _doprnt innocuous__doprnt
8980
8981 /* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char _doprnt (); below.
8983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8984 <limits.h> exists even on freestanding compilers. */
8985
8986 #ifdef __STDC__
8987 # include <limits.h>
8988 #else
8989 # include <assert.h>
8990 #endif
8991
8992 #undef _doprnt
8993
8994 /* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
8997 #ifdef __cplusplus
8998 extern "C"
8999 #endif
9000 char _doprnt ();
9001 /* The GNU C library defines this for functions which it implements
9002 to always fail with ENOSYS. Some functions are actually named
9003 something starting with __ and the normal name is an alias. */
9004 #if defined __stub__doprnt || defined __stub____doprnt
9005 choke me
9006 #endif
9007
9008 int
9009 main ()
9010 {
9011 return _doprnt ();
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (ac_try="$ac_link"
9018 case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9023 $as_echo "$ac_try_echo") >&5
9024 (eval "$ac_link") 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest$ac_exeext && {
9034 test "$cross_compiling" = yes ||
9035 $as_test_x conftest$ac_exeext
9036 }; then
9037 ac_cv_func__doprnt=yes
9038 else
9039 $as_echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ac_cv_func__doprnt=no
9043 fi
9044
9045 rm -rf conftest.dSYM
9046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9047 conftest$ac_exeext conftest.$ac_ext
9048 fi
9049 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9050 $as_echo "$ac_cv_func__doprnt" >&6; }
9051 if test "x$ac_cv_func__doprnt" = x""yes; then
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_DOPRNT 1
9055 _ACEOF
9056
9057 fi
9058
9059 fi
9060 done
9061
9062
9063
9064 ################################################################################
9065 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9066 $as_echo_n "checking whether to use static linking... " >&6; }
9067 # Check whether --enable-static_link was given.
9068 if test "${enable_static_link+set}" = set; then
9069 enableval=$enable_static_link; STATIC_LINK=$enableval
9070 else
9071 STATIC_LINK=no
9072 fi
9073
9074 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9075 $as_echo "$STATIC_LINK" >&6; }
9076
9077 ################################################################################
9078
9079
9080 ################################################################################
9081 { $as_echo "$as_me:$LINENO: checking file owner" >&5
9082 $as_echo_n "checking file owner... " >&6; }
9083 OWNER=""
9084
9085
9086 # Check whether --with-user was given.
9087 if test "${with_user+set}" = set; then
9088 withval=$with_user; OWNER="$withval"
9089 fi
9090
9091 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9092 $as_echo "$OWNER" >&6; }
9093
9094 if test x$OWNER != x; then
9095 OWNER="-o $OWNER"
9096 fi
9097
9098 ################################################################################
9099 { $as_echo "$as_me:$LINENO: checking group owner" >&5
9100 $as_echo_n "checking group owner... " >&6; }
9101 GROUP=""
9102
9103 # Check whether --with-group was given.
9104 if test "${with_group+set}" = set; then
9105 withval=$with_group; GROUP="$withval"
9106 fi
9107
9108 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9109 $as_echo "$GROUP" >&6; }
9110
9111 if test x$GROUP != x; then
9112 GROUP="-g $GROUP"
9113 fi
9114
9115 ################################################################################
9116 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9117 $as_echo_n "checking device node uid... " >&6; }
9118
9119
9120 # Check whether --with-device-uid was given.
9121 if test "${with_device_uid+set}" = set; then
9122 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9123 else
9124 DM_DEVICE_UID="0"
9125 fi
9126
9127 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9128 $as_echo "$DM_DEVICE_UID" >&6; }
9129
9130 ################################################################################
9131 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9132 $as_echo_n "checking device node gid... " >&6; }
9133
9134
9135 # Check whether --with-device-gid was given.
9136 if test "${with_device_gid+set}" = set; then
9137 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9138 else
9139 DM_DEVICE_GID="0"
9140 fi
9141
9142 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9143 $as_echo "$DM_DEVICE_GID" >&6; }
9144
9145 ################################################################################
9146 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9147 $as_echo_n "checking device node mode... " >&6; }
9148
9149
9150 # Check whether --with-device-mode was given.
9151 if test "${with_device_mode+set}" = set; then
9152 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9153 else
9154 DM_DEVICE_MODE="0600"
9155 fi
9156
9157 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9158 $as_echo "$DM_DEVICE_MODE" >&6; }
9159
9160 ################################################################################
9161 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9162 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9163 # Check whether --enable-lvm1_fallback was given.
9164 if test "${enable_lvm1_fallback+set}" = set; then
9165 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9166 else
9167 LVM1_FALLBACK=no
9168 fi
9169
9170 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9171 $as_echo "$LVM1_FALLBACK" >&6; }
9172
9173 if test x$LVM1_FALLBACK = xyes; then
9174
9175 cat >>confdefs.h <<\_ACEOF
9176 #define LVM1_FALLBACK 1
9177 _ACEOF
9178
9179 fi
9180
9181 ################################################################################
9182 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9183 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9184
9185 # Check whether --with-lvm1 was given.
9186 if test "${with_lvm1+set}" = set; then
9187 withval=$with_lvm1; LVM1="$withval"
9188 else
9189 LVM1="internal"
9190 fi
9191
9192 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9193 $as_echo "$LVM1" >&6; }
9194
9195 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9196 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9197 " >&5
9198 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9199 " >&2;}
9200 { (exit 1); exit 1; }; }
9201 fi;
9202
9203 if test x$LVM1 = xinternal; then
9204
9205 cat >>confdefs.h <<\_ACEOF
9206 #define LVM1_INTERNAL 1
9207 _ACEOF
9208
9209 fi
9210
9211 ################################################################################
9212 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9213 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9214
9215 # Check whether --with-pool was given.
9216 if test "${with_pool+set}" = set; then
9217 withval=$with_pool; POOL="$withval"
9218 else
9219 POOL="internal"
9220 fi
9221
9222 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9223 $as_echo "$POOL" >&6; }
9224
9225 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9226 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9227 " >&5
9228 $as_echo "$as_me: error: --with-pool parameter invalid
9229 " >&2;}
9230 { (exit 1); exit 1; }; }
9231 fi;
9232
9233 if test x$POOL = xinternal; then
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define POOL_INTERNAL 1
9237 _ACEOF
9238
9239 fi
9240
9241 ################################################################################
9242 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9243 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9244
9245 # Check whether --with-cluster was given.
9246 if test "${with_cluster+set}" = set; then
9247 withval=$with_cluster; CLUSTER="$withval"
9248 fi
9249
9250 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9251 $as_echo "$CLUSTER" >&6; }
9252
9253 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9254 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9255 " >&5
9256 $as_echo "$as_me: error: --with-cluster parameter invalid
9257 " >&2;}
9258 { (exit 1); exit 1; }; }
9259 fi;
9260
9261 if test x$CLUSTER = xinternal; then
9262
9263 cat >>confdefs.h <<\_ACEOF
9264 #define CLUSTER_LOCKING_INTERNAL 1
9265 _ACEOF
9266
9267 fi
9268
9269 ################################################################################
9270 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9271 $as_echo_n "checking whether to include snapshots... " >&6; }
9272
9273 # Check whether --with-snapshots was given.
9274 if test "${with_snapshots+set}" = set; then
9275 withval=$with_snapshots; SNAPSHOTS="$withval"
9276 else
9277 SNAPSHOTS="internal"
9278 fi
9279
9280 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9281 $as_echo "$SNAPSHOTS" >&6; }
9282
9283 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9284 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9285 " >&5
9286 $as_echo "$as_me: error: --with-snapshots parameter invalid
9287 " >&2;}
9288 { (exit 1); exit 1; }; }
9289 fi;
9290
9291 if test x$SNAPSHOTS = xinternal; then
9292
9293 cat >>confdefs.h <<\_ACEOF
9294 #define SNAPSHOT_INTERNAL 1
9295 _ACEOF
9296
9297 fi
9298
9299 ################################################################################
9300 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9301 $as_echo_n "checking whether to include mirrors... " >&6; }
9302
9303 # Check whether --with-mirrors was given.
9304 if test "${with_mirrors+set}" = set; then
9305 withval=$with_mirrors; MIRRORS="$withval"
9306 else
9307 MIRRORS="internal"
9308 fi
9309
9310 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9311 $as_echo "$MIRRORS" >&6; }
9312
9313 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9314 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9315 " >&5
9316 $as_echo "$as_me: error: --with-mirrors parameter invalid
9317 " >&2;}
9318 { (exit 1); exit 1; }; }
9319 fi;
9320
9321 if test x$MIRRORS = xinternal; then
9322
9323 cat >>confdefs.h <<\_ACEOF
9324 #define MIRRORED_INTERNAL 1
9325 _ACEOF
9326
9327 fi
9328
9329 ################################################################################
9330 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9331 $as_echo_n "checking whether to enable readline... " >&6; }
9332 # Check whether --enable-readline was given.
9333 if test "${enable_readline+set}" = set; then
9334 enableval=$enable_readline; READLINE=$enableval
9335 else
9336 READLINE=maybe
9337 fi
9338
9339 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9340 $as_echo "$READLINE" >&6; }
9341
9342 ################################################################################
9343 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9344 $as_echo_n "checking whether to enable realtime support... " >&6; }
9345 # Check whether --enable-realtime was given.
9346 if test "${enable_realtime+set}" = set; then
9347 enableval=$enable_realtime; REALTIME=$enableval
9348 fi
9349
9350 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9351 $as_echo "$REALTIME" >&6; }
9352
9353 ################################################################################
9354 pkg_config_init() {
9355
9356
9357 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9358 if test -n "$ac_tool_prefix"; then
9359 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9360 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9364 $as_echo_n "(cached) " >&6
9365 else
9366 case $PKG_CONFIG in
9367 [\\/]* | ?:[\\/]*)
9368 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9369 ;;
9370 *)
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9373 do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382 done
9383 done
9384 IFS=$as_save_IFS
9385
9386 ;;
9387 esac
9388 fi
9389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9390 if test -n "$PKG_CONFIG"; then
9391 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9392 $as_echo "$PKG_CONFIG" >&6; }
9393 else
9394 { $as_echo "$as_me:$LINENO: result: no" >&5
9395 $as_echo "no" >&6; }
9396 fi
9397
9398
9399 fi
9400 if test -z "$ac_cv_path_PKG_CONFIG"; then
9401 ac_pt_PKG_CONFIG=$PKG_CONFIG
9402 # Extract the first word of "pkg-config", so it can be a program name with args.
9403 set dummy pkg-config; ac_word=$2
9404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9407 $as_echo_n "(cached) " >&6
9408 else
9409 case $ac_pt_PKG_CONFIG in
9410 [\\/]* | ?:[\\/]*)
9411 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9412 ;;
9413 *)
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425 done
9426 done
9427 IFS=$as_save_IFS
9428
9429 ;;
9430 esac
9431 fi
9432 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9433 if test -n "$ac_pt_PKG_CONFIG"; then
9434 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9435 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9436 else
9437 { $as_echo "$as_me:$LINENO: result: no" >&5
9438 $as_echo "no" >&6; }
9439 fi
9440
9441 if test "x$ac_pt_PKG_CONFIG" = x; then
9442 PKG_CONFIG=""
9443 else
9444 case $cross_compiling:$ac_tool_warned in
9445 yes:)
9446 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9448 ac_tool_warned=yes ;;
9449 esac
9450 PKG_CONFIG=$ac_pt_PKG_CONFIG
9451 fi
9452 else
9453 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9454 fi
9455
9456 fi
9457 if test -n "$PKG_CONFIG"; then
9458 _pkg_min_version=0.9.0
9459 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9460 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9461 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9462 { $as_echo "$as_me:$LINENO: result: yes" >&5
9463 $as_echo "yes" >&6; }
9464 else
9465 { $as_echo "$as_me:$LINENO: result: no" >&5
9466 $as_echo "no" >&6; }
9467 PKG_CONFIG=""
9468 fi
9469
9470 fi
9471
9472 pkg_failed=no
9473 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9474 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9475
9476 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9477 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9478 elif test -n "$PKG_CONFIG"; then
9479 if test -n "$PKG_CONFIG" && \
9480 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9481 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; then
9485 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9486 else
9487 pkg_failed=yes
9488 fi
9489 else
9490 pkg_failed=untried
9491 fi
9492 if test -n "$PKGCONFIGINIT_LIBS"; then
9493 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9494 elif test -n "$PKG_CONFIG"; then
9495 if test -n "$PKG_CONFIG" && \
9496 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9497 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9498 ac_status=$?
9499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; then
9501 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9502 else
9503 pkg_failed=yes
9504 fi
9505 else
9506 pkg_failed=untried
9507 fi
9508
9509
9510
9511 if test $pkg_failed = yes; then
9512
9513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9514 _pkg_short_errors_supported=yes
9515 else
9516 _pkg_short_errors_supported=no
9517 fi
9518 if test $_pkg_short_errors_supported = yes; then
9519 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9520 else
9521 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9522 fi
9523 # Put the nasty error message in config.log where it belongs
9524 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9525
9526 { $as_echo "$as_me:$LINENO: result: no" >&5
9527 $as_echo "no" >&6; }
9528 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9529 $as_echo "pkg-config initialized" >&6; }
9530 elif test $pkg_failed = untried; then
9531 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9532 $as_echo "pkg-config initialized" >&6; }
9533 else
9534 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9535 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9536 { $as_echo "$as_me:$LINENO: result: yes" >&5
9537 $as_echo "yes" >&6; }
9538 :
9539 fi
9540 PKGCONFIG_INIT=1
9541 }
9542
9543 ################################################################################
9544 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9545 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9546
9547 # Check whether --with-clvmd was given.
9548 if test "${with_clvmd+set}" = set; then
9549 withval=$with_clvmd; CLVMD="$withval"
9550 else
9551 CLVMD="none"
9552 fi
9553
9554 if test x$CLVMD = xyes; then
9555 CLVMD=all
9556 fi
9557 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9558 $as_echo "$CLVMD" >&6; }
9559
9560 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9561 CLUSTER=internal
9562 fi
9563
9564 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9565 pkg_config_init
9566 fi
9567
9568
9569 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9570 BUILDGULM=yes
9571 fi
9572 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9573 BUILDCOROSYNC=yes
9574 fi
9575 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9576 BUILDOPENAIS=yes
9577 fi
9578 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9579 BUILDCMAN=yes
9580 fi
9581
9582 if test x$BUILDGULM = xyes; then
9583 if test x$BUILDCOROSYNC = xyes || \
9584 test x$BUILDOPENAIS = xyes; then
9585 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9586 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9587 { (exit 1); exit 1; }; }
9588 fi
9589 fi
9590
9591 soft_bailout() {
9592 NOTFOUND=1
9593 }
9594
9595 hard_bailout() {
9596 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9597 $as_echo "$as_me: error: bailing out" >&2;}
9598 { (exit 1); exit 1; }; }
9599 }
9600
9601 if test x$CLVMD = xall; then
9602 bailout=soft_bailout
9603 BUILDGULM=yes
9604 BUILDCMAN=yes
9605 BUILDCOROSYNC=yes
9606 BUILDOPENAIS=yes
9607 else
9608 bailout=hard_bailout
9609 fi
9610
9611 check_lib_no_libs() {
9612 lib_no_libs_arg1=$1
9613 shift
9614 lib_no_libs_arg2=$1
9615 shift
9616 lib_no_libs_args=$@
9617
9618 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9619 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9620 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9621 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9622 $as_echo_n "(cached) " >&6
9623 else
9624 ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char $lib_no_libs_arg2 ();
9640 int
9641 main ()
9642 {
9643 return $lib_no_libs_arg2 ();
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9650 case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653 esac
9654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9655 $as_echo "$ac_try_echo") >&5
9656 (eval "$ac_link") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext && {
9666 test "$cross_compiling" = yes ||
9667 $as_test_x conftest$ac_exeext
9668 }; then
9669 eval "$as_ac_Lib=yes"
9670 else
9671 $as_echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674 eval "$as_ac_Lib=no"
9675 fi
9676
9677 rm -rf conftest.dSYM
9678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9681 fi
9682 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9683 $as_echo "$as_val"'`
9684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9685 $as_echo "$ac_res" >&6; }
9686 as_val=`eval 'as_val=${'$as_ac_Lib'}
9687 $as_echo "$as_val"'`
9688 if test "x$as_val" = x""yes; then
9689 cat >>confdefs.h <<_ACEOF
9690 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9691 _ACEOF
9692
9693 LIBS="-l$lib_no_libs_arg1 $LIBS"
9694
9695 else
9696 $bailout
9697 fi
9698
9699 LIBS=$ac_check_lib_save_LIBS
9700 }
9701
9702 if test x$BUILDGULM = xyes; then
9703
9704 pkg_failed=no
9705 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9706 $as_echo_n "checking for CCS... " >&6; }
9707
9708 if test -n "$CCS_CFLAGS"; then
9709 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9710 elif test -n "$PKG_CONFIG"; then
9711 if test -n "$PKG_CONFIG" && \
9712 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9713 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9714 ac_status=$?
9715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; then
9717 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9718 else
9719 pkg_failed=yes
9720 fi
9721 else
9722 pkg_failed=untried
9723 fi
9724 if test -n "$CCS_LIBS"; then
9725 pkg_cv_CCS_LIBS="$CCS_LIBS"
9726 elif test -n "$PKG_CONFIG"; then
9727 if test -n "$PKG_CONFIG" && \
9728 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9729 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9730 ac_status=$?
9731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; then
9733 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9734 else
9735 pkg_failed=yes
9736 fi
9737 else
9738 pkg_failed=untried
9739 fi
9740
9741
9742
9743 if test $pkg_failed = yes; then
9744
9745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9746 _pkg_short_errors_supported=yes
9747 else
9748 _pkg_short_errors_supported=no
9749 fi
9750 if test $_pkg_short_errors_supported = yes; then
9751 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9752 else
9753 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9754 fi
9755 # Put the nasty error message in config.log where it belongs
9756 echo "$CCS_PKG_ERRORS" >&5
9757
9758 { $as_echo "$as_me:$LINENO: result: no" >&5
9759 $as_echo "no" >&6; }
9760 NOTFOUND=0
9761
9762 for ac_header in ccs.h
9763 do
9764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 $as_echo_n "checking for $ac_header... " >&6; }
9768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 $as_echo_n "(cached) " >&6
9770 fi
9771 ac_res=`eval 'as_val=${'$as_ac_Header'}
9772 $as_echo "$as_val"'`
9773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9774 $as_echo "$ac_res" >&6; }
9775 else
9776 # Is the header compilable?
9777 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9778 $as_echo_n "checking $ac_header usability... " >&6; }
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 $ac_includes_default
9786 #include <$ac_header>
9787 _ACEOF
9788 rm -f conftest.$ac_objext
9789 if { (ac_try="$ac_compile"
9790 case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793 esac
9794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9795 $as_echo "$ac_try_echo") >&5
9796 (eval "$ac_compile") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest.$ac_objext; then
9806 ac_header_compiler=yes
9807 else
9808 $as_echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 ac_header_compiler=no
9812 fi
9813
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 $as_echo "$ac_header_compiler" >&6; }
9817
9818 # Is the header present?
9819 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9820 $as_echo_n "checking $ac_header presence... " >&6; }
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <$ac_header>
9828 _ACEOF
9829 if { (ac_try="$ac_cpp conftest.$ac_ext"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9835 $as_echo "$ac_try_echo") >&5
9836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } >/dev/null && {
9843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 }; then
9846 ac_header_preproc=yes
9847 else
9848 $as_echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_header_preproc=no
9852 fi
9853
9854 rm -f conftest.err conftest.$ac_ext
9855 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856 $as_echo "$ac_header_preproc" >&6; }
9857
9858 # So? What about this header?
9859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9860 yes:no: )
9861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9862 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9865 ac_header_preproc=yes
9866 ;;
9867 no:yes:* )
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9869 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9871 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9873 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9875 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9880
9881 ;;
9882 esac
9883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9884 $as_echo_n "checking for $ac_header... " >&6; }
9885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9886 $as_echo_n "(cached) " >&6
9887 else
9888 eval "$as_ac_Header=\$ac_header_preproc"
9889 fi
9890 ac_res=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9893 $as_echo "$ac_res" >&6; }
9894
9895 fi
9896 as_val=`eval 'as_val=${'$as_ac_Header'}
9897 $as_echo "$as_val"'`
9898 if test "x$as_val" = x""yes; then
9899 cat >>confdefs.h <<_ACEOF
9900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901 _ACEOF
9902
9903 else
9904 $bailout
9905 fi
9906
9907 done
9908
9909 check_lib_no_libs ccs ccs_connect
9910 if test $NOTFOUND = 0; then
9911 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9912 $as_echo "no pkg for libccs, using -lccs" >&6; }
9913 CCS_LIBS="-lccs"
9914 HAVE_CCS=yes
9915 fi
9916 elif test $pkg_failed = untried; then
9917 NOTFOUND=0
9918
9919 for ac_header in ccs.h
9920 do
9921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 $as_echo_n "checking for $ac_header... " >&6; }
9925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 $as_echo_n "(cached) " >&6
9927 fi
9928 ac_res=`eval 'as_val=${'$as_ac_Header'}
9929 $as_echo "$as_val"'`
9930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9931 $as_echo "$ac_res" >&6; }
9932 else
9933 # Is the header compilable?
9934 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9935 $as_echo_n "checking $ac_header usability... " >&6; }
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 $ac_includes_default
9943 #include <$ac_header>
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (ac_try="$ac_compile"
9947 case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950 esac
9951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9952 $as_echo "$ac_try_echo") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_header_compiler=yes
9964 else
9965 $as_echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 ac_header_compiler=no
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9973 $as_echo "$ac_header_compiler" >&6; }
9974
9975 # Is the header present?
9976 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9977 $as_echo_n "checking $ac_header presence... " >&6; }
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <$ac_header>
9985 _ACEOF
9986 if { (ac_try="$ac_cpp conftest.$ac_ext"
9987 case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992 $as_echo "$ac_try_echo") >&5
9993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } >/dev/null && {
10000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 }; then
10003 ac_header_preproc=yes
10004 else
10005 $as_echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_header_preproc=no
10009 fi
10010
10011 rm -f conftest.err conftest.$ac_ext
10012 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10013 $as_echo "$ac_header_preproc" >&6; }
10014
10015 # So? What about this header?
10016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10017 yes:no: )
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10019 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10022 ac_header_preproc=yes
10023 ;;
10024 no:yes:* )
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10030 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10032 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10036 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10037
10038 ;;
10039 esac
10040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10041 $as_echo_n "checking for $ac_header... " >&6; }
10042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10043 $as_echo_n "(cached) " >&6
10044 else
10045 eval "$as_ac_Header=\$ac_header_preproc"
10046 fi
10047 ac_res=`eval 'as_val=${'$as_ac_Header'}
10048 $as_echo "$as_val"'`
10049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10050 $as_echo "$ac_res" >&6; }
10051
10052 fi
10053 as_val=`eval 'as_val=${'$as_ac_Header'}
10054 $as_echo "$as_val"'`
10055 if test "x$as_val" = x""yes; then
10056 cat >>confdefs.h <<_ACEOF
10057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10058 _ACEOF
10059
10060 else
10061 $bailout
10062 fi
10063
10064 done
10065
10066 check_lib_no_libs ccs ccs_connect
10067 if test $NOTFOUND = 0; then
10068 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10069 $as_echo "no pkg for libccs, using -lccs" >&6; }
10070 CCS_LIBS="-lccs"
10071 HAVE_CCS=yes
10072 fi
10073 else
10074 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10075 CCS_LIBS=$pkg_cv_CCS_LIBS
10076 { $as_echo "$as_me:$LINENO: result: yes" >&5
10077 $as_echo "yes" >&6; }
10078 HAVE_CCS=yes
10079 fi
10080
10081 pkg_failed=no
10082 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
10083 $as_echo_n "checking for GULM... " >&6; }
10084
10085 if test -n "$GULM_CFLAGS"; then
10086 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10087 elif test -n "$PKG_CONFIG"; then
10088 if test -n "$PKG_CONFIG" && \
10089 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10090 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10091 ac_status=$?
10092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; then
10094 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10095 else
10096 pkg_failed=yes
10097 fi
10098 else
10099 pkg_failed=untried
10100 fi
10101 if test -n "$GULM_LIBS"; then
10102 pkg_cv_GULM_LIBS="$GULM_LIBS"
10103 elif test -n "$PKG_CONFIG"; then
10104 if test -n "$PKG_CONFIG" && \
10105 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10106 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10107 ac_status=$?
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; then
10110 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10111 else
10112 pkg_failed=yes
10113 fi
10114 else
10115 pkg_failed=untried
10116 fi
10117
10118
10119
10120 if test $pkg_failed = yes; then
10121
10122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10123 _pkg_short_errors_supported=yes
10124 else
10125 _pkg_short_errors_supported=no
10126 fi
10127 if test $_pkg_short_errors_supported = yes; then
10128 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10129 else
10130 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10131 fi
10132 # Put the nasty error message in config.log where it belongs
10133 echo "$GULM_PKG_ERRORS" >&5
10134
10135 { $as_echo "$as_me:$LINENO: result: no" >&5
10136 $as_echo "no" >&6; }
10137 NOTFOUND=0
10138
10139 for ac_header in libgulm.h
10140 do
10141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10144 $as_echo_n "checking for $ac_header... " >&6; }
10145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 $as_echo_n "(cached) " >&6
10147 fi
10148 ac_res=`eval 'as_val=${'$as_ac_Header'}
10149 $as_echo "$as_val"'`
10150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10151 $as_echo "$ac_res" >&6; }
10152 else
10153 # Is the header compilable?
10154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10155 $as_echo_n "checking $ac_header usability... " >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 #include <$ac_header>
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (ac_try="$ac_compile"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172 $as_echo "$ac_try_echo") >&5
10173 (eval "$ac_compile") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest.$ac_objext; then
10183 ac_header_compiler=yes
10184 else
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_header_compiler=no
10189 fi
10190
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10193 $as_echo "$ac_header_compiler" >&6; }
10194
10195 # Is the header present?
10196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10197 $as_echo_n "checking $ac_header presence... " >&6; }
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <$ac_header>
10205 _ACEOF
10206 if { (ac_try="$ac_cpp conftest.$ac_ext"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212 $as_echo "$ac_try_echo") >&5
10213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } >/dev/null && {
10220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 }; then
10223 ac_header_preproc=yes
10224 else
10225 $as_echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ac_header_preproc=no
10229 fi
10230
10231 rm -f conftest.err conftest.$ac_ext
10232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10233 $as_echo "$ac_header_preproc" >&6; }
10234
10235 # So? What about this header?
10236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10237 yes:no: )
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10242 ac_header_preproc=yes
10243 ;;
10244 no:yes:* )
10245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10248 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10252 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10257
10258 ;;
10259 esac
10260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10261 $as_echo_n "checking for $ac_header... " >&6; }
10262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10263 $as_echo_n "(cached) " >&6
10264 else
10265 eval "$as_ac_Header=\$ac_header_preproc"
10266 fi
10267 ac_res=`eval 'as_val=${'$as_ac_Header'}
10268 $as_echo "$as_val"'`
10269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10270 $as_echo "$ac_res" >&6; }
10271
10272 fi
10273 as_val=`eval 'as_val=${'$as_ac_Header'}
10274 $as_echo "$as_val"'`
10275 if test "x$as_val" = x""yes; then
10276 cat >>confdefs.h <<_ACEOF
10277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278 _ACEOF
10279
10280 else
10281 $bailout
10282 fi
10283
10284 done
10285
10286 check_lib_no_libs gulm lg_core_login
10287 if test $NOTFOUND = 0; then
10288 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10289 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10290 GULM_LIBS="-lgulm"
10291 HAVE_GULM=yes
10292 fi
10293 elif test $pkg_failed = untried; then
10294 NOTFOUND=0
10295
10296 for ac_header in libgulm.h
10297 do
10298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10301 $as_echo_n "checking for $ac_header... " >&6; }
10302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 $as_echo_n "(cached) " >&6
10304 fi
10305 ac_res=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10308 $as_echo "$ac_res" >&6; }
10309 else
10310 # Is the header compilable?
10311 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10312 $as_echo_n "checking $ac_header usability... " >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 $ac_includes_default
10320 #include <$ac_header>
10321 _ACEOF
10322 rm -f conftest.$ac_objext
10323 if { (ac_try="$ac_compile"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329 $as_echo "$ac_try_echo") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_header_compiler=yes
10341 else
10342 $as_echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_header_compiler=no
10346 fi
10347
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10350 $as_echo "$ac_header_compiler" >&6; }
10351
10352 # Is the header present?
10353 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10354 $as_echo_n "checking $ac_header presence... " >&6; }
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 #include <$ac_header>
10362 _ACEOF
10363 if { (ac_try="$ac_cpp conftest.$ac_ext"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367 esac
10368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10369 $as_echo "$ac_try_echo") >&5
10370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10371 ac_status=$?
10372 grep -v '^ *+' conftest.er1 >conftest.err
10373 rm -f conftest.er1
10374 cat conftest.err >&5
10375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } >/dev/null && {
10377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10378 test ! -s conftest.err
10379 }; then
10380 ac_header_preproc=yes
10381 else
10382 $as_echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385 ac_header_preproc=no
10386 fi
10387
10388 rm -f conftest.err conftest.$ac_ext
10389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10390 $as_echo "$ac_header_preproc" >&6; }
10391
10392 # So? What about this header?
10393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10394 yes:no: )
10395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10396 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10399 ac_header_preproc=yes
10400 ;;
10401 no:yes:* )
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10403 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10405 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10407 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10409 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10413 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10414
10415 ;;
10416 esac
10417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10418 $as_echo_n "checking for $ac_header... " >&6; }
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 $as_echo_n "(cached) " >&6
10421 else
10422 eval "$as_ac_Header=\$ac_header_preproc"
10423 fi
10424 ac_res=`eval 'as_val=${'$as_ac_Header'}
10425 $as_echo "$as_val"'`
10426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10427 $as_echo "$ac_res" >&6; }
10428
10429 fi
10430 as_val=`eval 'as_val=${'$as_ac_Header'}
10431 $as_echo "$as_val"'`
10432 if test "x$as_val" = x""yes; then
10433 cat >>confdefs.h <<_ACEOF
10434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10435 _ACEOF
10436
10437 else
10438 $bailout
10439 fi
10440
10441 done
10442
10443 check_lib_no_libs gulm lg_core_login
10444 if test $NOTFOUND = 0; then
10445 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10446 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10447 GULM_LIBS="-lgulm"
10448 HAVE_GULM=yes
10449 fi
10450 else
10451 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10452 GULM_LIBS=$pkg_cv_GULM_LIBS
10453 { $as_echo "$as_me:$LINENO: result: yes" >&5
10454 $as_echo "yes" >&6; }
10455 HAVE_GULM=yes
10456 fi
10457 fi
10458
10459 if test x$BUILDCMAN = xyes; then
10460
10461 pkg_failed=no
10462 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10463 $as_echo_n "checking for CMAN... " >&6; }
10464
10465 if test -n "$CMAN_CFLAGS"; then
10466 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10467 elif test -n "$PKG_CONFIG"; then
10468 if test -n "$PKG_CONFIG" && \
10469 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10470 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10471 ac_status=$?
10472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; then
10474 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10475 else
10476 pkg_failed=yes
10477 fi
10478 else
10479 pkg_failed=untried
10480 fi
10481 if test -n "$CMAN_LIBS"; then
10482 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10483 elif test -n "$PKG_CONFIG"; then
10484 if test -n "$PKG_CONFIG" && \
10485 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10486 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10487 ac_status=$?
10488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; then
10490 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10491 else
10492 pkg_failed=yes
10493 fi
10494 else
10495 pkg_failed=untried
10496 fi
10497
10498
10499
10500 if test $pkg_failed = yes; then
10501
10502 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10503 _pkg_short_errors_supported=yes
10504 else
10505 _pkg_short_errors_supported=no
10506 fi
10507 if test $_pkg_short_errors_supported = yes; then
10508 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10509 else
10510 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10511 fi
10512 # Put the nasty error message in config.log where it belongs
10513 echo "$CMAN_PKG_ERRORS" >&5
10514
10515 { $as_echo "$as_me:$LINENO: result: no" >&5
10516 $as_echo "no" >&6; }
10517 NOTFOUND=0
10518
10519 for ac_header in libcman.h
10520 do
10521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10524 $as_echo_n "checking for $ac_header... " >&6; }
10525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 $as_echo_n "(cached) " >&6
10527 fi
10528 ac_res=`eval 'as_val=${'$as_ac_Header'}
10529 $as_echo "$as_val"'`
10530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10531 $as_echo "$ac_res" >&6; }
10532 else
10533 # Is the header compilable?
10534 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10535 $as_echo_n "checking $ac_header usability... " >&6; }
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h. */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 $ac_includes_default
10543 #include <$ac_header>
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553 (eval "$ac_compile") 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && {
10560 test -z "$ac_c_werror_flag" ||
10561 test ! -s conftest.err
10562 } && test -s conftest.$ac_objext; then
10563 ac_header_compiler=yes
10564 else
10565 $as_echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_header_compiler=no
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10573 $as_echo "$ac_header_compiler" >&6; }
10574
10575 # Is the header present?
10576 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10577 $as_echo_n "checking $ac_header presence... " >&6; }
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <$ac_header>
10585 _ACEOF
10586 if { (ac_try="$ac_cpp conftest.$ac_ext"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590 esac
10591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10592 $as_echo "$ac_try_echo") >&5
10593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } >/dev/null && {
10600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10601 test ! -s conftest.err
10602 }; then
10603 ac_header_preproc=yes
10604 else
10605 $as_echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_header_preproc=no
10609 fi
10610
10611 rm -f conftest.err conftest.$ac_ext
10612 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10613 $as_echo "$ac_header_preproc" >&6; }
10614
10615 # So? What about this header?
10616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10617 yes:no: )
10618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10619 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10622 ac_header_preproc=yes
10623 ;;
10624 no:yes:* )
10625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10626 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10628 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10630 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10632 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10637
10638 ;;
10639 esac
10640 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10641 $as_echo_n "checking for $ac_header... " >&6; }
10642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10643 $as_echo_n "(cached) " >&6
10644 else
10645 eval "$as_ac_Header=\$ac_header_preproc"
10646 fi
10647 ac_res=`eval 'as_val=${'$as_ac_Header'}
10648 $as_echo "$as_val"'`
10649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10650 $as_echo "$ac_res" >&6; }
10651
10652 fi
10653 as_val=`eval 'as_val=${'$as_ac_Header'}
10654 $as_echo "$as_val"'`
10655 if test "x$as_val" = x""yes; then
10656 cat >>confdefs.h <<_ACEOF
10657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10658 _ACEOF
10659
10660 else
10661 $bailout
10662 fi
10663
10664 done
10665
10666 check_lib_no_libs cman cman_init
10667 if test $NOTFOUND = 0; then
10668 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10669 $as_echo "no pkg for libcman, using -lcman" >&6; }
10670 CMAN_LIBS="-lcman"
10671 HAVE_CMAN=yes
10672 fi
10673 elif test $pkg_failed = untried; then
10674 NOTFOUND=0
10675
10676 for ac_header in libcman.h
10677 do
10678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10681 $as_echo_n "checking for $ac_header... " >&6; }
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 $as_echo_n "(cached) " >&6
10684 fi
10685 ac_res=`eval 'as_val=${'$as_ac_Header'}
10686 $as_echo "$as_val"'`
10687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10688 $as_echo "$ac_res" >&6; }
10689 else
10690 # Is the header compilable?
10691 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10692 $as_echo_n "checking $ac_header usability... " >&6; }
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h. */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 $ac_includes_default
10700 #include <$ac_header>
10701 _ACEOF
10702 rm -f conftest.$ac_objext
10703 if { (ac_try="$ac_compile"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10709 $as_echo "$ac_try_echo") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest.$ac_objext; then
10720 ac_header_compiler=yes
10721 else
10722 $as_echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_header_compiler=no
10726 fi
10727
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10730 $as_echo "$ac_header_compiler" >&6; }
10731
10732 # Is the header present?
10733 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10734 $as_echo_n "checking $ac_header presence... " >&6; }
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741 #include <$ac_header>
10742 _ACEOF
10743 if { (ac_try="$ac_cpp conftest.$ac_ext"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747 esac
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } >/dev/null && {
10757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 }; then
10760 ac_header_preproc=yes
10761 else
10762 $as_echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ac_header_preproc=no
10766 fi
10767
10768 rm -f conftest.err conftest.$ac_ext
10769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770 $as_echo "$ac_header_preproc" >&6; }
10771
10772 # So? What about this header?
10773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774 yes:no: )
10775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779 ac_header_preproc=yes
10780 ;;
10781 no:yes:* )
10782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10785 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10789 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794
10795 ;;
10796 esac
10797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10798 $as_echo_n "checking for $ac_header... " >&6; }
10799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10800 $as_echo_n "(cached) " >&6
10801 else
10802 eval "$as_ac_Header=\$ac_header_preproc"
10803 fi
10804 ac_res=`eval 'as_val=${'$as_ac_Header'}
10805 $as_echo "$as_val"'`
10806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10807 $as_echo "$ac_res" >&6; }
10808
10809 fi
10810 as_val=`eval 'as_val=${'$as_ac_Header'}
10811 $as_echo "$as_val"'`
10812 if test "x$as_val" = x""yes; then
10813 cat >>confdefs.h <<_ACEOF
10814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10815 _ACEOF
10816
10817 else
10818 $bailout
10819 fi
10820
10821 done
10822
10823 check_lib_no_libs cman cman_init
10824 if test $NOTFOUND = 0; then
10825 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10826 $as_echo "no pkg for libcman, using -lcman" >&6; }
10827 CMAN_LIBS="-lcman"
10828 HAVE_CMAN=yes
10829 fi
10830 else
10831 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10832 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10833 { $as_echo "$as_me:$LINENO: result: yes" >&5
10834 $as_echo "yes" >&6; }
10835 HAVE_CMAN=yes
10836 fi
10837 CHECKCONFDB=yes
10838 CHECKDLM=yes
10839 fi
10840
10841 if test x$BUILDCOROSYNC = xyes || \
10842 test x$BUILDOPENAIS = xyes; then
10843
10844 pkg_failed=no
10845 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10846 $as_echo_n "checking for COROSYNC... " >&6; }
10847
10848 if test -n "$COROSYNC_CFLAGS"; then
10849 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10850 elif test -n "$PKG_CONFIG"; then
10851 if test -n "$PKG_CONFIG" && \
10852 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10853 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10854 ac_status=$?
10855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; then
10857 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10858 else
10859 pkg_failed=yes
10860 fi
10861 else
10862 pkg_failed=untried
10863 fi
10864 if test -n "$COROSYNC_LIBS"; then
10865 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10866 elif test -n "$PKG_CONFIG"; then
10867 if test -n "$PKG_CONFIG" && \
10868 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10869 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10870 ac_status=$?
10871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; then
10873 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10874 else
10875 pkg_failed=yes
10876 fi
10877 else
10878 pkg_failed=untried
10879 fi
10880
10881
10882
10883 if test $pkg_failed = yes; then
10884
10885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10886 _pkg_short_errors_supported=yes
10887 else
10888 _pkg_short_errors_supported=no
10889 fi
10890 if test $_pkg_short_errors_supported = yes; then
10891 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10892 else
10893 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10894 fi
10895 # Put the nasty error message in config.log where it belongs
10896 echo "$COROSYNC_PKG_ERRORS" >&5
10897
10898 { $as_echo "$as_me:$LINENO: result: no" >&5
10899 $as_echo "no" >&6; }
10900 $bailout
10901 elif test $pkg_failed = untried; then
10902 $bailout
10903 else
10904 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10905 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10906 { $as_echo "$as_me:$LINENO: result: yes" >&5
10907 $as_echo "yes" >&6; }
10908 HAVE_COROSYNC=yes
10909 fi
10910 CHECKCONFDB=yes
10911 fi
10912
10913 if test x$BUILDCOROSYNC = xyes; then
10914
10915 pkg_failed=no
10916 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10917 $as_echo_n "checking for QUORUM... " >&6; }
10918
10919 if test -n "$QUORUM_CFLAGS"; then
10920 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10921 elif test -n "$PKG_CONFIG"; then
10922 if test -n "$PKG_CONFIG" && \
10923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10924 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; then
10928 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10929 else
10930 pkg_failed=yes
10931 fi
10932 else
10933 pkg_failed=untried
10934 fi
10935 if test -n "$QUORUM_LIBS"; then
10936 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10937 elif test -n "$PKG_CONFIG"; then
10938 if test -n "$PKG_CONFIG" && \
10939 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10940 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; then
10944 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10945 else
10946 pkg_failed=yes
10947 fi
10948 else
10949 pkg_failed=untried
10950 fi
10951
10952
10953
10954 if test $pkg_failed = yes; then
10955
10956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10957 _pkg_short_errors_supported=yes
10958 else
10959 _pkg_short_errors_supported=no
10960 fi
10961 if test $_pkg_short_errors_supported = yes; then
10962 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10963 else
10964 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10965 fi
10966 # Put the nasty error message in config.log where it belongs
10967 echo "$QUORUM_PKG_ERRORS" >&5
10968
10969 { $as_echo "$as_me:$LINENO: result: no" >&5
10970 $as_echo "no" >&6; }
10971 $bailout
10972 elif test $pkg_failed = untried; then
10973 $bailout
10974 else
10975 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10976 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10977 { $as_echo "$as_me:$LINENO: result: yes" >&5
10978 $as_echo "yes" >&6; }
10979 HAVE_QUORUM=yes
10980 fi
10981 CHECKCPG=yes
10982 CHECKDLM=yes
10983 fi
10984
10985 if test x$BUILDOPENAIS = xyes; then
10986
10987 pkg_failed=no
10988 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10989 $as_echo_n "checking for SALCK... " >&6; }
10990
10991 if test -n "$SALCK_CFLAGS"; then
10992 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10993 elif test -n "$PKG_CONFIG"; then
10994 if test -n "$PKG_CONFIG" && \
10995 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10996 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10997 ac_status=$?
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; then
11000 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11001 else
11002 pkg_failed=yes
11003 fi
11004 else
11005 pkg_failed=untried
11006 fi
11007 if test -n "$SALCK_LIBS"; then
11008 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11009 elif test -n "$PKG_CONFIG"; then
11010 if test -n "$PKG_CONFIG" && \
11011 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11012 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11013 ac_status=$?
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; then
11016 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11017 else
11018 pkg_failed=yes
11019 fi
11020 else
11021 pkg_failed=untried
11022 fi
11023
11024
11025
11026 if test $pkg_failed = yes; then
11027
11028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11029 _pkg_short_errors_supported=yes
11030 else
11031 _pkg_short_errors_supported=no
11032 fi
11033 if test $_pkg_short_errors_supported = yes; then
11034 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11035 else
11036 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11037 fi
11038 # Put the nasty error message in config.log where it belongs
11039 echo "$SALCK_PKG_ERRORS" >&5
11040
11041 { $as_echo "$as_me:$LINENO: result: no" >&5
11042 $as_echo "no" >&6; }
11043 $bailout
11044 elif test $pkg_failed = untried; then
11045 $bailout
11046 else
11047 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11048 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11049 { $as_echo "$as_me:$LINENO: result: yes" >&5
11050 $as_echo "yes" >&6; }
11051 HAVE_SALCK=yes
11052 fi
11053 CHECKCPG=yes
11054 fi
11055
11056
11057
11058 if test x$CHECKCONFDB = xyes; then
11059
11060 pkg_failed=no
11061 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11062 $as_echo_n "checking for CONFDB... " >&6; }
11063
11064 if test -n "$CONFDB_CFLAGS"; then
11065 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11066 elif test -n "$PKG_CONFIG"; then
11067 if test -n "$PKG_CONFIG" && \
11068 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11069 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; then
11073 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11074 else
11075 pkg_failed=yes
11076 fi
11077 else
11078 pkg_failed=untried
11079 fi
11080 if test -n "$CONFDB_LIBS"; then
11081 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11082 elif test -n "$PKG_CONFIG"; then
11083 if test -n "$PKG_CONFIG" && \
11084 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11085 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11086 ac_status=$?
11087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; then
11089 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11090 else
11091 pkg_failed=yes
11092 fi
11093 else
11094 pkg_failed=untried
11095 fi
11096
11097
11098
11099 if test $pkg_failed = yes; then
11100
11101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11102 _pkg_short_errors_supported=yes
11103 else
11104 _pkg_short_errors_supported=no
11105 fi
11106 if test $_pkg_short_errors_supported = yes; then
11107 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11108 else
11109 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11110 fi
11111 # Put the nasty error message in config.log where it belongs
11112 echo "$CONFDB_PKG_ERRORS" >&5
11113
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
11116 HAVE_CONFDB=no
11117 elif test $pkg_failed = untried; then
11118 HAVE_CONFDB=no
11119 else
11120 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11121 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11122 { $as_echo "$as_me:$LINENO: result: yes" >&5
11123 $as_echo "yes" >&6; }
11124 HAVE_CONFDB=yes
11125 fi
11126
11127
11128 for ac_header in corosync/confdb.h
11129 do
11130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 $as_echo_n "checking for $ac_header... " >&6; }
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 $as_echo_n "(cached) " >&6
11136 fi
11137 ac_res=`eval 'as_val=${'$as_ac_Header'}
11138 $as_echo "$as_val"'`
11139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11140 $as_echo "$ac_res" >&6; }
11141 else
11142 # Is the header compilable?
11143 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11144 $as_echo_n "checking $ac_header usability... " >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 $ac_includes_default
11152 #include <$ac_header>
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (ac_try="$ac_compile"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162 (eval "$ac_compile") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest.$ac_objext; then
11172 ac_header_compiler=yes
11173 else
11174 $as_echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177 ac_header_compiler=no
11178 fi
11179
11180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182 $as_echo "$ac_header_compiler" >&6; }
11183
11184 # Is the header present?
11185 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186 $as_echo_n "checking $ac_header presence... " >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 #include <$ac_header>
11194 _ACEOF
11195 if { (ac_try="$ac_cpp conftest.$ac_ext"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199 esac
11200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null && {
11209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11211 }; then
11212 ac_header_preproc=yes
11213 else
11214 $as_echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 ac_header_preproc=no
11218 fi
11219
11220 rm -f conftest.err conftest.$ac_ext
11221 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222 $as_echo "$ac_header_preproc" >&6; }
11223
11224 # So? What about this header?
11225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226 yes:no: )
11227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231 ac_header_preproc=yes
11232 ;;
11233 no:yes:* )
11234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11237 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11241 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246
11247 ;;
11248 esac
11249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11250 $as_echo_n "checking for $ac_header... " >&6; }
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 $as_echo_n "(cached) " >&6
11253 else
11254 eval "$as_ac_Header=\$ac_header_preproc"
11255 fi
11256 ac_res=`eval 'as_val=${'$as_ac_Header'}
11257 $as_echo "$as_val"'`
11258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11259 $as_echo "$ac_res" >&6; }
11260
11261 fi
11262 as_val=`eval 'as_val=${'$as_ac_Header'}
11263 $as_echo "$as_val"'`
11264 if test "x$as_val" = x""yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267 _ACEOF
11268 HAVE_CONFDB_H=yes
11269 else
11270 HAVE_CONFDB_H=no
11271 fi
11272
11273 done
11274
11275
11276 if test x$HAVE_CONFDB != xyes && \
11277 test x$HAVE_CONFDB_H = xyes; then
11278 check_lib_no_libs confdb confdb_initialize
11279 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11280 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11281 CONFDB_LIBS="-lconfdb"
11282 HAVE_CONFDB=yes
11283 fi
11284
11285 if test x$BUILDCOROSYNC = xyes && \
11286 test x$HAVE_CONFDB != xyes &&
11287 test x$CLVMD != xall; then
11288 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11289 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11290 { (exit 1); exit 1; }; }
11291 fi
11292 fi
11293
11294 if test x$CHECKCPG = xyes; then
11295
11296 pkg_failed=no
11297 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11298 $as_echo_n "checking for CPG... " >&6; }
11299
11300 if test -n "$CPG_CFLAGS"; then
11301 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11302 elif test -n "$PKG_CONFIG"; then
11303 if test -n "$PKG_CONFIG" && \
11304 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11305 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11306 ac_status=$?
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; then
11309 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11310 else
11311 pkg_failed=yes
11312 fi
11313 else
11314 pkg_failed=untried
11315 fi
11316 if test -n "$CPG_LIBS"; then
11317 pkg_cv_CPG_LIBS="$CPG_LIBS"
11318 elif test -n "$PKG_CONFIG"; then
11319 if test -n "$PKG_CONFIG" && \
11320 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11321 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11322 ac_status=$?
11323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; then
11325 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11326 else
11327 pkg_failed=yes
11328 fi
11329 else
11330 pkg_failed=untried
11331 fi
11332
11333
11334
11335 if test $pkg_failed = yes; then
11336
11337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11338 _pkg_short_errors_supported=yes
11339 else
11340 _pkg_short_errors_supported=no
11341 fi
11342 if test $_pkg_short_errors_supported = yes; then
11343 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11344 else
11345 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11346 fi
11347 # Put the nasty error message in config.log where it belongs
11348 echo "$CPG_PKG_ERRORS" >&5
11349
11350 { $as_echo "$as_me:$LINENO: result: no" >&5
11351 $as_echo "no" >&6; }
11352 $bailout
11353 elif test $pkg_failed = untried; then
11354 $bailout
11355 else
11356 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11357 CPG_LIBS=$pkg_cv_CPG_LIBS
11358 { $as_echo "$as_me:$LINENO: result: yes" >&5
11359 $as_echo "yes" >&6; }
11360 HAVE_CPG=yes
11361 fi
11362 fi
11363
11364 if test x$CHECKDLM = xyes; then
11365
11366 pkg_failed=no
11367 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11368 $as_echo_n "checking for DLM... " >&6; }
11369
11370 if test -n "$DLM_CFLAGS"; then
11371 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11372 elif test -n "$PKG_CONFIG"; then
11373 if test -n "$PKG_CONFIG" && \
11374 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11375 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11376 ac_status=$?
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; then
11379 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11380 else
11381 pkg_failed=yes
11382 fi
11383 else
11384 pkg_failed=untried
11385 fi
11386 if test -n "$DLM_LIBS"; then
11387 pkg_cv_DLM_LIBS="$DLM_LIBS"
11388 elif test -n "$PKG_CONFIG"; then
11389 if test -n "$PKG_CONFIG" && \
11390 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11391 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11392 ac_status=$?
11393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; then
11395 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11396 else
11397 pkg_failed=yes
11398 fi
11399 else
11400 pkg_failed=untried
11401 fi
11402
11403
11404
11405 if test $pkg_failed = yes; then
11406
11407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11408 _pkg_short_errors_supported=yes
11409 else
11410 _pkg_short_errors_supported=no
11411 fi
11412 if test $_pkg_short_errors_supported = yes; then
11413 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11414 else
11415 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11416 fi
11417 # Put the nasty error message in config.log where it belongs
11418 echo "$DLM_PKG_ERRORS" >&5
11419
11420 { $as_echo "$as_me:$LINENO: result: no" >&5
11421 $as_echo "no" >&6; }
11422 NOTFOUND=0
11423
11424 for ac_header in libdlm.h
11425 do
11426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11429 $as_echo_n "checking for $ac_header... " >&6; }
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 $as_echo_n "(cached) " >&6
11432 fi
11433 ac_res=`eval 'as_val=${'$as_ac_Header'}
11434 $as_echo "$as_val"'`
11435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436 $as_echo "$ac_res" >&6; }
11437 else
11438 # Is the header compilable?
11439 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 $as_echo_n "checking $ac_header usability... " >&6; }
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 #include <$ac_header>
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (ac_try="$ac_compile"
11452 case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455 esac
11456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11457 $as_echo "$ac_try_echo") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest.$ac_objext; then
11468 ac_header_compiler=yes
11469 else
11470 $as_echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_header_compiler=no
11474 fi
11475
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11478 $as_echo "$ac_header_compiler" >&6; }
11479
11480 # Is the header present?
11481 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11482 $as_echo_n "checking $ac_header presence... " >&6; }
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include <$ac_header>
11490 _ACEOF
11491 if { (ac_try="$ac_cpp conftest.$ac_ext"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11497 $as_echo "$ac_try_echo") >&5
11498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } >/dev/null && {
11505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 }; then
11508 ac_header_preproc=yes
11509 else
11510 $as_echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_header_preproc=no
11514 fi
11515
11516 rm -f conftest.err conftest.$ac_ext
11517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 $as_echo "$ac_header_preproc" >&6; }
11519
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 yes:no: )
11523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc=yes
11528 ;;
11529 no:yes:* )
11530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542
11543 ;;
11544 esac
11545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 $as_echo_n "checking for $ac_header... " >&6; }
11547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 $as_echo_n "(cached) " >&6
11549 else
11550 eval "$as_ac_Header=\$ac_header_preproc"
11551 fi
11552 ac_res=`eval 'as_val=${'$as_ac_Header'}
11553 $as_echo "$as_val"'`
11554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11555 $as_echo "$ac_res" >&6; }
11556
11557 fi
11558 as_val=`eval 'as_val=${'$as_ac_Header'}
11559 $as_echo "$as_val"'`
11560 if test "x$as_val" = x""yes; then
11561 cat >>confdefs.h <<_ACEOF
11562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11563 _ACEOF
11564
11565 else
11566 $bailout
11567 fi
11568
11569 done
11570
11571 check_lib_no_libs dlm dlm_lock -lpthread
11572 if test $NOTFOUND = 0; then
11573 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11574 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11575 DLM_LIBS="-ldlm -lpthread"
11576 HAVE_DLM=yes
11577 fi
11578 elif test $pkg_failed = untried; then
11579 NOTFOUND=0
11580
11581 for ac_header in libdlm.h
11582 do
11583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 $as_echo_n "checking for $ac_header... " >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 $as_echo_n "(cached) " >&6
11589 fi
11590 ac_res=`eval 'as_val=${'$as_ac_Header'}
11591 $as_echo "$as_val"'`
11592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11593 $as_echo "$ac_res" >&6; }
11594 else
11595 # Is the header compilable?
11596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 $as_echo_n "checking $ac_header usability... " >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612 esac
11613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614 $as_echo "$ac_try_echo") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest.$ac_objext; then
11625 ac_header_compiler=yes
11626 else
11627 $as_echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_header_compiler=no
11631 fi
11632
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 $as_echo "$ac_header_compiler" >&6; }
11636
11637 # Is the header present?
11638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 $as_echo_n "checking $ac_header presence... " >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 #include <$ac_header>
11647 _ACEOF
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654 $as_echo "$ac_try_echo") >&5
11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } >/dev/null && {
11662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 }; then
11665 ac_header_preproc=yes
11666 else
11667 $as_echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_header_preproc=no
11671 fi
11672
11673 rm -f conftest.err conftest.$ac_ext
11674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11675 $as_echo "$ac_header_preproc" >&6; }
11676
11677 # So? What about this header?
11678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 yes:no: )
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11684 ac_header_preproc=yes
11685 ;;
11686 no:yes:* )
11687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699
11700 ;;
11701 esac
11702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11703 $as_echo_n "checking for $ac_header... " >&6; }
11704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11705 $as_echo_n "(cached) " >&6
11706 else
11707 eval "$as_ac_Header=\$ac_header_preproc"
11708 fi
11709 ac_res=`eval 'as_val=${'$as_ac_Header'}
11710 $as_echo "$as_val"'`
11711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11712 $as_echo "$ac_res" >&6; }
11713
11714 fi
11715 as_val=`eval 'as_val=${'$as_ac_Header'}
11716 $as_echo "$as_val"'`
11717 if test "x$as_val" = x""yes; then
11718 cat >>confdefs.h <<_ACEOF
11719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720 _ACEOF
11721
11722 else
11723 $bailout
11724 fi
11725
11726 done
11727
11728 check_lib_no_libs dlm dlm_lock -lpthread
11729 if test $NOTFOUND = 0; then
11730 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11731 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11732 DLM_LIBS="-ldlm -lpthread"
11733 HAVE_DLM=yes
11734 fi
11735 else
11736 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11737 DLM_LIBS=$pkg_cv_DLM_LIBS
11738 { $as_echo "$as_me:$LINENO: result: yes" >&5
11739 $as_echo "yes" >&6; }
11740 HAVE_DLM=yes
11741 fi
11742 fi
11743
11744 if test x$CLVMD = xall; then
11745 CLVMD=none
11746 if test x$HAVE_CCS = xyes && \
11747 test x$HAVE_GULM = xyes; then
11748 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11749 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11750 CLVMD="$CLVMD,gulm"
11751 fi
11752 if test x$HAVE_CMAN = xyes && \
11753 test x$HAVE_DLM = xyes; then
11754 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11755 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11756 CLVMD="$CLVMD,cman"
11757 fi
11758 if test x$HAVE_COROSYNC = xyes && \
11759 test x$HAVE_QUORUM = xyes && \
11760 test x$HAVE_CPG = xyes && \
11761 test x$HAVE_DLM = xyes && \
11762 test x$HAVE_CONFDB = xyes; then
11763 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11764 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11765 CLVMD="$CLVMD,corosync"
11766 fi
11767 if test x$HAVE_COROSYNC = xyes && \
11768 test x$HAVE_CPG = xyes && \
11769 test x$HAVE_SALCK = xyes; then
11770 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11771 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11772 CLVMD="$CLVMD,openais"
11773 fi
11774 if test x$CLVMD = xnone; then
11775 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11776 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11777 fi
11778 fi
11779
11780 ################################################################################
11781 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11782 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11783 # Check whether --enable-cmirrord was given.
11784 if test "${enable_cmirrord+set}" = set; then
11785 enableval=$enable_cmirrord; CMIRRORD=$enableval
11786 else
11787 CMIRRORD=no
11788 fi
11789
11790 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11791 $as_echo "$CMIRRORD" >&6; }
11792
11793 BUILD_CMIRRORD=$CMIRRORD
11794
11795 ################################################################################
11796
11797
11798 if test "x$BUILD_CMIRRORD" = xyes; then
11799
11800 # Check whether --with-cmirrord-pidfile was given.
11801 if test "${with_cmirrord_pidfile+set}" = set; then
11802 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11803 #define CMIRRORD_PIDFILE "$withval"
11804 _ACEOF
11805
11806 else
11807 cat >>confdefs.h <<_ACEOF
11808 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11809 _ACEOF
11810
11811 fi
11812
11813 fi
11814
11815 ################################################################################
11816 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11817 if test x$PKGCONFIG_INIT != x1; then
11818 pkg_config_init
11819 fi
11820
11821 pkg_failed=no
11822 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11823 $as_echo_n "checking for SACKPT... " >&6; }
11824
11825 if test -n "$SACKPT_CFLAGS"; then
11826 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11827 elif test -n "$PKG_CONFIG"; then
11828 if test -n "$PKG_CONFIG" && \
11829 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11830 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11831 ac_status=$?
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; then
11834 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11835 else
11836 pkg_failed=yes
11837 fi
11838 else
11839 pkg_failed=untried
11840 fi
11841 if test -n "$SACKPT_LIBS"; then
11842 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11843 elif test -n "$PKG_CONFIG"; then
11844 if test -n "$PKG_CONFIG" && \
11845 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11846 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11847 ac_status=$?
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; then
11850 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11851 else
11852 pkg_failed=yes
11853 fi
11854 else
11855 pkg_failed=untried
11856 fi
11857
11858
11859
11860 if test $pkg_failed = yes; then
11861
11862 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11863 _pkg_short_errors_supported=yes
11864 else
11865 _pkg_short_errors_supported=no
11866 fi
11867 if test $_pkg_short_errors_supported = yes; then
11868 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11869 else
11870 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11871 fi
11872 # Put the nasty error message in config.log where it belongs
11873 echo "$SACKPT_PKG_ERRORS" >&5
11874
11875 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11876
11877 $SACKPT_PKG_ERRORS
11878
11879 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11880 installed software in a non-standard prefix.
11881
11882 Alternatively, you may set the environment variables SACKPT_CFLAGS
11883 and SACKPT_LIBS to avoid the need to call pkg-config.
11884 See the pkg-config man page for more details.
11885 " >&5
11886 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11887
11888 $SACKPT_PKG_ERRORS
11889
11890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891 installed software in a non-standard prefix.
11892
11893 Alternatively, you may set the environment variables SACKPT_CFLAGS
11894 and SACKPT_LIBS to avoid the need to call pkg-config.
11895 See the pkg-config man page for more details.
11896 " >&2;}
11897 { (exit 1); exit 1; }; }
11898 elif test $pkg_failed = untried; then
11899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11902 is in your PATH or set the PKG_CONFIG environment variable to the full
11903 path to pkg-config.
11904
11905 Alternatively, you may set the environment variables SACKPT_CFLAGS
11906 and SACKPT_LIBS to avoid the need to call pkg-config.
11907 See the pkg-config man page for more details.
11908
11909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910 See \`config.log' for more details." >&5
11911 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11912 is in your PATH or set the PKG_CONFIG environment variable to the full
11913 path to pkg-config.
11914
11915 Alternatively, you may set the environment variables SACKPT_CFLAGS
11916 and SACKPT_LIBS to avoid the need to call pkg-config.
11917 See the pkg-config man page for more details.
11918
11919 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11920 See \`config.log' for more details." >&2;}
11921 { (exit 1); exit 1; }; }; }
11922 else
11923 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11924 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11925 { $as_echo "$as_me:$LINENO: result: yes" >&5
11926 $as_echo "yes" >&6; }
11927 :
11928 fi
11929 if test x$HAVE_CPG != xyes; then
11930
11931 pkg_failed=no
11932 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11933 $as_echo_n "checking for CPG... " >&6; }
11934
11935 if test -n "$CPG_CFLAGS"; then
11936 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11937 elif test -n "$PKG_CONFIG"; then
11938 if test -n "$PKG_CONFIG" && \
11939 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11940 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11941 ac_status=$?
11942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; then
11944 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11945 else
11946 pkg_failed=yes
11947 fi
11948 else
11949 pkg_failed=untried
11950 fi
11951 if test -n "$CPG_LIBS"; then
11952 pkg_cv_CPG_LIBS="$CPG_LIBS"
11953 elif test -n "$PKG_CONFIG"; then
11954 if test -n "$PKG_CONFIG" && \
11955 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11956 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11957 ac_status=$?
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; then
11960 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11961 else
11962 pkg_failed=yes
11963 fi
11964 else
11965 pkg_failed=untried
11966 fi
11967
11968
11969
11970 if test $pkg_failed = yes; then
11971
11972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11973 _pkg_short_errors_supported=yes
11974 else
11975 _pkg_short_errors_supported=no
11976 fi
11977 if test $_pkg_short_errors_supported = yes; then
11978 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11979 else
11980 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11981 fi
11982 # Put the nasty error message in config.log where it belongs
11983 echo "$CPG_PKG_ERRORS" >&5
11984
11985 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11986
11987 $CPG_PKG_ERRORS
11988
11989 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11990 installed software in a non-standard prefix.
11991
11992 Alternatively, you may set the environment variables CPG_CFLAGS
11993 and CPG_LIBS to avoid the need to call pkg-config.
11994 See the pkg-config man page for more details.
11995 " >&5
11996 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
11997
11998 $CPG_PKG_ERRORS
11999
12000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12001 installed software in a non-standard prefix.
12002
12003 Alternatively, you may set the environment variables CPG_CFLAGS
12004 and CPG_LIBS to avoid the need to call pkg-config.
12005 See the pkg-config man page for more details.
12006 " >&2;}
12007 { (exit 1); exit 1; }; }
12008 elif test $pkg_failed = untried; then
12009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12011 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12012 is in your PATH or set the PKG_CONFIG environment variable to the full
12013 path to pkg-config.
12014
12015 Alternatively, you may set the environment variables CPG_CFLAGS
12016 and CPG_LIBS to avoid the need to call pkg-config.
12017 See the pkg-config man page for more details.
12018
12019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12020 See \`config.log' for more details." >&5
12021 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12022 is in your PATH or set the PKG_CONFIG environment variable to the full
12023 path to pkg-config.
12024
12025 Alternatively, you may set the environment variables CPG_CFLAGS
12026 and CPG_LIBS to avoid the need to call pkg-config.
12027 See the pkg-config man page for more details.
12028
12029 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12030 See \`config.log' for more details." >&2;}
12031 { (exit 1); exit 1; }; }; }
12032 else
12033 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12034 CPG_LIBS=$pkg_cv_CPG_LIBS
12035 { $as_echo "$as_me:$LINENO: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037 :
12038 fi
12039 fi
12040 fi
12041
12042 ################################################################################
12043 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12044 $as_echo_n "checking whether to enable debugging... " >&6; }
12045 # Check whether --enable-debug was given.
12046 if test "${enable_debug+set}" = set; then
12047 enableval=$enable_debug; DEBUG=$enableval
12048 else
12049 DEBUG=no
12050 fi
12051
12052 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12053 $as_echo "$DEBUG" >&6; }
12054
12055 if test x$DEBUG = xyes; then
12056 COPTIMISE_FLAG=
12057 else
12058 CSCOPE_CMD=
12059 fi
12060
12061 ################################################################################
12062 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12063 $as_echo_n "checking for C optimisation flag... " >&6; }
12064
12065 # Check whether --with-optimisation was given.
12066 if test "${with_optimisation+set}" = set; then
12067 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12068 fi
12069
12070 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12071 $as_echo "$COPTIMISE_FLAG" >&6; }
12072
12073 ################################################################################
12074 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12075 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12076 # Check whether --enable-profiling was given.
12077 if test "${enable_profiling+set}" = set; then
12078 enableval=$enable_profiling; PROFILING=$enableval
12079 else
12080 PROFILING=no
12081 fi
12082
12083 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12084 $as_echo "$PROFILING" >&6; }
12085
12086 if test "x$PROFILING" = xyes; then
12087 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12088 # Extract the first word of "lcov", so it can be a program name with args.
12089 set dummy lcov; ac_word=$2
12090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if test "${ac_cv_path_LCOV+set}" = set; then
12093 $as_echo_n "(cached) " >&6
12094 else
12095 case $LCOV in
12096 [\\/]* | ?:[\\/]*)
12097 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12098 ;;
12099 *)
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12107 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 break 2
12110 fi
12111 done
12112 done
12113 IFS=$as_save_IFS
12114
12115 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
12116 ;;
12117 esac
12118 fi
12119 LCOV=$ac_cv_path_LCOV
12120 if test -n "$LCOV"; then
12121 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12122 $as_echo "$LCOV" >&6; }
12123 else
12124 { $as_echo "$as_me:$LINENO: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127
12128
12129 # Extract the first word of "genhtml", so it can be a program name with args.
12130 set dummy genhtml; ac_word=$2
12131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if test "${ac_cv_path_GENHTML+set}" = set; then
12134 $as_echo_n "(cached) " >&6
12135 else
12136 case $GENHTML in
12137 [\\/]* | ?:[\\/]*)
12138 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12139 ;;
12140 *)
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 break 2
12151 fi
12152 done
12153 done
12154 IFS=$as_save_IFS
12155
12156 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
12157 ;;
12158 esac
12159 fi
12160 GENHTML=$ac_cv_path_GENHTML
12161 if test -n "$GENHTML"; then
12162 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12163 $as_echo "$GENHTML" >&6; }
12164 else
12165 { $as_echo "$as_me:$LINENO: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169
12170 if test "$LCOV" = no -o "$GENHTML" = no ; then
12171 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12172 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12173 { (exit 1); exit 1; }; }
12174 fi
12175 fi
12176
12177 ################################################################################
12178 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12179 $as_echo_n "checking whether to use device-mapper... " >&6; }
12180 # Check whether --enable-devmapper was given.
12181 if test "${enable_devmapper+set}" = set; then
12182 enableval=$enable_devmapper; DEVMAPPER=$enableval
12183 fi
12184
12185 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12186 $as_echo "$DEVMAPPER" >&6; }
12187
12188 if test x$DEVMAPPER = xyes; then
12189
12190 cat >>confdefs.h <<\_ACEOF
12191 #define DEVMAPPER_SUPPORT 1
12192 _ACEOF
12193
12194 fi
12195
12196 ################################################################################
12197 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12198 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12199 # Check whether --enable-udev_sync was given.
12200 if test "${enable_udev_sync+set}" = set; then
12201 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12202 else
12203 UDEV_SYNC=no
12204 fi
12205
12206 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12207 $as_echo "$UDEV_SYNC" >&6; }
12208
12209 if test x$UDEV_SYNC = xyes; then
12210
12211 cat >>confdefs.h <<\_ACEOF
12212 #define UDEV_SYNC_SUPPORT 1
12213 _ACEOF
12214
12215 fi
12216
12217 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12218 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12219 # Check whether --enable-udev_rules was given.
12220 if test "${enable_udev_rules+set}" = set; then
12221 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12222 else
12223 UDEV_RULES=$UDEV_SYNC
12224 fi
12225
12226 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12227 $as_echo "$UDEV_RULES" >&6; }
12228
12229 ################################################################################
12230
12231 if test x$UDEV_SYNC = xyes; then
12232 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12233 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12234 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ludev $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char udev_queue_get_udev_is_active ();
12253 int
12254 main ()
12255 {
12256 return udev_queue_get_udev_is_active ();
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268 $as_echo "$ac_try_echo") >&5
12269 (eval "$ac_link") 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext && {
12279 test "$cross_compiling" = yes ||
12280 $as_test_x conftest$ac_exeext
12281 }; then
12282 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12283 else
12284 $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12288 fi
12289
12290 rm -rf conftest.dSYM
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12296 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12297 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12298 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12299 else
12300 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12301 fi
12302
12303
12304 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12305
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12308 _ACEOF
12309
12310 LIBS="-ludev $LIBS"
12311 else
12312 { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
12313 $as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
12314 fi
12315 fi
12316
12317 ################################################################################
12318 # Check whether --enable-compat was given.
12319 if test "${enable_compat+set}" = set; then
12320 enableval=$enable_compat; DM_COMPAT=$enableval
12321 else
12322 DM_COMPAT=no
12323 fi
12324
12325
12326 ################################################################################
12327 # Check whether --enable-units-compat was given.
12328 if test "${enable_units_compat+set}" = set; then
12329 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12330 else
12331 UNITS_COMPAT=no
12332 fi
12333
12334
12335 if test x$UNITS_COMPAT = xyes; then
12336
12337 cat >>confdefs.h <<\_ACEOF
12338 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12339 _ACEOF
12340
12341 fi
12342
12343 ################################################################################
12344 # Check whether --enable-ioctl was given.
12345 if test "${enable_ioctl+set}" = set; then
12346 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12347 fi
12348
12349
12350 ################################################################################
12351 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12352 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12353 # Check whether --enable-o_direct was given.
12354 if test "${enable_o_direct+set}" = set; then
12355 enableval=$enable_o_direct; ODIRECT=$enableval
12356 fi
12357
12358 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12359 $as_echo "$ODIRECT" >&6; }
12360
12361 if test x$ODIRECT = xyes; then
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define O_DIRECT_SUPPORT 1
12365 _ACEOF
12366
12367 fi
12368
12369 ################################################################################
12370 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12371 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12372 # Check whether --enable-applib was given.
12373 if test "${enable_applib+set}" = set; then
12374 enableval=$enable_applib; APPLIB=$enableval
12375 else
12376 APPLIB=no
12377 fi
12378
12379 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12380 $as_echo "$APPLIB" >&6; }
12381
12382 test x$APPLIB = xyes \
12383 && LVM2APP_LIB=-llvm2app \
12384 || LVM2APP_LIB=
12385
12386 ################################################################################
12387 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12388 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12389 # Check whether --enable-cmdlib was given.
12390 if test "${enable_cmdlib+set}" = set; then
12391 enableval=$enable_cmdlib; CMDLIB=$enableval
12392 else
12393 CMDLIB=no
12394 fi
12395
12396 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12397 $as_echo "$CMDLIB" >&6; }
12398
12399 test x$CMDLIB = xyes \
12400 && LVM2CMD_LIB=-llvm2cmd \
12401 || LVM2CMD_LIB=
12402
12403 ################################################################################
12404 # Check whether --enable-pkgconfig was given.
12405 if test "${enable_pkgconfig+set}" = set; then
12406 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12407 else
12408 PKGCONFIG=no
12409 fi
12410
12411
12412 ################################################################################
12413 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12414 $as_echo_n "checking whether to install fsadm... " >&6; }
12415 # Check whether --enable-fsadm was given.
12416 if test "${enable_fsadm+set}" = set; then
12417 enableval=$enable_fsadm; FSADM=$enableval
12418 fi
12419
12420 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12421 $as_echo "$FSADM" >&6; }
12422
12423 ################################################################################
12424 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12425 $as_echo_n "checking whether to use dmeventd... " >&6; }
12426 # Check whether --enable-dmeventd was given.
12427 if test "${enable_dmeventd+set}" = set; then
12428 enableval=$enable_dmeventd; DMEVENTD=$enableval
12429 fi
12430
12431 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12432 $as_echo "$DMEVENTD" >&6; }
12433
12434 BUILD_DMEVENTD=$DMEVENTD
12435
12436 if test x$DMEVENTD = xyes; then
12437 if test x$MIRRORS != xinternal; then
12438 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12439 " >&5
12440 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12441 " >&2;}
12442 { (exit 1); exit 1; }; }
12443 fi
12444 if test x$CMDLIB = xno; then
12445 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12446 " >&5
12447 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12448 " >&2;}
12449 { (exit 1); exit 1; }; }
12450 fi
12451 fi
12452
12453 if test x$DMEVENTD = xyes; then
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define DMEVENTD 1
12457 _ACEOF
12458
12459 fi
12460
12461 ################################################################################
12462
12463 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12464 $as_echo_n "checking for getline in -lc... " >&6; }
12465 if test "${ac_cv_lib_c_getline+set}" = set; then
12466 $as_echo_n "(cached) " >&6
12467 else
12468 ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-lc $LIBS"
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 char getline ();
12484 int
12485 main ()
12486 {
12487 return getline ();
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (ac_try="$ac_link"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499 $as_echo "$ac_try_echo") >&5
12500 (eval "$ac_link") 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest$ac_exeext && {
12510 test "$cross_compiling" = yes ||
12511 $as_test_x conftest$ac_exeext
12512 }; then
12513 ac_cv_lib_c_getline=yes
12514 else
12515 $as_echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 ac_cv_lib_c_getline=no
12519 fi
12520
12521 rm -rf conftest.dSYM
12522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12523 conftest$ac_exeext conftest.$ac_ext
12524 LIBS=$ac_check_lib_save_LIBS
12525 fi
12526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12527 $as_echo "$ac_cv_lib_c_getline" >&6; }
12528 if test "x$ac_cv_lib_c_getline" = x""yes; then
12529
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_GETLINE 1
12532 _ACEOF
12533
12534 fi
12535
12536
12537 ################################################################################
12538
12539 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12540 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12541 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12542 $as_echo_n "(cached) " >&6
12543 else
12544 ac_check_lib_save_LIBS=$LIBS
12545 LIBS="-lc $LIBS"
12546 cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h. */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552
12553 /* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12556 #ifdef __cplusplus
12557 extern "C"
12558 #endif
12559 char canonicalize_file_name ();
12560 int
12561 main ()
12562 {
12563 return canonicalize_file_name ();
12564 ;
12565 return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12575 $as_echo "$ac_try_echo") >&5
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest$ac_exeext && {
12586 test "$cross_compiling" = yes ||
12587 $as_test_x conftest$ac_exeext
12588 }; then
12589 ac_cv_lib_c_canonicalize_file_name=yes
12590 else
12591 $as_echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 ac_cv_lib_c_canonicalize_file_name=no
12595 fi
12596
12597 rm -rf conftest.dSYM
12598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12601 fi
12602 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12603 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12604 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_CANONICALIZE_FILE_NAME 1
12608 _ACEOF
12609
12610 fi
12611
12612
12613 ################################################################################
12614 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12615 then exec_prefix="";
12616 fi;
12617
12618 ################################################################################
12619 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12622 $as_echo_n "(cached) " >&6
12623 else
12624 ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-ldl $LIBS"
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 char dlopen ();
12640 int
12641 main ()
12642 {
12643 return dlopen ();
12644 ;
12645 return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653 esac
12654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655 $as_echo "$ac_try_echo") >&5
12656 (eval "$ac_link") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && {
12663 test -z "$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12665 } && test -s conftest$ac_exeext && {
12666 test "$cross_compiling" = yes ||
12667 $as_test_x conftest$ac_exeext
12668 }; then
12669 ac_cv_lib_dl_dlopen=yes
12670 else
12671 $as_echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ac_cv_lib_dl_dlopen=no
12675 fi
12676
12677 rm -rf conftest.dSYM
12678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12681 fi
12682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12684 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12685 HAVE_LIBDL=yes
12686 else
12687 HAVE_LIBDL=no
12688 fi
12689
12690
12691 if [ "x$HAVE_LIBDL" = xyes ]; then
12692
12693 cat >>confdefs.h <<\_ACEOF
12694 #define HAVE_LIBDL 1
12695 _ACEOF
12696
12697 LIBS="-ldl $LIBS"
12698 else
12699 HAVE_LIBDL=no
12700 fi
12701
12702 ################################################################################
12703 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12704 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12705 \) -a "x$STATIC_LINK" = xyes ];
12706 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12707 " >&5
12708 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12709 " >&2;}
12710 { (exit 1); exit 1; }; }
12711 fi
12712
12713 ################################################################################
12714 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12715 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12716 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12717 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12719 else
12720 ac_check_lib_save_LIBS=$LIBS
12721 LIBS="-lpthread $LIBS"
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h. */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728
12729 /* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 char pthread_mutex_lock ();
12736 int
12737 main ()
12738 {
12739 return pthread_mutex_lock ();
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 rm -f conftest.$ac_objext conftest$ac_exeext
12745 if { (ac_try="$ac_link"
12746 case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749 esac
12750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751 $as_echo "$ac_try_echo") >&5
12752 (eval "$ac_link") 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest$ac_exeext && {
12762 test "$cross_compiling" = yes ||
12763 $as_test_x conftest$ac_exeext
12764 }; then
12765 ac_cv_lib_pthread_pthread_mutex_lock=yes
12766 else
12767 $as_echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 ac_cv_lib_pthread_pthread_mutex_lock=no
12771 fi
12772
12773 rm -rf conftest.dSYM
12774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12775 conftest$ac_exeext conftest.$ac_ext
12776 LIBS=$ac_check_lib_save_LIBS
12777 fi
12778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12779 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12780 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12781 PTHREAD_LIBS="-lpthread"
12782 else
12783 hard_bailout
12784 fi
12785
12786 fi
12787
12788 ################################################################################
12789 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12790 $as_echo_n "checking whether to enable selinux support... " >&6; }
12791 # Check whether --enable-selinux was given.
12792 if test "${enable_selinux+set}" = set; then
12793 enableval=$enable_selinux; SELINUX=$enableval
12794 fi
12795
12796 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12797 $as_echo "$SELINUX" >&6; }
12798
12799 ################################################################################
12800 if test x$SELINUX = xyes; then
12801 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12802 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12803 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-lsepol $LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char sepol_check_context ();
12822 int
12823 main ()
12824 {
12825 return sepol_check_context ();
12826 ;
12827 return 0;
12828 }
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_link") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12850 }; then
12851 ac_cv_lib_sepol_sepol_check_context=yes
12852 else
12853 $as_echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 ac_cv_lib_sepol_sepol_check_context=no
12857 fi
12858
12859 rm -rf conftest.dSYM
12860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12863 fi
12864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12865 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12866 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12867 HAVE_SEPOL=yes
12868 else
12869 HAVE_SEPOL=no
12870 fi
12871
12872
12873 if test x$HAVE_SEPOL = xyes; then
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_SEPOL 1
12877 _ACEOF
12878
12879 SELINUX_LIBS="-lsepol $SELINUX_LIBS"
12880 fi
12881
12882 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12883 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12884 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lselinux $LIBS"
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899 #ifdef __cplusplus
12900 extern "C"
12901 #endif
12902 char is_selinux_enabled ();
12903 int
12904 main ()
12905 {
12906 return is_selinux_enabled ();
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (ac_try="$ac_link"
12913 case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12918 $as_echo "$ac_try_echo") >&5
12919 (eval "$ac_link") 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } && {
12926 test -z "$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12928 } && test -s conftest$ac_exeext && {
12929 test "$cross_compiling" = yes ||
12930 $as_test_x conftest$ac_exeext
12931 }; then
12932 ac_cv_lib_selinux_is_selinux_enabled=yes
12933 else
12934 $as_echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937 ac_cv_lib_selinux_is_selinux_enabled=no
12938 fi
12939
12940 rm -rf conftest.dSYM
12941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12944 fi
12945 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12946 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12947 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12948 HAVE_SELINUX=yes
12949 else
12950 HAVE_SELINUX=no
12951 fi
12952
12953
12954 if test x$HAVE_SELINUX = xyes; then
12955
12956 cat >>confdefs.h <<\_ACEOF
12957 #define HAVE_SELINUX 1
12958 _ACEOF
12959
12960 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
12961 else
12962 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12963 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
12964 fi
12965 LIBS="$SELINUX_LIBS $LIBS"
12966
12967 # With --enable-static_link and selinux enabled, linking
12968 # fails on at least Debian unstable due to unsatisfied references
12969 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12970 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12971 lvm_saved_libs=$LIBS
12972 LIBS="$LIBS -static"
12973 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12974 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
12975 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12976 $as_echo_n "(cached) " >&6
12977 else
12978 ac_func_search_save_LIBS=$LIBS
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12989 #ifdef __cplusplus
12990 extern "C"
12991 #endif
12992 char pthread_mutex_lock ();
12993 int
12994 main ()
12995 {
12996 return pthread_mutex_lock ();
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 for ac_lib in '' pthread; do
13002 if test -z "$ac_lib"; then
13003 ac_res="none required"
13004 else
13005 ac_res=-l$ac_lib
13006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13007 fi
13008 rm -f conftest.$ac_objext conftest$ac_exeext
13009 if { (ac_try="$ac_link"
13010 case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013 esac
13014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13015 $as_echo "$ac_try_echo") >&5
13016 (eval "$ac_link") 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && {
13023 test -z "$ac_c_werror_flag" ||
13024 test ! -s conftest.err
13025 } && test -s conftest$ac_exeext && {
13026 test "$cross_compiling" = yes ||
13027 $as_test_x conftest$ac_exeext
13028 }; then
13029 ac_cv_search_pthread_mutex_lock=$ac_res
13030 else
13031 $as_echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034
13035 fi
13036
13037 rm -rf conftest.dSYM
13038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13039 conftest$ac_exeext
13040 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13041 break
13042 fi
13043 done
13044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13045 :
13046 else
13047 ac_cv_search_pthread_mutex_lock=no
13048 fi
13049 rm conftest.$ac_ext
13050 LIBS=$ac_func_search_save_LIBS
13051 fi
13052 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13053 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
13054 ac_res=$ac_cv_search_pthread_mutex_lock
13055 if test "$ac_res" != no; then
13056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13057 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
13058 LIB_PTHREAD=-lpthread
13059 fi
13060
13061 LIBS=$lvm_saved_libs
13062 fi
13063 fi
13064
13065 ################################################################################
13066 if test x$REALTIME = xyes; then
13067 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13068 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13069 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-lrt $LIBS"
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char clock_gettime ();
13088 int
13089 main ()
13090 {
13091 return clock_gettime ();
13092 ;
13093 return 0;
13094 }
13095 _ACEOF
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (ac_try="$ac_link"
13098 case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101 esac
13102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13103 $as_echo "$ac_try_echo") >&5
13104 (eval "$ac_link") 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } && {
13111 test -z "$ac_c_werror_flag" ||
13112 test ! -s conftest.err
13113 } && test -s conftest$ac_exeext && {
13114 test "$cross_compiling" = yes ||
13115 $as_test_x conftest$ac_exeext
13116 }; then
13117 ac_cv_lib_rt_clock_gettime=yes
13118 else
13119 $as_echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_cv_lib_rt_clock_gettime=no
13123 fi
13124
13125 rm -rf conftest.dSYM
13126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_lib_save_LIBS
13129 fi
13130 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13131 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13132 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13133 HAVE_REALTIME=yes
13134 else
13135 HAVE_REALTIME=no
13136 fi
13137
13138
13139 if test x$HAVE_REALTIME = xyes; then
13140
13141 cat >>confdefs.h <<\_ACEOF
13142 #define HAVE_REALTIME 1
13143 _ACEOF
13144
13145 LIBS="-lrt $LIBS"
13146 else
13147 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13148 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13149 fi
13150 fi
13151
13152 ################################################################################
13153
13154 for ac_header in getopt.h
13155 do
13156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13159 $as_echo_n "checking for $ac_header... " >&6; }
13160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13161 $as_echo_n "(cached) " >&6
13162 fi
13163 ac_res=`eval 'as_val=${'$as_ac_Header'}
13164 $as_echo "$as_val"'`
13165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13166 $as_echo "$ac_res" >&6; }
13167 else
13168 # Is the header compilable?
13169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13170 $as_echo_n "checking $ac_header usability... " >&6; }
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 $ac_includes_default
13178 #include <$ac_header>
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185 esac
13186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187 $as_echo "$ac_try_echo") >&5
13188 (eval "$ac_compile") 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
13198 ac_header_compiler=yes
13199 else
13200 $as_echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203 ac_header_compiler=no
13204 fi
13205
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13208 $as_echo "$ac_header_compiler" >&6; }
13209
13210 # Is the header present?
13211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13212 $as_echo_n "checking $ac_header presence... " >&6; }
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h. */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 #include <$ac_header>
13220 _ACEOF
13221 if { (ac_try="$ac_cpp conftest.$ac_ext"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227 $as_echo "$ac_try_echo") >&5
13228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } >/dev/null && {
13235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 }; then
13238 ac_header_preproc=yes
13239 else
13240 $as_echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 ac_header_preproc=no
13244 fi
13245
13246 rm -f conftest.err conftest.$ac_ext
13247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13248 $as_echo "$ac_header_preproc" >&6; }
13249
13250 # So? What about this header?
13251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13252 yes:no: )
13253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13257 ac_header_preproc=yes
13258 ;;
13259 no:yes:* )
13260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13272
13273 ;;
13274 esac
13275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13276 $as_echo_n "checking for $ac_header... " >&6; }
13277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13278 $as_echo_n "(cached) " >&6
13279 else
13280 eval "$as_ac_Header=\$ac_header_preproc"
13281 fi
13282 ac_res=`eval 'as_val=${'$as_ac_Header'}
13283 $as_echo "$as_val"'`
13284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13285 $as_echo "$ac_res" >&6; }
13286
13287 fi
13288 as_val=`eval 'as_val=${'$as_ac_Header'}
13289 $as_echo "$as_val"'`
13290 if test "x$as_val" = x""yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13293 _ACEOF
13294
13295 cat >>confdefs.h <<\_ACEOF
13296 #define HAVE_GETOPTLONG 1
13297 _ACEOF
13298
13299 fi
13300
13301 done
13302
13303
13304 ################################################################################
13305 if test x$READLINE != xno; then
13306 lvm_saved_libs=$LIBS
13307 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13308 $as_echo_n "checking for library containing tgetent... " >&6; }
13309 if test "${ac_cv_search_tgetent+set}" = set; then
13310 $as_echo_n "(cached) " >&6
13311 else
13312 ac_func_search_save_LIBS=$LIBS
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323 #ifdef __cplusplus
13324 extern "C"
13325 #endif
13326 char tgetent ();
13327 int
13328 main ()
13329 {
13330 return tgetent ();
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 for ac_lib in '' tinfo ncurses curses termcap termlib; do
13336 if test -z "$ac_lib"; then
13337 ac_res="none required"
13338 else
13339 ac_res=-l$ac_lib
13340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13341 fi
13342 rm -f conftest.$ac_objext conftest$ac_exeext
13343 if { (ac_try="$ac_link"
13344 case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347 esac
13348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13349 $as_echo "$ac_try_echo") >&5
13350 (eval "$ac_link") 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && {
13357 test -z "$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 } && test -s conftest$ac_exeext && {
13360 test "$cross_compiling" = yes ||
13361 $as_test_x conftest$ac_exeext
13362 }; then
13363 ac_cv_search_tgetent=$ac_res
13364 else
13365 $as_echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368
13369 fi
13370
13371 rm -rf conftest.dSYM
13372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373 conftest$ac_exeext
13374 if test "${ac_cv_search_tgetent+set}" = set; then
13375 break
13376 fi
13377 done
13378 if test "${ac_cv_search_tgetent+set}" = set; then
13379 :
13380 else
13381 ac_cv_search_tgetent=no
13382 fi
13383 rm conftest.$ac_ext
13384 LIBS=$ac_func_search_save_LIBS
13385 fi
13386 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13387 $as_echo "$ac_cv_search_tgetent" >&6; }
13388 ac_res=$ac_cv_search_tgetent
13389 if test "$ac_res" != no; then
13390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391 READLINE_LIBS=$ac_cv_search_tgetent
13392 else
13393
13394 if test "$READLINE" = yes; then
13395 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13396 --enable-readline option (which is enabled by default). Either disable readline
13397 support with --disable-readline or download and install termcap from:
13398 ftp.gnu.org/gnu/termcap
13399 Note: if you are using precompiled packages you will also need the development
13400 package as well (which may be called termcap-devel or something similar).
13401 Note: (n)curses also seems to work as a substitute for termcap. This was
13402 not found either - but you could try installing that as well." >&5
13403 $as_echo "$as_me: error: termcap could not be found which is required for the
13404 --enable-readline option (which is enabled by default). Either disable readline
13405 support with --disable-readline or download and install termcap from:
13406 ftp.gnu.org/gnu/termcap
13407 Note: if you are using precompiled packages you will also need the development
13408 package as well (which may be called termcap-devel or something similar).
13409 Note: (n)curses also seems to work as a substitute for termcap. This was
13410 not found either - but you could try installing that as well." >&2;}
13411 { (exit 1); exit 1; }; }
13412 fi
13413 fi
13414
13415 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13416 $as_echo_n "checking for readline in -lreadline... " >&6; }
13417 if test "${ac_cv_lib_readline_readline+set}" = set; then
13418 $as_echo_n "(cached) " >&6
13419 else
13420 ac_check_lib_save_LIBS=$LIBS
13421 LIBS="-lreadline $LIBS"
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char readline ();
13436 int
13437 main ()
13438 {
13439 return readline ();
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (ac_try="$ac_link"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449 esac
13450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13451 $as_echo "$ac_try_echo") >&5
13452 (eval "$ac_link") 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest$ac_exeext && {
13462 test "$cross_compiling" = yes ||
13463 $as_test_x conftest$ac_exeext
13464 }; then
13465 ac_cv_lib_readline_readline=yes
13466 else
13467 $as_echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 ac_cv_lib_readline_readline=no
13471 fi
13472
13473 rm -rf conftest.dSYM
13474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13475 conftest$ac_exeext conftest.$ac_ext
13476 LIBS=$ac_check_lib_save_LIBS
13477 fi
13478 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13479 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13480 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13481
13482
13483 cat >>confdefs.h <<\_ACEOF
13484 #define READLINE_SUPPORT 1
13485 _ACEOF
13486
13487 LIBS=$lvm_saved_libs
13488 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13489 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13490 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13491 $as_echo_n "(cached) " >&6
13492 else
13493 ac_check_lib_save_LIBS=$LIBS
13494 LIBS="-lreadline $LIBS"
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501
13502 /* Override any GCC internal prototype to avoid an error.
13503 Use char because int might match the return type of a GCC
13504 builtin and then its argument prototype would still apply. */
13505 #ifdef __cplusplus
13506 extern "C"
13507 #endif
13508 char rl_line_buffer ();
13509 int
13510 main ()
13511 {
13512 return rl_line_buffer ();
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (ac_try="$ac_link"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525 (eval "$ac_link") 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest$ac_exeext && {
13535 test "$cross_compiling" = yes ||
13536 $as_test_x conftest$ac_exeext
13537 }; then
13538 ac_cv_lib_readline_rl_line_buffer=yes
13539 else
13540 $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_cv_lib_readline_rl_line_buffer=no
13544 fi
13545
13546 rm -rf conftest.dSYM
13547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13550 fi
13551 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13552 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13553 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13554 READLINE_LIBS="-lreadline"
13555 else
13556
13557 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13558 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13559 READLINE_LIBS="-lreadline $READLINE_LIBS"
13560
13561 fi
13562
13563 else
13564
13565 READLINE_LIBS=
13566 if test "$READLINE" = yes; then
13567 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13568 --enable-readline option (which is enabled by default). Either disable readline
13569 support with --disable-readline or download and install readline from:
13570 ftp.gnu.org/gnu/readline
13571 Note: if you are using precompiled packages you will also need the development
13572 package as well (which may be called readline-devel or something similar)." >&5
13573 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13574 --enable-readline option (which is enabled by default). Either disable readline
13575 support with --disable-readline or download and install readline from:
13576 ftp.gnu.org/gnu/readline
13577 Note: if you are using precompiled packages you will also need the development
13578 package as well (which may be called readline-devel or something similar)." >&2;}
13579 { (exit 1); exit 1; }; }
13580 fi
13581 fi
13582
13583 LIBS="$READLINE_LIBS $lvm_saved_libs"
13584
13585 for ac_func in rl_completion_matches
13586 do
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 $as_echo_n "checking for $ac_func... " >&6; }
13590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13592 else
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601 #define $ac_func innocuous_$ac_func
13602
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13607
13608 #ifdef __STDC__
13609 # include <limits.h>
13610 #else
13611 # include <assert.h>
13612 #endif
13613
13614 #undef $ac_func
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char $ac_func ();
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined __stub_$ac_func || defined __stub___$ac_func
13627 choke me
13628 #endif
13629
13630 int
13631 main ()
13632 {
13633 return $ac_func ();
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13658 }; then
13659 eval "$as_ac_var=yes"
13660 else
13661 $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 eval "$as_ac_var=no"
13665 fi
13666
13667 rm -rf conftest.dSYM
13668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13669 conftest$ac_exeext conftest.$ac_ext
13670 fi
13671 ac_res=`eval 'as_val=${'$as_ac_var'}
13672 $as_echo "$as_val"'`
13673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13674 $as_echo "$ac_res" >&6; }
13675 as_val=`eval 'as_val=${'$as_ac_var'}
13676 $as_echo "$as_val"'`
13677 if test "x$as_val" = x""yes; then
13678 cat >>confdefs.h <<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13680 _ACEOF
13681
13682 fi
13683 done
13684
13685 LIBS=$lvm_saved_libs
13686 fi
13687
13688 ################################################################################
13689 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13690 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13691 # Check whether --enable-nls was given.
13692 if test "${enable_nls+set}" = set; then
13693 enableval=$enable_nls; INTL=$enableval
13694 else
13695 INTL=no
13696 fi
13697
13698 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13699 $as_echo "$INTL" >&6; }
13700
13701 if test x$INTL = xyes; then
13702 # FIXME - Move this - can be device-mapper too
13703 INTL_PACKAGE="lvm2"
13704 # Extract the first word of "msgfmt", so it can be a program name with args.
13705 set dummy msgfmt; ac_word=$2
13706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if test "${ac_cv_path_MSGFMT+set}" = set; then
13709 $as_echo_n "(cached) " >&6
13710 else
13711 case $MSGFMT in
13712 [\\/]* | ?:[\\/]*)
13713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13714 ;;
13715 *)
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13718 do
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13723 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 break 2
13726 fi
13727 done
13728 done
13729 IFS=$as_save_IFS
13730
13731 ;;
13732 esac
13733 fi
13734 MSGFMT=$ac_cv_path_MSGFMT
13735 if test -n "$MSGFMT"; then
13736 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13737 $as_echo "$MSGFMT" >&6; }
13738 else
13739 { $as_echo "$as_me:$LINENO: result: no" >&5
13740 $as_echo "no" >&6; }
13741 fi
13742
13743
13744 if [ "x$MSGFMT" == x ];
13745 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13746 " >&5
13747 $as_echo "$as_me: error: msgfmt not found in path $PATH
13748 " >&2;}
13749 { (exit 1); exit 1; }; }
13750 fi;
13751
13752
13753 # Check whether --with-localedir was given.
13754 if test "${with_localedir+set}" = set; then
13755 withval=$with_localedir; LOCALEDIR="$withval"
13756 else
13757 LOCALEDIR='${prefix}/share/locale'
13758 fi
13759
13760 fi
13761
13762 ################################################################################
13763
13764 # Check whether --with-confdir was given.
13765 if test "${with_confdir+set}" = set; then
13766 withval=$with_confdir; CONFDIR="$withval"
13767 else
13768 CONFDIR='/etc'
13769 fi
13770
13771
13772
13773 # Check whether --with-staticdir was given.
13774 if test "${with_staticdir+set}" = set; then
13775 withval=$with_staticdir; STATICDIR="$withval"
13776 else
13777 STATICDIR='${exec_prefix}/sbin'
13778 fi
13779
13780
13781
13782 # Check whether --with-usrlibdir was given.
13783 if test "${with_usrlibdir+set}" = set; then
13784 withval=$with_usrlibdir; usrlibdir="$withval"
13785 else
13786 usrlibdir='${prefix}/lib'
13787 fi
13788
13789
13790
13791 # Check whether --with-usrsbindir was given.
13792 if test "${with_usrsbindir+set}" = set; then
13793 withval=$with_usrsbindir; usrsbindir="$withval"
13794 else
13795 usrsbindir='${prefix}/sbin'
13796 fi
13797
13798
13799 ################################################################################
13800
13801 # Check whether --with-udev_prefix was given.
13802 if test "${with_udev_prefix+set}" = set; then
13803 withval=$with_udev_prefix; udev_prefix="$withval"
13804 else
13805 udev_prefix='${exec_prefix}'
13806 fi
13807
13808
13809
13810 # Check whether --with-udevdir was given.
13811 if test "${with_udevdir+set}" = set; then
13812 withval=$with_udevdir; udevdir="$withval"
13813 else
13814 udevdir='${udev_prefix}/lib/udev/rules.d'
13815 fi
13816
13817
13818 ################################################################################
13819 if test x$READLINE = xyes; then
13820
13821
13822 for ac_header in readline/readline.h readline/history.h
13823 do
13824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13827 $as_echo_n "checking for $ac_header... " >&6; }
13828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13829 $as_echo_n "(cached) " >&6
13830 fi
13831 ac_res=`eval 'as_val=${'$as_ac_Header'}
13832 $as_echo "$as_val"'`
13833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13834 $as_echo "$ac_res" >&6; }
13835 else
13836 # Is the header compilable?
13837 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13838 $as_echo_n "checking $ac_header usability... " >&6; }
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 $ac_includes_default
13846 #include <$ac_header>
13847 _ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (ac_try="$ac_compile"
13850 case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853 esac
13854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13855 $as_echo "$ac_try_echo") >&5
13856 (eval "$ac_compile") 2>conftest.er1
13857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
13866 ac_header_compiler=yes
13867 else
13868 $as_echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_header_compiler=no
13872 fi
13873
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13876 $as_echo "$ac_header_compiler" >&6; }
13877
13878 # Is the header present?
13879 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13880 $as_echo_n "checking $ac_header presence... " >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <$ac_header>
13888 _ACEOF
13889 if { (ac_try="$ac_cpp conftest.$ac_ext"
13890 case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893 esac
13894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13895 $as_echo "$ac_try_echo") >&5
13896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } >/dev/null && {
13903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13904 test ! -s conftest.err
13905 }; then
13906 ac_header_preproc=yes
13907 else
13908 $as_echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_header_preproc=no
13912 fi
13913
13914 rm -f conftest.err conftest.$ac_ext
13915 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916 $as_echo "$ac_header_preproc" >&6; }
13917
13918 # So? What about this header?
13919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920 yes:no: )
13921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13922 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13924 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13925 ac_header_preproc=yes
13926 ;;
13927 no:yes:* )
13928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13929 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13931 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13933 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13935 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13937 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13939 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13940
13941 ;;
13942 esac
13943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13944 $as_echo_n "checking for $ac_header... " >&6; }
13945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13946 $as_echo_n "(cached) " >&6
13947 else
13948 eval "$as_ac_Header=\$ac_header_preproc"
13949 fi
13950 ac_res=`eval 'as_val=${'$as_ac_Header'}
13951 $as_echo "$as_val"'`
13952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13953 $as_echo "$ac_res" >&6; }
13954
13955 fi
13956 as_val=`eval 'as_val=${'$as_ac_Header'}
13957 $as_echo "$as_val"'`
13958 if test "x$as_val" = x""yes; then
13959 cat >>confdefs.h <<_ACEOF
13960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13961 _ACEOF
13962
13963 else
13964 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13965 $as_echo "$as_me: error: bailing out" >&2;}
13966 { (exit 1); exit 1; }; }
13967 fi
13968
13969 done
13970
13971 fi
13972
13973 if test x$CLVMD != xnone; then
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984 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
13985 do
13986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13989 $as_echo_n "checking for $ac_header... " >&6; }
13990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13991 $as_echo_n "(cached) " >&6
13992 fi
13993 ac_res=`eval 'as_val=${'$as_ac_Header'}
13994 $as_echo "$as_val"'`
13995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13996 $as_echo "$ac_res" >&6; }
13997 else
13998 # Is the header compilable?
13999 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14000 $as_echo_n "checking $ac_header usability... " >&6; }
14001 cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h. */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14007 $ac_includes_default
14008 #include <$ac_header>
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (ac_try="$ac_compile"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14017 $as_echo "$ac_try_echo") >&5
14018 (eval "$ac_compile") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
14028 ac_header_compiler=yes
14029 else
14030 $as_echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_header_compiler=no
14034 fi
14035
14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14038 $as_echo "$ac_header_compiler" >&6; }
14039
14040 # Is the header present?
14041 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14042 $as_echo_n "checking $ac_header presence... " >&6; }
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include <$ac_header>
14050 _ACEOF
14051 if { (ac_try="$ac_cpp conftest.$ac_ext"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055 esac
14056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14057 $as_echo "$ac_try_echo") >&5
14058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } >/dev/null && {
14065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 }; then
14068 ac_header_preproc=yes
14069 else
14070 $as_echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_header_preproc=no
14074 fi
14075
14076 rm -f conftest.err conftest.$ac_ext
14077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14078 $as_echo "$ac_header_preproc" >&6; }
14079
14080 # So? What about this header?
14081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14082 yes:no: )
14083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14084 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14087 ac_header_preproc=yes
14088 ;;
14089 no:yes:* )
14090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14091 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14093 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14095 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14097 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14101 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14102
14103 ;;
14104 esac
14105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14106 $as_echo_n "checking for $ac_header... " >&6; }
14107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14108 $as_echo_n "(cached) " >&6
14109 else
14110 eval "$as_ac_Header=\$ac_header_preproc"
14111 fi
14112 ac_res=`eval 'as_val=${'$as_ac_Header'}
14113 $as_echo "$as_val"'`
14114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14115 $as_echo "$ac_res" >&6; }
14116
14117 fi
14118 as_val=`eval 'as_val=${'$as_ac_Header'}
14119 $as_echo "$as_val"'`
14120 if test "x$as_val" = x""yes; then
14121 cat >>confdefs.h <<_ACEOF
14122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14123 _ACEOF
14124
14125 else
14126 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14127 $as_echo "$as_me: error: bailing out" >&2;}
14128 { (exit 1); exit 1; }; }
14129 fi
14130
14131 done
14132
14133
14134
14135
14136
14137
14138 for ac_func in dup2 getmntent memmove select socket
14139 do
14140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14141 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14142 $as_echo_n "checking for $ac_func... " >&6; }
14143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14144 $as_echo_n "(cached) " >&6
14145 else
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h. */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14154 #define $ac_func innocuous_$ac_func
14155
14156 /* System header to define __stub macros and hopefully few prototypes,
14157 which can conflict with char $ac_func (); below.
14158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14159 <limits.h> exists even on freestanding compilers. */
14160
14161 #ifdef __STDC__
14162 # include <limits.h>
14163 #else
14164 # include <assert.h>
14165 #endif
14166
14167 #undef $ac_func
14168
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 char $ac_func ();
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined __stub_$ac_func || defined __stub___$ac_func
14180 choke me
14181 #endif
14182
14183 int
14184 main ()
14185 {
14186 return $ac_func ();
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14198 $as_echo "$ac_try_echo") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest$ac_exeext && {
14209 test "$cross_compiling" = yes ||
14210 $as_test_x conftest$ac_exeext
14211 }; then
14212 eval "$as_ac_var=yes"
14213 else
14214 $as_echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 eval "$as_ac_var=no"
14218 fi
14219
14220 rm -rf conftest.dSYM
14221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14222 conftest$ac_exeext conftest.$ac_ext
14223 fi
14224 ac_res=`eval 'as_val=${'$as_ac_var'}
14225 $as_echo "$as_val"'`
14226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14227 $as_echo "$ac_res" >&6; }
14228 as_val=`eval 'as_val=${'$as_ac_var'}
14229 $as_echo "$as_val"'`
14230 if test "x$as_val" = x""yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 else
14236 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14237 $as_echo "$as_me: error: bailing out" >&2;}
14238 { (exit 1); exit 1; }; }
14239 fi
14240 done
14241
14242 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14243 # -lseq on Dynix/PTX, -lgen on Unixware.
14244 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14245 $as_echo_n "checking for library containing getmntent... " >&6; }
14246 if test "${ac_cv_search_getmntent+set}" = set; then
14247 $as_echo_n "(cached) " >&6
14248 else
14249 ac_func_search_save_LIBS=$LIBS
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256
14257 /* Override any GCC internal prototype to avoid an error.
14258 Use char because int might match the return type of a GCC
14259 builtin and then its argument prototype would still apply. */
14260 #ifdef __cplusplus
14261 extern "C"
14262 #endif
14263 char getmntent ();
14264 int
14265 main ()
14266 {
14267 return getmntent ();
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 for ac_lib in '' sun seq gen; do
14273 if test -z "$ac_lib"; then
14274 ac_res="none required"
14275 else
14276 ac_res=-l$ac_lib
14277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14278 fi
14279 rm -f conftest.$ac_objext conftest$ac_exeext
14280 if { (ac_try="$ac_link"
14281 case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284 esac
14285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14286 $as_echo "$ac_try_echo") >&5
14287 (eval "$ac_link") 2>conftest.er1
14288 ac_status=$?
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
14292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest$ac_exeext && {
14297 test "$cross_compiling" = yes ||
14298 $as_test_x conftest$ac_exeext
14299 }; then
14300 ac_cv_search_getmntent=$ac_res
14301 else
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305
14306 fi
14307
14308 rm -rf conftest.dSYM
14309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14310 conftest$ac_exeext
14311 if test "${ac_cv_search_getmntent+set}" = set; then
14312 break
14313 fi
14314 done
14315 if test "${ac_cv_search_getmntent+set}" = set; then
14316 :
14317 else
14318 ac_cv_search_getmntent=no
14319 fi
14320 rm conftest.$ac_ext
14321 LIBS=$ac_func_search_save_LIBS
14322 fi
14323 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14324 $as_echo "$ac_cv_search_getmntent" >&6; }
14325 ac_res=$ac_cv_search_getmntent
14326 if test "$ac_res" != no; then
14327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14328 ac_cv_func_getmntent=yes
14329
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_GETMNTENT 1
14332 _ACEOF
14333
14334 else
14335 ac_cv_func_getmntent=no
14336 fi
14337
14338
14339 # AC_FUNC_REALLOC
14340
14341
14342 for ac_header in sys/select.h sys/socket.h
14343 do
14344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 $as_echo_n "checking for $ac_header... " >&6; }
14348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14349 $as_echo_n "(cached) " >&6
14350 fi
14351 ac_res=`eval 'as_val=${'$as_ac_Header'}
14352 $as_echo "$as_val"'`
14353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14354 $as_echo "$ac_res" >&6; }
14355 else
14356 # Is the header compilable?
14357 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14358 $as_echo_n "checking $ac_header usability... " >&6; }
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14366 #include <$ac_header>
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373 esac
14374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14375 $as_echo "$ac_try_echo") >&5
14376 (eval "$ac_compile") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } && {
14383 test -z "$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 } && test -s conftest.$ac_objext; then
14386 ac_header_compiler=yes
14387 else
14388 $as_echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ac_header_compiler=no
14392 fi
14393
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14396 $as_echo "$ac_header_compiler" >&6; }
14397
14398 # Is the header present?
14399 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14400 $as_echo_n "checking $ac_header presence... " >&6; }
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <$ac_header>
14408 _ACEOF
14409 if { (ac_try="$ac_cpp conftest.$ac_ext"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413 esac
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } >/dev/null && {
14423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 }; then
14426 ac_header_preproc=yes
14427 else
14428 $as_echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 ac_header_preproc=no
14432 fi
14433
14434 rm -f conftest.err conftest.$ac_ext
14435 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436 $as_echo "$ac_header_preproc" >&6; }
14437
14438 # So? What about this header?
14439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14440 yes:no: )
14441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14445 ac_header_preproc=yes
14446 ;;
14447 no:yes:* )
14448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14449 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14451 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14453 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14455 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14459 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14460
14461 ;;
14462 esac
14463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14464 $as_echo_n "checking for $ac_header... " >&6; }
14465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14466 $as_echo_n "(cached) " >&6
14467 else
14468 eval "$as_ac_Header=\$ac_header_preproc"
14469 fi
14470 ac_res=`eval 'as_val=${'$as_ac_Header'}
14471 $as_echo "$as_val"'`
14472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14473 $as_echo "$ac_res" >&6; }
14474
14475 fi
14476 as_val=`eval 'as_val=${'$as_ac_Header'}
14477 $as_echo "$as_val"'`
14478 if test "x$as_val" = x""yes; then
14479 cat >>confdefs.h <<_ACEOF
14480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481 _ACEOF
14482
14483 fi
14484
14485 done
14486
14487 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14488 $as_echo_n "checking types of arguments for select... " >&6; }
14489 if test "${ac_cv_func_select_args+set}" = set; then
14490 $as_echo_n "(cached) " >&6
14491 else
14492 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14493 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14494 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14495 cat >conftest.$ac_ext <<_ACEOF
14496 /* confdefs.h. */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501 $ac_includes_default
14502 #ifdef HAVE_SYS_SELECT_H
14503 # include <sys/select.h>
14504 #endif
14505 #ifdef HAVE_SYS_SOCKET_H
14506 # include <sys/socket.h>
14507 #endif
14508
14509 int
14510 main ()
14511 {
14512 extern int select ($ac_arg1,
14513 $ac_arg234, $ac_arg234, $ac_arg234,
14514 $ac_arg5);
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (ac_try="$ac_compile"
14521 case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524 esac
14525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14526 $as_echo "$ac_try_echo") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest.$ac_objext; then
14537 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14538 else
14539 $as_echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542
14543 fi
14544
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 done
14547 done
14548 done
14549 # Provide a safe default value.
14550 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14551
14552 fi
14553 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14554 $as_echo "$ac_cv_func_select_args" >&6; }
14555 ac_save_IFS=$IFS; IFS=','
14556 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14557 IFS=$ac_save_IFS
14558 shift
14559
14560 cat >>confdefs.h <<_ACEOF
14561 #define SELECT_TYPE_ARG1 $1
14562 _ACEOF
14563
14564
14565 cat >>confdefs.h <<_ACEOF
14566 #define SELECT_TYPE_ARG234 ($2)
14567 _ACEOF
14568
14569
14570 cat >>confdefs.h <<_ACEOF
14571 #define SELECT_TYPE_ARG5 ($3)
14572 _ACEOF
14573
14574 rm -f conftest*
14575
14576 fi
14577
14578 if test x$CLUSTER != xnone; then
14579
14580
14581 for ac_header in sys/socket.h sys/un.h
14582 do
14583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14586 $as_echo_n "checking for $ac_header... " >&6; }
14587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14588 $as_echo_n "(cached) " >&6
14589 fi
14590 ac_res=`eval 'as_val=${'$as_ac_Header'}
14591 $as_echo "$as_val"'`
14592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14593 $as_echo "$ac_res" >&6; }
14594 else
14595 # Is the header compilable?
14596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14597 $as_echo_n "checking $ac_header usability... " >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h. */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 $ac_includes_default
14605 #include <$ac_header>
14606 _ACEOF
14607 rm -f conftest.$ac_objext
14608 if { (ac_try="$ac_compile"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612 esac
14613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14614 $as_echo "$ac_try_echo") >&5
14615 (eval "$ac_compile") 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } && {
14622 test -z "$ac_c_werror_flag" ||
14623 test ! -s conftest.err
14624 } && test -s conftest.$ac_objext; then
14625 ac_header_compiler=yes
14626 else
14627 $as_echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 ac_header_compiler=no
14631 fi
14632
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14635 $as_echo "$ac_header_compiler" >&6; }
14636
14637 # Is the header present?
14638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14639 $as_echo_n "checking $ac_header presence... " >&6; }
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <$ac_header>
14647 _ACEOF
14648 if { (ac_try="$ac_cpp conftest.$ac_ext"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652 esac
14653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14654 $as_echo "$ac_try_echo") >&5
14655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14656 ac_status=$?
14657 grep -v '^ *+' conftest.er1 >conftest.err
14658 rm -f conftest.er1
14659 cat conftest.err >&5
14660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } >/dev/null && {
14662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14663 test ! -s conftest.err
14664 }; then
14665 ac_header_preproc=yes
14666 else
14667 $as_echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ac_header_preproc=no
14671 fi
14672
14673 rm -f conftest.err conftest.$ac_ext
14674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14675 $as_echo "$ac_header_preproc" >&6; }
14676
14677 # So? What about this header?
14678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14679 yes:no: )
14680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14684 ac_header_preproc=yes
14685 ;;
14686 no:yes:* )
14687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14699
14700 ;;
14701 esac
14702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14703 $as_echo_n "checking for $ac_header... " >&6; }
14704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705 $as_echo_n "(cached) " >&6
14706 else
14707 eval "$as_ac_Header=\$ac_header_preproc"
14708 fi
14709 ac_res=`eval 'as_val=${'$as_ac_Header'}
14710 $as_echo "$as_val"'`
14711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14712 $as_echo "$ac_res" >&6; }
14713
14714 fi
14715 as_val=`eval 'as_val=${'$as_ac_Header'}
14716 $as_echo "$as_val"'`
14717 if test "x$as_val" = x""yes; then
14718 cat >>confdefs.h <<_ACEOF
14719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14720 _ACEOF
14721
14722 else
14723 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14724 $as_echo "$as_me: error: bailing out" >&2;}
14725 { (exit 1); exit 1; }; }
14726 fi
14727
14728 done
14729
14730
14731 for ac_func in socket
14732 do
14733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14734 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14735 $as_echo_n "checking for $ac_func... " >&6; }
14736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14737 $as_echo_n "(cached) " >&6
14738 else
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14747 #define $ac_func innocuous_$ac_func
14748
14749 /* System header to define __stub macros and hopefully few prototypes,
14750 which can conflict with char $ac_func (); below.
14751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14752 <limits.h> exists even on freestanding compilers. */
14753
14754 #ifdef __STDC__
14755 # include <limits.h>
14756 #else
14757 # include <assert.h>
14758 #endif
14759
14760 #undef $ac_func
14761
14762 /* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
14765 #ifdef __cplusplus
14766 extern "C"
14767 #endif
14768 char $ac_func ();
14769 /* The GNU C library defines this for functions which it implements
14770 to always fail with ENOSYS. Some functions are actually named
14771 something starting with __ and the normal name is an alias. */
14772 #if defined __stub_$ac_func || defined __stub___$ac_func
14773 choke me
14774 #endif
14775
14776 int
14777 main ()
14778 {
14779 return $ac_func ();
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789 esac
14790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14791 $as_echo "$ac_try_echo") >&5
14792 (eval "$ac_link") 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && {
14799 test -z "$ac_c_werror_flag" ||
14800 test ! -s conftest.err
14801 } && test -s conftest$ac_exeext && {
14802 test "$cross_compiling" = yes ||
14803 $as_test_x conftest$ac_exeext
14804 }; then
14805 eval "$as_ac_var=yes"
14806 else
14807 $as_echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 eval "$as_ac_var=no"
14811 fi
14812
14813 rm -rf conftest.dSYM
14814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14815 conftest$ac_exeext conftest.$ac_ext
14816 fi
14817 ac_res=`eval 'as_val=${'$as_ac_var'}
14818 $as_echo "$as_val"'`
14819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14820 $as_echo "$ac_res" >&6; }
14821 as_val=`eval 'as_val=${'$as_ac_var'}
14822 $as_echo "$as_val"'`
14823 if test "x$as_val" = x""yes; then
14824 cat >>confdefs.h <<_ACEOF
14825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14826 _ACEOF
14827
14828 else
14829 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14830 $as_echo "$as_me: error: bailing out" >&2;}
14831 { (exit 1); exit 1; }; }
14832 fi
14833 done
14834
14835 fi
14836
14837 if test x$HAVE_LIBDL = xyes; then
14838
14839 for ac_header in dlfcn.h
14840 do
14841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14844 $as_echo_n "checking for $ac_header... " >&6; }
14845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14846 $as_echo_n "(cached) " >&6
14847 fi
14848 ac_res=`eval 'as_val=${'$as_ac_Header'}
14849 $as_echo "$as_val"'`
14850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14851 $as_echo "$ac_res" >&6; }
14852 else
14853 # Is the header compilable?
14854 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855 $as_echo_n "checking $ac_header usability... " >&6; }
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h. */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 $ac_includes_default
14863 #include <$ac_header>
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873 (eval "$ac_compile") 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest.$ac_objext; then
14883 ac_header_compiler=yes
14884 else
14885 $as_echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_header_compiler=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 $as_echo "$ac_header_compiler" >&6; }
14894
14895 # Is the header present?
14896 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 $as_echo_n "checking $ac_header presence... " >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <$ac_header>
14905 _ACEOF
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910 esac
14911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14912 $as_echo "$ac_try_echo") >&5
14913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } >/dev/null && {
14920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 }; then
14923 ac_header_preproc=yes
14924 else
14925 $as_echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_header_preproc=no
14929 fi
14930
14931 rm -f conftest.err conftest.$ac_ext
14932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14933 $as_echo "$ac_header_preproc" >&6; }
14934
14935 # So? What about this header?
14936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 yes:no: )
14938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14939 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14942 ac_header_preproc=yes
14943 ;;
14944 no:yes:* )
14945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14946 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14948 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14950 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14952 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14956 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957
14958 ;;
14959 esac
14960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14961 $as_echo_n "checking for $ac_header... " >&6; }
14962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 $as_echo_n "(cached) " >&6
14964 else
14965 eval "$as_ac_Header=\$ac_header_preproc"
14966 fi
14967 ac_res=`eval 'as_val=${'$as_ac_Header'}
14968 $as_echo "$as_val"'`
14969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14970 $as_echo "$ac_res" >&6; }
14971
14972 fi
14973 as_val=`eval 'as_val=${'$as_ac_Header'}
14974 $as_echo "$as_val"'`
14975 if test "x$as_val" = x""yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14978 _ACEOF
14979
14980 else
14981 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14982 $as_echo "$as_me: error: bailing out" >&2;}
14983 { (exit 1); exit 1; }; }
14984 fi
14985
14986 done
14987
14988 fi
14989
14990 if test x$INTL = xyes; then
14991
14992 for ac_header in libintl.h
14993 do
14994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14997 $as_echo_n "checking for $ac_header... " >&6; }
14998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14999 $as_echo_n "(cached) " >&6
15000 fi
15001 ac_res=`eval 'as_val=${'$as_ac_Header'}
15002 $as_echo "$as_val"'`
15003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15004 $as_echo "$ac_res" >&6; }
15005 else
15006 # Is the header compilable?
15007 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15008 $as_echo_n "checking $ac_header usability... " >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 $ac_includes_default
15016 #include <$ac_header>
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023 esac
15024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15025 $as_echo "$ac_try_echo") >&5
15026 (eval "$ac_compile") 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest.$ac_objext; then
15036 ac_header_compiler=yes
15037 else
15038 $as_echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041 ac_header_compiler=no
15042 fi
15043
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15046 $as_echo "$ac_header_compiler" >&6; }
15047
15048 # Is the header present?
15049 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15050 $as_echo_n "checking $ac_header presence... " >&6; }
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 #include <$ac_header>
15058 _ACEOF
15059 if { (ac_try="$ac_cpp conftest.$ac_ext"
15060 case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063 esac
15064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15065 $as_echo "$ac_try_echo") >&5
15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } >/dev/null && {
15073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 }; then
15076 ac_header_preproc=yes
15077 else
15078 $as_echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_header_preproc=no
15082 fi
15083
15084 rm -f conftest.err conftest.$ac_ext
15085 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086 $as_echo "$ac_header_preproc" >&6; }
15087
15088 # So? What about this header?
15089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15090 yes:no: )
15091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15092 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15094 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15095 ac_header_preproc=yes
15096 ;;
15097 no:yes:* )
15098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15099 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15101 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15103 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15105 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15109 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15110
15111 ;;
15112 esac
15113 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 $as_echo_n "checking for $ac_header... " >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 $as_echo_n "(cached) " >&6
15117 else
15118 eval "$as_ac_Header=\$ac_header_preproc"
15119 fi
15120 ac_res=`eval 'as_val=${'$as_ac_Header'}
15121 $as_echo "$as_val"'`
15122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15123 $as_echo "$ac_res" >&6; }
15124
15125 fi
15126 as_val=`eval 'as_val=${'$as_ac_Header'}
15127 $as_echo "$as_val"'`
15128 if test "x$as_val" = x""yes; then
15129 cat >>confdefs.h <<_ACEOF
15130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15131 _ACEOF
15132
15133 else
15134 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15135 $as_echo "$as_me: error: bailing out" >&2;}
15136 { (exit 1); exit 1; }; }
15137 fi
15138
15139 done
15140
15141 fi
15142
15143 if test x$HAVE_SELINUX = xyes; then
15144
15145 for ac_header in selinux/selinux.h
15146 do
15147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15150 $as_echo_n "checking for $ac_header... " >&6; }
15151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15152 $as_echo_n "(cached) " >&6
15153 fi
15154 ac_res=`eval 'as_val=${'$as_ac_Header'}
15155 $as_echo "$as_val"'`
15156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15157 $as_echo "$ac_res" >&6; }
15158 else
15159 # Is the header compilable?
15160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15161 $as_echo_n "checking $ac_header usability... " >&6; }
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 $ac_includes_default
15169 #include <$ac_header>
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176 esac
15177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15178 $as_echo "$ac_try_echo") >&5
15179 (eval "$ac_compile") 2>conftest.er1
15180 ac_status=$?
15181 grep -v '^ *+' conftest.er1 >conftest.err
15182 rm -f conftest.er1
15183 cat conftest.err >&5
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } && {
15186 test -z "$ac_c_werror_flag" ||
15187 test ! -s conftest.err
15188 } && test -s conftest.$ac_objext; then
15189 ac_header_compiler=yes
15190 else
15191 $as_echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_header_compiler=no
15195 fi
15196
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199 $as_echo "$ac_header_compiler" >&6; }
15200
15201 # Is the header present?
15202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203 $as_echo_n "checking $ac_header presence... " >&6; }
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h. */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #include <$ac_header>
15211 _ACEOF
15212 if { (ac_try="$ac_cpp conftest.$ac_ext"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216 esac
15217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15218 $as_echo "$ac_try_echo") >&5
15219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } >/dev/null && {
15226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15227 test ! -s conftest.err
15228 }; then
15229 ac_header_preproc=yes
15230 else
15231 $as_echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_header_preproc=no
15235 fi
15236
15237 rm -f conftest.err conftest.$ac_ext
15238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15239 $as_echo "$ac_header_preproc" >&6; }
15240
15241 # So? What about this header?
15242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15243 yes:no: )
15244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15248 ac_header_preproc=yes
15249 ;;
15250 no:yes:* )
15251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15263
15264 ;;
15265 esac
15266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15267 $as_echo_n "checking for $ac_header... " >&6; }
15268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15269 $as_echo_n "(cached) " >&6
15270 else
15271 eval "$as_ac_Header=\$ac_header_preproc"
15272 fi
15273 ac_res=`eval 'as_val=${'$as_ac_Header'}
15274 $as_echo "$as_val"'`
15275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15276 $as_echo "$ac_res" >&6; }
15277
15278 fi
15279 as_val=`eval 'as_val=${'$as_ac_Header'}
15280 $as_echo "$as_val"'`
15281 if test "x$as_val" = x""yes; then
15282 cat >>confdefs.h <<_ACEOF
15283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15284 _ACEOF
15285
15286 else
15287 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15288 $as_echo "$as_me: error: bailing out" >&2;}
15289 { (exit 1); exit 1; }; }
15290 fi
15291
15292 done
15293
15294 fi
15295
15296 if test x$UDEV_SYNC = xyes; then
15297
15298
15299 for ac_header in sys/ipc.h sys/sem.h
15300 do
15301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 $as_echo_n "checking for $ac_header... " >&6; }
15305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15306 $as_echo_n "(cached) " >&6
15307 fi
15308 ac_res=`eval 'as_val=${'$as_ac_Header'}
15309 $as_echo "$as_val"'`
15310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15311 $as_echo "$ac_res" >&6; }
15312 else
15313 # Is the header compilable?
15314 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315 $as_echo_n "checking $ac_header usability... " >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 $ac_includes_default
15323 #include <$ac_header>
15324 _ACEOF
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332 $as_echo "$ac_try_echo") >&5
15333 (eval "$ac_compile") 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest.$ac_objext; then
15343 ac_header_compiler=yes
15344 else
15345 $as_echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 ac_header_compiler=no
15349 fi
15350
15351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15352 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15353 $as_echo "$ac_header_compiler" >&6; }
15354
15355 # Is the header present?
15356 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15357 $as_echo_n "checking $ac_header presence... " >&6; }
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h. */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 #include <$ac_header>
15365 _ACEOF
15366 if { (ac_try="$ac_cpp conftest.$ac_ext"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370 esac
15371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372 $as_echo "$ac_try_echo") >&5
15373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev/null && {
15380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 }; then
15383 ac_header_preproc=yes
15384 else
15385 $as_echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 ac_header_preproc=no
15389 fi
15390
15391 rm -f conftest.err conftest.$ac_ext
15392 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15393 $as_echo "$ac_header_preproc" >&6; }
15394
15395 # So? What about this header?
15396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15397 yes:no: )
15398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15399 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15401 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15402 ac_header_preproc=yes
15403 ;;
15404 no:yes:* )
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15406 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15408 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15410 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15412 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15416 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15417
15418 ;;
15419 esac
15420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15421 $as_echo_n "checking for $ac_header... " >&6; }
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 $as_echo_n "(cached) " >&6
15424 else
15425 eval "$as_ac_Header=\$ac_header_preproc"
15426 fi
15427 ac_res=`eval 'as_val=${'$as_ac_Header'}
15428 $as_echo "$as_val"'`
15429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15430 $as_echo "$ac_res" >&6; }
15431
15432 fi
15433 as_val=`eval 'as_val=${'$as_ac_Header'}
15434 $as_echo "$as_val"'`
15435 if test "x$as_val" = x""yes; then
15436 cat >>confdefs.h <<_ACEOF
15437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15438 _ACEOF
15439
15440 else
15441 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15442 $as_echo "$as_me: error: bailing out" >&2;}
15443 { (exit 1); exit 1; }; }
15444 fi
15445
15446 done
15447
15448 fi
15449
15450 ################################################################################
15451 # Extract the first word of "modprobe", so it can be a program name with args.
15452 set dummy modprobe; ac_word=$2
15453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15454 $as_echo_n "checking for $ac_word... " >&6; }
15455 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15456 $as_echo_n "(cached) " >&6
15457 else
15458 case $MODPROBE_CMD in
15459 [\\/]* | ?:[\\/]*)
15460 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15461 ;;
15462 *)
15463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464 for as_dir in $PATH
15465 do
15466 IFS=$as_save_IFS
15467 test -z "$as_dir" && as_dir=.
15468 for ac_exec_ext in '' $ac_executable_extensions; do
15469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15470 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15472 break 2
15473 fi
15474 done
15475 done
15476 IFS=$as_save_IFS
15477
15478 ;;
15479 esac
15480 fi
15481 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15482 if test -n "$MODPROBE_CMD"; then
15483 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15484 $as_echo "$MODPROBE_CMD" >&6; }
15485 else
15486 { $as_echo "$as_me:$LINENO: result: no" >&5
15487 $as_echo "no" >&6; }
15488 fi
15489
15490
15491
15492 if test x$MODPROBE_CMD != x; then
15493
15494 cat >>confdefs.h <<_ACEOF
15495 #define MODPROBE_CMD "$MODPROBE_CMD"
15496 _ACEOF
15497
15498 fi
15499
15500 ################################################################################
15501
15502
15503 if test "$BUILD_DMEVENTD" = yes; then
15504
15505 # Check whether --with-dmeventd-pidfile was given.
15506 if test "${with_dmeventd_pidfile+set}" = set; then
15507 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15508 #define DMEVENTD_PIDFILE "$withval"
15509 _ACEOF
15510
15511 else
15512 cat >>confdefs.h <<_ACEOF
15513 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15514 _ACEOF
15515
15516 fi
15517
15518 fi
15519
15520
15521
15522 if test "$BUILD_DMEVENTD" = yes; then
15523 dmeventd_prefix="$exec_prefix"
15524 if test "x$dmeventd_prefix" = "xNONE"; then
15525 dmeventd_prefix="$prefix"
15526 fi
15527 if test "x$dmeventd_prefix" = "xNONE"; then
15528 dmeventd_prefix=""
15529 fi
15530
15531 # Check whether --with-dmeventd-path was given.
15532 if test "${with_dmeventd_path+set}" = set; then
15533 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15534 #define DMEVENTD_PATH "$withval"
15535 _ACEOF
15536
15537 else
15538 cat >>confdefs.h <<_ACEOF
15539 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15540 _ACEOF
15541
15542 fi
15543
15544 fi
15545
15546 ################################################################################
15547 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15548 $as_echo_n "checking for kernel interface choice... " >&6; }
15549
15550 # Check whether --with-interface was given.
15551 if test "${with_interface+set}" = set; then
15552 withval=$with_interface; interface="$withval"
15553 else
15554 interface=ioctl
15555 fi
15556
15557 if [ "x$interface" != xioctl ];
15558 then
15559 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15560 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15561 { (exit 1); exit 1; }; }
15562 fi
15563 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15564 $as_echo "$interface" >&6; }
15565
15566 ################################################################################
15567 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15568
15569 cat >>confdefs.h <<_ACEOF
15570 #define DM_LIB_VERSION $DM_LIB_VERSION
15571 _ACEOF
15572
15573
15574 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15575
15576 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15577
15578 VER=`cat "$srcdir"/VERSION`
15579 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15580 VER=`echo "$VER" | $AWK '{print $1}'`
15581 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15582 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15583 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15584 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15585 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15586 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15587
15588 ################################################################################
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675 ################################################################################
15676 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks 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/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15677
15678 cat >confcache <<\_ACEOF
15679 # This file is a shell script that caches the results of configure
15680 # tests run on this system so they can be shared between configure
15681 # scripts and configure runs, see configure's option --config-cache.
15682 # It is not useful on other systems. If it contains results you don't
15683 # want to keep, you may remove or edit it.
15684 #
15685 # config.status only pays attention to the cache file if you give it
15686 # the --recheck option to rerun configure.
15687 #
15688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15690 # following values.
15691
15692 _ACEOF
15693
15694 # The following way of writing the cache mishandles newlines in values,
15695 # but we know of no workaround that is simple, portable, and efficient.
15696 # So, we kill variables containing newlines.
15697 # Ultrix sh set writes to stderr and can't be redirected directly,
15698 # and sets the high bit in the cache file unless we assign to the vars.
15699 (
15700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15701 eval ac_val=\$$ac_var
15702 case $ac_val in #(
15703 *${as_nl}*)
15704 case $ac_var in #(
15705 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15707 esac
15708 case $ac_var in #(
15709 _ | IFS | as_nl) ;; #(
15710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15711 *) $as_unset $ac_var ;;
15712 esac ;;
15713 esac
15714 done
15715
15716 (set) 2>&1 |
15717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15718 *${as_nl}ac_space=\ *)
15719 # `set' does not quote correctly, so add quotes (double-quote
15720 # substitution turns \\\\ into \\, and sed turns \\ into \).
15721 sed -n \
15722 "s/'/'\\\\''/g;
15723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15724 ;; #(
15725 *)
15726 # `set' quotes correctly as required by POSIX, so do not add quotes.
15727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15728 ;;
15729 esac |
15730 sort
15731 ) |
15732 sed '
15733 /^ac_cv_env_/b end
15734 t clear
15735 :clear
15736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15737 t end
15738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15739 :end' >>confcache
15740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15741 if test -w "$cache_file"; then
15742 test "x$cache_file" != "x/dev/null" &&
15743 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15744 $as_echo "$as_me: updating cache $cache_file" >&6;}
15745 cat confcache >$cache_file
15746 else
15747 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15748 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15749 fi
15750 fi
15751 rm -f confcache
15752
15753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15754 # Let make expand exec_prefix.
15755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15756
15757 DEFS=-DHAVE_CONFIG_H
15758
15759 ac_libobjs=
15760 ac_ltlibobjs=
15761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15762 # 1. Remove the extension, and $U if already installed.
15763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15766 # will be set to the directory where LIBOBJS objects are built.
15767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15769 done
15770 LIBOBJS=$ac_libobjs
15771
15772 LTLIBOBJS=$ac_ltlibobjs
15773
15774
15775
15776 : ${CONFIG_STATUS=./config.status}
15777 ac_write_fail=0
15778 ac_clean_files_save=$ac_clean_files
15779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15780 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15781 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15782 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15783 #! $SHELL
15784 # Generated by $as_me.
15785 # Run this file to recreate the current configuration.
15786 # Compiler output produced by configure, useful for debugging
15787 # configure, is in config.log if it exists.
15788
15789 debug=false
15790 ac_cs_recheck=false
15791 ac_cs_silent=false
15792 SHELL=\${CONFIG_SHELL-$SHELL}
15793 _ACEOF
15794
15795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15796 ## --------------------- ##
15797 ## M4sh Initialization. ##
15798 ## --------------------- ##
15799
15800 # Be more Bourne compatible
15801 DUALCASE=1; export DUALCASE # for MKS sh
15802 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15803 emulate sh
15804 NULLCMD=:
15805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15806 # is contrary to our usage. Disable this feature.
15807 alias -g '${1+"$@"}'='"$@"'
15808 setopt NO_GLOB_SUBST
15809 else
15810 case `(set -o) 2>/dev/null` in
15811 *posix*) set -o posix ;;
15812 esac
15813
15814 fi
15815
15816
15817
15818
15819 # PATH needs CR
15820 # Avoid depending upon Character Ranges.
15821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15824 as_cr_digits='0123456789'
15825 as_cr_alnum=$as_cr_Letters$as_cr_digits
15826
15827 as_nl='
15828 '
15829 export as_nl
15830 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15831 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15834 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15835 as_echo='printf %s\n'
15836 as_echo_n='printf %s'
15837 else
15838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15840 as_echo_n='/usr/ucb/echo -n'
15841 else
15842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15843 as_echo_n_body='eval
15844 arg=$1;
15845 case $arg in
15846 *"$as_nl"*)
15847 expr "X$arg" : "X\\(.*\\)$as_nl";
15848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15849 esac;
15850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15851 '
15852 export as_echo_n_body
15853 as_echo_n='sh -c $as_echo_n_body as_echo'
15854 fi
15855 export as_echo_body
15856 as_echo='sh -c $as_echo_body as_echo'
15857 fi
15858
15859 # The user is always right.
15860 if test "${PATH_SEPARATOR+set}" != set; then
15861 PATH_SEPARATOR=:
15862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15864 PATH_SEPARATOR=';'
15865 }
15866 fi
15867
15868 # Support unset when possible.
15869 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15870 as_unset=unset
15871 else
15872 as_unset=false
15873 fi
15874
15875
15876 # IFS
15877 # We need space, tab and new line, in precisely that order. Quoting is
15878 # there to prevent editors from complaining about space-tab.
15879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15880 # splitting by setting IFS to empty value.)
15881 IFS=" "" $as_nl"
15882
15883 # Find who we are. Look in the path if we contain no directory separator.
15884 case $0 in
15885 *[\\/]* ) as_myself=$0 ;;
15886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15887 for as_dir in $PATH
15888 do
15889 IFS=$as_save_IFS
15890 test -z "$as_dir" && as_dir=.
15891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15892 done
15893 IFS=$as_save_IFS
15894
15895 ;;
15896 esac
15897 # We did not find ourselves, most probably we were run as `sh COMMAND'
15898 # in which case we are not to be found in the path.
15899 if test "x$as_myself" = x; then
15900 as_myself=$0
15901 fi
15902 if test ! -f "$as_myself"; then
15903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15904 { (exit 1); exit 1; }
15905 fi
15906
15907 # Work around bugs in pre-3.0 UWIN ksh.
15908 for as_var in ENV MAIL MAILPATH
15909 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15910 done
15911 PS1='$ '
15912 PS2='> '
15913 PS4='+ '
15914
15915 # NLS nuisances.
15916 LC_ALL=C
15917 export LC_ALL
15918 LANGUAGE=C
15919 export LANGUAGE
15920
15921 # Required to use basename.
15922 if expr a : '\(a\)' >/dev/null 2>&1 &&
15923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15924 as_expr=expr
15925 else
15926 as_expr=false
15927 fi
15928
15929 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15930 as_basename=basename
15931 else
15932 as_basename=false
15933 fi
15934
15935
15936 # Name of the executable.
15937 as_me=`$as_basename -- "$0" ||
15938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15939 X"$0" : 'X\(//\)$' \| \
15940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15941 $as_echo X/"$0" |
15942 sed '/^.*\/\([^/][^/]*\)\/*$/{
15943 s//\1/
15944 q
15945 }
15946 /^X\/\(\/\/\)$/{
15947 s//\1/
15948 q
15949 }
15950 /^X\/\(\/\).*/{
15951 s//\1/
15952 q
15953 }
15954 s/.*/./; q'`
15955
15956 # CDPATH.
15957 $as_unset CDPATH
15958
15959
15960
15961 as_lineno_1=$LINENO
15962 as_lineno_2=$LINENO
15963 test "x$as_lineno_1" != "x$as_lineno_2" &&
15964 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15965
15966 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15967 # uniformly replaced by the line number. The first 'sed' inserts a
15968 # line-number line after each line using $LINENO; the second 'sed'
15969 # does the real work. The second script uses 'N' to pair each
15970 # line-number line with the line containing $LINENO, and appends
15971 # trailing '-' during substitution so that $LINENO is not a special
15972 # case at line end.
15973 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15974 # scripts with optimization help from Paolo Bonzini. Blame Lee
15975 # E. McMahon (1931-1989) for sed's syntax. :-)
15976 sed -n '
15977 p
15978 /[$]LINENO/=
15979 ' <$as_myself |
15980 sed '
15981 s/[$]LINENO.*/&-/
15982 t lineno
15983 b
15984 :lineno
15985 N
15986 :loop
15987 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15988 t loop
15989 s/-\n.*//
15990 ' >$as_me.lineno &&
15991 chmod +x "$as_me.lineno" ||
15992 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15993 { (exit 1); exit 1; }; }
15994
15995 # Don't try to exec as it changes $[0], causing all sort of problems
15996 # (the dirname of $[0] is not the place where we might find the
15997 # original and so on. Autoconf is especially sensitive to this).
15998 . "./$as_me.lineno"
15999 # Exit status is that of the last command.
16000 exit
16001 }
16002
16003
16004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16005 as_dirname=dirname
16006 else
16007 as_dirname=false
16008 fi
16009
16010 ECHO_C= ECHO_N= ECHO_T=
16011 case `echo -n x` in
16012 -n*)
16013 case `echo 'x\c'` in
16014 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16015 *) ECHO_C='\c';;
16016 esac;;
16017 *)
16018 ECHO_N='-n';;
16019 esac
16020 if expr a : '\(a\)' >/dev/null 2>&1 &&
16021 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16022 as_expr=expr
16023 else
16024 as_expr=false
16025 fi
16026
16027 rm -f conf$$ conf$$.exe conf$$.file
16028 if test -d conf$$.dir; then
16029 rm -f conf$$.dir/conf$$.file
16030 else
16031 rm -f conf$$.dir
16032 mkdir conf$$.dir 2>/dev/null
16033 fi
16034 if (echo >conf$$.file) 2>/dev/null; then
16035 if ln -s conf$$.file conf$$ 2>/dev/null; then
16036 as_ln_s='ln -s'
16037 # ... but there are two gotchas:
16038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16040 # In both cases, we have to default to `cp -p'.
16041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16042 as_ln_s='cp -p'
16043 elif ln conf$$.file conf$$ 2>/dev/null; then
16044 as_ln_s=ln
16045 else
16046 as_ln_s='cp -p'
16047 fi
16048 else
16049 as_ln_s='cp -p'
16050 fi
16051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16052 rmdir conf$$.dir 2>/dev/null
16053
16054 if mkdir -p . 2>/dev/null; then
16055 as_mkdir_p=:
16056 else
16057 test -d ./-p && rmdir ./-p
16058 as_mkdir_p=false
16059 fi
16060
16061 if test -x / >/dev/null 2>&1; then
16062 as_test_x='test -x'
16063 else
16064 if ls -dL / >/dev/null 2>&1; then
16065 as_ls_L_option=L
16066 else
16067 as_ls_L_option=
16068 fi
16069 as_test_x='
16070 eval sh -c '\''
16071 if test -d "$1"; then
16072 test -d "$1/.";
16073 else
16074 case $1 in
16075 -*)set "./$1";;
16076 esac;
16077 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16078 ???[sx]*):;;*)false;;esac;fi
16079 '\'' sh
16080 '
16081 fi
16082 as_executable_p=$as_test_x
16083
16084 # Sed expression to map a string onto a valid CPP name.
16085 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16086
16087 # Sed expression to map a string onto a valid variable name.
16088 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16089
16090
16091 exec 6>&1
16092
16093 # Save the log message, to keep $[0] and so on meaningful, and to
16094 # report actual input values of CONFIG_FILES etc. instead of their
16095 # values after options handling.
16096 ac_log="
16097 This file was extended by $as_me, which was
16098 generated by GNU Autoconf 2.63. Invocation command line was
16099
16100 CONFIG_FILES = $CONFIG_FILES
16101 CONFIG_HEADERS = $CONFIG_HEADERS
16102 CONFIG_LINKS = $CONFIG_LINKS
16103 CONFIG_COMMANDS = $CONFIG_COMMANDS
16104 $ $0 $@
16105
16106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16107 "
16108
16109 _ACEOF
16110
16111 case $ac_config_files in *"
16112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16113 esac
16114
16115 case $ac_config_headers in *"
16116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16117 esac
16118
16119
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 # Files that config.status was made for.
16122 config_files="$ac_config_files"
16123 config_headers="$ac_config_headers"
16124
16125 _ACEOF
16126
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 ac_cs_usage="\
16129 \`$as_me' instantiates files from templates according to the
16130 current configuration.
16131
16132 Usage: $0 [OPTION]... [FILE]...
16133
16134 -h, --help print this help, then exit
16135 -V, --version print version number and configuration settings, then exit
16136 -q, --quiet, --silent
16137 do not print progress messages
16138 -d, --debug don't remove temporary files
16139 --recheck update $as_me by reconfiguring in the same conditions
16140 --file=FILE[:TEMPLATE]
16141 instantiate the configuration file FILE
16142 --header=FILE[:TEMPLATE]
16143 instantiate the configuration header FILE
16144
16145 Configuration files:
16146 $config_files
16147
16148 Configuration headers:
16149 $config_headers
16150
16151 Report bugs to <bug-autoconf@gnu.org>."
16152
16153 _ACEOF
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 ac_cs_version="\\
16156 config.status
16157 configured by $0, generated by GNU Autoconf 2.63,
16158 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16159
16160 Copyright (C) 2008 Free Software Foundation, Inc.
16161 This config.status script is free software; the Free Software Foundation
16162 gives unlimited permission to copy, distribute and modify it."
16163
16164 ac_pwd='$ac_pwd'
16165 srcdir='$srcdir'
16166 INSTALL='$INSTALL'
16167 MKDIR_P='$MKDIR_P'
16168 AWK='$AWK'
16169 test -n "\$AWK" || AWK=awk
16170 _ACEOF
16171
16172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16173 # The default lists apply if the user does not specify any file.
16174 ac_need_defaults=:
16175 while test $# != 0
16176 do
16177 case $1 in
16178 --*=*)
16179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16181 ac_shift=:
16182 ;;
16183 *)
16184 ac_option=$1
16185 ac_optarg=$2
16186 ac_shift=shift
16187 ;;
16188 esac
16189
16190 case $ac_option in
16191 # Handling of the options.
16192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16193 ac_cs_recheck=: ;;
16194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16195 $as_echo "$ac_cs_version"; exit ;;
16196 --debug | --debu | --deb | --de | --d | -d )
16197 debug=: ;;
16198 --file | --fil | --fi | --f )
16199 $ac_shift
16200 case $ac_optarg in
16201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16202 esac
16203 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16204 ac_need_defaults=false;;
16205 --header | --heade | --head | --hea )
16206 $ac_shift
16207 case $ac_optarg in
16208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16209 esac
16210 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16211 ac_need_defaults=false;;
16212 --he | --h)
16213 # Conflict between --help and --header
16214 { $as_echo "$as_me: error: ambiguous option: $1
16215 Try \`$0 --help' for more information." >&2
16216 { (exit 1); exit 1; }; };;
16217 --help | --hel | -h )
16218 $as_echo "$ac_cs_usage"; exit ;;
16219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16221 ac_cs_silent=: ;;
16222
16223 # This is an error.
16224 -*) { $as_echo "$as_me: error: unrecognized option: $1
16225 Try \`$0 --help' for more information." >&2
16226 { (exit 1); exit 1; }; } ;;
16227
16228 *) ac_config_targets="$ac_config_targets $1"
16229 ac_need_defaults=false ;;
16230
16231 esac
16232 shift
16233 done
16234
16235 ac_configure_extra_args=
16236
16237 if $ac_cs_silent; then
16238 exec 6>/dev/null
16239 ac_configure_extra_args="$ac_configure_extra_args --silent"
16240 fi
16241
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16244 if \$ac_cs_recheck; then
16245 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16246 shift
16247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16248 CONFIG_SHELL='$SHELL'
16249 export CONFIG_SHELL
16250 exec "\$@"
16251 fi
16252
16253 _ACEOF
16254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255 exec 5>>config.log
16256 {
16257 echo
16258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16259 ## Running $as_me. ##
16260 _ASBOX
16261 $as_echo "$ac_log"
16262 } >&5
16263
16264 _ACEOF
16265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16266 _ACEOF
16267
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16269
16270 # Handling of arguments.
16271 for ac_config_target in $ac_config_targets
16272 do
16273 case $ac_config_target in
16274 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16276 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16277 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16278 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16279 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16280 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16281 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16282 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16283 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
16284 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16285 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16286 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16287 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16288 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16289 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16290 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16291 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16292 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16293 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16294 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16295 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16296 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16297 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16298 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16299 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16300 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16301 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16302 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16303 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
16304 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16305 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16306 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16307 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16308 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16309 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16310
16311 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16312 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16313 { (exit 1); exit 1; }; };;
16314 esac
16315 done
16316
16317
16318 # If the user did not use the arguments to specify the items to instantiate,
16319 # then the envvar interface is used. Set only those that are not.
16320 # We use the long form for the default assignment because of an extremely
16321 # bizarre bug on SunOS 4.1.3.
16322 if $ac_need_defaults; then
16323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16325 fi
16326
16327 # Have a temporary directory for convenience. Make it in the build tree
16328 # simply because there is no reason against having it here, and in addition,
16329 # creating and moving files from /tmp can sometimes cause problems.
16330 # Hook for its removal unless debugging.
16331 # Note that there is a small window in which the directory will not be cleaned:
16332 # after its creation but before its name has been assigned to `$tmp'.
16333 $debug ||
16334 {
16335 tmp=
16336 trap 'exit_status=$?
16337 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16338 ' 0
16339 trap '{ (exit 1); exit 1; }' 1 2 13 15
16340 }
16341 # Create a (secure) tmp directory for tmp files.
16342
16343 {
16344 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16345 test -n "$tmp" && test -d "$tmp"
16346 } ||
16347 {
16348 tmp=./conf$$-$RANDOM
16349 (umask 077 && mkdir "$tmp")
16350 } ||
16351 {
16352 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16353 { (exit 1); exit 1; }
16354 }
16355
16356 # Set up the scripts for CONFIG_FILES section.
16357 # No need to generate them if there are no CONFIG_FILES.
16358 # This happens for instance with `./config.status config.h'.
16359 if test -n "$CONFIG_FILES"; then
16360
16361
16362 ac_cr=' '
16363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16365 ac_cs_awk_cr='\\r'
16366 else
16367 ac_cs_awk_cr=$ac_cr
16368 fi
16369
16370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16371 _ACEOF
16372
16373
16374 {
16375 echo "cat >conf$$subs.awk <<_ACEOF" &&
16376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16377 echo "_ACEOF"
16378 } >conf$$subs.sh ||
16379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16380 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16381 { (exit 1); exit 1; }; }
16382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16383 ac_delim='%!_!# '
16384 for ac_last_try in false false false false false :; do
16385 . ./conf$$subs.sh ||
16386 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16387 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16388 { (exit 1); exit 1; }; }
16389
16390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16391 if test $ac_delim_n = $ac_delim_num; then
16392 break
16393 elif $ac_last_try; then
16394 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16395 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16396 { (exit 1); exit 1; }; }
16397 else
16398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16399 fi
16400 done
16401 rm -f conf$$subs.sh
16402
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16405 _ACEOF
16406 sed -n '
16407 h
16408 s/^/S["/; s/!.*/"]=/
16409 p
16410 g
16411 s/^[^!]*!//
16412 :repl
16413 t repl
16414 s/'"$ac_delim"'$//
16415 t delim
16416 :nl
16417 h
16418 s/\(.\{148\}\).*/\1/
16419 t more1
16420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16421 p
16422 n
16423 b repl
16424 :more1
16425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16426 p
16427 g
16428 s/.\{148\}//
16429 t nl
16430 :delim
16431 h
16432 s/\(.\{148\}\).*/\1/
16433 t more2
16434 s/["\\]/\\&/g; s/^/"/; s/$/"/
16435 p
16436 b
16437 :more2
16438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16439 p
16440 g
16441 s/.\{148\}//
16442 t delim
16443 ' <conf$$subs.awk | sed '
16444 /^[^""]/{
16445 N
16446 s/\n//
16447 }
16448 ' >>$CONFIG_STATUS || ac_write_fail=1
16449 rm -f conf$$subs.awk
16450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16451 _ACAWK
16452 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16453 for (key in S) S_is_set[key] = 1
16454 FS = "\a"
16455
16456 }
16457 {
16458 line = $ 0
16459 nfields = split(line, field, "@")
16460 substed = 0
16461 len = length(field[1])
16462 for (i = 2; i < nfields; i++) {
16463 key = field[i]
16464 keylen = length(key)
16465 if (S_is_set[key]) {
16466 value = S[key]
16467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16468 len += length(value) + length(field[++i])
16469 substed = 1
16470 } else
16471 len += 1 + keylen
16472 }
16473
16474 print line
16475 }
16476
16477 _ACAWK
16478 _ACEOF
16479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16482 else
16483 cat
16484 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16485 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16486 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16487 { (exit 1); exit 1; }; }
16488 _ACEOF
16489
16490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16492 # trailing colons and then remove the whole line if VPATH becomes empty
16493 # (actually we leave an empty line to preserve line numbers).
16494 if test "x$srcdir" = x.; then
16495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16496 s/:*\$(srcdir):*/:/
16497 s/:*\${srcdir}:*/:/
16498 s/:*@srcdir@:*/:/
16499 s/^\([^=]*=[ ]*\):*/\1/
16500 s/:*$//
16501 s/^[^=]*=[ ]*$//
16502 }'
16503 fi
16504
16505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16506 fi # test -n "$CONFIG_FILES"
16507
16508 # Set up the scripts for CONFIG_HEADERS section.
16509 # No need to generate them if there are no CONFIG_HEADERS.
16510 # This happens for instance with `./config.status Makefile'.
16511 if test -n "$CONFIG_HEADERS"; then
16512 cat >"$tmp/defines.awk" <<\_ACAWK ||
16513 BEGIN {
16514 _ACEOF
16515
16516 # Transform confdefs.h into an awk script `defines.awk', embedded as
16517 # here-document in config.status, that substitutes the proper values into
16518 # config.h.in to produce config.h.
16519
16520 # Create a delimiter string that does not exist in confdefs.h, to ease
16521 # handling of long lines.
16522 ac_delim='%!_!# '
16523 for ac_last_try in false false :; do
16524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16525 if test -z "$ac_t"; then
16526 break
16527 elif $ac_last_try; then
16528 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16529 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16530 { (exit 1); exit 1; }; }
16531 else
16532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16533 fi
16534 done
16535
16536 # For the awk script, D is an array of macro values keyed by name,
16537 # likewise P contains macro parameters if any. Preserve backslash
16538 # newline sequences.
16539
16540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16541 sed -n '
16542 s/.\{148\}/&'"$ac_delim"'/g
16543 t rset
16544 :rset
16545 s/^[ ]*#[ ]*define[ ][ ]*/ /
16546 t def
16547 d
16548 :def
16549 s/\\$//
16550 t bsnl
16551 s/["\\]/\\&/g
16552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16553 D["\1"]=" \3"/p
16554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16555 d
16556 :bsnl
16557 s/["\\]/\\&/g
16558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16559 D["\1"]=" \3\\\\\\n"\\/p
16560 t cont
16561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16562 t cont
16563 d
16564 :cont
16565 n
16566 s/.\{148\}/&'"$ac_delim"'/g
16567 t clear
16568 :clear
16569 s/\\$//
16570 t bsnlc
16571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16572 d
16573 :bsnlc
16574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16575 b cont
16576 ' <confdefs.h | sed '
16577 s/'"$ac_delim"'/"\\\
16578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16579
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 for (key in D) D_is_set[key] = 1
16582 FS = "\a"
16583 }
16584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16585 line = \$ 0
16586 split(line, arg, " ")
16587 if (arg[1] == "#") {
16588 defundef = arg[2]
16589 mac1 = arg[3]
16590 } else {
16591 defundef = substr(arg[1], 2)
16592 mac1 = arg[2]
16593 }
16594 split(mac1, mac2, "(") #)
16595 macro = mac2[1]
16596 prefix = substr(line, 1, index(line, defundef) - 1)
16597 if (D_is_set[macro]) {
16598 # Preserve the white space surrounding the "#".
16599 print prefix "define", macro P[macro] D[macro]
16600 next
16601 } else {
16602 # Replace #undef with comments. This is necessary, for example,
16603 # in the case of _POSIX_SOURCE, which is predefined and required
16604 # on some systems where configure will not decide to define it.
16605 if (defundef == "undef") {
16606 print "/*", prefix defundef, macro, "*/"
16607 next
16608 }
16609 }
16610 }
16611 { print }
16612 _ACAWK
16613 _ACEOF
16614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16616 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16617 { (exit 1); exit 1; }; }
16618 fi # test -n "$CONFIG_HEADERS"
16619
16620
16621 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16622 shift
16623 for ac_tag
16624 do
16625 case $ac_tag in
16626 :[FHLC]) ac_mode=$ac_tag; continue;;
16627 esac
16628 case $ac_mode$ac_tag in
16629 :[FHL]*:*);;
16630 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16631 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16632 { (exit 1); exit 1; }; };;
16633 :[FH]-) ac_tag=-:-;;
16634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16635 esac
16636 ac_save_IFS=$IFS
16637 IFS=:
16638 set x $ac_tag
16639 IFS=$ac_save_IFS
16640 shift
16641 ac_file=$1
16642 shift
16643
16644 case $ac_mode in
16645 :L) ac_source=$1;;
16646 :[FH])
16647 ac_file_inputs=
16648 for ac_f
16649 do
16650 case $ac_f in
16651 -) ac_f="$tmp/stdin";;
16652 *) # Look for the file first in the build tree, then in the source tree
16653 # (if the path is not absolute). The absolute path cannot be DOS-style,
16654 # because $ac_f cannot contain `:'.
16655 test -f "$ac_f" ||
16656 case $ac_f in
16657 [\\/$]*) false;;
16658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16659 esac ||
16660 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16661 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16662 { (exit 1); exit 1; }; };;
16663 esac
16664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16665 ac_file_inputs="$ac_file_inputs '$ac_f'"
16666 done
16667
16668 # Let's still pretend it is `configure' which instantiates (i.e., don't
16669 # use $as_me), people would be surprised to read:
16670 # /* config.h. Generated by config.status. */
16671 configure_input='Generated from '`
16672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16673 `' by configure.'
16674 if test x"$ac_file" != x-; then
16675 configure_input="$ac_file. $configure_input"
16676 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16677 $as_echo "$as_me: creating $ac_file" >&6;}
16678 fi
16679 # Neutralize special characters interpreted by sed in replacement strings.
16680 case $configure_input in #(
16681 *\&* | *\|* | *\\* )
16682 ac_sed_conf_input=`$as_echo "$configure_input" |
16683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16684 *) ac_sed_conf_input=$configure_input;;
16685 esac
16686
16687 case $ac_tag in
16688 *:-:* | *:-) cat >"$tmp/stdin" \
16689 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16690 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16691 { (exit 1); exit 1; }; } ;;
16692 esac
16693 ;;
16694 esac
16695
16696 ac_dir=`$as_dirname -- "$ac_file" ||
16697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16698 X"$ac_file" : 'X\(//\)[^/]' \| \
16699 X"$ac_file" : 'X\(//\)$' \| \
16700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16701 $as_echo X"$ac_file" |
16702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16703 s//\1/
16704 q
16705 }
16706 /^X\(\/\/\)[^/].*/{
16707 s//\1/
16708 q
16709 }
16710 /^X\(\/\/\)$/{
16711 s//\1/
16712 q
16713 }
16714 /^X\(\/\).*/{
16715 s//\1/
16716 q
16717 }
16718 s/.*/./; q'`
16719 { as_dir="$ac_dir"
16720 case $as_dir in #(
16721 -*) as_dir=./$as_dir;;
16722 esac
16723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16724 as_dirs=
16725 while :; do
16726 case $as_dir in #(
16727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16728 *) as_qdir=$as_dir;;
16729 esac
16730 as_dirs="'$as_qdir' $as_dirs"
16731 as_dir=`$as_dirname -- "$as_dir" ||
16732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733 X"$as_dir" : 'X\(//\)[^/]' \| \
16734 X"$as_dir" : 'X\(//\)$' \| \
16735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16736 $as_echo X"$as_dir" |
16737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16738 s//\1/
16739 q
16740 }
16741 /^X\(\/\/\)[^/].*/{
16742 s//\1/
16743 q
16744 }
16745 /^X\(\/\/\)$/{
16746 s//\1/
16747 q
16748 }
16749 /^X\(\/\).*/{
16750 s//\1/
16751 q
16752 }
16753 s/.*/./; q'`
16754 test -d "$as_dir" && break
16755 done
16756 test -z "$as_dirs" || eval "mkdir $as_dirs"
16757 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16758 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16759 { (exit 1); exit 1; }; }; }
16760 ac_builddir=.
16761
16762 case "$ac_dir" in
16763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16764 *)
16765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16766 # A ".." for each directory in $ac_dir_suffix.
16767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16768 case $ac_top_builddir_sub in
16769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16771 esac ;;
16772 esac
16773 ac_abs_top_builddir=$ac_pwd
16774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16775 # for backward compatibility:
16776 ac_top_builddir=$ac_top_build_prefix
16777
16778 case $srcdir in
16779 .) # We are building in place.
16780 ac_srcdir=.
16781 ac_top_srcdir=$ac_top_builddir_sub
16782 ac_abs_top_srcdir=$ac_pwd ;;
16783 [\\/]* | ?:[\\/]* ) # Absolute name.
16784 ac_srcdir=$srcdir$ac_dir_suffix;
16785 ac_top_srcdir=$srcdir
16786 ac_abs_top_srcdir=$srcdir ;;
16787 *) # Relative name.
16788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16789 ac_top_srcdir=$ac_top_build_prefix$srcdir
16790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16791 esac
16792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16793
16794
16795 case $ac_mode in
16796 :F)
16797 #
16798 # CONFIG_FILE
16799 #
16800
16801 case $INSTALL in
16802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16804 esac
16805 ac_MKDIR_P=$MKDIR_P
16806 case $MKDIR_P in
16807 [\\/$]* | ?:[\\/]* ) ;;
16808 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16809 esac
16810 _ACEOF
16811
16812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16813 # If the template does not know about datarootdir, expand it.
16814 # FIXME: This hack should be removed a few years after 2.60.
16815 ac_datarootdir_hack=; ac_datarootdir_seen=
16816
16817 ac_sed_dataroot='
16818 /datarootdir/ {
16819 p
16820 q
16821 }
16822 /@datadir@/p
16823 /@docdir@/p
16824 /@infodir@/p
16825 /@localedir@/p
16826 /@mandir@/p
16827 '
16828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16829 *datarootdir*) ac_datarootdir_seen=yes;;
16830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16831 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16832 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16833 _ACEOF
16834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16835 ac_datarootdir_hack='
16836 s&@datadir@&$datadir&g
16837 s&@docdir@&$docdir&g
16838 s&@infodir@&$infodir&g
16839 s&@localedir@&$localedir&g
16840 s&@mandir@&$mandir&g
16841 s&\\\${datarootdir}&$datarootdir&g' ;;
16842 esac
16843 _ACEOF
16844
16845 # Neutralize VPATH when `$srcdir' = `.'.
16846 # Shell code in configure.ac might set extrasub.
16847 # FIXME: do we really want to maintain this feature?
16848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16849 ac_sed_extra="$ac_vpsub
16850 $extrasub
16851 _ACEOF
16852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16853 :t
16854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16855 s|@configure_input@|$ac_sed_conf_input|;t t
16856 s&@top_builddir@&$ac_top_builddir_sub&;t t
16857 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16858 s&@srcdir@&$ac_srcdir&;t t
16859 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16860 s&@top_srcdir@&$ac_top_srcdir&;t t
16861 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16862 s&@builddir@&$ac_builddir&;t t
16863 s&@abs_builddir@&$ac_abs_builddir&;t t
16864 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16865 s&@INSTALL@&$ac_INSTALL&;t t
16866 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16867 $ac_datarootdir_hack
16868 "
16869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16870 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16871 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16872 { (exit 1); exit 1; }; }
16873
16874 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16875 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16876 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16877 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16878 which seems to be undefined. Please make sure it is defined." >&5
16879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16880 which seems to be undefined. Please make sure it is defined." >&2;}
16881
16882 rm -f "$tmp/stdin"
16883 case $ac_file in
16884 -) cat "$tmp/out" && rm -f "$tmp/out";;
16885 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16886 esac \
16887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16889 { (exit 1); exit 1; }; }
16890 ;;
16891 :H)
16892 #
16893 # CONFIG_HEADER
16894 #
16895 if test x"$ac_file" != x-; then
16896 {
16897 $as_echo "/* $configure_input */" \
16898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16899 } >"$tmp/config.h" \
16900 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16901 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16902 { (exit 1); exit 1; }; }
16903 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16904 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16906 else
16907 rm -f "$ac_file"
16908 mv "$tmp/config.h" "$ac_file" \
16909 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16910 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16911 { (exit 1); exit 1; }; }
16912 fi
16913 else
16914 $as_echo "/* $configure_input */" \
16915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16916 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16917 $as_echo "$as_me: error: could not create -" >&2;}
16918 { (exit 1); exit 1; }; }
16919 fi
16920 ;;
16921
16922
16923 esac
16924
16925 done # for ac_tag
16926
16927
16928 { (exit 0); exit 0; }
16929 _ACEOF
16930 chmod +x $CONFIG_STATUS
16931 ac_clean_files=$ac_clean_files_save
16932
16933 test $ac_write_fail = 0 ||
16934 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16935 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16936 { (exit 1); exit 1; }; }
16937
16938
16939 # configure is writing to config.log, and then calls config.status.
16940 # config.status does its own redirection, appending to config.log.
16941 # Unfortunately, on DOS this fails, as config.log is still kept open
16942 # by configure, so config.status won't be able to write to it; its
16943 # output is simply discarded. So we exec the FD to /dev/null,
16944 # effectively closing config.log, so it can be properly (re)opened and
16945 # appended to by config.status. When coming back to configure, we
16946 # need to make the FD available again.
16947 if test "$no_create" != yes; then
16948 ac_cs_success=:
16949 ac_config_status_args=
16950 test "$silent" = yes &&
16951 ac_config_status_args="$ac_config_status_args --quiet"
16952 exec 5>/dev/null
16953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16954 exec 5>>config.log
16955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16956 # would make configure fail if this is the last instruction.
16957 $ac_cs_success || { (exit 1); exit 1; }
16958 fi
16959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16960 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16962 fi
16963
16964
16965 if test x$ODIRECT != xyes; then
16966 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16967 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16968 fi
This page took 0.870449 seconds and 6 git commands to generate.