]> sourceware.org Git - lvm2.git/blob - configure
Update configure.
[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 WRITE_INSTALL
650 UDEV_SYNC
651 UDEV_RULES
652 UDEV_PC
653 UDEV_LIBS
654 TESTING
655 STATIC_LINK
656 STATICDIR
657 SNAPSHOTS
658 SELINUX_PC
659 SELINUX_LIBS
660 READLINE_LIBS
661 PTHREAD_LIBS
662 POOL
663 PKGCONFIG
664 REPLICATORS
665 OCF
666 MIRRORS
667 LVM_RELEASE_DATE
668 LVM_RELEASE
669 LVM_PATCHLEVEL
670 LVM_MINOR
671 LVM_MAJOR
672 LVM_LIBAPI
673 LVM_VERSION
674 LVM1_FALLBACK
675 LVM1
676 LOCALEDIR
677 LIB_SUFFIX
678 LDDEPS
679 JOBS
680 INTL_PACKAGE
681 INTL
682 HAVE_REALTIME
683 HAVE_LIBDL
684 FSADM
685 DM_LIB_PATCHLEVEL
686 DM_LIB_VERSION
687 DM_IOCTLS
688 DM_DEVICE_UID
689 DM_DEVICE_MODE
690 DM_DEVICE_GID
691 DM_COMPAT
692 DMEVENTD_PATH
693 DMEVENTD
694 DL_LIBS
695 DEVMAPPER
696 DEFAULT_RUN_DIR
697 DEFAULT_LOCK_DIR
698 DEFAULT_DATA_ALIGNMENT
699 DEFAULT_CACHE_SUBDIR
700 DEFAULT_BACKUP_SUBDIR
701 DEFAULT_ARCHIVE_SUBDIR
702 DEFAULT_SYS_DIR
703 DEBUG
704 COPTIMISE_FLAG
705 CONFDIR
706 CMDLIB
707 CLVMD_CMANAGERS
708 CLVMD
709 CLUSTER
710 CLDWHOLEARCHIVE
711 CLDNOWHOLEARCHIVE
712 CLDFLAGS
713 BUILD_DMEVENTD
714 BUILD_CMIRRORD
715 APPLIB
716 MODPROBE_CMD
717 MSGFMT
718 LVM2CMD_LIB
719 LVM2APP_LIB
720 VALGRIND
721 RUBY19
722 GENPNG
723 GENHTML
724 LCOV
725 SACKPT_LIBS
726 SACKPT_CFLAGS
727 DLM_LIBS
728 DLM_CFLAGS
729 CPG_LIBS
730 CPG_CFLAGS
731 CONFDB_LIBS
732 CONFDB_CFLAGS
733 SALCK_LIBS
734 SALCK_CFLAGS
735 QUORUM_LIBS
736 QUORUM_CFLAGS
737 COROSYNC_LIBS
738 COROSYNC_CFLAGS
739 CMAN_LIBS
740 CMAN_CFLAGS
741 GULM_LIBS
742 GULM_CFLAGS
743 CCS_LIBS
744 CCS_CFLAGS
745 PKGCONFIGINIT_LIBS
746 PKGCONFIGINIT_CFLAGS
747 PKG_CONFIG
748 POW_LIB
749 LIBOBJS
750 ALLOCA
751 CSCOPE_CMD
752 CFLOW_CMD
753 RANLIB
754 MKDIR_P
755 SET_MAKE
756 LN_S
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 EGREP
761 GREP
762 CPP
763 OBJEXT
764 EXEEXT
765 ac_ct_CC
766 CPPFLAGS
767 LDFLAGS
768 CFLAGS
769 CC
770 AWK
771 SED
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_static_link
825 with_user
826 with_group
827 with_device_uid
828 with_device_gid
829 with_device_mode
830 enable_lvm1_fallback
831 with_lvm1
832 with_pool
833 with_cluster
834 with_snapshots
835 with_mirrors
836 with_replicators
837 enable_readline
838 enable_realtime
839 enable_ocf
840 with_clvmd
841 with_clvmd_pidfile
842 enable_cmirrord
843 with_cmirrord_pidfile
844 enable_debug
845 with_optimisation
846 enable_profiling
847 enable_testing
848 enable_valgrind_pool
849 enable_devmapper
850 enable_udev_sync
851 enable_udev_rules
852 enable_compat
853 enable_units_compat
854 enable_ioctl
855 enable_o_direct
856 enable_applib
857 enable_cmdlib
858 enable_pkgconfig
859 enable_write_install
860 enable_fsadm
861 enable_dmeventd
862 enable_selinux
863 enable_nls
864 with_localedir
865 with_confdir
866 with_staticdir
867 with_usrlibdir
868 with_usrsbindir
869 with_udev_prefix
870 with_udevdir
871 with_dmeventd_pidfile
872 with_dmeventd_path
873 with_default_run_dir
874 with_default_system_dir
875 with_default_archive_subdir
876 with_default_backup_subdir
877 with_default_cache_subdir
878 with_default_locking_dir
879 with_default_data_alignment
880 with_interface
881 '
882 ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP
891 PKG_CONFIG
892 PKGCONFIGINIT_CFLAGS
893 PKGCONFIGINIT_LIBS
894 CCS_CFLAGS
895 CCS_LIBS
896 GULM_CFLAGS
897 GULM_LIBS
898 CMAN_CFLAGS
899 CMAN_LIBS
900 COROSYNC_CFLAGS
901 COROSYNC_LIBS
902 QUORUM_CFLAGS
903 QUORUM_LIBS
904 SALCK_CFLAGS
905 SALCK_LIBS
906 CONFDB_CFLAGS
907 CONFDB_LIBS
908 CPG_CFLAGS
909 CPG_LIBS
910 DLM_CFLAGS
911 DLM_LIBS
912 SACKPT_CFLAGS
913 SACKPT_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1034
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1044
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1070
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1074
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1081
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1086
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1092
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1099
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1104
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1109
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1116
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1121
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1128
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1133
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1137
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1140 no_create=yes ;;
1141
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1145
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1154
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1159
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1166
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1173
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1190
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1195
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1200
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1249
1250 -with-* | --with-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1259 *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1266
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
1283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1301
1302 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1315
1316 *)
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 ;;
1323
1324 esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1331 fi
1332
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1337 { (exit 1); exit 1; }; } ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1340 fi
1341
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1347 do
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380 fi
1381
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385 test "$silent" = yes && exec 6>/dev/null
1386
1387
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1396
1397
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\).*/{
1421 s//\1/
1422 q
1423 }
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1428 fi
1429 else
1430 ac_srcdir_defaulted=no
1431 fi
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435 { (exit 1); exit 1; }; }
1436 fi
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1440 { (exit 1); exit 1; }; }
1441 pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445 fi
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1458
1459 #
1460 # Report the --help message.
1461 #
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466 \`configure' configures this package to adapt to many kinds of systems.
1467
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473 Defaults for the options are specified in brackets.
1474
1475 Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1496
1497 For better control, use the options below.
1498
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1519 _ACEOF
1520
1521 cat <<\_ACEOF
1522
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527 _ACEOF
1528 fi
1529
1530 if test -n "$ac_init_help"; then
1531
1532 cat <<\_ACEOF
1533
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-static_link use this to link the tools to their libraries
1539 statically (default is dynamic linking
1540 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1541 device-mapper is missing from the kernel
1542 --disable-readline disable readline support
1543 --enable-realtime enable realtime clock support
1544 --enable-ocf enable Open Cluster Framework (OCF) compliant
1545 resource agents
1546 --enable-cmirrord enable the cluster mirror log daemon
1547 --enable-debug enable debugging
1548 --enable-profiling gather gcov profiling data
1549 --enable-testing enable testing targets in the makefile
1550 --enable-valgrind-pool enable valgrind awareness of pools
1551 --disable-devmapper disable LVM2 device-mapper interaction
1552 --enable-udev_sync enable synchronisation with udev processing
1553 --enable-udev_rules install rule files needed for udev synchronisation
1554 --enable-compat enable support for old device-mapper versions
1555 --enable-units-compat enable output compatibility with old versions that
1556 that do not use KiB-style unit suffixes
1557 --disable-driver disable calls to device-mapper in the kernel
1558 --disable-o_direct disable O_DIRECT
1559 --enable-applib build application library
1560 --enable-cmdlib build shared command library
1561 --enable-pkgconfig install pkgconfig support
1562 --enable-write_install install user writable files
1563 --disable-fsadm disable fsadm
1564 --enable-dmeventd enable the device-mapper event daemon
1565 --disable-selinux disable selinux support
1566 --enable-nls enable Native Language Support
1567
1568 Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-user=USER set the owner of installed files [USER=]
1572 --with-group=GROUP set the group owner of installed files [GROUP=]
1573 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1574 --with-device-gid=GID set the group used for new device nodes [GID=0]
1575 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
1576 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1577 [TYPE=internal]
1578 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1579 [TYPE=internal]
1580 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1581 [TYPE=internal]
1582 --with-snapshots=TYPE snapshot support: internal/shared/none
1583 [TYPE=internal]
1584 --with-mirrors=TYPE mirror support: internal/shared/none
1585 [TYPE=internal]
1586 --with-replicators=TYPE replicator support: internal/shared/none
1587 [TYPE=none]
1588 --with-clvmd=TYPE build cluster LVM Daemon
1589 The following cluster manager combinations are valid:
1590 * cman,gulm (RHEL4 or equivalent)
1591 * cman (RHEL5 or equivalent)
1592 * cman,corosync,openais (or selection of them)
1593 * singlenode (localhost only)
1594 * all (autodetect)
1595 * none (disable build)
1596 [TYPE=none]
1597 --with-clvmd-pidfile=PATH
1598 clvmd pidfile [/var/run/clvmd.pid]
1599 --with-cmirrord-pidfile=PATH
1600 cmirrord pidfile [/var/run/cmirrord.pid]
1601 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1602 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1603 --with-confdir=DIR configuration files in DIR [/etc]
1604 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1605 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1606 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1607 --with-udev-prefix=UPREFIX
1608 install udev rule files in UPREFIX [EPREFIX]
1609 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1610 --with-dmeventd-pidfile=PATH
1611 dmeventd pidfile [/var/run/dmeventd.pid]
1612 --with-dmeventd-path=PATH
1613 dmeventd path [EPREFIX/sbin/dmeventd]
1614 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1615 --with-default-system-dir=DIR
1616 default LVM system directory [/etc/lvm]
1617 --with-default-archive-subdir=SUBDIR
1618 default metadata archive subdir [archive]
1619 --with-default-backup-subdir=SUBDIR
1620 default metadata backup subdir [backup]
1621 --with-default-cache-subdir=SUBDIR
1622 default metadata cache subdir [cache]
1623 --with-default-locking-dir=DIR
1624 default locking directory [/var/lock/lvm]
1625 --with-default-data-alignment=NUM
1626 set the default data alignment in MiB [1]
1627 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
1628
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1637 CPP C preprocessor
1638 PKG_CONFIG path to pkg-config utility
1639 PKGCONFIGINIT_CFLAGS
1640 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1641 PKGCONFIGINIT_LIBS
1642 linker flags for PKGCONFIGINIT, overriding pkg-config
1643 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1644 CCS_LIBS linker flags for CCS, overriding pkg-config
1645 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1646 GULM_LIBS linker flags for GULM, overriding pkg-config
1647 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1648 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1649 COROSYNC_CFLAGS
1650 C compiler flags for COROSYNC, overriding pkg-config
1651 COROSYNC_LIBS
1652 linker flags for COROSYNC, overriding pkg-config
1653 QUORUM_CFLAGS
1654 C compiler flags for QUORUM, overriding pkg-config
1655 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1656 SALCK_CFLAGS
1657 C compiler flags for SALCK, overriding pkg-config
1658 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1659 CONFDB_CFLAGS
1660 C compiler flags for CONFDB, overriding pkg-config
1661 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1662 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1663 CPG_LIBS linker flags for CPG, overriding pkg-config
1664 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1665 DLM_LIBS linker flags for DLM, overriding pkg-config
1666 SACKPT_CFLAGS
1667 C compiler flags for SACKPT, overriding pkg-config
1668 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1669
1670 Use these variables to override the choices made by `configure' or to help
1671 it to find libraries and programs with nonstandard names/locations.
1672
1673 _ACEOF
1674 ac_status=$?
1675 fi
1676
1677 if test "$ac_init_help" = "recursive"; then
1678 # If there are subdirs, report their specific --help.
1679 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680 test -d "$ac_dir" ||
1681 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 continue
1683 ac_builddir=.
1684
1685 case "$ac_dir" in
1686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 *)
1688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689 # A ".." for each directory in $ac_dir_suffix.
1690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691 case $ac_top_builddir_sub in
1692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694 esac ;;
1695 esac
1696 ac_abs_top_builddir=$ac_pwd
1697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698 # for backward compatibility:
1699 ac_top_builddir=$ac_top_build_prefix
1700
1701 case $srcdir in
1702 .) # We are building in place.
1703 ac_srcdir=.
1704 ac_top_srcdir=$ac_top_builddir_sub
1705 ac_abs_top_srcdir=$ac_pwd ;;
1706 [\\/]* | ?:[\\/]* ) # Absolute name.
1707 ac_srcdir=$srcdir$ac_dir_suffix;
1708 ac_top_srcdir=$srcdir
1709 ac_abs_top_srcdir=$srcdir ;;
1710 *) # Relative name.
1711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712 ac_top_srcdir=$ac_top_build_prefix$srcdir
1713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1714 esac
1715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
1717 cd "$ac_dir" || { ac_status=$?; continue; }
1718 # Check for guested configure.
1719 if test -f "$ac_srcdir/configure.gnu"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722 elif test -f "$ac_srcdir/configure"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure" --help=recursive
1725 else
1726 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1727 fi || ac_status=$?
1728 cd "$ac_pwd" || { ac_status=$?; break; }
1729 done
1730 fi
1731
1732 test -n "$ac_init_help" && exit $ac_status
1733 if $ac_init_version; then
1734 cat <<\_ACEOF
1735 configure
1736 generated by GNU Autoconf 2.63
1737
1738 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1739 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1740 This configure script is free software; the Free Software Foundation
1741 gives unlimited permission to copy, distribute and modify it.
1742 _ACEOF
1743 exit
1744 fi
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1748
1749 It was created by $as_me, which was
1750 generated by GNU Autoconf 2.63. Invocation command line was
1751
1752 $ $0 $@
1753
1754 _ACEOF
1755 exec 5>>config.log
1756 {
1757 cat <<_ASUNAME
1758 ## --------- ##
1759 ## Platform. ##
1760 ## --------- ##
1761
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1770
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1778
1779 _ASUNAME
1780
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1783 do
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 $as_echo "PATH: $as_dir"
1787 done
1788 IFS=$as_save_IFS
1789
1790 } >&5
1791
1792 cat >&5 <<_ACEOF
1793
1794
1795 ## ----------- ##
1796 ## Core tests. ##
1797 ## ----------- ##
1798
1799 _ACEOF
1800
1801
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1807 ac_configure_args=
1808 ac_configure_args0=
1809 ac_configure_args1=
1810 ac_must_keep_next=false
1811 for ac_pass in 1 2
1812 do
1813 for ac_arg
1814 do
1815 case $ac_arg in
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1819 continue ;;
1820 *\'*)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1822 esac
1823 case $ac_pass in
1824 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1825 2)
1826 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1829 else
1830 case $ac_arg in
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837 esac
1838 ;;
1839 -* ) ac_must_keep_next=true ;;
1840 esac
1841 fi
1842 ac_configure_args="$ac_configure_args '$ac_arg'"
1843 ;;
1844 esac
1845 done
1846 done
1847 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1848 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1849
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log. We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
1860 cat <<\_ASBOX
1861 ## ---------------- ##
1862 ## Cache variables. ##
1863 ## ---------------- ##
1864 _ASBOX
1865 echo
1866 # The following way of writing the cache mishandles newlines in values,
1867 (
1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869 eval ac_val=\$$ac_var
1870 case $ac_val in #(
1871 *${as_nl}*)
1872 case $ac_var in #(
1873 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1875 esac
1876 case $ac_var in #(
1877 _ | IFS | as_nl) ;; #(
1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879 *) $as_unset $ac_var ;;
1880 esac ;;
1881 esac
1882 done
1883 (set) 2>&1 |
1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885 *${as_nl}ac_space=\ *)
1886 sed -n \
1887 "s/'\''/'\''\\\\'\'''\''/g;
1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889 ;; #(
1890 *)
1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1892 ;;
1893 esac |
1894 sort
1895 )
1896 echo
1897
1898 cat <<\_ASBOX
1899 ## ----------------- ##
1900 ## Output variables. ##
1901 ## ----------------- ##
1902 _ASBOX
1903 echo
1904 for ac_var in $ac_subst_vars
1905 do
1906 eval ac_val=\$$ac_var
1907 case $ac_val in
1908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909 esac
1910 $as_echo "$ac_var='\''$ac_val'\''"
1911 done | sort
1912 echo
1913
1914 if test -n "$ac_subst_files"; then
1915 cat <<\_ASBOX
1916 ## ------------------- ##
1917 ## File substitutions. ##
1918 ## ------------------- ##
1919 _ASBOX
1920 echo
1921 for ac_var in $ac_subst_files
1922 do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926 esac
1927 $as_echo "$ac_var='\''$ac_val'\''"
1928 done | sort
1929 echo
1930 fi
1931
1932 if test -s confdefs.h; then
1933 cat <<\_ASBOX
1934 ## ----------- ##
1935 ## confdefs.h. ##
1936 ## ----------- ##
1937 _ASBOX
1938 echo
1939 cat confdefs.h
1940 echo
1941 fi
1942 test "$ac_signal" != 0 &&
1943 $as_echo "$as_me: caught signal $ac_signal"
1944 $as_echo "$as_me: exit $exit_status"
1945 } >&5
1946 rm -f core *.core core.conftest.* &&
1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948 exit $exit_status
1949 ' 0
1950 for ac_signal in 1 2 13 15; do
1951 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1952 done
1953 ac_signal=0
1954
1955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1956 rm -f -r conftest* confdefs.h
1957
1958 # Predefined preprocessor variables.
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_NAME "$PACKAGE_NAME"
1962 _ACEOF
1963
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967 _ACEOF
1968
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1972 _ACEOF
1973
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_STRING "$PACKAGE_STRING"
1977 _ACEOF
1978
1979
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982 _ACEOF
1983
1984
1985 # Let the site file select an alternate cache file if it wants to.
1986 # Prefer an explicitly selected file to automatically selected ones.
1987 ac_site_file1=NONE
1988 ac_site_file2=NONE
1989 if test -n "$CONFIG_SITE"; then
1990 ac_site_file1=$CONFIG_SITE
1991 elif test "x$prefix" != xNONE; then
1992 ac_site_file1=$prefix/share/config.site
1993 ac_site_file2=$prefix/etc/config.site
1994 else
1995 ac_site_file1=$ac_default_prefix/share/config.site
1996 ac_site_file2=$ac_default_prefix/etc/config.site
1997 fi
1998 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1999 do
2000 test "x$ac_site_file" = xNONE && continue
2001 if test -r "$ac_site_file"; then
2002 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2003 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2004 sed 's/^/| /' "$ac_site_file" >&5
2005 . "$ac_site_file"
2006 fi
2007 done
2008
2009 if test -r "$cache_file"; then
2010 # Some versions of bash will fail to source /dev/null (special
2011 # files actually), so we avoid doing that.
2012 if test -f "$cache_file"; then
2013 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2014 $as_echo "$as_me: loading cache $cache_file" >&6;}
2015 case $cache_file in
2016 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2017 *) . "./$cache_file";;
2018 esac
2019 fi
2020 else
2021 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2022 $as_echo "$as_me: creating cache $cache_file" >&6;}
2023 >$cache_file
2024 fi
2025
2026 # Check that the precious variables saved in the cache have kept the same
2027 # value.
2028 ac_cache_corrupted=false
2029 for ac_var in $ac_precious_vars; do
2030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2031 eval ac_new_set=\$ac_env_${ac_var}_set
2032 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2033 eval ac_new_val=\$ac_env_${ac_var}_value
2034 case $ac_old_set,$ac_new_set in
2035 set,)
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2039 ,set)
2040 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2041 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2042 ac_cache_corrupted=: ;;
2043 ,);;
2044 *)
2045 if test "x$ac_old_val" != "x$ac_new_val"; then
2046 # differences in whitespace do not lead to failure.
2047 ac_old_val_w=`echo x $ac_old_val`
2048 ac_new_val_w=`echo x $ac_new_val`
2049 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2050 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2051 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2052 ac_cache_corrupted=:
2053 else
2054 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2055 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2056 eval $ac_var=\$ac_old_val
2057 fi
2058 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2059 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2060 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2061 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2062 fi;;
2063 esac
2064 # Pass precious variables to config.status.
2065 if test "$ac_new_set" = set; then
2066 case $ac_new_val in
2067 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 *) ac_arg=$ac_var=$ac_new_val ;;
2069 esac
2070 case " $ac_configure_args " in
2071 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2072 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2073 esac
2074 fi
2075 done
2076 if $ac_cache_corrupted; then
2077 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2080 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2081 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2082 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102 ac_ext=c
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107
2108
2109
2110 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2111
2112
2113 ################################################################################
2114 ac_aux_dir=
2115 for ac_dir in autoconf "$srcdir"/autoconf; do
2116 if test -f "$ac_dir/install-sh"; then
2117 ac_aux_dir=$ac_dir
2118 ac_install_sh="$ac_aux_dir/install-sh -c"
2119 break
2120 elif test -f "$ac_dir/install.sh"; then
2121 ac_aux_dir=$ac_dir
2122 ac_install_sh="$ac_aux_dir/install.sh -c"
2123 break
2124 elif test -f "$ac_dir/shtool"; then
2125 ac_aux_dir=$ac_dir
2126 ac_install_sh="$ac_aux_dir/shtool install -c"
2127 break
2128 fi
2129 done
2130 if test -z "$ac_aux_dir"; then
2131 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2132 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2133 { (exit 1); exit 1; }; }
2134 fi
2135
2136 # These three variables are undocumented and unsupported,
2137 # and are intended to be withdrawn in a future Autoconf release.
2138 # They can cause serious problems if a builder's source tree is in a directory
2139 # whose full name contains unusual characters.
2140 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2141 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2142 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2143
2144
2145
2146 ################################################################################
2147 # Make sure we can run config.sub.
2148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2149 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2151 { (exit 1); exit 1; }; }
2152
2153 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2154 $as_echo_n "checking build system type... " >&6; }
2155 if test "${ac_cv_build+set}" = set; then
2156 $as_echo_n "(cached) " >&6
2157 else
2158 ac_build_alias=$build_alias
2159 test "x$ac_build_alias" = x &&
2160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161 test "x$ac_build_alias" = x &&
2162 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164 { (exit 1); exit 1; }; }
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2169
2170 fi
2171 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 $as_echo "$ac_cv_build" >&6; }
2173 case $ac_cv_build in
2174 *-*-*) ;;
2175 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2177 { (exit 1); exit 1; }; };;
2178 esac
2179 build=$ac_cv_build
2180 ac_save_IFS=$IFS; IFS='-'
2181 set x $ac_cv_build
2182 shift
2183 build_cpu=$1
2184 build_vendor=$2
2185 shift; shift
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2188 build_os=$*
2189 IFS=$ac_save_IFS
2190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2191
2192
2193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2194 $as_echo_n "checking host system type... " >&6; }
2195 if test "${ac_cv_host+set}" = set; then
2196 $as_echo_n "(cached) " >&6
2197 else
2198 if test "x$host_alias" = x; then
2199 ac_cv_host=$ac_cv_build
2200 else
2201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2202 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2204 { (exit 1); exit 1; }; }
2205 fi
2206
2207 fi
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 $as_echo "$ac_cv_host" >&6; }
2210 case $ac_cv_host in
2211 *-*-*) ;;
2212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2214 { (exit 1); exit 1; }; };;
2215 esac
2216 host=$ac_cv_host
2217 ac_save_IFS=$IFS; IFS='-'
2218 set x $ac_cv_host
2219 shift
2220 host_cpu=$1
2221 host_vendor=$2
2222 shift; shift
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2225 host_os=$*
2226 IFS=$ac_save_IFS
2227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2228
2229
2230 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2231 $as_echo_n "checking target system type... " >&6; }
2232 if test "${ac_cv_target+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2234 else
2235 if test "x$target_alias" = x; then
2236 ac_cv_target=$ac_cv_host
2237 else
2238 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2239 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2241 { (exit 1); exit 1; }; }
2242 fi
2243
2244 fi
2245 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2248 *-*-*) ;;
2249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2251 { (exit 1); exit 1; }; };;
2252 esac
2253 target=$ac_cv_target
2254 ac_save_IFS=$IFS; IFS='-'
2255 set x $ac_cv_target
2256 shift
2257 target_cpu=$1
2258 target_vendor=$2
2259 shift; shift
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2262 target_os=$*
2263 IFS=$ac_save_IFS
2264 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2265
2266
2267 # The aliases save the names the user supplied, while $host etc.
2268 # will get canonicalized.
2269 test -n "$target_alias" &&
2270 test "$program_prefix$program_suffix$program_transform_name" = \
2271 NONENONEs,x,x, &&
2272 program_prefix=${target_alias}-
2273
2274 case "$host_os" in
2275 linux*)
2276 CFLAGS="$CFLAGS"
2277 COPTIMISE_FLAG="-O2"
2278 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2279 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2280 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2281 LDDEPS="$LDDEPS .export.sym"
2282 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2283 LIB_SUFFIX=so
2284 DEVMAPPER=yes
2285 ODIRECT=yes
2286 DM_IOCTLS=yes
2287 SELINUX=yes
2288 CLUSTER=internal
2289 FSADM=yes
2290 ;;
2291 darwin*)
2292 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2293 COPTIMISE_FLAG="-O2"
2294 CLDFLAGS="$CLDFLAGS"
2295 CLDWHOLEARCHIVE="-all_load"
2296 CLDNOWHOLEARCHIVE=
2297 LIB_SUFFIX=dylib
2298 DEVMAPPER=yes
2299 ODIRECT=no
2300 DM_IOCTLS=no
2301 SELINUX=no
2302 CLUSTER=none
2303 FSADM=no
2304 ;;
2305 esac
2306
2307 ################################################################################
2308 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2309 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2310 if test "${ac_cv_path_SED+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2312 else
2313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2314 for ac_i in 1 2 3 4 5 6 7; do
2315 ac_script="$ac_script$as_nl$ac_script"
2316 done
2317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2318 $as_unset ac_script || ac_script=
2319 if test -z "$SED"; then
2320 ac_path_SED_found=false
2321 # Loop through the user's path and test for each of PROGNAME-LIST
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_prog in sed gsed; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2330 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2331 # Check for GNU ac_path_SED and select it if it is found.
2332 # Check for GNU $ac_path_SED
2333 case `"$ac_path_SED" --version 2>&1` in
2334 *GNU*)
2335 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2336 *)
2337 ac_count=0
2338 $as_echo_n 0123456789 >"conftest.in"
2339 while :
2340 do
2341 cat "conftest.in" "conftest.in" >"conftest.tmp"
2342 mv "conftest.tmp" "conftest.in"
2343 cp "conftest.in" "conftest.nl"
2344 $as_echo '' >> "conftest.nl"
2345 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2347 ac_count=`expr $ac_count + 1`
2348 if test $ac_count -gt ${ac_path_SED_max-0}; then
2349 # Best one so far, save it but keep looking for a better one
2350 ac_cv_path_SED="$ac_path_SED"
2351 ac_path_SED_max=$ac_count
2352 fi
2353 # 10*(2^10) chars as input seems more than enough
2354 test $ac_count -gt 10 && break
2355 done
2356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2357 esac
2358
2359 $ac_path_SED_found && break 3
2360 done
2361 done
2362 done
2363 IFS=$as_save_IFS
2364 if test -z "$ac_cv_path_SED"; then
2365 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2366 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2367 { (exit 1); exit 1; }; }
2368 fi
2369 else
2370 ac_cv_path_SED=$SED
2371 fi
2372
2373 fi
2374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2375 $as_echo "$ac_cv_path_SED" >&6; }
2376 SED="$ac_cv_path_SED"
2377 rm -f conftest.sed
2378
2379 for ac_prog in gawk mawk nawk awk
2380 do
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if test "${ac_cv_prog_AWK+set}" = set; then
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test -n "$AWK"; then
2389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_AWK="$ac_prog"
2399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2401 fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 AWK=$ac_cv_prog_AWK
2409 if test -n "$AWK"; then
2410 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2411 $as_echo "$AWK" >&6; }
2412 else
2413 { $as_echo "$as_me:$LINENO: result: no" >&5
2414 $as_echo "no" >&6; }
2415 fi
2416
2417
2418 test -n "$AWK" && break
2419 done
2420
2421 ac_ext=c
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 $as_echo_n "(cached) " >&6
2433 else
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453 fi
2454 CC=$ac_cv_prog_CC
2455 if test -n "$CC"; then
2456 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2457 $as_echo "$CC" >&6; }
2458 else
2459 { $as_echo "$as_me:$LINENO: result: no" >&5
2460 $as_echo "no" >&6; }
2461 fi
2462
2463
2464 fi
2465 if test -z "$ac_cv_prog_CC"; then
2466 ac_ct_CC=$CC
2467 # Extract the first word of "gcc", so it can be a program name with args.
2468 set dummy gcc; ac_word=$2
2469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_ac_ct_CC="gcc"
2485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 $as_echo "$ac_ct_CC" >&6; }
2498 else
2499 { $as_echo "$as_me:$LINENO: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503 if test "x$ac_ct_CC" = x; then
2504 CC=""
2505 else
2506 case $cross_compiling:$ac_tool_warned in
2507 yes:)
2508 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 CC=$ac_ct_CC
2513 fi
2514 else
2515 CC="$ac_cv_prog_CC"
2516 fi
2517
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 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 fi
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 ac_prog_rejected=no
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601 fi
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2608 else
2609 { $as_echo "$as_me:$LINENO: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 $as_echo_n "(cached) " >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651 { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656 test -n "$CC" && break
2657 done
2658 fi
2659 if test -z "$CC"; then
2660 ac_ct_CC=$CC
2661 for ac_prog in cl.exe
2662 do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2694 else
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 test -n "$ac_ct_CC" && break
2701 done
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2711 esac
2712 CC=$ac_ct_CC
2713 fi
2714 fi
2715
2716 fi
2717
2718
2719 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2722 See \`config.log' for more details." >&5
2723 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&2;}
2725 { (exit 1); exit 1; }; }; }
2726
2727 # Provide some information about the compiler.
2728 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2729 set X $ac_compile
2730 ac_compiler=$2
2731 { (ac_try="$ac_compiler --version >&5"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2739 ac_status=$?
2740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2748 $as_echo "$ac_try_echo") >&5
2749 (eval "$ac_compiler -v >&5") 2>&5
2750 ac_status=$?
2751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753 { (ac_try="$ac_compiler -V >&5"
2754 case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2759 $as_echo "$ac_try_echo") >&5
2760 (eval "$ac_compiler -V >&5") 2>&5
2761 ac_status=$?
2762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771
2772 int
2773 main ()
2774 {
2775
2776 ;
2777 return 0;
2778 }
2779 _ACEOF
2780 ac_clean_files_save=$ac_clean_files
2781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2782 # Try to create an executable without -o first, disregard a.out.
2783 # It will help us diagnose broken compilers, and finding out an intuition
2784 # of exeext.
2785 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2786 $as_echo_n "checking for C compiler default output file name... " >&6; }
2787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2788
2789 # The possible output files:
2790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2791
2792 ac_rmfiles=
2793 for ac_file in $ac_files
2794 do
2795 case $ac_file in
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2798 esac
2799 done
2800 rm -f $ac_rmfiles
2801
2802 if { (ac_try="$ac_link_default"
2803 case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806 esac
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
2809 (eval "$ac_link_default") 2>&5
2810 ac_status=$?
2811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; then
2813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2816 # so that the user can short-circuit this test for compilers unknown to
2817 # Autoconf.
2818 for ac_file in $ac_files ''
2819 do
2820 test -f "$ac_file" || continue
2821 case $ac_file in
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2823 ;;
2824 [ab].out )
2825 # We found the default executable, but exeext='' is most
2826 # certainly right.
2827 break;;
2828 *.* )
2829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2830 then :; else
2831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832 fi
2833 # We set ac_cv_exeext here because the later test for it is not
2834 # safe: cross compilers may not add the suffix if given an `-o'
2835 # argument, so we may need to know it at that point already.
2836 # Even if this section looks crufty: it has the advantage of
2837 # actually working.
2838 break;;
2839 * )
2840 break;;
2841 esac
2842 done
2843 test "$ac_cv_exeext" = no && ac_cv_exeext=
2844
2845 else
2846 ac_file=''
2847 fi
2848
2849 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2850 $as_echo "$ac_file" >&6; }
2851 if test -z "$ac_file"; then
2852 $as_echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 $as_echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }; }
2862 fi
2863
2864 ac_exeext=$ac_cv_exeext
2865
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 $as_echo_n "checking whether the C compiler works... " >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_try") 2>&5
2881 ac_status=$?
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2884 cross_compiling=no
2885 else
2886 if test "$cross_compiling" = maybe; then
2887 cross_compiling=yes
2888 else
2889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&5
2894 $as_echo "$as_me: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }; }
2898 fi
2899 fi
2900 fi
2901 { $as_echo "$as_me:$LINENO: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903
2904 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2905 ac_clean_files=$ac_clean_files_save
2906 # Check that the compiler produces executables we can run. If not, either
2907 # the compiler is broken, or we cross compile.
2908 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2909 $as_echo_n "checking whether we are cross compiling... " >&6; }
2910 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2911 $as_echo "$cross_compiling" >&6; }
2912
2913 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2914 $as_echo_n "checking for suffix of executables... " >&6; }
2915 if { (ac_try="$ac_link"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2921 $as_echo "$ac_try_echo") >&5
2922 (eval "$ac_link") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928 # work properly (i.e., refer to `conftest.exe'), while it won't with
2929 # `rm'.
2930 for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 break;;
2936 * ) break;;
2937 esac
2938 done
2939 else
2940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }; }
2947 fi
2948
2949 rm -f conftest$ac_cv_exeext
2950 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 $as_echo "$ac_cv_exeext" >&6; }
2952
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2955 ac_exeext=$EXEEXT
2956 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 $as_echo_n "checking for suffix of object files... " >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2960 else
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2983 $as_echo "$ac_try_echo") >&5
2984 (eval "$ac_compile") 2>&5
2985 ac_status=$?
2986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 break;;
2994 esac
2995 done
2996 else
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }; }
3007 fi
3008
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 fi
3011 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 $as_echo "$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3014 ac_objext=$OBJEXT
3015 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 $as_echo_n "(cached) " >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030 #ifndef __GNUC__
3031 choke me
3032 #endif
3033
3034 ;
3035 return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3056 ac_compiler_gnu=yes
3057 else
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 ac_compiler_gnu=no
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3070 if test $ac_compiler_gnu = yes; then
3071 GCC=yes
3072 else
3073 GCC=
3074 fi
3075 ac_test_CFLAGS=${CFLAGS+set}
3076 ac_save_CFLAGS=$CFLAGS
3077 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3079 if test "${ac_cv_prog_cc_g+set}" = set; then
3080 $as_echo_n "(cached) " >&6
3081 else
3082 ac_save_c_werror_flag=$ac_c_werror_flag
3083 ac_c_werror_flag=yes
3084 ac_cv_prog_cc_g=no
3085 CFLAGS="-g"
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092
3093 int
3094 main ()
3095 {
3096
3097 ;
3098 return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108 $as_echo "$ac_try_echo") >&5
3109 (eval "$ac_compile") 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } && {
3116 test -z "$ac_c_werror_flag" ||
3117 test ! -s conftest.err
3118 } && test -s conftest.$ac_objext; then
3119 ac_cv_prog_cc_g=yes
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 CFLAGS=""
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131
3132 int
3133 main ()
3134 {
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 :
3159 else
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 CFLAGS="-g"
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187 $as_echo "$ac_try_echo") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3198 ac_cv_prog_cc_g=yes
3199 else
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 fi
3208
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3214 fi
3215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216 $as_echo "$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
3222 else
3223 CFLAGS="-g"
3224 fi
3225 else
3226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
3228 else
3229 CFLAGS=
3230 fi
3231 fi
3232 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3236 else
3237 ac_cv_prog_cc_c89=no
3238 ac_save_CC=$CC
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245 #include <stdarg.h>
3246 #include <stdio.h>
3247 #include <sys/types.h>
3248 #include <sys/stat.h>
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3253 char **p;
3254 int i;
3255 {
3256 return p[i];
3257 }
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3259 {
3260 char *s;
3261 va_list v;
3262 va_start (v,p);
3263 s = g (p, va_arg (v,int));
3264 va_end (v);
3265 return s;
3266 }
3267
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
3271 as 'x'. The following induces an error, until -std is added to get
3272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
3274 that's true only with -std. */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3279 #define FOO(x) 'x'
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 int argc;
3287 char **argv;
3288 int
3289 main ()
3290 {
3291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298 do
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307 $as_echo "$ac_try_echo") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 ac_cv_prog_cc_c89=$ac_arg
3319 else
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3328 done
3329 rm -f conftest.$ac_ext
3330 CC=$ac_save_CC
3331
3332 fi
3333 # AC_CACHE_VAL
3334 case "x$ac_cv_prog_cc_c89" in
3335 x)
3336 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3337 $as_echo "none needed" >&6; } ;;
3338 xno)
3339 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3340 $as_echo "unsupported" >&6; } ;;
3341 *)
3342 CC="$CC $ac_cv_prog_cc_c89"
3343 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3345 esac
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3362 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3363 # On Suns, sometimes $CPP names a directory.
3364 if test -n "$CPP" && test -d "$CPP"; then
3365 CPP=
3366 fi
3367 if test -z "$CPP"; then
3368 if test "${ac_cv_prog_CPP+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3370 else
3371 # Double quotes because CPP needs to be expanded
3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373 do
3374 ac_preproc_ok=false
3375 for ac_c_preproc_warn_flag in '' yes
3376 do
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380 # <limits.h> exists even on freestanding compilers.
3381 # On the NeXT, cc -E runs the code through the compiler's parser,
3382 # not just through cpp. "Syntax error" is here to catch this case.
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #ifdef __STDC__
3390 # include <limits.h>
3391 #else
3392 # include <assert.h>
3393 #endif
3394 Syntax error
3395 _ACEOF
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null && {
3410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 }; then
3413 :
3414 else
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 # Broken: fails on valid input.
3419 continue
3420 fi
3421
3422 rm -f conftest.err conftest.$ac_ext
3423
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null && {
3448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 }; then
3451 # Broken: success on invalid input.
3452 continue
3453 else
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 # Passes both tests.
3458 ac_preproc_ok=:
3459 break
3460 fi
3461
3462 rm -f conftest.err conftest.$ac_ext
3463
3464 done
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then
3468 break
3469 fi
3470
3471 done
3472 ac_cv_prog_CPP=$CPP
3473
3474 fi
3475 CPP=$ac_cv_prog_CPP
3476 else
3477 ac_cv_prog_CPP=$CPP
3478 fi
3479 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3480 $as_echo "$CPP" >&6; }
3481 ac_preproc_ok=false
3482 for ac_c_preproc_warn_flag in '' yes
3483 do
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #ifdef __STDC__
3497 # include <limits.h>
3498 #else
3499 # include <assert.h>
3500 #endif
3501 Syntax error
3502 _ACEOF
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509 $as_echo "$ac_try_echo") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 }; then
3520 :
3521 else
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 # Broken: fails on valid input.
3526 continue
3527 fi
3528
3529 rm -f conftest.err conftest.$ac_ext
3530
3531 # OK, works on sane cases. Now check whether nonexistent headers
3532 # can be detected and how.
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <ac_nonexistent.h>
3540 _ACEOF
3541 if { (ac_try="$ac_cpp conftest.$ac_ext"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547 $as_echo "$ac_try_echo") >&5
3548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } >/dev/null && {
3555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 }; then
3558 # Broken: success on invalid input.
3559 continue
3560 else
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 # Passes both tests.
3565 ac_preproc_ok=:
3566 break
3567 fi
3568
3569 rm -f conftest.err conftest.$ac_ext
3570
3571 done
3572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573 rm -f conftest.err conftest.$ac_ext
3574 if $ac_preproc_ok; then
3575 :
3576 else
3577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3580 See \`config.log' for more details." >&5
3581 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }; }
3584 fi
3585
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592
3593 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3594 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3595 if test "${ac_cv_path_GREP+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -z "$GREP"; then
3599 ac_path_GREP_found=false
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_prog in grep ggrep; do
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3609 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3610 # Check for GNU ac_path_GREP and select it if it is found.
3611 # Check for GNU $ac_path_GREP
3612 case `"$ac_path_GREP" --version 2>&1` in
3613 *GNU*)
3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3615 *)
3616 ac_count=0
3617 $as_echo_n 0123456789 >"conftest.in"
3618 while :
3619 do
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
3623 $as_echo 'GREP' >> "conftest.nl"
3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 ac_count=`expr $ac_count + 1`
3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_GREP="$ac_path_GREP"
3630 ac_path_GREP_max=$ac_count
3631 fi
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3634 done
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3636 esac
3637
3638 $ac_path_GREP_found && break 3
3639 done
3640 done
3641 done
3642 IFS=$as_save_IFS
3643 if test -z "$ac_cv_path_GREP"; then
3644 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646 { (exit 1); exit 1; }; }
3647 fi
3648 else
3649 ac_cv_path_GREP=$GREP
3650 fi
3651
3652 fi
3653 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3654 $as_echo "$ac_cv_path_GREP" >&6; }
3655 GREP="$ac_cv_path_GREP"
3656
3657
3658 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3659 $as_echo_n "checking for egrep... " >&6; }
3660 if test "${ac_cv_path_EGREP+set}" = set; then
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3664 then ac_cv_path_EGREP="$GREP -E"
3665 else
3666 if test -z "$EGREP"; then
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3681 *GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 *)
3684 ac_count=0
3685 $as_echo_n 0123456789 >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 $as_echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706 $ac_path_EGREP_found && break 3
3707 done
3708 done
3709 done
3710 IFS=$as_save_IFS
3711 if test -z "$ac_cv_path_EGREP"; then
3712 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714 { (exit 1); exit 1; }; }
3715 fi
3716 else
3717 ac_cv_path_EGREP=$EGREP
3718 fi
3719
3720 fi
3721 fi
3722 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3723 $as_echo "$ac_cv_path_EGREP" >&6; }
3724 EGREP="$ac_cv_path_EGREP"
3725
3726
3727 if test $ac_cv_c_compiler_gnu = yes; then
3728 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3729 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3730 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3731 $as_echo_n "(cached) " >&6
3732 else
3733 ac_pattern="Autoconf.*'x'"
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <sgtty.h>
3741 Autoconf TIOCGETP
3742 _ACEOF
3743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3745 ac_cv_prog_gcc_traditional=yes
3746 else
3747 ac_cv_prog_gcc_traditional=no
3748 fi
3749 rm -f conftest*
3750
3751
3752 if test $ac_cv_prog_gcc_traditional = no; then
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <termio.h>
3760 Autoconf TCGETA
3761 _ACEOF
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3764 ac_cv_prog_gcc_traditional=yes
3765 fi
3766 rm -f conftest*
3767
3768 fi
3769 fi
3770 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3771 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3772 if test $ac_cv_prog_gcc_traditional = yes; then
3773 CC="$CC -traditional"
3774 fi
3775 fi
3776
3777 # Find a good install program. We prefer a C program (faster),
3778 # so one script is as good as another. But avoid the broken or
3779 # incompatible versions:
3780 # SysV /etc/install, /usr/sbin/install
3781 # SunOS /usr/etc/install
3782 # IRIX /sbin/install
3783 # AIX /bin/install
3784 # AmigaOS /C/install, which installs bootblocks on floppy discs
3785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3788 # OS/2's system install, which has a completely different semantic
3789 # ./install, which can be erroneously created by make from ./install.sh.
3790 # Reject install programs that cannot install multiple files.
3791 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 $as_echo_n "(cached) " >&6
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3803 case $as_dir/ in
3804 ./ | .// | /cC/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3807 /usr/ucb/* ) ;;
3808 *)
3809 # OSF1 and SCO ODT 3.0 have their own names for install.
3810 # Don't use installbsd from OSF since it installs stuff as root
3811 # by default.
3812 for ac_prog in ginstall scoinst install; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3815 if test $ac_prog = install &&
3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # AIX install. It has an incompatible calling convention.
3818 :
3819 elif test $ac_prog = install &&
3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # program-specific install script used by HP pwplus--don't use.
3822 :
3823 else
3824 rm -rf conftest.one conftest.two conftest.dir
3825 echo one > conftest.one
3826 echo two > conftest.two
3827 mkdir conftest.dir
3828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3829 test -s conftest.one && test -s conftest.two &&
3830 test -s conftest.dir/conftest.one &&
3831 test -s conftest.dir/conftest.two
3832 then
3833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3834 break 3
3835 fi
3836 fi
3837 fi
3838 done
3839 done
3840 ;;
3841 esac
3842
3843 done
3844 IFS=$as_save_IFS
3845
3846 rm -rf conftest.one conftest.two conftest.dir
3847
3848 fi
3849 if test "${ac_cv_path_install+set}" = set; then
3850 INSTALL=$ac_cv_path_install
3851 else
3852 # As a last resort, use the slow shell script. Don't cache a
3853 # value for INSTALL within a source directory, because that will
3854 # break other packages using the cache if that directory is
3855 # removed, or if the value is a relative name.
3856 INSTALL=$ac_install_sh
3857 fi
3858 fi
3859 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3860 $as_echo "$INSTALL" >&6; }
3861
3862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3863 # It thinks the first close brace ends the variable substitution.
3864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3865
3866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3867
3868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3869
3870 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3871 $as_echo_n "checking whether ln -s works... " >&6; }
3872 LN_S=$as_ln_s
3873 if test "$LN_S" = "ln -s"; then
3874 { $as_echo "$as_me:$LINENO: result: yes" >&5
3875 $as_echo "yes" >&6; }
3876 else
3877 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3878 $as_echo "no, using $LN_S" >&6; }
3879 fi
3880
3881 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3882 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3883 set x ${MAKE-make}
3884 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3885 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3886 $as_echo_n "(cached) " >&6
3887 else
3888 cat >conftest.make <<\_ACEOF
3889 SHELL = /bin/sh
3890 all:
3891 @echo '@@@%%%=$(MAKE)=@@@%%%'
3892 _ACEOF
3893 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3894 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3895 *@@@%%%=?*=@@@%%%*)
3896 eval ac_cv_prog_make_${ac_make}_set=yes;;
3897 *)
3898 eval ac_cv_prog_make_${ac_make}_set=no;;
3899 esac
3900 rm -f conftest.make
3901 fi
3902 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3903 { $as_echo "$as_me:$LINENO: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905 SET_MAKE=
3906 else
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908 $as_echo "no" >&6; }
3909 SET_MAKE="MAKE=${MAKE-make}"
3910 fi
3911
3912 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3913 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3914 if test -z "$MKDIR_P"; then
3915 if test "${ac_cv_path_mkdir+set}" = set; then
3916 $as_echo_n "(cached) " >&6
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in mkdir gmkdir; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3927 'mkdir (GNU coreutils) '* | \
3928 'mkdir (coreutils) '* | \
3929 'mkdir (fileutils) '4.1*)
3930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3931 break 3;;
3932 esac
3933 done
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 fi
3939
3940 if test "${ac_cv_path_mkdir+set}" = set; then
3941 MKDIR_P="$ac_cv_path_mkdir -p"
3942 else
3943 # As a last resort, use the slow shell script. Don't cache a
3944 # value for MKDIR_P within a source directory, because that will
3945 # break other packages using the cache if that directory is
3946 # removed, or if the value is a relative name.
3947 test -d ./--version && rmdir ./--version
3948 MKDIR_P="$ac_install_sh -d"
3949 fi
3950 fi
3951 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3952 $as_echo "$MKDIR_P" >&6; }
3953
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_RANLIB+set}" = set; then
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -n "$RANLIB"; then
3963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976 done
3977 done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 RANLIB=$ac_cv_prog_RANLIB
3983 if test -n "$RANLIB"; then
3984 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3985 $as_echo "$RANLIB" >&6; }
3986 else
3987 { $as_echo "$as_me:$LINENO: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991
3992 fi
3993 if test -z "$ac_cv_prog_RANLIB"; then
3994 ac_ct_RANLIB=$RANLIB
3995 # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; ac_word=$2
3997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$ac_ct_RANLIB"; then
4003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_ac_ct_RANLIB="ranlib"
4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025 $as_echo "$ac_ct_RANLIB" >&6; }
4026 else
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031 if test "x$ac_ct_RANLIB" = x; then
4032 RANLIB=":"
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 RANLIB=$ac_ct_RANLIB
4041 fi
4042 else
4043 RANLIB="$ac_cv_prog_RANLIB"
4044 fi
4045
4046 # Extract the first word of "cflow", so it can be a program name with args.
4047 set dummy cflow; ac_word=$2
4048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
4051 $as_echo_n "(cached) " >&6
4052 else
4053 case $CFLOW_CMD in
4054 [\\/]* | ?:[\\/]*)
4055 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4056 ;;
4057 *)
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069 done
4070 done
4071 IFS=$as_save_IFS
4072
4073 ;;
4074 esac
4075 fi
4076 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4077 if test -n "$CFLOW_CMD"; then
4078 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4079 $as_echo "$CFLOW_CMD" >&6; }
4080 else
4081 { $as_echo "$as_me:$LINENO: result: no" >&5
4082 $as_echo "no" >&6; }
4083 fi
4084
4085
4086 # Extract the first word of "cscope", so it can be a program name with args.
4087 set dummy cscope; ac_word=$2
4088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4091 $as_echo_n "(cached) " >&6
4092 else
4093 case $CSCOPE_CMD in
4094 [\\/]* | ?:[\\/]*)
4095 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4096 ;;
4097 *)
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109 done
4110 done
4111 IFS=$as_save_IFS
4112
4113 ;;
4114 esac
4115 fi
4116 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4117 if test -n "$CSCOPE_CMD"; then
4118 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4119 $as_echo "$CSCOPE_CMD" >&6; }
4120 else
4121 { $as_echo "$as_me:$LINENO: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126
4127 ################################################################################
4128
4129
4130
4131
4132
4133 ac_header_dirent=no
4134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4135 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4136 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4137 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4139 $as_echo_n "(cached) " >&6
4140 else
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <$ac_hdr>
4149
4150 int
4151 main ()
4152 {
4153 if ((DIR *) 0)
4154 return 0;
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4177 eval "$as_ac_Header=yes"
4178 else
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 eval "$as_ac_Header=no"
4183 fi
4184
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 ac_res=`eval 'as_val=${'$as_ac_Header'}
4188 $as_echo "$as_val"'`
4189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4190 $as_echo "$ac_res" >&6; }
4191 as_val=`eval 'as_val=${'$as_ac_Header'}
4192 $as_echo "$as_val"'`
4193 if test "x$as_val" = x""yes; then
4194 cat >>confdefs.h <<_ACEOF
4195 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4196 _ACEOF
4197
4198 ac_header_dirent=$ac_hdr; break
4199 fi
4200
4201 done
4202 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4203 if test $ac_header_dirent = dirent.h; then
4204 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4205 $as_echo_n "checking for library containing opendir... " >&6; }
4206 if test "${ac_cv_search_opendir+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4208 else
4209 ac_func_search_save_LIBS=$LIBS
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216
4217 /* Override any GCC internal prototype to avoid an error.
4218 Use char because int might match the return type of a GCC
4219 builtin and then its argument prototype would still apply. */
4220 #ifdef __cplusplus
4221 extern "C"
4222 #endif
4223 char opendir ();
4224 int
4225 main ()
4226 {
4227 return opendir ();
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 for ac_lib in '' dir; do
4233 if test -z "$ac_lib"; then
4234 ac_res="none required"
4235 else
4236 ac_res=-l$ac_lib
4237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4238 fi
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (ac_try="$ac_link"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246 $as_echo "$ac_try_echo") >&5
4247 (eval "$ac_link") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest$ac_exeext && {
4257 test "$cross_compiling" = yes ||
4258 $as_test_x conftest$ac_exeext
4259 }; then
4260 ac_cv_search_opendir=$ac_res
4261 else
4262 $as_echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265
4266 fi
4267
4268 rm -rf conftest.dSYM
4269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4270 conftest$ac_exeext
4271 if test "${ac_cv_search_opendir+set}" = set; then
4272 break
4273 fi
4274 done
4275 if test "${ac_cv_search_opendir+set}" = set; then
4276 :
4277 else
4278 ac_cv_search_opendir=no
4279 fi
4280 rm conftest.$ac_ext
4281 LIBS=$ac_func_search_save_LIBS
4282 fi
4283 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4284 $as_echo "$ac_cv_search_opendir" >&6; }
4285 ac_res=$ac_cv_search_opendir
4286 if test "$ac_res" != no; then
4287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4288
4289 fi
4290
4291 else
4292 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4293 $as_echo_n "checking for library containing opendir... " >&6; }
4294 if test "${ac_cv_search_opendir+set}" = set; then
4295 $as_echo_n "(cached) " >&6
4296 else
4297 ac_func_search_save_LIBS=$LIBS
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304
4305 /* Override any GCC internal prototype to avoid an error.
4306 Use char because int might match the return type of a GCC
4307 builtin and then its argument prototype would still apply. */
4308 #ifdef __cplusplus
4309 extern "C"
4310 #endif
4311 char opendir ();
4312 int
4313 main ()
4314 {
4315 return opendir ();
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 for ac_lib in '' x; do
4321 if test -z "$ac_lib"; then
4322 ac_res="none required"
4323 else
4324 ac_res=-l$ac_lib
4325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4326 fi
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4334 $as_echo "$ac_try_echo") >&5
4335 (eval "$ac_link") 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && {
4342 test -z "$ac_c_werror_flag" ||
4343 test ! -s conftest.err
4344 } && test -s conftest$ac_exeext && {
4345 test "$cross_compiling" = yes ||
4346 $as_test_x conftest$ac_exeext
4347 }; then
4348 ac_cv_search_opendir=$ac_res
4349 else
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353
4354 fi
4355
4356 rm -rf conftest.dSYM
4357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4358 conftest$ac_exeext
4359 if test "${ac_cv_search_opendir+set}" = set; then
4360 break
4361 fi
4362 done
4363 if test "${ac_cv_search_opendir+set}" = set; then
4364 :
4365 else
4366 ac_cv_search_opendir=no
4367 fi
4368 rm conftest.$ac_ext
4369 LIBS=$ac_func_search_save_LIBS
4370 fi
4371 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4372 $as_echo "$ac_cv_search_opendir" >&6; }
4373 ac_res=$ac_cv_search_opendir
4374 if test "$ac_res" != no; then
4375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4376
4377 fi
4378
4379 fi
4380
4381 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4382 $as_echo_n "checking for ANSI C header files... " >&6; }
4383 if test "${ac_cv_header_stdc+set}" = set; then
4384 $as_echo_n "(cached) " >&6
4385 else
4386 cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h. */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 #include <stdlib.h>
4393 #include <stdarg.h>
4394 #include <string.h>
4395 #include <float.h>
4396
4397 int
4398 main ()
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (ac_try="$ac_compile"
4407 case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4412 $as_echo "$ac_try_echo") >&5
4413 (eval "$ac_compile") 2>conftest.er1
4414 ac_status=$?
4415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
4418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } && {
4420 test -z "$ac_c_werror_flag" ||
4421 test ! -s conftest.err
4422 } && test -s conftest.$ac_objext; then
4423 ac_cv_header_stdc=yes
4424 else
4425 $as_echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 ac_cv_header_stdc=no
4429 fi
4430
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432
4433 if test $ac_cv_header_stdc = yes; then
4434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 #include <string.h>
4442
4443 _ACEOF
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 $EGREP "memchr" >/dev/null 2>&1; then
4446 :
4447 else
4448 ac_cv_header_stdc=no
4449 fi
4450 rm -f conftest*
4451
4452 fi
4453
4454 if test $ac_cv_header_stdc = yes; then
4455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <stdlib.h>
4463
4464 _ACEOF
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "free" >/dev/null 2>&1; then
4467 :
4468 else
4469 ac_cv_header_stdc=no
4470 fi
4471 rm -f conftest*
4472
4473 fi
4474
4475 if test $ac_cv_header_stdc = yes; then
4476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4477 if test "$cross_compiling" = yes; then
4478 :
4479 else
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <ctype.h>
4487 #include <stdlib.h>
4488 #if ((' ' & 0x0FF) == 0x020)
4489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4491 #else
4492 # define ISLOWER(c) \
4493 (('a' <= (c) && (c) <= 'i') \
4494 || ('j' <= (c) && (c) <= 'r') \
4495 || ('s' <= (c) && (c) <= 'z'))
4496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4497 #endif
4498
4499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4500 int
4501 main ()
4502 {
4503 int i;
4504 for (i = 0; i < 256; i++)
4505 if (XOR (islower (i), ISLOWER (i))
4506 || toupper (i) != TOUPPER (i))
4507 return 2;
4508 return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest$ac_exeext
4512 if { (ac_try="$ac_link"
4513 case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4518 $as_echo "$ac_try_echo") >&5
4519 (eval "$ac_link") 2>&5
4520 ac_status=$?
4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4528 $as_echo "$ac_try_echo") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 :
4534 else
4535 $as_echo "$as_me: program exited with status $ac_status" >&5
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 ( exit $ac_status )
4540 ac_cv_header_stdc=no
4541 fi
4542 rm -rf conftest.dSYM
4543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544 fi
4545
4546
4547 fi
4548 fi
4549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4550 $as_echo "$ac_cv_header_stdc" >&6; }
4551 if test $ac_cv_header_stdc = yes; then
4552
4553 cat >>confdefs.h <<\_ACEOF
4554 #define STDC_HEADERS 1
4555 _ACEOF
4556
4557 fi
4558
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4571 do
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4574 $as_echo_n "checking for $ac_header... " >&6; }
4575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4585
4586 #include <$ac_header>
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4595 $as_echo "$ac_try_echo") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4606 eval "$as_ac_Header=yes"
4607 else
4608 $as_echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 eval "$as_ac_Header=no"
4612 fi
4613
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 ac_res=`eval 'as_val=${'$as_ac_Header'}
4617 $as_echo "$as_val"'`
4618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4619 $as_echo "$ac_res" >&6; }
4620 as_val=`eval 'as_val=${'$as_ac_Header'}
4621 $as_echo "$as_val"'`
4622 if test "x$as_val" = x""yes; then
4623 cat >>confdefs.h <<_ACEOF
4624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625 _ACEOF
4626
4627 fi
4628
4629 done
4630
4631
4632 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4633 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4634 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4636 else
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4644 int
4645 main ()
4646 {
4647 return makedev(0, 0);
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_link") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest$ac_exeext && {
4670 test "$cross_compiling" = yes ||
4671 $as_test_x conftest$ac_exeext
4672 }; then
4673 ac_cv_header_sys_types_h_makedev=yes
4674 else
4675 $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 ac_cv_header_sys_types_h_makedev=no
4679 fi
4680
4681 rm -rf conftest.dSYM
4682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4683 conftest$ac_exeext conftest.$ac_ext
4684
4685 fi
4686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4687 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4688
4689 if test $ac_cv_header_sys_types_h_makedev = no; then
4690 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4691 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4692 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4693 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4694 $as_echo_n "(cached) " >&6
4695 fi
4696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4697 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4698 else
4699 # Is the header compilable?
4700 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4701 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4709 #include <sys/mkdev.h>
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (ac_try="$ac_compile"
4713 case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716 esac
4717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4718 $as_echo "$ac_try_echo") >&5
4719 (eval "$ac_compile") 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && {
4726 test -z "$ac_c_werror_flag" ||
4727 test ! -s conftest.err
4728 } && test -s conftest.$ac_objext; then
4729 ac_header_compiler=yes
4730 else
4731 $as_echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 ac_header_compiler=no
4735 fi
4736
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739 $as_echo "$ac_header_compiler" >&6; }
4740
4741 # Is the header present?
4742 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4743 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <sys/mkdev.h>
4751 _ACEOF
4752 if { (ac_try="$ac_cpp conftest.$ac_ext"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4758 $as_echo "$ac_try_echo") >&5
4759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null && {
4766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 }; then
4769 ac_header_preproc=yes
4770 else
4771 $as_echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 ac_header_preproc=no
4775 fi
4776
4777 rm -f conftest.err conftest.$ac_ext
4778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779 $as_echo "$ac_header_preproc" >&6; }
4780
4781 # So? What about this header?
4782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4783 yes:no: )
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4785 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4787 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
4788 ac_header_preproc=yes
4789 ;;
4790 no:yes:* )
4791 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4792 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4794 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4796 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4798 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4800 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4801 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4802 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
4803
4804 ;;
4805 esac
4806 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4807 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4808 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4810 else
4811 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4812 fi
4813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4814 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4815
4816 fi
4817 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4818
4819 cat >>confdefs.h <<\_ACEOF
4820 #define MAJOR_IN_MKDEV 1
4821 _ACEOF
4822
4823 fi
4824
4825
4826
4827 if test $ac_cv_header_sys_mkdev_h = no; then
4828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4829 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4830 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4831 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4833 fi
4834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4835 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4836 else
4837 # Is the header compilable?
4838 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4839 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 $ac_includes_default
4847 #include <sys/sysmacros.h>
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_compile") 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
4867 ac_header_compiler=yes
4868 else
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_header_compiler=no
4873 fi
4874
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 $as_echo "$ac_header_compiler" >&6; }
4878
4879 # Is the header present?
4880 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4881 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888 #include <sys/sysmacros.h>
4889 _ACEOF
4890 if { (ac_try="$ac_cpp conftest.$ac_ext"
4891 case "(($ac_try" in
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4894 esac
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev/null && {
4904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 }; then
4907 ac_header_preproc=yes
4908 else
4909 $as_echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ac_header_preproc=no
4913 fi
4914
4915 rm -f conftest.err conftest.$ac_ext
4916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 $as_echo "$ac_header_preproc" >&6; }
4918
4919 # So? What about this header?
4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4921 yes:no: )
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4923 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4925 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
4926 ac_header_preproc=yes
4927 ;;
4928 no:yes:* )
4929 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4930 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4931 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4932 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4933 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4934 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4935 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4936 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4937 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4938 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4939 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4940 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
4941
4942 ;;
4943 esac
4944 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4945 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4946 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4947 $as_echo_n "(cached) " >&6
4948 else
4949 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4950 fi
4951 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4952 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4953
4954 fi
4955 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4956
4957 cat >>confdefs.h <<\_ACEOF
4958 #define MAJOR_IN_SYSMACROS 1
4959 _ACEOF
4960
4961 fi
4962
4963
4964 fi
4965 fi
4966
4967 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4968 $as_echo_n "checking for ANSI C header files... " >&6; }
4969 if test "${ac_cv_header_stdc+set}" = set; then
4970 $as_echo_n "(cached) " >&6
4971 else
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 #include <stdlib.h>
4979 #include <stdarg.h>
4980 #include <string.h>
4981 #include <float.h>
4982
4983 int
4984 main ()
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998 $as_echo "$ac_try_echo") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 ac_cv_header_stdc=yes
5010 else
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_cv_header_stdc=no
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018
5019 if test $ac_cv_header_stdc = yes; then
5020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <string.h>
5028
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then
5032 :
5033 else
5034 ac_cv_header_stdc=no
5035 fi
5036 rm -f conftest*
5037
5038 fi
5039
5040 if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <stdlib.h>
5049
5050 _ACEOF
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "free" >/dev/null 2>&1; then
5053 :
5054 else
5055 ac_cv_header_stdc=no
5056 fi
5057 rm -f conftest*
5058
5059 fi
5060
5061 if test $ac_cv_header_stdc = yes; then
5062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5063 if test "$cross_compiling" = yes; then
5064 :
5065 else
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <ctype.h>
5073 #include <stdlib.h>
5074 #if ((' ' & 0x0FF) == 0x020)
5075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5077 #else
5078 # define ISLOWER(c) \
5079 (('a' <= (c) && (c) <= 'i') \
5080 || ('j' <= (c) && (c) <= 'r') \
5081 || ('s' <= (c) && (c) <= 'z'))
5082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5083 #endif
5084
5085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5086 int
5087 main ()
5088 {
5089 int i;
5090 for (i = 0; i < 256; i++)
5091 if (XOR (islower (i), ISLOWER (i))
5092 || toupper (i) != TOUPPER (i))
5093 return 2;
5094 return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest$ac_exeext
5098 if { (ac_try="$ac_link"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105 (eval "$ac_link") 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5109 { (case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5114 $as_echo "$ac_try_echo") >&5
5115 (eval "$ac_try") 2>&5
5116 ac_status=$?
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 :
5120 else
5121 $as_echo "$as_me: program exited with status $ac_status" >&5
5122 $as_echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 ( exit $ac_status )
5126 ac_cv_header_stdc=no
5127 fi
5128 rm -rf conftest.dSYM
5129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5130 fi
5131
5132
5133 fi
5134 fi
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5136 $as_echo "$ac_cv_header_stdc" >&6; }
5137 if test $ac_cv_header_stdc = yes; then
5138
5139 cat >>confdefs.h <<\_ACEOF
5140 #define STDC_HEADERS 1
5141 _ACEOF
5142
5143 fi
5144
5145 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5146 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5147 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5148 $as_echo_n "(cached) " >&6
5149 else
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #include <sys/types.h>
5157 #include <sys/wait.h>
5158 #ifndef WEXITSTATUS
5159 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5160 #endif
5161 #ifndef WIFEXITED
5162 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5163 #endif
5164
5165 int
5166 main ()
5167 {
5168 int s;
5169 wait (&s);
5170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 rm -f conftest.$ac_objext
5176 if { (ac_try="$ac_compile"
5177 case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5182 $as_echo "$ac_try_echo") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5193 ac_cv_header_sys_wait_h=yes
5194 else
5195 $as_echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198 ac_cv_header_sys_wait_h=no
5199 fi
5200
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202 fi
5203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5204 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5205 if test $ac_cv_header_sys_wait_h = yes; then
5206
5207 cat >>confdefs.h <<\_ACEOF
5208 #define HAVE_SYS_WAIT_H 1
5209 _ACEOF
5210
5211 fi
5212
5213 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5214 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5215 if test "${ac_cv_header_time+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5217 else
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <sys/types.h>
5225 #include <sys/time.h>
5226 #include <time.h>
5227
5228 int
5229 main ()
5230 {
5231 if ((struct tm *) 0)
5232 return 0;
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5244 $as_echo "$ac_try_echo") >&5
5245 (eval "$ac_compile") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest.$ac_objext; then
5255 ac_cv_header_time=yes
5256 else
5257 $as_echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_cv_header_time=no
5261 fi
5262
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5266 $as_echo "$ac_cv_header_time" >&6; }
5267 if test $ac_cv_header_time = yes; then
5268
5269 cat >>confdefs.h <<\_ACEOF
5270 #define TIME_WITH_SYS_TIME 1
5271 _ACEOF
5272
5273 fi
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5291 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5292 sys/wait.h time.h
5293 do
5294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5297 $as_echo_n "checking for $ac_header... " >&6; }
5298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299 $as_echo_n "(cached) " >&6
5300 fi
5301 ac_res=`eval 'as_val=${'$as_ac_Header'}
5302 $as_echo "$as_val"'`
5303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5304 $as_echo "$ac_res" >&6; }
5305 else
5306 # Is the header compilable?
5307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308 $as_echo_n "checking $ac_header usability... " >&6; }
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 $ac_includes_default
5316 #include <$ac_header>
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325 $as_echo "$ac_try_echo") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
5336 ac_header_compiler=yes
5337 else
5338 $as_echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_header_compiler=no
5342 fi
5343
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5346 $as_echo "$ac_header_compiler" >&6; }
5347
5348 # Is the header present?
5349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5350 $as_echo_n "checking $ac_header presence... " >&6; }
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #include <$ac_header>
5358 _ACEOF
5359 if { (ac_try="$ac_cpp conftest.$ac_ext"
5360 case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363 esac
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null && {
5373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 }; then
5376 ac_header_preproc=yes
5377 else
5378 $as_echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ac_header_preproc=no
5382 fi
5383
5384 rm -f conftest.err conftest.$ac_ext
5385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5386 $as_echo "$ac_header_preproc" >&6; }
5387
5388 # So? What about this header?
5389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5390 yes:no: )
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5395 ac_header_preproc=yes
5396 ;;
5397 no:yes:* )
5398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5401 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5405 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5410
5411 ;;
5412 esac
5413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 $as_echo_n "checking for $ac_header... " >&6; }
5415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416 $as_echo_n "(cached) " >&6
5417 else
5418 eval "$as_ac_Header=\$ac_header_preproc"
5419 fi
5420 ac_res=`eval 'as_val=${'$as_ac_Header'}
5421 $as_echo "$as_val"'`
5422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5423 $as_echo "$ac_res" >&6; }
5424
5425 fi
5426 as_val=`eval 'as_val=${'$as_ac_Header'}
5427 $as_echo "$as_val"'`
5428 if test "x$as_val" = x""yes; then
5429 cat >>confdefs.h <<_ACEOF
5430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431 _ACEOF
5432
5433 else
5434 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5435 $as_echo "$as_me: error: bailing out" >&2;}
5436 { (exit 1); exit 1; }; }
5437 fi
5438
5439 done
5440
5441
5442 case "$host_os" in
5443 linux*)
5444
5445
5446
5447 for ac_header in asm/byteorder.h linux/fs.h malloc.h
5448 do
5449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5452 $as_echo_n "checking for $ac_header... " >&6; }
5453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5454 $as_echo_n "(cached) " >&6
5455 fi
5456 ac_res=`eval 'as_val=${'$as_ac_Header'}
5457 $as_echo "$as_val"'`
5458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5459 $as_echo "$ac_res" >&6; }
5460 else
5461 # Is the header compilable?
5462 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5463 $as_echo_n "checking $ac_header usability... " >&6; }
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5471 #include <$ac_header>
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480 $as_echo "$ac_try_echo") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_header_compiler=yes
5492 else
5493 $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_header_compiler=no
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501 $as_echo "$ac_header_compiler" >&6; }
5502
5503 # Is the header present?
5504 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505 $as_echo_n "checking $ac_header presence... " >&6; }
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <$ac_header>
5513 _ACEOF
5514 if { (ac_try="$ac_cpp conftest.$ac_ext"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520 $as_echo "$ac_try_echo") >&5
5521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null && {
5528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 }; then
5531 ac_header_preproc=yes
5532 else
5533 $as_echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 ac_header_preproc=no
5537 fi
5538
5539 rm -f conftest.err conftest.$ac_ext
5540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5541 $as_echo "$ac_header_preproc" >&6; }
5542
5543 # So? What about this header?
5544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5545 yes:no: )
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5547 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5550 ac_header_preproc=yes
5551 ;;
5552 no:yes:* )
5553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5554 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5556 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5558 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5560 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5564 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5565
5566 ;;
5567 esac
5568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5569 $as_echo_n "checking for $ac_header... " >&6; }
5570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5571 $as_echo_n "(cached) " >&6
5572 else
5573 eval "$as_ac_Header=\$ac_header_preproc"
5574 fi
5575 ac_res=`eval 'as_val=${'$as_ac_Header'}
5576 $as_echo "$as_val"'`
5577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5578 $as_echo "$ac_res" >&6; }
5579
5580 fi
5581 as_val=`eval 'as_val=${'$as_ac_Header'}
5582 $as_echo "$as_val"'`
5583 if test "x$as_val" = x""yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586 _ACEOF
5587
5588 else
5589 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5590 $as_echo "$as_me: error: bailing out" >&2;}
5591 { (exit 1); exit 1; }; }
5592 fi
5593
5594 done
5595 ;;
5596 darwin*)
5597
5598
5599 for ac_header in machine/endian.h sys/disk.h
5600 do
5601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 $as_echo_n "checking for $ac_header... " >&6; }
5605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5606 $as_echo_n "(cached) " >&6
5607 fi
5608 ac_res=`eval 'as_val=${'$as_ac_Header'}
5609 $as_echo "$as_val"'`
5610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5611 $as_echo "$ac_res" >&6; }
5612 else
5613 # Is the header compilable?
5614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5615 $as_echo_n "checking $ac_header usability... " >&6; }
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 $ac_includes_default
5623 #include <$ac_header>
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5627 case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_header_compiler=yes
5644 else
5645 $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649 fi
5650
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5653 $as_echo "$ac_header_compiler" >&6; }
5654
5655 # Is the header present?
5656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5657 $as_echo_n "checking $ac_header presence... " >&6; }
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <$ac_header>
5665 _ACEOF
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672 $as_echo "$ac_try_echo") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null && {
5680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5682 }; then
5683 ac_header_preproc=yes
5684 else
5685 $as_echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_header_preproc=no
5689 fi
5690
5691 rm -f conftest.err conftest.$ac_ext
5692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5693 $as_echo "$ac_header_preproc" >&6; }
5694
5695 # So? What about this header?
5696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5697 yes:no: )
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5702 ac_header_preproc=yes
5703 ;;
5704 no:yes:* )
5705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5717
5718 ;;
5719 esac
5720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5721 $as_echo_n "checking for $ac_header... " >&6; }
5722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5723 $as_echo_n "(cached) " >&6
5724 else
5725 eval "$as_ac_Header=\$ac_header_preproc"
5726 fi
5727 ac_res=`eval 'as_val=${'$as_ac_Header'}
5728 $as_echo "$as_val"'`
5729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5730 $as_echo "$ac_res" >&6; }
5731
5732 fi
5733 as_val=`eval 'as_val=${'$as_ac_Header'}
5734 $as_echo "$as_val"'`
5735 if test "x$as_val" = x""yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738 _ACEOF
5739
5740 else
5741 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5742 $as_echo "$as_me: error: bailing out" >&2;}
5743 { (exit 1); exit 1; }; }
5744 fi
5745
5746 done
5747 ;;
5748 esac
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5767 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5768 sys/types.h unistd.h
5769 do
5770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 $as_echo_n "checking for $ac_header... " >&6; }
5774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5775 $as_echo_n "(cached) " >&6
5776 fi
5777 ac_res=`eval 'as_val=${'$as_ac_Header'}
5778 $as_echo "$as_val"'`
5779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5780 $as_echo "$ac_res" >&6; }
5781 else
5782 # Is the header compilable?
5783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5784 $as_echo_n "checking $ac_header usability... " >&6; }
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 #include <$ac_header>
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5801 $as_echo "$ac_try_echo") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 ac_header_compiler=yes
5813 else
5814 $as_echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ac_header_compiler=no
5818 fi
5819
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5822 $as_echo "$ac_header_compiler" >&6; }
5823
5824 # Is the header present?
5825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5826 $as_echo_n "checking $ac_header presence... " >&6; }
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <$ac_header>
5834 _ACEOF
5835 if { (ac_try="$ac_cpp conftest.$ac_ext"
5836 case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } >/dev/null && {
5849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 }; then
5852 ac_header_preproc=yes
5853 else
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_header_preproc=no
5858 fi
5859
5860 rm -f conftest.err conftest.$ac_ext
5861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5862 $as_echo "$ac_header_preproc" >&6; }
5863
5864 # So? What about this header?
5865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5866 yes:no: )
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5871 ac_header_preproc=yes
5872 ;;
5873 no:yes:* )
5874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5886
5887 ;;
5888 esac
5889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 $as_echo_n "checking for $ac_header... " >&6; }
5891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5892 $as_echo_n "(cached) " >&6
5893 else
5894 eval "$as_ac_Header=\$ac_header_preproc"
5895 fi
5896 ac_res=`eval 'as_val=${'$as_ac_Header'}
5897 $as_echo "$as_val"'`
5898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5899 $as_echo "$ac_res" >&6; }
5900
5901 fi
5902 as_val=`eval 'as_val=${'$as_ac_Header'}
5903 $as_echo "$as_val"'`
5904 if test "x$as_val" = x""yes; then
5905 cat >>confdefs.h <<_ACEOF
5906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5907 _ACEOF
5908
5909 else
5910 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5911 $as_echo "$as_me: error: bailing out" >&2;}
5912 { (exit 1); exit 1; }; }
5913 fi
5914
5915 done
5916
5917
5918
5919 for ac_header in termios.h sys/statvfs.h
5920 do
5921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 $as_echo_n "checking for $ac_header... " >&6; }
5925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 $as_echo_n "(cached) " >&6
5927 fi
5928 ac_res=`eval 'as_val=${'$as_ac_Header'}
5929 $as_echo "$as_val"'`
5930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5931 $as_echo "$ac_res" >&6; }
5932 else
5933 # Is the header compilable?
5934 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5935 $as_echo_n "checking $ac_header usability... " >&6; }
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 #include <$ac_header>
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952 $as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_header_compiler=yes
5964 else
5965 $as_echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968 ac_header_compiler=no
5969 fi
5970
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5973 $as_echo "$ac_header_compiler" >&6; }
5974
5975 # Is the header present?
5976 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5977 $as_echo_n "checking $ac_header presence... " >&6; }
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <$ac_header>
5985 _ACEOF
5986 if { (ac_try="$ac_cpp conftest.$ac_ext"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992 $as_echo "$ac_try_echo") >&5
5993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null && {
6000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 }; then
6003 ac_header_preproc=yes
6004 else
6005 $as_echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 ac_header_preproc=no
6009 fi
6010
6011 rm -f conftest.err conftest.$ac_ext
6012 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6013 $as_echo "$ac_header_preproc" >&6; }
6014
6015 # So? What about this header?
6016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6017 yes:no: )
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6019 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6022 ac_header_preproc=yes
6023 ;;
6024 no:yes:* )
6025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6026 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6028 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6030 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6032 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6036 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6037
6038 ;;
6039 esac
6040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 $as_echo_n "checking for $ac_header... " >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043 $as_echo_n "(cached) " >&6
6044 else
6045 eval "$as_ac_Header=\$ac_header_preproc"
6046 fi
6047 ac_res=`eval 'as_val=${'$as_ac_Header'}
6048 $as_echo "$as_val"'`
6049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6050 $as_echo "$ac_res" >&6; }
6051
6052 fi
6053 as_val=`eval 'as_val=${'$as_ac_Header'}
6054 $as_echo "$as_val"'`
6055 if test "x$as_val" = x""yes; then
6056 cat >>confdefs.h <<_ACEOF
6057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 _ACEOF
6059
6060 fi
6061
6062 done
6063
6064
6065 ################################################################################
6066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6068 if test "${ac_cv_c_const+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6070 else
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077
6078 int
6079 main ()
6080 {
6081 /* FIXME: Include the comments suggested by Paul. */
6082 #ifndef __cplusplus
6083 /* Ultrix mips cc rejects this. */
6084 typedef int charset[2];
6085 const charset cs;
6086 /* SunOS 4.1.1 cc rejects this. */
6087 char const *const *pcpcc;
6088 char **ppc;
6089 /* NEC SVR4.0.2 mips cc rejects this. */
6090 struct point {int x, y;};
6091 static struct point const zero = {0,0};
6092 /* AIX XL C 1.02.0.0 rejects this.
6093 It does not let you subtract one const X* pointer from another in
6094 an arm of an if-expression whose if-part is not a constant
6095 expression */
6096 const char *g = "string";
6097 pcpcc = &g + (g ? g-g : 0);
6098 /* HPUX 7.0 cc rejects these. */
6099 ++pcpcc;
6100 ppc = (char**) pcpcc;
6101 pcpcc = (char const *const *) ppc;
6102 { /* SCO 3.2v4 cc rejects this. */
6103 char *t;
6104 char const *s = 0 ? (char *) 0 : (char const *) 0;
6105
6106 *t++ = 0;
6107 if (s) return 0;
6108 }
6109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6110 int x[] = {25, 17};
6111 const int *foo = &x[0];
6112 ++foo;
6113 }
6114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6115 typedef const int *iptr;
6116 iptr p = 0;
6117 ++p;
6118 }
6119 { /* AIX XL C 1.02.0.0 rejects this saying
6120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6121 struct s { int j; const int *ap[3]; };
6122 struct s *b; b->j = 5;
6123 }
6124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6125 const int foo = 10;
6126 if (!foo) return 0;
6127 }
6128 return !cs[0] && !zero.x;
6129 #endif
6130
6131 ;
6132 return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6137 case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140 esac
6141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142 $as_echo "$ac_try_echo") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6153 ac_cv_c_const=yes
6154 else
6155 $as_echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_cv_c_const=no
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 fi
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6164 $as_echo "$ac_cv_c_const" >&6; }
6165 if test $ac_cv_c_const = no; then
6166
6167 cat >>confdefs.h <<\_ACEOF
6168 #define const /**/
6169 _ACEOF
6170
6171 fi
6172
6173 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6174 $as_echo_n "checking for inline... " >&6; }
6175 if test "${ac_cv_c_inline+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6177 else
6178 ac_cv_c_inline=no
6179 for ac_kw in inline __inline__ __inline; do
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #ifndef __cplusplus
6187 typedef int foo_t;
6188 static $ac_kw foo_t static_foo () {return 0; }
6189 $ac_kw foo_t foo () {return 0; }
6190 #endif
6191
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6195 case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198 esac
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_cv_c_inline=$ac_kw
6212 else
6213 $as_echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216
6217 fi
6218
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 test "$ac_cv_c_inline" != no && break
6221 done
6222
6223 fi
6224 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6225 $as_echo "$ac_cv_c_inline" >&6; }
6226
6227
6228 case $ac_cv_c_inline in
6229 inline | yes) ;;
6230 *)
6231 case $ac_cv_c_inline in
6232 no) ac_val=;;
6233 *) ac_val=$ac_cv_c_inline;;
6234 esac
6235 cat >>confdefs.h <<_ACEOF
6236 #ifndef __cplusplus
6237 #define inline $ac_val
6238 #endif
6239 _ACEOF
6240 ;;
6241 esac
6242
6243 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6244 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6245 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6246 $as_echo_n "(cached) " >&6
6247 else
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 $ac_includes_default
6255 int
6256 main ()
6257 {
6258 static struct stat ac_aggr;
6259 if (ac_aggr.st_rdev)
6260 return 0;
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272 $as_echo "$ac_try_echo") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 ac_cv_member_struct_stat_st_rdev=yes
6284 else
6285 $as_echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6295 int
6296 main ()
6297 {
6298 static struct stat ac_aggr;
6299 if (sizeof ac_aggr.st_rdev)
6300 return 0;
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6312 $as_echo "$ac_try_echo") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_cv_member_struct_stat_st_rdev=yes
6324 else
6325 $as_echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_cv_member_struct_stat_st_rdev=no
6329 fi
6330
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 fi
6333
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 fi
6336 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6337 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6338 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_STRUCT_STAT_ST_RDEV 1
6342 _ACEOF
6343
6344
6345 fi
6346
6347 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
6348 $as_echo_n "checking for off_t... " >&6; }
6349 if test "${ac_cv_type_off_t+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6351 else
6352 ac_cv_type_off_t=no
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h. */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 $ac_includes_default
6360 int
6361 main ()
6362 {
6363 if (sizeof (off_t))
6364 return 0;
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (ac_try="$ac_compile"
6371 case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374 esac
6375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6376 $as_echo "$ac_try_echo") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && {
6384 test -z "$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 } && test -s conftest.$ac_objext; then
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 int
6395 main ()
6396 {
6397 if (sizeof ((off_t)))
6398 return 0;
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6410 $as_echo "$ac_try_echo") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 :
6422 else
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_cv_type_off_t=yes
6427 fi
6428
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 else
6431 $as_echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434
6435 fi
6436
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 fi
6439 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6440 $as_echo "$ac_cv_type_off_t" >&6; }
6441 if test "x$ac_cv_type_off_t" = x""yes; then
6442 :
6443 else
6444
6445 cat >>confdefs.h <<_ACEOF
6446 #define off_t long int
6447 _ACEOF
6448
6449 fi
6450
6451 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6452 $as_echo_n "checking for pid_t... " >&6; }
6453 if test "${ac_cv_type_pid_t+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6455 else
6456 ac_cv_type_pid_t=no
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6464 int
6465 main ()
6466 {
6467 if (sizeof (pid_t))
6468 return 0;
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 $ac_includes_default
6498 int
6499 main ()
6500 {
6501 if (sizeof ((pid_t)))
6502 return 0;
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (ac_try="$ac_compile"
6509 case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6514 $as_echo "$ac_try_echo") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6525 :
6526 else
6527 $as_echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_cv_type_pid_t=yes
6531 fi
6532
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 else
6535 $as_echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538
6539 fi
6540
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6544 $as_echo "$ac_cv_type_pid_t" >&6; }
6545 if test "x$ac_cv_type_pid_t" = x""yes; then
6546 :
6547 else
6548
6549 cat >>confdefs.h <<_ACEOF
6550 #define pid_t int
6551 _ACEOF
6552
6553 fi
6554
6555 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6556 $as_echo_n "checking return type of signal handlers... " >&6; }
6557 if test "${ac_cv_type_signal+set}" = set; then
6558 $as_echo_n "(cached) " >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <sys/types.h>
6567 #include <signal.h>
6568
6569 int
6570 main ()
6571 {
6572 return *(signal (0, 0)) (0) == 1;
6573 ;
6574 return 0;
6575 }
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.$ac_objext; then
6595 ac_cv_type_signal=int
6596 else
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_cv_type_signal=void
6601 fi
6602
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 fi
6605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606 $as_echo "$ac_cv_type_signal" >&6; }
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define RETSIGTYPE $ac_cv_type_signal
6610 _ACEOF
6611
6612
6613 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6614 $as_echo_n "checking for size_t... " >&6; }
6615 if test "${ac_cv_type_size_t+set}" = set; then
6616 $as_echo_n "(cached) " >&6
6617 else
6618 ac_cv_type_size_t=no
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 $ac_includes_default
6626 int
6627 main ()
6628 {
6629 if (sizeof (size_t))
6630 return 0;
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 $ac_includes_default
6660 int
6661 main ()
6662 {
6663 if (sizeof ((size_t)))
6664 return 0;
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (ac_try="$ac_compile"
6671 case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674 esac
6675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6676 $as_echo "$ac_try_echo") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 :
6688 else
6689 $as_echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6691
6692 ac_cv_type_size_t=yes
6693 fi
6694
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 else
6697 $as_echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700
6701 fi
6702
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 fi
6705 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6706 $as_echo "$ac_cv_type_size_t" >&6; }
6707 if test "x$ac_cv_type_size_t" = x""yes; then
6708 :
6709 else
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define size_t unsigned int
6713 _ACEOF
6714
6715 fi
6716
6717 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6718 $as_echo_n "checking for mode_t... " >&6; }
6719 if test "${ac_cv_type_mode_t+set}" = set; then
6720 $as_echo_n "(cached) " >&6
6721 else
6722 ac_cv_type_mode_t=no
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 $ac_includes_default
6730 int
6731 main ()
6732 {
6733 if (sizeof (mode_t))
6734 return 0;
6735 ;
6736 return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext
6740 if { (ac_try="$ac_compile"
6741 case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6746 $as_echo "$ac_try_echo") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6764 int
6765 main ()
6766 {
6767 if (sizeof ((mode_t)))
6768 return 0;
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (ac_try="$ac_compile"
6775 case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778 esac
6779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6780 $as_echo "$ac_try_echo") >&5
6781 (eval "$ac_compile") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest.$ac_objext; then
6791 :
6792 else
6793 $as_echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ac_cv_type_mode_t=yes
6797 fi
6798
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 else
6801 $as_echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804
6805 fi
6806
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 fi
6809 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6810 $as_echo "$ac_cv_type_mode_t" >&6; }
6811 if test "x$ac_cv_type_mode_t" = x""yes; then
6812 :
6813 else
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define mode_t int
6817 _ACEOF
6818
6819 fi
6820
6821
6822 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6823 $as_echo_n "checking for int8_t... " >&6; }
6824 if test "${ac_cv_c_int8_t+set}" = set; then
6825 $as_echo_n "(cached) " >&6
6826 else
6827 ac_cv_c_int8_t=no
6828 for ac_type in 'int8_t' 'int' 'long int' \
6829 'long long int' 'short int' 'signed char'; do
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 $ac_includes_default
6837 int
6838 main ()
6839 {
6840 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6841 test_array [0] = 0
6842
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext
6848 if { (ac_try="$ac_compile"
6849 case "(($ac_try" in
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6852 esac
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855 (eval "$ac_compile") 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest.$ac_objext; then
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 $ac_includes_default
6872 int
6873 main ()
6874 {
6875 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6876 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6877 test_array [0] = 0
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 :
6902 else
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 case $ac_type in
6907 int8_t) ac_cv_c_int8_t=yes ;;
6908 *) ac_cv_c_int8_t=$ac_type ;;
6909 esac
6910
6911 fi
6912
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 else
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918
6919 fi
6920
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 test "$ac_cv_c_int8_t" != no && break
6923 done
6924 fi
6925 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6926 $as_echo "$ac_cv_c_int8_t" >&6; }
6927 case $ac_cv_c_int8_t in #(
6928 no|yes) ;; #(
6929 *)
6930
6931 cat >>confdefs.h <<_ACEOF
6932 #define int8_t $ac_cv_c_int8_t
6933 _ACEOF
6934 ;;
6935 esac
6936
6937
6938 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6939 $as_echo_n "checking for int16_t... " >&6; }
6940 if test "${ac_cv_c_int16_t+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6942 else
6943 ac_cv_c_int16_t=no
6944 for ac_type in 'int16_t' 'int' 'long int' \
6945 'long long int' 'short int' 'signed char'; do
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6953 int
6954 main ()
6955 {
6956 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6957 test_array [0] = 0
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 rm -f conftest.$ac_objext
6964 if { (ac_try="$ac_compile"
6965 case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968 esac
6969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6992 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6993 test_array [0] = 0
6994
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext
7000 if { (ac_try="$ac_compile"
7001 case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7004 esac
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7017 :
7018 else
7019 $as_echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 case $ac_type in
7023 int16_t) ac_cv_c_int16_t=yes ;;
7024 *) ac_cv_c_int16_t=$ac_type ;;
7025 esac
7026
7027 fi
7028
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 else
7031 $as_echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034
7035 fi
7036
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 test "$ac_cv_c_int16_t" != no && break
7039 done
7040 fi
7041 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7042 $as_echo "$ac_cv_c_int16_t" >&6; }
7043 case $ac_cv_c_int16_t in #(
7044 no|yes) ;; #(
7045 *)
7046
7047 cat >>confdefs.h <<_ACEOF
7048 #define int16_t $ac_cv_c_int16_t
7049 _ACEOF
7050 ;;
7051 esac
7052
7053
7054 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7055 $as_echo_n "checking for int32_t... " >&6; }
7056 if test "${ac_cv_c_int32_t+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7058 else
7059 ac_cv_c_int32_t=no
7060 for ac_type in 'int32_t' 'int' 'long int' \
7061 'long long int' 'short int' 'signed char'; do
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 $ac_includes_default
7069 int
7070 main ()
7071 {
7072 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7073 test_array [0] = 0
7074
7075 ;
7076 return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084 esac
7085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7086 $as_echo "$ac_try_echo") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 $ac_includes_default
7104 int
7105 main ()
7106 {
7107 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7108 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7109 test_array [0] = 0
7110
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7117 case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120 esac
7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122 $as_echo "$ac_try_echo") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7133 :
7134 else
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 case $ac_type in
7139 int32_t) ac_cv_c_int32_t=yes ;;
7140 *) ac_cv_c_int32_t=$ac_type ;;
7141 esac
7142
7143 fi
7144
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 else
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150
7151 fi
7152
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 test "$ac_cv_c_int32_t" != no && break
7155 done
7156 fi
7157 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7158 $as_echo "$ac_cv_c_int32_t" >&6; }
7159 case $ac_cv_c_int32_t in #(
7160 no|yes) ;; #(
7161 *)
7162
7163 cat >>confdefs.h <<_ACEOF
7164 #define int32_t $ac_cv_c_int32_t
7165 _ACEOF
7166 ;;
7167 esac
7168
7169
7170 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7171 $as_echo_n "checking for int64_t... " >&6; }
7172 if test "${ac_cv_c_int64_t+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 ac_cv_c_int64_t=no
7176 for ac_type in 'int64_t' 'int' 'long int' \
7177 'long long int' 'short int' 'signed char'; do
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7185 int
7186 main ()
7187 {
7188 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7189 test_array [0] = 0
7190
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202 $as_echo "$ac_try_echo") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 $ac_includes_default
7220 int
7221 main ()
7222 {
7223 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7224 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7225 test_array [0] = 0
7226
7227 ;
7228 return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (ac_try="$ac_compile"
7233 case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236 esac
7237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238 $as_echo "$ac_try_echo") >&5
7239 (eval "$ac_compile") 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } && {
7246 test -z "$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 } && test -s conftest.$ac_objext; then
7249 :
7250 else
7251 $as_echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254 case $ac_type in
7255 int64_t) ac_cv_c_int64_t=yes ;;
7256 *) ac_cv_c_int64_t=$ac_type ;;
7257 esac
7258
7259 fi
7260
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 else
7263 $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266
7267 fi
7268
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 test "$ac_cv_c_int64_t" != no && break
7271 done
7272 fi
7273 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7274 $as_echo "$ac_cv_c_int64_t" >&6; }
7275 case $ac_cv_c_int64_t in #(
7276 no|yes) ;; #(
7277 *)
7278
7279 cat >>confdefs.h <<_ACEOF
7280 #define int64_t $ac_cv_c_int64_t
7281 _ACEOF
7282 ;;
7283 esac
7284
7285 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7286 $as_echo_n "checking for ssize_t... " >&6; }
7287 if test "${ac_cv_type_ssize_t+set}" = set; then
7288 $as_echo_n "(cached) " >&6
7289 else
7290 ac_cv_type_ssize_t=no
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7298 int
7299 main ()
7300 {
7301 if (sizeof (ssize_t))
7302 return 0;
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7309 case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312 esac
7313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314 $as_echo "$ac_try_echo") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
7320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 $ac_includes_default
7332 int
7333 main ()
7334 {
7335 if (sizeof ((ssize_t)))
7336 return 0;
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (ac_try="$ac_compile"
7343 case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346 esac
7347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7348 $as_echo "$ac_try_echo") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7359 :
7360 else
7361 $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364 ac_cv_type_ssize_t=yes
7365 fi
7366
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 else
7369 $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7378 $as_echo "$ac_cv_type_ssize_t" >&6; }
7379 if test "x$ac_cv_type_ssize_t" = x""yes; then
7380 :
7381 else
7382
7383 cat >>confdefs.h <<_ACEOF
7384 #define ssize_t int
7385 _ACEOF
7386
7387 fi
7388
7389 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7390 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7391 if test "${ac_cv_type_uid_t+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7401
7402 _ACEOF
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "uid_t" >/dev/null 2>&1; then
7405 ac_cv_type_uid_t=yes
7406 else
7407 ac_cv_type_uid_t=no
7408 fi
7409 rm -f conftest*
7410
7411 fi
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7413 $as_echo "$ac_cv_type_uid_t" >&6; }
7414 if test $ac_cv_type_uid_t = no; then
7415
7416 cat >>confdefs.h <<\_ACEOF
7417 #define uid_t int
7418 _ACEOF
7419
7420
7421 cat >>confdefs.h <<\_ACEOF
7422 #define gid_t int
7423 _ACEOF
7424
7425 fi
7426
7427
7428 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7429 $as_echo_n "checking for uint8_t... " >&6; }
7430 if test "${ac_cv_c_uint8_t+set}" = set; then
7431 $as_echo_n "(cached) " >&6
7432 else
7433 ac_cv_c_uint8_t=no
7434 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 int
7444 main ()
7445 {
7446 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7447 test_array [0] = 0
7448
7449 ;
7450 return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7455 case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458 esac
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 case $ac_type in
7472 uint8_t) ac_cv_c_uint8_t=yes ;;
7473 *) ac_cv_c_uint8_t=$ac_type ;;
7474 esac
7475
7476 else
7477 $as_echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480
7481 fi
7482
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 test "$ac_cv_c_uint8_t" != no && break
7485 done
7486 fi
7487 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7488 $as_echo "$ac_cv_c_uint8_t" >&6; }
7489 case $ac_cv_c_uint8_t in #(
7490 no|yes) ;; #(
7491 *)
7492
7493 cat >>confdefs.h <<\_ACEOF
7494 #define _UINT8_T 1
7495 _ACEOF
7496
7497
7498 cat >>confdefs.h <<_ACEOF
7499 #define uint8_t $ac_cv_c_uint8_t
7500 _ACEOF
7501 ;;
7502 esac
7503
7504
7505 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7506 $as_echo_n "checking for uint16_t... " >&6; }
7507 if test "${ac_cv_c_uint16_t+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7509 else
7510 ac_cv_c_uint16_t=no
7511 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7520 int
7521 main ()
7522 {
7523 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7524 test_array [0] = 0
7525
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 case $ac_type in
7549 uint16_t) ac_cv_c_uint16_t=yes ;;
7550 *) ac_cv_c_uint16_t=$ac_type ;;
7551 esac
7552
7553 else
7554 $as_echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557
7558 fi
7559
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 test "$ac_cv_c_uint16_t" != no && break
7562 done
7563 fi
7564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7565 $as_echo "$ac_cv_c_uint16_t" >&6; }
7566 case $ac_cv_c_uint16_t in #(
7567 no|yes) ;; #(
7568 *)
7569
7570
7571 cat >>confdefs.h <<_ACEOF
7572 #define uint16_t $ac_cv_c_uint16_t
7573 _ACEOF
7574 ;;
7575 esac
7576
7577
7578 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7579 $as_echo_n "checking for uint32_t... " >&6; }
7580 if test "${ac_cv_c_uint32_t+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7582 else
7583 ac_cv_c_uint32_t=no
7584 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7585 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 $ac_includes_default
7593 int
7594 main ()
7595 {
7596 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7597 test_array [0] = 0
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 case $ac_type in
7622 uint32_t) ac_cv_c_uint32_t=yes ;;
7623 *) ac_cv_c_uint32_t=$ac_type ;;
7624 esac
7625
7626 else
7627 $as_echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630
7631 fi
7632
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 test "$ac_cv_c_uint32_t" != no && break
7635 done
7636 fi
7637 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7638 $as_echo "$ac_cv_c_uint32_t" >&6; }
7639 case $ac_cv_c_uint32_t in #(
7640 no|yes) ;; #(
7641 *)
7642
7643 cat >>confdefs.h <<\_ACEOF
7644 #define _UINT32_T 1
7645 _ACEOF
7646
7647
7648 cat >>confdefs.h <<_ACEOF
7649 #define uint32_t $ac_cv_c_uint32_t
7650 _ACEOF
7651 ;;
7652 esac
7653
7654
7655 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7656 $as_echo_n "checking for uint64_t... " >&6; }
7657 if test "${ac_cv_c_uint64_t+set}" = set; then
7658 $as_echo_n "(cached) " >&6
7659 else
7660 ac_cv_c_uint64_t=no
7661 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7662 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7670 int
7671 main ()
7672 {
7673 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7674 test_array [0] = 0
7675
7676 ;
7677 return 0;
7678 }
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (ac_try="$ac_compile"
7682 case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685 esac
7686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7687 $as_echo "$ac_try_echo") >&5
7688 (eval "$ac_compile") 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } && {
7695 test -z "$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 } && test -s conftest.$ac_objext; then
7698 case $ac_type in
7699 uint64_t) ac_cv_c_uint64_t=yes ;;
7700 *) ac_cv_c_uint64_t=$ac_type ;;
7701 esac
7702
7703 else
7704 $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707
7708 fi
7709
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 test "$ac_cv_c_uint64_t" != no && break
7712 done
7713 fi
7714 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7715 $as_echo "$ac_cv_c_uint64_t" >&6; }
7716 case $ac_cv_c_uint64_t in #(
7717 no|yes) ;; #(
7718 *)
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define _UINT64_T 1
7722 _ACEOF
7723
7724
7725 cat >>confdefs.h <<_ACEOF
7726 #define uint64_t $ac_cv_c_uint64_t
7727 _ACEOF
7728 ;;
7729 esac
7730
7731 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7732 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
7733 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7734 $as_echo_n "(cached) " >&6
7735 else
7736 cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h. */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 int
7744 main ()
7745 {
7746 static struct stat ac_aggr;
7747 if (ac_aggr.st_rdev)
7748 return 0;
7749 ;
7750 return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7755 case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 ac_cv_member_struct_stat_st_rdev=yes
7772 else
7773 $as_echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7775
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 $ac_includes_default
7783 int
7784 main ()
7785 {
7786 static struct stat ac_aggr;
7787 if (sizeof ac_aggr.st_rdev)
7788 return 0;
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7795 case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798 esac
7799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800 $as_echo "$ac_try_echo") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7811 ac_cv_member_struct_stat_st_rdev=yes
7812 else
7813 $as_echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 ac_cv_member_struct_stat_st_rdev=no
7817 fi
7818
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7825 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7826 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
7827
7828 cat >>confdefs.h <<_ACEOF
7829 #define HAVE_STRUCT_STAT_ST_RDEV 1
7830 _ACEOF
7831
7832
7833 fi
7834
7835 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7836 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7837 if test "${ac_cv_struct_tm+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7839 else
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h. */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <sys/types.h>
7847 #include <time.h>
7848
7849 int
7850 main ()
7851 {
7852 struct tm tm;
7853 int *p = &tm.tm_sec;
7854 return !p;
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7866 $as_echo "$ac_try_echo") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_struct_tm=time.h
7878 else
7879 $as_echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 ac_cv_struct_tm=sys/time.h
7883 fi
7884
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7888 $as_echo "$ac_cv_struct_tm" >&6; }
7889 if test $ac_cv_struct_tm = sys/time.h; then
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define TM_IN_SYS_TIME 1
7893 _ACEOF
7894
7895 fi
7896
7897
7898 ################################################################################
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923 for ac_func in ftruncate gethostname getpagesize \
7924 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
7925 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
7926 strstr strtol strtoul uname
7927 do
7928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7929 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7930 $as_echo_n "checking for $ac_func... " >&6; }
7931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7932 $as_echo_n "(cached) " >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7942 #define $ac_func innocuous_$ac_func
7943
7944 /* System header to define __stub macros and hopefully few prototypes,
7945 which can conflict with char $ac_func (); below.
7946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7947 <limits.h> exists even on freestanding compilers. */
7948
7949 #ifdef __STDC__
7950 # include <limits.h>
7951 #else
7952 # include <assert.h>
7953 #endif
7954
7955 #undef $ac_func
7956
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7960 #ifdef __cplusplus
7961 extern "C"
7962 #endif
7963 char $ac_func ();
7964 /* The GNU C library defines this for functions which it implements
7965 to always fail with ENOSYS. Some functions are actually named
7966 something starting with __ and the normal name is an alias. */
7967 #if defined __stub_$ac_func || defined __stub___$ac_func
7968 choke me
7969 #endif
7970
7971 int
7972 main ()
7973 {
7974 return $ac_func ();
7975 ;
7976 return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (ac_try="$ac_link"
7981 case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984 esac
7985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7986 $as_echo "$ac_try_echo") >&5
7987 (eval "$ac_link") 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest$ac_exeext && {
7997 test "$cross_compiling" = yes ||
7998 $as_test_x conftest$ac_exeext
7999 }; then
8000 eval "$as_ac_var=yes"
8001 else
8002 $as_echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 eval "$as_ac_var=no"
8006 fi
8007
8008 rm -rf conftest.dSYM
8009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010 conftest$ac_exeext conftest.$ac_ext
8011 fi
8012 ac_res=`eval 'as_val=${'$as_ac_var'}
8013 $as_echo "$as_val"'`
8014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8015 $as_echo "$ac_res" >&6; }
8016 as_val=`eval 'as_val=${'$as_ac_var'}
8017 $as_echo "$as_val"'`
8018 if test "x$as_val" = x""yes; then
8019 cat >>confdefs.h <<_ACEOF
8020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8021 _ACEOF
8022
8023 else
8024 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8025 $as_echo "$as_me: error: bailing out" >&2;}
8026 { (exit 1); exit 1; }; }
8027 fi
8028 done
8029
8030
8031 for ac_func in siginterrupt
8032 do
8033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8035 $as_echo_n "checking for $ac_func... " >&6; }
8036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8037 $as_echo_n "(cached) " >&6
8038 else
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8047 #define $ac_func innocuous_$ac_func
8048
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func (); below.
8051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8052 <limits.h> exists even on freestanding compilers. */
8053
8054 #ifdef __STDC__
8055 # include <limits.h>
8056 #else
8057 # include <assert.h>
8058 #endif
8059
8060 #undef $ac_func
8061
8062 /* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 char $ac_func ();
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined __stub_$ac_func || defined __stub___$ac_func
8073 choke me
8074 #endif
8075
8076 int
8077 main ()
8078 {
8079 return $ac_func ();
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext conftest$ac_exeext
8085 if { (ac_try="$ac_link"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8091 $as_echo "$ac_try_echo") >&5
8092 (eval "$ac_link") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest$ac_exeext && {
8102 test "$cross_compiling" = yes ||
8103 $as_test_x conftest$ac_exeext
8104 }; then
8105 eval "$as_ac_var=yes"
8106 else
8107 $as_echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 eval "$as_ac_var=no"
8111 fi
8112
8113 rm -rf conftest.dSYM
8114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8115 conftest$ac_exeext conftest.$ac_ext
8116 fi
8117 ac_res=`eval 'as_val=${'$as_ac_var'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120 $as_echo "$ac_res" >&6; }
8121 as_val=`eval 'as_val=${'$as_ac_var'}
8122 $as_echo "$as_val"'`
8123 if test "x$as_val" = x""yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8126 _ACEOF
8127
8128 fi
8129 done
8130
8131 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8132 # for constant arguments. Useless!
8133 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8134 $as_echo_n "checking for working alloca.h... " >&6; }
8135 if test "${ac_cv_working_alloca_h+set}" = set; then
8136 $as_echo_n "(cached) " >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 #include <alloca.h>
8145 int
8146 main ()
8147 {
8148 char *p = (char *) alloca (2 * sizeof (int));
8149 if (p) return 0;
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159 esac
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162 (eval "$ac_link") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && {
8169 test -z "$ac_c_werror_flag" ||
8170 test ! -s conftest.err
8171 } && test -s conftest$ac_exeext && {
8172 test "$cross_compiling" = yes ||
8173 $as_test_x conftest$ac_exeext
8174 }; then
8175 ac_cv_working_alloca_h=yes
8176 else
8177 $as_echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ac_cv_working_alloca_h=no
8181 fi
8182
8183 rm -rf conftest.dSYM
8184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8188 $as_echo "$ac_cv_working_alloca_h" >&6; }
8189 if test $ac_cv_working_alloca_h = yes; then
8190
8191 cat >>confdefs.h <<\_ACEOF
8192 #define HAVE_ALLOCA_H 1
8193 _ACEOF
8194
8195 fi
8196
8197 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8198 $as_echo_n "checking for alloca... " >&6; }
8199 if test "${ac_cv_func_alloca_works+set}" = set; then
8200 $as_echo_n "(cached) " >&6
8201 else
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 #ifdef __GNUC__
8209 # define alloca __builtin_alloca
8210 #else
8211 # ifdef _MSC_VER
8212 # include <malloc.h>
8213 # define alloca _alloca
8214 # else
8215 # ifdef HAVE_ALLOCA_H
8216 # include <alloca.h>
8217 # else
8218 # ifdef _AIX
8219 #pragma alloca
8220 # else
8221 # ifndef alloca /* predefined by HP cc +Olibcalls */
8222 char *alloca ();
8223 # endif
8224 # endif
8225 # endif
8226 # endif
8227 #endif
8228
8229 int
8230 main ()
8231 {
8232 char *p = (char *) alloca (1);
8233 if (p) return 0;
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (ac_try="$ac_link"
8240 case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243 esac
8244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8245 $as_echo "$ac_try_echo") >&5
8246 (eval "$ac_link") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest$ac_exeext && {
8256 test "$cross_compiling" = yes ||
8257 $as_test_x conftest$ac_exeext
8258 }; then
8259 ac_cv_func_alloca_works=yes
8260 else
8261 $as_echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 ac_cv_func_alloca_works=no
8265 fi
8266
8267 rm -rf conftest.dSYM
8268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8269 conftest$ac_exeext conftest.$ac_ext
8270 fi
8271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8272 $as_echo "$ac_cv_func_alloca_works" >&6; }
8273
8274 if test $ac_cv_func_alloca_works = yes; then
8275
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_ALLOCA 1
8278 _ACEOF
8279
8280 else
8281 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8282 # that cause trouble. Some versions do not even contain alloca or
8283 # contain a buggy version. If you still want to use their alloca,
8284 # use ar to extract alloca.o from them instead of compiling alloca.c.
8285
8286 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8287
8288 cat >>confdefs.h <<\_ACEOF
8289 #define C_ALLOCA 1
8290 _ACEOF
8291
8292
8293 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8294 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8295 if test "${ac_cv_os_cray+set}" = set; then
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #if defined CRAY && ! defined CRAY2
8305 webecray
8306 #else
8307 wenotbecray
8308 #endif
8309
8310 _ACEOF
8311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8312 $EGREP "webecray" >/dev/null 2>&1; then
8313 ac_cv_os_cray=yes
8314 else
8315 ac_cv_os_cray=no
8316 fi
8317 rm -f conftest*
8318
8319 fi
8320 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8321 $as_echo "$ac_cv_os_cray" >&6; }
8322 if test $ac_cv_os_cray = yes; then
8323 for ac_func in _getb67 GETB67 getb67; do
8324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8326 $as_echo_n "checking for $ac_func... " >&6; }
8327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8328 $as_echo_n "(cached) " >&6
8329 else
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define $ac_func innocuous_$ac_func
8339
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8344
8345 #ifdef __STDC__
8346 # include <limits.h>
8347 #else
8348 # include <assert.h>
8349 #endif
8350
8351 #undef $ac_func
8352
8353 /* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
8356 #ifdef __cplusplus
8357 extern "C"
8358 #endif
8359 char $ac_func ();
8360 /* The GNU C library defines this for functions which it implements
8361 to always fail with ENOSYS. Some functions are actually named
8362 something starting with __ and the normal name is an alias. */
8363 #if defined __stub_$ac_func || defined __stub___$ac_func
8364 choke me
8365 #endif
8366
8367 int
8368 main ()
8369 {
8370 return $ac_func ();
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382 $as_echo "$ac_try_echo") >&5
8383 (eval "$ac_link") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest$ac_exeext && {
8393 test "$cross_compiling" = yes ||
8394 $as_test_x conftest$ac_exeext
8395 }; then
8396 eval "$as_ac_var=yes"
8397 else
8398 $as_echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 eval "$as_ac_var=no"
8402 fi
8403
8404 rm -rf conftest.dSYM
8405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8406 conftest$ac_exeext conftest.$ac_ext
8407 fi
8408 ac_res=`eval 'as_val=${'$as_ac_var'}
8409 $as_echo "$as_val"'`
8410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8411 $as_echo "$ac_res" >&6; }
8412 as_val=`eval 'as_val=${'$as_ac_var'}
8413 $as_echo "$as_val"'`
8414 if test "x$as_val" = x""yes; then
8415
8416 cat >>confdefs.h <<_ACEOF
8417 #define CRAY_STACKSEG_END $ac_func
8418 _ACEOF
8419
8420 break
8421 fi
8422
8423 done
8424 fi
8425
8426 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8427 $as_echo_n "checking stack direction for C alloca... " >&6; }
8428 if test "${ac_cv_c_stack_direction+set}" = set; then
8429 $as_echo_n "(cached) " >&6
8430 else
8431 if test "$cross_compiling" = yes; then
8432 ac_cv_c_stack_direction=0
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 int
8442 find_stack_direction ()
8443 {
8444 static char *addr = 0;
8445 auto char dummy;
8446 if (addr == 0)
8447 {
8448 addr = &dummy;
8449 return find_stack_direction ();
8450 }
8451 else
8452 return (&dummy > addr) ? 1 : -1;
8453 }
8454
8455 int
8456 main ()
8457 {
8458 return find_stack_direction () < 0;
8459 }
8460 _ACEOF
8461 rm -f conftest$ac_exeext
8462 if { (ac_try="$ac_link"
8463 case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466 esac
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469 (eval "$ac_link") 2>&5
8470 ac_status=$?
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473 { (case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476 esac
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_try") 2>&5
8480 ac_status=$?
8481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_c_stack_direction=1
8484 else
8485 $as_echo "$as_me: program exited with status $ac_status" >&5
8486 $as_echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 ( exit $ac_status )
8490 ac_cv_c_stack_direction=-1
8491 fi
8492 rm -rf conftest.dSYM
8493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8494 fi
8495
8496
8497 fi
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8499 $as_echo "$ac_cv_c_stack_direction" >&6; }
8500
8501 cat >>confdefs.h <<_ACEOF
8502 #define STACK_DIRECTION $ac_cv_c_stack_direction
8503 _ACEOF
8504
8505
8506 fi
8507
8508 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8509 $as_echo_n "checking whether closedir returns void... " >&6; }
8510 if test "${ac_cv_func_closedir_void+set}" = set; then
8511 $as_echo_n "(cached) " >&6
8512 else
8513 if test "$cross_compiling" = yes; then
8514 ac_cv_func_closedir_void=yes
8515 else
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #include <$ac_header_dirent>
8524 #ifndef __cplusplus
8525 int closedir ();
8526 #endif
8527
8528 int
8529 main ()
8530 {
8531 return closedir (opendir (".")) != 0;
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest$ac_exeext
8537 if { (ac_try="$ac_link"
8538 case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541 esac
8542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8543 $as_echo "$ac_try_echo") >&5
8544 (eval "$ac_link") 2>&5
8545 ac_status=$?
8546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8548 { (case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553 $as_echo "$ac_try_echo") >&5
8554 (eval "$ac_try") 2>&5
8555 ac_status=$?
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_func_closedir_void=no
8559 else
8560 $as_echo "$as_me: program exited with status $ac_status" >&5
8561 $as_echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8563
8564 ( exit $ac_status )
8565 ac_cv_func_closedir_void=yes
8566 fi
8567 rm -rf conftest.dSYM
8568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8569 fi
8570
8571
8572 fi
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8574 $as_echo "$ac_cv_func_closedir_void" >&6; }
8575 if test $ac_cv_func_closedir_void = yes; then
8576
8577 cat >>confdefs.h <<\_ACEOF
8578 #define CLOSEDIR_VOID 1
8579 _ACEOF
8580
8581 fi
8582
8583
8584 for ac_header in unistd.h
8585 do
8586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8589 $as_echo_n "checking for $ac_header... " >&6; }
8590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591 $as_echo_n "(cached) " >&6
8592 fi
8593 ac_res=`eval 'as_val=${'$as_ac_Header'}
8594 $as_echo "$as_val"'`
8595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8596 $as_echo "$ac_res" >&6; }
8597 else
8598 # Is the header compilable?
8599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600 $as_echo_n "checking $ac_header usability... " >&6; }
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 #include <$ac_header>
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617 $as_echo "$ac_try_echo") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8628 ac_header_compiler=yes
8629 else
8630 $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_header_compiler=no
8634 fi
8635
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638 $as_echo "$ac_header_compiler" >&6; }
8639
8640 # Is the header present?
8641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642 $as_echo_n "checking $ac_header presence... " >&6; }
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <$ac_header>
8650 _ACEOF
8651 if { (ac_try="$ac_cpp conftest.$ac_ext"
8652 case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655 esac
8656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8657 $as_echo "$ac_try_echo") >&5
8658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } >/dev/null && {
8665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 }; then
8668 ac_header_preproc=yes
8669 else
8670 $as_echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_header_preproc=no
8674 fi
8675
8676 rm -f conftest.err conftest.$ac_ext
8677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 $as_echo "$ac_header_preproc" >&6; }
8679
8680 # So? What about this header?
8681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8682 yes:no: )
8683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8687 ac_header_preproc=yes
8688 ;;
8689 no:yes:* )
8690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8702
8703 ;;
8704 esac
8705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 $as_echo_n "checking for $ac_header... " >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 $as_echo_n "(cached) " >&6
8709 else
8710 eval "$as_ac_Header=\$ac_header_preproc"
8711 fi
8712 ac_res=`eval 'as_val=${'$as_ac_Header'}
8713 $as_echo "$as_val"'`
8714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8715 $as_echo "$ac_res" >&6; }
8716
8717 fi
8718 as_val=`eval 'as_val=${'$as_ac_Header'}
8719 $as_echo "$as_val"'`
8720 if test "x$as_val" = x""yes; then
8721 cat >>confdefs.h <<_ACEOF
8722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723 _ACEOF
8724
8725 fi
8726
8727 done
8728
8729 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
8730 $as_echo_n "checking for working chown... " >&6; }
8731 if test "${ac_cv_func_chown_works+set}" = set; then
8732 $as_echo_n "(cached) " >&6
8733 else
8734 if test "$cross_compiling" = yes; then
8735 ac_cv_func_chown_works=no
8736 else
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8744 #include <fcntl.h>
8745
8746 int
8747 main ()
8748 {
8749 char *f = "conftest.chown";
8750 struct stat before, after;
8751
8752 if (creat (f, 0600) < 0)
8753 return 1;
8754 if (stat (f, &before) < 0)
8755 return 1;
8756 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8757 return 1;
8758 if (stat (f, &after) < 0)
8759 return 1;
8760 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8761
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest$ac_exeext
8767 if { (ac_try="$ac_link"
8768 case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771 esac
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_link") 2>&5
8775 ac_status=$?
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8778 { (case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8781 esac
8782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8783 $as_echo "$ac_try_echo") >&5
8784 (eval "$ac_try") 2>&5
8785 ac_status=$?
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_func_chown_works=yes
8789 else
8790 $as_echo "$as_me: program exited with status $ac_status" >&5
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 ( exit $ac_status )
8795 ac_cv_func_chown_works=no
8796 fi
8797 rm -rf conftest.dSYM
8798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8799 fi
8800
8801
8802 rm -f conftest.chown
8803
8804 fi
8805 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8806 $as_echo "$ac_cv_func_chown_works" >&6; }
8807 if test $ac_cv_func_chown_works = yes; then
8808
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_CHOWN 1
8811 _ACEOF
8812
8813 fi
8814
8815
8816 for ac_header in vfork.h
8817 do
8818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8821 $as_echo_n "checking for $ac_header... " >&6; }
8822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8823 $as_echo_n "(cached) " >&6
8824 fi
8825 ac_res=`eval 'as_val=${'$as_ac_Header'}
8826 $as_echo "$as_val"'`
8827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8828 $as_echo "$ac_res" >&6; }
8829 else
8830 # Is the header compilable?
8831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8832 $as_echo_n "checking $ac_header usability... " >&6; }
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8840 #include <$ac_header>
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_compile") 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest.$ac_objext; then
8860 ac_header_compiler=yes
8861 else
8862 $as_echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 ac_header_compiler=no
8866 fi
8867
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8870 $as_echo "$ac_header_compiler" >&6; }
8871
8872 # Is the header present?
8873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8874 $as_echo_n "checking $ac_header presence... " >&6; }
8875 cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h. */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 #include <$ac_header>
8882 _ACEOF
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8884 case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887 esac
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } >/dev/null && {
8897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8898 test ! -s conftest.err
8899 }; then
8900 ac_header_preproc=yes
8901 else
8902 $as_echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_header_preproc=no
8906 fi
8907
8908 rm -f conftest.err conftest.$ac_ext
8909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8910 $as_echo "$ac_header_preproc" >&6; }
8911
8912 # So? What about this header?
8913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8914 yes:no: )
8915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8919 ac_header_preproc=yes
8920 ;;
8921 no:yes:* )
8922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8925 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8929 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8934
8935 ;;
8936 esac
8937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 $as_echo_n "checking for $ac_header... " >&6; }
8939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 $as_echo_n "(cached) " >&6
8941 else
8942 eval "$as_ac_Header=\$ac_header_preproc"
8943 fi
8944 ac_res=`eval 'as_val=${'$as_ac_Header'}
8945 $as_echo "$as_val"'`
8946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8947 $as_echo "$ac_res" >&6; }
8948
8949 fi
8950 as_val=`eval 'as_val=${'$as_ac_Header'}
8951 $as_echo "$as_val"'`
8952 if test "x$as_val" = x""yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8955 _ACEOF
8956
8957 fi
8958
8959 done
8960
8961
8962
8963 for ac_func in fork vfork
8964 do
8965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8966 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8967 $as_echo_n "checking for $ac_func... " >&6; }
8968 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8979 #define $ac_func innocuous_$ac_func
8980
8981 /* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func || defined __stub___$ac_func
9005 choke me
9006 #endif
9007
9008 int
9009 main ()
9010 {
9011 return $ac_func ();
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 eval "$as_ac_var=yes"
9038 else
9039 $as_echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 eval "$as_ac_var=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 ac_res=`eval 'as_val=${'$as_ac_var'}
9050 $as_echo "$as_val"'`
9051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9052 $as_echo "$ac_res" >&6; }
9053 as_val=`eval 'as_val=${'$as_ac_var'}
9054 $as_echo "$as_val"'`
9055 if test "x$as_val" = x""yes; then
9056 cat >>confdefs.h <<_ACEOF
9057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9058 _ACEOF
9059
9060 fi
9061 done
9062
9063 if test "x$ac_cv_func_fork" = xyes; then
9064 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9065 $as_echo_n "checking for working fork... " >&6; }
9066 if test "${ac_cv_func_fork_works+set}" = set; then
9067 $as_echo_n "(cached) " >&6
9068 else
9069 if test "$cross_compiling" = yes; then
9070 ac_cv_func_fork_works=cross
9071 else
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 $ac_includes_default
9079 int
9080 main ()
9081 {
9082
9083 /* By Ruediger Kuhlmann. */
9084 return fork () < 0;
9085
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9092 case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095 esac
9096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9097 $as_echo "$ac_try_echo") >&5
9098 (eval "$ac_link") 2>&5
9099 ac_status=$?
9100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9102 { (case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105 esac
9106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9107 $as_echo "$ac_try_echo") >&5
9108 (eval "$ac_try") 2>&5
9109 ac_status=$?
9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_func_fork_works=yes
9113 else
9114 $as_echo "$as_me: program exited with status $ac_status" >&5
9115 $as_echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118 ( exit $ac_status )
9119 ac_cv_func_fork_works=no
9120 fi
9121 rm -rf conftest.dSYM
9122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9123 fi
9124
9125
9126 fi
9127 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9128 $as_echo "$ac_cv_func_fork_works" >&6; }
9129
9130 else
9131 ac_cv_func_fork_works=$ac_cv_func_fork
9132 fi
9133 if test "x$ac_cv_func_fork_works" = xcross; then
9134 case $host in
9135 *-*-amigaos* | *-*-msdosdjgpp*)
9136 # Override, as these systems have only a dummy fork() stub
9137 ac_cv_func_fork_works=no
9138 ;;
9139 *)
9140 ac_cv_func_fork_works=yes
9141 ;;
9142 esac
9143 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9144 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9145 fi
9146 ac_cv_func_vfork_works=$ac_cv_func_vfork
9147 if test "x$ac_cv_func_vfork" = xyes; then
9148 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9149 $as_echo_n "checking for working vfork... " >&6; }
9150 if test "${ac_cv_func_vfork_works+set}" = set; then
9151 $as_echo_n "(cached) " >&6
9152 else
9153 if test "$cross_compiling" = yes; then
9154 ac_cv_func_vfork_works=cross
9155 else
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h. */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162 /* Thanks to Paul Eggert for this test. */
9163 $ac_includes_default
9164 #include <sys/wait.h>
9165 #ifdef HAVE_VFORK_H
9166 # include <vfork.h>
9167 #endif
9168 /* On some sparc systems, changes by the child to local and incoming
9169 argument registers are propagated back to the parent. The compiler
9170 is told about this with #include <vfork.h>, but some compilers
9171 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9172 static variable whose address is put into a register that is
9173 clobbered by the vfork. */
9174 static void
9175 #ifdef __cplusplus
9176 sparc_address_test (int arg)
9177 # else
9178 sparc_address_test (arg) int arg;
9179 #endif
9180 {
9181 static pid_t child;
9182 if (!child) {
9183 child = vfork ();
9184 if (child < 0) {
9185 perror ("vfork");
9186 _exit(2);
9187 }
9188 if (!child) {
9189 arg = getpid();
9190 write(-1, "", 0);
9191 _exit (arg);
9192 }
9193 }
9194 }
9195
9196 int
9197 main ()
9198 {
9199 pid_t parent = getpid ();
9200 pid_t child;
9201
9202 sparc_address_test (0);
9203
9204 child = vfork ();
9205
9206 if (child == 0) {
9207 /* Here is another test for sparc vfork register problems. This
9208 test uses lots of local variables, at least as many local
9209 variables as main has allocated so far including compiler
9210 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9211 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9212 reuse the register of parent for one of the local variables,
9213 since it will think that parent can't possibly be used any more
9214 in this routine. Assigning to the local variable will thus
9215 munge parent in the parent process. */
9216 pid_t
9217 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9218 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9219 /* Convince the compiler that p..p7 are live; otherwise, it might
9220 use the same hardware register for all 8 local variables. */
9221 if (p != p1 || p != p2 || p != p3 || p != p4
9222 || p != p5 || p != p6 || p != p7)
9223 _exit(1);
9224
9225 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9226 from child file descriptors. If the child closes a descriptor
9227 before it execs or exits, this munges the parent's descriptor
9228 as well. Test for this by closing stdout in the child. */
9229 _exit(close(fileno(stdout)) != 0);
9230 } else {
9231 int status;
9232 struct stat st;
9233
9234 while (wait(&status) != child)
9235 ;
9236 return (
9237 /* Was there some problem with vforking? */
9238 child < 0
9239
9240 /* Did the child fail? (This shouldn't happen.) */
9241 || status
9242
9243 /* Did the vfork/compiler bug occur? */
9244 || parent != getpid()
9245
9246 /* Did the file descriptor bug occur? */
9247 || fstat(fileno(stdout), &st) != 0
9248 );
9249 }
9250 }
9251 _ACEOF
9252 rm -f conftest$ac_exeext
9253 if { (ac_try="$ac_link"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9259 $as_echo "$ac_try_echo") >&5
9260 (eval "$ac_link") 2>&5
9261 ac_status=$?
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9264 { (case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267 esac
9268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9269 $as_echo "$ac_try_echo") >&5
9270 (eval "$ac_try") 2>&5
9271 ac_status=$?
9272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_func_vfork_works=yes
9275 else
9276 $as_echo "$as_me: program exited with status $ac_status" >&5
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ( exit $ac_status )
9281 ac_cv_func_vfork_works=no
9282 fi
9283 rm -rf conftest.dSYM
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9285 fi
9286
9287
9288 fi
9289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9290 $as_echo "$ac_cv_func_vfork_works" >&6; }
9291
9292 fi;
9293 if test "x$ac_cv_func_fork_works" = xcross; then
9294 ac_cv_func_vfork_works=$ac_cv_func_vfork
9295 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9296 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9297 fi
9298
9299 if test "x$ac_cv_func_vfork_works" = xyes; then
9300
9301 cat >>confdefs.h <<\_ACEOF
9302 #define HAVE_WORKING_VFORK 1
9303 _ACEOF
9304
9305 else
9306
9307 cat >>confdefs.h <<\_ACEOF
9308 #define vfork fork
9309 _ACEOF
9310
9311 fi
9312 if test "x$ac_cv_func_fork_works" = xyes; then
9313
9314 cat >>confdefs.h <<\_ACEOF
9315 #define HAVE_WORKING_FORK 1
9316 _ACEOF
9317
9318 fi
9319
9320 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9321 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
9322 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9323 $as_echo_n "(cached) " >&6
9324 else
9325 rm -f conftest.sym conftest.file
9326 echo >conftest.file
9327 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9328 if test "$cross_compiling" = yes; then
9329 ac_cv_func_lstat_dereferences_slashed_symlink=no
9330 else
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h. */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 int
9339 main ()
9340 {
9341 struct stat sbuf;
9342 /* Linux will dereference the symlink and fail.
9343 That is better in the sense that it means we will not
9344 have to compile and use the lstat wrapper. */
9345 return lstat ("conftest.sym/", &sbuf) == 0;
9346 ;
9347 return 0;
9348 }
9349 _ACEOF
9350 rm -f conftest$ac_exeext
9351 if { (ac_try="$ac_link"
9352 case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355 esac
9356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9357 $as_echo "$ac_try_echo") >&5
9358 (eval "$ac_link") 2>&5
9359 ac_status=$?
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9367 $as_echo "$ac_try_echo") >&5
9368 (eval "$ac_try") 2>&5
9369 ac_status=$?
9370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9373 else
9374 $as_echo "$as_me: program exited with status $ac_status" >&5
9375 $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9377
9378 ( exit $ac_status )
9379 ac_cv_func_lstat_dereferences_slashed_symlink=no
9380 fi
9381 rm -rf conftest.dSYM
9382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9383 fi
9384
9385
9386 else
9387 # If the `ln -s' command failed, then we probably don't even
9388 # have an lstat function.
9389 ac_cv_func_lstat_dereferences_slashed_symlink=no
9390 fi
9391 rm -f conftest.sym conftest.file
9392
9393 fi
9394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9395 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9396
9397 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9398
9399 cat >>confdefs.h <<_ACEOF
9400 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9401 _ACEOF
9402
9403
9404 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9405 case " $LIBOBJS " in
9406 *" lstat.$ac_objext "* ) ;;
9407 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9408 ;;
9409 esac
9410
9411 fi
9412
9413 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9414 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
9415 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
9416 $as_echo_n "(cached) " >&6
9417 else
9418 if test "$cross_compiling" = yes; then
9419 ac_cv_func_lstat_empty_string_bug=yes
9420 else
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 int
9429 main ()
9430 {
9431 struct stat sbuf;
9432 return lstat ("", &sbuf) == 0;
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest$ac_exeext
9438 if { (ac_try="$ac_link"
9439 case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442 esac
9443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9444 $as_echo "$ac_try_echo") >&5
9445 (eval "$ac_link") 2>&5
9446 ac_status=$?
9447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454 $as_echo "$ac_try_echo") >&5
9455 (eval "$ac_try") 2>&5
9456 ac_status=$?
9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_cv_func_lstat_empty_string_bug=no
9460 else
9461 $as_echo "$as_me: program exited with status $ac_status" >&5
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 ( exit $ac_status )
9466 ac_cv_func_lstat_empty_string_bug=yes
9467 fi
9468 rm -rf conftest.dSYM
9469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9470 fi
9471
9472
9473 fi
9474 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9475 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
9476 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9477 case " $LIBOBJS " in
9478 *" lstat.$ac_objext "* ) ;;
9479 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9480 ;;
9481 esac
9482
9483
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9486 _ACEOF
9487
9488 fi
9489
9490
9491 for ac_header in stdlib.h
9492 do
9493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 $as_echo_n "checking for $ac_header... " >&6; }
9497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9498 $as_echo_n "(cached) " >&6
9499 fi
9500 ac_res=`eval 'as_val=${'$as_ac_Header'}
9501 $as_echo "$as_val"'`
9502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9503 $as_echo "$ac_res" >&6; }
9504 else
9505 # Is the header compilable?
9506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507 $as_echo_n "checking $ac_header usability... " >&6; }
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <$ac_header>
9516 _ACEOF
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9519 case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522 esac
9523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9524 $as_echo "$ac_try_echo") >&5
9525 (eval "$ac_compile") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
9535 ac_header_compiler=yes
9536 else
9537 $as_echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_header_compiler=no
9541 fi
9542
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9545 $as_echo "$ac_header_compiler" >&6; }
9546
9547 # Is the header present?
9548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9549 $as_echo_n "checking $ac_header presence... " >&6; }
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <$ac_header>
9557 _ACEOF
9558 if { (ac_try="$ac_cpp conftest.$ac_ext"
9559 case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9564 $as_echo "$ac_try_echo") >&5
9565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } >/dev/null && {
9572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 }; then
9575 ac_header_preproc=yes
9576 else
9577 $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_header_preproc=no
9581 fi
9582
9583 rm -f conftest.err conftest.$ac_ext
9584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585 $as_echo "$ac_header_preproc" >&6; }
9586
9587 # So? What about this header?
9588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589 yes:no: )
9590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594 ac_header_preproc=yes
9595 ;;
9596 no:yes:* )
9597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9600 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9604 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9609
9610 ;;
9611 esac
9612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9613 $as_echo_n "checking for $ac_header... " >&6; }
9614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9615 $as_echo_n "(cached) " >&6
9616 else
9617 eval "$as_ac_Header=\$ac_header_preproc"
9618 fi
9619 ac_res=`eval 'as_val=${'$as_ac_Header'}
9620 $as_echo "$as_val"'`
9621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9622 $as_echo "$ac_res" >&6; }
9623
9624 fi
9625 as_val=`eval 'as_val=${'$as_ac_Header'}
9626 $as_echo "$as_val"'`
9627 if test "x$as_val" = x""yes; then
9628 cat >>confdefs.h <<_ACEOF
9629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9630 _ACEOF
9631
9632 fi
9633
9634 done
9635
9636 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9637 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9638 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9639 $as_echo_n "(cached) " >&6
9640 else
9641 if test "$cross_compiling" = yes; then
9642 ac_cv_func_malloc_0_nonnull=no
9643 else
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9651 # include <stdlib.h>
9652 #else
9653 char *malloc ();
9654 #endif
9655
9656 int
9657 main ()
9658 {
9659 return ! malloc (0);
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9671 $as_echo "$ac_try_echo") >&5
9672 (eval "$ac_link") 2>&5
9673 ac_status=$?
9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9681 $as_echo "$ac_try_echo") >&5
9682 (eval "$ac_try") 2>&5
9683 ac_status=$?
9684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_func_malloc_0_nonnull=yes
9687 else
9688 $as_echo "$as_me: program exited with status $ac_status" >&5
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ( exit $ac_status )
9693 ac_cv_func_malloc_0_nonnull=no
9694 fi
9695 rm -rf conftest.dSYM
9696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9697 fi
9698
9699
9700 fi
9701 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9702 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9703 if test $ac_cv_func_malloc_0_nonnull = yes; then
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_MALLOC 1
9707 _ACEOF
9708
9709 else
9710 cat >>confdefs.h <<\_ACEOF
9711 #define HAVE_MALLOC 0
9712 _ACEOF
9713
9714 case " $LIBOBJS " in
9715 *" malloc.$ac_objext "* ) ;;
9716 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9717 ;;
9718 esac
9719
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define malloc rpl_malloc
9723 _ACEOF
9724
9725 fi
9726
9727
9728
9729 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9730 $as_echo_n "checking for working memcmp... " >&6; }
9731 if test "${ac_cv_func_memcmp_working+set}" = set; then
9732 $as_echo_n "(cached) " >&6
9733 else
9734 if test "$cross_compiling" = yes; then
9735 ac_cv_func_memcmp_working=no
9736 else
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 int
9745 main ()
9746 {
9747
9748 /* Some versions of memcmp are not 8-bit clean. */
9749 char c0 = '\100', c1 = '\200', c2 = '\201';
9750 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9751 return 1;
9752
9753 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9754 or more and with at least one buffer not starting on a 4-byte boundary.
9755 William Lewis provided this test program. */
9756 {
9757 char foo[21];
9758 char bar[21];
9759 int i;
9760 for (i = 0; i < 4; i++)
9761 {
9762 char *a = foo + i;
9763 char *b = bar + i;
9764 strcpy (a, "--------01111111");
9765 strcpy (b, "--------10000000");
9766 if (memcmp (a, b, 16) >= 0)
9767 return 1;
9768 }
9769 return 0;
9770 }
9771
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9778 case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781 esac
9782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783 $as_echo "$ac_try_echo") >&5
9784 (eval "$ac_link") 2>&5
9785 ac_status=$?
9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_try") 2>&5
9795 ac_status=$?
9796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_memcmp_working=yes
9799 else
9800 $as_echo "$as_me: program exited with status $ac_status" >&5
9801 $as_echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ( exit $ac_status )
9805 ac_cv_func_memcmp_working=no
9806 fi
9807 rm -rf conftest.dSYM
9808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9809 fi
9810
9811
9812 fi
9813 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9814 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9815 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9816 *" memcmp.$ac_objext "* ) ;;
9817 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9818 ;;
9819 esac
9820
9821
9822
9823
9824 for ac_header in stdlib.h unistd.h
9825 do
9826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9829 $as_echo_n "checking for $ac_header... " >&6; }
9830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9831 $as_echo_n "(cached) " >&6
9832 fi
9833 ac_res=`eval 'as_val=${'$as_ac_Header'}
9834 $as_echo "$as_val"'`
9835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9836 $as_echo "$ac_res" >&6; }
9837 else
9838 # Is the header compilable?
9839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9840 $as_echo_n "checking $ac_header usability... " >&6; }
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9848 #include <$ac_header>
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (ac_try="$ac_compile"
9852 case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855 esac
9856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9857 $as_echo "$ac_try_echo") >&5
9858 (eval "$ac_compile") 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest.$ac_objext; then
9868 ac_header_compiler=yes
9869 else
9870 $as_echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ac_header_compiler=no
9874 fi
9875
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 $as_echo "$ac_header_compiler" >&6; }
9879
9880 # Is the header present?
9881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882 $as_echo_n "checking $ac_header presence... " >&6; }
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <$ac_header>
9890 _ACEOF
9891 if { (ac_try="$ac_cpp conftest.$ac_ext"
9892 case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895 esac
9896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9897 $as_echo "$ac_try_echo") >&5
9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } >/dev/null && {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 }; then
9908 ac_header_preproc=yes
9909 else
9910 $as_echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ac_header_preproc=no
9914 fi
9915
9916 rm -f conftest.err conftest.$ac_ext
9917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 $as_echo "$ac_header_preproc" >&6; }
9919
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 yes:no: )
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9928 ;;
9929 no:yes:* )
9930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9942
9943 ;;
9944 esac
9945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9946 $as_echo_n "checking for $ac_header... " >&6; }
9947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 $as_echo_n "(cached) " >&6
9949 else
9950 eval "$as_ac_Header=\$ac_header_preproc"
9951 fi
9952 ac_res=`eval 'as_val=${'$as_ac_Header'}
9953 $as_echo "$as_val"'`
9954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9955 $as_echo "$ac_res" >&6; }
9956
9957 fi
9958 as_val=`eval 'as_val=${'$as_ac_Header'}
9959 $as_echo "$as_val"'`
9960 if test "x$as_val" = x""yes; then
9961 cat >>confdefs.h <<_ACEOF
9962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9963 _ACEOF
9964
9965 fi
9966
9967 done
9968
9969
9970 for ac_func in getpagesize
9971 do
9972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9974 $as_echo_n "checking for $ac_func... " >&6; }
9975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9976 $as_echo_n "(cached) " >&6
9977 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986 #define $ac_func innocuous_$ac_func
9987
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9992
9993 #ifdef __STDC__
9994 # include <limits.h>
9995 #else
9996 # include <assert.h>
9997 #endif
9998
9999 #undef $ac_func
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char $ac_func ();
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined __stub_$ac_func || defined __stub___$ac_func
10012 choke me
10013 #endif
10014
10015 int
10016 main ()
10017 {
10018 return $ac_func ();
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10030 $as_echo "$ac_try_echo") >&5
10031 (eval "$ac_link") 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 } && test -s conftest$ac_exeext && {
10041 test "$cross_compiling" = yes ||
10042 $as_test_x conftest$ac_exeext
10043 }; then
10044 eval "$as_ac_var=yes"
10045 else
10046 $as_echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 eval "$as_ac_var=no"
10050 fi
10051
10052 rm -rf conftest.dSYM
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 ac_res=`eval 'as_val=${'$as_ac_var'}
10057 $as_echo "$as_val"'`
10058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10059 $as_echo "$ac_res" >&6; }
10060 as_val=`eval 'as_val=${'$as_ac_var'}
10061 $as_echo "$as_val"'`
10062 if test "x$as_val" = x""yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065 _ACEOF
10066
10067 fi
10068 done
10069
10070 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10071 $as_echo_n "checking for working mmap... " >&6; }
10072 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10073 $as_echo_n "(cached) " >&6
10074 else
10075 if test "$cross_compiling" = yes; then
10076 ac_cv_func_mmap_fixed_mapped=no
10077 else
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 /* malloc might have been renamed as rpl_malloc. */
10086 #undef malloc
10087
10088 /* Thanks to Mike Haertel and Jim Avera for this test.
10089 Here is a matrix of mmap possibilities:
10090 mmap private not fixed
10091 mmap private fixed at somewhere currently unmapped
10092 mmap private fixed at somewhere already mapped
10093 mmap shared not fixed
10094 mmap shared fixed at somewhere currently unmapped
10095 mmap shared fixed at somewhere already mapped
10096 For private mappings, we should verify that changes cannot be read()
10097 back from the file, nor mmap's back from the file at a different
10098 address. (There have been systems where private was not correctly
10099 implemented like the infamous i386 svr4.0, and systems where the
10100 VM page cache was not coherent with the file system buffer cache
10101 like early versions of FreeBSD and possibly contemporary NetBSD.)
10102 For shared mappings, we should conversely verify that changes get
10103 propagated back to all the places they're supposed to be.
10104
10105 Grep wants private fixed already mapped.
10106 The main things grep needs to know about mmap are:
10107 * does it exist and is it safe to write into the mmap'd area
10108 * how to use it (BSD variants) */
10109
10110 #include <fcntl.h>
10111 #include <sys/mman.h>
10112
10113 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10114 char *malloc ();
10115 #endif
10116
10117 /* This mess was copied from the GNU getpagesize.h. */
10118 #ifndef HAVE_GETPAGESIZE
10119 /* Assume that all systems that can run configure have sys/param.h. */
10120 # ifndef HAVE_SYS_PARAM_H
10121 # define HAVE_SYS_PARAM_H 1
10122 # endif
10123
10124 # ifdef _SC_PAGESIZE
10125 # define getpagesize() sysconf(_SC_PAGESIZE)
10126 # else /* no _SC_PAGESIZE */
10127 # ifdef HAVE_SYS_PARAM_H
10128 # include <sys/param.h>
10129 # ifdef EXEC_PAGESIZE
10130 # define getpagesize() EXEC_PAGESIZE
10131 # else /* no EXEC_PAGESIZE */
10132 # ifdef NBPG
10133 # define getpagesize() NBPG * CLSIZE
10134 # ifndef CLSIZE
10135 # define CLSIZE 1
10136 # endif /* no CLSIZE */
10137 # else /* no NBPG */
10138 # ifdef NBPC
10139 # define getpagesize() NBPC
10140 # else /* no NBPC */
10141 # ifdef PAGESIZE
10142 # define getpagesize() PAGESIZE
10143 # endif /* PAGESIZE */
10144 # endif /* no NBPC */
10145 # endif /* no NBPG */
10146 # endif /* no EXEC_PAGESIZE */
10147 # else /* no HAVE_SYS_PARAM_H */
10148 # define getpagesize() 8192 /* punt totally */
10149 # endif /* no HAVE_SYS_PARAM_H */
10150 # endif /* no _SC_PAGESIZE */
10151
10152 #endif /* no HAVE_GETPAGESIZE */
10153
10154 int
10155 main ()
10156 {
10157 char *data, *data2, *data3;
10158 int i, pagesize;
10159 int fd;
10160
10161 pagesize = getpagesize ();
10162
10163 /* First, make a file with some known garbage in it. */
10164 data = (char *) malloc (pagesize);
10165 if (!data)
10166 return 1;
10167 for (i = 0; i < pagesize; ++i)
10168 *(data + i) = rand ();
10169 umask (0);
10170 fd = creat ("conftest.mmap", 0600);
10171 if (fd < 0)
10172 return 1;
10173 if (write (fd, data, pagesize) != pagesize)
10174 return 1;
10175 close (fd);
10176
10177 /* Next, try to mmap the file at a fixed address which already has
10178 something else allocated at it. If we can, also make sure that
10179 we see the same garbage. */
10180 fd = open ("conftest.mmap", O_RDWR);
10181 if (fd < 0)
10182 return 1;
10183 data2 = (char *) malloc (2 * pagesize);
10184 if (!data2)
10185 return 1;
10186 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10189 return 1;
10190 for (i = 0; i < pagesize; ++i)
10191 if (*(data + i) != *(data2 + i))
10192 return 1;
10193
10194 /* Finally, make sure that changes to the mapped area do not
10195 percolate back to the file as seen by read(). (This is a bug on
10196 some variants of i386 svr4.0.) */
10197 for (i = 0; i < pagesize; ++i)
10198 *(data2 + i) = *(data2 + i) + 1;
10199 data3 = (char *) malloc (pagesize);
10200 if (!data3)
10201 return 1;
10202 if (read (fd, data3, pagesize) != pagesize)
10203 return 1;
10204 for (i = 0; i < pagesize; ++i)
10205 if (*(data + i) != *(data3 + i))
10206 return 1;
10207 close (fd);
10208 return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10218 $as_echo "$ac_try_echo") >&5
10219 (eval "$ac_link") 2>&5
10220 ac_status=$?
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229 (eval "$ac_try") 2>&5
10230 ac_status=$?
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_cv_func_mmap_fixed_mapped=yes
10234 else
10235 $as_echo "$as_me: program exited with status $ac_status" >&5
10236 $as_echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ( exit $ac_status )
10240 ac_cv_func_mmap_fixed_mapped=no
10241 fi
10242 rm -rf conftest.dSYM
10243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244 fi
10245
10246
10247 fi
10248 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10249 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10251
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_MMAP 1
10254 _ACEOF
10255
10256 fi
10257 rm -f conftest.mmap
10258
10259
10260 for ac_header in stdlib.h
10261 do
10262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10265 $as_echo_n "checking for $ac_header... " >&6; }
10266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10267 $as_echo_n "(cached) " >&6
10268 fi
10269 ac_res=`eval 'as_val=${'$as_ac_Header'}
10270 $as_echo "$as_val"'`
10271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10272 $as_echo "$ac_res" >&6; }
10273 else
10274 # Is the header compilable?
10275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10276 $as_echo_n "checking $ac_header usability... " >&6; }
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 $ac_includes_default
10284 #include <$ac_header>
10285 _ACEOF
10286 rm -f conftest.$ac_objext
10287 if { (ac_try="$ac_compile"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.$ac_objext; then
10304 ac_header_compiler=yes
10305 else
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_header_compiler=no
10310 fi
10311
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 $as_echo "$ac_header_compiler" >&6; }
10315
10316 # Is the header present?
10317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10318 $as_echo_n "checking $ac_header presence... " >&6; }
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <$ac_header>
10326 _ACEOF
10327 if { (ac_try="$ac_cpp conftest.$ac_ext"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333 $as_echo "$ac_try_echo") >&5
10334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null && {
10341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 }; then
10344 ac_header_preproc=yes
10345 else
10346 $as_echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_header_preproc=no
10350 fi
10351
10352 rm -f conftest.err conftest.$ac_ext
10353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354 $as_echo "$ac_header_preproc" >&6; }
10355
10356 # So? What about this header?
10357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10358 yes:no: )
10359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10364 ;;
10365 no:yes:* )
10366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10373 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10378
10379 ;;
10380 esac
10381 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10382 $as_echo_n "checking for $ac_header... " >&6; }
10383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10384 $as_echo_n "(cached) " >&6
10385 else
10386 eval "$as_ac_Header=\$ac_header_preproc"
10387 fi
10388 ac_res=`eval 'as_val=${'$as_ac_Header'}
10389 $as_echo "$as_val"'`
10390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10391 $as_echo "$ac_res" >&6; }
10392
10393 fi
10394 as_val=`eval 'as_val=${'$as_ac_Header'}
10395 $as_echo "$as_val"'`
10396 if test "x$as_val" = x""yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10399 _ACEOF
10400
10401 fi
10402
10403 done
10404
10405 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10406 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10407 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10408 $as_echo_n "(cached) " >&6
10409 else
10410 if test "$cross_compiling" = yes; then
10411 ac_cv_func_realloc_0_nonnull=no
10412 else
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10420 # include <stdlib.h>
10421 #else
10422 char *realloc ();
10423 #endif
10424
10425 int
10426 main ()
10427 {
10428 return ! realloc (0, 0);
10429 ;
10430 return 0;
10431 }
10432 _ACEOF
10433 rm -f conftest$ac_exeext
10434 if { (ac_try="$ac_link"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438 esac
10439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10440 $as_echo "$ac_try_echo") >&5
10441 (eval "$ac_link") 2>&5
10442 ac_status=$?
10443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_try") 2>&5
10452 ac_status=$?
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_func_realloc_0_nonnull=yes
10456 else
10457 $as_echo "$as_me: program exited with status $ac_status" >&5
10458 $as_echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461 ( exit $ac_status )
10462 ac_cv_func_realloc_0_nonnull=no
10463 fi
10464 rm -rf conftest.dSYM
10465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10466 fi
10467
10468
10469 fi
10470 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10471 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10472 if test $ac_cv_func_realloc_0_nonnull = yes; then
10473
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_REALLOC 1
10476 _ACEOF
10477
10478 else
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_REALLOC 0
10481 _ACEOF
10482
10483 case " $LIBOBJS " in
10484 *" realloc.$ac_objext "* ) ;;
10485 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10486 ;;
10487 esac
10488
10489
10490 cat >>confdefs.h <<\_ACEOF
10491 #define realloc rpl_realloc
10492 _ACEOF
10493
10494 fi
10495
10496
10497
10498 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10499 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10500 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
10501 $as_echo_n "(cached) " >&6
10502 else
10503 if test "$cross_compiling" = yes; then
10504 ac_cv_func_stat_empty_string_bug=yes
10505 else
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 $ac_includes_default
10513 int
10514 main ()
10515 {
10516 struct stat sbuf;
10517 return stat ("", &sbuf) == 0;
10518 ;
10519 return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527 esac
10528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529 $as_echo "$ac_try_echo") >&5
10530 (eval "$ac_link") 2>&5
10531 ac_status=$?
10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10539 $as_echo "$ac_try_echo") >&5
10540 (eval "$ac_try") 2>&5
10541 ac_status=$?
10542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_func_stat_empty_string_bug=no
10545 else
10546 $as_echo "$as_me: program exited with status $ac_status" >&5
10547 $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ( exit $ac_status )
10551 ac_cv_func_stat_empty_string_bug=yes
10552 fi
10553 rm -rf conftest.dSYM
10554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10555 fi
10556
10557
10558 fi
10559 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10560 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10561 if test $ac_cv_func_stat_empty_string_bug = yes; then
10562 case " $LIBOBJS " in
10563 *" stat.$ac_objext "* ) ;;
10564 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10565 ;;
10566 esac
10567
10568
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_STAT_EMPTY_STRING_BUG 1
10571 _ACEOF
10572
10573 fi
10574
10575 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10576 $as_echo_n "checking for working strtod... " >&6; }
10577 if test "${ac_cv_func_strtod+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10579 else
10580 if test "$cross_compiling" = yes; then
10581 ac_cv_func_strtod=no
10582 else
10583 cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h. */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589
10590 $ac_includes_default
10591 #ifndef strtod
10592 double strtod ();
10593 #endif
10594 int
10595 main()
10596 {
10597 {
10598 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10599 char *string = " +69";
10600 char *term;
10601 double value;
10602 value = strtod (string, &term);
10603 if (value != 69 || term != (string + 4))
10604 return 1;
10605 }
10606
10607 {
10608 /* Under Solaris 2.4, strtod returns the wrong value for the
10609 terminating character under some conditions. */
10610 char *string = "NaN";
10611 char *term;
10612 strtod (string, &term);
10613 if (term != string && *(term - 1) == 0)
10614 return 1;
10615 }
10616 return 0;
10617 }
10618
10619 _ACEOF
10620 rm -f conftest$ac_exeext
10621 if { (ac_try="$ac_link"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627 $as_echo "$ac_try_echo") >&5
10628 (eval "$ac_link") 2>&5
10629 ac_status=$?
10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10632 { (case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10637 $as_echo "$ac_try_echo") >&5
10638 (eval "$ac_try") 2>&5
10639 ac_status=$?
10640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_func_strtod=yes
10643 else
10644 $as_echo "$as_me: program exited with status $ac_status" >&5
10645 $as_echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 ( exit $ac_status )
10649 ac_cv_func_strtod=no
10650 fi
10651 rm -rf conftest.dSYM
10652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10653 fi
10654
10655
10656 fi
10657 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10658 $as_echo "$ac_cv_func_strtod" >&6; }
10659 if test $ac_cv_func_strtod = no; then
10660 case " $LIBOBJS " in
10661 *" strtod.$ac_objext "* ) ;;
10662 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10663 ;;
10664 esac
10665
10666 { $as_echo "$as_me:$LINENO: checking for pow" >&5
10667 $as_echo_n "checking for pow... " >&6; }
10668 if test "${ac_cv_func_pow+set}" = set; then
10669 $as_echo_n "(cached) " >&6
10670 else
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10679 #define pow innocuous_pow
10680
10681 /* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char pow (); below.
10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 <limits.h> exists even on freestanding compilers. */
10685
10686 #ifdef __STDC__
10687 # include <limits.h>
10688 #else
10689 # include <assert.h>
10690 #endif
10691
10692 #undef pow
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char pow ();
10701 /* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
10704 #if defined __stub_pow || defined __stub___pow
10705 choke me
10706 #endif
10707
10708 int
10709 main ()
10710 {
10711 return pow ();
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721 esac
10722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10723 $as_echo "$ac_try_echo") >&5
10724 (eval "$ac_link") 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest$ac_exeext && {
10734 test "$cross_compiling" = yes ||
10735 $as_test_x conftest$ac_exeext
10736 }; then
10737 ac_cv_func_pow=yes
10738 else
10739 $as_echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 ac_cv_func_pow=no
10743 fi
10744
10745 rm -rf conftest.dSYM
10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747 conftest$ac_exeext conftest.$ac_ext
10748 fi
10749 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10750 $as_echo "$ac_cv_func_pow" >&6; }
10751
10752 if test $ac_cv_func_pow = no; then
10753 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10754 $as_echo_n "checking for pow in -lm... " >&6; }
10755 if test "${ac_cv_lib_m_pow+set}" = set; then
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lm $LIBS"
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766
10767 /* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
10770 #ifdef __cplusplus
10771 extern "C"
10772 #endif
10773 char pow ();
10774 int
10775 main ()
10776 {
10777 return pow ();
10778 ;
10779 return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787 esac
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10791 ac_status=$?
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10802 }; then
10803 ac_cv_lib_m_pow=yes
10804 else
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ac_cv_lib_m_pow=no
10809 fi
10810
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10817 $as_echo "$ac_cv_lib_m_pow" >&6; }
10818 if test "x$ac_cv_lib_m_pow" = x""yes; then
10819 POW_LIB=-lm
10820 else
10821 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10822 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10823 fi
10824
10825 fi
10826
10827 fi
10828
10829
10830 for ac_func in vprintf
10831 do
10832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10833 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10834 $as_echo_n "checking for $ac_func... " >&6; }
10835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10836 $as_echo_n "(cached) " >&6
10837 else
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10846 #define $ac_func innocuous_$ac_func
10847
10848 /* System header to define __stub macros and hopefully few prototypes,
10849 which can conflict with char $ac_func (); below.
10850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10851 <limits.h> exists even on freestanding compilers. */
10852
10853 #ifdef __STDC__
10854 # include <limits.h>
10855 #else
10856 # include <assert.h>
10857 #endif
10858
10859 #undef $ac_func
10860
10861 /* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 char $ac_func ();
10868 /* The GNU C library defines this for functions which it implements
10869 to always fail with ENOSYS. Some functions are actually named
10870 something starting with __ and the normal name is an alias. */
10871 #if defined __stub_$ac_func || defined __stub___$ac_func
10872 choke me
10873 #endif
10874
10875 int
10876 main ()
10877 {
10878 return $ac_func ();
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888 esac
10889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890 $as_echo "$ac_try_echo") >&5
10891 (eval "$ac_link") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest$ac_exeext && {
10901 test "$cross_compiling" = yes ||
10902 $as_test_x conftest$ac_exeext
10903 }; then
10904 eval "$as_ac_var=yes"
10905 else
10906 $as_echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 eval "$as_ac_var=no"
10910 fi
10911
10912 rm -rf conftest.dSYM
10913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
10915 fi
10916 ac_res=`eval 'as_val=${'$as_ac_var'}
10917 $as_echo "$as_val"'`
10918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10919 $as_echo "$ac_res" >&6; }
10920 as_val=`eval 'as_val=${'$as_ac_var'}
10921 $as_echo "$as_val"'`
10922 if test "x$as_val" = x""yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10925 _ACEOF
10926
10927 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10928 $as_echo_n "checking for _doprnt... " >&6; }
10929 if test "${ac_cv_func__doprnt+set}" = set; then
10930 $as_echo_n "(cached) " >&6
10931 else
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10940 #define _doprnt innocuous__doprnt
10941
10942 /* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char _doprnt (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10946
10947 #ifdef __STDC__
10948 # include <limits.h>
10949 #else
10950 # include <assert.h>
10951 #endif
10952
10953 #undef _doprnt
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char _doprnt ();
10962 /* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965 #if defined __stub__doprnt || defined __stub____doprnt
10966 choke me
10967 #endif
10968
10969 int
10970 main ()
10971 {
10972 return _doprnt ();
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10997 }; then
10998 ac_cv_func__doprnt=yes
10999 else
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_cv_func__doprnt=no
11004 fi
11005
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 fi
11010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11011 $as_echo "$ac_cv_func__doprnt" >&6; }
11012 if test "x$ac_cv_func__doprnt" = x""yes; then
11013
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_DOPRNT 1
11016 _ACEOF
11017
11018 fi
11019
11020 fi
11021 done
11022
11023
11024
11025 ################################################################################
11026 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11027 $as_echo_n "checking whether to use static linking... " >&6; }
11028 # Check whether --enable-static_link was given.
11029 if test "${enable_static_link+set}" = set; then
11030 enableval=$enable_static_link; STATIC_LINK=$enableval
11031 else
11032 STATIC_LINK=no
11033 fi
11034
11035 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11036 $as_echo "$STATIC_LINK" >&6; }
11037
11038 ################################################################################
11039
11040
11041 ################################################################################
11042 { $as_echo "$as_me:$LINENO: checking file owner" >&5
11043 $as_echo_n "checking file owner... " >&6; }
11044
11045 # Check whether --with-user was given.
11046 if test "${with_user+set}" = set; then
11047 withval=$with_user; OWNER=$withval
11048 fi
11049
11050 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11051 $as_echo "$OWNER" >&6; }
11052
11053 if test x$OWNER != x; then
11054 INSTALL="$INSTALL -o $OWNER"
11055 fi
11056
11057 ################################################################################
11058 { $as_echo "$as_me:$LINENO: checking group owner" >&5
11059 $as_echo_n "checking group owner... " >&6; }
11060
11061 # Check whether --with-group was given.
11062 if test "${with_group+set}" = set; then
11063 withval=$with_group; GROUP=$withval
11064 fi
11065
11066 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11067 $as_echo "$GROUP" >&6; }
11068
11069 if test x$GROUP != x; then
11070 INSTALL="$INSTALL -g $GROUP"
11071 fi
11072
11073 ################################################################################
11074 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
11075 $as_echo_n "checking device node uid... " >&6; }
11076
11077
11078 # Check whether --with-device-uid was given.
11079 if test "${with_device_uid+set}" = set; then
11080 withval=$with_device_uid; DM_DEVICE_UID=$withval
11081 else
11082 DM_DEVICE_UID=0
11083 fi
11084
11085 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11086 $as_echo "$DM_DEVICE_UID" >&6; }
11087
11088 ################################################################################
11089 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
11090 $as_echo_n "checking device node gid... " >&6; }
11091
11092
11093 # Check whether --with-device-gid was given.
11094 if test "${with_device_gid+set}" = set; then
11095 withval=$with_device_gid; DM_DEVICE_GID=$withval
11096 else
11097 DM_DEVICE_GID=0
11098 fi
11099
11100 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11101 $as_echo "$DM_DEVICE_GID" >&6; }
11102
11103 ################################################################################
11104 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
11105 $as_echo_n "checking device node mode... " >&6; }
11106
11107
11108 # Check whether --with-device-mode was given.
11109 if test "${with_device_mode+set}" = set; then
11110 withval=$with_device_mode; DM_DEVICE_MODE=$withval
11111 else
11112 DM_DEVICE_MODE=0600
11113 fi
11114
11115 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11116 $as_echo "$DM_DEVICE_MODE" >&6; }
11117
11118 ################################################################################
11119 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11120 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
11121 # Check whether --enable-lvm1_fallback was given.
11122 if test "${enable_lvm1_fallback+set}" = set; then
11123 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11124 else
11125 LVM1_FALLBACK=no
11126 fi
11127
11128 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11129 $as_echo "$LVM1_FALLBACK" >&6; }
11130
11131 if test x$LVM1_FALLBACK = xyes; then
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define LVM1_FALLBACK 1
11135 _ACEOF
11136
11137 fi
11138
11139 ################################################################################
11140 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11141 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
11142
11143 # Check whether --with-lvm1 was given.
11144 if test "${with_lvm1+set}" = set; then
11145 withval=$with_lvm1; LVM1=$withval
11146 else
11147 LVM1=internal
11148 fi
11149
11150 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11151 $as_echo "$LVM1" >&6; }
11152
11153 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
11154 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
11155 " >&5
11156 $as_echo "$as_me: error: --with-lvm1 parameter invalid
11157 " >&2;}
11158 { (exit 1); exit 1; }; }
11159 fi;
11160
11161 if test x$LVM1 = xinternal; then
11162
11163 cat >>confdefs.h <<\_ACEOF
11164 #define LVM1_INTERNAL 1
11165 _ACEOF
11166
11167 fi
11168
11169 ################################################################################
11170 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11171 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
11172
11173 # Check whether --with-pool was given.
11174 if test "${with_pool+set}" = set; then
11175 withval=$with_pool; POOL=$withval
11176 else
11177 POOL=internal
11178 fi
11179
11180 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
11181 $as_echo "$POOL" >&6; }
11182
11183 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
11184 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
11185 " >&5
11186 $as_echo "$as_me: error: --with-pool parameter invalid
11187 " >&2;}
11188 { (exit 1); exit 1; }; }
11189 fi;
11190
11191 if test x$POOL = xinternal; then
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 #define POOL_INTERNAL 1
11195 _ACEOF
11196
11197 fi
11198
11199 ################################################################################
11200 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11201 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
11202
11203 # Check whether --with-cluster was given.
11204 if test "${with_cluster+set}" = set; then
11205 withval=$with_cluster; CLUSTER=$withval
11206 fi
11207
11208 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11209 $as_echo "$CLUSTER" >&6; }
11210
11211 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
11212 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
11213 " >&5
11214 $as_echo "$as_me: error: --with-cluster parameter invalid
11215 " >&2;}
11216 { (exit 1); exit 1; }; }
11217 fi;
11218
11219 if test x$CLUSTER = xinternal; then
11220
11221 cat >>confdefs.h <<\_ACEOF
11222 #define CLUSTER_LOCKING_INTERNAL 1
11223 _ACEOF
11224
11225 fi
11226
11227 ################################################################################
11228 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11229 $as_echo_n "checking whether to include snapshots... " >&6; }
11230
11231 # Check whether --with-snapshots was given.
11232 if test "${with_snapshots+set}" = set; then
11233 withval=$with_snapshots; SNAPSHOTS=$withval
11234 else
11235 SNAPSHOTS=internal
11236 fi
11237
11238 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11239 $as_echo "$SNAPSHOTS" >&6; }
11240
11241 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
11242 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
11243 " >&5
11244 $as_echo "$as_me: error: --with-snapshots parameter invalid
11245 " >&2;}
11246 { (exit 1); exit 1; }; }
11247 fi;
11248
11249 if test x$SNAPSHOTS = xinternal; then
11250
11251 cat >>confdefs.h <<\_ACEOF
11252 #define SNAPSHOT_INTERNAL 1
11253 _ACEOF
11254
11255 fi
11256
11257 ################################################################################
11258 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11259 $as_echo_n "checking whether to include mirrors... " >&6; }
11260
11261 # Check whether --with-mirrors was given.
11262 if test "${with_mirrors+set}" = set; then
11263 withval=$with_mirrors; MIRRORS=$withval
11264 else
11265 MIRRORS=internal
11266 fi
11267
11268 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11269 $as_echo "$MIRRORS" >&6; }
11270
11271 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
11272 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
11273 " >&5
11274 $as_echo "$as_me: error: --with-mirrors parameter invalid
11275 " >&2;}
11276 { (exit 1); exit 1; }; }
11277 fi;
11278
11279 if test x$MIRRORS = xinternal; then
11280
11281 cat >>confdefs.h <<\_ACEOF
11282 #define MIRRORED_INTERNAL 1
11283 _ACEOF
11284
11285 fi
11286
11287 ################################################################################
11288 { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11289 $as_echo_n "checking whether to include replicators... " >&6; }
11290
11291 # Check whether --with-replicators was given.
11292 if test "${with_replicators+set}" = set; then
11293 withval=$with_replicators; REPLICATORS=$withval
11294 else
11295 REPLICATORS=none
11296 fi
11297
11298 { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11299 $as_echo "$REPLICATORS" >&6; }
11300
11301 case "$REPLICATORS" in
11302 none|shared) ;;
11303 internal)
11304 cat >>confdefs.h <<\_ACEOF
11305 #define REPLICATOR_INTERNAL 1
11306 _ACEOF
11307 ;;
11308 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11309 $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11310 { (exit 1); exit 1; }; } ;;
11311 esac
11312
11313 ################################################################################
11314 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11315 $as_echo_n "checking whether to enable readline... " >&6; }
11316 # Check whether --enable-readline was given.
11317 if test "${enable_readline+set}" = set; then
11318 enableval=$enable_readline; READLINE=$enableval
11319 else
11320 READLINE=maybe
11321 fi
11322
11323 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11324 $as_echo "$READLINE" >&6; }
11325
11326 ################################################################################
11327 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11328 $as_echo_n "checking whether to enable realtime support... " >&6; }
11329 # Check whether --enable-realtime was given.
11330 if test "${enable_realtime+set}" = set; then
11331 enableval=$enable_realtime; REALTIME=$enableval
11332 fi
11333
11334 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11335 $as_echo "$REALTIME" >&6; }
11336
11337 ################################################################################
11338 { $as_echo "$as_me:$LINENO: checking whether to enable OCF resource agents" >&5
11339 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
11340 # Check whether --enable-ocf was given.
11341 if test "${enable_ocf+set}" = set; then
11342 enableval=$enable_ocf; OCF=$enableval
11343 else
11344 OCF=no
11345 fi
11346
11347 { $as_echo "$as_me:$LINENO: result: $OCF" >&5
11348 $as_echo "$OCF" >&6; }
11349
11350 ################################################################################
11351 pkg_config_init() {
11352
11353
11354 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11355 if test -n "$ac_tool_prefix"; then
11356 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11357 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11361 $as_echo_n "(cached) " >&6
11362 else
11363 case $PKG_CONFIG in
11364 [\\/]* | ?:[\\/]*)
11365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11366 ;;
11367 *)
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11370 do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11378 fi
11379 done
11380 done
11381 IFS=$as_save_IFS
11382
11383 ;;
11384 esac
11385 fi
11386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11387 if test -n "$PKG_CONFIG"; then
11388 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11389 $as_echo "$PKG_CONFIG" >&6; }
11390 else
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392 $as_echo "no" >&6; }
11393 fi
11394
11395
11396 fi
11397 if test -z "$ac_cv_path_PKG_CONFIG"; then
11398 ac_pt_PKG_CONFIG=$PKG_CONFIG
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400 set dummy pkg-config; ac_word=$2
11401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $ac_pt_PKG_CONFIG in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11409 ;;
11410 *)
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11421 fi
11422 done
11423 done
11424 IFS=$as_save_IFS
11425
11426 ;;
11427 esac
11428 fi
11429 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11430 if test -n "$ac_pt_PKG_CONFIG"; then
11431 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11432 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11433 else
11434 { $as_echo "$as_me:$LINENO: result: no" >&5
11435 $as_echo "no" >&6; }
11436 fi
11437
11438 if test "x$ac_pt_PKG_CONFIG" = x; then
11439 PKG_CONFIG=""
11440 else
11441 case $cross_compiling:$ac_tool_warned in
11442 yes:)
11443 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11445 ac_tool_warned=yes ;;
11446 esac
11447 PKG_CONFIG=$ac_pt_PKG_CONFIG
11448 fi
11449 else
11450 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11451 fi
11452
11453 fi
11454 if test -n "$PKG_CONFIG"; then
11455 _pkg_min_version=0.9.0
11456 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11457 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11458 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11459 { $as_echo "$as_me:$LINENO: result: yes" >&5
11460 $as_echo "yes" >&6; }
11461 else
11462 { $as_echo "$as_me:$LINENO: result: no" >&5
11463 $as_echo "no" >&6; }
11464 PKG_CONFIG=""
11465 fi
11466
11467 fi
11468
11469 pkg_failed=no
11470 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11471 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
11472
11473 if test -n "$PKGCONFIGINIT_CFLAGS"; then
11474 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
11475 elif test -n "$PKG_CONFIG"; then
11476 if test -n "$PKG_CONFIG" && \
11477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11478 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11479 ac_status=$?
11480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; then
11482 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
11483 else
11484 pkg_failed=yes
11485 fi
11486 else
11487 pkg_failed=untried
11488 fi
11489 if test -n "$PKGCONFIGINIT_LIBS"; then
11490 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
11491 elif test -n "$PKG_CONFIG"; then
11492 if test -n "$PKG_CONFIG" && \
11493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11494 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11495 ac_status=$?
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; then
11498 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
11499 else
11500 pkg_failed=yes
11501 fi
11502 else
11503 pkg_failed=untried
11504 fi
11505
11506
11507
11508 if test $pkg_failed = yes; then
11509
11510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11511 _pkg_short_errors_supported=yes
11512 else
11513 _pkg_short_errors_supported=no
11514 fi
11515 if test $_pkg_short_errors_supported = yes; then
11516 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
11517 else
11518 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
11519 fi
11520 # Put the nasty error message in config.log where it belongs
11521 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
11522
11523 { $as_echo "$as_me:$LINENO: result: no" >&5
11524 $as_echo "no" >&6; }
11525 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11526 $as_echo "pkg-config initialized" >&6; }
11527 elif test $pkg_failed = untried; then
11528 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11529 $as_echo "pkg-config initialized" >&6; }
11530 else
11531 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11532 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535 :
11536 fi
11537 PKGCONFIG_INIT=1
11538 }
11539
11540 ################################################################################
11541 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11542 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11543
11544 # Check whether --with-clvmd was given.
11545 if test "${with_clvmd+set}" = set; then
11546 withval=$with_clvmd; CLVMD=$withval
11547 else
11548 CLVMD=none
11549 fi
11550
11551 if test x$CLVMD = xyes; then
11552 CLVMD=all
11553 fi
11554 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11555 $as_echo "$CLVMD" >&6; }
11556
11557 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11558 CLUSTER=internal
11559 fi
11560
11561 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11562 pkg_config_init
11563 fi
11564
11565 CLVMD_CMANAGERS=""
11566 CLVMD_NEEDS_QDISKD=no
11567
11568 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11569 BUILDGULM=yes
11570 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
11571 CLVMD_NEEDS_QDISKD=yes
11572 fi
11573 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11574 BUILDCMAN=yes
11575 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
11576 CLVMD_NEEDS_QDISKD=yes
11577 fi
11578 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11579 BUILDCOROSYNC=yes
11580 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
11581 fi
11582 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11583 BUILDOPENAIS=yes
11584 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
11585 fi
11586 if test x$CLVMD_NEEDS_QDISKD != xno; then
11587 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
11588 fi
11589
11590 if test x$BUILDGULM = xyes; then
11591 if test x$BUILDCOROSYNC = xyes || \
11592 test x$BUILDOPENAIS = xyes; then
11593 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11594 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11595 { (exit 1); exit 1; }; }
11596 fi
11597 fi
11598
11599 soft_bailout() {
11600 NOTFOUND=1
11601 }
11602
11603 hard_bailout() {
11604 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11605 $as_echo "$as_me: error: bailing out" >&2;}
11606 { (exit 1); exit 1; }; }
11607 }
11608
11609 if test x$CLVMD = xall; then
11610 bailout=soft_bailout
11611 BUILDGULM=yes
11612 BUILDCMAN=yes
11613 BUILDCOROSYNC=yes
11614 BUILDOPENAIS=yes
11615 else
11616 bailout=hard_bailout
11617 fi
11618
11619 check_lib_no_libs() {
11620 lib_no_libs_arg1=$1
11621 shift
11622 lib_no_libs_arg2=$1
11623 shift
11624 lib_no_libs_args=$@
11625
11626 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11627 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11628 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11629 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11630 $as_echo_n "(cached) " >&6
11631 else
11632 ac_check_lib_save_LIBS=$LIBS
11633 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11634 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h. */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char $lib_no_libs_arg2 ();
11648 int
11649 main ()
11650 {
11651 return $lib_no_libs_arg2 ();
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (ac_try="$ac_link"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661 esac
11662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663 $as_echo "$ac_try_echo") >&5
11664 (eval "$ac_link") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext && {
11674 test "$cross_compiling" = yes ||
11675 $as_test_x conftest$ac_exeext
11676 }; then
11677 eval "$as_ac_Lib=yes"
11678 else
11679 $as_echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 eval "$as_ac_Lib=no"
11683 fi
11684
11685 rm -rf conftest.dSYM
11686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11689 fi
11690 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11691 $as_echo "$as_val"'`
11692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11693 $as_echo "$ac_res" >&6; }
11694 as_val=`eval 'as_val=${'$as_ac_Lib'}
11695 $as_echo "$as_val"'`
11696 if test "x$as_val" = x""yes; then
11697 cat >>confdefs.h <<_ACEOF
11698 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11699 _ACEOF
11700
11701 LIBS="-l$lib_no_libs_arg1 $LIBS"
11702
11703 else
11704 $bailout
11705 fi
11706
11707 LIBS=$ac_check_lib_save_LIBS
11708 }
11709
11710 if test x$BUILDGULM = xyes; then
11711
11712 pkg_failed=no
11713 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
11714 $as_echo_n "checking for CCS... " >&6; }
11715
11716 if test -n "$CCS_CFLAGS"; then
11717 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
11718 elif test -n "$PKG_CONFIG"; then
11719 if test -n "$PKG_CONFIG" && \
11720 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11721 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11722 ac_status=$?
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; then
11725 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
11726 else
11727 pkg_failed=yes
11728 fi
11729 else
11730 pkg_failed=untried
11731 fi
11732 if test -n "$CCS_LIBS"; then
11733 pkg_cv_CCS_LIBS="$CCS_LIBS"
11734 elif test -n "$PKG_CONFIG"; then
11735 if test -n "$PKG_CONFIG" && \
11736 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11737 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11738 ac_status=$?
11739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; then
11741 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
11742 else
11743 pkg_failed=yes
11744 fi
11745 else
11746 pkg_failed=untried
11747 fi
11748
11749
11750
11751 if test $pkg_failed = yes; then
11752
11753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11754 _pkg_short_errors_supported=yes
11755 else
11756 _pkg_short_errors_supported=no
11757 fi
11758 if test $_pkg_short_errors_supported = yes; then
11759 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
11760 else
11761 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
11762 fi
11763 # Put the nasty error message in config.log where it belongs
11764 echo "$CCS_PKG_ERRORS" >&5
11765
11766 { $as_echo "$as_me:$LINENO: result: no" >&5
11767 $as_echo "no" >&6; }
11768 NOTFOUND=0
11769
11770 for ac_header in ccs.h
11771 do
11772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 $as_echo_n "checking for $ac_header... " >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 $as_echo_n "(cached) " >&6
11778 fi
11779 ac_res=`eval 'as_val=${'$as_ac_Header'}
11780 $as_echo "$as_val"'`
11781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11782 $as_echo "$ac_res" >&6; }
11783 else
11784 # Is the header compilable?
11785 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11786 $as_echo_n "checking $ac_header usability... " >&6; }
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11794 #include <$ac_header>
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (ac_try="$ac_compile"
11798 case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801 esac
11802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11803 $as_echo "$ac_try_echo") >&5
11804 (eval "$ac_compile") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest.$ac_objext; then
11814 ac_header_compiler=yes
11815 else
11816 $as_echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_header_compiler=no
11820 fi
11821
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 $as_echo "$ac_header_compiler" >&6; }
11825
11826 # Is the header present?
11827 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 $as_echo_n "checking $ac_header presence... " >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <$ac_header>
11836 _ACEOF
11837 if { (ac_try="$ac_cpp conftest.$ac_ext"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } >/dev/null && {
11851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 }; then
11854 ac_header_preproc=yes
11855 else
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_header_preproc=no
11860 fi
11861
11862 rm -f conftest.err conftest.$ac_ext
11863 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11864 $as_echo "$ac_header_preproc" >&6; }
11865
11866 # So? What about this header?
11867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11868 yes:no: )
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11873 ac_header_preproc=yes
11874 ;;
11875 no:yes:* )
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11877 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11879 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11881 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11887 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11888
11889 ;;
11890 esac
11891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11892 $as_echo_n "checking for $ac_header... " >&6; }
11893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11894 $as_echo_n "(cached) " >&6
11895 else
11896 eval "$as_ac_Header=\$ac_header_preproc"
11897 fi
11898 ac_res=`eval 'as_val=${'$as_ac_Header'}
11899 $as_echo "$as_val"'`
11900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11901 $as_echo "$ac_res" >&6; }
11902
11903 fi
11904 as_val=`eval 'as_val=${'$as_ac_Header'}
11905 $as_echo "$as_val"'`
11906 if test "x$as_val" = x""yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11909 _ACEOF
11910
11911 else
11912 $bailout
11913 fi
11914
11915 done
11916
11917 check_lib_no_libs ccs ccs_connect
11918 if test $NOTFOUND = 0; then
11919 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11920 $as_echo "no pkg for libccs, using -lccs" >&6; }
11921 CCS_LIBS="-lccs"
11922 HAVE_CCS=yes
11923 fi
11924 elif test $pkg_failed = untried; then
11925 NOTFOUND=0
11926
11927 for ac_header in ccs.h
11928 do
11929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11932 $as_echo_n "checking for $ac_header... " >&6; }
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 $as_echo_n "(cached) " >&6
11935 fi
11936 ac_res=`eval 'as_val=${'$as_ac_Header'}
11937 $as_echo "$as_val"'`
11938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11939 $as_echo "$ac_res" >&6; }
11940 else
11941 # Is the header compilable?
11942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11943 $as_echo_n "checking $ac_header usability... " >&6; }
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 $ac_includes_default
11951 #include <$ac_header>
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (ac_try="$ac_compile"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960 $as_echo "$ac_try_echo") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_header_compiler=yes
11972 else
11973 $as_echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 ac_header_compiler=no
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 $as_echo "$ac_header_compiler" >&6; }
11982
11983 # Is the header present?
11984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 $as_echo_n "checking $ac_header presence... " >&6; }
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 #include <$ac_header>
11993 _ACEOF
11994 if { (ac_try="$ac_cpp conftest.$ac_ext"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } >/dev/null && {
12008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 }; then
12011 ac_header_preproc=yes
12012 else
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 ac_header_preproc=no
12017 fi
12018
12019 rm -f conftest.err conftest.$ac_ext
12020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 $as_echo "$ac_header_preproc" >&6; }
12022
12023 # So? What about this header?
12024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12025 yes:no: )
12026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12030 ac_header_preproc=yes
12031 ;;
12032 no:yes:* )
12033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12036 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12040 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12045
12046 ;;
12047 esac
12048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12049 $as_echo_n "checking for $ac_header... " >&6; }
12050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051 $as_echo_n "(cached) " >&6
12052 else
12053 eval "$as_ac_Header=\$ac_header_preproc"
12054 fi
12055 ac_res=`eval 'as_val=${'$as_ac_Header'}
12056 $as_echo "$as_val"'`
12057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12058 $as_echo "$ac_res" >&6; }
12059
12060 fi
12061 as_val=`eval 'as_val=${'$as_ac_Header'}
12062 $as_echo "$as_val"'`
12063 if test "x$as_val" = x""yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12066 _ACEOF
12067
12068 else
12069 $bailout
12070 fi
12071
12072 done
12073
12074 check_lib_no_libs ccs ccs_connect
12075 if test $NOTFOUND = 0; then
12076 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12077 $as_echo "no pkg for libccs, using -lccs" >&6; }
12078 CCS_LIBS="-lccs"
12079 HAVE_CCS=yes
12080 fi
12081 else
12082 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12083 CCS_LIBS=$pkg_cv_CCS_LIBS
12084 { $as_echo "$as_me:$LINENO: result: yes" >&5
12085 $as_echo "yes" >&6; }
12086 HAVE_CCS=yes
12087 fi
12088
12089 pkg_failed=no
12090 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
12091 $as_echo_n "checking for GULM... " >&6; }
12092
12093 if test -n "$GULM_CFLAGS"; then
12094 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12095 elif test -n "$PKG_CONFIG"; then
12096 if test -n "$PKG_CONFIG" && \
12097 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12098 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12099 ac_status=$?
12100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; then
12102 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12103 else
12104 pkg_failed=yes
12105 fi
12106 else
12107 pkg_failed=untried
12108 fi
12109 if test -n "$GULM_LIBS"; then
12110 pkg_cv_GULM_LIBS="$GULM_LIBS"
12111 elif test -n "$PKG_CONFIG"; then
12112 if test -n "$PKG_CONFIG" && \
12113 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12114 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12115 ac_status=$?
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; then
12118 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12119 else
12120 pkg_failed=yes
12121 fi
12122 else
12123 pkg_failed=untried
12124 fi
12125
12126
12127
12128 if test $pkg_failed = yes; then
12129
12130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12131 _pkg_short_errors_supported=yes
12132 else
12133 _pkg_short_errors_supported=no
12134 fi
12135 if test $_pkg_short_errors_supported = yes; then
12136 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12137 else
12138 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12139 fi
12140 # Put the nasty error message in config.log where it belongs
12141 echo "$GULM_PKG_ERRORS" >&5
12142
12143 { $as_echo "$as_me:$LINENO: result: no" >&5
12144 $as_echo "no" >&6; }
12145 NOTFOUND=0
12146
12147 for ac_header in libgulm.h
12148 do
12149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 $as_echo_n "checking for $ac_header... " >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 $as_echo_n "(cached) " >&6
12155 fi
12156 ac_res=`eval 'as_val=${'$as_ac_Header'}
12157 $as_echo "$as_val"'`
12158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12159 $as_echo "$ac_res" >&6; }
12160 else
12161 # Is the header compilable?
12162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12163 $as_echo_n "checking $ac_header usability... " >&6; }
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 $ac_includes_default
12171 #include <$ac_header>
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (ac_try="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180 $as_echo "$ac_try_echo") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_header_compiler=yes
12192 else
12193 $as_echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ac_header_compiler=no
12197 fi
12198
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12201 $as_echo "$ac_header_compiler" >&6; }
12202
12203 # Is the header present?
12204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12205 $as_echo_n "checking $ac_header presence... " >&6; }
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h. */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 #include <$ac_header>
12213 _ACEOF
12214 if { (ac_try="$ac_cpp conftest.$ac_ext"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null && {
12228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 }; then
12231 ac_header_preproc=yes
12232 else
12233 $as_echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_header_preproc=no
12237 fi
12238
12239 rm -f conftest.err conftest.$ac_ext
12240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241 $as_echo "$ac_header_preproc" >&6; }
12242
12243 # So? What about this header?
12244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12245 yes:no: )
12246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12250 ac_header_preproc=yes
12251 ;;
12252 no:yes:* )
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12265
12266 ;;
12267 esac
12268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12269 $as_echo_n "checking for $ac_header... " >&6; }
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 $as_echo_n "(cached) " >&6
12272 else
12273 eval "$as_ac_Header=\$ac_header_preproc"
12274 fi
12275 ac_res=`eval 'as_val=${'$as_ac_Header'}
12276 $as_echo "$as_val"'`
12277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12278 $as_echo "$ac_res" >&6; }
12279
12280 fi
12281 as_val=`eval 'as_val=${'$as_ac_Header'}
12282 $as_echo "$as_val"'`
12283 if test "x$as_val" = x""yes; then
12284 cat >>confdefs.h <<_ACEOF
12285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12286 _ACEOF
12287
12288 else
12289 $bailout
12290 fi
12291
12292 done
12293
12294 check_lib_no_libs gulm lg_core_login
12295 if test $NOTFOUND = 0; then
12296 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12297 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12298 GULM_LIBS="-lgulm"
12299 HAVE_GULM=yes
12300 fi
12301 elif test $pkg_failed = untried; then
12302 NOTFOUND=0
12303
12304 for ac_header in libgulm.h
12305 do
12306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 $as_echo_n "checking for $ac_header... " >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 $as_echo_n "(cached) " >&6
12312 fi
12313 ac_res=`eval 'as_val=${'$as_ac_Header'}
12314 $as_echo "$as_val"'`
12315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12316 $as_echo "$ac_res" >&6; }
12317 else
12318 # Is the header compilable?
12319 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12320 $as_echo_n "checking $ac_header usability... " >&6; }
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 $ac_includes_default
12328 #include <$ac_header>
12329 _ACEOF
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335 esac
12336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337 $as_echo "$ac_try_echo") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 ac_header_compiler=yes
12349 else
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ac_header_compiler=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12358 $as_echo "$ac_header_compiler" >&6; }
12359
12360 # Is the header present?
12361 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12362 $as_echo_n "checking $ac_header presence... " >&6; }
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 #include <$ac_header>
12370 _ACEOF
12371 if { (ac_try="$ac_cpp conftest.$ac_ext"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12377 $as_echo "$ac_try_echo") >&5
12378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } >/dev/null && {
12385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 }; then
12388 ac_header_preproc=yes
12389 else
12390 $as_echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_header_preproc=no
12394 fi
12395
12396 rm -f conftest.err conftest.$ac_ext
12397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12398 $as_echo "$ac_header_preproc" >&6; }
12399
12400 # So? What about this header?
12401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12402 yes:no: )
12403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12407 ac_header_preproc=yes
12408 ;;
12409 no:yes:* )
12410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12411 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12413 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12415 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12417 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12421 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12422
12423 ;;
12424 esac
12425 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12426 $as_echo_n "checking for $ac_header... " >&6; }
12427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12428 $as_echo_n "(cached) " >&6
12429 else
12430 eval "$as_ac_Header=\$ac_header_preproc"
12431 fi
12432 ac_res=`eval 'as_val=${'$as_ac_Header'}
12433 $as_echo "$as_val"'`
12434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12435 $as_echo "$ac_res" >&6; }
12436
12437 fi
12438 as_val=`eval 'as_val=${'$as_ac_Header'}
12439 $as_echo "$as_val"'`
12440 if test "x$as_val" = x""yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443 _ACEOF
12444
12445 else
12446 $bailout
12447 fi
12448
12449 done
12450
12451 check_lib_no_libs gulm lg_core_login
12452 if test $NOTFOUND = 0; then
12453 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12454 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12455 GULM_LIBS="-lgulm"
12456 HAVE_GULM=yes
12457 fi
12458 else
12459 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12460 GULM_LIBS=$pkg_cv_GULM_LIBS
12461 { $as_echo "$as_me:$LINENO: result: yes" >&5
12462 $as_echo "yes" >&6; }
12463 HAVE_GULM=yes
12464 fi
12465 fi
12466
12467 if test x$BUILDCMAN = xyes; then
12468
12469 pkg_failed=no
12470 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12471 $as_echo_n "checking for CMAN... " >&6; }
12472
12473 if test -n "$CMAN_CFLAGS"; then
12474 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12475 elif test -n "$PKG_CONFIG"; then
12476 if test -n "$PKG_CONFIG" && \
12477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12478 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12479 ac_status=$?
12480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; then
12482 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12483 else
12484 pkg_failed=yes
12485 fi
12486 else
12487 pkg_failed=untried
12488 fi
12489 if test -n "$CMAN_LIBS"; then
12490 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12491 elif test -n "$PKG_CONFIG"; then
12492 if test -n "$PKG_CONFIG" && \
12493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12494 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12495 ac_status=$?
12496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; then
12498 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12499 else
12500 pkg_failed=yes
12501 fi
12502 else
12503 pkg_failed=untried
12504 fi
12505
12506
12507
12508 if test $pkg_failed = yes; then
12509
12510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12511 _pkg_short_errors_supported=yes
12512 else
12513 _pkg_short_errors_supported=no
12514 fi
12515 if test $_pkg_short_errors_supported = yes; then
12516 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12517 else
12518 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12519 fi
12520 # Put the nasty error message in config.log where it belongs
12521 echo "$CMAN_PKG_ERRORS" >&5
12522
12523 { $as_echo "$as_me:$LINENO: result: no" >&5
12524 $as_echo "no" >&6; }
12525 NOTFOUND=0
12526
12527 for ac_header in libcman.h
12528 do
12529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12532 $as_echo_n "checking for $ac_header... " >&6; }
12533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 $as_echo_n "(cached) " >&6
12535 fi
12536 ac_res=`eval 'as_val=${'$as_ac_Header'}
12537 $as_echo "$as_val"'`
12538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12539 $as_echo "$ac_res" >&6; }
12540 else
12541 # Is the header compilable?
12542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12543 $as_echo_n "checking $ac_header usability... " >&6; }
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_includes_default
12551 #include <$ac_header>
12552 _ACEOF
12553 rm -f conftest.$ac_objext
12554 if { (ac_try="$ac_compile"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558 esac
12559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12560 $as_echo "$ac_try_echo") >&5
12561 (eval "$ac_compile") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest.$ac_objext; then
12571 ac_header_compiler=yes
12572 else
12573 $as_echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 ac_header_compiler=no
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12581 $as_echo "$ac_header_compiler" >&6; }
12582
12583 # Is the header present?
12584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12585 $as_echo_n "checking $ac_header presence... " >&6; }
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 #include <$ac_header>
12593 _ACEOF
12594 if { (ac_try="$ac_cpp conftest.$ac_ext"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12600 $as_echo "$ac_try_echo") >&5
12601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } >/dev/null && {
12608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 }; then
12611 ac_header_preproc=yes
12612 else
12613 $as_echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616 ac_header_preproc=no
12617 fi
12618
12619 rm -f conftest.err conftest.$ac_ext
12620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621 $as_echo "$ac_header_preproc" >&6; }
12622
12623 # So? What about this header?
12624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12625 yes:no: )
12626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12630 ac_header_preproc=yes
12631 ;;
12632 no:yes:* )
12633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12636 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12640 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12645
12646 ;;
12647 esac
12648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12649 $as_echo_n "checking for $ac_header... " >&6; }
12650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12651 $as_echo_n "(cached) " >&6
12652 else
12653 eval "$as_ac_Header=\$ac_header_preproc"
12654 fi
12655 ac_res=`eval 'as_val=${'$as_ac_Header'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12659
12660 fi
12661 as_val=`eval 'as_val=${'$as_ac_Header'}
12662 $as_echo "$as_val"'`
12663 if test "x$as_val" = x""yes; then
12664 cat >>confdefs.h <<_ACEOF
12665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12666 _ACEOF
12667
12668 else
12669 $bailout
12670 fi
12671
12672 done
12673
12674 check_lib_no_libs cman cman_init
12675 if test $NOTFOUND = 0; then
12676 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12677 $as_echo "no pkg for libcman, using -lcman" >&6; }
12678 CMAN_LIBS="-lcman"
12679 HAVE_CMAN=yes
12680 fi
12681 elif test $pkg_failed = untried; then
12682 NOTFOUND=0
12683
12684 for ac_header in libcman.h
12685 do
12686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12689 $as_echo_n "checking for $ac_header... " >&6; }
12690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12691 $as_echo_n "(cached) " >&6
12692 fi
12693 ac_res=`eval 'as_val=${'$as_ac_Header'}
12694 $as_echo "$as_val"'`
12695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12696 $as_echo "$ac_res" >&6; }
12697 else
12698 # Is the header compilable?
12699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12700 $as_echo_n "checking $ac_header usability... " >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 #include <$ac_header>
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717 $as_echo "$ac_try_echo") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 ac_header_compiler=yes
12729 else
12730 $as_echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_header_compiler=no
12734 fi
12735
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738 $as_echo "$ac_header_compiler" >&6; }
12739
12740 # Is the header present?
12741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12742 $as_echo_n "checking $ac_header presence... " >&6; }
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749 #include <$ac_header>
12750 _ACEOF
12751 if { (ac_try="$ac_cpp conftest.$ac_ext"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } >/dev/null && {
12765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 }; then
12768 ac_header_preproc=yes
12769 else
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 ac_header_preproc=no
12774 fi
12775
12776 rm -f conftest.err conftest.$ac_ext
12777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12778 $as_echo "$ac_header_preproc" >&6; }
12779
12780 # So? What about this header?
12781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12782 yes:no: )
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12787 ac_header_preproc=yes
12788 ;;
12789 no:yes:* )
12790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12793 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12797 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12802
12803 ;;
12804 esac
12805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 $as_echo_n "checking for $ac_header... " >&6; }
12807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808 $as_echo_n "(cached) " >&6
12809 else
12810 eval "$as_ac_Header=\$ac_header_preproc"
12811 fi
12812 ac_res=`eval 'as_val=${'$as_ac_Header'}
12813 $as_echo "$as_val"'`
12814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12815 $as_echo "$ac_res" >&6; }
12816
12817 fi
12818 as_val=`eval 'as_val=${'$as_ac_Header'}
12819 $as_echo "$as_val"'`
12820 if test "x$as_val" = x""yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823 _ACEOF
12824
12825 else
12826 $bailout
12827 fi
12828
12829 done
12830
12831 check_lib_no_libs cman cman_init
12832 if test $NOTFOUND = 0; then
12833 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12834 $as_echo "no pkg for libcman, using -lcman" >&6; }
12835 CMAN_LIBS="-lcman"
12836 HAVE_CMAN=yes
12837 fi
12838 else
12839 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12840 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12841 { $as_echo "$as_me:$LINENO: result: yes" >&5
12842 $as_echo "yes" >&6; }
12843 HAVE_CMAN=yes
12844 fi
12845 CHECKCONFDB=yes
12846 CHECKDLM=yes
12847 fi
12848
12849 if test x$BUILDCOROSYNC = xyes || \
12850 test x$BUILDOPENAIS = xyes; then
12851
12852 pkg_failed=no
12853 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12854 $as_echo_n "checking for COROSYNC... " >&6; }
12855
12856 if test -n "$COROSYNC_CFLAGS"; then
12857 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12858 elif test -n "$PKG_CONFIG"; then
12859 if test -n "$PKG_CONFIG" && \
12860 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12861 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; then
12865 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12866 else
12867 pkg_failed=yes
12868 fi
12869 else
12870 pkg_failed=untried
12871 fi
12872 if test -n "$COROSYNC_LIBS"; then
12873 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12874 elif test -n "$PKG_CONFIG"; then
12875 if test -n "$PKG_CONFIG" && \
12876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12877 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12878 ac_status=$?
12879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; then
12881 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12882 else
12883 pkg_failed=yes
12884 fi
12885 else
12886 pkg_failed=untried
12887 fi
12888
12889
12890
12891 if test $pkg_failed = yes; then
12892
12893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12894 _pkg_short_errors_supported=yes
12895 else
12896 _pkg_short_errors_supported=no
12897 fi
12898 if test $_pkg_short_errors_supported = yes; then
12899 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12900 else
12901 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12902 fi
12903 # Put the nasty error message in config.log where it belongs
12904 echo "$COROSYNC_PKG_ERRORS" >&5
12905
12906 { $as_echo "$as_me:$LINENO: result: no" >&5
12907 $as_echo "no" >&6; }
12908 $bailout
12909 elif test $pkg_failed = untried; then
12910 $bailout
12911 else
12912 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12913 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12914 { $as_echo "$as_me:$LINENO: result: yes" >&5
12915 $as_echo "yes" >&6; }
12916 HAVE_COROSYNC=yes
12917 fi
12918 CHECKCONFDB=yes
12919 fi
12920
12921 if test x$BUILDCOROSYNC = xyes; then
12922
12923 pkg_failed=no
12924 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12925 $as_echo_n "checking for QUORUM... " >&6; }
12926
12927 if test -n "$QUORUM_CFLAGS"; then
12928 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12929 elif test -n "$PKG_CONFIG"; then
12930 if test -n "$PKG_CONFIG" && \
12931 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12932 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; then
12936 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12937 else
12938 pkg_failed=yes
12939 fi
12940 else
12941 pkg_failed=untried
12942 fi
12943 if test -n "$QUORUM_LIBS"; then
12944 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
12945 elif test -n "$PKG_CONFIG"; then
12946 if test -n "$PKG_CONFIG" && \
12947 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12948 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
12953 else
12954 pkg_failed=yes
12955 fi
12956 else
12957 pkg_failed=untried
12958 fi
12959
12960
12961
12962 if test $pkg_failed = yes; then
12963
12964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12965 _pkg_short_errors_supported=yes
12966 else
12967 _pkg_short_errors_supported=no
12968 fi
12969 if test $_pkg_short_errors_supported = yes; then
12970 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
12971 else
12972 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
12973 fi
12974 # Put the nasty error message in config.log where it belongs
12975 echo "$QUORUM_PKG_ERRORS" >&5
12976
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978 $as_echo "no" >&6; }
12979 $bailout
12980 elif test $pkg_failed = untried; then
12981 $bailout
12982 else
12983 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
12984 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
12985 { $as_echo "$as_me:$LINENO: result: yes" >&5
12986 $as_echo "yes" >&6; }
12987 HAVE_QUORUM=yes
12988 fi
12989 CHECKCPG=yes
12990 CHECKDLM=yes
12991 fi
12992
12993 if test x$BUILDOPENAIS = xyes; then
12994
12995 pkg_failed=no
12996 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
12997 $as_echo_n "checking for SALCK... " >&6; }
12998
12999 if test -n "$SALCK_CFLAGS"; then
13000 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13001 elif test -n "$PKG_CONFIG"; then
13002 if test -n "$PKG_CONFIG" && \
13003 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13004 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13005 ac_status=$?
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; then
13008 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13009 else
13010 pkg_failed=yes
13011 fi
13012 else
13013 pkg_failed=untried
13014 fi
13015 if test -n "$SALCK_LIBS"; then
13016 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13017 elif test -n "$PKG_CONFIG"; then
13018 if test -n "$PKG_CONFIG" && \
13019 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13020 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13021 ac_status=$?
13022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; then
13024 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13025 else
13026 pkg_failed=yes
13027 fi
13028 else
13029 pkg_failed=untried
13030 fi
13031
13032
13033
13034 if test $pkg_failed = yes; then
13035
13036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13037 _pkg_short_errors_supported=yes
13038 else
13039 _pkg_short_errors_supported=no
13040 fi
13041 if test $_pkg_short_errors_supported = yes; then
13042 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13043 else
13044 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13045 fi
13046 # Put the nasty error message in config.log where it belongs
13047 echo "$SALCK_PKG_ERRORS" >&5
13048
13049 { $as_echo "$as_me:$LINENO: result: no" >&5
13050 $as_echo "no" >&6; }
13051 $bailout
13052 elif test $pkg_failed = untried; then
13053 $bailout
13054 else
13055 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13056 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13057 { $as_echo "$as_me:$LINENO: result: yes" >&5
13058 $as_echo "yes" >&6; }
13059 HAVE_SALCK=yes
13060 fi
13061 CHECKCPG=yes
13062 fi
13063
13064
13065
13066 if test x$CHECKCONFDB = xyes; then
13067
13068 pkg_failed=no
13069 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13070 $as_echo_n "checking for CONFDB... " >&6; }
13071
13072 if test -n "$CONFDB_CFLAGS"; then
13073 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13074 elif test -n "$PKG_CONFIG"; then
13075 if test -n "$PKG_CONFIG" && \
13076 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13077 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; then
13081 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13082 else
13083 pkg_failed=yes
13084 fi
13085 else
13086 pkg_failed=untried
13087 fi
13088 if test -n "$CONFDB_LIBS"; then
13089 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13090 elif test -n "$PKG_CONFIG"; then
13091 if test -n "$PKG_CONFIG" && \
13092 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13093 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13094 ac_status=$?
13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; then
13097 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13098 else
13099 pkg_failed=yes
13100 fi
13101 else
13102 pkg_failed=untried
13103 fi
13104
13105
13106
13107 if test $pkg_failed = yes; then
13108
13109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13110 _pkg_short_errors_supported=yes
13111 else
13112 _pkg_short_errors_supported=no
13113 fi
13114 if test $_pkg_short_errors_supported = yes; then
13115 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13116 else
13117 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13118 fi
13119 # Put the nasty error message in config.log where it belongs
13120 echo "$CONFDB_PKG_ERRORS" >&5
13121
13122 { $as_echo "$as_me:$LINENO: result: no" >&5
13123 $as_echo "no" >&6; }
13124 HAVE_CONFDB=no
13125 elif test $pkg_failed = untried; then
13126 HAVE_CONFDB=no
13127 else
13128 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13129 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13130 { $as_echo "$as_me:$LINENO: result: yes" >&5
13131 $as_echo "yes" >&6; }
13132 HAVE_CONFDB=yes
13133 fi
13134
13135
13136 for ac_header in corosync/confdb.h
13137 do
13138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13141 $as_echo_n "checking for $ac_header... " >&6; }
13142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13143 $as_echo_n "(cached) " >&6
13144 fi
13145 ac_res=`eval 'as_val=${'$as_ac_Header'}
13146 $as_echo "$as_val"'`
13147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13148 $as_echo "$ac_res" >&6; }
13149 else
13150 # Is the header compilable?
13151 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13152 $as_echo_n "checking $ac_header usability... " >&6; }
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13160 #include <$ac_header>
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_compile") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
13180 ac_header_compiler=yes
13181 else
13182 $as_echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 ac_header_compiler=no
13186 fi
13187
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13190 $as_echo "$ac_header_compiler" >&6; }
13191
13192 # Is the header present?
13193 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13194 $as_echo_n "checking $ac_header presence... " >&6; }
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 #include <$ac_header>
13202 _ACEOF
13203 if { (ac_try="$ac_cpp conftest.$ac_ext"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207 esac
13208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209 $as_echo "$ac_try_echo") >&5
13210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null && {
13217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 }; then
13220 ac_header_preproc=yes
13221 else
13222 $as_echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_header_preproc=no
13226 fi
13227
13228 rm -f conftest.err conftest.$ac_ext
13229 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13230 $as_echo "$ac_header_preproc" >&6; }
13231
13232 # So? What about this header?
13233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13234 yes:no: )
13235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13236 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13239 ac_header_preproc=yes
13240 ;;
13241 no:yes:* )
13242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13243 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13245 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13247 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13249 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13251 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13253 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13254
13255 ;;
13256 esac
13257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13258 $as_echo_n "checking for $ac_header... " >&6; }
13259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13260 $as_echo_n "(cached) " >&6
13261 else
13262 eval "$as_ac_Header=\$ac_header_preproc"
13263 fi
13264 ac_res=`eval 'as_val=${'$as_ac_Header'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13267 $as_echo "$ac_res" >&6; }
13268
13269 fi
13270 as_val=`eval 'as_val=${'$as_ac_Header'}
13271 $as_echo "$as_val"'`
13272 if test "x$as_val" = x""yes; then
13273 cat >>confdefs.h <<_ACEOF
13274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13275 _ACEOF
13276 HAVE_CONFDB_H=yes
13277 else
13278 HAVE_CONFDB_H=no
13279 fi
13280
13281 done
13282
13283
13284 if test x$HAVE_CONFDB != xyes && \
13285 test x$HAVE_CONFDB_H = xyes; then
13286 check_lib_no_libs confdb confdb_initialize
13287 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13288 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
13289 CONFDB_LIBS="-lconfdb"
13290 HAVE_CONFDB=yes
13291 fi
13292
13293 if test x$BUILDCOROSYNC = xyes && \
13294 test x$HAVE_CONFDB != xyes &&
13295 test x$CLVMD != xall; then
13296 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13297 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13298 { (exit 1); exit 1; }; }
13299 fi
13300 fi
13301
13302 if test x$CHECKCPG = xyes; then
13303
13304 pkg_failed=no
13305 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
13306 $as_echo_n "checking for CPG... " >&6; }
13307
13308 if test -n "$CPG_CFLAGS"; then
13309 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13310 elif test -n "$PKG_CONFIG"; then
13311 if test -n "$PKG_CONFIG" && \
13312 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13313 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; then
13317 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13318 else
13319 pkg_failed=yes
13320 fi
13321 else
13322 pkg_failed=untried
13323 fi
13324 if test -n "$CPG_LIBS"; then
13325 pkg_cv_CPG_LIBS="$CPG_LIBS"
13326 elif test -n "$PKG_CONFIG"; then
13327 if test -n "$PKG_CONFIG" && \
13328 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13329 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13330 ac_status=$?
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; then
13333 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13334 else
13335 pkg_failed=yes
13336 fi
13337 else
13338 pkg_failed=untried
13339 fi
13340
13341
13342
13343 if test $pkg_failed = yes; then
13344
13345 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13346 _pkg_short_errors_supported=yes
13347 else
13348 _pkg_short_errors_supported=no
13349 fi
13350 if test $_pkg_short_errors_supported = yes; then
13351 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13352 else
13353 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13354 fi
13355 # Put the nasty error message in config.log where it belongs
13356 echo "$CPG_PKG_ERRORS" >&5
13357
13358 { $as_echo "$as_me:$LINENO: result: no" >&5
13359 $as_echo "no" >&6; }
13360 $bailout
13361 elif test $pkg_failed = untried; then
13362 $bailout
13363 else
13364 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13365 CPG_LIBS=$pkg_cv_CPG_LIBS
13366 { $as_echo "$as_me:$LINENO: result: yes" >&5
13367 $as_echo "yes" >&6; }
13368 HAVE_CPG=yes
13369 fi
13370 fi
13371
13372 if test x$CHECKDLM = xyes; then
13373
13374 pkg_failed=no
13375 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
13376 $as_echo_n "checking for DLM... " >&6; }
13377
13378 if test -n "$DLM_CFLAGS"; then
13379 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13380 elif test -n "$PKG_CONFIG"; then
13381 if test -n "$PKG_CONFIG" && \
13382 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13383 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; then
13387 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13388 else
13389 pkg_failed=yes
13390 fi
13391 else
13392 pkg_failed=untried
13393 fi
13394 if test -n "$DLM_LIBS"; then
13395 pkg_cv_DLM_LIBS="$DLM_LIBS"
13396 elif test -n "$PKG_CONFIG"; then
13397 if test -n "$PKG_CONFIG" && \
13398 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13399 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13400 ac_status=$?
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; then
13403 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13404 else
13405 pkg_failed=yes
13406 fi
13407 else
13408 pkg_failed=untried
13409 fi
13410
13411
13412
13413 if test $pkg_failed = yes; then
13414
13415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13416 _pkg_short_errors_supported=yes
13417 else
13418 _pkg_short_errors_supported=no
13419 fi
13420 if test $_pkg_short_errors_supported = yes; then
13421 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13422 else
13423 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13424 fi
13425 # Put the nasty error message in config.log where it belongs
13426 echo "$DLM_PKG_ERRORS" >&5
13427
13428 { $as_echo "$as_me:$LINENO: result: no" >&5
13429 $as_echo "no" >&6; }
13430 NOTFOUND=0
13431
13432 for ac_header in libdlm.h
13433 do
13434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 $as_echo_n "checking for $ac_header... " >&6; }
13438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13439 $as_echo_n "(cached) " >&6
13440 fi
13441 ac_res=`eval 'as_val=${'$as_ac_Header'}
13442 $as_echo "$as_val"'`
13443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13444 $as_echo "$ac_res" >&6; }
13445 else
13446 # Is the header compilable?
13447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13448 $as_echo_n "checking $ac_header usability... " >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 $ac_includes_default
13456 #include <$ac_header>
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463 esac
13464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13465 $as_echo "$ac_try_echo") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest.$ac_objext; then
13476 ac_header_compiler=yes
13477 else
13478 $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_compiler=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 $as_echo "$ac_header_compiler" >&6; }
13487
13488 # Is the header present?
13489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490 $as_echo_n "checking $ac_header presence... " >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <$ac_header>
13498 _ACEOF
13499 if { (ac_try="$ac_cpp conftest.$ac_ext"
13500 case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503 esac
13504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13505 $as_echo "$ac_try_echo") >&5
13506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev/null && {
13513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13514 test ! -s conftest.err
13515 }; then
13516 ac_header_preproc=yes
13517 else
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ac_header_preproc=no
13522 fi
13523
13524 rm -f conftest.err conftest.$ac_ext
13525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 $as_echo "$ac_header_preproc" >&6; }
13527
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530 yes:no: )
13531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
13536 ;;
13537 no:yes:* )
13538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13550
13551 ;;
13552 esac
13553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13554 $as_echo_n "checking for $ac_header... " >&6; }
13555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13556 $as_echo_n "(cached) " >&6
13557 else
13558 eval "$as_ac_Header=\$ac_header_preproc"
13559 fi
13560 ac_res=`eval 'as_val=${'$as_ac_Header'}
13561 $as_echo "$as_val"'`
13562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13563 $as_echo "$ac_res" >&6; }
13564
13565 fi
13566 as_val=`eval 'as_val=${'$as_ac_Header'}
13567 $as_echo "$as_val"'`
13568 if test "x$as_val" = x""yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13571 _ACEOF
13572
13573 else
13574 $bailout
13575 fi
13576
13577 done
13578
13579 check_lib_no_libs dlm dlm_lock -lpthread
13580 if test $NOTFOUND = 0; then
13581 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13582 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13583 DLM_LIBS="-ldlm -lpthread"
13584 HAVE_DLM=yes
13585 fi
13586 elif test $pkg_failed = untried; then
13587 NOTFOUND=0
13588
13589 for ac_header in libdlm.h
13590 do
13591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13594 $as_echo_n "checking for $ac_header... " >&6; }
13595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13596 $as_echo_n "(cached) " >&6
13597 fi
13598 ac_res=`eval 'as_val=${'$as_ac_Header'}
13599 $as_echo "$as_val"'`
13600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13601 $as_echo "$ac_res" >&6; }
13602 else
13603 # Is the header compilable?
13604 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13605 $as_echo_n "checking $ac_header usability... " >&6; }
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 $ac_includes_default
13613 #include <$ac_header>
13614 _ACEOF
13615 rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622 $as_echo "$ac_try_echo") >&5
13623 (eval "$ac_compile") 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest.$ac_objext; then
13633 ac_header_compiler=yes
13634 else
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_header_compiler=no
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13643 $as_echo "$ac_header_compiler" >&6; }
13644
13645 # Is the header present?
13646 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13647 $as_echo_n "checking $ac_header presence... " >&6; }
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 #include <$ac_header>
13655 _ACEOF
13656 if { (ac_try="$ac_cpp conftest.$ac_ext"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660 esac
13661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662 $as_echo "$ac_try_echo") >&5
13663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } >/dev/null && {
13670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 }; then
13673 ac_header_preproc=yes
13674 else
13675 $as_echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_header_preproc=no
13679 fi
13680
13681 rm -f conftest.err conftest.$ac_ext
13682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13683 $as_echo "$ac_header_preproc" >&6; }
13684
13685 # So? What about this header?
13686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 yes:no: )
13688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13689 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13692 ac_header_preproc=yes
13693 ;;
13694 no:yes:* )
13695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13696 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13698 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13700 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13702 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13706 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13707
13708 ;;
13709 esac
13710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13711 $as_echo_n "checking for $ac_header... " >&6; }
13712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713 $as_echo_n "(cached) " >&6
13714 else
13715 eval "$as_ac_Header=\$ac_header_preproc"
13716 fi
13717 ac_res=`eval 'as_val=${'$as_ac_Header'}
13718 $as_echo "$as_val"'`
13719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720 $as_echo "$ac_res" >&6; }
13721
13722 fi
13723 as_val=`eval 'as_val=${'$as_ac_Header'}
13724 $as_echo "$as_val"'`
13725 if test "x$as_val" = x""yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13728 _ACEOF
13729
13730 else
13731 $bailout
13732 fi
13733
13734 done
13735
13736 check_lib_no_libs dlm dlm_lock -lpthread
13737 if test $NOTFOUND = 0; then
13738 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13739 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13740 DLM_LIBS="-ldlm -lpthread"
13741 HAVE_DLM=yes
13742 fi
13743 else
13744 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13745 DLM_LIBS=$pkg_cv_DLM_LIBS
13746 { $as_echo "$as_me:$LINENO: result: yes" >&5
13747 $as_echo "yes" >&6; }
13748 HAVE_DLM=yes
13749 fi
13750 fi
13751
13752 if test x$CLVMD = xall; then
13753 CLVMD=none
13754 CLVMD_CMANAGERS=""
13755 CLVMD_NEEDS_QDISKD=no
13756 if test x$HAVE_CCS = xyes && \
13757 test x$HAVE_GULM = xyes; then
13758 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13759 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
13760 CLVMD="$CLVMD,gulm"
13761 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
13762 CLVMD_NEEDS_QDISKD=yes
13763 fi
13764 if test x$HAVE_CMAN = xyes && \
13765 test x$HAVE_DLM = xyes; then
13766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13767 $as_echo "Enabling clvmd cman cluster manager" >&6; }
13768 CLVMD="$CLVMD,cman"
13769 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
13770 CLVMD_NEEDS_QDISKD=yes
13771 fi
13772 if test x$HAVE_COROSYNC = xyes && \
13773 test x$HAVE_QUORUM = xyes && \
13774 test x$HAVE_CPG = xyes && \
13775 test x$HAVE_DLM = xyes && \
13776 test x$HAVE_CONFDB = xyes; then
13777 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13778 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
13779 CLVMD="$CLVMD,corosync"
13780 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
13781 fi
13782 if test x$HAVE_COROSYNC = xyes && \
13783 test x$HAVE_CPG = xyes && \
13784 test x$HAVE_SALCK = xyes; then
13785 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13786 $as_echo "Enabling clvmd openais cluster manager" >&6; }
13787 CLVMD="$CLVMD,openais"
13788 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
13789 fi
13790 if test x$CLVMD_NEEDS_QDISKD != xno; then
13791 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
13792 fi
13793 if test x$CLVMD = xnone; then
13794 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13795 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
13796 fi
13797 fi
13798
13799 ################################################################################
13800 if test "x$CLVMD" != xnone; then
13801
13802 # Check whether --with-clvmd-pidfile was given.
13803 if test "${with_clvmd_pidfile+set}" = set; then
13804 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13805 else
13806 CLVMD_PIDFILE="/var/run/clvmd.pid"
13807 fi
13808
13809
13810 cat >>confdefs.h <<_ACEOF
13811 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13812 _ACEOF
13813
13814 fi
13815
13816 ################################################################################
13817 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13818 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13819 # Check whether --enable-cmirrord was given.
13820 if test "${enable_cmirrord+set}" = set; then
13821 enableval=$enable_cmirrord; CMIRRORD=$enableval
13822 else
13823 CMIRRORD=no
13824 fi
13825
13826 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13827 $as_echo "$CMIRRORD" >&6; }
13828
13829 BUILD_CMIRRORD=$CMIRRORD
13830
13831 ################################################################################
13832 if test "x$BUILD_CMIRRORD" = xyes; then
13833
13834 # Check whether --with-cmirrord-pidfile was given.
13835 if test "${with_cmirrord_pidfile+set}" = set; then
13836 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
13837 else
13838 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
13839 fi
13840
13841
13842 cat >>confdefs.h <<_ACEOF
13843 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13844 _ACEOF
13845
13846 fi
13847
13848 ################################################################################
13849 if [ "x$BUILD_CMIRRORD" = xyes ]; then
13850 if test x$PKGCONFIG_INIT != x1; then
13851 pkg_config_init
13852 fi
13853
13854 pkg_failed=no
13855 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13856 $as_echo_n "checking for SACKPT... " >&6; }
13857
13858 if test -n "$SACKPT_CFLAGS"; then
13859 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13860 elif test -n "$PKG_CONFIG"; then
13861 if test -n "$PKG_CONFIG" && \
13862 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13863 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13864 ac_status=$?
13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; then
13867 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13868 else
13869 pkg_failed=yes
13870 fi
13871 else
13872 pkg_failed=untried
13873 fi
13874 if test -n "$SACKPT_LIBS"; then
13875 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13876 elif test -n "$PKG_CONFIG"; then
13877 if test -n "$PKG_CONFIG" && \
13878 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13879 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; then
13883 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13884 else
13885 pkg_failed=yes
13886 fi
13887 else
13888 pkg_failed=untried
13889 fi
13890
13891
13892
13893 if test $pkg_failed = yes; then
13894
13895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13896 _pkg_short_errors_supported=yes
13897 else
13898 _pkg_short_errors_supported=no
13899 fi
13900 if test $_pkg_short_errors_supported = yes; then
13901 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13902 else
13903 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13904 fi
13905 # Put the nasty error message in config.log where it belongs
13906 echo "$SACKPT_PKG_ERRORS" >&5
13907
13908 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13909
13910 $SACKPT_PKG_ERRORS
13911
13912 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13913 installed software in a non-standard prefix.
13914
13915 Alternatively, you may set the environment variables SACKPT_CFLAGS
13916 and SACKPT_LIBS to avoid the need to call pkg-config.
13917 See the pkg-config man page for more details.
13918 " >&5
13919 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13920
13921 $SACKPT_PKG_ERRORS
13922
13923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13924 installed software in a non-standard prefix.
13925
13926 Alternatively, you may set the environment variables SACKPT_CFLAGS
13927 and SACKPT_LIBS to avoid the need to call pkg-config.
13928 See the pkg-config man page for more details.
13929 " >&2;}
13930 { (exit 1); exit 1; }; }
13931 elif test $pkg_failed = untried; then
13932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13934 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13935 is in your PATH or set the PKG_CONFIG environment variable to the full
13936 path to pkg-config.
13937
13938 Alternatively, you may set the environment variables SACKPT_CFLAGS
13939 and SACKPT_LIBS to avoid the need to call pkg-config.
13940 See the pkg-config man page for more details.
13941
13942 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13943 See \`config.log' for more details." >&5
13944 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13945 is in your PATH or set the PKG_CONFIG environment variable to the full
13946 path to pkg-config.
13947
13948 Alternatively, you may set the environment variables SACKPT_CFLAGS
13949 and SACKPT_LIBS to avoid the need to call pkg-config.
13950 See the pkg-config man page for more details.
13951
13952 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13953 See \`config.log' for more details." >&2;}
13954 { (exit 1); exit 1; }; }; }
13955 else
13956 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
13957 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
13958 { $as_echo "$as_me:$LINENO: result: yes" >&5
13959 $as_echo "yes" >&6; }
13960 :
13961 fi
13962 if test x$HAVE_CPG != xyes; then
13963
13964 pkg_failed=no
13965 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
13966 $as_echo_n "checking for CPG... " >&6; }
13967
13968 if test -n "$CPG_CFLAGS"; then
13969 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13970 elif test -n "$PKG_CONFIG"; then
13971 if test -n "$PKG_CONFIG" && \
13972 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13973 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13974 ac_status=$?
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; then
13977 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13978 else
13979 pkg_failed=yes
13980 fi
13981 else
13982 pkg_failed=untried
13983 fi
13984 if test -n "$CPG_LIBS"; then
13985 pkg_cv_CPG_LIBS="$CPG_LIBS"
13986 elif test -n "$PKG_CONFIG"; then
13987 if test -n "$PKG_CONFIG" && \
13988 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13989 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13990 ac_status=$?
13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; then
13993 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13994 else
13995 pkg_failed=yes
13996 fi
13997 else
13998 pkg_failed=untried
13999 fi
14000
14001
14002
14003 if test $pkg_failed = yes; then
14004
14005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14006 _pkg_short_errors_supported=yes
14007 else
14008 _pkg_short_errors_supported=no
14009 fi
14010 if test $_pkg_short_errors_supported = yes; then
14011 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14012 else
14013 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14014 fi
14015 # Put the nasty error message in config.log where it belongs
14016 echo "$CPG_PKG_ERRORS" >&5
14017
14018 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14019
14020 $CPG_PKG_ERRORS
14021
14022 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14023 installed software in a non-standard prefix.
14024
14025 Alternatively, you may set the environment variables CPG_CFLAGS
14026 and CPG_LIBS to avoid the need to call pkg-config.
14027 See the pkg-config man page for more details.
14028 " >&5
14029 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
14030
14031 $CPG_PKG_ERRORS
14032
14033 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14034 installed software in a non-standard prefix.
14035
14036 Alternatively, you may set the environment variables CPG_CFLAGS
14037 and CPG_LIBS to avoid the need to call pkg-config.
14038 See the pkg-config man page for more details.
14039 " >&2;}
14040 { (exit 1); exit 1; }; }
14041 elif test $pkg_failed = untried; then
14042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14044 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14045 is in your PATH or set the PKG_CONFIG environment variable to the full
14046 path to pkg-config.
14047
14048 Alternatively, you may set the environment variables CPG_CFLAGS
14049 and CPG_LIBS to avoid the need to call pkg-config.
14050 See the pkg-config man page for more details.
14051
14052 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14053 See \`config.log' for more details." >&5
14054 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14055 is in your PATH or set the PKG_CONFIG environment variable to the full
14056 path to pkg-config.
14057
14058 Alternatively, you may set the environment variables CPG_CFLAGS
14059 and CPG_LIBS to avoid the need to call pkg-config.
14060 See the pkg-config man page for more details.
14061
14062 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14063 See \`config.log' for more details." >&2;}
14064 { (exit 1); exit 1; }; }; }
14065 else
14066 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14067 CPG_LIBS=$pkg_cv_CPG_LIBS
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5
14069 $as_echo "yes" >&6; }
14070 :
14071 fi
14072 fi
14073 fi
14074
14075 ################################################################################
14076 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14077 $as_echo_n "checking whether to enable debugging... " >&6; }
14078 # Check whether --enable-debug was given.
14079 if test "${enable_debug+set}" = set; then
14080 enableval=$enable_debug; DEBUG=$enableval
14081 else
14082 DEBUG=no
14083 fi
14084
14085 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14086 $as_echo "$DEBUG" >&6; }
14087
14088 if test x$DEBUG = xyes; then
14089 COPTIMISE_FLAG=
14090 else
14091 CSCOPE_CMD=
14092 fi
14093
14094 ################################################################################
14095 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14096 $as_echo_n "checking for C optimisation flag... " >&6; }
14097
14098 # Check whether --with-optimisation was given.
14099 if test "${with_optimisation+set}" = set; then
14100 withval=$with_optimisation; COPTIMISE_FLAG=$withval
14101 fi
14102
14103 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14104 $as_echo "$COPTIMISE_FLAG" >&6; }
14105
14106 ################################################################################
14107 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14108 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14109 # Check whether --enable-profiling was given.
14110 if test "${enable_profiling+set}" = set; then
14111 enableval=$enable_profiling; PROFILING=$enableval
14112 else
14113 PROFILING=no
14114 fi
14115
14116 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14117 $as_echo "$PROFILING" >&6; }
14118
14119 if test "x$PROFILING" = xyes; then
14120 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14121 # Extract the first word of "lcov", so it can be a program name with args.
14122 set dummy lcov; ac_word=$2
14123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if test "${ac_cv_path_LCOV+set}" = set; then
14126 $as_echo_n "(cached) " >&6
14127 else
14128 case $LCOV in
14129 [\\/]* | ?:[\\/]*)
14130 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14131 ;;
14132 *)
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14135 do
14136 IFS=$as_save_IFS
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
14141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14142 break 2
14143 fi
14144 done
14145 done
14146 IFS=$as_save_IFS
14147
14148 ;;
14149 esac
14150 fi
14151 LCOV=$ac_cv_path_LCOV
14152 if test -n "$LCOV"; then
14153 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14154 $as_echo "$LCOV" >&6; }
14155 else
14156 { $as_echo "$as_me:$LINENO: result: no" >&5
14157 $as_echo "no" >&6; }
14158 fi
14159
14160
14161 # Extract the first word of "genhtml", so it can be a program name with args.
14162 set dummy genhtml; ac_word=$2
14163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if test "${ac_cv_path_GENHTML+set}" = set; then
14166 $as_echo_n "(cached) " >&6
14167 else
14168 case $GENHTML in
14169 [\\/]* | ?:[\\/]*)
14170 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14171 ;;
14172 *)
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14175 do
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14180 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
14181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 break 2
14183 fi
14184 done
14185 done
14186 IFS=$as_save_IFS
14187
14188 ;;
14189 esac
14190 fi
14191 GENHTML=$ac_cv_path_GENHTML
14192 if test -n "$GENHTML"; then
14193 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14194 $as_echo "$GENHTML" >&6; }
14195 else
14196 { $as_echo "$as_me:$LINENO: result: no" >&5
14197 $as_echo "no" >&6; }
14198 fi
14199
14200
14201 if test -z "$LCOV" -o -z "$GENHTML"; then
14202 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14203 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
14204 { (exit 1); exit 1; }; }
14205 fi
14206 # Extract the first word of "genpng", so it can be a program name with args.
14207 set dummy genpng; ac_word=$2
14208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if test "${ac_cv_path_GENPNG+set}" = set; then
14211 $as_echo_n "(cached) " >&6
14212 else
14213 case $GENPNG in
14214 [\\/]* | ?:[\\/]*)
14215 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14216 ;;
14217 *)
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14220 do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14228 fi
14229 done
14230 done
14231 IFS=$as_save_IFS
14232
14233 ;;
14234 esac
14235 fi
14236 GENPNG=$ac_cv_path_GENPNG
14237 if test -n "$GENPNG"; then
14238 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14239 $as_echo "$GENPNG" >&6; }
14240 else
14241 { $as_echo "$as_me:$LINENO: result: no" >&5
14242 $as_echo "no" >&6; }
14243 fi
14244
14245
14246 if test -n "$GENPNG"; then
14247 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14248 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14249 if $GENPNG --help > /dev/null 2>&1 ; then
14250 { $as_echo "$as_me:$LINENO: result: ok" >&5
14251 $as_echo "ok" >&6; }
14252 GENHTML="$GENHTML --frames"
14253 else
14254 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14255 $as_echo "not supported" >&6; }
14256 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14257 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14258 GENPNG=
14259 fi
14260 fi
14261 fi
14262
14263 ################################################################################
14264 { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14265 $as_echo_n "checking whether to enable unit testing... " >&6; }
14266 # Check whether --enable-testing was given.
14267 if test "${enable_testing+set}" = set; then
14268 enableval=$enable_testing; TESTING=$enableval
14269 else
14270 TESTING=no
14271 fi
14272
14273 { $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14274 $as_echo "$TESTING" >&6; }
14275
14276 if test "$TESTING" = yes; then
14277 # Extract the first word of "ruby1.9", so it can be a program name with args.
14278 set dummy ruby1.9; ac_word=$2
14279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if test "${ac_cv_path_RUBY19+set}" = set; then
14282 $as_echo_n "(cached) " >&6
14283 else
14284 case $RUBY19 in
14285 [\\/]* | ?:[\\/]*)
14286 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14287 ;;
14288 *)
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 ;;
14305 esac
14306 fi
14307 RUBY19=$ac_cv_path_RUBY19
14308 if test -n "$RUBY19"; then
14309 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14310 $as_echo "$RUBY19" >&6; }
14311 else
14312 { $as_echo "$as_me:$LINENO: result: no" >&5
14313 $as_echo "no" >&6; }
14314 fi
14315
14316
14317 # Extract the first word of "valgrind", so it can be a program name with args.
14318 set dummy valgrind; ac_word=$2
14319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if test "${ac_cv_path_VALGRIND+set}" = set; then
14322 $as_echo_n "(cached) " >&6
14323 else
14324 case $VALGRIND in
14325 [\\/]* | ?:[\\/]*)
14326 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14327 ;;
14328 *)
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14331 do
14332 IFS=$as_save_IFS
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14336 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 break 2
14339 fi
14340 done
14341 done
14342 IFS=$as_save_IFS
14343
14344 ;;
14345 esac
14346 fi
14347 VALGRIND=$ac_cv_path_VALGRIND
14348 if test -n "$VALGRIND"; then
14349 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14350 $as_echo "$VALGRIND" >&6; }
14351 else
14352 { $as_echo "$as_me:$LINENO: result: no" >&5
14353 $as_echo "no" >&6; }
14354 fi
14355
14356
14357 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14358 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14359 $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14360 { (exit 1); exit 1; }; }
14361 fi
14362 fi
14363
14364 ################################################################################
14365 { $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14366 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14367 # Check whether --enable-valgrind_pool was given.
14368 if test "${enable_valgrind_pool+set}" = set; then
14369 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14370 else
14371 VALGRIND_POOL=no
14372 fi
14373
14374 { $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14375 $as_echo "$VALGRIND_POOL" >&6; }
14376
14377 if test "$VALGRIND_POOL" = yes; then
14378
14379 for ac_header in valgrind/memcheck.h
14380 do
14381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14384 $as_echo_n "checking for $ac_header... " >&6; }
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386 $as_echo_n "(cached) " >&6
14387 fi
14388 ac_res=`eval 'as_val=${'$as_ac_Header'}
14389 $as_echo "$as_val"'`
14390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14391 $as_echo "$ac_res" >&6; }
14392 else
14393 # Is the header compilable?
14394 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14395 $as_echo_n "checking $ac_header usability... " >&6; }
14396 cat >conftest.$ac_ext <<_ACEOF
14397 /* confdefs.h. */
14398 _ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 $ac_includes_default
14403 #include <$ac_header>
14404 _ACEOF
14405 rm -f conftest.$ac_objext
14406 if { (ac_try="$ac_compile"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14412 $as_echo "$ac_try_echo") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.$ac_objext; then
14423 ac_header_compiler=yes
14424 else
14425 $as_echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_header_compiler=no
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433 $as_echo "$ac_header_compiler" >&6; }
14434
14435 # Is the header present?
14436 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437 $as_echo_n "checking $ac_header presence... " >&6; }
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h. */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 #include <$ac_header>
14445 _ACEOF
14446 if { (ac_try="$ac_cpp conftest.$ac_ext"
14447 case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450 esac
14451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14452 $as_echo "$ac_try_echo") >&5
14453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } >/dev/null && {
14460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14462 }; then
14463 ac_header_preproc=yes
14464 else
14465 $as_echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_preproc=no
14469 fi
14470
14471 rm -f conftest.err conftest.$ac_ext
14472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 $as_echo "$ac_header_preproc" >&6; }
14474
14475 # So? What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477 yes:no: )
14478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14483 ;;
14484 no:yes:* )
14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14488 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14492 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14497
14498 ;;
14499 esac
14500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14501 $as_echo_n "checking for $ac_header... " >&6; }
14502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14503 $as_echo_n "(cached) " >&6
14504 else
14505 eval "$as_ac_Header=\$ac_header_preproc"
14506 fi
14507 ac_res=`eval 'as_val=${'$as_ac_Header'}
14508 $as_echo "$as_val"'`
14509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14510 $as_echo "$ac_res" >&6; }
14511
14512 fi
14513 as_val=`eval 'as_val=${'$as_ac_Header'}
14514 $as_echo "$as_val"'`
14515 if test "x$as_val" = x""yes; then
14516 cat >>confdefs.h <<_ACEOF
14517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518 _ACEOF
14519
14520 else
14521 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14522 $as_echo "$as_me: error: bailing out" >&2;}
14523 { (exit 1); exit 1; }; }
14524 fi
14525
14526 done
14527
14528
14529 cat >>confdefs.h <<\_ACEOF
14530 #define VALGRIND_POOL 1
14531 _ACEOF
14532
14533 fi
14534
14535 ################################################################################
14536 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14537 $as_echo_n "checking whether to use device-mapper... " >&6; }
14538 # Check whether --enable-devmapper was given.
14539 if test "${enable_devmapper+set}" = set; then
14540 enableval=$enable_devmapper; DEVMAPPER=$enableval
14541 fi
14542
14543 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14544 $as_echo "$DEVMAPPER" >&6; }
14545
14546 if test x$DEVMAPPER = xyes; then
14547
14548 cat >>confdefs.h <<\_ACEOF
14549 #define DEVMAPPER_SUPPORT 1
14550 _ACEOF
14551
14552 fi
14553
14554 ################################################################################
14555 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14556 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14557 # Check whether --enable-udev_sync was given.
14558 if test "${enable_udev_sync+set}" = set; then
14559 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14560 else
14561 UDEV_SYNC=no
14562 fi
14563
14564 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14565 $as_echo "$UDEV_SYNC" >&6; }
14566
14567 if test x$UDEV_SYNC = xyes; then
14568 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14569 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14570 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14571 $as_echo_n "(cached) " >&6
14572 else
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-ludev $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h. */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585 #ifdef __cplusplus
14586 extern "C"
14587 #endif
14588 char udev_queue_get_udev_is_active ();
14589 int
14590 main ()
14591 {
14592 return udev_queue_get_udev_is_active ();
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14604 $as_echo "$ac_try_echo") >&5
14605 (eval "$ac_link") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest$ac_exeext && {
14615 test "$cross_compiling" = yes ||
14616 $as_test_x conftest$ac_exeext
14617 }; then
14618 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14619 else
14620 $as_echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14624 fi
14625
14626 rm -rf conftest.dSYM
14627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628 conftest$ac_exeext conftest.$ac_ext
14629 LIBS=$ac_check_lib_save_LIBS
14630 fi
14631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14632 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14633 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
14634 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
14635 else
14636 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14637 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14638 { (exit 1); exit 1; }; }
14639 fi
14640
14641
14642 cat >>confdefs.h <<\_ACEOF
14643 #define UDEV_SYNC_SUPPORT 1
14644 _ACEOF
14645
14646 fi
14647
14648 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14649 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14650 # Check whether --enable-udev_rules was given.
14651 if test "${enable_udev_rules+set}" = set; then
14652 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14653 else
14654 UDEV_RULES=$UDEV_SYNC
14655 fi
14656
14657 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14658 $as_echo "$UDEV_RULES" >&6; }
14659
14660 ################################################################################
14661 # Check whether --enable-compat was given.
14662 if test "${enable_compat+set}" = set; then
14663 enableval=$enable_compat; DM_COMPAT=$enableval
14664 else
14665 DM_COMPAT=no
14666 fi
14667
14668
14669 ################################################################################
14670 # Check whether --enable-units-compat was given.
14671 if test "${enable_units_compat+set}" = set; then
14672 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14673 else
14674 UNITS_COMPAT=no
14675 fi
14676
14677
14678 if test x$UNITS_COMPAT = xyes; then
14679
14680 cat >>confdefs.h <<\_ACEOF
14681 #define DEFAULT_SI_UNIT_CONSISTENCY 0
14682 _ACEOF
14683
14684 fi
14685
14686 ################################################################################
14687 # Check whether --enable-ioctl was given.
14688 if test "${enable_ioctl+set}" = set; then
14689 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14690 fi
14691
14692
14693 ################################################################################
14694 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14695 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
14696 # Check whether --enable-o_direct was given.
14697 if test "${enable_o_direct+set}" = set; then
14698 enableval=$enable_o_direct; ODIRECT=$enableval
14699 fi
14700
14701 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14702 $as_echo "$ODIRECT" >&6; }
14703
14704 if test x$ODIRECT = xyes; then
14705
14706 cat >>confdefs.h <<\_ACEOF
14707 #define O_DIRECT_SUPPORT 1
14708 _ACEOF
14709
14710 fi
14711
14712 ################################################################################
14713 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14714 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14715 # Check whether --enable-applib was given.
14716 if test "${enable_applib+set}" = set; then
14717 enableval=$enable_applib; APPLIB=$enableval
14718 else
14719 APPLIB=no
14720 fi
14721
14722 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14723 $as_echo "$APPLIB" >&6; }
14724
14725 test x$APPLIB = xyes \
14726 && LVM2APP_LIB=-llvm2app \
14727 || LVM2APP_LIB=
14728
14729 ################################################################################
14730 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14731 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
14732 # Check whether --enable-cmdlib was given.
14733 if test "${enable_cmdlib+set}" = set; then
14734 enableval=$enable_cmdlib; CMDLIB=$enableval
14735 else
14736 CMDLIB=no
14737 fi
14738
14739 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14740 $as_echo "$CMDLIB" >&6; }
14741
14742 test x$CMDLIB = xyes \
14743 && LVM2CMD_LIB=-llvm2cmd \
14744 || LVM2CMD_LIB=
14745
14746 ################################################################################
14747 # Check whether --enable-pkgconfig was given.
14748 if test "${enable_pkgconfig+set}" = set; then
14749 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14750 else
14751 PKGCONFIG=no
14752 fi
14753
14754
14755 ################################################################################
14756 # Check whether --enable-write_install was given.
14757 if test "${enable_write_install+set}" = set; then
14758 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14759 else
14760 WRITE_INSTALL=no
14761 fi
14762
14763
14764 ################################################################################
14765 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14766 $as_echo_n "checking whether to install fsadm... " >&6; }
14767 # Check whether --enable-fsadm was given.
14768 if test "${enable_fsadm+set}" = set; then
14769 enableval=$enable_fsadm; FSADM=$enableval
14770 fi
14771
14772 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14773 $as_echo "$FSADM" >&6; }
14774
14775 ################################################################################
14776 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14777 $as_echo_n "checking whether to use dmeventd... " >&6; }
14778 # Check whether --enable-dmeventd was given.
14779 if test "${enable_dmeventd+set}" = set; then
14780 enableval=$enable_dmeventd; DMEVENTD=$enableval
14781 fi
14782
14783 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14784 $as_echo "$DMEVENTD" >&6; }
14785
14786 BUILD_DMEVENTD=$DMEVENTD
14787
14788 if test x$DMEVENTD = xyes; then
14789 if test x$MIRRORS != xinternal; then
14790 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
14791 " >&5
14792 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
14793 " >&2;}
14794 { (exit 1); exit 1; }; }
14795 fi
14796 if test x$CMDLIB = xno; then
14797 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14798 " >&5
14799 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14800 " >&2;}
14801 { (exit 1); exit 1; }; }
14802 fi
14803 fi
14804
14805 if test x$DMEVENTD = xyes; then
14806
14807 cat >>confdefs.h <<\_ACEOF
14808 #define DMEVENTD 1
14809 _ACEOF
14810
14811 fi
14812
14813 ################################################################################
14814
14815 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14816 $as_echo_n "checking for getline in -lc... " >&6; }
14817 if test "${ac_cv_lib_c_getline+set}" = set; then
14818 $as_echo_n "(cached) " >&6
14819 else
14820 ac_check_lib_save_LIBS=$LIBS
14821 LIBS="-lc $LIBS"
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828
14829 /* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14832 #ifdef __cplusplus
14833 extern "C"
14834 #endif
14835 char getline ();
14836 int
14837 main ()
14838 {
14839 return getline ();
14840 ;
14841 return 0;
14842 }
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14851 $as_echo "$ac_try_echo") >&5
14852 (eval "$ac_link") 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } && {
14859 test -z "$ac_c_werror_flag" ||
14860 test ! -s conftest.err
14861 } && test -s conftest$ac_exeext && {
14862 test "$cross_compiling" = yes ||
14863 $as_test_x conftest$ac_exeext
14864 }; then
14865 ac_cv_lib_c_getline=yes
14866 else
14867 $as_echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_cv_lib_c_getline=no
14871 fi
14872
14873 rm -rf conftest.dSYM
14874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14877 fi
14878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14879 $as_echo "$ac_cv_lib_c_getline" >&6; }
14880 if test "x$ac_cv_lib_c_getline" = x""yes; then
14881
14882 cat >>confdefs.h <<\_ACEOF
14883 #define HAVE_GETLINE 1
14884 _ACEOF
14885
14886 fi
14887
14888
14889 ################################################################################
14890
14891 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14892 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
14893 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
14894 $as_echo_n "(cached) " >&6
14895 else
14896 ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-lc $LIBS"
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
14905 /* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14908 #ifdef __cplusplus
14909 extern "C"
14910 #endif
14911 char canonicalize_file_name ();
14912 int
14913 main ()
14914 {
14915 return canonicalize_file_name ();
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (ac_try="$ac_link"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925 esac
14926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14927 $as_echo "$ac_try_echo") >&5
14928 (eval "$ac_link") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest$ac_exeext && {
14938 test "$cross_compiling" = yes ||
14939 $as_test_x conftest$ac_exeext
14940 }; then
14941 ac_cv_lib_c_canonicalize_file_name=yes
14942 else
14943 $as_echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ac_cv_lib_c_canonicalize_file_name=no
14947 fi
14948
14949 rm -rf conftest.dSYM
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LIBS=$ac_check_lib_save_LIBS
14953 fi
14954 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14955 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14956 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
14957
14958 cat >>confdefs.h <<\_ACEOF
14959 #define HAVE_CANONICALIZE_FILE_NAME 1
14960 _ACEOF
14961
14962 fi
14963
14964
14965 ################################################################################
14966 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14967 then exec_prefix="";
14968 fi;
14969
14970 ################################################################################
14971 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14972 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14973 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14974 $as_echo_n "(cached) " >&6
14975 else
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-ldl $LIBS"
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
14988 #ifdef __cplusplus
14989 extern "C"
14990 #endif
14991 char dlopen ();
14992 int
14993 main ()
14994 {
14995 return dlopen ();
14996 ;
14997 return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007 $as_echo "$ac_try_echo") >&5
15008 (eval "$ac_link") 2>conftest.er1
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext && {
15018 test "$cross_compiling" = yes ||
15019 $as_test_x conftest$ac_exeext
15020 }; then
15021 ac_cv_lib_dl_dlopen=yes
15022 else
15023 $as_echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026 ac_cv_lib_dl_dlopen=no
15027 fi
15028
15029 rm -rf conftest.dSYM
15030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15031 conftest$ac_exeext conftest.$ac_ext
15032 LIBS=$ac_check_lib_save_LIBS
15033 fi
15034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15035 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15036 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15037
15038
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_LIBDL 1
15041 _ACEOF
15042
15043 DL_LIBS="-ldl"
15044 HAVE_LIBDL=yes
15045 else
15046
15047 DL_LIBS=
15048 HAVE_LIBDL=no
15049 fi
15050
15051
15052 ################################################################################
15053 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15054 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15055 \) -a "x$STATIC_LINK" = xyes ];
15056 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
15057 " >&5
15058 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
15059 " >&2;}
15060 { (exit 1); exit 1; }; }
15061 fi
15062
15063 ################################################################################
15064 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15065 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15066 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15067 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15068 $as_echo_n "(cached) " >&6
15069 else
15070 ac_check_lib_save_LIBS=$LIBS
15071 LIBS="-lpthread $LIBS"
15072 cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h. */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078
15079 /* Override any GCC internal prototype to avoid an error.
15080 Use char because int might match the return type of a GCC
15081 builtin and then its argument prototype would still apply. */
15082 #ifdef __cplusplus
15083 extern "C"
15084 #endif
15085 char pthread_mutex_lock ();
15086 int
15087 main ()
15088 {
15089 return pthread_mutex_lock ();
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (ac_try="$ac_link"
15096 case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099 esac
15100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15101 $as_echo "$ac_try_echo") >&5
15102 (eval "$ac_link") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && {
15109 test -z "$ac_c_werror_flag" ||
15110 test ! -s conftest.err
15111 } && test -s conftest$ac_exeext && {
15112 test "$cross_compiling" = yes ||
15113 $as_test_x conftest$ac_exeext
15114 }; then
15115 ac_cv_lib_pthread_pthread_mutex_lock=yes
15116 else
15117 $as_echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 ac_cv_lib_pthread_pthread_mutex_lock=no
15121 fi
15122
15123 rm -rf conftest.dSYM
15124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15125 conftest$ac_exeext conftest.$ac_ext
15126 LIBS=$ac_check_lib_save_LIBS
15127 fi
15128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15129 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15130 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15131 PTHREAD_LIBS="-lpthread"
15132 else
15133 hard_bailout
15134 fi
15135
15136 fi
15137
15138 ################################################################################
15139 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15140 $as_echo_n "checking whether to enable selinux support... " >&6; }
15141 # Check whether --enable-selinux was given.
15142 if test "${enable_selinux+set}" = set; then
15143 enableval=$enable_selinux; SELINUX=$enableval
15144 fi
15145
15146 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15147 $as_echo "$SELINUX" >&6; }
15148
15149 ################################################################################
15150 if test x$SELINUX = xyes; then
15151 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15152 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
15153 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
15154 $as_echo_n "(cached) " >&6
15155 else
15156 ac_check_lib_save_LIBS=$LIBS
15157 LIBS="-lsepol $LIBS"
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h. */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164
15165 /* Override any GCC internal prototype to avoid an error.
15166 Use char because int might match the return type of a GCC
15167 builtin and then its argument prototype would still apply. */
15168 #ifdef __cplusplus
15169 extern "C"
15170 #endif
15171 char sepol_check_context ();
15172 int
15173 main ()
15174 {
15175 return sepol_check_context ();
15176 ;
15177 return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext conftest$ac_exeext
15181 if { (ac_try="$ac_link"
15182 case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185 esac
15186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187 $as_echo "$ac_try_echo") >&5
15188 (eval "$ac_link") 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
15197 } && test -s conftest$ac_exeext && {
15198 test "$cross_compiling" = yes ||
15199 $as_test_x conftest$ac_exeext
15200 }; then
15201 ac_cv_lib_sepol_sepol_check_context=yes
15202 else
15203 $as_echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 ac_cv_lib_sepol_sepol_check_context=no
15207 fi
15208
15209 rm -rf conftest.dSYM
15210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211 conftest$ac_exeext conftest.$ac_ext
15212 LIBS=$ac_check_lib_save_LIBS
15213 fi
15214 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15215 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15216 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
15217
15218
15219 cat >>confdefs.h <<\_ACEOF
15220 #define HAVE_SEPOL 1
15221 _ACEOF
15222
15223 SELINUX_LIBS="-lsepol"
15224 fi
15225
15226
15227 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15228 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15229 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15230 $as_echo_n "(cached) " >&6
15231 else
15232 ac_check_lib_save_LIBS=$LIBS
15233 LIBS="-lselinux $LIBS"
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h. */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240
15241 /* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
15244 #ifdef __cplusplus
15245 extern "C"
15246 #endif
15247 char is_selinux_enabled ();
15248 int
15249 main ()
15250 {
15251 return is_selinux_enabled ();
15252 ;
15253 return 0;
15254 }
15255 _ACEOF
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (ac_try="$ac_link"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261 esac
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_link") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest$ac_exeext && {
15274 test "$cross_compiling" = yes ||
15275 $as_test_x conftest$ac_exeext
15276 }; then
15277 ac_cv_lib_selinux_is_selinux_enabled=yes
15278 else
15279 $as_echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_cv_lib_selinux_is_selinux_enabled=no
15283 fi
15284
15285 rm -rf conftest.dSYM
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15288 LIBS=$ac_check_lib_save_LIBS
15289 fi
15290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15291 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15292 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15293
15294
15295 for ac_header in selinux/selinux.h
15296 do
15297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15300 $as_echo_n "checking for $ac_header... " >&6; }
15301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302 $as_echo_n "(cached) " >&6
15303 fi
15304 ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307 $as_echo "$ac_res" >&6; }
15308 else
15309 # Is the header compilable?
15310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15311 $as_echo_n "checking $ac_header usability... " >&6; }
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 $ac_includes_default
15319 #include <$ac_header>
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328 $as_echo "$ac_try_echo") >&5
15329 (eval "$ac_compile") 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest.$ac_objext; then
15339 ac_header_compiler=yes
15340 else
15341 $as_echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_compiler=no
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 $as_echo "$ac_header_compiler" >&6; }
15350
15351 # Is the header present?
15352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 $as_echo_n "checking $ac_header presence... " >&6; }
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h. */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <$ac_header>
15361 _ACEOF
15362 if { (ac_try="$ac_cpp conftest.$ac_ext"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366 esac
15367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368 $as_echo "$ac_try_echo") >&5
15369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } >/dev/null && {
15376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 }; then
15379 ac_header_preproc=yes
15380 else
15381 $as_echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_header_preproc=no
15385 fi
15386
15387 rm -f conftest.err conftest.$ac_ext
15388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 $as_echo "$ac_header_preproc" >&6; }
15390
15391 # So? What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393 yes:no: )
15394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15399 ;;
15400 no:yes:* )
15401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413
15414 ;;
15415 esac
15416 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 $as_echo_n "checking for $ac_header... " >&6; }
15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 $as_echo_n "(cached) " >&6
15420 else
15421 eval "$as_ac_Header=\$ac_header_preproc"
15422 fi
15423 ac_res=`eval 'as_val=${'$as_ac_Header'}
15424 $as_echo "$as_val"'`
15425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15426 $as_echo "$ac_res" >&6; }
15427
15428 fi
15429 as_val=`eval 'as_val=${'$as_ac_Header'}
15430 $as_echo "$as_val"'`
15431 if test "x$as_val" = x""yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15434 _ACEOF
15435
15436 else
15437 hard_bailout
15438 fi
15439
15440 done
15441
15442
15443 for ac_header in selinux/label.h
15444 do
15445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 $as_echo_n "checking for $ac_header... " >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 $as_echo_n "(cached) " >&6
15451 fi
15452 ac_res=`eval 'as_val=${'$as_ac_Header'}
15453 $as_echo "$as_val"'`
15454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15455 $as_echo "$ac_res" >&6; }
15456 else
15457 # Is the header compilable?
15458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15459 $as_echo_n "checking $ac_header usability... " >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 $ac_includes_default
15467 #include <$ac_header>
15468 _ACEOF
15469 rm -f conftest.$ac_objext
15470 if { (ac_try="$ac_compile"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474 esac
15475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15476 $as_echo "$ac_try_echo") >&5
15477 (eval "$ac_compile") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest.$ac_objext; then
15487 ac_header_compiler=yes
15488 else
15489 $as_echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15491
15492 ac_header_compiler=no
15493 fi
15494
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15497 $as_echo "$ac_header_compiler" >&6; }
15498
15499 # Is the header present?
15500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15501 $as_echo_n "checking $ac_header presence... " >&6; }
15502 cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h. */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <$ac_header>
15509 _ACEOF
15510 if { (ac_try="$ac_cpp conftest.$ac_ext"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15514 esac
15515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15516 $as_echo "$ac_try_echo") >&5
15517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev/null && {
15524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 }; then
15527 ac_header_preproc=yes
15528 else
15529 $as_echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 ac_header_preproc=no
15533 fi
15534
15535 rm -f conftest.err conftest.$ac_ext
15536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537 $as_echo "$ac_header_preproc" >&6; }
15538
15539 # So? What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15541 yes:no: )
15542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546 ac_header_preproc=yes
15547 ;;
15548 no:yes:* )
15549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15552 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15556 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15561
15562 ;;
15563 esac
15564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 $as_echo_n "checking for $ac_header... " >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 $as_echo_n "(cached) " >&6
15568 else
15569 eval "$as_ac_Header=\$ac_header_preproc"
15570 fi
15571 ac_res=`eval 'as_val=${'$as_ac_Header'}
15572 $as_echo "$as_val"'`
15573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15574 $as_echo "$ac_res" >&6; }
15575
15576 fi
15577 as_val=`eval 'as_val=${'$as_ac_Header'}
15578 $as_echo "$as_val"'`
15579 if test "x$as_val" = x""yes; then
15580 cat >>confdefs.h <<_ACEOF
15581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15582 _ACEOF
15583
15584 fi
15585
15586 done
15587
15588
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_SELINUX 1
15591 _ACEOF
15592
15593 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
15594 SELINUX_PC="libselinux"
15595 HAVE_SELINUX=yes
15596 else
15597
15598 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15599 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15600 SELINUX_LIBS=
15601 SELINUX_PC=
15602 HAVE_SELINUX=no
15603 fi
15604
15605 fi
15606
15607 ################################################################################
15608 if test x$REALTIME = xyes; then
15609 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15610 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15611 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
15612 $as_echo_n "(cached) " >&6
15613 else
15614 ac_check_lib_save_LIBS=$LIBS
15615 LIBS="-lrt $LIBS"
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h. */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622
15623 /* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply. */
15626 #ifdef __cplusplus
15627 extern "C"
15628 #endif
15629 char clock_gettime ();
15630 int
15631 main ()
15632 {
15633 return clock_gettime ();
15634 ;
15635 return 0;
15636 }
15637 _ACEOF
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (ac_try="$ac_link"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643 esac
15644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15645 $as_echo "$ac_try_echo") >&5
15646 (eval "$ac_link") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_c_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest$ac_exeext && {
15656 test "$cross_compiling" = yes ||
15657 $as_test_x conftest$ac_exeext
15658 }; then
15659 ac_cv_lib_rt_clock_gettime=yes
15660 else
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 ac_cv_lib_rt_clock_gettime=no
15665 fi
15666
15667 rm -rf conftest.dSYM
15668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15671 fi
15672 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15673 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15674 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
15675 HAVE_REALTIME=yes
15676 else
15677 HAVE_REALTIME=no
15678 fi
15679
15680
15681 if test x$HAVE_REALTIME = xyes; then
15682
15683 cat >>confdefs.h <<\_ACEOF
15684 #define HAVE_REALTIME 1
15685 _ACEOF
15686
15687 LIBS="-lrt $LIBS"
15688 else
15689 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15690 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
15691 fi
15692 fi
15693
15694 ################################################################################
15695
15696 for ac_header in getopt.h
15697 do
15698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15700 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15701 $as_echo_n "checking for $ac_header... " >&6; }
15702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15703 $as_echo_n "(cached) " >&6
15704 fi
15705 ac_res=`eval 'as_val=${'$as_ac_Header'}
15706 $as_echo "$as_val"'`
15707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15708 $as_echo "$ac_res" >&6; }
15709 else
15710 # Is the header compilable?
15711 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15712 $as_echo_n "checking $ac_header usability... " >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15720 #include <$ac_header>
15721 _ACEOF
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15727 esac
15728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15729 $as_echo "$ac_try_echo") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest.$ac_objext; then
15740 ac_header_compiler=yes
15741 else
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 ac_header_compiler=no
15746 fi
15747
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 $as_echo "$ac_header_compiler" >&6; }
15751
15752 # Is the header present?
15753 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15754 $as_echo_n "checking $ac_header presence... " >&6; }
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <$ac_header>
15762 _ACEOF
15763 if { (ac_try="$ac_cpp conftest.$ac_ext"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 }; then
15780 ac_header_preproc=yes
15781 else
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_header_preproc=no
15786 fi
15787
15788 rm -f conftest.err conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 $as_echo "$ac_header_preproc" >&6; }
15791
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15794 yes:no: )
15795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15798 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15800 ;;
15801 no:yes:* )
15802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15803 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15805 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15807 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15809 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15813 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15814
15815 ;;
15816 esac
15817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 $as_echo_n "checking for $ac_header... " >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 $as_echo_n "(cached) " >&6
15821 else
15822 eval "$as_ac_Header=\$ac_header_preproc"
15823 fi
15824 ac_res=`eval 'as_val=${'$as_ac_Header'}
15825 $as_echo "$as_val"'`
15826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15827 $as_echo "$ac_res" >&6; }
15828
15829 fi
15830 as_val=`eval 'as_val=${'$as_ac_Header'}
15831 $as_echo "$as_val"'`
15832 if test "x$as_val" = x""yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15835 _ACEOF
15836
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_GETOPTLONG 1
15839 _ACEOF
15840
15841 fi
15842
15843 done
15844
15845
15846 ################################################################################
15847 if test x$READLINE != xno; then
15848 lvm_saved_libs=$LIBS
15849 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15850 $as_echo_n "checking for library containing tgetent... " >&6; }
15851 if test "${ac_cv_search_tgetent+set}" = set; then
15852 $as_echo_n "(cached) " >&6
15853 else
15854 ac_func_search_save_LIBS=$LIBS
15855 cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h. */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15861
15862 /* Override any GCC internal prototype to avoid an error.
15863 Use char because int might match the return type of a GCC
15864 builtin and then its argument prototype would still apply. */
15865 #ifdef __cplusplus
15866 extern "C"
15867 #endif
15868 char tgetent ();
15869 int
15870 main ()
15871 {
15872 return tgetent ();
15873 ;
15874 return 0;
15875 }
15876 _ACEOF
15877 for ac_lib in '' tinfo ncurses curses termcap termlib; do
15878 if test -z "$ac_lib"; then
15879 ac_res="none required"
15880 else
15881 ac_res=-l$ac_lib
15882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15883 fi
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15889 esac
15890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15891 $as_echo "$ac_try_echo") >&5
15892 (eval "$ac_link") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest$ac_exeext && {
15902 test "$cross_compiling" = yes ||
15903 $as_test_x conftest$ac_exeext
15904 }; then
15905 ac_cv_search_tgetent=$ac_res
15906 else
15907 $as_echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910
15911 fi
15912
15913 rm -rf conftest.dSYM
15914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15915 conftest$ac_exeext
15916 if test "${ac_cv_search_tgetent+set}" = set; then
15917 break
15918 fi
15919 done
15920 if test "${ac_cv_search_tgetent+set}" = set; then
15921 :
15922 else
15923 ac_cv_search_tgetent=no
15924 fi
15925 rm conftest.$ac_ext
15926 LIBS=$ac_func_search_save_LIBS
15927 fi
15928 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15929 $as_echo "$ac_cv_search_tgetent" >&6; }
15930 ac_res=$ac_cv_search_tgetent
15931 if test "$ac_res" != no; then
15932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15933 READLINE_LIBS=$ac_cv_search_tgetent
15934 else
15935
15936 if test "$READLINE" = yes; then
15937 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15938 --enable-readline option (which is enabled by default). Either disable readline
15939 support with --disable-readline or download and install termcap from:
15940 ftp.gnu.org/gnu/termcap
15941 Note: if you are using precompiled packages you will also need the development
15942 package as well (which may be called termcap-devel or something similar).
15943 Note: (n)curses also seems to work as a substitute for termcap. This was
15944 not found either - but you could try installing that as well." >&5
15945 $as_echo "$as_me: error: termcap could not be found which is required for the
15946 --enable-readline option (which is enabled by default). Either disable readline
15947 support with --disable-readline or download and install termcap from:
15948 ftp.gnu.org/gnu/termcap
15949 Note: if you are using precompiled packages you will also need the development
15950 package as well (which may be called termcap-devel or something similar).
15951 Note: (n)curses also seems to work as a substitute for termcap. This was
15952 not found either - but you could try installing that as well." >&2;}
15953 { (exit 1); exit 1; }; }
15954 fi
15955 fi
15956
15957 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
15958 $as_echo_n "checking for readline in -lreadline... " >&6; }
15959 if test "${ac_cv_lib_readline_readline+set}" = set; then
15960 $as_echo_n "(cached) " >&6
15961 else
15962 ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lreadline $LIBS"
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h. */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970
15971 /* Override any GCC internal prototype to avoid an error.
15972 Use char because int might match the return type of a GCC
15973 builtin and then its argument prototype would still apply. */
15974 #ifdef __cplusplus
15975 extern "C"
15976 #endif
15977 char readline ();
15978 int
15979 main ()
15980 {
15981 return readline ();
15982 ;
15983 return 0;
15984 }
15985 _ACEOF
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (ac_try="$ac_link"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991 esac
15992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15993 $as_echo "$ac_try_echo") >&5
15994 (eval "$ac_link") 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && {
16001 test -z "$ac_c_werror_flag" ||
16002 test ! -s conftest.err
16003 } && test -s conftest$ac_exeext && {
16004 test "$cross_compiling" = yes ||
16005 $as_test_x conftest$ac_exeext
16006 }; then
16007 ac_cv_lib_readline_readline=yes
16008 else
16009 $as_echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_cv_lib_readline_readline=no
16013 fi
16014
16015 rm -rf conftest.dSYM
16016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16019 fi
16020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
16021 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16022 if test "x$ac_cv_lib_readline_readline" = x""yes; then
16023
16024
16025 cat >>confdefs.h <<\_ACEOF
16026 #define READLINE_SUPPORT 1
16027 _ACEOF
16028
16029 LIBS=$lvm_saved_libs
16030 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
16031 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
16032 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
16033 $as_echo_n "(cached) " >&6
16034 else
16035 ac_check_lib_save_LIBS=$LIBS
16036 LIBS="-lreadline $LIBS"
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16047 #ifdef __cplusplus
16048 extern "C"
16049 #endif
16050 char rl_line_buffer ();
16051 int
16052 main ()
16053 {
16054 return rl_line_buffer ();
16055 ;
16056 return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (ac_try="$ac_link"
16061 case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064 esac
16065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16066 $as_echo "$ac_try_echo") >&5
16067 (eval "$ac_link") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext && {
16077 test "$cross_compiling" = yes ||
16078 $as_test_x conftest$ac_exeext
16079 }; then
16080 ac_cv_lib_readline_rl_line_buffer=yes
16081 else
16082 $as_echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 ac_cv_lib_readline_rl_line_buffer=no
16086 fi
16087
16088 rm -rf conftest.dSYM
16089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16090 conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16092 fi
16093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
16094 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
16095 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
16096 READLINE_LIBS="-lreadline"
16097 else
16098
16099 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
16100 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
16101 READLINE_LIBS="-lreadline $READLINE_LIBS"
16102
16103 fi
16104
16105 else
16106
16107 READLINE_LIBS=
16108 if test "$READLINE" = yes; then
16109 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
16110 --enable-readline option (which is enabled by default). Either disable readline
16111 support with --disable-readline or download and install readline from:
16112 ftp.gnu.org/gnu/readline
16113 Note: if you are using precompiled packages you will also need the development
16114 package as well (which may be called readline-devel or something similar)." >&5
16115 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
16116 --enable-readline option (which is enabled by default). Either disable readline
16117 support with --disable-readline or download and install readline from:
16118 ftp.gnu.org/gnu/readline
16119 Note: if you are using precompiled packages you will also need the development
16120 package as well (which may be called readline-devel or something similar)." >&2;}
16121 { (exit 1); exit 1; }; }
16122 fi
16123 fi
16124
16125 LIBS="$READLINE_LIBS $lvm_saved_libs"
16126
16127 for ac_func in rl_completion_matches
16128 do
16129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 $as_echo_n "checking for $ac_func... " >&6; }
16132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16133 $as_echo_n "(cached) " >&6
16134 else
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16143 #define $ac_func innocuous_$ac_func
16144
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char $ac_func (); below.
16147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16148 <limits.h> exists even on freestanding compilers. */
16149
16150 #ifdef __STDC__
16151 # include <limits.h>
16152 #else
16153 # include <assert.h>
16154 #endif
16155
16156 #undef $ac_func
16157
16158 /* Override any GCC internal prototype to avoid an error.
16159 Use char because int might match the return type of a GCC
16160 builtin and then its argument prototype would still apply. */
16161 #ifdef __cplusplus
16162 extern "C"
16163 #endif
16164 char $ac_func ();
16165 /* The GNU C library defines this for functions which it implements
16166 to always fail with ENOSYS. Some functions are actually named
16167 something starting with __ and the normal name is an alias. */
16168 #if defined __stub_$ac_func || defined __stub___$ac_func
16169 choke me
16170 #endif
16171
16172 int
16173 main ()
16174 {
16175 return $ac_func ();
16176 ;
16177 return 0;
16178 }
16179 _ACEOF
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185 esac
16186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16187 $as_echo "$ac_try_echo") >&5
16188 (eval "$ac_link") 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && {
16195 test -z "$ac_c_werror_flag" ||
16196 test ! -s conftest.err
16197 } && test -s conftest$ac_exeext && {
16198 test "$cross_compiling" = yes ||
16199 $as_test_x conftest$ac_exeext
16200 }; then
16201 eval "$as_ac_var=yes"
16202 else
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 eval "$as_ac_var=no"
16207 fi
16208
16209 rm -rf conftest.dSYM
16210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16211 conftest$ac_exeext conftest.$ac_ext
16212 fi
16213 ac_res=`eval 'as_val=${'$as_ac_var'}
16214 $as_echo "$as_val"'`
16215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16216 $as_echo "$ac_res" >&6; }
16217 as_val=`eval 'as_val=${'$as_ac_var'}
16218 $as_echo "$as_val"'`
16219 if test "x$as_val" = x""yes; then
16220 cat >>confdefs.h <<_ACEOF
16221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16222 _ACEOF
16223
16224 fi
16225 done
16226
16227 LIBS=$lvm_saved_libs
16228 fi
16229
16230 ################################################################################
16231 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16232 $as_echo_n "checking whether to enable internationalisation... " >&6; }
16233 # Check whether --enable-nls was given.
16234 if test "${enable_nls+set}" = set; then
16235 enableval=$enable_nls; INTL=$enableval
16236 else
16237 INTL=no
16238 fi
16239
16240 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
16241 $as_echo "$INTL" >&6; }
16242
16243 if test x$INTL = xyes; then
16244 # FIXME - Move this - can be device-mapper too
16245 INTL_PACKAGE="lvm2"
16246 # Extract the first word of "msgfmt", so it can be a program name with args.
16247 set dummy msgfmt; ac_word=$2
16248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16249 $as_echo_n "checking for $ac_word... " >&6; }
16250 if test "${ac_cv_path_MSGFMT+set}" = set; then
16251 $as_echo_n "(cached) " >&6
16252 else
16253 case $MSGFMT in
16254 [\\/]* | ?:[\\/]*)
16255 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16256 ;;
16257 *)
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH
16260 do
16261 IFS=$as_save_IFS
16262 test -z "$as_dir" && as_dir=.
16263 for ac_exec_ext in '' $ac_executable_extensions; do
16264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16265 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16267 break 2
16268 fi
16269 done
16270 done
16271 IFS=$as_save_IFS
16272
16273 ;;
16274 esac
16275 fi
16276 MSGFMT=$ac_cv_path_MSGFMT
16277 if test -n "$MSGFMT"; then
16278 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16279 $as_echo "$MSGFMT" >&6; }
16280 else
16281 { $as_echo "$as_me:$LINENO: result: no" >&5
16282 $as_echo "no" >&6; }
16283 fi
16284
16285
16286 if [ "x$MSGFMT" == x ];
16287 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
16288 " >&5
16289 $as_echo "$as_me: error: msgfmt not found in path $PATH
16290 " >&2;}
16291 { (exit 1); exit 1; }; }
16292 fi;
16293
16294
16295 # Check whether --with-localedir was given.
16296 if test "${with_localedir+set}" = set; then
16297 withval=$with_localedir; LOCALEDIR=$withval
16298 else
16299 LOCALEDIR='${prefix}/share/locale'
16300 fi
16301
16302 fi
16303
16304 ################################################################################
16305
16306 # Check whether --with-confdir was given.
16307 if test "${with_confdir+set}" = set; then
16308 withval=$with_confdir; CONFDIR=$withval
16309 else
16310 CONFDIR="/etc"
16311 fi
16312
16313
16314
16315 # Check whether --with-staticdir was given.
16316 if test "${with_staticdir+set}" = set; then
16317 withval=$with_staticdir; STATICDIR=$withval
16318 else
16319 STATICDIR='${exec_prefix}/sbin'
16320 fi
16321
16322
16323
16324 # Check whether --with-usrlibdir was given.
16325 if test "${with_usrlibdir+set}" = set; then
16326 withval=$with_usrlibdir; usrlibdir=$withval
16327 else
16328 usrlibdir='${prefix}/lib'
16329 fi
16330
16331
16332
16333 # Check whether --with-usrsbindir was given.
16334 if test "${with_usrsbindir+set}" = set; then
16335 withval=$with_usrsbindir; usrsbindir=$withval
16336 else
16337 usrsbindir='${prefix}/sbin'
16338 fi
16339
16340
16341 ################################################################################
16342
16343 # Check whether --with-udev_prefix was given.
16344 if test "${with_udev_prefix+set}" = set; then
16345 withval=$with_udev_prefix; udev_prefix=$withval
16346 else
16347 udev_prefix='${exec_prefix}'
16348 fi
16349
16350
16351
16352 # Check whether --with-udevdir was given.
16353 if test "${with_udevdir+set}" = set; then
16354 withval=$with_udevdir; udevdir=$withval
16355 else
16356 udevdir='${udev_prefix}/lib/udev/rules.d'
16357 fi
16358
16359
16360 ################################################################################
16361 if test x$READLINE = xyes; then
16362
16363
16364 for ac_header in readline/readline.h readline/history.h
16365 do
16366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16369 $as_echo_n "checking for $ac_header... " >&6; }
16370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16371 $as_echo_n "(cached) " >&6
16372 fi
16373 ac_res=`eval 'as_val=${'$as_ac_Header'}
16374 $as_echo "$as_val"'`
16375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16376 $as_echo "$ac_res" >&6; }
16377 else
16378 # Is the header compilable?
16379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380 $as_echo_n "checking $ac_header usability... " >&6; }
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $ac_includes_default
16388 #include <$ac_header>
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (ac_try="$ac_compile"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395 esac
16396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16397 $as_echo "$ac_try_echo") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest.$ac_objext; then
16408 ac_header_compiler=yes
16409 else
16410 $as_echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_header_compiler=no
16414 fi
16415
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16418 $as_echo "$ac_header_compiler" >&6; }
16419
16420 # Is the header present?
16421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16422 $as_echo_n "checking $ac_header presence... " >&6; }
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 #include <$ac_header>
16430 _ACEOF
16431 if { (ac_try="$ac_cpp conftest.$ac_ext"
16432 case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16435 esac
16436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16437 $as_echo "$ac_try_echo") >&5
16438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } >/dev/null && {
16445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16446 test ! -s conftest.err
16447 }; then
16448 ac_header_preproc=yes
16449 else
16450 $as_echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453 ac_header_preproc=no
16454 fi
16455
16456 rm -f conftest.err conftest.$ac_ext
16457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 $as_echo "$ac_header_preproc" >&6; }
16459
16460 # So? What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16462 yes:no: )
16463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467 ac_header_preproc=yes
16468 ;;
16469 no:yes:* )
16470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16473 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16477 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16482
16483 ;;
16484 esac
16485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16486 $as_echo_n "checking for $ac_header... " >&6; }
16487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16488 $as_echo_n "(cached) " >&6
16489 else
16490 eval "$as_ac_Header=\$ac_header_preproc"
16491 fi
16492 ac_res=`eval 'as_val=${'$as_ac_Header'}
16493 $as_echo "$as_val"'`
16494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16495 $as_echo "$ac_res" >&6; }
16496
16497 fi
16498 as_val=`eval 'as_val=${'$as_ac_Header'}
16499 $as_echo "$as_val"'`
16500 if test "x$as_val" = x""yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16503 _ACEOF
16504
16505 else
16506 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16507 $as_echo "$as_me: error: bailing out" >&2;}
16508 { (exit 1); exit 1; }; }
16509 fi
16510
16511 done
16512
16513 fi
16514
16515 if test x$CLVMD != xnone; then
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526 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
16527 do
16528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16531 $as_echo_n "checking for $ac_header... " >&6; }
16532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16533 $as_echo_n "(cached) " >&6
16534 fi
16535 ac_res=`eval 'as_val=${'$as_ac_Header'}
16536 $as_echo "$as_val"'`
16537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16538 $as_echo "$ac_res" >&6; }
16539 else
16540 # Is the header compilable?
16541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16542 $as_echo_n "checking $ac_header usability... " >&6; }
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 $ac_includes_default
16550 #include <$ac_header>
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557 esac
16558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16559 $as_echo "$ac_try_echo") >&5
16560 (eval "$ac_compile") 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest.$ac_objext; then
16570 ac_header_compiler=yes
16571 else
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ac_header_compiler=no
16576 fi
16577
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16580 $as_echo "$ac_header_compiler" >&6; }
16581
16582 # Is the header present?
16583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16584 $as_echo_n "checking $ac_header presence... " >&6; }
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #include <$ac_header>
16592 _ACEOF
16593 if { (ac_try="$ac_cpp conftest.$ac_ext"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597 esac
16598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16601 ac_status=$?
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
16605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } >/dev/null && {
16607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 }; then
16610 ac_header_preproc=yes
16611 else
16612 $as_echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_header_preproc=no
16616 fi
16617
16618 rm -f conftest.err conftest.$ac_ext
16619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16620 $as_echo "$ac_header_preproc" >&6; }
16621
16622 # So? What about this header?
16623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16624 yes:no: )
16625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16629 ac_header_preproc=yes
16630 ;;
16631 no:yes:* )
16632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16644
16645 ;;
16646 esac
16647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16648 $as_echo_n "checking for $ac_header... " >&6; }
16649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16650 $as_echo_n "(cached) " >&6
16651 else
16652 eval "$as_ac_Header=\$ac_header_preproc"
16653 fi
16654 ac_res=`eval 'as_val=${'$as_ac_Header'}
16655 $as_echo "$as_val"'`
16656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16657 $as_echo "$ac_res" >&6; }
16658
16659 fi
16660 as_val=`eval 'as_val=${'$as_ac_Header'}
16661 $as_echo "$as_val"'`
16662 if test "x$as_val" = x""yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16665 _ACEOF
16666
16667 else
16668 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16669 $as_echo "$as_me: error: bailing out" >&2;}
16670 { (exit 1); exit 1; }; }
16671 fi
16672
16673 done
16674
16675
16676
16677
16678
16679
16680 for ac_func in dup2 getmntent memmove select socket
16681 do
16682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16683 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16684 $as_echo_n "checking for $ac_func... " >&6; }
16685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16686 $as_echo_n "(cached) " >&6
16687 else
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16696 #define $ac_func innocuous_$ac_func
16697
16698 /* System header to define __stub macros and hopefully few prototypes,
16699 which can conflict with char $ac_func (); below.
16700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16701 <limits.h> exists even on freestanding compilers. */
16702
16703 #ifdef __STDC__
16704 # include <limits.h>
16705 #else
16706 # include <assert.h>
16707 #endif
16708
16709 #undef $ac_func
16710
16711 /* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16714 #ifdef __cplusplus
16715 extern "C"
16716 #endif
16717 char $ac_func ();
16718 /* The GNU C library defines this for functions which it implements
16719 to always fail with ENOSYS. Some functions are actually named
16720 something starting with __ and the normal name is an alias. */
16721 #if defined __stub_$ac_func || defined __stub___$ac_func
16722 choke me
16723 #endif
16724
16725 int
16726 main ()
16727 {
16728 return $ac_func ();
16729 ;
16730 return 0;
16731 }
16732 _ACEOF
16733 rm -f conftest.$ac_objext conftest$ac_exeext
16734 if { (ac_try="$ac_link"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16738 esac
16739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16740 $as_echo "$ac_try_echo") >&5
16741 (eval "$ac_link") 2>conftest.er1
16742 ac_status=$?
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
16746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } && {
16748 test -z "$ac_c_werror_flag" ||
16749 test ! -s conftest.err
16750 } && test -s conftest$ac_exeext && {
16751 test "$cross_compiling" = yes ||
16752 $as_test_x conftest$ac_exeext
16753 }; then
16754 eval "$as_ac_var=yes"
16755 else
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 eval "$as_ac_var=no"
16760 fi
16761
16762 rm -rf conftest.dSYM
16763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16764 conftest$ac_exeext conftest.$ac_ext
16765 fi
16766 ac_res=`eval 'as_val=${'$as_ac_var'}
16767 $as_echo "$as_val"'`
16768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16769 $as_echo "$ac_res" >&6; }
16770 as_val=`eval 'as_val=${'$as_ac_var'}
16771 $as_echo "$as_val"'`
16772 if test "x$as_val" = x""yes; then
16773 cat >>confdefs.h <<_ACEOF
16774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16775 _ACEOF
16776
16777 else
16778 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16779 $as_echo "$as_me: error: bailing out" >&2;}
16780 { (exit 1); exit 1; }; }
16781 fi
16782 done
16783
16784 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16785 # -lseq on Dynix/PTX, -lgen on Unixware.
16786 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16787 $as_echo_n "checking for library containing getmntent... " >&6; }
16788 if test "${ac_cv_search_getmntent+set}" = set; then
16789 $as_echo_n "(cached) " >&6
16790 else
16791 ac_func_search_save_LIBS=$LIBS
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16802 #ifdef __cplusplus
16803 extern "C"
16804 #endif
16805 char getmntent ();
16806 int
16807 main ()
16808 {
16809 return getmntent ();
16810 ;
16811 return 0;
16812 }
16813 _ACEOF
16814 for ac_lib in '' sun seq gen; do
16815 if test -z "$ac_lib"; then
16816 ac_res="none required"
16817 else
16818 ac_res=-l$ac_lib
16819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16820 fi
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16828 $as_echo "$ac_try_echo") >&5
16829 (eval "$ac_link") 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } && {
16836 test -z "$ac_c_werror_flag" ||
16837 test ! -s conftest.err
16838 } && test -s conftest$ac_exeext && {
16839 test "$cross_compiling" = yes ||
16840 $as_test_x conftest$ac_exeext
16841 }; then
16842 ac_cv_search_getmntent=$ac_res
16843 else
16844 $as_echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847
16848 fi
16849
16850 rm -rf conftest.dSYM
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext
16853 if test "${ac_cv_search_getmntent+set}" = set; then
16854 break
16855 fi
16856 done
16857 if test "${ac_cv_search_getmntent+set}" = set; then
16858 :
16859 else
16860 ac_cv_search_getmntent=no
16861 fi
16862 rm conftest.$ac_ext
16863 LIBS=$ac_func_search_save_LIBS
16864 fi
16865 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16866 $as_echo "$ac_cv_search_getmntent" >&6; }
16867 ac_res=$ac_cv_search_getmntent
16868 if test "$ac_res" != no; then
16869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16870 ac_cv_func_getmntent=yes
16871
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_GETMNTENT 1
16874 _ACEOF
16875
16876 else
16877 ac_cv_func_getmntent=no
16878 fi
16879
16880
16881
16882
16883 for ac_header in sys/select.h sys/socket.h
16884 do
16885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16888 $as_echo_n "checking for $ac_header... " >&6; }
16889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16890 $as_echo_n "(cached) " >&6
16891 fi
16892 ac_res=`eval 'as_val=${'$as_ac_Header'}
16893 $as_echo "$as_val"'`
16894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16895 $as_echo "$ac_res" >&6; }
16896 else
16897 # Is the header compilable?
16898 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 $as_echo_n "checking $ac_header usability... " >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16907 #include <$ac_header>
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914 esac
16915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16916 $as_echo "$ac_try_echo") >&5
16917 (eval "$ac_compile") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest.$ac_objext; then
16927 ac_header_compiler=yes
16928 else
16929 $as_echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 ac_header_compiler=no
16933 fi
16934
16935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16937 $as_echo "$ac_header_compiler" >&6; }
16938
16939 # Is the header present?
16940 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16941 $as_echo_n "checking $ac_header presence... " >&6; }
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <$ac_header>
16949 _ACEOF
16950 if { (ac_try="$ac_cpp conftest.$ac_ext"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } >/dev/null && {
16964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 }; then
16967 ac_header_preproc=yes
16968 else
16969 $as_echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_header_preproc=no
16973 fi
16974
16975 rm -f conftest.err conftest.$ac_ext
16976 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16977 $as_echo "$ac_header_preproc" >&6; }
16978
16979 # So? What about this header?
16980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16981 yes:no: )
16982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16983 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16986 ac_header_preproc=yes
16987 ;;
16988 no:yes:* )
16989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16990 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16992 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16994 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16996 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17000 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17001
17002 ;;
17003 esac
17004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17005 $as_echo_n "checking for $ac_header... " >&6; }
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 $as_echo_n "(cached) " >&6
17008 else
17009 eval "$as_ac_Header=\$ac_header_preproc"
17010 fi
17011 ac_res=`eval 'as_val=${'$as_ac_Header'}
17012 $as_echo "$as_val"'`
17013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17014 $as_echo "$ac_res" >&6; }
17015
17016 fi
17017 as_val=`eval 'as_val=${'$as_ac_Header'}
17018 $as_echo "$as_val"'`
17019 if test "x$as_val" = x""yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17022 _ACEOF
17023
17024 fi
17025
17026 done
17027
17028 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
17029 $as_echo_n "checking types of arguments for select... " >&6; }
17030 if test "${ac_cv_func_select_args+set}" = set; then
17031 $as_echo_n "(cached) " >&6
17032 else
17033 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
17034 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
17035 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 $ac_includes_default
17043 #ifdef HAVE_SYS_SELECT_H
17044 # include <sys/select.h>
17045 #endif
17046 #ifdef HAVE_SYS_SOCKET_H
17047 # include <sys/socket.h>
17048 #endif
17049
17050 int
17051 main ()
17052 {
17053 extern int select ($ac_arg1,
17054 $ac_arg234, $ac_arg234, $ac_arg234,
17055 $ac_arg5);
17056 ;
17057 return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065 esac
17066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17067 $as_echo "$ac_try_echo") >&5
17068 (eval "$ac_compile") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest.$ac_objext; then
17078 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
17079 else
17080 $as_echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17082
17083
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087 done
17088 done
17089 done
17090 # Provide a safe default value.
17091 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
17092
17093 fi
17094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
17095 $as_echo "$ac_cv_func_select_args" >&6; }
17096 ac_save_IFS=$IFS; IFS=','
17097 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17098 IFS=$ac_save_IFS
17099 shift
17100
17101 cat >>confdefs.h <<_ACEOF
17102 #define SELECT_TYPE_ARG1 $1
17103 _ACEOF
17104
17105
17106 cat >>confdefs.h <<_ACEOF
17107 #define SELECT_TYPE_ARG234 ($2)
17108 _ACEOF
17109
17110
17111 cat >>confdefs.h <<_ACEOF
17112 #define SELECT_TYPE_ARG5 ($3)
17113 _ACEOF
17114
17115 rm -f conftest*
17116
17117 fi
17118
17119 if test x$CLUSTER != xnone; then
17120
17121
17122 for ac_header in sys/socket.h sys/un.h
17123 do
17124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17127 $as_echo_n "checking for $ac_header... " >&6; }
17128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 $as_echo_n "(cached) " >&6
17130 fi
17131 ac_res=`eval 'as_val=${'$as_ac_Header'}
17132 $as_echo "$as_val"'`
17133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17134 $as_echo "$ac_res" >&6; }
17135 else
17136 # Is the header compilable?
17137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17138 $as_echo_n "checking $ac_header usability... " >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 $ac_includes_default
17146 #include <$ac_header>
17147 _ACEOF
17148 rm -f conftest.$ac_objext
17149 if { (ac_try="$ac_compile"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153 esac
17154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17155 $as_echo "$ac_try_echo") >&5
17156 (eval "$ac_compile") 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest.$ac_objext; then
17166 ac_header_compiler=yes
17167 else
17168 $as_echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17170
17171 ac_header_compiler=no
17172 fi
17173
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17176 $as_echo "$ac_header_compiler" >&6; }
17177
17178 # Is the header present?
17179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17180 $as_echo_n "checking $ac_header presence... " >&6; }
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <$ac_header>
17188 _ACEOF
17189 if { (ac_try="$ac_cpp conftest.$ac_ext"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } >/dev/null && {
17203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 }; then
17206 ac_header_preproc=yes
17207 else
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211 ac_header_preproc=no
17212 fi
17213
17214 rm -f conftest.err conftest.$ac_ext
17215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17216 $as_echo "$ac_header_preproc" >&6; }
17217
17218 # So? What about this header?
17219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17220 yes:no: )
17221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17225 ac_header_preproc=yes
17226 ;;
17227 no:yes:* )
17228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17240
17241 ;;
17242 esac
17243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17244 $as_echo_n "checking for $ac_header... " >&6; }
17245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17246 $as_echo_n "(cached) " >&6
17247 else
17248 eval "$as_ac_Header=\$ac_header_preproc"
17249 fi
17250 ac_res=`eval 'as_val=${'$as_ac_Header'}
17251 $as_echo "$as_val"'`
17252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17253 $as_echo "$ac_res" >&6; }
17254
17255 fi
17256 as_val=`eval 'as_val=${'$as_ac_Header'}
17257 $as_echo "$as_val"'`
17258 if test "x$as_val" = x""yes; then
17259 cat >>confdefs.h <<_ACEOF
17260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17261 _ACEOF
17262
17263 else
17264 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17265 $as_echo "$as_me: error: bailing out" >&2;}
17266 { (exit 1); exit 1; }; }
17267 fi
17268
17269 done
17270
17271
17272 for ac_func in socket
17273 do
17274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17276 $as_echo_n "checking for $ac_func... " >&6; }
17277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17278 $as_echo_n "(cached) " >&6
17279 else
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17288 #define $ac_func innocuous_$ac_func
17289
17290 /* System header to define __stub macros and hopefully few prototypes,
17291 which can conflict with char $ac_func (); below.
17292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293 <limits.h> exists even on freestanding compilers. */
17294
17295 #ifdef __STDC__
17296 # include <limits.h>
17297 #else
17298 # include <assert.h>
17299 #endif
17300
17301 #undef $ac_func
17302
17303 /* Override any GCC internal prototype to avoid an error.
17304 Use char because int might match the return type of a GCC
17305 builtin and then its argument prototype would still apply. */
17306 #ifdef __cplusplus
17307 extern "C"
17308 #endif
17309 char $ac_func ();
17310 /* The GNU C library defines this for functions which it implements
17311 to always fail with ENOSYS. Some functions are actually named
17312 something starting with __ and the normal name is an alias. */
17313 #if defined __stub_$ac_func || defined __stub___$ac_func
17314 choke me
17315 #endif
17316
17317 int
17318 main ()
17319 {
17320 return $ac_func ();
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17330 esac
17331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333 (eval "$ac_link") 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext && {
17343 test "$cross_compiling" = yes ||
17344 $as_test_x conftest$ac_exeext
17345 }; then
17346 eval "$as_ac_var=yes"
17347 else
17348 $as_echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351 eval "$as_ac_var=no"
17352 fi
17353
17354 rm -rf conftest.dSYM
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17357 fi
17358 ac_res=`eval 'as_val=${'$as_ac_var'}
17359 $as_echo "$as_val"'`
17360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17361 $as_echo "$ac_res" >&6; }
17362 as_val=`eval 'as_val=${'$as_ac_var'}
17363 $as_echo "$as_val"'`
17364 if test "x$as_val" = x""yes; then
17365 cat >>confdefs.h <<_ACEOF
17366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 _ACEOF
17368
17369 else
17370 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17371 $as_echo "$as_me: error: bailing out" >&2;}
17372 { (exit 1); exit 1; }; }
17373 fi
17374 done
17375
17376 fi
17377
17378 if test x$DMEVENTD = xyes; then
17379
17380 for ac_header in arpa/inet.h
17381 do
17382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17385 $as_echo_n "checking for $ac_header... " >&6; }
17386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17387 $as_echo_n "(cached) " >&6
17388 fi
17389 ac_res=`eval 'as_val=${'$as_ac_Header'}
17390 $as_echo "$as_val"'`
17391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17392 $as_echo "$ac_res" >&6; }
17393 else
17394 # Is the header compilable?
17395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17396 $as_echo_n "checking $ac_header usability... " >&6; }
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h. */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 $ac_includes_default
17404 #include <$ac_header>
17405 _ACEOF
17406 rm -f conftest.$ac_objext
17407 if { (ac_try="$ac_compile"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411 esac
17412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17413 $as_echo "$ac_try_echo") >&5
17414 (eval "$ac_compile") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest.$ac_objext; then
17424 ac_header_compiler=yes
17425 else
17426 $as_echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429 ac_header_compiler=no
17430 fi
17431
17432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17434 $as_echo "$ac_header_compiler" >&6; }
17435
17436 # Is the header present?
17437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17438 $as_echo_n "checking $ac_header presence... " >&6; }
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 #include <$ac_header>
17446 _ACEOF
17447 if { (ac_try="$ac_cpp conftest.$ac_ext"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451 esac
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17455 ac_status=$?
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } >/dev/null && {
17461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 }; then
17464 ac_header_preproc=yes
17465 else
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 ac_header_preproc=no
17470 fi
17471
17472 rm -f conftest.err conftest.$ac_ext
17473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17474 $as_echo "$ac_header_preproc" >&6; }
17475
17476 # So? What about this header?
17477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17478 yes:no: )
17479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17483 ac_header_preproc=yes
17484 ;;
17485 no:yes:* )
17486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17489 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17493 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17498
17499 ;;
17500 esac
17501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17502 $as_echo_n "checking for $ac_header... " >&6; }
17503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17504 $as_echo_n "(cached) " >&6
17505 else
17506 eval "$as_ac_Header=\$ac_header_preproc"
17507 fi
17508 ac_res=`eval 'as_val=${'$as_ac_Header'}
17509 $as_echo "$as_val"'`
17510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17511 $as_echo "$ac_res" >&6; }
17512
17513 fi
17514 as_val=`eval 'as_val=${'$as_ac_Header'}
17515 $as_echo "$as_val"'`
17516 if test "x$as_val" = x""yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17519 _ACEOF
17520
17521 else
17522 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17523 $as_echo "$as_me: error: bailing out" >&2;}
17524 { (exit 1); exit 1; }; }
17525 fi
17526
17527 done
17528
17529 fi
17530
17531 if test x$HAVE_LIBDL = xyes; then
17532
17533 for ac_header in dlfcn.h
17534 do
17535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17538 $as_echo_n "checking for $ac_header... " >&6; }
17539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17540 $as_echo_n "(cached) " >&6
17541 fi
17542 ac_res=`eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'`
17544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17545 $as_echo "$ac_res" >&6; }
17546 else
17547 # Is the header compilable?
17548 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17549 $as_echo_n "checking $ac_header usability... " >&6; }
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 $ac_includes_default
17557 #include <$ac_header>
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564 esac
17565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17566 $as_echo "$ac_try_echo") >&5
17567 (eval "$ac_compile") 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest.$ac_objext; then
17577 ac_header_compiler=yes
17578 else
17579 $as_echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_header_compiler=no
17583 fi
17584
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17587 $as_echo "$ac_header_compiler" >&6; }
17588
17589 # Is the header present?
17590 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17591 $as_echo_n "checking $ac_header presence... " >&6; }
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <$ac_header>
17599 _ACEOF
17600 if { (ac_try="$ac_cpp conftest.$ac_ext"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17606 $as_echo "$ac_try_echo") >&5
17607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } >/dev/null && {
17614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17615 test ! -s conftest.err
17616 }; then
17617 ac_header_preproc=yes
17618 else
17619 $as_echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 ac_header_preproc=no
17623 fi
17624
17625 rm -f conftest.err conftest.$ac_ext
17626 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17627 $as_echo "$ac_header_preproc" >&6; }
17628
17629 # So? What about this header?
17630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17631 yes:no: )
17632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17633 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17636 ac_header_preproc=yes
17637 ;;
17638 no:yes:* )
17639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17640 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17642 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17644 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17646 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17650 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17651
17652 ;;
17653 esac
17654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17655 $as_echo_n "checking for $ac_header... " >&6; }
17656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17657 $as_echo_n "(cached) " >&6
17658 else
17659 eval "$as_ac_Header=\$ac_header_preproc"
17660 fi
17661 ac_res=`eval 'as_val=${'$as_ac_Header'}
17662 $as_echo "$as_val"'`
17663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17664 $as_echo "$ac_res" >&6; }
17665
17666 fi
17667 as_val=`eval 'as_val=${'$as_ac_Header'}
17668 $as_echo "$as_val"'`
17669 if test "x$as_val" = x""yes; then
17670 cat >>confdefs.h <<_ACEOF
17671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17672 _ACEOF
17673
17674 else
17675 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17676 $as_echo "$as_me: error: bailing out" >&2;}
17677 { (exit 1); exit 1; }; }
17678 fi
17679
17680 done
17681
17682 fi
17683
17684 if test x$INTL = xyes; then
17685
17686 for ac_header in libintl.h
17687 do
17688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17691 $as_echo_n "checking for $ac_header... " >&6; }
17692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17693 $as_echo_n "(cached) " >&6
17694 fi
17695 ac_res=`eval 'as_val=${'$as_ac_Header'}
17696 $as_echo "$as_val"'`
17697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17698 $as_echo "$ac_res" >&6; }
17699 else
17700 # Is the header compilable?
17701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17702 $as_echo_n "checking $ac_header usability... " >&6; }
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h. */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 $ac_includes_default
17710 #include <$ac_header>
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (ac_try="$ac_compile"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17717 esac
17718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17719 $as_echo "$ac_try_echo") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest.$ac_objext; then
17730 ac_header_compiler=yes
17731 else
17732 $as_echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_header_compiler=no
17736 fi
17737
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17740 $as_echo "$ac_header_compiler" >&6; }
17741
17742 # Is the header present?
17743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17744 $as_echo_n "checking $ac_header presence... " >&6; }
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h. */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751 #include <$ac_header>
17752 _ACEOF
17753 if { (ac_try="$ac_cpp conftest.$ac_ext"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757 esac
17758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17759 $as_echo "$ac_try_echo") >&5
17760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } >/dev/null && {
17767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17768 test ! -s conftest.err
17769 }; then
17770 ac_header_preproc=yes
17771 else
17772 $as_echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775 ac_header_preproc=no
17776 fi
17777
17778 rm -f conftest.err conftest.$ac_ext
17779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17780 $as_echo "$ac_header_preproc" >&6; }
17781
17782 # So? What about this header?
17783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17784 yes:no: )
17785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17789 ac_header_preproc=yes
17790 ;;
17791 no:yes:* )
17792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17795 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17799 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17804
17805 ;;
17806 esac
17807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17808 $as_echo_n "checking for $ac_header... " >&6; }
17809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17810 $as_echo_n "(cached) " >&6
17811 else
17812 eval "$as_ac_Header=\$ac_header_preproc"
17813 fi
17814 ac_res=`eval 'as_val=${'$as_ac_Header'}
17815 $as_echo "$as_val"'`
17816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17817 $as_echo "$ac_res" >&6; }
17818
17819 fi
17820 as_val=`eval 'as_val=${'$as_ac_Header'}
17821 $as_echo "$as_val"'`
17822 if test "x$as_val" = x""yes; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17825 _ACEOF
17826
17827 else
17828 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17829 $as_echo "$as_me: error: bailing out" >&2;}
17830 { (exit 1); exit 1; }; }
17831 fi
17832
17833 done
17834
17835 fi
17836
17837 if test x$UDEV_SYNC = xyes; then
17838
17839
17840 for ac_header in sys/ipc.h sys/sem.h
17841 do
17842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17845 $as_echo_n "checking for $ac_header... " >&6; }
17846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17847 $as_echo_n "(cached) " >&6
17848 fi
17849 ac_res=`eval 'as_val=${'$as_ac_Header'}
17850 $as_echo "$as_val"'`
17851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17852 $as_echo "$ac_res" >&6; }
17853 else
17854 # Is the header compilable?
17855 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17856 $as_echo_n "checking $ac_header usability... " >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h. */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17864 #include <$ac_header>
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871 esac
17872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17873 $as_echo "$ac_try_echo") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 ac_header_compiler=yes
17885 else
17886 $as_echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 ac_header_compiler=no
17890 fi
17891
17892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17894 $as_echo "$ac_header_compiler" >&6; }
17895
17896 # Is the header present?
17897 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17898 $as_echo_n "checking $ac_header presence... " >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <$ac_header>
17906 _ACEOF
17907 if { (ac_try="$ac_cpp conftest.$ac_ext"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 }; then
17924 ac_header_preproc=yes
17925 else
17926 $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_header_preproc=no
17930 fi
17931
17932 rm -f conftest.err conftest.$ac_ext
17933 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17934 $as_echo "$ac_header_preproc" >&6; }
17935
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17938 yes:no: )
17939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17940 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17943 ac_header_preproc=yes
17944 ;;
17945 no:yes:* )
17946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17947 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17949 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17951 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17953 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17957 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17958
17959 ;;
17960 esac
17961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 $as_echo_n "checking for $ac_header... " >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 $as_echo_n "(cached) " >&6
17965 else
17966 eval "$as_ac_Header=\$ac_header_preproc"
17967 fi
17968 ac_res=`eval 'as_val=${'$as_ac_Header'}
17969 $as_echo "$as_val"'`
17970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17971 $as_echo "$ac_res" >&6; }
17972
17973 fi
17974 as_val=`eval 'as_val=${'$as_ac_Header'}
17975 $as_echo "$as_val"'`
17976 if test "x$as_val" = x""yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17979 _ACEOF
17980
17981 else
17982 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17983 $as_echo "$as_me: error: bailing out" >&2;}
17984 { (exit 1); exit 1; }; }
17985 fi
17986
17987 done
17988
17989 fi
17990
17991 ################################################################################
17992 # Extract the first word of "modprobe", so it can be a program name with args.
17993 set dummy modprobe; ac_word=$2
17994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17995 $as_echo_n "checking for $ac_word... " >&6; }
17996 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
17997 $as_echo_n "(cached) " >&6
17998 else
17999 case $MODPROBE_CMD in
18000 [\\/]* | ?:[\\/]*)
18001 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
18002 ;;
18003 *)
18004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18005 for as_dir in $PATH
18006 do
18007 IFS=$as_save_IFS
18008 test -z "$as_dir" && as_dir=.
18009 for ac_exec_ext in '' $ac_executable_extensions; do
18010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18011 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
18012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18013 break 2
18014 fi
18015 done
18016 done
18017 IFS=$as_save_IFS
18018
18019 ;;
18020 esac
18021 fi
18022 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
18023 if test -n "$MODPROBE_CMD"; then
18024 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
18025 $as_echo "$MODPROBE_CMD" >&6; }
18026 else
18027 { $as_echo "$as_me:$LINENO: result: no" >&5
18028 $as_echo "no" >&6; }
18029 fi
18030
18031
18032
18033 if test x$MODPROBE_CMD != x; then
18034
18035 cat >>confdefs.h <<_ACEOF
18036 #define MODPROBE_CMD "$MODPROBE_CMD"
18037 _ACEOF
18038
18039 fi
18040
18041
18042 lvm_exec_prefix=$exec_prefix
18043 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
18044 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
18045
18046 cat >>confdefs.h <<_ACEOF
18047 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
18048 _ACEOF
18049
18050
18051 if test "$CLVMD" != none; then
18052 clvmd_prefix=$ac_default_prefix
18053 test "$prefix" != NONE && clvmd_prefix=$prefix
18054
18055 cat >>confdefs.h <<_ACEOF
18056 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
18057 _ACEOF
18058
18059 fi
18060
18061 ################################################################################
18062 if test "$BUILD_DMEVENTD" = yes; then
18063
18064 # Check whether --with-dmeventd-pidfile was given.
18065 if test "${with_dmeventd_pidfile+set}" = set; then
18066 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
18067 else
18068 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
18069 fi
18070
18071
18072 cat >>confdefs.h <<_ACEOF
18073 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
18074 _ACEOF
18075
18076 fi
18077
18078 if test "$BUILD_DMEVENTD" = yes; then
18079
18080 # Check whether --with-dmeventd-path was given.
18081 if test "${with_dmeventd_path+set}" = set; then
18082 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
18083 else
18084 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
18085 fi
18086
18087
18088 cat >>confdefs.h <<_ACEOF
18089 #define DMEVENTD_PATH "$DMEVENTD_PATH"
18090 _ACEOF
18091
18092 fi
18093
18094
18095
18096
18097 # Check whether --with-default-run-dir was given.
18098 if test "${with_default_run_dir+set}" = set; then
18099 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
18100 else
18101 DEFAULT_RUN_DIR="/var/run/lvm"
18102 fi
18103
18104 cat >>confdefs.h <<_ACEOF
18105 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
18106 _ACEOF
18107
18108
18109 ################################################################################
18110
18111 # Check whether --with-default-system-dir was given.
18112 if test "${with_default_system_dir+set}" = set; then
18113 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
18114 else
18115 DEFAULT_SYS_DIR="/etc/lvm"
18116 fi
18117
18118
18119 cat >>confdefs.h <<_ACEOF
18120 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
18121 _ACEOF
18122
18123
18124
18125 # Check whether --with-default-archive-subdir was given.
18126 if test "${with_default_archive_subdir+set}" = set; then
18127 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
18128 else
18129 DEFAULT_ARCHIVE_SUBDIR=archive
18130 fi
18131
18132
18133 cat >>confdefs.h <<_ACEOF
18134 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
18135 _ACEOF
18136
18137
18138
18139 # Check whether --with-default-backup-subdir was given.
18140 if test "${with_default_backup_subdir+set}" = set; then
18141 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
18142 else
18143 DEFAULT_BACKUP_SUBDIR=backup
18144 fi
18145
18146
18147 cat >>confdefs.h <<_ACEOF
18148 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18149 _ACEOF
18150
18151
18152
18153 # Check whether --with-default-cache-subdir was given.
18154 if test "${with_default_cache_subdir+set}" = set; then
18155 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
18156 else
18157 DEFAULT_CACHE_SUBDIR=cache
18158 fi
18159
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18163 _ACEOF
18164
18165
18166
18167 # Check whether --with-default-locking-dir was given.
18168 if test "${with_default_locking_dir+set}" = set; then
18169 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
18170 else
18171 DEFAULT_LOCK_DIR="/var/lock/lvm"
18172 fi
18173
18174
18175 cat >>confdefs.h <<_ACEOF
18176 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18177 _ACEOF
18178
18179
18180 ################################################################################
18181
18182 # Check whether --with-default-data-alignment was given.
18183 if test "${with_default_data_alignment+set}" = set; then
18184 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
18185 else
18186 DEFAULT_DATA_ALIGNMENT=1
18187 fi
18188
18189
18190 cat >>confdefs.h <<_ACEOF
18191 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
18192 _ACEOF
18193
18194
18195 ################################################################################
18196 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18197 $as_echo_n "checking for kernel interface choice... " >&6; }
18198
18199 # Check whether --with-interface was given.
18200 if test "${with_interface+set}" = set; then
18201 withval=$with_interface; interface=$withval
18202 else
18203 interface=ioctl
18204 fi
18205
18206 if [ "x$interface" != xioctl ];
18207 then
18208 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18209 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
18210 { (exit 1); exit 1; }; }
18211 fi
18212 { $as_echo "$as_me:$LINENO: result: $interface" >&5
18213 $as_echo "$interface" >&6; }
18214
18215 ################################################################################
18216 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
18217
18218 cat >>confdefs.h <<_ACEOF
18219 #define DM_LIB_VERSION $DM_LIB_VERSION
18220 _ACEOF
18221
18222
18223 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
18224
18225 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
18226
18227 VER=`cat "$srcdir"/VERSION`
18228 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
18229 VER=`echo "$VER" | $AWK '{print $1}'`
18230 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18231 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18232 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18233 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
18234 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18235 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
18236
18237 ################################################################################
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339 ################################################################################
18340 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 doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/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 unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
18341
18342 cat >confcache <<\_ACEOF
18343 # This file is a shell script that caches the results of configure
18344 # tests run on this system so they can be shared between configure
18345 # scripts and configure runs, see configure's option --config-cache.
18346 # It is not useful on other systems. If it contains results you don't
18347 # want to keep, you may remove or edit it.
18348 #
18349 # config.status only pays attention to the cache file if you give it
18350 # the --recheck option to rerun configure.
18351 #
18352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18354 # following values.
18355
18356 _ACEOF
18357
18358 # The following way of writing the cache mishandles newlines in values,
18359 # but we know of no workaround that is simple, portable, and efficient.
18360 # So, we kill variables containing newlines.
18361 # Ultrix sh set writes to stderr and can't be redirected directly,
18362 # and sets the high bit in the cache file unless we assign to the vars.
18363 (
18364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18365 eval ac_val=\$$ac_var
18366 case $ac_val in #(
18367 *${as_nl}*)
18368 case $ac_var in #(
18369 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18370 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18371 esac
18372 case $ac_var in #(
18373 _ | IFS | as_nl) ;; #(
18374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18375 *) $as_unset $ac_var ;;
18376 esac ;;
18377 esac
18378 done
18379
18380 (set) 2>&1 |
18381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18382 *${as_nl}ac_space=\ *)
18383 # `set' does not quote correctly, so add quotes (double-quote
18384 # substitution turns \\\\ into \\, and sed turns \\ into \).
18385 sed -n \
18386 "s/'/'\\\\''/g;
18387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18388 ;; #(
18389 *)
18390 # `set' quotes correctly as required by POSIX, so do not add quotes.
18391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18392 ;;
18393 esac |
18394 sort
18395 ) |
18396 sed '
18397 /^ac_cv_env_/b end
18398 t clear
18399 :clear
18400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18401 t end
18402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18403 :end' >>confcache
18404 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18405 if test -w "$cache_file"; then
18406 test "x$cache_file" != "x/dev/null" &&
18407 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18408 $as_echo "$as_me: updating cache $cache_file" >&6;}
18409 cat confcache >$cache_file
18410 else
18411 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18412 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18413 fi
18414 fi
18415 rm -f confcache
18416
18417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18418 # Let make expand exec_prefix.
18419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18420
18421 DEFS=-DHAVE_CONFIG_H
18422
18423 ac_libobjs=
18424 ac_ltlibobjs=
18425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18426 # 1. Remove the extension, and $U if already installed.
18427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18430 # will be set to the directory where LIBOBJS objects are built.
18431 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18432 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18433 done
18434 LIBOBJS=$ac_libobjs
18435
18436 LTLIBOBJS=$ac_ltlibobjs
18437
18438
18439
18440 : ${CONFIG_STATUS=./config.status}
18441 ac_write_fail=0
18442 ac_clean_files_save=$ac_clean_files
18443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18444 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18445 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18446 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18447 #! $SHELL
18448 # Generated by $as_me.
18449 # Run this file to recreate the current configuration.
18450 # Compiler output produced by configure, useful for debugging
18451 # configure, is in config.log if it exists.
18452
18453 debug=false
18454 ac_cs_recheck=false
18455 ac_cs_silent=false
18456 SHELL=\${CONFIG_SHELL-$SHELL}
18457 _ACEOF
18458
18459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18460 ## --------------------- ##
18461 ## M4sh Initialization. ##
18462 ## --------------------- ##
18463
18464 # Be more Bourne compatible
18465 DUALCASE=1; export DUALCASE # for MKS sh
18466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18467 emulate sh
18468 NULLCMD=:
18469 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18470 # is contrary to our usage. Disable this feature.
18471 alias -g '${1+"$@"}'='"$@"'
18472 setopt NO_GLOB_SUBST
18473 else
18474 case `(set -o) 2>/dev/null` in
18475 *posix*) set -o posix ;;
18476 esac
18477
18478 fi
18479
18480
18481
18482
18483 # PATH needs CR
18484 # Avoid depending upon Character Ranges.
18485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18488 as_cr_digits='0123456789'
18489 as_cr_alnum=$as_cr_Letters$as_cr_digits
18490
18491 as_nl='
18492 '
18493 export as_nl
18494 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18495 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18498 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18499 as_echo='printf %s\n'
18500 as_echo_n='printf %s'
18501 else
18502 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18503 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18504 as_echo_n='/usr/ucb/echo -n'
18505 else
18506 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18507 as_echo_n_body='eval
18508 arg=$1;
18509 case $arg in
18510 *"$as_nl"*)
18511 expr "X$arg" : "X\\(.*\\)$as_nl";
18512 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18513 esac;
18514 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18515 '
18516 export as_echo_n_body
18517 as_echo_n='sh -c $as_echo_n_body as_echo'
18518 fi
18519 export as_echo_body
18520 as_echo='sh -c $as_echo_body as_echo'
18521 fi
18522
18523 # The user is always right.
18524 if test "${PATH_SEPARATOR+set}" != set; then
18525 PATH_SEPARATOR=:
18526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18528 PATH_SEPARATOR=';'
18529 }
18530 fi
18531
18532 # Support unset when possible.
18533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18534 as_unset=unset
18535 else
18536 as_unset=false
18537 fi
18538
18539
18540 # IFS
18541 # We need space, tab and new line, in precisely that order. Quoting is
18542 # there to prevent editors from complaining about space-tab.
18543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18544 # splitting by setting IFS to empty value.)
18545 IFS=" "" $as_nl"
18546
18547 # Find who we are. Look in the path if we contain no directory separator.
18548 case $0 in
18549 *[\\/]* ) as_myself=$0 ;;
18550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18551 for as_dir in $PATH
18552 do
18553 IFS=$as_save_IFS
18554 test -z "$as_dir" && as_dir=.
18555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18556 done
18557 IFS=$as_save_IFS
18558
18559 ;;
18560 esac
18561 # We did not find ourselves, most probably we were run as `sh COMMAND'
18562 # in which case we are not to be found in the path.
18563 if test "x$as_myself" = x; then
18564 as_myself=$0
18565 fi
18566 if test ! -f "$as_myself"; then
18567 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18568 { (exit 1); exit 1; }
18569 fi
18570
18571 # Work around bugs in pre-3.0 UWIN ksh.
18572 for as_var in ENV MAIL MAILPATH
18573 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18574 done
18575 PS1='$ '
18576 PS2='> '
18577 PS4='+ '
18578
18579 # NLS nuisances.
18580 LC_ALL=C
18581 export LC_ALL
18582 LANGUAGE=C
18583 export LANGUAGE
18584
18585 # Required to use basename.
18586 if expr a : '\(a\)' >/dev/null 2>&1 &&
18587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18588 as_expr=expr
18589 else
18590 as_expr=false
18591 fi
18592
18593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18594 as_basename=basename
18595 else
18596 as_basename=false
18597 fi
18598
18599
18600 # Name of the executable.
18601 as_me=`$as_basename -- "$0" ||
18602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18603 X"$0" : 'X\(//\)$' \| \
18604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18605 $as_echo X/"$0" |
18606 sed '/^.*\/\([^/][^/]*\)\/*$/{
18607 s//\1/
18608 q
18609 }
18610 /^X\/\(\/\/\)$/{
18611 s//\1/
18612 q
18613 }
18614 /^X\/\(\/\).*/{
18615 s//\1/
18616 q
18617 }
18618 s/.*/./; q'`
18619
18620 # CDPATH.
18621 $as_unset CDPATH
18622
18623
18624
18625 as_lineno_1=$LINENO
18626 as_lineno_2=$LINENO
18627 test "x$as_lineno_1" != "x$as_lineno_2" &&
18628 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18629
18630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18631 # uniformly replaced by the line number. The first 'sed' inserts a
18632 # line-number line after each line using $LINENO; the second 'sed'
18633 # does the real work. The second script uses 'N' to pair each
18634 # line-number line with the line containing $LINENO, and appends
18635 # trailing '-' during substitution so that $LINENO is not a special
18636 # case at line end.
18637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18638 # scripts with optimization help from Paolo Bonzini. Blame Lee
18639 # E. McMahon (1931-1989) for sed's syntax. :-)
18640 sed -n '
18641 p
18642 /[$]LINENO/=
18643 ' <$as_myself |
18644 sed '
18645 s/[$]LINENO.*/&-/
18646 t lineno
18647 b
18648 :lineno
18649 N
18650 :loop
18651 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18652 t loop
18653 s/-\n.*//
18654 ' >$as_me.lineno &&
18655 chmod +x "$as_me.lineno" ||
18656 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18657 { (exit 1); exit 1; }; }
18658
18659 # Don't try to exec as it changes $[0], causing all sort of problems
18660 # (the dirname of $[0] is not the place where we might find the
18661 # original and so on. Autoconf is especially sensitive to this).
18662 . "./$as_me.lineno"
18663 # Exit status is that of the last command.
18664 exit
18665 }
18666
18667
18668 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18669 as_dirname=dirname
18670 else
18671 as_dirname=false
18672 fi
18673
18674 ECHO_C= ECHO_N= ECHO_T=
18675 case `echo -n x` in
18676 -n*)
18677 case `echo 'x\c'` in
18678 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18679 *) ECHO_C='\c';;
18680 esac;;
18681 *)
18682 ECHO_N='-n';;
18683 esac
18684 if expr a : '\(a\)' >/dev/null 2>&1 &&
18685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18686 as_expr=expr
18687 else
18688 as_expr=false
18689 fi
18690
18691 rm -f conf$$ conf$$.exe conf$$.file
18692 if test -d conf$$.dir; then
18693 rm -f conf$$.dir/conf$$.file
18694 else
18695 rm -f conf$$.dir
18696 mkdir conf$$.dir 2>/dev/null
18697 fi
18698 if (echo >conf$$.file) 2>/dev/null; then
18699 if ln -s conf$$.file conf$$ 2>/dev/null; then
18700 as_ln_s='ln -s'
18701 # ... but there are two gotchas:
18702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18704 # In both cases, we have to default to `cp -p'.
18705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18706 as_ln_s='cp -p'
18707 elif ln conf$$.file conf$$ 2>/dev/null; then
18708 as_ln_s=ln
18709 else
18710 as_ln_s='cp -p'
18711 fi
18712 else
18713 as_ln_s='cp -p'
18714 fi
18715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18716 rmdir conf$$.dir 2>/dev/null
18717
18718 if mkdir -p . 2>/dev/null; then
18719 as_mkdir_p=:
18720 else
18721 test -d ./-p && rmdir ./-p
18722 as_mkdir_p=false
18723 fi
18724
18725 if test -x / >/dev/null 2>&1; then
18726 as_test_x='test -x'
18727 else
18728 if ls -dL / >/dev/null 2>&1; then
18729 as_ls_L_option=L
18730 else
18731 as_ls_L_option=
18732 fi
18733 as_test_x='
18734 eval sh -c '\''
18735 if test -d "$1"; then
18736 test -d "$1/.";
18737 else
18738 case $1 in
18739 -*)set "./$1";;
18740 esac;
18741 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18742 ???[sx]*):;;*)false;;esac;fi
18743 '\'' sh
18744 '
18745 fi
18746 as_executable_p=$as_test_x
18747
18748 # Sed expression to map a string onto a valid CPP name.
18749 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18750
18751 # Sed expression to map a string onto a valid variable name.
18752 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18753
18754
18755 exec 6>&1
18756
18757 # Save the log message, to keep $[0] and so on meaningful, and to
18758 # report actual input values of CONFIG_FILES etc. instead of their
18759 # values after options handling.
18760 ac_log="
18761 This file was extended by $as_me, which was
18762 generated by GNU Autoconf 2.63. Invocation command line was
18763
18764 CONFIG_FILES = $CONFIG_FILES
18765 CONFIG_HEADERS = $CONFIG_HEADERS
18766 CONFIG_LINKS = $CONFIG_LINKS
18767 CONFIG_COMMANDS = $CONFIG_COMMANDS
18768 $ $0 $@
18769
18770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18771 "
18772
18773 _ACEOF
18774
18775 case $ac_config_files in *"
18776 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18777 esac
18778
18779 case $ac_config_headers in *"
18780 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18781 esac
18782
18783
18784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18785 # Files that config.status was made for.
18786 config_files="$ac_config_files"
18787 config_headers="$ac_config_headers"
18788
18789 _ACEOF
18790
18791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18792 ac_cs_usage="\
18793 \`$as_me' instantiates files from templates according to the
18794 current configuration.
18795
18796 Usage: $0 [OPTION]... [FILE]...
18797
18798 -h, --help print this help, then exit
18799 -V, --version print version number and configuration settings, then exit
18800 -q, --quiet, --silent
18801 do not print progress messages
18802 -d, --debug don't remove temporary files
18803 --recheck update $as_me by reconfiguring in the same conditions
18804 --file=FILE[:TEMPLATE]
18805 instantiate the configuration file FILE
18806 --header=FILE[:TEMPLATE]
18807 instantiate the configuration header FILE
18808
18809 Configuration files:
18810 $config_files
18811
18812 Configuration headers:
18813 $config_headers
18814
18815 Report bugs to <bug-autoconf@gnu.org>."
18816
18817 _ACEOF
18818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18819 ac_cs_version="\\
18820 config.status
18821 configured by $0, generated by GNU Autoconf 2.63,
18822 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18823
18824 Copyright (C) 2008 Free Software Foundation, Inc.
18825 This config.status script is free software; the Free Software Foundation
18826 gives unlimited permission to copy, distribute and modify it."
18827
18828 ac_pwd='$ac_pwd'
18829 srcdir='$srcdir'
18830 INSTALL='$INSTALL'
18831 MKDIR_P='$MKDIR_P'
18832 AWK='$AWK'
18833 test -n "\$AWK" || AWK=awk
18834 _ACEOF
18835
18836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18837 # The default lists apply if the user does not specify any file.
18838 ac_need_defaults=:
18839 while test $# != 0
18840 do
18841 case $1 in
18842 --*=*)
18843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18845 ac_shift=:
18846 ;;
18847 *)
18848 ac_option=$1
18849 ac_optarg=$2
18850 ac_shift=shift
18851 ;;
18852 esac
18853
18854 case $ac_option in
18855 # Handling of the options.
18856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18857 ac_cs_recheck=: ;;
18858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18859 $as_echo "$ac_cs_version"; exit ;;
18860 --debug | --debu | --deb | --de | --d | -d )
18861 debug=: ;;
18862 --file | --fil | --fi | --f )
18863 $ac_shift
18864 case $ac_optarg in
18865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18866 esac
18867 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18868 ac_need_defaults=false;;
18869 --header | --heade | --head | --hea )
18870 $ac_shift
18871 case $ac_optarg in
18872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18873 esac
18874 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18875 ac_need_defaults=false;;
18876 --he | --h)
18877 # Conflict between --help and --header
18878 { $as_echo "$as_me: error: ambiguous option: $1
18879 Try \`$0 --help' for more information." >&2
18880 { (exit 1); exit 1; }; };;
18881 --help | --hel | -h )
18882 $as_echo "$ac_cs_usage"; exit ;;
18883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18885 ac_cs_silent=: ;;
18886
18887 # This is an error.
18888 -*) { $as_echo "$as_me: error: unrecognized option: $1
18889 Try \`$0 --help' for more information." >&2
18890 { (exit 1); exit 1; }; } ;;
18891
18892 *) ac_config_targets="$ac_config_targets $1"
18893 ac_need_defaults=false ;;
18894
18895 esac
18896 shift
18897 done
18898
18899 ac_configure_extra_args=
18900
18901 if $ac_cs_silent; then
18902 exec 6>/dev/null
18903 ac_configure_extra_args="$ac_configure_extra_args --silent"
18904 fi
18905
18906 _ACEOF
18907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18908 if \$ac_cs_recheck; then
18909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18910 shift
18911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18912 CONFIG_SHELL='$SHELL'
18913 export CONFIG_SHELL
18914 exec "\$@"
18915 fi
18916
18917 _ACEOF
18918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18919 exec 5>>config.log
18920 {
18921 echo
18922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18923 ## Running $as_me. ##
18924 _ASBOX
18925 $as_echo "$ac_log"
18926 } >&5
18927
18928 _ACEOF
18929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18930 _ACEOF
18931
18932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18933
18934 # Handling of arguments.
18935 for ac_config_target in $ac_config_targets
18936 do
18937 case $ac_config_target in
18938 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18940 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18941 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18942 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
18943 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
18944 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18945 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
18946 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
18947 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
18948 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18949 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
18950 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18951 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
18952 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
18953 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18954 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18955 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18956 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18957 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18958 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
18959 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
18960 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
18961 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
18962 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18963 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
18964 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
18965 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
18966 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18967 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
18968 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
18969 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
18970 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
18971 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18972 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18973 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
18974 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18975 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
18976 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18977 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
18978 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
18979
18980 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18981 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18982 { (exit 1); exit 1; }; };;
18983 esac
18984 done
18985
18986
18987 # If the user did not use the arguments to specify the items to instantiate,
18988 # then the envvar interface is used. Set only those that are not.
18989 # We use the long form for the default assignment because of an extremely
18990 # bizarre bug on SunOS 4.1.3.
18991 if $ac_need_defaults; then
18992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18994 fi
18995
18996 # Have a temporary directory for convenience. Make it in the build tree
18997 # simply because there is no reason against having it here, and in addition,
18998 # creating and moving files from /tmp can sometimes cause problems.
18999 # Hook for its removal unless debugging.
19000 # Note that there is a small window in which the directory will not be cleaned:
19001 # after its creation but before its name has been assigned to `$tmp'.
19002 $debug ||
19003 {
19004 tmp=
19005 trap 'exit_status=$?
19006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19007 ' 0
19008 trap '{ (exit 1); exit 1; }' 1 2 13 15
19009 }
19010 # Create a (secure) tmp directory for tmp files.
19011
19012 {
19013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19014 test -n "$tmp" && test -d "$tmp"
19015 } ||
19016 {
19017 tmp=./conf$$-$RANDOM
19018 (umask 077 && mkdir "$tmp")
19019 } ||
19020 {
19021 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19022 { (exit 1); exit 1; }
19023 }
19024
19025 # Set up the scripts for CONFIG_FILES section.
19026 # No need to generate them if there are no CONFIG_FILES.
19027 # This happens for instance with `./config.status config.h'.
19028 if test -n "$CONFIG_FILES"; then
19029
19030
19031 ac_cr=' '
19032 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19033 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19034 ac_cs_awk_cr='\\r'
19035 else
19036 ac_cs_awk_cr=$ac_cr
19037 fi
19038
19039 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19040 _ACEOF
19041
19042
19043 {
19044 echo "cat >conf$$subs.awk <<_ACEOF" &&
19045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19046 echo "_ACEOF"
19047 } >conf$$subs.sh ||
19048 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19049 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19050 { (exit 1); exit 1; }; }
19051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19052 ac_delim='%!_!# '
19053 for ac_last_try in false false false false false :; do
19054 . ./conf$$subs.sh ||
19055 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19056 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19057 { (exit 1); exit 1; }; }
19058
19059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19060 if test $ac_delim_n = $ac_delim_num; then
19061 break
19062 elif $ac_last_try; then
19063 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19064 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19065 { (exit 1); exit 1; }; }
19066 else
19067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19068 fi
19069 done
19070 rm -f conf$$subs.sh
19071
19072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19074 _ACEOF
19075 sed -n '
19076 h
19077 s/^/S["/; s/!.*/"]=/
19078 p
19079 g
19080 s/^[^!]*!//
19081 :repl
19082 t repl
19083 s/'"$ac_delim"'$//
19084 t delim
19085 :nl
19086 h
19087 s/\(.\{148\}\).*/\1/
19088 t more1
19089 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19090 p
19091 n
19092 b repl
19093 :more1
19094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19095 p
19096 g
19097 s/.\{148\}//
19098 t nl
19099 :delim
19100 h
19101 s/\(.\{148\}\).*/\1/
19102 t more2
19103 s/["\\]/\\&/g; s/^/"/; s/$/"/
19104 p
19105 b
19106 :more2
19107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19108 p
19109 g
19110 s/.\{148\}//
19111 t delim
19112 ' <conf$$subs.awk | sed '
19113 /^[^""]/{
19114 N
19115 s/\n//
19116 }
19117 ' >>$CONFIG_STATUS || ac_write_fail=1
19118 rm -f conf$$subs.awk
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 _ACAWK
19121 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19122 for (key in S) S_is_set[key] = 1
19123 FS = "\a"
19124
19125 }
19126 {
19127 line = $ 0
19128 nfields = split(line, field, "@")
19129 substed = 0
19130 len = length(field[1])
19131 for (i = 2; i < nfields; i++) {
19132 key = field[i]
19133 keylen = length(key)
19134 if (S_is_set[key]) {
19135 value = S[key]
19136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19137 len += length(value) + length(field[++i])
19138 substed = 1
19139 } else
19140 len += 1 + keylen
19141 }
19142
19143 print line
19144 }
19145
19146 _ACAWK
19147 _ACEOF
19148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19149 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19151 else
19152 cat
19153 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19154 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19155 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19156 { (exit 1); exit 1; }; }
19157 _ACEOF
19158
19159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19161 # trailing colons and then remove the whole line if VPATH becomes empty
19162 # (actually we leave an empty line to preserve line numbers).
19163 if test "x$srcdir" = x.; then
19164 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19165 s/:*\$(srcdir):*/:/
19166 s/:*\${srcdir}:*/:/
19167 s/:*@srcdir@:*/:/
19168 s/^\([^=]*=[ ]*\):*/\1/
19169 s/:*$//
19170 s/^[^=]*=[ ]*$//
19171 }'
19172 fi
19173
19174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19175 fi # test -n "$CONFIG_FILES"
19176
19177 # Set up the scripts for CONFIG_HEADERS section.
19178 # No need to generate them if there are no CONFIG_HEADERS.
19179 # This happens for instance with `./config.status Makefile'.
19180 if test -n "$CONFIG_HEADERS"; then
19181 cat >"$tmp/defines.awk" <<\_ACAWK ||
19182 BEGIN {
19183 _ACEOF
19184
19185 # Transform confdefs.h into an awk script `defines.awk', embedded as
19186 # here-document in config.status, that substitutes the proper values into
19187 # config.h.in to produce config.h.
19188
19189 # Create a delimiter string that does not exist in confdefs.h, to ease
19190 # handling of long lines.
19191 ac_delim='%!_!# '
19192 for ac_last_try in false false :; do
19193 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19194 if test -z "$ac_t"; then
19195 break
19196 elif $ac_last_try; then
19197 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19198 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19199 { (exit 1); exit 1; }; }
19200 else
19201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19202 fi
19203 done
19204
19205 # For the awk script, D is an array of macro values keyed by name,
19206 # likewise P contains macro parameters if any. Preserve backslash
19207 # newline sequences.
19208
19209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19210 sed -n '
19211 s/.\{148\}/&'"$ac_delim"'/g
19212 t rset
19213 :rset
19214 s/^[ ]*#[ ]*define[ ][ ]*/ /
19215 t def
19216 d
19217 :def
19218 s/\\$//
19219 t bsnl
19220 s/["\\]/\\&/g
19221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19222 D["\1"]=" \3"/p
19223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19224 d
19225 :bsnl
19226 s/["\\]/\\&/g
19227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19228 D["\1"]=" \3\\\\\\n"\\/p
19229 t cont
19230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19231 t cont
19232 d
19233 :cont
19234 n
19235 s/.\{148\}/&'"$ac_delim"'/g
19236 t clear
19237 :clear
19238 s/\\$//
19239 t bsnlc
19240 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19241 d
19242 :bsnlc
19243 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19244 b cont
19245 ' <confdefs.h | sed '
19246 s/'"$ac_delim"'/"\\\
19247 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19248
19249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19250 for (key in D) D_is_set[key] = 1
19251 FS = "\a"
19252 }
19253 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19254 line = \$ 0
19255 split(line, arg, " ")
19256 if (arg[1] == "#") {
19257 defundef = arg[2]
19258 mac1 = arg[3]
19259 } else {
19260 defundef = substr(arg[1], 2)
19261 mac1 = arg[2]
19262 }
19263 split(mac1, mac2, "(") #)
19264 macro = mac2[1]
19265 prefix = substr(line, 1, index(line, defundef) - 1)
19266 if (D_is_set[macro]) {
19267 # Preserve the white space surrounding the "#".
19268 print prefix "define", macro P[macro] D[macro]
19269 next
19270 } else {
19271 # Replace #undef with comments. This is necessary, for example,
19272 # in the case of _POSIX_SOURCE, which is predefined and required
19273 # on some systems where configure will not decide to define it.
19274 if (defundef == "undef") {
19275 print "/*", prefix defundef, macro, "*/"
19276 next
19277 }
19278 }
19279 }
19280 { print }
19281 _ACAWK
19282 _ACEOF
19283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19284 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19285 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19286 { (exit 1); exit 1; }; }
19287 fi # test -n "$CONFIG_HEADERS"
19288
19289
19290 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19291 shift
19292 for ac_tag
19293 do
19294 case $ac_tag in
19295 :[FHLC]) ac_mode=$ac_tag; continue;;
19296 esac
19297 case $ac_mode$ac_tag in
19298 :[FHL]*:*);;
19299 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19300 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19301 { (exit 1); exit 1; }; };;
19302 :[FH]-) ac_tag=-:-;;
19303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19304 esac
19305 ac_save_IFS=$IFS
19306 IFS=:
19307 set x $ac_tag
19308 IFS=$ac_save_IFS
19309 shift
19310 ac_file=$1
19311 shift
19312
19313 case $ac_mode in
19314 :L) ac_source=$1;;
19315 :[FH])
19316 ac_file_inputs=
19317 for ac_f
19318 do
19319 case $ac_f in
19320 -) ac_f="$tmp/stdin";;
19321 *) # Look for the file first in the build tree, then in the source tree
19322 # (if the path is not absolute). The absolute path cannot be DOS-style,
19323 # because $ac_f cannot contain `:'.
19324 test -f "$ac_f" ||
19325 case $ac_f in
19326 [\\/$]*) false;;
19327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19328 esac ||
19329 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19330 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19331 { (exit 1); exit 1; }; };;
19332 esac
19333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19334 ac_file_inputs="$ac_file_inputs '$ac_f'"
19335 done
19336
19337 # Let's still pretend it is `configure' which instantiates (i.e., don't
19338 # use $as_me), people would be surprised to read:
19339 # /* config.h. Generated by config.status. */
19340 configure_input='Generated from '`
19341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19342 `' by configure.'
19343 if test x"$ac_file" != x-; then
19344 configure_input="$ac_file. $configure_input"
19345 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19346 $as_echo "$as_me: creating $ac_file" >&6;}
19347 fi
19348 # Neutralize special characters interpreted by sed in replacement strings.
19349 case $configure_input in #(
19350 *\&* | *\|* | *\\* )
19351 ac_sed_conf_input=`$as_echo "$configure_input" |
19352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19353 *) ac_sed_conf_input=$configure_input;;
19354 esac
19355
19356 case $ac_tag in
19357 *:-:* | *:-) cat >"$tmp/stdin" \
19358 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19360 { (exit 1); exit 1; }; } ;;
19361 esac
19362 ;;
19363 esac
19364
19365 ac_dir=`$as_dirname -- "$ac_file" ||
19366 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19367 X"$ac_file" : 'X\(//\)[^/]' \| \
19368 X"$ac_file" : 'X\(//\)$' \| \
19369 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19370 $as_echo X"$ac_file" |
19371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19372 s//\1/
19373 q
19374 }
19375 /^X\(\/\/\)[^/].*/{
19376 s//\1/
19377 q
19378 }
19379 /^X\(\/\/\)$/{
19380 s//\1/
19381 q
19382 }
19383 /^X\(\/\).*/{
19384 s//\1/
19385 q
19386 }
19387 s/.*/./; q'`
19388 { as_dir="$ac_dir"
19389 case $as_dir in #(
19390 -*) as_dir=./$as_dir;;
19391 esac
19392 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19393 as_dirs=
19394 while :; do
19395 case $as_dir in #(
19396 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19397 *) as_qdir=$as_dir;;
19398 esac
19399 as_dirs="'$as_qdir' $as_dirs"
19400 as_dir=`$as_dirname -- "$as_dir" ||
19401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19402 X"$as_dir" : 'X\(//\)[^/]' \| \
19403 X"$as_dir" : 'X\(//\)$' \| \
19404 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19405 $as_echo X"$as_dir" |
19406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19407 s//\1/
19408 q
19409 }
19410 /^X\(\/\/\)[^/].*/{
19411 s//\1/
19412 q
19413 }
19414 /^X\(\/\/\)$/{
19415 s//\1/
19416 q
19417 }
19418 /^X\(\/\).*/{
19419 s//\1/
19420 q
19421 }
19422 s/.*/./; q'`
19423 test -d "$as_dir" && break
19424 done
19425 test -z "$as_dirs" || eval "mkdir $as_dirs"
19426 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19427 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19428 { (exit 1); exit 1; }; }; }
19429 ac_builddir=.
19430
19431 case "$ac_dir" in
19432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19433 *)
19434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19435 # A ".." for each directory in $ac_dir_suffix.
19436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19437 case $ac_top_builddir_sub in
19438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19440 esac ;;
19441 esac
19442 ac_abs_top_builddir=$ac_pwd
19443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19444 # for backward compatibility:
19445 ac_top_builddir=$ac_top_build_prefix
19446
19447 case $srcdir in
19448 .) # We are building in place.
19449 ac_srcdir=.
19450 ac_top_srcdir=$ac_top_builddir_sub
19451 ac_abs_top_srcdir=$ac_pwd ;;
19452 [\\/]* | ?:[\\/]* ) # Absolute name.
19453 ac_srcdir=$srcdir$ac_dir_suffix;
19454 ac_top_srcdir=$srcdir
19455 ac_abs_top_srcdir=$srcdir ;;
19456 *) # Relative name.
19457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19458 ac_top_srcdir=$ac_top_build_prefix$srcdir
19459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19460 esac
19461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19462
19463
19464 case $ac_mode in
19465 :F)
19466 #
19467 # CONFIG_FILE
19468 #
19469
19470 case $INSTALL in
19471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19473 esac
19474 ac_MKDIR_P=$MKDIR_P
19475 case $MKDIR_P in
19476 [\\/$]* | ?:[\\/]* ) ;;
19477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19478 esac
19479 _ACEOF
19480
19481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19482 # If the template does not know about datarootdir, expand it.
19483 # FIXME: This hack should be removed a few years after 2.60.
19484 ac_datarootdir_hack=; ac_datarootdir_seen=
19485
19486 ac_sed_dataroot='
19487 /datarootdir/ {
19488 p
19489 q
19490 }
19491 /@datadir@/p
19492 /@docdir@/p
19493 /@infodir@/p
19494 /@localedir@/p
19495 /@mandir@/p
19496 '
19497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19498 *datarootdir*) ac_datarootdir_seen=yes;;
19499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19500 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19502 _ACEOF
19503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19504 ac_datarootdir_hack='
19505 s&@datadir@&$datadir&g
19506 s&@docdir@&$docdir&g
19507 s&@infodir@&$infodir&g
19508 s&@localedir@&$localedir&g
19509 s&@mandir@&$mandir&g
19510 s&\\\${datarootdir}&$datarootdir&g' ;;
19511 esac
19512 _ACEOF
19513
19514 # Neutralize VPATH when `$srcdir' = `.'.
19515 # Shell code in configure.ac might set extrasub.
19516 # FIXME: do we really want to maintain this feature?
19517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19518 ac_sed_extra="$ac_vpsub
19519 $extrasub
19520 _ACEOF
19521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19522 :t
19523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19524 s|@configure_input@|$ac_sed_conf_input|;t t
19525 s&@top_builddir@&$ac_top_builddir_sub&;t t
19526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19527 s&@srcdir@&$ac_srcdir&;t t
19528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19529 s&@top_srcdir@&$ac_top_srcdir&;t t
19530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19531 s&@builddir@&$ac_builddir&;t t
19532 s&@abs_builddir@&$ac_abs_builddir&;t t
19533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19534 s&@INSTALL@&$ac_INSTALL&;t t
19535 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19536 $ac_datarootdir_hack
19537 "
19538 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19539 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19540 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19541 { (exit 1); exit 1; }; }
19542
19543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19546 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19547 which seems to be undefined. Please make sure it is defined." >&5
19548 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19549 which seems to be undefined. Please make sure it is defined." >&2;}
19550
19551 rm -f "$tmp/stdin"
19552 case $ac_file in
19553 -) cat "$tmp/out" && rm -f "$tmp/out";;
19554 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19555 esac \
19556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19557 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19558 { (exit 1); exit 1; }; }
19559 ;;
19560 :H)
19561 #
19562 # CONFIG_HEADER
19563 #
19564 if test x"$ac_file" != x-; then
19565 {
19566 $as_echo "/* $configure_input */" \
19567 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19568 } >"$tmp/config.h" \
19569 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19570 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19571 { (exit 1); exit 1; }; }
19572 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19573 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19574 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19575 else
19576 rm -f "$ac_file"
19577 mv "$tmp/config.h" "$ac_file" \
19578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19579 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19580 { (exit 1); exit 1; }; }
19581 fi
19582 else
19583 $as_echo "/* $configure_input */" \
19584 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19585 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19586 $as_echo "$as_me: error: could not create -" >&2;}
19587 { (exit 1); exit 1; }; }
19588 fi
19589 ;;
19590
19591
19592 esac
19593
19594 done # for ac_tag
19595
19596
19597 { (exit 0); exit 0; }
19598 _ACEOF
19599 chmod +x $CONFIG_STATUS
19600 ac_clean_files=$ac_clean_files_save
19601
19602 test $ac_write_fail = 0 ||
19603 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19604 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19605 { (exit 1); exit 1; }; }
19606
19607
19608 # configure is writing to config.log, and then calls config.status.
19609 # config.status does its own redirection, appending to config.log.
19610 # Unfortunately, on DOS this fails, as config.log is still kept open
19611 # by configure, so config.status won't be able to write to it; its
19612 # output is simply discarded. So we exec the FD to /dev/null,
19613 # effectively closing config.log, so it can be properly (re)opened and
19614 # appended to by config.status. When coming back to configure, we
19615 # need to make the FD available again.
19616 if test "$no_create" != yes; then
19617 ac_cs_success=:
19618 ac_config_status_args=
19619 test "$silent" = yes &&
19620 ac_config_status_args="$ac_config_status_args --quiet"
19621 exec 5>/dev/null
19622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19623 exec 5>>config.log
19624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19625 # would make configure fail if this is the last instruction.
19626 $ac_cs_success || { (exit 1); exit 1; }
19627 fi
19628 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19629 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19630 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19631 fi
19632
19633
19634 if test x$ODIRECT != xyes; then
19635 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19636 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
19637 fi
This page took 1.086762 seconds and 6 git commands to generate.