]> sourceware.org Git - lvm2.git/blob - configure
autoreconf & add missing WHATS_NEW entry
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 udevdir
643 udev_prefix
644 tmpdir
645 kernelvsn
646 missingkernel
647 kerneldir
648 interface
649 UDEV_SYNC
650 UDEV_RULES
651 UDEV_LIBS
652 STATIC_LINK
653 STATICDIR
654 SNAPSHOTS
655 SELINUX_LIBS
656 READLINE_LIBS
657 PTHREAD_LIBS
658 POOL
659 PKGCONFIG
660 OWNER
661 MIRRORS
662 LVM_RELEASE_DATE
663 LVM_RELEASE
664 LVM_PATCHLEVEL
665 LVM_MINOR
666 LVM_MAJOR
667 LVM_LIBAPI
668 LVM_VERSION
669 LVM1_FALLBACK
670 LVM1
671 LOCALEDIR
672 LIB_SUFFIX
673 LDDEPS
674 JOBS
675 INTL_PACKAGE
676 INTL
677 HAVE_REALTIME
678 HAVE_LIBDL
679 GROUP
680 FSADM
681 DM_LIB_PATCHLEVEL
682 DM_LIB_VERSION
683 DM_IOCTLS
684 DM_DEVICE_UID
685 DM_DEVICE_MODE
686 DM_DEVICE_GID
687 DM_COMPAT
688 DMEVENTD
689 DL_LIBS
690 DEVMAPPER
691 DEBUG
692 COPTIMISE_FLAG
693 CONFDIR
694 CMDLIB
695 CLVMD
696 CLUSTER
697 CLDWHOLEARCHIVE
698 CLDNOWHOLEARCHIVE
699 CLDFLAGS
700 BUILD_DMEVENTD
701 BUILD_CMIRRORD
702 APPLIB
703 MODPROBE_CMD
704 MSGFMT
705 LVM2CMD_LIB
706 LVM2APP_LIB
707 GENHTML
708 LCOV
709 SACKPT_LIBS
710 SACKPT_CFLAGS
711 DLM_LIBS
712 DLM_CFLAGS
713 CPG_LIBS
714 CPG_CFLAGS
715 CONFDB_LIBS
716 CONFDB_CFLAGS
717 SALCK_LIBS
718 SALCK_CFLAGS
719 QUORUM_LIBS
720 QUORUM_CFLAGS
721 COROSYNC_LIBS
722 COROSYNC_CFLAGS
723 CMAN_LIBS
724 CMAN_CFLAGS
725 GULM_LIBS
726 GULM_CFLAGS
727 CCS_LIBS
728 CCS_CFLAGS
729 PKGCONFIGINIT_LIBS
730 PKGCONFIGINIT_CFLAGS
731 PKG_CONFIG
732 POW_LIB
733 LIBOBJS
734 ALLOCA
735 CSCOPE_CMD
736 CFLOW_CMD
737 RANLIB
738 MKDIR_P
739 SET_MAKE
740 LN_S
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 EGREP
745 GREP
746 CPP
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 AWK
755 SED
756 target_os
757 target_vendor
758 target_cpu
759 target
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_static_link
809 with_user
810 with_group
811 with_device_uid
812 with_device_gid
813 with_device_mode
814 enable_lvm1_fallback
815 with_lvm1
816 with_pool
817 with_cluster
818 with_snapshots
819 with_mirrors
820 enable_readline
821 enable_realtime
822 with_clvmd
823 enable_cmirrord
824 with_cmirrord_pidfile
825 enable_debug
826 with_optimisation
827 enable_profiling
828 enable_devmapper
829 enable_udev_sync
830 enable_udev_rules
831 enable_compat
832 enable_units_compat
833 enable_ioctl
834 enable_o_direct
835 enable_applib
836 enable_cmdlib
837 enable_pkgconfig
838 enable_fsadm
839 enable_dmeventd
840 enable_selinux
841 enable_nls
842 with_localedir
843 with_confdir
844 with_staticdir
845 with_usrlibdir
846 with_usrsbindir
847 with_udev_prefix
848 with_udevdir
849 with_dmeventd_pidfile
850 with_dmeventd_path
851 with_interface
852 '
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CPP
862 PKG_CONFIG
863 PKGCONFIGINIT_CFLAGS
864 PKGCONFIGINIT_LIBS
865 CCS_CFLAGS
866 CCS_LIBS
867 GULM_CFLAGS
868 GULM_LIBS
869 CMAN_CFLAGS
870 CMAN_LIBS
871 COROSYNC_CFLAGS
872 COROSYNC_LIBS
873 QUORUM_CFLAGS
874 QUORUM_LIBS
875 SALCK_CFLAGS
876 SALCK_LIBS
877 CONFDB_CFLAGS
878 CONFDB_LIBS
879 CPG_CFLAGS
880 CPG_LIBS
881 DLM_CFLAGS
882 DLM_LIBS
883 SACKPT_CFLAGS
884 SACKPT_LIBS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
994 { (exit 1); exit 1; }; }
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1015
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1220
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
1273 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283 { (exit 1); exit 1; }; }
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 ;;
1294
1295 esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1301 { (exit 1); exit 1; }; }
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1308 { (exit 1); exit 1; }; } ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1318 do
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1332 { (exit 1); exit 1; }; }
1333 done
1334
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1338 build=$build_alias
1339 host=$host_alias
1340 target=$target_alias
1341
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1363 { (exit 1); exit 1; }; }
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1366 { (exit 1); exit 1; }; }
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1406 { (exit 1); exit 1; }; }
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1411 { (exit 1); exit 1; }; }
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures this package to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-static_link Use this to link the tools to their libraries
1510 statically. Default is dynamic linking
1511 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1512 device-mapper is missing from the kernel
1513 --disable-readline Disable readline support
1514 --enable-realtime Enable realtime clock support
1515 --enable-cmirrord Enable the cluster mirror log daemon
1516 --enable-debug Enable debugging
1517 --enable-profiling Gather gcov profiling data
1518 --disable-devmapper Disable LVM2 device-mapper interaction
1519 --enable-udev_sync Enable synchronisation with udev processing
1520 --enable-udev_rules Install rule files needed for udev synchronisation
1521 --enable-compat Enable support for old device-mapper versions
1522 --enable-units-compat Enable output compatibility with old versions that
1523 that don't use KiB-style unit suffixes
1524 --disable-driver Disable calls to device-mapper in the kernel
1525 --disable-o_direct Disable O_DIRECT
1526 --enable-applib Build application library
1527 --enable-cmdlib Build shared command library
1528 --enable-pkgconfig Install pkgconfig support
1529 --disable-fsadm Disable fsadm
1530 --enable-dmeventd Enable the device-mapper event daemon
1531 --disable-selinux Disable selinux support
1532 --enable-nls Enable Native Language Support
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-user=USER Set the owner of installed files [USER=]
1538 --with-group=GROUP Set the group owner of installed files [GROUP=]
1539 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1540 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1541 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1542 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1543 TYPE=internal
1544 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1545 TYPE=internal
1546 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1547 TYPE=internal
1548 --with-snapshots=TYPE Snapshot support: internal/shared/none
1549 TYPE=internal
1550 --with-mirrors=TYPE Mirror support: internal/shared/none
1551 TYPE=internal
1552 --with-clvmd=TYPE Build cluster LVM Daemon.
1553 The following cluster manager combinations are valid:
1554 * cman,gulm (RHEL4 or equivalent)
1555 * cman (RHEL5 or equivalent)
1556 * cman,corosync,openais (or selection of them)
1557 * singlenode (localhost only)
1558 * all (autodetect)
1559 * none (disable build)
1560 TYPE=none
1561 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1562 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1563 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1564 --with-confdir=DIR Configuration files in DIR [/etc]
1565 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1566 --with-usrlibdir=DIR
1567 --with-usrsbindir=DIR
1568 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1569 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1570 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1571 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1572 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 PKG_CONFIG path to pkg-config utility
1584 PKGCONFIGINIT_CFLAGS
1585 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1586 PKGCONFIGINIT_LIBS
1587 linker flags for PKGCONFIGINIT, overriding pkg-config
1588 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1589 CCS_LIBS linker flags for CCS, overriding pkg-config
1590 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1591 GULM_LIBS linker flags for GULM, overriding pkg-config
1592 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1593 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1594 COROSYNC_CFLAGS
1595 C compiler flags for COROSYNC, overriding pkg-config
1596 COROSYNC_LIBS
1597 linker flags for COROSYNC, overriding pkg-config
1598 QUORUM_CFLAGS
1599 C compiler flags for QUORUM, overriding pkg-config
1600 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1601 SALCK_CFLAGS
1602 C compiler flags for SALCK, overriding pkg-config
1603 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1604 CONFDB_CFLAGS
1605 C compiler flags for CONFDB, overriding pkg-config
1606 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1607 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1608 CPG_LIBS linker flags for CPG, overriding pkg-config
1609 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1610 DLM_LIBS linker flags for DLM, overriding pkg-config
1611 SACKPT_CFLAGS
1612 C compiler flags for SACKPT, overriding pkg-config
1613 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1614
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1617
1618 _ACEOF
1619 ac_status=$?
1620 fi
1621
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1628 ac_builddir=.
1629
1630 case "$ac_dir" in
1631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *)
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640 esac
1641 ac_abs_top_builddir=$ac_pwd
1642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643 # for backward compatibility:
1644 ac_top_builddir=$ac_top_build_prefix
1645
1646 case $srcdir in
1647 .) # We are building in place.
1648 ac_srcdir=.
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1652 ac_srcdir=$srcdir$ac_dir_suffix;
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 esac
1660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
1670 else
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
1674 done
1675 fi
1676
1677 test -n "$ac_init_help" && exit $ac_status
1678 if $ac_init_version; then
1679 cat <<\_ACEOF
1680 configure
1681 generated by GNU Autoconf 2.63
1682
1683 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1684 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688 exit
1689 fi
1690 cat >config.log <<_ACEOF
1691 This file contains any messages produced by compilers while
1692 running configure, to aid debugging if configure makes a mistake.
1693
1694 It was created by $as_me, which was
1695 generated by GNU Autoconf 2.63. Invocation command line was
1696
1697 $ $0 $@
1698
1699 _ACEOF
1700 exec 5>>config.log
1701 {
1702 cat <<_ASUNAME
1703 ## --------- ##
1704 ## Platform. ##
1705 ## --------- ##
1706
1707 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1708 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1709 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1710 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1711 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1712
1713 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1714 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1715
1716 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1717 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1718 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1719 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1720 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1721 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1722 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1723
1724 _ASUNAME
1725
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 $as_echo "PATH: $as_dir"
1732 done
1733 IFS=$as_save_IFS
1734
1735 } >&5
1736
1737 cat >&5 <<_ACEOF
1738
1739
1740 ## ----------- ##
1741 ## Core tests. ##
1742 ## ----------- ##
1743
1744 _ACEOF
1745
1746
1747 # Keep a trace of the command line.
1748 # Strip out --no-create and --no-recursion so they do not pile up.
1749 # Strip out --silent because we don't want to record it for future runs.
1750 # Also quote any args containing shell meta-characters.
1751 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_configure_args=
1753 ac_configure_args0=
1754 ac_configure_args1=
1755 ac_must_keep_next=false
1756 for ac_pass in 1 2
1757 do
1758 for ac_arg
1759 do
1760 case $ac_arg in
1761 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763 | -silent | --silent | --silen | --sile | --sil)
1764 continue ;;
1765 *\'*)
1766 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1767 esac
1768 case $ac_pass in
1769 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1770 2)
1771 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1772 if test $ac_must_keep_next = true; then
1773 ac_must_keep_next=false # Got value, back to normal.
1774 else
1775 case $ac_arg in
1776 *=* | --config-cache | -C | -disable-* | --disable-* \
1777 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779 | -with-* | --with-* | -without-* | --without-* | --x)
1780 case "$ac_configure_args0 " in
1781 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782 esac
1783 ;;
1784 -* ) ac_must_keep_next=true ;;
1785 esac
1786 fi
1787 ac_configure_args="$ac_configure_args '$ac_arg'"
1788 ;;
1789 esac
1790 done
1791 done
1792 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1793 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1794
1795 # When interrupted or exit'd, cleanup temporary files, and complete
1796 # config.log. We remove comments because anyway the quotes in there
1797 # would cause problems or look ugly.
1798 # WARNING: Use '\'' to represent an apostrophe within the trap.
1799 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1800 trap 'exit_status=$?
1801 # Save into config.log some information that might help in debugging.
1802 {
1803 echo
1804
1805 cat <<\_ASBOX
1806 ## ---------------- ##
1807 ## Cache variables. ##
1808 ## ---------------- ##
1809 _ASBOX
1810 echo
1811 # The following way of writing the cache mishandles newlines in values,
1812 (
1813 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814 eval ac_val=\$$ac_var
1815 case $ac_val in #(
1816 *${as_nl}*)
1817 case $ac_var in #(
1818 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1819 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1820 esac
1821 case $ac_var in #(
1822 _ | IFS | as_nl) ;; #(
1823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1824 *) $as_unset $ac_var ;;
1825 esac ;;
1826 esac
1827 done
1828 (set) 2>&1 |
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1831 sed -n \
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 ;; #(
1835 *)
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837 ;;
1838 esac |
1839 sort
1840 )
1841 echo
1842
1843 cat <<\_ASBOX
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1847 _ASBOX
1848 echo
1849 for ac_var in $ac_subst_vars
1850 do
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 $as_echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1858
1859 if test -n "$ac_subst_files"; then
1860 cat <<\_ASBOX
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1864 _ASBOX
1865 echo
1866 for ac_var in $ac_subst_files
1867 do
1868 eval ac_val=\$$ac_var
1869 case $ac_val in
1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 esac
1872 $as_echo "$ac_var='\''$ac_val'\''"
1873 done | sort
1874 echo
1875 fi
1876
1877 if test -s confdefs.h; then
1878 cat <<\_ASBOX
1879 ## ----------- ##
1880 ## confdefs.h. ##
1881 ## ----------- ##
1882 _ASBOX
1883 echo
1884 cat confdefs.h
1885 echo
1886 fi
1887 test "$ac_signal" != 0 &&
1888 $as_echo "$as_me: caught signal $ac_signal"
1889 $as_echo "$as_me: exit $exit_status"
1890 } >&5
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893 exit $exit_status
1894 ' 0
1895 for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 done
1898 ac_signal=0
1899
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1902
1903 # Predefined preprocessor variables.
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 _ACEOF
1928
1929
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer an explicitly selected file to automatically selected ones.
1932 ac_site_file1=NONE
1933 ac_site_file2=NONE
1934 if test -n "$CONFIG_SITE"; then
1935 ac_site_file1=$CONFIG_SITE
1936 elif test "x$prefix" != xNONE; then
1937 ac_site_file1=$prefix/share/config.site
1938 ac_site_file2=$prefix/etc/config.site
1939 else
1940 ac_site_file1=$ac_default_prefix/share/config.site
1941 ac_site_file2=$ac_default_prefix/etc/config.site
1942 fi
1943 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1944 do
1945 test "x$ac_site_file" = xNONE && continue
1946 if test -r "$ac_site_file"; then
1947 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file"
1951 fi
1952 done
1953
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959 $as_echo "$as_me: loading cache $cache_file" >&6;}
1960 case $cache_file in
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1963 esac
1964 fi
1965 else
1966 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967 $as_echo "$as_me: creating cache $cache_file" >&6;}
1968 >$cache_file
1969 fi
1970
1971 # Check that the precious variables saved in the cache have kept the same
1972 # value.
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1980 set,)
1981 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1984 ,set)
1985 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1988 ,);;
1989 *)
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 # differences in whitespace do not lead to failure.
1992 ac_old_val_w=`echo x $ac_old_val`
1993 ac_new_val_w=`echo x $ac_new_val`
1994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1997 ac_cache_corrupted=:
1998 else
1999 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2001 eval $ac_var=\$ac_old_val
2002 fi
2003 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2004 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2005 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2006 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2007 fi;;
2008 esac
2009 # Pass precious variables to config.status.
2010 if test "$ac_new_set" = set; then
2011 case $ac_new_val in
2012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2013 *) ac_arg=$ac_var=$ac_new_val ;;
2014 esac
2015 case " $ac_configure_args " in
2016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2017 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2018 esac
2019 fi
2020 done
2021 if $ac_cache_corrupted; then
2022 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028 { (exit 1); exit 1; }; }
2029 fi
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052
2053
2054
2055 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2056
2057
2058 ################################################################################
2059 ac_aux_dir=
2060 for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
2065 elif test -f "$ac_dir/install.sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
2069 elif test -f "$ac_dir/shtool"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074 done
2075 if test -z "$ac_aux_dir"; then
2076 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
2089
2090
2091 ################################################################################
2092 # Make sure we can run config.sub.
2093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2094 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2096 { (exit 1); exit 1; }; }
2097
2098 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2099 $as_echo_n "checking build system type... " >&6; }
2100 if test "${ac_cv_build+set}" = set; then
2101 $as_echo_n "(cached) " >&6
2102 else
2103 ac_build_alias=$build_alias
2104 test "x$ac_build_alias" = x &&
2105 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106 test "x$ac_build_alias" = x &&
2107 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109 { (exit 1); exit 1; }; }
2110 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2111 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
2114
2115 fi
2116 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117 $as_echo "$ac_cv_build" >&6; }
2118 case $ac_cv_build in
2119 *-*-*) ;;
2120 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2122 { (exit 1); exit 1; }; };;
2123 esac
2124 build=$ac_cv_build
2125 ac_save_IFS=$IFS; IFS='-'
2126 set x $ac_cv_build
2127 shift
2128 build_cpu=$1
2129 build_vendor=$2
2130 shift; shift
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2133 build_os=$*
2134 IFS=$ac_save_IFS
2135 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2136
2137
2138 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2139 $as_echo_n "checking host system type... " >&6; }
2140 if test "${ac_cv_host+set}" = set; then
2141 $as_echo_n "(cached) " >&6
2142 else
2143 if test "x$host_alias" = x; then
2144 ac_cv_host=$ac_cv_build
2145 else
2146 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2147 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
2150 fi
2151
2152 fi
2153 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154 $as_echo "$ac_cv_host" >&6; }
2155 case $ac_cv_host in
2156 *-*-*) ;;
2157 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2159 { (exit 1); exit 1; }; };;
2160 esac
2161 host=$ac_cv_host
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_host
2164 shift
2165 host_cpu=$1
2166 host_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 host_os=$*
2171 IFS=$ac_save_IFS
2172 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173
2174
2175 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2176 $as_echo_n "checking target system type... " >&6; }
2177 if test "${ac_cv_target+set}" = set; then
2178 $as_echo_n "(cached) " >&6
2179 else
2180 if test "x$target_alias" = x; then
2181 ac_cv_target=$ac_cv_host
2182 else
2183 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2184 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2187 fi
2188
2189 fi
2190 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191 $as_echo "$ac_cv_target" >&6; }
2192 case $ac_cv_target in
2193 *-*-*) ;;
2194 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2196 { (exit 1); exit 1; }; };;
2197 esac
2198 target=$ac_cv_target
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_target
2201 shift
2202 target_cpu=$1
2203 target_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 target_os=$*
2208 IFS=$ac_save_IFS
2209 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2210
2211
2212 # The aliases save the names the user supplied, while $host etc.
2213 # will get canonicalized.
2214 test -n "$target_alias" &&
2215 test "$program_prefix$program_suffix$program_transform_name" = \
2216 NONENONEs,x,x, &&
2217 program_prefix=${target_alias}-
2218
2219 case "$host_os" in
2220 linux*)
2221 CFLAGS="$CFLAGS"
2222 COPTIMISE_FLAG="-O2"
2223 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2224 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2225 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2226 LDDEPS="$LDDEPS .export.sym"
2227 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2228 LIB_SUFFIX=so
2229 DEVMAPPER=yes
2230 ODIRECT=yes
2231 DM_IOCTLS=yes
2232 SELINUX=yes
2233 CLUSTER=internal
2234 FSADM=yes
2235 ;;
2236 darwin*)
2237 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2238 COPTIMISE_FLAG="-O2"
2239 CLDFLAGS="$CLDFLAGS"
2240 CLDWHOLEARCHIVE="-all_load"
2241 CLDNOWHOLEARCHIVE=
2242 LIB_SUFFIX=dylib
2243 DEVMAPPER=yes
2244 ODIRECT=no
2245 DM_IOCTLS=no
2246 SELINUX=no
2247 CLUSTER=none
2248 FSADM=no
2249 ;;
2250 esac
2251
2252 ################################################################################
2253 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2254 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2255 if test "${ac_cv_path_SED+set}" = set; then
2256 $as_echo_n "(cached) " >&6
2257 else
2258 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2259 for ac_i in 1 2 3 4 5 6 7; do
2260 ac_script="$ac_script$as_nl$ac_script"
2261 done
2262 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2263 $as_unset ac_script || ac_script=
2264 if test -z "$SED"; then
2265 ac_path_SED_found=false
2266 # Loop through the user's path and test for each of PROGNAME-LIST
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_prog in sed gsed; do
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2275 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2276 # Check for GNU ac_path_SED and select it if it is found.
2277 # Check for GNU $ac_path_SED
2278 case `"$ac_path_SED" --version 2>&1` in
2279 *GNU*)
2280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2281 *)
2282 ac_count=0
2283 $as_echo_n 0123456789 >"conftest.in"
2284 while :
2285 do
2286 cat "conftest.in" "conftest.in" >"conftest.tmp"
2287 mv "conftest.tmp" "conftest.in"
2288 cp "conftest.in" "conftest.nl"
2289 $as_echo '' >> "conftest.nl"
2290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2292 ac_count=`expr $ac_count + 1`
2293 if test $ac_count -gt ${ac_path_SED_max-0}; then
2294 # Best one so far, save it but keep looking for a better one
2295 ac_cv_path_SED="$ac_path_SED"
2296 ac_path_SED_max=$ac_count
2297 fi
2298 # 10*(2^10) chars as input seems more than enough
2299 test $ac_count -gt 10 && break
2300 done
2301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2302 esac
2303
2304 $ac_path_SED_found && break 3
2305 done
2306 done
2307 done
2308 IFS=$as_save_IFS
2309 if test -z "$ac_cv_path_SED"; then
2310 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2311 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2312 { (exit 1); exit 1; }; }
2313 fi
2314 else
2315 ac_cv_path_SED=$SED
2316 fi
2317
2318 fi
2319 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2320 $as_echo "$ac_cv_path_SED" >&6; }
2321 SED="$ac_cv_path_SED"
2322 rm -f conftest.sed
2323
2324 for ac_prog in gawk mawk nawk awk
2325 do
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 $as_echo_n "checking for $ac_word... " >&6; }
2330 if test "${ac_cv_prog_AWK+set}" = set; then
2331 $as_echo_n "(cached) " >&6
2332 else
2333 if test -n "$AWK"; then
2334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_AWK="$ac_prog"
2344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2346 fi
2347 done
2348 done
2349 IFS=$as_save_IFS
2350
2351 fi
2352 fi
2353 AWK=$ac_cv_prog_AWK
2354 if test -n "$AWK"; then
2355 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2356 $as_echo "$AWK" >&6; }
2357 else
2358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359 $as_echo "no" >&6; }
2360 fi
2361
2362
2363 test -n "$AWK" && break
2364 done
2365
2366 ac_ext=c
2367 ac_cpp='$CPP $CPPFLAGS'
2368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2403 else
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408
2409 fi
2410 if test -z "$ac_cv_prog_CC"; then
2411 ac_ct_CC=$CC
2412 # Extract the first word of "gcc", so it can be a program name with args.
2413 set dummy gcc; ac_word=$2
2414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_ac_ct_CC="gcc"
2430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440 if test -n "$ac_ct_CC"; then
2441 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2442 $as_echo "$ac_ct_CC" >&6; }
2443 else
2444 { $as_echo "$as_me:$LINENO: result: no" >&5
2445 $as_echo "no" >&6; }
2446 fi
2447
2448 if test "x$ac_ct_CC" = x; then
2449 CC=""
2450 else
2451 case $cross_compiling:$ac_tool_warned in
2452 yes:)
2453 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2455 ac_tool_warned=yes ;;
2456 esac
2457 CC=$ac_ct_CC
2458 fi
2459 else
2460 CC="$ac_cv_prog_CC"
2461 fi
2462
2463 if test -z "$CC"; then
2464 if test -n "$ac_tool_prefix"; then
2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2466 set dummy ${ac_tool_prefix}cc; ac_word=$2
2467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_CC="${ac_tool_prefix}cc"
2483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 CC=$ac_cv_prog_CC
2493 if test -n "$CC"; then
2494 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2495 $as_echo "$CC" >&6; }
2496 else
2497 { $as_echo "$as_me:$LINENO: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501
2502 fi
2503 fi
2504 if test -z "$CC"; then
2505 # Extract the first word of "cc", so it can be a program name with args.
2506 set dummy cc; ac_word=$2
2507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 ac_prog_rejected=no
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2524 ac_prog_rejected=yes
2525 continue
2526 fi
2527 ac_cv_prog_CC="cc"
2528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 if test $ac_prog_rejected = yes; then
2536 # We found a bogon in the path, so make sure we never use it.
2537 set dummy $ac_cv_prog_CC
2538 shift
2539 if test $# != 0; then
2540 # We chose a different compiler from the bogus one.
2541 # However, it has the same basename, so the bogon will be chosen
2542 # first if we set CC to just the basename; use the full file name.
2543 shift
2544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2545 fi
2546 fi
2547 fi
2548 fi
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2552 $as_echo "$CC" >&6; }
2553 else
2554 { $as_echo "$as_me:$LINENO: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558
2559 fi
2560 if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
2562 for ac_prog in cl.exe
2563 do
2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2594 $as_echo "$CC" >&6; }
2595 else
2596 { $as_echo "$as_me:$LINENO: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601 test -n "$CC" && break
2602 done
2603 fi
2604 if test -z "$CC"; then
2605 ac_ct_CC=$CC
2606 for ac_prog in cl.exe
2607 do
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy $ac_prog; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_CC="$ac_prog"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638 $as_echo "$ac_ct_CC" >&6; }
2639 else
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644
2645 test -n "$ac_ct_CC" && break
2646 done
2647
2648 if test "x$ac_ct_CC" = x; then
2649 CC=""
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652 yes:)
2653 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655 ac_tool_warned=yes ;;
2656 esac
2657 CC=$ac_ct_CC
2658 fi
2659 fi
2660
2661 fi
2662
2663
2664 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2667 See \`config.log' for more details." >&5
2668 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }; }
2671
2672 # Provide some information about the compiler.
2673 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2674 set X $ac_compile
2675 ac_compiler=$2
2676 { (ac_try="$ac_compiler --version >&5"
2677 case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682 $as_echo "$ac_try_echo") >&5
2683 (eval "$ac_compiler --version >&5") 2>&5
2684 ac_status=$?
2685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (ac_try="$ac_compiler -v >&5"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2693 $as_echo "$ac_try_echo") >&5
2694 (eval "$ac_compiler -v >&5") 2>&5
2695 ac_status=$?
2696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (ac_try="$ac_compiler -V >&5"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704 $as_echo "$ac_try_echo") >&5
2705 (eval "$ac_compiler -V >&5") 2>&5
2706 ac_status=$?
2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716
2717 int
2718 main ()
2719 {
2720
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 ac_clean_files_save=$ac_clean_files
2726 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2727 # Try to create an executable without -o first, disregard a.out.
2728 # It will help us diagnose broken compilers, and finding out an intuition
2729 # of exeext.
2730 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2731 $as_echo_n "checking for C compiler default output file name... " >&6; }
2732 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2733
2734 # The possible output files:
2735 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2736
2737 ac_rmfiles=
2738 for ac_file in $ac_files
2739 do
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743 esac
2744 done
2745 rm -f $ac_rmfiles
2746
2747 if { (ac_try="$ac_link_default"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753 $as_echo "$ac_try_echo") >&5
2754 (eval "$ac_link_default") 2>&5
2755 ac_status=$?
2756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2761 # so that the user can short-circuit this test for compilers unknown to
2762 # Autoconf.
2763 for ac_file in $ac_files ''
2764 do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2768 ;;
2769 [ab].out )
2770 # We found the default executable, but exeext='' is most
2771 # certainly right.
2772 break;;
2773 *.* )
2774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775 then :; else
2776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777 fi
2778 # We set ac_cv_exeext here because the later test for it is not
2779 # safe: cross compilers may not add the suffix if given an `-o'
2780 # argument, so we may need to know it at that point already.
2781 # Even if this section looks crufty: it has the advantage of
2782 # actually working.
2783 break;;
2784 * )
2785 break;;
2786 esac
2787 done
2788 test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
2790 else
2791 ac_file=''
2792 fi
2793
2794 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2795 $as_echo "$ac_file" >&6; }
2796 if test -z "$ac_file"; then
2797 $as_echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2803 See \`config.log' for more details." >&5
2804 $as_echo "$as_me: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&2;}
2806 { (exit 77); exit 77; }; }; }
2807 fi
2808
2809 ac_exeext=$ac_cv_exeext
2810
2811 # Check that the compiler produces executables we can run. If not, either
2812 # the compiler is broken, or we cross compile.
2813 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2814 $as_echo_n "checking whether the C compiler works... " >&6; }
2815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2816 # If not cross compiling, check that we can run a simple program.
2817 if test "$cross_compiling" != yes; then
2818 if { ac_try='./$ac_file'
2819 { (case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2824 $as_echo "$ac_try_echo") >&5
2825 (eval "$ac_try") 2>&5
2826 ac_status=$?
2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 cross_compiling=no
2830 else
2831 if test "$cross_compiling" = maybe; then
2832 cross_compiling=yes
2833 else
2834 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2837 If you meant to cross compile, use \`--host'.
2838 See \`config.log' for more details." >&5
2839 $as_echo "$as_me: error: cannot run C compiled programs.
2840 If you meant to cross compile, use \`--host'.
2841 See \`config.log' for more details." >&2;}
2842 { (exit 1); exit 1; }; }; }
2843 fi
2844 fi
2845 fi
2846 { $as_echo "$as_me:$LINENO: result: yes" >&5
2847 $as_echo "yes" >&6; }
2848
2849 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2850 ac_clean_files=$ac_clean_files_save
2851 # Check that the compiler produces executables we can run. If not, either
2852 # the compiler is broken, or we cross compile.
2853 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2854 $as_echo_n "checking whether we are cross compiling... " >&6; }
2855 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2856 $as_echo "$cross_compiling" >&6; }
2857
2858 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2859 $as_echo_n "checking for suffix of executables... " >&6; }
2860 if { (ac_try="$ac_link"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866 $as_echo "$ac_try_echo") >&5
2867 (eval "$ac_link") 2>&5
2868 ac_status=$?
2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2873 # work properly (i.e., refer to `conftest.exe'), while it won't with
2874 # `rm'.
2875 for ac_file in conftest.exe conftest conftest.*; do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880 break;;
2881 * ) break;;
2882 esac
2883 done
2884 else
2885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2888 See \`config.log' for more details." >&5
2889 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2890 See \`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }; }
2892 fi
2893
2894 rm -f conftest$ac_cv_exeext
2895 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2896 $as_echo "$ac_cv_exeext" >&6; }
2897
2898 rm -f conftest.$ac_ext
2899 EXEEXT=$ac_cv_exeext
2900 ac_exeext=$EXEEXT
2901 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2902 $as_echo_n "checking for suffix of object files... " >&6; }
2903 if test "${ac_cv_objext+set}" = set; then
2904 $as_echo_n "(cached) " >&6
2905 else
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912
2913 int
2914 main ()
2915 {
2916
2917 ;
2918 return 0;
2919 }
2920 _ACEOF
2921 rm -f conftest.o conftest.obj
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928 $as_echo "$ac_try_echo") >&5
2929 (eval "$ac_compile") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 for ac_file in conftest.o conftest.obj conftest.*; do
2934 test -f "$ac_file" || continue;
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2938 break;;
2939 esac
2940 done
2941 else
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2948 See \`config.log' for more details." >&5
2949 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2950 See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }; }
2952 fi
2953
2954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 fi
2956 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2957 $as_echo "$ac_cv_objext" >&6; }
2958 OBJEXT=$ac_cv_objext
2959 ac_objext=$OBJEXT
2960 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2962 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971
2972 int
2973 main ()
2974 {
2975 #ifndef __GNUC__
2976 choke me
2977 #endif
2978
2979 ;
2980 return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2990 $as_echo "$ac_try_echo") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3001 ac_compiler_gnu=yes
3002 else
3003 $as_echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 ac_compiler_gnu=no
3007 fi
3008
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3011
3012 fi
3013 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3014 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3015 if test $ac_compiler_gnu = yes; then
3016 GCC=yes
3017 else
3018 GCC=
3019 fi
3020 ac_test_CFLAGS=${CFLAGS+set}
3021 ac_save_CFLAGS=$CFLAGS
3022 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3023 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3024 if test "${ac_cv_prog_cc_g+set}" = set; then
3025 $as_echo_n "(cached) " >&6
3026 else
3027 ac_save_c_werror_flag=$ac_c_werror_flag
3028 ac_c_werror_flag=yes
3029 ac_cv_prog_cc_g=no
3030 CFLAGS="-g"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037
3038 int
3039 main ()
3040 {
3041
3042 ;
3043 return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3064 ac_cv_prog_cc_g=yes
3065 else
3066 $as_echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 CFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3076
3077 int
3078 main ()
3079 {
3080
3081 ;
3082 return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 :
3104 else
3105 $as_echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3109 CFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cc_g=yes
3144 else
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148
3149 fi
3150
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_c_werror_flag=$ac_save_c_werror_flag
3159 fi
3160 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3161 $as_echo "$ac_cv_prog_cc_g" >&6; }
3162 if test "$ac_test_CFLAGS" = set; then
3163 CFLAGS=$ac_save_CFLAGS
3164 elif test $ac_cv_prog_cc_g = yes; then
3165 if test "$GCC" = yes; then
3166 CFLAGS="-g -O2"
3167 else
3168 CFLAGS="-g"
3169 fi
3170 else
3171 if test "$GCC" = yes; then
3172 CFLAGS="-O2"
3173 else
3174 CFLAGS=
3175 fi
3176 fi
3177 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3179 if test "${ac_cv_prog_cc_c89+set}" = set; then
3180 $as_echo_n "(cached) " >&6
3181 else
3182 ac_cv_prog_cc_c89=no
3183 ac_save_CC=$CC
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #include <stdarg.h>
3191 #include <stdio.h>
3192 #include <sys/types.h>
3193 #include <sys/stat.h>
3194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3195 struct buf { int x; };
3196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197 static char *e (p, i)
3198 char **p;
3199 int i;
3200 {
3201 return p[i];
3202 }
3203 static char *f (char * (*g) (char **, int), char **p, ...)
3204 {
3205 char *s;
3206 va_list v;
3207 va_start (v,p);
3208 s = g (p, va_arg (v,int));
3209 va_end (v);
3210 return s;
3211 }
3212
3213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3214 function prototypes and stuff, but not '\xHH' hex character constants.
3215 These don't provoke an error unfortunately, instead are silently treated
3216 as 'x'. The following induces an error, until -std is added to get
3217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3218 array size at least. It's necessary to write '\x00'==0 to get something
3219 that's true only with -std. */
3220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3221
3222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223 inside strings and character constants. */
3224 #define FOO(x) 'x'
3225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3226
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231 int argc;
3232 char **argv;
3233 int
3234 main ()
3235 {
3236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 do
3244 CC="$ac_save_CC $ac_arg"
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3263 ac_cv_prog_cc_c89=$ac_arg
3264 else
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268
3269 fi
3270
3271 rm -f core conftest.err conftest.$ac_objext
3272 test "x$ac_cv_prog_cc_c89" != "xno" && break
3273 done
3274 rm -f conftest.$ac_ext
3275 CC=$ac_save_CC
3276
3277 fi
3278 # AC_CACHE_VAL
3279 case "x$ac_cv_prog_cc_c89" in
3280 x)
3281 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3282 $as_echo "none needed" >&6; } ;;
3283 xno)
3284 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3285 $as_echo "unsupported" >&6; } ;;
3286 *)
3287 CC="$CC $ac_cv_prog_cc_c89"
3288 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3290 esac
3291
3292
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298
3299
3300
3301 ac_ext=c
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3308 # On Suns, sometimes $CPP names a directory.
3309 if test -n "$CPP" && test -d "$CPP"; then
3310 CPP=
3311 fi
3312 if test -z "$CPP"; then
3313 if test "${ac_cv_prog_CPP+set}" = set; then
3314 $as_echo_n "(cached) " >&6
3315 else
3316 # Double quotes because CPP needs to be expanded
3317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3318 do
3319 ac_preproc_ok=false
3320 for ac_c_preproc_warn_flag in '' yes
3321 do
3322 # Use a header file that comes with gcc, so configuring glibc
3323 # with a fresh cross-compiler works.
3324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325 # <limits.h> exists even on freestanding compilers.
3326 # On the NeXT, cc -E runs the code through the compiler's parser,
3327 # not just through cpp. "Syntax error" is here to catch this case.
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #ifdef __STDC__
3335 # include <limits.h>
3336 #else
3337 # include <assert.h>
3338 #endif
3339 Syntax error
3340 _ACEOF
3341 if { (ac_try="$ac_cpp conftest.$ac_ext"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3347 $as_echo "$ac_try_echo") >&5
3348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } >/dev/null && {
3355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3356 test ! -s conftest.err
3357 }; then
3358 :
3359 else
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 # Broken: fails on valid input.
3364 continue
3365 fi
3366
3367 rm -f conftest.err conftest.$ac_ext
3368
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385 $as_echo "$ac_try_echo") >&5
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 }; then
3396 # Broken: success on invalid input.
3397 continue
3398 else
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 # Passes both tests.
3403 ac_preproc_ok=:
3404 break
3405 fi
3406
3407 rm -f conftest.err conftest.$ac_ext
3408
3409 done
3410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3411 rm -f conftest.err conftest.$ac_ext
3412 if $ac_preproc_ok; then
3413 break
3414 fi
3415
3416 done
3417 ac_cv_prog_CPP=$CPP
3418
3419 fi
3420 CPP=$ac_cv_prog_CPP
3421 else
3422 ac_cv_prog_CPP=$CPP
3423 fi
3424 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3425 $as_echo "$CPP" >&6; }
3426 ac_preproc_ok=false
3427 for ac_c_preproc_warn_flag in '' yes
3428 do
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 #ifdef __STDC__
3442 # include <limits.h>
3443 #else
3444 # include <assert.h>
3445 #endif
3446 Syntax error
3447 _ACEOF
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454 $as_echo "$ac_try_echo") >&5
3455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null && {
3462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 }; then
3465 :
3466 else
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 # Broken: fails on valid input.
3471 continue
3472 fi
3473
3474 rm -f conftest.err conftest.$ac_ext
3475
3476 # OK, works on sane cases. Now check whether nonexistent headers
3477 # can be detected and how.
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <ac_nonexistent.h>
3485 _ACEOF
3486 if { (ac_try="$ac_cpp conftest.$ac_ext"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev/null && {
3500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 }; then
3503 # Broken: success on invalid input.
3504 continue
3505 else
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 # Passes both tests.
3510 ac_preproc_ok=:
3511 break
3512 fi
3513
3514 rm -f conftest.err conftest.$ac_ext
3515
3516 done
3517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3518 rm -f conftest.err conftest.$ac_ext
3519 if $ac_preproc_ok; then
3520 :
3521 else
3522 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3525 See \`config.log' for more details." >&5
3526 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3527 See \`config.log' for more details." >&2;}
3528 { (exit 1); exit 1; }; }; }
3529 fi
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3539 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3540 if test "${ac_cv_path_GREP+set}" = set; then
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -z "$GREP"; then
3544 ac_path_GREP_found=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_prog in grep ggrep; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3554 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3555 # Check for GNU ac_path_GREP and select it if it is found.
3556 # Check for GNU $ac_path_GREP
3557 case `"$ac_path_GREP" --version 2>&1` in
3558 *GNU*)
3559 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3560 *)
3561 ac_count=0
3562 $as_echo_n 0123456789 >"conftest.in"
3563 while :
3564 do
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'GREP' >> "conftest.nl"
3569 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 ac_count=`expr $ac_count + 1`
3572 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_GREP="$ac_path_GREP"
3575 ac_path_GREP_max=$ac_count
3576 fi
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3579 done
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581 esac
3582
3583 $ac_path_GREP_found && break 3
3584 done
3585 done
3586 done
3587 IFS=$as_save_IFS
3588 if test -z "$ac_cv_path_GREP"; then
3589 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3590 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3591 { (exit 1); exit 1; }; }
3592 fi
3593 else
3594 ac_cv_path_GREP=$GREP
3595 fi
3596
3597 fi
3598 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3599 $as_echo "$ac_cv_path_GREP" >&6; }
3600 GREP="$ac_cv_path_GREP"
3601
3602
3603 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3604 $as_echo_n "checking for egrep... " >&6; }
3605 if test "${ac_cv_path_EGREP+set}" = set; then
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3609 then ac_cv_path_EGREP="$GREP -E"
3610 else
3611 if test -z "$EGREP"; then
3612 ac_path_EGREP_found=false
3613 # Loop through the user's path and test for each of PROGNAME-LIST
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_prog in egrep; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3623 # Check for GNU ac_path_EGREP and select it if it is found.
3624 # Check for GNU $ac_path_EGREP
3625 case `"$ac_path_EGREP" --version 2>&1` in
3626 *GNU*)
3627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3628 *)
3629 ac_count=0
3630 $as_echo_n 0123456789 >"conftest.in"
3631 while :
3632 do
3633 cat "conftest.in" "conftest.in" >"conftest.tmp"
3634 mv "conftest.tmp" "conftest.in"
3635 cp "conftest.in" "conftest.nl"
3636 $as_echo 'EGREP' >> "conftest.nl"
3637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3639 ac_count=`expr $ac_count + 1`
3640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3641 # Best one so far, save it but keep looking for a better one
3642 ac_cv_path_EGREP="$ac_path_EGREP"
3643 ac_path_EGREP_max=$ac_count
3644 fi
3645 # 10*(2^10) chars as input seems more than enough
3646 test $ac_count -gt 10 && break
3647 done
3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649 esac
3650
3651 $ac_path_EGREP_found && break 3
3652 done
3653 done
3654 done
3655 IFS=$as_save_IFS
3656 if test -z "$ac_cv_path_EGREP"; then
3657 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3658 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3659 { (exit 1); exit 1; }; }
3660 fi
3661 else
3662 ac_cv_path_EGREP=$EGREP
3663 fi
3664
3665 fi
3666 fi
3667 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3668 $as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP="$ac_cv_path_EGREP"
3670
3671
3672 if test $ac_cv_c_compiler_gnu = yes; then
3673 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3674 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3675 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_pattern="Autoconf.*'x'"
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 #include <sgtty.h>
3686 Autoconf TIOCGETP
3687 _ACEOF
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3690 ac_cv_prog_gcc_traditional=yes
3691 else
3692 ac_cv_prog_gcc_traditional=no
3693 fi
3694 rm -f conftest*
3695
3696
3697 if test $ac_cv_prog_gcc_traditional = no; then
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 #include <termio.h>
3705 Autoconf TCGETA
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3709 ac_cv_prog_gcc_traditional=yes
3710 fi
3711 rm -f conftest*
3712
3713 fi
3714 fi
3715 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3716 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3717 if test $ac_cv_prog_gcc_traditional = yes; then
3718 CC="$CC -traditional"
3719 fi
3720 fi
3721
3722 # Find a good install program. We prefer a C program (faster),
3723 # so one script is as good as another. But avoid the broken or
3724 # incompatible versions:
3725 # SysV /etc/install, /usr/sbin/install
3726 # SunOS /usr/etc/install
3727 # IRIX /sbin/install
3728 # AIX /bin/install
3729 # AmigaOS /C/install, which installs bootblocks on floppy discs
3730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3733 # OS/2's system install, which has a completely different semantic
3734 # ./install, which can be erroneously created by make from ./install.sh.
3735 # Reject install programs that cannot install multiple files.
3736 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3737 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3738 if test -z "$INSTALL"; then
3739 if test "${ac_cv_path_install+set}" = set; then
3740 $as_echo_n "(cached) " >&6
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 # Account for people who put trailing slashes in PATH elements.
3748 case $as_dir/ in
3749 ./ | .// | /cC/* | \
3750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3752 /usr/ucb/* ) ;;
3753 *)
3754 # OSF1 and SCO ODT 3.0 have their own names for install.
3755 # Don't use installbsd from OSF since it installs stuff as root
3756 # by default.
3757 for ac_prog in ginstall scoinst install; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3760 if test $ac_prog = install &&
3761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762 # AIX install. It has an incompatible calling convention.
3763 :
3764 elif test $ac_prog = install &&
3765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766 # program-specific install script used by HP pwplus--don't use.
3767 :
3768 else
3769 rm -rf conftest.one conftest.two conftest.dir
3770 echo one > conftest.one
3771 echo two > conftest.two
3772 mkdir conftest.dir
3773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3774 test -s conftest.one && test -s conftest.two &&
3775 test -s conftest.dir/conftest.one &&
3776 test -s conftest.dir/conftest.two
3777 then
3778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3779 break 3
3780 fi
3781 fi
3782 fi
3783 done
3784 done
3785 ;;
3786 esac
3787
3788 done
3789 IFS=$as_save_IFS
3790
3791 rm -rf conftest.one conftest.two conftest.dir
3792
3793 fi
3794 if test "${ac_cv_path_install+set}" = set; then
3795 INSTALL=$ac_cv_path_install
3796 else
3797 # As a last resort, use the slow shell script. Don't cache a
3798 # value for INSTALL within a source directory, because that will
3799 # break other packages using the cache if that directory is
3800 # removed, or if the value is a relative name.
3801 INSTALL=$ac_install_sh
3802 fi
3803 fi
3804 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3805 $as_echo "$INSTALL" >&6; }
3806
3807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3808 # It thinks the first close brace ends the variable substitution.
3809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3810
3811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3812
3813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814
3815 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3816 $as_echo_n "checking whether ln -s works... " >&6; }
3817 LN_S=$as_ln_s
3818 if test "$LN_S" = "ln -s"; then
3819 { $as_echo "$as_me:$LINENO: result: yes" >&5
3820 $as_echo "yes" >&6; }
3821 else
3822 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3823 $as_echo "no, using $LN_S" >&6; }
3824 fi
3825
3826 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3828 set x ${MAKE-make}
3829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3830 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3831 $as_echo_n "(cached) " >&6
3832 else
3833 cat >conftest.make <<\_ACEOF
3834 SHELL = /bin/sh
3835 all:
3836 @echo '@@@%%%=$(MAKE)=@@@%%%'
3837 _ACEOF
3838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3840 *@@@%%%=?*=@@@%%%*)
3841 eval ac_cv_prog_make_${ac_make}_set=yes;;
3842 *)
3843 eval ac_cv_prog_make_${ac_make}_set=no;;
3844 esac
3845 rm -f conftest.make
3846 fi
3847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3848 { $as_echo "$as_me:$LINENO: result: yes" >&5
3849 $as_echo "yes" >&6; }
3850 SET_MAKE=
3851 else
3852 { $as_echo "$as_me:$LINENO: result: no" >&5
3853 $as_echo "no" >&6; }
3854 SET_MAKE="MAKE=${MAKE-make}"
3855 fi
3856
3857 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3859 if test -z "$MKDIR_P"; then
3860 if test "${ac_cv_path_mkdir+set}" = set; then
3861 $as_echo_n "(cached) " >&6
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3865 do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in mkdir gmkdir; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3872 'mkdir (GNU coreutils) '* | \
3873 'mkdir (coreutils) '* | \
3874 'mkdir (fileutils) '4.1*)
3875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3876 break 3;;
3877 esac
3878 done
3879 done
3880 done
3881 IFS=$as_save_IFS
3882
3883 fi
3884
3885 if test "${ac_cv_path_mkdir+set}" = set; then
3886 MKDIR_P="$ac_cv_path_mkdir -p"
3887 else
3888 # As a last resort, use the slow shell script. Don't cache a
3889 # value for MKDIR_P within a source directory, because that will
3890 # break other packages using the cache if that directory is
3891 # removed, or if the value is a relative name.
3892 test -d ./--version && rmdir ./--version
3893 MKDIR_P="$ac_install_sh -d"
3894 fi
3895 fi
3896 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3897 $as_echo "$MKDIR_P" >&6; }
3898
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_RANLIB+set}" = set; then
3905 $as_echo_n "(cached) " >&6
3906 else
3907 if test -n "$RANLIB"; then
3908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921 done
3922 done
3923 IFS=$as_save_IFS
3924
3925 fi
3926 fi
3927 RANLIB=$ac_cv_prog_RANLIB
3928 if test -n "$RANLIB"; then
3929 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3930 $as_echo "$RANLIB" >&6; }
3931 else
3932 { $as_echo "$as_me:$LINENO: result: no" >&5
3933 $as_echo "no" >&6; }
3934 fi
3935
3936
3937 fi
3938 if test -z "$ac_cv_prog_RANLIB"; then
3939 ac_ct_RANLIB=$RANLIB
3940 # Extract the first word of "ranlib", so it can be a program name with args.
3941 set dummy ranlib; ac_word=$2
3942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 $as_echo_n "checking for $ac_word... " >&6; }
3944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if test -n "$ac_ct_RANLIB"; then
3948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_prog_ac_ct_RANLIB="ranlib"
3958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961 done
3962 done
3963 IFS=$as_save_IFS
3964
3965 fi
3966 fi
3967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3968 if test -n "$ac_ct_RANLIB"; then
3969 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3970 $as_echo "$ac_ct_RANLIB" >&6; }
3971 else
3972 { $as_echo "$as_me:$LINENO: result: no" >&5
3973 $as_echo "no" >&6; }
3974 fi
3975
3976 if test "x$ac_ct_RANLIB" = x; then
3977 RANLIB=":"
3978 else
3979 case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985 RANLIB=$ac_ct_RANLIB
3986 fi
3987 else
3988 RANLIB="$ac_cv_prog_RANLIB"
3989 fi
3990
3991 # Extract the first word of "cflow", so it can be a program name with args.
3992 set dummy cflow; ac_word=$2
3993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3996 $as_echo_n "(cached) " >&6
3997 else
3998 case $CFLOW_CMD in
3999 [\\/]* | ?:[\\/]*)
4000 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4001 ;;
4002 *)
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014 done
4015 done
4016 IFS=$as_save_IFS
4017
4018 ;;
4019 esac
4020 fi
4021 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4022 if test -n "$CFLOW_CMD"; then
4023 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4024 $as_echo "$CFLOW_CMD" >&6; }
4025 else
4026 { $as_echo "$as_me:$LINENO: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030
4031 # Extract the first word of "cscope", so it can be a program name with args.
4032 set dummy cscope; ac_word=$2
4033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4036 $as_echo_n "(cached) " >&6
4037 else
4038 case $CSCOPE_CMD in
4039 [\\/]* | ?:[\\/]*)
4040 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4041 ;;
4042 *)
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 ;;
4059 esac
4060 fi
4061 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4062 if test -n "$CSCOPE_CMD"; then
4063 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4064 $as_echo "$CSCOPE_CMD" >&6; }
4065 else
4066 { $as_echo "$as_me:$LINENO: result: no" >&5
4067 $as_echo "no" >&6; }
4068 fi
4069
4070
4071
4072 ################################################################################
4073
4074
4075
4076
4077
4078 ac_header_dirent=no
4079 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4080 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4081 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4082 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4084 $as_echo_n "(cached) " >&6
4085 else
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 #include <$ac_hdr>
4094
4095 int
4096 main ()
4097 {
4098 if ((DIR *) 0)
4099 return 0;
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 } && test -s conftest.$ac_objext; then
4122 eval "$as_ac_Header=yes"
4123 else
4124 $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 eval "$as_ac_Header=no"
4128 fi
4129
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 ac_res=`eval 'as_val=${'$as_ac_Header'}
4133 $as_echo "$as_val"'`
4134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4135 $as_echo "$ac_res" >&6; }
4136 as_val=`eval 'as_val=${'$as_ac_Header'}
4137 $as_echo "$as_val"'`
4138 if test "x$as_val" = x""yes; then
4139 cat >>confdefs.h <<_ACEOF
4140 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4141 _ACEOF
4142
4143 ac_header_dirent=$ac_hdr; break
4144 fi
4145
4146 done
4147 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4148 if test $ac_header_dirent = dirent.h; then
4149 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4150 $as_echo_n "checking for library containing opendir... " >&6; }
4151 if test "${ac_cv_search_opendir+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_func_search_save_LIBS=$LIBS
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161
4162 /* Override any GCC internal prototype to avoid an error.
4163 Use char because int might match the return type of a GCC
4164 builtin and then its argument prototype would still apply. */
4165 #ifdef __cplusplus
4166 extern "C"
4167 #endif
4168 char opendir ();
4169 int
4170 main ()
4171 {
4172 return opendir ();
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 for ac_lib in '' dir; do
4178 if test -z "$ac_lib"; then
4179 ac_res="none required"
4180 else
4181 ac_res=-l$ac_lib
4182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4183 fi
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (ac_try="$ac_link"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191 $as_echo "$ac_try_echo") >&5
4192 (eval "$ac_link") 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && {
4199 test -z "$ac_c_werror_flag" ||
4200 test ! -s conftest.err
4201 } && test -s conftest$ac_exeext && {
4202 test "$cross_compiling" = yes ||
4203 $as_test_x conftest$ac_exeext
4204 }; then
4205 ac_cv_search_opendir=$ac_res
4206 else
4207 $as_echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210
4211 fi
4212
4213 rm -rf conftest.dSYM
4214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4215 conftest$ac_exeext
4216 if test "${ac_cv_search_opendir+set}" = set; then
4217 break
4218 fi
4219 done
4220 if test "${ac_cv_search_opendir+set}" = set; then
4221 :
4222 else
4223 ac_cv_search_opendir=no
4224 fi
4225 rm conftest.$ac_ext
4226 LIBS=$ac_func_search_save_LIBS
4227 fi
4228 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4229 $as_echo "$ac_cv_search_opendir" >&6; }
4230 ac_res=$ac_cv_search_opendir
4231 if test "$ac_res" != no; then
4232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4233
4234 fi
4235
4236 else
4237 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4238 $as_echo_n "checking for library containing opendir... " >&6; }
4239 if test "${ac_cv_search_opendir+set}" = set; then
4240 $as_echo_n "(cached) " >&6
4241 else
4242 ac_func_search_save_LIBS=$LIBS
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249
4250 /* Override any GCC internal prototype to avoid an error.
4251 Use char because int might match the return type of a GCC
4252 builtin and then its argument prototype would still apply. */
4253 #ifdef __cplusplus
4254 extern "C"
4255 #endif
4256 char opendir ();
4257 int
4258 main ()
4259 {
4260 return opendir ();
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 for ac_lib in '' x; do
4266 if test -z "$ac_lib"; then
4267 ac_res="none required"
4268 else
4269 ac_res=-l$ac_lib
4270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4271 fi
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280 (eval "$ac_link") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest$ac_exeext && {
4290 test "$cross_compiling" = yes ||
4291 $as_test_x conftest$ac_exeext
4292 }; then
4293 ac_cv_search_opendir=$ac_res
4294 else
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299 fi
4300
4301 rm -rf conftest.dSYM
4302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4303 conftest$ac_exeext
4304 if test "${ac_cv_search_opendir+set}" = set; then
4305 break
4306 fi
4307 done
4308 if test "${ac_cv_search_opendir+set}" = set; then
4309 :
4310 else
4311 ac_cv_search_opendir=no
4312 fi
4313 rm conftest.$ac_ext
4314 LIBS=$ac_func_search_save_LIBS
4315 fi
4316 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4317 $as_echo "$ac_cv_search_opendir" >&6; }
4318 ac_res=$ac_cv_search_opendir
4319 if test "$ac_res" != no; then
4320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4321
4322 fi
4323
4324 fi
4325
4326 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4327 $as_echo_n "checking for ANSI C header files... " >&6; }
4328 if test "${ac_cv_header_stdc+set}" = set; then
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <stdlib.h>
4338 #include <stdarg.h>
4339 #include <string.h>
4340 #include <float.h>
4341
4342 int
4343 main ()
4344 {
4345
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4352 case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357 $as_echo "$ac_try_echo") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 ac_cv_header_stdc=yes
4369 else
4370 $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_cv_header_stdc=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377
4378 if test $ac_cv_header_stdc = yes; then
4379 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <string.h>
4387
4388 _ACEOF
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 $EGREP "memchr" >/dev/null 2>&1; then
4391 :
4392 else
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f conftest*
4396
4397 fi
4398
4399 if test $ac_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <stdlib.h>
4408
4409 _ACEOF
4410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 $EGREP "free" >/dev/null 2>&1; then
4412 :
4413 else
4414 ac_cv_header_stdc=no
4415 fi
4416 rm -f conftest*
4417
4418 fi
4419
4420 if test $ac_cv_header_stdc = yes; then
4421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4422 if test "$cross_compiling" = yes; then
4423 :
4424 else
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <ctype.h>
4432 #include <stdlib.h>
4433 #if ((' ' & 0x0FF) == 0x020)
4434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4436 #else
4437 # define ISLOWER(c) \
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
4441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4442 #endif
4443
4444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4445 int
4446 main ()
4447 {
4448 int i;
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
4451 || toupper (i) != TOUPPER (i))
4452 return 2;
4453 return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474 (eval "$ac_try") 2>&5
4475 ac_status=$?
4476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 :
4479 else
4480 $as_echo "$as_me: program exited with status $ac_status" >&5
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ( exit $ac_status )
4485 ac_cv_header_stdc=no
4486 fi
4487 rm -rf conftest.dSYM
4488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4489 fi
4490
4491
4492 fi
4493 fi
4494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4495 $as_echo "$ac_cv_header_stdc" >&6; }
4496 if test $ac_cv_header_stdc = yes; then
4497
4498 cat >>confdefs.h <<\_ACEOF
4499 #define STDC_HEADERS 1
4500 _ACEOF
4501
4502 fi
4503
4504 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4505 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4506 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4507 $as_echo_n "(cached) " >&6
4508 else
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <sys/types.h>
4516 #include <sys/wait.h>
4517 #ifndef WEXITSTATUS
4518 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4519 #endif
4520 #ifndef WIFEXITED
4521 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4522 #endif
4523
4524 int
4525 main ()
4526 {
4527 int s;
4528 wait (&s);
4529 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (ac_try="$ac_compile"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542 (eval "$ac_compile") 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } && {
4549 test -z "$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4551 } && test -s conftest.$ac_objext; then
4552 ac_cv_header_sys_wait_h=yes
4553 else
4554 $as_echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 ac_cv_header_sys_wait_h=no
4558 fi
4559
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4563 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4564 if test $ac_cv_header_sys_wait_h = yes; then
4565
4566 cat >>confdefs.h <<\_ACEOF
4567 #define HAVE_SYS_WAIT_H 1
4568 _ACEOF
4569
4570 fi
4571
4572 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4573 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4574 if test "${ac_cv_header_time+set}" = set; then
4575 $as_echo_n "(cached) " >&6
4576 else
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 #include <sys/time.h>
4585 #include <time.h>
4586
4587 int
4588 main ()
4589 {
4590 if ((struct tm *) 0)
4591 return 0;
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (ac_try="$ac_compile"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4603 $as_echo "$ac_try_echo") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest.$ac_objext; then
4614 ac_cv_header_time=yes
4615 else
4616 $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 ac_cv_header_time=no
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4625 $as_echo "$ac_cv_header_time" >&6; }
4626 if test $ac_cv_header_time = yes; then
4627
4628 cat >>confdefs.h <<\_ACEOF
4629 #define TIME_WITH_SYS_TIME 1
4630 _ACEOF
4631
4632 fi
4633
4634
4635 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4646 inttypes.h stdint.h unistd.h
4647 do
4648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 $as_echo_n "checking for $ac_header... " >&6; }
4651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 $ac_includes_default
4661
4662 #include <$ac_header>
4663 _ACEOF
4664 rm -f conftest.$ac_objext
4665 if { (ac_try="$ac_compile"
4666 case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4671 $as_echo "$ac_try_echo") >&5
4672 (eval "$ac_compile") 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } && {
4679 test -z "$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4681 } && test -s conftest.$ac_objext; then
4682 eval "$as_ac_Header=yes"
4683 else
4684 $as_echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 eval "$as_ac_Header=no"
4688 fi
4689
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 ac_res=`eval 'as_val=${'$as_ac_Header'}
4693 $as_echo "$as_val"'`
4694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4695 $as_echo "$ac_res" >&6; }
4696 as_val=`eval 'as_val=${'$as_ac_Header'}
4697 $as_echo "$as_val"'`
4698 if test "x$as_val" = x""yes; then
4699 cat >>confdefs.h <<_ACEOF
4700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 _ACEOF
4702
4703 fi
4704
4705 done
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4722 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4723 do
4724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4727 $as_echo_n "checking for $ac_header... " >&6; }
4728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4729 $as_echo_n "(cached) " >&6
4730 fi
4731 ac_res=`eval 'as_val=${'$as_ac_Header'}
4732 $as_echo "$as_val"'`
4733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4734 $as_echo "$ac_res" >&6; }
4735 else
4736 # Is the header compilable?
4737 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4738 $as_echo_n "checking $ac_header usability... " >&6; }
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 #include <$ac_header>
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (ac_try="$ac_compile"
4750 case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756 (eval "$ac_compile") 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && {
4763 test -z "$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 } && test -s conftest.$ac_objext; then
4766 ac_header_compiler=yes
4767 else
4768 $as_echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ac_header_compiler=no
4772 fi
4773
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 $as_echo "$ac_header_compiler" >&6; }
4777
4778 # Is the header present?
4779 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 $as_echo_n "checking $ac_header presence... " >&6; }
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h. */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 #include <$ac_header>
4788 _ACEOF
4789 if { (ac_try="$ac_cpp conftest.$ac_ext"
4790 case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4795 $as_echo "$ac_try_echo") >&5
4796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } >/dev/null && {
4803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 }; then
4806 ac_header_preproc=yes
4807 else
4808 $as_echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 ac_header_preproc=no
4812 fi
4813
4814 rm -f conftest.err conftest.$ac_ext
4815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 $as_echo "$ac_header_preproc" >&6; }
4817
4818 # So? What about this header?
4819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820 yes:no: )
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825 ac_header_preproc=yes
4826 ;;
4827 no:yes:* )
4828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4831 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4835 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4840
4841 ;;
4842 esac
4843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4844 $as_echo_n "checking for $ac_header... " >&6; }
4845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4846 $as_echo_n "(cached) " >&6
4847 else
4848 eval "$as_ac_Header=\$ac_header_preproc"
4849 fi
4850 ac_res=`eval 'as_val=${'$as_ac_Header'}
4851 $as_echo "$as_val"'`
4852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4853 $as_echo "$ac_res" >&6; }
4854
4855 fi
4856 as_val=`eval 'as_val=${'$as_ac_Header'}
4857 $as_echo "$as_val"'`
4858 if test "x$as_val" = x""yes; then
4859 cat >>confdefs.h <<_ACEOF
4860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4861 _ACEOF
4862
4863 else
4864 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4865 $as_echo "$as_me: error: bailing out" >&2;}
4866 { (exit 1); exit 1; }; }
4867 fi
4868
4869 done
4870
4871
4872 case "$host_os" in
4873 linux*)
4874
4875
4876
4877 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4878 do
4879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4882 $as_echo_n "checking for $ac_header... " >&6; }
4883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4884 $as_echo_n "(cached) " >&6
4885 fi
4886 ac_res=`eval 'as_val=${'$as_ac_Header'}
4887 $as_echo "$as_val"'`
4888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4889 $as_echo "$ac_res" >&6; }
4890 else
4891 # Is the header compilable?
4892 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4893 $as_echo_n "checking $ac_header usability... " >&6; }
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4901 #include <$ac_header>
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4910 $as_echo "$ac_try_echo") >&5
4911 (eval "$ac_compile") 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && {
4918 test -z "$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4920 } && test -s conftest.$ac_objext; then
4921 ac_header_compiler=yes
4922 else
4923 $as_echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 ac_header_compiler=no
4927 fi
4928
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4931 $as_echo "$ac_header_compiler" >&6; }
4932
4933 # Is the header present?
4934 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4935 $as_echo_n "checking $ac_header presence... " >&6; }
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <$ac_header>
4943 _ACEOF
4944 if { (ac_try="$ac_cpp conftest.$ac_ext"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null && {
4958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 }; then
4961 ac_header_preproc=yes
4962 else
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_header_preproc=no
4967 fi
4968
4969 rm -f conftest.err conftest.$ac_ext
4970 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4971 $as_echo "$ac_header_preproc" >&6; }
4972
4973 # So? What about this header?
4974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4975 yes:no: )
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4977 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4980 ac_header_preproc=yes
4981 ;;
4982 no:yes:* )
4983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4984 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4986 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4988 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4990 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4992 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4994 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4995
4996 ;;
4997 esac
4998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4999 $as_echo_n "checking for $ac_header... " >&6; }
5000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001 $as_echo_n "(cached) " >&6
5002 else
5003 eval "$as_ac_Header=\$ac_header_preproc"
5004 fi
5005 ac_res=`eval 'as_val=${'$as_ac_Header'}
5006 $as_echo "$as_val"'`
5007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5008 $as_echo "$ac_res" >&6; }
5009
5010 fi
5011 as_val=`eval 'as_val=${'$as_ac_Header'}
5012 $as_echo "$as_val"'`
5013 if test "x$as_val" = x""yes; then
5014 cat >>confdefs.h <<_ACEOF
5015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016 _ACEOF
5017
5018 else
5019 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5020 $as_echo "$as_me: error: bailing out" >&2;}
5021 { (exit 1); exit 1; }; }
5022 fi
5023
5024 done
5025 ;;
5026 darwin*)
5027
5028
5029 for ac_header in machine/endian.h sys/disk.h
5030 do
5031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5034 $as_echo_n "checking for $ac_header... " >&6; }
5035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5036 $as_echo_n "(cached) " >&6
5037 fi
5038 ac_res=`eval 'as_val=${'$as_ac_Header'}
5039 $as_echo "$as_val"'`
5040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5041 $as_echo "$ac_res" >&6; }
5042 else
5043 # Is the header compilable?
5044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5045 $as_echo_n "checking $ac_header usability... " >&6; }
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5053 #include <$ac_header>
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5073 ac_header_compiler=yes
5074 else
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ac_header_compiler=no
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083 $as_echo "$ac_header_compiler" >&6; }
5084
5085 # Is the header present?
5086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087 $as_echo_n "checking $ac_header presence... " >&6; }
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <$ac_header>
5095 _ACEOF
5096 if { (ac_try="$ac_cpp conftest.$ac_ext"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102 $as_echo "$ac_try_echo") >&5
5103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } >/dev/null && {
5110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 }; then
5113 ac_header_preproc=yes
5114 else
5115 $as_echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 ac_header_preproc=no
5119 fi
5120
5121 rm -f conftest.err conftest.$ac_ext
5122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5123 $as_echo "$ac_header_preproc" >&6; }
5124
5125 # So? What about this header?
5126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5127 yes:no: )
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5132 ac_header_preproc=yes
5133 ;;
5134 no:yes:* )
5135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5147
5148 ;;
5149 esac
5150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5151 $as_echo_n "checking for $ac_header... " >&6; }
5152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153 $as_echo_n "(cached) " >&6
5154 else
5155 eval "$as_ac_Header=\$ac_header_preproc"
5156 fi
5157 ac_res=`eval 'as_val=${'$as_ac_Header'}
5158 $as_echo "$as_val"'`
5159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5160 $as_echo "$ac_res" >&6; }
5161
5162 fi
5163 as_val=`eval 'as_val=${'$as_ac_Header'}
5164 $as_echo "$as_val"'`
5165 if test "x$as_val" = x""yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5168 _ACEOF
5169
5170 else
5171 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5172 $as_echo "$as_me: error: bailing out" >&2;}
5173 { (exit 1); exit 1; }; }
5174 fi
5175
5176 done
5177 ;;
5178 esac
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5197 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5198 sys/types.h unistd.h
5199 do
5200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5203 $as_echo_n "checking for $ac_header... " >&6; }
5204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5205 $as_echo_n "(cached) " >&6
5206 fi
5207 ac_res=`eval 'as_val=${'$as_ac_Header'}
5208 $as_echo "$as_val"'`
5209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5210 $as_echo "$ac_res" >&6; }
5211 else
5212 # Is the header compilable?
5213 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5214 $as_echo_n "checking $ac_header usability... " >&6; }
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 $ac_includes_default
5222 #include <$ac_header>
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5226 case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231 $as_echo "$ac_try_echo") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && {
5239 test -z "$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 } && test -s conftest.$ac_objext; then
5242 ac_header_compiler=yes
5243 else
5244 $as_echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_header_compiler=no
5248 fi
5249
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5252 $as_echo "$ac_header_compiler" >&6; }
5253
5254 # Is the header present?
5255 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5256 $as_echo_n "checking $ac_header presence... " >&6; }
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <$ac_header>
5264 _ACEOF
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5271 $as_echo "$ac_try_echo") >&5
5272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } >/dev/null && {
5279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 }; then
5282 ac_header_preproc=yes
5283 else
5284 $as_echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_header_preproc=no
5288 fi
5289
5290 rm -f conftest.err conftest.$ac_ext
5291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5292 $as_echo "$ac_header_preproc" >&6; }
5293
5294 # So? What about this header?
5295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5296 yes:no: )
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5298 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5301 ac_header_preproc=yes
5302 ;;
5303 no:yes:* )
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5305 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5307 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5309 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5311 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5315 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5316
5317 ;;
5318 esac
5319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5320 $as_echo_n "checking for $ac_header... " >&6; }
5321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322 $as_echo_n "(cached) " >&6
5323 else
5324 eval "$as_ac_Header=\$ac_header_preproc"
5325 fi
5326 ac_res=`eval 'as_val=${'$as_ac_Header'}
5327 $as_echo "$as_val"'`
5328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5329 $as_echo "$ac_res" >&6; }
5330
5331 fi
5332 as_val=`eval 'as_val=${'$as_ac_Header'}
5333 $as_echo "$as_val"'`
5334 if test "x$as_val" = x""yes; then
5335 cat >>confdefs.h <<_ACEOF
5336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337 _ACEOF
5338
5339 else
5340 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5341 $as_echo "$as_me: error: bailing out" >&2;}
5342 { (exit 1); exit 1; }; }
5343 fi
5344
5345 done
5346
5347
5348
5349 for ac_header in termios.h sys/statvfs.h
5350 do
5351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5354 $as_echo_n "checking for $ac_header... " >&6; }
5355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5356 $as_echo_n "(cached) " >&6
5357 fi
5358 ac_res=`eval 'as_val=${'$as_ac_Header'}
5359 $as_echo "$as_val"'`
5360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5361 $as_echo "$ac_res" >&6; }
5362 else
5363 # Is the header compilable?
5364 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5365 $as_echo_n "checking $ac_header usability... " >&6; }
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 $ac_includes_default
5373 #include <$ac_header>
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383 (eval "$ac_compile") 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest.$ac_objext; then
5393 ac_header_compiler=yes
5394 else
5395 $as_echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_header_compiler=no
5399 fi
5400
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5403 $as_echo "$ac_header_compiler" >&6; }
5404
5405 # Is the header present?
5406 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5407 $as_echo_n "checking $ac_header presence... " >&6; }
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <$ac_header>
5415 _ACEOF
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5422 $as_echo "$ac_try_echo") >&5
5423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null && {
5430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 }; then
5433 ac_header_preproc=yes
5434 else
5435 $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438 ac_header_preproc=no
5439 fi
5440
5441 rm -f conftest.err conftest.$ac_ext
5442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5443 $as_echo "$ac_header_preproc" >&6; }
5444
5445 # So? What about this header?
5446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5447 yes:no: )
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5449 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5452 ac_header_preproc=yes
5453 ;;
5454 no:yes:* )
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5460 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5462 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5466 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5467
5468 ;;
5469 esac
5470 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 $as_echo_n "checking for $ac_header... " >&6; }
5472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5473 $as_echo_n "(cached) " >&6
5474 else
5475 eval "$as_ac_Header=\$ac_header_preproc"
5476 fi
5477 ac_res=`eval 'as_val=${'$as_ac_Header'}
5478 $as_echo "$as_val"'`
5479 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5480 $as_echo "$ac_res" >&6; }
5481
5482 fi
5483 as_val=`eval 'as_val=${'$as_ac_Header'}
5484 $as_echo "$as_val"'`
5485 if test "x$as_val" = x""yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 _ACEOF
5489
5490 fi
5491
5492 done
5493
5494
5495 ################################################################################
5496 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5497 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5498 if test "${ac_cv_c_const+set}" = set; then
5499 $as_echo_n "(cached) " >&6
5500 else
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507
5508 int
5509 main ()
5510 {
5511 /* FIXME: Include the comments suggested by Paul. */
5512 #ifndef __cplusplus
5513 /* Ultrix mips cc rejects this. */
5514 typedef int charset[2];
5515 const charset cs;
5516 /* SunOS 4.1.1 cc rejects this. */
5517 char const *const *pcpcc;
5518 char **ppc;
5519 /* NEC SVR4.0.2 mips cc rejects this. */
5520 struct point {int x, y;};
5521 static struct point const zero = {0,0};
5522 /* AIX XL C 1.02.0.0 rejects this.
5523 It does not let you subtract one const X* pointer from another in
5524 an arm of an if-expression whose if-part is not a constant
5525 expression */
5526 const char *g = "string";
5527 pcpcc = &g + (g ? g-g : 0);
5528 /* HPUX 7.0 cc rejects these. */
5529 ++pcpcc;
5530 ppc = (char**) pcpcc;
5531 pcpcc = (char const *const *) ppc;
5532 { /* SCO 3.2v4 cc rejects this. */
5533 char *t;
5534 char const *s = 0 ? (char *) 0 : (char const *) 0;
5535
5536 *t++ = 0;
5537 if (s) return 0;
5538 }
5539 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5540 int x[] = {25, 17};
5541 const int *foo = &x[0];
5542 ++foo;
5543 }
5544 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5545 typedef const int *iptr;
5546 iptr p = 0;
5547 ++p;
5548 }
5549 { /* AIX XL C 1.02.0.0 rejects this saying
5550 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5551 struct s { int j; const int *ap[3]; };
5552 struct s *b; b->j = 5;
5553 }
5554 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5555 const int foo = 10;
5556 if (!foo) return 0;
5557 }
5558 return !cs[0] && !zero.x;
5559 #endif
5560
5561 ;
5562 return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572 $as_echo "$ac_try_echo") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_c_const=yes
5584 else
5585 $as_echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588 ac_cv_c_const=no
5589 fi
5590
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 fi
5593 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5594 $as_echo "$ac_cv_c_const" >&6; }
5595 if test $ac_cv_c_const = no; then
5596
5597 cat >>confdefs.h <<\_ACEOF
5598 #define const /**/
5599 _ACEOF
5600
5601 fi
5602
5603 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5604 $as_echo_n "checking for inline... " >&6; }
5605 if test "${ac_cv_c_inline+set}" = set; then
5606 $as_echo_n "(cached) " >&6
5607 else
5608 ac_cv_c_inline=no
5609 for ac_kw in inline __inline__ __inline; do
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 #ifndef __cplusplus
5617 typedef int foo_t;
5618 static $ac_kw foo_t static_foo () {return 0; }
5619 $ac_kw foo_t foo () {return 0; }
5620 #endif
5621
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5625 case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5630 $as_echo "$ac_try_echo") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_cv_c_inline=$ac_kw
5642 else
5643 $as_echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647 fi
5648
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 test "$ac_cv_c_inline" != no && break
5651 done
5652
5653 fi
5654 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5655 $as_echo "$ac_cv_c_inline" >&6; }
5656
5657
5658 case $ac_cv_c_inline in
5659 inline | yes) ;;
5660 *)
5661 case $ac_cv_c_inline in
5662 no) ac_val=;;
5663 *) ac_val=$ac_cv_c_inline;;
5664 esac
5665 cat >>confdefs.h <<_ACEOF
5666 #ifndef __cplusplus
5667 #define inline $ac_val
5668 #endif
5669 _ACEOF
5670 ;;
5671 esac
5672
5673 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5674 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5675 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 int
5686 main ()
5687 {
5688 static struct stat ac_aggr;
5689 if (ac_aggr.st_rdev)
5690 return 0;
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5702 $as_echo "$ac_try_echo") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 ac_cv_member_struct_stat_st_rdev=yes
5714 else
5715 $as_echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 $ac_includes_default
5725 int
5726 main ()
5727 {
5728 static struct stat ac_aggr;
5729 if (sizeof ac_aggr.st_rdev)
5730 return 0;
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_member_struct_stat_st_rdev=yes
5754 else
5755 $as_echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_cv_member_struct_stat_st_rdev=no
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 fi
5763
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5767 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5768 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5769
5770 cat >>confdefs.h <<_ACEOF
5771 #define HAVE_STRUCT_STAT_ST_RDEV 1
5772 _ACEOF
5773
5774
5775 fi
5776
5777 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5778 $as_echo_n "checking for off_t... " >&6; }
5779 if test "${ac_cv_type_off_t+set}" = set; then
5780 $as_echo_n "(cached) " >&6
5781 else
5782 ac_cv_type_off_t=no
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5790 int
5791 main ()
5792 {
5793 if (sizeof (off_t))
5794 return 0;
5795 ;
5796 return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5806 $as_echo "$ac_try_echo") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h. */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 $ac_includes_default
5824 int
5825 main ()
5826 {
5827 if (sizeof ((off_t)))
5828 return 0;
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 :
5852 else
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_cv_type_off_t=yes
5857 fi
5858
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 else
5861 $as_echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864
5865 fi
5866
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5870 $as_echo "$ac_cv_type_off_t" >&6; }
5871 if test "x$ac_cv_type_off_t" = x""yes; then
5872 :
5873 else
5874
5875 cat >>confdefs.h <<_ACEOF
5876 #define off_t long int
5877 _ACEOF
5878
5879 fi
5880
5881 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5882 $as_echo_n "checking for pid_t... " >&6; }
5883 if test "${ac_cv_type_pid_t+set}" = set; then
5884 $as_echo_n "(cached) " >&6
5885 else
5886 ac_cv_type_pid_t=no
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 $ac_includes_default
5894 int
5895 main ()
5896 {
5897 if (sizeof (pid_t))
5898 return 0;
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5910 $as_echo "$ac_try_echo") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest.$ac_objext; then
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 int
5929 main ()
5930 {
5931 if (sizeof ((pid_t)))
5932 return 0;
5933 ;
5934 return 0;
5935 }
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5939 case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944 $as_echo "$ac_try_echo") >&5
5945 (eval "$ac_compile") 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && {
5952 test -z "$ac_c_werror_flag" ||
5953 test ! -s conftest.err
5954 } && test -s conftest.$ac_objext; then
5955 :
5956 else
5957 $as_echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ac_cv_type_pid_t=yes
5961 fi
5962
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 else
5965 $as_echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968
5969 fi
5970
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5974 $as_echo "$ac_cv_type_pid_t" >&6; }
5975 if test "x$ac_cv_type_pid_t" = x""yes; then
5976 :
5977 else
5978
5979 cat >>confdefs.h <<_ACEOF
5980 #define pid_t int
5981 _ACEOF
5982
5983 fi
5984
5985 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5986 $as_echo_n "checking return type of signal handlers... " >&6; }
5987 if test "${ac_cv_type_signal+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <sys/types.h>
5997 #include <signal.h>
5998
5999 int
6000 main ()
6001 {
6002 return *(signal (0, 0)) (0) == 1;
6003 ;
6004 return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6014 $as_echo "$ac_try_echo") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
6025 ac_cv_type_signal=int
6026 else
6027 $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ac_cv_type_signal=void
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6036 $as_echo "$ac_cv_type_signal" >&6; }
6037
6038 cat >>confdefs.h <<_ACEOF
6039 #define RETSIGTYPE $ac_cv_type_signal
6040 _ACEOF
6041
6042
6043 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6044 $as_echo_n "checking for size_t... " >&6; }
6045 if test "${ac_cv_type_size_t+set}" = set; then
6046 $as_echo_n "(cached) " >&6
6047 else
6048 ac_cv_type_size_t=no
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 $ac_includes_default
6056 int
6057 main ()
6058 {
6059 if (sizeof (size_t))
6060 return 0;
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 $ac_includes_default
6090 int
6091 main ()
6092 {
6093 if (sizeof ((size_t)))
6094 return 0;
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6101 case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6106 $as_echo "$ac_try_echo") >&5
6107 (eval "$ac_compile") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest.$ac_objext; then
6117 :
6118 else
6119 $as_echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 ac_cv_type_size_t=yes
6123 fi
6124
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 else
6127 $as_echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130
6131 fi
6132
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 fi
6135 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6136 $as_echo "$ac_cv_type_size_t" >&6; }
6137 if test "x$ac_cv_type_size_t" = x""yes; then
6138 :
6139 else
6140
6141 cat >>confdefs.h <<_ACEOF
6142 #define size_t unsigned int
6143 _ACEOF
6144
6145 fi
6146
6147 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6148 $as_echo_n "checking for mode_t... " >&6; }
6149 if test "${ac_cv_type_mode_t+set}" = set; then
6150 $as_echo_n "(cached) " >&6
6151 else
6152 ac_cv_type_mode_t=no
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6160 int
6161 main ()
6162 {
6163 if (sizeof (mode_t))
6164 return 0;
6165 ;
6166 return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext
6170 if { (ac_try="$ac_compile"
6171 case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174 esac
6175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176 $as_echo "$ac_try_echo") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6194 int
6195 main ()
6196 {
6197 if (sizeof ((mode_t)))
6198 return 0;
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
6221 :
6222 else
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 ac_cv_type_mode_t=yes
6227 fi
6228
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 else
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234
6235 fi
6236
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 fi
6239 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6240 $as_echo "$ac_cv_type_mode_t" >&6; }
6241 if test "x$ac_cv_type_mode_t" = x""yes; then
6242 :
6243 else
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define mode_t int
6247 _ACEOF
6248
6249 fi
6250
6251 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6252 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6253 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6254 $as_echo_n "(cached) " >&6
6255 else
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6263 int
6264 main ()
6265 {
6266 static struct stat ac_aggr;
6267 if (ac_aggr.st_rdev)
6268 return 0;
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6275 case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278 esac
6279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280 $as_echo "$ac_try_echo") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6291 ac_cv_member_struct_stat_st_rdev=yes
6292 else
6293 $as_echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h. */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 int
6304 main ()
6305 {
6306 static struct stat ac_aggr;
6307 if (sizeof ac_aggr.st_rdev)
6308 return 0;
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6320 $as_echo "$ac_try_echo") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_cv_member_struct_stat_st_rdev=yes
6332 else
6333 $as_echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 ac_cv_member_struct_stat_st_rdev=no
6337 fi
6338
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341
6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 fi
6344 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6345 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6346 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6347
6348 cat >>confdefs.h <<_ACEOF
6349 #define HAVE_STRUCT_STAT_ST_RDEV 1
6350 _ACEOF
6351
6352
6353 fi
6354
6355 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6356 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6357 if test "${ac_cv_struct_tm+set}" = set; then
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <time.h>
6368
6369 int
6370 main ()
6371 {
6372 struct tm tm;
6373 int *p = &tm.tm_sec;
6374 return !p;
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6386 $as_echo "$ac_try_echo") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6397 ac_cv_struct_tm=time.h
6398 else
6399 $as_echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ac_cv_struct_tm=sys/time.h
6403 fi
6404
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6408 $as_echo "$ac_cv_struct_tm" >&6; }
6409 if test $ac_cv_struct_tm = sys/time.h; then
6410
6411 cat >>confdefs.h <<\_ACEOF
6412 #define TM_IN_SYS_TIME 1
6413 _ACEOF
6414
6415 fi
6416
6417
6418 ################################################################################
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6437 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6438 uname
6439 do
6440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6441 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6442 $as_echo_n "checking for $ac_func... " >&6; }
6443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6444 $as_echo_n "(cached) " >&6
6445 else
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6454 #define $ac_func innocuous_$ac_func
6455
6456 /* System header to define __stub macros and hopefully few prototypes,
6457 which can conflict with char $ac_func (); below.
6458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459 <limits.h> exists even on freestanding compilers. */
6460
6461 #ifdef __STDC__
6462 # include <limits.h>
6463 #else
6464 # include <assert.h>
6465 #endif
6466
6467 #undef $ac_func
6468
6469 /* Override any GCC internal prototype to avoid an error.
6470 Use char because int might match the return type of a GCC
6471 builtin and then its argument prototype would still apply. */
6472 #ifdef __cplusplus
6473 extern "C"
6474 #endif
6475 char $ac_func ();
6476 /* The GNU C library defines this for functions which it implements
6477 to always fail with ENOSYS. Some functions are actually named
6478 something starting with __ and the normal name is an alias. */
6479 #if defined __stub_$ac_func || defined __stub___$ac_func
6480 choke me
6481 #endif
6482
6483 int
6484 main ()
6485 {
6486 return $ac_func ();
6487 ;
6488 return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (ac_try="$ac_link"
6493 case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496 esac
6497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6498 $as_echo "$ac_try_echo") >&5
6499 (eval "$ac_link") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest$ac_exeext && {
6509 test "$cross_compiling" = yes ||
6510 $as_test_x conftest$ac_exeext
6511 }; then
6512 eval "$as_ac_var=yes"
6513 else
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 eval "$as_ac_var=no"
6518 fi
6519
6520 rm -rf conftest.dSYM
6521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6522 conftest$ac_exeext conftest.$ac_ext
6523 fi
6524 ac_res=`eval 'as_val=${'$as_ac_var'}
6525 $as_echo "$as_val"'`
6526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6527 $as_echo "$ac_res" >&6; }
6528 as_val=`eval 'as_val=${'$as_ac_var'}
6529 $as_echo "$as_val"'`
6530 if test "x$as_val" = x""yes; then
6531 cat >>confdefs.h <<_ACEOF
6532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6533 _ACEOF
6534
6535 else
6536 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6537 $as_echo "$as_me: error: bailing out" >&2;}
6538 { (exit 1); exit 1; }; }
6539 fi
6540 done
6541
6542
6543 for ac_func in siginterrupt
6544 do
6545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6547 $as_echo_n "checking for $ac_func... " >&6; }
6548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6559 #define $ac_func innocuous_$ac_func
6560
6561 /* System header to define __stub macros and hopefully few prototypes,
6562 which can conflict with char $ac_func (); below.
6563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564 <limits.h> exists even on freestanding compilers. */
6565
6566 #ifdef __STDC__
6567 # include <limits.h>
6568 #else
6569 # include <assert.h>
6570 #endif
6571
6572 #undef $ac_func
6573
6574 /* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 char $ac_func ();
6581 /* The GNU C library defines this for functions which it implements
6582 to always fail with ENOSYS. Some functions are actually named
6583 something starting with __ and the normal name is an alias. */
6584 #if defined __stub_$ac_func || defined __stub___$ac_func
6585 choke me
6586 #endif
6587
6588 int
6589 main ()
6590 {
6591 return $ac_func ();
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (ac_try="$ac_link"
6598 case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603 $as_echo "$ac_try_echo") >&5
6604 (eval "$ac_link") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest$ac_exeext && {
6614 test "$cross_compiling" = yes ||
6615 $as_test_x conftest$ac_exeext
6616 }; then
6617 eval "$as_ac_var=yes"
6618 else
6619 $as_echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 eval "$as_ac_var=no"
6623 fi
6624
6625 rm -rf conftest.dSYM
6626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6627 conftest$ac_exeext conftest.$ac_ext
6628 fi
6629 ac_res=`eval 'as_val=${'$as_ac_var'}
6630 $as_echo "$as_val"'`
6631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6632 $as_echo "$ac_res" >&6; }
6633 as_val=`eval 'as_val=${'$as_ac_var'}
6634 $as_echo "$as_val"'`
6635 if test "x$as_val" = x""yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6638 _ACEOF
6639
6640 fi
6641 done
6642
6643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6644 # for constant arguments. Useless!
6645 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6646 $as_echo_n "checking for working alloca.h... " >&6; }
6647 if test "${ac_cv_working_alloca_h+set}" = set; then
6648 $as_echo_n "(cached) " >&6
6649 else
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <alloca.h>
6657 int
6658 main ()
6659 {
6660 char *p = (char *) alloca (2 * sizeof (int));
6661 if (p) return 0;
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (ac_try="$ac_link"
6668 case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6673 $as_echo "$ac_try_echo") >&5
6674 (eval "$ac_link") 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest$ac_exeext && {
6684 test "$cross_compiling" = yes ||
6685 $as_test_x conftest$ac_exeext
6686 }; then
6687 ac_cv_working_alloca_h=yes
6688 else
6689 $as_echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6691
6692 ac_cv_working_alloca_h=no
6693 fi
6694
6695 rm -rf conftest.dSYM
6696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6697 conftest$ac_exeext conftest.$ac_ext
6698 fi
6699 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6700 $as_echo "$ac_cv_working_alloca_h" >&6; }
6701 if test $ac_cv_working_alloca_h = yes; then
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_ALLOCA_H 1
6705 _ACEOF
6706
6707 fi
6708
6709 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6710 $as_echo_n "checking for alloca... " >&6; }
6711 if test "${ac_cv_func_alloca_works+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 #ifdef __GNUC__
6721 # define alloca __builtin_alloca
6722 #else
6723 # ifdef _MSC_VER
6724 # include <malloc.h>
6725 # define alloca _alloca
6726 # else
6727 # ifdef HAVE_ALLOCA_H
6728 # include <alloca.h>
6729 # else
6730 # ifdef _AIX
6731 #pragma alloca
6732 # else
6733 # ifndef alloca /* predefined by HP cc +Olibcalls */
6734 char *alloca ();
6735 # endif
6736 # endif
6737 # endif
6738 # endif
6739 #endif
6740
6741 int
6742 main ()
6743 {
6744 char *p = (char *) alloca (1);
6745 if (p) return 0;
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (ac_try="$ac_link"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757 $as_echo "$ac_try_echo") >&5
6758 (eval "$ac_link") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest$ac_exeext && {
6768 test "$cross_compiling" = yes ||
6769 $as_test_x conftest$ac_exeext
6770 }; then
6771 ac_cv_func_alloca_works=yes
6772 else
6773 $as_echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 ac_cv_func_alloca_works=no
6777 fi
6778
6779 rm -rf conftest.dSYM
6780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6781 conftest$ac_exeext conftest.$ac_ext
6782 fi
6783 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6784 $as_echo "$ac_cv_func_alloca_works" >&6; }
6785
6786 if test $ac_cv_func_alloca_works = yes; then
6787
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_ALLOCA 1
6790 _ACEOF
6791
6792 else
6793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6794 # that cause trouble. Some versions do not even contain alloca or
6795 # contain a buggy version. If you still want to use their alloca,
6796 # use ar to extract alloca.o from them instead of compiling alloca.c.
6797
6798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6799
6800 cat >>confdefs.h <<\_ACEOF
6801 #define C_ALLOCA 1
6802 _ACEOF
6803
6804
6805 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6806 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6807 if test "${ac_cv_os_cray+set}" = set; then
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #if defined CRAY && ! defined CRAY2
6817 webecray
6818 #else
6819 wenotbecray
6820 #endif
6821
6822 _ACEOF
6823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824 $EGREP "webecray" >/dev/null 2>&1; then
6825 ac_cv_os_cray=yes
6826 else
6827 ac_cv_os_cray=no
6828 fi
6829 rm -f conftest*
6830
6831 fi
6832 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6833 $as_echo "$ac_cv_os_cray" >&6; }
6834 if test $ac_cv_os_cray = yes; then
6835 for ac_func in _getb67 GETB67 getb67; do
6836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6838 $as_echo_n "checking for $ac_func... " >&6; }
6839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6840 $as_echo_n "(cached) " >&6
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6850 #define $ac_func innocuous_$ac_func
6851
6852 /* System header to define __stub macros and hopefully few prototypes,
6853 which can conflict with char $ac_func (); below.
6854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855 <limits.h> exists even on freestanding compilers. */
6856
6857 #ifdef __STDC__
6858 # include <limits.h>
6859 #else
6860 # include <assert.h>
6861 #endif
6862
6863 #undef $ac_func
6864
6865 /* Override any GCC internal prototype to avoid an error.
6866 Use char because int might match the return type of a GCC
6867 builtin and then its argument prototype would still apply. */
6868 #ifdef __cplusplus
6869 extern "C"
6870 #endif
6871 char $ac_func ();
6872 /* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
6875 #if defined __stub_$ac_func || defined __stub___$ac_func
6876 choke me
6877 #endif
6878
6879 int
6880 main ()
6881 {
6882 return $ac_func ();
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (ac_try="$ac_link"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6894 $as_echo "$ac_try_echo") >&5
6895 (eval "$ac_link") 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest$ac_exeext && {
6905 test "$cross_compiling" = yes ||
6906 $as_test_x conftest$ac_exeext
6907 }; then
6908 eval "$as_ac_var=yes"
6909 else
6910 $as_echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 eval "$as_ac_var=no"
6914 fi
6915
6916 rm -rf conftest.dSYM
6917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6918 conftest$ac_exeext conftest.$ac_ext
6919 fi
6920 ac_res=`eval 'as_val=${'$as_ac_var'}
6921 $as_echo "$as_val"'`
6922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6923 $as_echo "$ac_res" >&6; }
6924 as_val=`eval 'as_val=${'$as_ac_var'}
6925 $as_echo "$as_val"'`
6926 if test "x$as_val" = x""yes; then
6927
6928 cat >>confdefs.h <<_ACEOF
6929 #define CRAY_STACKSEG_END $ac_func
6930 _ACEOF
6931
6932 break
6933 fi
6934
6935 done
6936 fi
6937
6938 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6939 $as_echo_n "checking stack direction for C alloca... " >&6; }
6940 if test "${ac_cv_c_stack_direction+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test "$cross_compiling" = yes; then
6944 ac_cv_c_stack_direction=0
6945 else
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 find_stack_direction ()
6955 {
6956 static char *addr = 0;
6957 auto char dummy;
6958 if (addr == 0)
6959 {
6960 addr = &dummy;
6961 return find_stack_direction ();
6962 }
6963 else
6964 return (&dummy > addr) ? 1 : -1;
6965 }
6966
6967 int
6968 main ()
6969 {
6970 return find_stack_direction () < 0;
6971 }
6972 _ACEOF
6973 rm -f conftest$ac_exeext
6974 if { (ac_try="$ac_link"
6975 case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978 esac
6979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980 $as_echo "$ac_try_echo") >&5
6981 (eval "$ac_link") 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6985 { (case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991 (eval "$ac_try") 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_c_stack_direction=1
6996 else
6997 $as_echo "$as_me: program exited with status $ac_status" >&5
6998 $as_echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ( exit $ac_status )
7002 ac_cv_c_stack_direction=-1
7003 fi
7004 rm -rf conftest.dSYM
7005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7006 fi
7007
7008
7009 fi
7010 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7011 $as_echo "$ac_cv_c_stack_direction" >&6; }
7012
7013 cat >>confdefs.h <<_ACEOF
7014 #define STACK_DIRECTION $ac_cv_c_stack_direction
7015 _ACEOF
7016
7017
7018 fi
7019
7020 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7021 $as_echo_n "checking whether closedir returns void... " >&6; }
7022 if test "${ac_cv_func_closedir_void+set}" = set; then
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test "$cross_compiling" = yes; then
7026 ac_cv_func_closedir_void=yes
7027 else
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7035 #include <$ac_header_dirent>
7036 #ifndef __cplusplus
7037 int closedir ();
7038 #endif
7039
7040 int
7041 main ()
7042 {
7043 return closedir (opendir (".")) != 0;
7044 ;
7045 return 0;
7046 }
7047 _ACEOF
7048 rm -f conftest$ac_exeext
7049 if { (ac_try="$ac_link"
7050 case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7055 $as_echo "$ac_try_echo") >&5
7056 (eval "$ac_link") 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060 { (case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7065 $as_echo "$ac_try_echo") >&5
7066 (eval "$ac_try") 2>&5
7067 ac_status=$?
7068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070 ac_cv_func_closedir_void=no
7071 else
7072 $as_echo "$as_me: program exited with status $ac_status" >&5
7073 $as_echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 ( exit $ac_status )
7077 ac_cv_func_closedir_void=yes
7078 fi
7079 rm -rf conftest.dSYM
7080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7081 fi
7082
7083
7084 fi
7085 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7086 $as_echo "$ac_cv_func_closedir_void" >&6; }
7087 if test $ac_cv_func_closedir_void = yes; then
7088
7089 cat >>confdefs.h <<\_ACEOF
7090 #define CLOSEDIR_VOID 1
7091 _ACEOF
7092
7093 fi
7094
7095
7096 for ac_header in vfork.h
7097 do
7098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 $as_echo_n "checking for $ac_header... " >&6; }
7102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7103 $as_echo_n "(cached) " >&6
7104 fi
7105 ac_res=`eval 'as_val=${'$as_ac_Header'}
7106 $as_echo "$as_val"'`
7107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7108 $as_echo "$ac_res" >&6; }
7109 else
7110 # Is the header compilable?
7111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7112 $as_echo_n "checking $ac_header usability... " >&6; }
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7120 #include <$ac_header>
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129 $as_echo "$ac_try_echo") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_header_compiler=yes
7141 else
7142 $as_echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_header_compiler=no
7146 fi
7147
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7150 $as_echo "$ac_header_compiler" >&6; }
7151
7152 # Is the header present?
7153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7154 $as_echo_n "checking $ac_header presence... " >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <$ac_header>
7162 _ACEOF
7163 if { (ac_try="$ac_cpp conftest.$ac_ext"
7164 case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167 esac
7168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7169 $as_echo "$ac_try_echo") >&5
7170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } >/dev/null && {
7177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 }; then
7180 ac_header_preproc=yes
7181 else
7182 $as_echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_header_preproc=no
7186 fi
7187
7188 rm -f conftest.err conftest.$ac_ext
7189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7190 $as_echo "$ac_header_preproc" >&6; }
7191
7192 # So? What about this header?
7193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7194 yes:no: )
7195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7199 ac_header_preproc=yes
7200 ;;
7201 no:yes:* )
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7214
7215 ;;
7216 esac
7217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7218 $as_echo_n "checking for $ac_header... " >&6; }
7219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7220 $as_echo_n "(cached) " >&6
7221 else
7222 eval "$as_ac_Header=\$ac_header_preproc"
7223 fi
7224 ac_res=`eval 'as_val=${'$as_ac_Header'}
7225 $as_echo "$as_val"'`
7226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7227 $as_echo "$ac_res" >&6; }
7228
7229 fi
7230 as_val=`eval 'as_val=${'$as_ac_Header'}
7231 $as_echo "$as_val"'`
7232 if test "x$as_val" = x""yes; then
7233 cat >>confdefs.h <<_ACEOF
7234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 _ACEOF
7236
7237 fi
7238
7239 done
7240
7241
7242
7243 for ac_func in fork vfork
7244 do
7245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7246 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7247 $as_echo_n "checking for $ac_func... " >&6; }
7248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7249 $as_echo_n "(cached) " >&6
7250 else
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7259 #define $ac_func innocuous_$ac_func
7260
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
7265
7266 #ifdef __STDC__
7267 # include <limits.h>
7268 #else
7269 # include <assert.h>
7270 #endif
7271
7272 #undef $ac_func
7273
7274 /* Override any GCC internal prototype to avoid an error.
7275 Use char because int might match the return type of a GCC
7276 builtin and then its argument prototype would still apply. */
7277 #ifdef __cplusplus
7278 extern "C"
7279 #endif
7280 char $ac_func ();
7281 /* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7284 #if defined __stub_$ac_func || defined __stub___$ac_func
7285 choke me
7286 #endif
7287
7288 int
7289 main ()
7290 {
7291 return $ac_func ();
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (ac_try="$ac_link"
7298 case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301 esac
7302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303 $as_echo "$ac_try_echo") >&5
7304 (eval "$ac_link") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest$ac_exeext && {
7314 test "$cross_compiling" = yes ||
7315 $as_test_x conftest$ac_exeext
7316 }; then
7317 eval "$as_ac_var=yes"
7318 else
7319 $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 eval "$as_ac_var=no"
7323 fi
7324
7325 rm -rf conftest.dSYM
7326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7327 conftest$ac_exeext conftest.$ac_ext
7328 fi
7329 ac_res=`eval 'as_val=${'$as_ac_var'}
7330 $as_echo "$as_val"'`
7331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7332 $as_echo "$ac_res" >&6; }
7333 as_val=`eval 'as_val=${'$as_ac_var'}
7334 $as_echo "$as_val"'`
7335 if test "x$as_val" = x""yes; then
7336 cat >>confdefs.h <<_ACEOF
7337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7338 _ACEOF
7339
7340 fi
7341 done
7342
7343 if test "x$ac_cv_func_fork" = xyes; then
7344 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7345 $as_echo_n "checking for working fork... " >&6; }
7346 if test "${ac_cv_func_fork_works+set}" = set; then
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if test "$cross_compiling" = yes; then
7350 ac_cv_func_fork_works=cross
7351 else
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7359 int
7360 main ()
7361 {
7362
7363 /* By Ruediger Kuhlmann. */
7364 return fork () < 0;
7365
7366 ;
7367 return 0;
7368 }
7369 _ACEOF
7370 rm -f conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7372 case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375 esac
7376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378 (eval "$ac_link") 2>&5
7379 ac_status=$?
7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7382 { (case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_try") 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_cv_func_fork_works=yes
7393 else
7394 $as_echo "$as_me: program exited with status $ac_status" >&5
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 ( exit $ac_status )
7399 ac_cv_func_fork_works=no
7400 fi
7401 rm -rf conftest.dSYM
7402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7403 fi
7404
7405
7406 fi
7407 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7408 $as_echo "$ac_cv_func_fork_works" >&6; }
7409
7410 else
7411 ac_cv_func_fork_works=$ac_cv_func_fork
7412 fi
7413 if test "x$ac_cv_func_fork_works" = xcross; then
7414 case $host in
7415 *-*-amigaos* | *-*-msdosdjgpp*)
7416 # Override, as these systems have only a dummy fork() stub
7417 ac_cv_func_fork_works=no
7418 ;;
7419 *)
7420 ac_cv_func_fork_works=yes
7421 ;;
7422 esac
7423 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7424 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7425 fi
7426 ac_cv_func_vfork_works=$ac_cv_func_vfork
7427 if test "x$ac_cv_func_vfork" = xyes; then
7428 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7429 $as_echo_n "checking for working vfork... " >&6; }
7430 if test "${ac_cv_func_vfork_works+set}" = set; then
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test "$cross_compiling" = yes; then
7434 ac_cv_func_vfork_works=cross
7435 else
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 /* Thanks to Paul Eggert for this test. */
7443 $ac_includes_default
7444 #include <sys/wait.h>
7445 #ifdef HAVE_VFORK_H
7446 # include <vfork.h>
7447 #endif
7448 /* On some sparc systems, changes by the child to local and incoming
7449 argument registers are propagated back to the parent. The compiler
7450 is told about this with #include <vfork.h>, but some compilers
7451 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7452 static variable whose address is put into a register that is
7453 clobbered by the vfork. */
7454 static void
7455 #ifdef __cplusplus
7456 sparc_address_test (int arg)
7457 # else
7458 sparc_address_test (arg) int arg;
7459 #endif
7460 {
7461 static pid_t child;
7462 if (!child) {
7463 child = vfork ();
7464 if (child < 0) {
7465 perror ("vfork");
7466 _exit(2);
7467 }
7468 if (!child) {
7469 arg = getpid();
7470 write(-1, "", 0);
7471 _exit (arg);
7472 }
7473 }
7474 }
7475
7476 int
7477 main ()
7478 {
7479 pid_t parent = getpid ();
7480 pid_t child;
7481
7482 sparc_address_test (0);
7483
7484 child = vfork ();
7485
7486 if (child == 0) {
7487 /* Here is another test for sparc vfork register problems. This
7488 test uses lots of local variables, at least as many local
7489 variables as main has allocated so far including compiler
7490 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7491 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7492 reuse the register of parent for one of the local variables,
7493 since it will think that parent can't possibly be used any more
7494 in this routine. Assigning to the local variable will thus
7495 munge parent in the parent process. */
7496 pid_t
7497 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7498 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7499 /* Convince the compiler that p..p7 are live; otherwise, it might
7500 use the same hardware register for all 8 local variables. */
7501 if (p != p1 || p != p2 || p != p3 || p != p4
7502 || p != p5 || p != p6 || p != p7)
7503 _exit(1);
7504
7505 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7506 from child file descriptors. If the child closes a descriptor
7507 before it execs or exits, this munges the parent's descriptor
7508 as well. Test for this by closing stdout in the child. */
7509 _exit(close(fileno(stdout)) != 0);
7510 } else {
7511 int status;
7512 struct stat st;
7513
7514 while (wait(&status) != child)
7515 ;
7516 return (
7517 /* Was there some problem with vforking? */
7518 child < 0
7519
7520 /* Did the child fail? (This shouldn't happen.) */
7521 || status
7522
7523 /* Did the vfork/compiler bug occur? */
7524 || parent != getpid()
7525
7526 /* Did the file descriptor bug occur? */
7527 || fstat(fileno(stdout), &st) != 0
7528 );
7529 }
7530 }
7531 _ACEOF
7532 rm -f conftest$ac_exeext
7533 if { (ac_try="$ac_link"
7534 case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537 esac
7538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7539 $as_echo "$ac_try_echo") >&5
7540 (eval "$ac_link") 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7544 { (case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7549 $as_echo "$ac_try_echo") >&5
7550 (eval "$ac_try") 2>&5
7551 ac_status=$?
7552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_func_vfork_works=yes
7555 else
7556 $as_echo "$as_me: program exited with status $ac_status" >&5
7557 $as_echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ( exit $ac_status )
7561 ac_cv_func_vfork_works=no
7562 fi
7563 rm -rf conftest.dSYM
7564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7565 fi
7566
7567
7568 fi
7569 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7570 $as_echo "$ac_cv_func_vfork_works" >&6; }
7571
7572 fi;
7573 if test "x$ac_cv_func_fork_works" = xcross; then
7574 ac_cv_func_vfork_works=$ac_cv_func_vfork
7575 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7576 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7577 fi
7578
7579 if test "x$ac_cv_func_vfork_works" = xyes; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_WORKING_VFORK 1
7583 _ACEOF
7584
7585 else
7586
7587 cat >>confdefs.h <<\_ACEOF
7588 #define vfork fork
7589 _ACEOF
7590
7591 fi
7592 if test "x$ac_cv_func_fork_works" = xyes; then
7593
7594 cat >>confdefs.h <<\_ACEOF
7595 #define HAVE_WORKING_FORK 1
7596 _ACEOF
7597
7598 fi
7599
7600 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7601 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7602 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7603 $as_echo_n "(cached) " >&6
7604 else
7605 rm -f conftest.sym conftest.file
7606 echo >conftest.file
7607 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7608 if test "$cross_compiling" = yes; then
7609 ac_cv_func_lstat_dereferences_slashed_symlink=no
7610 else
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 int
7619 main ()
7620 {
7621 struct stat sbuf;
7622 /* Linux will dereference the symlink and fail.
7623 That is better in the sense that it means we will not
7624 have to compile and use the lstat wrapper. */
7625 return lstat ("conftest.sym/", &sbuf) == 0;
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest$ac_exeext
7631 if { (ac_try="$ac_link"
7632 case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635 esac
7636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638 (eval "$ac_link") 2>&5
7639 ac_status=$?
7640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7642 { (case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7647 $as_echo "$ac_try_echo") >&5
7648 (eval "$ac_try") 2>&5
7649 ac_status=$?
7650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7653 else
7654 $as_echo "$as_me: program exited with status $ac_status" >&5
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 ( exit $ac_status )
7659 ac_cv_func_lstat_dereferences_slashed_symlink=no
7660 fi
7661 rm -rf conftest.dSYM
7662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7663 fi
7664
7665
7666 else
7667 # If the `ln -s' command failed, then we probably don't even
7668 # have an lstat function.
7669 ac_cv_func_lstat_dereferences_slashed_symlink=no
7670 fi
7671 rm -f conftest.sym conftest.file
7672
7673 fi
7674 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7675 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7676
7677 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7678
7679 cat >>confdefs.h <<_ACEOF
7680 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7681 _ACEOF
7682
7683
7684 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7685 case " $LIBOBJS " in
7686 *" lstat.$ac_objext "* ) ;;
7687 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7688 ;;
7689 esac
7690
7691 fi
7692
7693 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7694 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7695 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test "$cross_compiling" = yes; then
7699 ac_cv_func_lstat_empty_string_bug=yes
7700 else
7701 cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h. */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 $ac_includes_default
7708 int
7709 main ()
7710 {
7711 struct stat sbuf;
7712 return lstat ("", &sbuf) == 0;
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest$ac_exeext
7718 if { (ac_try="$ac_link"
7719 case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722 esac
7723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7724 $as_echo "$ac_try_echo") >&5
7725 (eval "$ac_link") 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735 (eval "$ac_try") 2>&5
7736 ac_status=$?
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_cv_func_lstat_empty_string_bug=no
7740 else
7741 $as_echo "$as_me: program exited with status $ac_status" >&5
7742 $as_echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 ( exit $ac_status )
7746 ac_cv_func_lstat_empty_string_bug=yes
7747 fi
7748 rm -rf conftest.dSYM
7749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7750 fi
7751
7752
7753 fi
7754 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7755 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7756 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7757 case " $LIBOBJS " in
7758 *" lstat.$ac_objext "* ) ;;
7759 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7760 ;;
7761 esac
7762
7763
7764 cat >>confdefs.h <<_ACEOF
7765 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7766 _ACEOF
7767
7768 fi
7769
7770
7771 for ac_header in stdlib.h
7772 do
7773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 $as_echo_n "checking for $ac_header... " >&6; }
7777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778 $as_echo_n "(cached) " >&6
7779 fi
7780 ac_res=`eval 'as_val=${'$as_ac_Header'}
7781 $as_echo "$as_val"'`
7782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7783 $as_echo "$ac_res" >&6; }
7784 else
7785 # Is the header compilable?
7786 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7787 $as_echo_n "checking $ac_header usability... " >&6; }
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #include <$ac_header>
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7804 $as_echo "$ac_try_echo") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest.$ac_objext; then
7815 ac_header_compiler=yes
7816 else
7817 $as_echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_header_compiler=no
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7825 $as_echo "$ac_header_compiler" >&6; }
7826
7827 # Is the header present?
7828 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7829 $as_echo_n "checking $ac_header presence... " >&6; }
7830 cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h. */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 #include <$ac_header>
7837 _ACEOF
7838 if { (ac_try="$ac_cpp conftest.$ac_ext"
7839 case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842 esac
7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844 $as_echo "$ac_try_echo") >&5
7845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev/null && {
7852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 }; then
7855 ac_header_preproc=yes
7856 else
7857 $as_echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 ac_header_preproc=no
7861 fi
7862
7863 rm -f conftest.err conftest.$ac_ext
7864 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7865 $as_echo "$ac_header_preproc" >&6; }
7866
7867 # So? What about this header?
7868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7869 yes:no: )
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7871 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7874 ac_header_preproc=yes
7875 ;;
7876 no:yes:* )
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7878 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7882 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7884 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7888 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7889
7890 ;;
7891 esac
7892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7893 $as_echo_n "checking for $ac_header... " >&6; }
7894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7895 $as_echo_n "(cached) " >&6
7896 else
7897 eval "$as_ac_Header=\$ac_header_preproc"
7898 fi
7899 ac_res=`eval 'as_val=${'$as_ac_Header'}
7900 $as_echo "$as_val"'`
7901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7902 $as_echo "$ac_res" >&6; }
7903
7904 fi
7905 as_val=`eval 'as_val=${'$as_ac_Header'}
7906 $as_echo "$as_val"'`
7907 if test "x$as_val" = x""yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7910 _ACEOF
7911
7912 fi
7913
7914 done
7915
7916 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7917 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7918 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test "$cross_compiling" = yes; then
7922 ac_cv_func_malloc_0_nonnull=no
7923 else
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7931 # include <stdlib.h>
7932 #else
7933 char *malloc ();
7934 #endif
7935
7936 int
7937 main ()
7938 {
7939 return ! malloc (0);
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7946 case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949 esac
7950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7951 $as_echo "$ac_try_echo") >&5
7952 (eval "$ac_link") 2>&5
7953 ac_status=$?
7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7956 { (case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959 esac
7960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7961 $as_echo "$ac_try_echo") >&5
7962 (eval "$ac_try") 2>&5
7963 ac_status=$?
7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_func_malloc_0_nonnull=yes
7967 else
7968 $as_echo "$as_me: program exited with status $ac_status" >&5
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ( exit $ac_status )
7973 ac_cv_func_malloc_0_nonnull=no
7974 fi
7975 rm -rf conftest.dSYM
7976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7977 fi
7978
7979
7980 fi
7981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7982 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7983 if test $ac_cv_func_malloc_0_nonnull = yes; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_MALLOC 1
7987 _ACEOF
7988
7989 else
7990 cat >>confdefs.h <<\_ACEOF
7991 #define HAVE_MALLOC 0
7992 _ACEOF
7993
7994 case " $LIBOBJS " in
7995 *" malloc.$ac_objext "* ) ;;
7996 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7997 ;;
7998 esac
7999
8000
8001 cat >>confdefs.h <<\_ACEOF
8002 #define malloc rpl_malloc
8003 _ACEOF
8004
8005 fi
8006
8007
8008
8009 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8010 $as_echo_n "checking for working memcmp... " >&6; }
8011 if test "${ac_cv_func_memcmp_working+set}" = set; then
8012 $as_echo_n "(cached) " >&6
8013 else
8014 if test "$cross_compiling" = yes; then
8015 ac_cv_func_memcmp_working=no
8016 else
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 $ac_includes_default
8024 int
8025 main ()
8026 {
8027
8028 /* Some versions of memcmp are not 8-bit clean. */
8029 char c0 = '\100', c1 = '\200', c2 = '\201';
8030 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8031 return 1;
8032
8033 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8034 or more and with at least one buffer not starting on a 4-byte boundary.
8035 William Lewis provided this test program. */
8036 {
8037 char foo[21];
8038 char bar[21];
8039 int i;
8040 for (i = 0; i < 4; i++)
8041 {
8042 char *a = foo + i;
8043 char *b = bar + i;
8044 strcpy (a, "--------01111111");
8045 strcpy (b, "--------10000000");
8046 if (memcmp (a, b, 16) >= 0)
8047 return 1;
8048 }
8049 return 0;
8050 }
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest$ac_exeext
8057 if { (ac_try="$ac_link"
8058 case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063 $as_echo "$ac_try_echo") >&5
8064 (eval "$ac_link") 2>&5
8065 ac_status=$?
8066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071 esac
8072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8073 $as_echo "$ac_try_echo") >&5
8074 (eval "$ac_try") 2>&5
8075 ac_status=$?
8076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_func_memcmp_working=yes
8079 else
8080 $as_echo "$as_me: program exited with status $ac_status" >&5
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ( exit $ac_status )
8085 ac_cv_func_memcmp_working=no
8086 fi
8087 rm -rf conftest.dSYM
8088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8089 fi
8090
8091
8092 fi
8093 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8094 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8095 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8096 *" memcmp.$ac_objext "* ) ;;
8097 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8098 ;;
8099 esac
8100
8101
8102
8103
8104 for ac_header in stdlib.h unistd.h
8105 do
8106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 $as_echo_n "checking for $ac_header... " >&6; }
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 $as_echo_n "(cached) " >&6
8112 fi
8113 ac_res=`eval 'as_val=${'$as_ac_Header'}
8114 $as_echo "$as_val"'`
8115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8116 $as_echo "$ac_res" >&6; }
8117 else
8118 # Is the header compilable?
8119 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120 $as_echo_n "checking $ac_header usability... " >&6; }
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include <$ac_header>
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8148 ac_header_compiler=yes
8149 else
8150 $as_echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 ac_header_compiler=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 $as_echo "$ac_header_compiler" >&6; }
8159
8160 # Is the header present?
8161 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8162 $as_echo_n "checking $ac_header presence... " >&6; }
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 #include <$ac_header>
8170 _ACEOF
8171 if { (ac_try="$ac_cpp conftest.$ac_ext"
8172 case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175 esac
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177 $as_echo "$ac_try_echo") >&5
8178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } >/dev/null && {
8185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 }; then
8188 ac_header_preproc=yes
8189 else
8190 $as_echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 ac_header_preproc=no
8194 fi
8195
8196 rm -f conftest.err conftest.$ac_ext
8197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8198 $as_echo "$ac_header_preproc" >&6; }
8199
8200 # So? What about this header?
8201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8202 yes:no: )
8203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8204 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8207 ac_header_preproc=yes
8208 ;;
8209 no:yes:* )
8210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8211 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8213 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8215 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8217 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8219 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8221 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8222
8223 ;;
8224 esac
8225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 $as_echo_n "checking for $ac_header... " >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228 $as_echo_n "(cached) " >&6
8229 else
8230 eval "$as_ac_Header=\$ac_header_preproc"
8231 fi
8232 ac_res=`eval 'as_val=${'$as_ac_Header'}
8233 $as_echo "$as_val"'`
8234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8235 $as_echo "$ac_res" >&6; }
8236
8237 fi
8238 as_val=`eval 'as_val=${'$as_ac_Header'}
8239 $as_echo "$as_val"'`
8240 if test "x$as_val" = x""yes; then
8241 cat >>confdefs.h <<_ACEOF
8242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8243 _ACEOF
8244
8245 fi
8246
8247 done
8248
8249
8250 for ac_func in getpagesize
8251 do
8252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8254 $as_echo_n "checking for $ac_func... " >&6; }
8255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8256 $as_echo_n "(cached) " >&6
8257 else
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8266 #define $ac_func innocuous_$ac_func
8267
8268 /* System header to define __stub macros and hopefully few prototypes,
8269 which can conflict with char $ac_func (); below.
8270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8271 <limits.h> exists even on freestanding compilers. */
8272
8273 #ifdef __STDC__
8274 # include <limits.h>
8275 #else
8276 # include <assert.h>
8277 #endif
8278
8279 #undef $ac_func
8280
8281 /* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
8284 #ifdef __cplusplus
8285 extern "C"
8286 #endif
8287 char $ac_func ();
8288 /* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291 #if defined __stub_$ac_func || defined __stub___$ac_func
8292 choke me
8293 #endif
8294
8295 int
8296 main ()
8297 {
8298 return $ac_func ();
8299 ;
8300 return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (ac_try="$ac_link"
8305 case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308 esac
8309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 $as_echo "$ac_try_echo") >&5
8311 (eval "$ac_link") 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest$ac_exeext && {
8321 test "$cross_compiling" = yes ||
8322 $as_test_x conftest$ac_exeext
8323 }; then
8324 eval "$as_ac_var=yes"
8325 else
8326 $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 eval "$as_ac_var=no"
8330 fi
8331
8332 rm -rf conftest.dSYM
8333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334 conftest$ac_exeext conftest.$ac_ext
8335 fi
8336 ac_res=`eval 'as_val=${'$as_ac_var'}
8337 $as_echo "$as_val"'`
8338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8339 $as_echo "$ac_res" >&6; }
8340 as_val=`eval 'as_val=${'$as_ac_var'}
8341 $as_echo "$as_val"'`
8342 if test "x$as_val" = x""yes; then
8343 cat >>confdefs.h <<_ACEOF
8344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8345 _ACEOF
8346
8347 fi
8348 done
8349
8350 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8351 $as_echo_n "checking for working mmap... " >&6; }
8352 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test "$cross_compiling" = yes; then
8356 ac_cv_func_mmap_fixed_mapped=no
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8365 /* malloc might have been renamed as rpl_malloc. */
8366 #undef malloc
8367
8368 /* Thanks to Mike Haertel and Jim Avera for this test.
8369 Here is a matrix of mmap possibilities:
8370 mmap private not fixed
8371 mmap private fixed at somewhere currently unmapped
8372 mmap private fixed at somewhere already mapped
8373 mmap shared not fixed
8374 mmap shared fixed at somewhere currently unmapped
8375 mmap shared fixed at somewhere already mapped
8376 For private mappings, we should verify that changes cannot be read()
8377 back from the file, nor mmap's back from the file at a different
8378 address. (There have been systems where private was not correctly
8379 implemented like the infamous i386 svr4.0, and systems where the
8380 VM page cache was not coherent with the file system buffer cache
8381 like early versions of FreeBSD and possibly contemporary NetBSD.)
8382 For shared mappings, we should conversely verify that changes get
8383 propagated back to all the places they're supposed to be.
8384
8385 Grep wants private fixed already mapped.
8386 The main things grep needs to know about mmap are:
8387 * does it exist and is it safe to write into the mmap'd area
8388 * how to use it (BSD variants) */
8389
8390 #include <fcntl.h>
8391 #include <sys/mman.h>
8392
8393 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8394 char *malloc ();
8395 #endif
8396
8397 /* This mess was copied from the GNU getpagesize.h. */
8398 #ifndef HAVE_GETPAGESIZE
8399 /* Assume that all systems that can run configure have sys/param.h. */
8400 # ifndef HAVE_SYS_PARAM_H
8401 # define HAVE_SYS_PARAM_H 1
8402 # endif
8403
8404 # ifdef _SC_PAGESIZE
8405 # define getpagesize() sysconf(_SC_PAGESIZE)
8406 # else /* no _SC_PAGESIZE */
8407 # ifdef HAVE_SYS_PARAM_H
8408 # include <sys/param.h>
8409 # ifdef EXEC_PAGESIZE
8410 # define getpagesize() EXEC_PAGESIZE
8411 # else /* no EXEC_PAGESIZE */
8412 # ifdef NBPG
8413 # define getpagesize() NBPG * CLSIZE
8414 # ifndef CLSIZE
8415 # define CLSIZE 1
8416 # endif /* no CLSIZE */
8417 # else /* no NBPG */
8418 # ifdef NBPC
8419 # define getpagesize() NBPC
8420 # else /* no NBPC */
8421 # ifdef PAGESIZE
8422 # define getpagesize() PAGESIZE
8423 # endif /* PAGESIZE */
8424 # endif /* no NBPC */
8425 # endif /* no NBPG */
8426 # endif /* no EXEC_PAGESIZE */
8427 # else /* no HAVE_SYS_PARAM_H */
8428 # define getpagesize() 8192 /* punt totally */
8429 # endif /* no HAVE_SYS_PARAM_H */
8430 # endif /* no _SC_PAGESIZE */
8431
8432 #endif /* no HAVE_GETPAGESIZE */
8433
8434 int
8435 main ()
8436 {
8437 char *data, *data2, *data3;
8438 int i, pagesize;
8439 int fd;
8440
8441 pagesize = getpagesize ();
8442
8443 /* First, make a file with some known garbage in it. */
8444 data = (char *) malloc (pagesize);
8445 if (!data)
8446 return 1;
8447 for (i = 0; i < pagesize; ++i)
8448 *(data + i) = rand ();
8449 umask (0);
8450 fd = creat ("conftest.mmap", 0600);
8451 if (fd < 0)
8452 return 1;
8453 if (write (fd, data, pagesize) != pagesize)
8454 return 1;
8455 close (fd);
8456
8457 /* Next, try to mmap the file at a fixed address which already has
8458 something else allocated at it. If we can, also make sure that
8459 we see the same garbage. */
8460 fd = open ("conftest.mmap", O_RDWR);
8461 if (fd < 0)
8462 return 1;
8463 data2 = (char *) malloc (2 * pagesize);
8464 if (!data2)
8465 return 1;
8466 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8467 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8468 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8469 return 1;
8470 for (i = 0; i < pagesize; ++i)
8471 if (*(data + i) != *(data2 + i))
8472 return 1;
8473
8474 /* Finally, make sure that changes to the mapped area do not
8475 percolate back to the file as seen by read(). (This is a bug on
8476 some variants of i386 svr4.0.) */
8477 for (i = 0; i < pagesize; ++i)
8478 *(data2 + i) = *(data2 + i) + 1;
8479 data3 = (char *) malloc (pagesize);
8480 if (!data3)
8481 return 1;
8482 if (read (fd, data3, pagesize) != pagesize)
8483 return 1;
8484 for (i = 0; i < pagesize; ++i)
8485 if (*(data + i) != *(data3 + i))
8486 return 1;
8487 close (fd);
8488 return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8493 case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496 esac
8497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8498 $as_echo "$ac_try_echo") >&5
8499 (eval "$ac_link") 2>&5
8500 ac_status=$?
8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508 $as_echo "$ac_try_echo") >&5
8509 (eval "$ac_try") 2>&5
8510 ac_status=$?
8511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_func_mmap_fixed_mapped=yes
8514 else
8515 $as_echo "$as_me: program exited with status $ac_status" >&5
8516 $as_echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 ( exit $ac_status )
8520 ac_cv_func_mmap_fixed_mapped=no
8521 fi
8522 rm -rf conftest.dSYM
8523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8524 fi
8525
8526
8527 fi
8528 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8529 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8531
8532 cat >>confdefs.h <<\_ACEOF
8533 #define HAVE_MMAP 1
8534 _ACEOF
8535
8536 fi
8537 rm -f conftest.mmap
8538
8539 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8540 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8541 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test "$cross_compiling" = yes; then
8545 ac_cv_func_stat_empty_string_bug=yes
8546 else
8547 cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h. */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8553 $ac_includes_default
8554 int
8555 main ()
8556 {
8557 struct stat sbuf;
8558 return stat ("", &sbuf) == 0;
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest$ac_exeext
8564 if { (ac_try="$ac_link"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_link") 2>&5
8572 ac_status=$?
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8575 { (case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581 (eval "$ac_try") 2>&5
8582 ac_status=$?
8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_func_stat_empty_string_bug=no
8586 else
8587 $as_echo "$as_me: program exited with status $ac_status" >&5
8588 $as_echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591 ( exit $ac_status )
8592 ac_cv_func_stat_empty_string_bug=yes
8593 fi
8594 rm -rf conftest.dSYM
8595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8596 fi
8597
8598
8599 fi
8600 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8601 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8602 if test $ac_cv_func_stat_empty_string_bug = yes; then
8603 case " $LIBOBJS " in
8604 *" stat.$ac_objext "* ) ;;
8605 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8606 ;;
8607 esac
8608
8609
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_STAT_EMPTY_STRING_BUG 1
8612 _ACEOF
8613
8614 fi
8615
8616 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8617 $as_echo_n "checking for working strtod... " >&6; }
8618 if test "${ac_cv_func_strtod+set}" = set; then
8619 $as_echo_n "(cached) " >&6
8620 else
8621 if test "$cross_compiling" = yes; then
8622 ac_cv_func_strtod=no
8623 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630
8631 $ac_includes_default
8632 #ifndef strtod
8633 double strtod ();
8634 #endif
8635 int
8636 main()
8637 {
8638 {
8639 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8640 char *string = " +69";
8641 char *term;
8642 double value;
8643 value = strtod (string, &term);
8644 if (value != 69 || term != (string + 4))
8645 return 1;
8646 }
8647
8648 {
8649 /* Under Solaris 2.4, strtod returns the wrong value for the
8650 terminating character under some conditions. */
8651 char *string = "NaN";
8652 char *term;
8653 strtod (string, &term);
8654 if (term != string && *(term - 1) == 0)
8655 return 1;
8656 }
8657 return 0;
8658 }
8659
8660 _ACEOF
8661 rm -f conftest$ac_exeext
8662 if { (ac_try="$ac_link"
8663 case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8668 $as_echo "$ac_try_echo") >&5
8669 (eval "$ac_link") 2>&5
8670 ac_status=$?
8671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8673 { (case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676 esac
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_try") 2>&5
8680 ac_status=$?
8681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_func_strtod=yes
8684 else
8685 $as_echo "$as_me: program exited with status $ac_status" >&5
8686 $as_echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 ( exit $ac_status )
8690 ac_cv_func_strtod=no
8691 fi
8692 rm -rf conftest.dSYM
8693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8694 fi
8695
8696
8697 fi
8698 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8699 $as_echo "$ac_cv_func_strtod" >&6; }
8700 if test $ac_cv_func_strtod = no; then
8701 case " $LIBOBJS " in
8702 *" strtod.$ac_objext "* ) ;;
8703 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8704 ;;
8705 esac
8706
8707 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8708 $as_echo_n "checking for pow... " >&6; }
8709 if test "${ac_cv_func_pow+set}" = set; then
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h. */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8720 #define pow innocuous_pow
8721
8722 /* System header to define __stub macros and hopefully few prototypes,
8723 which can conflict with char pow (); below.
8724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725 <limits.h> exists even on freestanding compilers. */
8726
8727 #ifdef __STDC__
8728 # include <limits.h>
8729 #else
8730 # include <assert.h>
8731 #endif
8732
8733 #undef pow
8734
8735 /* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char pow ();
8742 /* The GNU C library defines this for functions which it implements
8743 to always fail with ENOSYS. Some functions are actually named
8744 something starting with __ and the normal name is an alias. */
8745 #if defined __stub_pow || defined __stub___pow
8746 choke me
8747 #endif
8748
8749 int
8750 main ()
8751 {
8752 return pow ();
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_link") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest$ac_exeext && {
8775 test "$cross_compiling" = yes ||
8776 $as_test_x conftest$ac_exeext
8777 }; then
8778 ac_cv_func_pow=yes
8779 else
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_cv_func_pow=no
8784 fi
8785
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8788 conftest$ac_exeext conftest.$ac_ext
8789 fi
8790 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8791 $as_echo "$ac_cv_func_pow" >&6; }
8792
8793 if test $ac_cv_func_pow = no; then
8794 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8795 $as_echo_n "checking for pow in -lm... " >&6; }
8796 if test "${ac_cv_lib_m_pow+set}" = set; then
8797 $as_echo_n "(cached) " >&6
8798 else
8799 ac_check_lib_save_LIBS=$LIBS
8800 LIBS="-lm $LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807
8808 /* Override any GCC internal prototype to avoid an error.
8809 Use char because int might match the return type of a GCC
8810 builtin and then its argument prototype would still apply. */
8811 #ifdef __cplusplus
8812 extern "C"
8813 #endif
8814 char pow ();
8815 int
8816 main ()
8817 {
8818 return pow ();
8819 ;
8820 return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (ac_try="$ac_link"
8825 case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828 esac
8829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8830 $as_echo "$ac_try_echo") >&5
8831 (eval "$ac_link") 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && {
8838 test -z "$ac_c_werror_flag" ||
8839 test ! -s conftest.err
8840 } && test -s conftest$ac_exeext && {
8841 test "$cross_compiling" = yes ||
8842 $as_test_x conftest$ac_exeext
8843 }; then
8844 ac_cv_lib_m_pow=yes
8845 else
8846 $as_echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_lib_m_pow=no
8850 fi
8851
8852 rm -rf conftest.dSYM
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854 conftest$ac_exeext conftest.$ac_ext
8855 LIBS=$ac_check_lib_save_LIBS
8856 fi
8857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8858 $as_echo "$ac_cv_lib_m_pow" >&6; }
8859 if test "x$ac_cv_lib_m_pow" = x""yes; then
8860 POW_LIB=-lm
8861 else
8862 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8863 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8864 fi
8865
8866 fi
8867
8868 fi
8869
8870
8871 for ac_func in vprintf
8872 do
8873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8875 $as_echo_n "checking for $ac_func... " >&6; }
8876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887 #define $ac_func innocuous_$ac_func
8888
8889 /* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char $ac_func (); below.
8891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 <limits.h> exists even on freestanding compilers. */
8893
8894 #ifdef __STDC__
8895 # include <limits.h>
8896 #else
8897 # include <assert.h>
8898 #endif
8899
8900 #undef $ac_func
8901
8902 /* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 char $ac_func ();
8909 /* The GNU C library defines this for functions which it implements
8910 to always fail with ENOSYS. Some functions are actually named
8911 something starting with __ and the normal name is an alias. */
8912 #if defined __stub_$ac_func || defined __stub___$ac_func
8913 choke me
8914 #endif
8915
8916 int
8917 main ()
8918 {
8919 return $ac_func ();
8920 ;
8921 return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (ac_try="$ac_link"
8926 case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929 esac
8930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8931 $as_echo "$ac_try_echo") >&5
8932 (eval "$ac_link") 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest$ac_exeext && {
8942 test "$cross_compiling" = yes ||
8943 $as_test_x conftest$ac_exeext
8944 }; then
8945 eval "$as_ac_var=yes"
8946 else
8947 $as_echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 eval "$as_ac_var=no"
8951 fi
8952
8953 rm -rf conftest.dSYM
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
8956 fi
8957 ac_res=`eval 'as_val=${'$as_ac_var'}
8958 $as_echo "$as_val"'`
8959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8960 $as_echo "$ac_res" >&6; }
8961 as_val=`eval 'as_val=${'$as_ac_var'}
8962 $as_echo "$as_val"'`
8963 if test "x$as_val" = x""yes; then
8964 cat >>confdefs.h <<_ACEOF
8965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8966 _ACEOF
8967
8968 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8969 $as_echo_n "checking for _doprnt... " >&6; }
8970 if test "${ac_cv_func__doprnt+set}" = set; then
8971 $as_echo_n "(cached) " >&6
8972 else
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8981 #define _doprnt innocuous__doprnt
8982
8983 /* System header to define __stub macros and hopefully few prototypes,
8984 which can conflict with char _doprnt (); below.
8985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8986 <limits.h> exists even on freestanding compilers. */
8987
8988 #ifdef __STDC__
8989 # include <limits.h>
8990 #else
8991 # include <assert.h>
8992 #endif
8993
8994 #undef _doprnt
8995
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 char _doprnt ();
9003 /* The GNU C library defines this for functions which it implements
9004 to always fail with ENOSYS. Some functions are actually named
9005 something starting with __ and the normal name is an alias. */
9006 #if defined __stub__doprnt || defined __stub____doprnt
9007 choke me
9008 #endif
9009
9010 int
9011 main ()
9012 {
9013 return _doprnt ();
9014 ;
9015 return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9020 case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023 esac
9024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9025 $as_echo "$ac_try_echo") >&5
9026 (eval "$ac_link") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } && {
9033 test -z "$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9035 } && test -s conftest$ac_exeext && {
9036 test "$cross_compiling" = yes ||
9037 $as_test_x conftest$ac_exeext
9038 }; then
9039 ac_cv_func__doprnt=yes
9040 else
9041 $as_echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 ac_cv_func__doprnt=no
9045 fi
9046
9047 rm -rf conftest.dSYM
9048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 fi
9051 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9052 $as_echo "$ac_cv_func__doprnt" >&6; }
9053 if test "x$ac_cv_func__doprnt" = x""yes; then
9054
9055 cat >>confdefs.h <<\_ACEOF
9056 #define HAVE_DOPRNT 1
9057 _ACEOF
9058
9059 fi
9060
9061 fi
9062 done
9063
9064
9065
9066 ################################################################################
9067 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9068 $as_echo_n "checking whether to use static linking... " >&6; }
9069 # Check whether --enable-static_link was given.
9070 if test "${enable_static_link+set}" = set; then
9071 enableval=$enable_static_link; STATIC_LINK=$enableval
9072 else
9073 STATIC_LINK=no
9074 fi
9075
9076 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9077 $as_echo "$STATIC_LINK" >&6; }
9078
9079 ################################################################################
9080
9081
9082 ################################################################################
9083 { $as_echo "$as_me:$LINENO: checking file owner" >&5
9084 $as_echo_n "checking file owner... " >&6; }
9085 OWNER=""
9086
9087
9088 # Check whether --with-user was given.
9089 if test "${with_user+set}" = set; then
9090 withval=$with_user; OWNER="$withval"
9091 fi
9092
9093 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9094 $as_echo "$OWNER" >&6; }
9095
9096 if test x$OWNER != x; then
9097 OWNER="-o $OWNER"
9098 fi
9099
9100 ################################################################################
9101 { $as_echo "$as_me:$LINENO: checking group owner" >&5
9102 $as_echo_n "checking group owner... " >&6; }
9103 GROUP=""
9104
9105 # Check whether --with-group was given.
9106 if test "${with_group+set}" = set; then
9107 withval=$with_group; GROUP="$withval"
9108 fi
9109
9110 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9111 $as_echo "$GROUP" >&6; }
9112
9113 if test x$GROUP != x; then
9114 GROUP="-g $GROUP"
9115 fi
9116
9117 ################################################################################
9118 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9119 $as_echo_n "checking device node uid... " >&6; }
9120
9121
9122 # Check whether --with-device-uid was given.
9123 if test "${with_device_uid+set}" = set; then
9124 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9125 else
9126 DM_DEVICE_UID="0"
9127 fi
9128
9129 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9130 $as_echo "$DM_DEVICE_UID" >&6; }
9131
9132 ################################################################################
9133 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9134 $as_echo_n "checking device node gid... " >&6; }
9135
9136
9137 # Check whether --with-device-gid was given.
9138 if test "${with_device_gid+set}" = set; then
9139 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9140 else
9141 DM_DEVICE_GID="0"
9142 fi
9143
9144 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9145 $as_echo "$DM_DEVICE_GID" >&6; }
9146
9147 ################################################################################
9148 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9149 $as_echo_n "checking device node mode... " >&6; }
9150
9151
9152 # Check whether --with-device-mode was given.
9153 if test "${with_device_mode+set}" = set; then
9154 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9155 else
9156 DM_DEVICE_MODE="0600"
9157 fi
9158
9159 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9160 $as_echo "$DM_DEVICE_MODE" >&6; }
9161
9162 ################################################################################
9163 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9164 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9165 # Check whether --enable-lvm1_fallback was given.
9166 if test "${enable_lvm1_fallback+set}" = set; then
9167 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9168 else
9169 LVM1_FALLBACK=no
9170 fi
9171
9172 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9173 $as_echo "$LVM1_FALLBACK" >&6; }
9174
9175 if test x$LVM1_FALLBACK = xyes; then
9176
9177 cat >>confdefs.h <<\_ACEOF
9178 #define LVM1_FALLBACK 1
9179 _ACEOF
9180
9181 fi
9182
9183 ################################################################################
9184 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9185 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9186
9187 # Check whether --with-lvm1 was given.
9188 if test "${with_lvm1+set}" = set; then
9189 withval=$with_lvm1; LVM1="$withval"
9190 else
9191 LVM1="internal"
9192 fi
9193
9194 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9195 $as_echo "$LVM1" >&6; }
9196
9197 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9198 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9199 " >&5
9200 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9201 " >&2;}
9202 { (exit 1); exit 1; }; }
9203 fi;
9204
9205 if test x$LVM1 = xinternal; then
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define LVM1_INTERNAL 1
9209 _ACEOF
9210
9211 fi
9212
9213 ################################################################################
9214 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9215 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9216
9217 # Check whether --with-pool was given.
9218 if test "${with_pool+set}" = set; then
9219 withval=$with_pool; POOL="$withval"
9220 else
9221 POOL="internal"
9222 fi
9223
9224 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9225 $as_echo "$POOL" >&6; }
9226
9227 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9228 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9229 " >&5
9230 $as_echo "$as_me: error: --with-pool parameter invalid
9231 " >&2;}
9232 { (exit 1); exit 1; }; }
9233 fi;
9234
9235 if test x$POOL = xinternal; then
9236
9237 cat >>confdefs.h <<\_ACEOF
9238 #define POOL_INTERNAL 1
9239 _ACEOF
9240
9241 fi
9242
9243 ################################################################################
9244 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9245 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9246
9247 # Check whether --with-cluster was given.
9248 if test "${with_cluster+set}" = set; then
9249 withval=$with_cluster; CLUSTER="$withval"
9250 fi
9251
9252 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9253 $as_echo "$CLUSTER" >&6; }
9254
9255 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9256 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9257 " >&5
9258 $as_echo "$as_me: error: --with-cluster parameter invalid
9259 " >&2;}
9260 { (exit 1); exit 1; }; }
9261 fi;
9262
9263 if test x$CLUSTER = xinternal; then
9264
9265 cat >>confdefs.h <<\_ACEOF
9266 #define CLUSTER_LOCKING_INTERNAL 1
9267 _ACEOF
9268
9269 fi
9270
9271 ################################################################################
9272 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9273 $as_echo_n "checking whether to include snapshots... " >&6; }
9274
9275 # Check whether --with-snapshots was given.
9276 if test "${with_snapshots+set}" = set; then
9277 withval=$with_snapshots; SNAPSHOTS="$withval"
9278 else
9279 SNAPSHOTS="internal"
9280 fi
9281
9282 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9283 $as_echo "$SNAPSHOTS" >&6; }
9284
9285 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9286 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9287 " >&5
9288 $as_echo "$as_me: error: --with-snapshots parameter invalid
9289 " >&2;}
9290 { (exit 1); exit 1; }; }
9291 fi;
9292
9293 if test x$SNAPSHOTS = xinternal; then
9294
9295 cat >>confdefs.h <<\_ACEOF
9296 #define SNAPSHOT_INTERNAL 1
9297 _ACEOF
9298
9299 fi
9300
9301 ################################################################################
9302 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9303 $as_echo_n "checking whether to include mirrors... " >&6; }
9304
9305 # Check whether --with-mirrors was given.
9306 if test "${with_mirrors+set}" = set; then
9307 withval=$with_mirrors; MIRRORS="$withval"
9308 else
9309 MIRRORS="internal"
9310 fi
9311
9312 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9313 $as_echo "$MIRRORS" >&6; }
9314
9315 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9316 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9317 " >&5
9318 $as_echo "$as_me: error: --with-mirrors parameter invalid
9319 " >&2;}
9320 { (exit 1); exit 1; }; }
9321 fi;
9322
9323 if test x$MIRRORS = xinternal; then
9324
9325 cat >>confdefs.h <<\_ACEOF
9326 #define MIRRORED_INTERNAL 1
9327 _ACEOF
9328
9329 fi
9330
9331 ################################################################################
9332 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9333 $as_echo_n "checking whether to enable readline... " >&6; }
9334 # Check whether --enable-readline was given.
9335 if test "${enable_readline+set}" = set; then
9336 enableval=$enable_readline; READLINE=$enableval
9337 else
9338 READLINE=maybe
9339 fi
9340
9341 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9342 $as_echo "$READLINE" >&6; }
9343
9344 ################################################################################
9345 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9346 $as_echo_n "checking whether to enable realtime support... " >&6; }
9347 # Check whether --enable-realtime was given.
9348 if test "${enable_realtime+set}" = set; then
9349 enableval=$enable_realtime; REALTIME=$enableval
9350 fi
9351
9352 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9353 $as_echo "$REALTIME" >&6; }
9354
9355 ################################################################################
9356 pkg_config_init() {
9357
9358
9359 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9360 if test -n "$ac_tool_prefix"; then
9361 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9362 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9366 $as_echo_n "(cached) " >&6
9367 else
9368 case $PKG_CONFIG in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9371 ;;
9372 *)
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9375 do
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9383 fi
9384 done
9385 done
9386 IFS=$as_save_IFS
9387
9388 ;;
9389 esac
9390 fi
9391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9392 if test -n "$PKG_CONFIG"; then
9393 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9394 $as_echo "$PKG_CONFIG" >&6; }
9395 else
9396 { $as_echo "$as_me:$LINENO: result: no" >&5
9397 $as_echo "no" >&6; }
9398 fi
9399
9400
9401 fi
9402 if test -z "$ac_cv_path_PKG_CONFIG"; then
9403 ac_pt_PKG_CONFIG=$PKG_CONFIG
9404 # Extract the first word of "pkg-config", so it can be a program name with args.
9405 set dummy pkg-config; ac_word=$2
9406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9409 $as_echo_n "(cached) " >&6
9410 else
9411 case $ac_pt_PKG_CONFIG in
9412 [\\/]* | ?:[\\/]*)
9413 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9414 ;;
9415 *)
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in $PATH
9418 do
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9423 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 break 2
9426 fi
9427 done
9428 done
9429 IFS=$as_save_IFS
9430
9431 ;;
9432 esac
9433 fi
9434 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9435 if test -n "$ac_pt_PKG_CONFIG"; then
9436 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9437 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9438 else
9439 { $as_echo "$as_me:$LINENO: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443 if test "x$ac_pt_PKG_CONFIG" = x; then
9444 PKG_CONFIG=""
9445 else
9446 case $cross_compiling:$ac_tool_warned in
9447 yes:)
9448 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9450 ac_tool_warned=yes ;;
9451 esac
9452 PKG_CONFIG=$ac_pt_PKG_CONFIG
9453 fi
9454 else
9455 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9456 fi
9457
9458 fi
9459 if test -n "$PKG_CONFIG"; then
9460 _pkg_min_version=0.9.0
9461 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9462 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9463 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9464 { $as_echo "$as_me:$LINENO: result: yes" >&5
9465 $as_echo "yes" >&6; }
9466 else
9467 { $as_echo "$as_me:$LINENO: result: no" >&5
9468 $as_echo "no" >&6; }
9469 PKG_CONFIG=""
9470 fi
9471
9472 fi
9473
9474 pkg_failed=no
9475 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9476 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9477
9478 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9479 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9480 elif test -n "$PKG_CONFIG"; then
9481 if test -n "$PKG_CONFIG" && \
9482 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9483 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9484 ac_status=$?
9485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; then
9487 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9488 else
9489 pkg_failed=yes
9490 fi
9491 else
9492 pkg_failed=untried
9493 fi
9494 if test -n "$PKGCONFIGINIT_LIBS"; then
9495 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9496 elif test -n "$PKG_CONFIG"; then
9497 if test -n "$PKG_CONFIG" && \
9498 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9499 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; then
9503 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9504 else
9505 pkg_failed=yes
9506 fi
9507 else
9508 pkg_failed=untried
9509 fi
9510
9511
9512
9513 if test $pkg_failed = yes; then
9514
9515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9516 _pkg_short_errors_supported=yes
9517 else
9518 _pkg_short_errors_supported=no
9519 fi
9520 if test $_pkg_short_errors_supported = yes; then
9521 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9522 else
9523 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9524 fi
9525 # Put the nasty error message in config.log where it belongs
9526 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9527
9528 { $as_echo "$as_me:$LINENO: result: no" >&5
9529 $as_echo "no" >&6; }
9530 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9531 $as_echo "pkg-config initialized" >&6; }
9532 elif test $pkg_failed = untried; then
9533 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9534 $as_echo "pkg-config initialized" >&6; }
9535 else
9536 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9537 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9538 { $as_echo "$as_me:$LINENO: result: yes" >&5
9539 $as_echo "yes" >&6; }
9540 :
9541 fi
9542 PKGCONFIG_INIT=1
9543 }
9544
9545 ################################################################################
9546 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9547 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9548
9549 # Check whether --with-clvmd was given.
9550 if test "${with_clvmd+set}" = set; then
9551 withval=$with_clvmd; CLVMD="$withval"
9552 else
9553 CLVMD="none"
9554 fi
9555
9556 if test x$CLVMD = xyes; then
9557 CLVMD=all
9558 fi
9559 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9560 $as_echo "$CLVMD" >&6; }
9561
9562 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9563 CLUSTER=internal
9564 fi
9565
9566 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9567 pkg_config_init
9568 fi
9569
9570
9571 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9572 BUILDGULM=yes
9573 fi
9574 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9575 BUILDCOROSYNC=yes
9576 fi
9577 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9578 BUILDOPENAIS=yes
9579 fi
9580 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9581 BUILDCMAN=yes
9582 fi
9583
9584 if test x$BUILDGULM = xyes; then
9585 if test x$BUILDCOROSYNC = xyes || \
9586 test x$BUILDOPENAIS = xyes; then
9587 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9588 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9589 { (exit 1); exit 1; }; }
9590 fi
9591 fi
9592
9593 soft_bailout() {
9594 NOTFOUND=1
9595 }
9596
9597 hard_bailout() {
9598 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9599 $as_echo "$as_me: error: bailing out" >&2;}
9600 { (exit 1); exit 1; }; }
9601 }
9602
9603 if test x$CLVMD = xall; then
9604 bailout=soft_bailout
9605 BUILDGULM=yes
9606 BUILDCMAN=yes
9607 BUILDCOROSYNC=yes
9608 BUILDOPENAIS=yes
9609 else
9610 bailout=hard_bailout
9611 fi
9612
9613 check_lib_no_libs() {
9614 lib_no_libs_arg1=$1
9615 shift
9616 lib_no_libs_arg2=$1
9617 shift
9618 lib_no_libs_args=$@
9619
9620 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9621 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9622 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9623 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9624 $as_echo_n "(cached) " >&6
9625 else
9626 ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634
9635 /* Override any GCC internal prototype to avoid an error.
9636 Use char because int might match the return type of a GCC
9637 builtin and then its argument prototype would still apply. */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 char $lib_no_libs_arg2 ();
9642 int
9643 main ()
9644 {
9645 return $lib_no_libs_arg2 ();
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655 esac
9656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9657 $as_echo "$ac_try_echo") >&5
9658 (eval "$ac_link") 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest$ac_exeext && {
9668 test "$cross_compiling" = yes ||
9669 $as_test_x conftest$ac_exeext
9670 }; then
9671 eval "$as_ac_Lib=yes"
9672 else
9673 $as_echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 eval "$as_ac_Lib=no"
9677 fi
9678
9679 rm -rf conftest.dSYM
9680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9683 fi
9684 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9685 $as_echo "$as_val"'`
9686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9687 $as_echo "$ac_res" >&6; }
9688 as_val=`eval 'as_val=${'$as_ac_Lib'}
9689 $as_echo "$as_val"'`
9690 if test "x$as_val" = x""yes; then
9691 cat >>confdefs.h <<_ACEOF
9692 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9693 _ACEOF
9694
9695 LIBS="-l$lib_no_libs_arg1 $LIBS"
9696
9697 else
9698 $bailout
9699 fi
9700
9701 LIBS=$ac_check_lib_save_LIBS
9702 }
9703
9704 if test x$BUILDGULM = xyes; then
9705
9706 pkg_failed=no
9707 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9708 $as_echo_n "checking for CCS... " >&6; }
9709
9710 if test -n "$CCS_CFLAGS"; then
9711 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9712 elif test -n "$PKG_CONFIG"; then
9713 if test -n "$PKG_CONFIG" && \
9714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9715 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9716 ac_status=$?
9717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; then
9719 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9720 else
9721 pkg_failed=yes
9722 fi
9723 else
9724 pkg_failed=untried
9725 fi
9726 if test -n "$CCS_LIBS"; then
9727 pkg_cv_CCS_LIBS="$CCS_LIBS"
9728 elif test -n "$PKG_CONFIG"; then
9729 if test -n "$PKG_CONFIG" && \
9730 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9731 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9732 ac_status=$?
9733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; then
9735 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9736 else
9737 pkg_failed=yes
9738 fi
9739 else
9740 pkg_failed=untried
9741 fi
9742
9743
9744
9745 if test $pkg_failed = yes; then
9746
9747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9748 _pkg_short_errors_supported=yes
9749 else
9750 _pkg_short_errors_supported=no
9751 fi
9752 if test $_pkg_short_errors_supported = yes; then
9753 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9754 else
9755 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9756 fi
9757 # Put the nasty error message in config.log where it belongs
9758 echo "$CCS_PKG_ERRORS" >&5
9759
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761 $as_echo "no" >&6; }
9762 NOTFOUND=0
9763
9764 for ac_header in ccs.h
9765 do
9766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9769 $as_echo_n "checking for $ac_header... " >&6; }
9770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771 $as_echo_n "(cached) " >&6
9772 fi
9773 ac_res=`eval 'as_val=${'$as_ac_Header'}
9774 $as_echo "$as_val"'`
9775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9776 $as_echo "$ac_res" >&6; }
9777 else
9778 # Is the header compilable?
9779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9780 $as_echo_n "checking $ac_header usability... " >&6; }
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 $ac_includes_default
9788 #include <$ac_header>
9789 _ACEOF
9790 rm -f conftest.$ac_objext
9791 if { (ac_try="$ac_compile"
9792 case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795 esac
9796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9797 $as_echo "$ac_try_echo") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_header_compiler=yes
9809 else
9810 $as_echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 ac_header_compiler=no
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 $as_echo "$ac_header_compiler" >&6; }
9819
9820 # Is the header present?
9821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9822 $as_echo_n "checking $ac_header presence... " >&6; }
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <$ac_header>
9830 _ACEOF
9831 if { (ac_try="$ac_cpp conftest.$ac_ext"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9837 $as_echo "$ac_try_echo") >&5
9838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } >/dev/null && {
9845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 }; then
9848 ac_header_preproc=yes
9849 else
9850 $as_echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_header_preproc=no
9854 fi
9855
9856 rm -f conftest.err conftest.$ac_ext
9857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858 $as_echo "$ac_header_preproc" >&6; }
9859
9860 # So? What about this header?
9861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9862 yes:no: )
9863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9867 ac_header_preproc=yes
9868 ;;
9869 no:yes:* )
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9873 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9877 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9882
9883 ;;
9884 esac
9885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 $as_echo_n "checking for $ac_header... " >&6; }
9887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 $as_echo_n "(cached) " >&6
9889 else
9890 eval "$as_ac_Header=\$ac_header_preproc"
9891 fi
9892 ac_res=`eval 'as_val=${'$as_ac_Header'}
9893 $as_echo "$as_val"'`
9894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9895 $as_echo "$ac_res" >&6; }
9896
9897 fi
9898 as_val=`eval 'as_val=${'$as_ac_Header'}
9899 $as_echo "$as_val"'`
9900 if test "x$as_val" = x""yes; then
9901 cat >>confdefs.h <<_ACEOF
9902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9903 _ACEOF
9904
9905 else
9906 $bailout
9907 fi
9908
9909 done
9910
9911 check_lib_no_libs ccs ccs_connect
9912 if test $NOTFOUND = 0; then
9913 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9914 $as_echo "no pkg for libccs, using -lccs" >&6; }
9915 CCS_LIBS="-lccs"
9916 HAVE_CCS=yes
9917 fi
9918 elif test $pkg_failed = untried; then
9919 NOTFOUND=0
9920
9921 for ac_header in ccs.h
9922 do
9923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9926 $as_echo_n "checking for $ac_header... " >&6; }
9927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928 $as_echo_n "(cached) " >&6
9929 fi
9930 ac_res=`eval 'as_val=${'$as_ac_Header'}
9931 $as_echo "$as_val"'`
9932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9933 $as_echo "$ac_res" >&6; }
9934 else
9935 # Is the header compilable?
9936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9937 $as_echo_n "checking $ac_header usability... " >&6; }
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 $ac_includes_default
9945 #include <$ac_header>
9946 _ACEOF
9947 rm -f conftest.$ac_objext
9948 if { (ac_try="$ac_compile"
9949 case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952 esac
9953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9954 $as_echo "$ac_try_echo") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_header_compiler=yes
9966 else
9967 $as_echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_header_compiler=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9975 $as_echo "$ac_header_compiler" >&6; }
9976
9977 # Is the header present?
9978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9979 $as_echo_n "checking $ac_header presence... " >&6; }
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 #include <$ac_header>
9987 _ACEOF
9988 if { (ac_try="$ac_cpp conftest.$ac_ext"
9989 case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9994 $as_echo "$ac_try_echo") >&5
9995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } >/dev/null && {
10002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10003 test ! -s conftest.err
10004 }; then
10005 ac_header_preproc=yes
10006 else
10007 $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_header_preproc=no
10011 fi
10012
10013 rm -f conftest.err conftest.$ac_ext
10014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10015 $as_echo "$ac_header_preproc" >&6; }
10016
10017 # So? What about this header?
10018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10019 yes:no: )
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10024 ac_header_preproc=yes
10025 ;;
10026 no:yes:* )
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10030 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10034 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10039
10040 ;;
10041 esac
10042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 $as_echo_n "checking for $ac_header... " >&6; }
10044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10045 $as_echo_n "(cached) " >&6
10046 else
10047 eval "$as_ac_Header=\$ac_header_preproc"
10048 fi
10049 ac_res=`eval 'as_val=${'$as_ac_Header'}
10050 $as_echo "$as_val"'`
10051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10052 $as_echo "$ac_res" >&6; }
10053
10054 fi
10055 as_val=`eval 'as_val=${'$as_ac_Header'}
10056 $as_echo "$as_val"'`
10057 if test "x$as_val" = x""yes; then
10058 cat >>confdefs.h <<_ACEOF
10059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10060 _ACEOF
10061
10062 else
10063 $bailout
10064 fi
10065
10066 done
10067
10068 check_lib_no_libs ccs ccs_connect
10069 if test $NOTFOUND = 0; then
10070 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10071 $as_echo "no pkg for libccs, using -lccs" >&6; }
10072 CCS_LIBS="-lccs"
10073 HAVE_CCS=yes
10074 fi
10075 else
10076 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10077 CCS_LIBS=$pkg_cv_CCS_LIBS
10078 { $as_echo "$as_me:$LINENO: result: yes" >&5
10079 $as_echo "yes" >&6; }
10080 HAVE_CCS=yes
10081 fi
10082
10083 pkg_failed=no
10084 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
10085 $as_echo_n "checking for GULM... " >&6; }
10086
10087 if test -n "$GULM_CFLAGS"; then
10088 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10089 elif test -n "$PKG_CONFIG"; then
10090 if test -n "$PKG_CONFIG" && \
10091 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10092 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10093 ac_status=$?
10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; then
10096 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10097 else
10098 pkg_failed=yes
10099 fi
10100 else
10101 pkg_failed=untried
10102 fi
10103 if test -n "$GULM_LIBS"; then
10104 pkg_cv_GULM_LIBS="$GULM_LIBS"
10105 elif test -n "$PKG_CONFIG"; then
10106 if test -n "$PKG_CONFIG" && \
10107 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10108 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; then
10112 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10113 else
10114 pkg_failed=yes
10115 fi
10116 else
10117 pkg_failed=untried
10118 fi
10119
10120
10121
10122 if test $pkg_failed = yes; then
10123
10124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10125 _pkg_short_errors_supported=yes
10126 else
10127 _pkg_short_errors_supported=no
10128 fi
10129 if test $_pkg_short_errors_supported = yes; then
10130 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10131 else
10132 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10133 fi
10134 # Put the nasty error message in config.log where it belongs
10135 echo "$GULM_PKG_ERRORS" >&5
10136
10137 { $as_echo "$as_me:$LINENO: result: no" >&5
10138 $as_echo "no" >&6; }
10139 NOTFOUND=0
10140
10141 for ac_header in libgulm.h
10142 do
10143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10146 $as_echo_n "checking for $ac_header... " >&6; }
10147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10148 $as_echo_n "(cached) " >&6
10149 fi
10150 ac_res=`eval 'as_val=${'$as_ac_Header'}
10151 $as_echo "$as_val"'`
10152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10153 $as_echo "$ac_res" >&6; }
10154 else
10155 # Is the header compilable?
10156 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10157 $as_echo_n "checking $ac_header usability... " >&6; }
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 $ac_includes_default
10165 #include <$ac_header>
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (ac_try="$ac_compile"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174 $as_echo "$ac_try_echo") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_header_compiler=yes
10186 else
10187 $as_echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_header_compiler=no
10191 fi
10192
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195 $as_echo "$ac_header_compiler" >&6; }
10196
10197 # Is the header present?
10198 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199 $as_echo_n "checking $ac_header presence... " >&6; }
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <$ac_header>
10207 _ACEOF
10208 if { (ac_try="$ac_cpp conftest.$ac_ext"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10214 $as_echo "$ac_try_echo") >&5
10215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } >/dev/null && {
10222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10223 test ! -s conftest.err
10224 }; then
10225 ac_header_preproc=yes
10226 else
10227 $as_echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_header_preproc=no
10231 fi
10232
10233 rm -f conftest.err conftest.$ac_ext
10234 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10235 $as_echo "$ac_header_preproc" >&6; }
10236
10237 # So? What about this header?
10238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10239 yes:no: )
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10243 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10244 ac_header_preproc=yes
10245 ;;
10246 no:yes:* )
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10252 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10254 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10258 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10259
10260 ;;
10261 esac
10262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10263 $as_echo_n "checking for $ac_header... " >&6; }
10264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10265 $as_echo_n "(cached) " >&6
10266 else
10267 eval "$as_ac_Header=\$ac_header_preproc"
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
10274 fi
10275 as_val=`eval 'as_val=${'$as_ac_Header'}
10276 $as_echo "$as_val"'`
10277 if test "x$as_val" = x""yes; then
10278 cat >>confdefs.h <<_ACEOF
10279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10280 _ACEOF
10281
10282 else
10283 $bailout
10284 fi
10285
10286 done
10287
10288 check_lib_no_libs gulm lg_core_login
10289 if test $NOTFOUND = 0; then
10290 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10291 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10292 GULM_LIBS="-lgulm"
10293 HAVE_GULM=yes
10294 fi
10295 elif test $pkg_failed = untried; then
10296 NOTFOUND=0
10297
10298 for ac_header in libgulm.h
10299 do
10300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10303 $as_echo_n "checking for $ac_header... " >&6; }
10304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 $as_echo_n "(cached) " >&6
10306 fi
10307 ac_res=`eval 'as_val=${'$as_ac_Header'}
10308 $as_echo "$as_val"'`
10309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10310 $as_echo "$ac_res" >&6; }
10311 else
10312 # Is the header compilable?
10313 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10314 $as_echo_n "checking $ac_header usability... " >&6; }
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 $ac_includes_default
10322 #include <$ac_header>
10323 _ACEOF
10324 rm -f conftest.$ac_objext
10325 if { (ac_try="$ac_compile"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329 esac
10330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10331 $as_echo "$ac_try_echo") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 ac_header_compiler=yes
10343 else
10344 $as_echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_header_compiler=no
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10352 $as_echo "$ac_header_compiler" >&6; }
10353
10354 # Is the header present?
10355 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10356 $as_echo_n "checking $ac_header presence... " >&6; }
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <$ac_header>
10364 _ACEOF
10365 if { (ac_try="$ac_cpp conftest.$ac_ext"
10366 case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10369 esac
10370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10371 $as_echo "$ac_try_echo") >&5
10372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } >/dev/null && {
10379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10380 test ! -s conftest.err
10381 }; then
10382 ac_header_preproc=yes
10383 else
10384 $as_echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ac_header_preproc=no
10388 fi
10389
10390 rm -f conftest.err conftest.$ac_ext
10391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10392 $as_echo "$ac_header_preproc" >&6; }
10393
10394 # So? What about this header?
10395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10396 yes:no: )
10397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10398 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10401 ac_header_preproc=yes
10402 ;;
10403 no:yes:* )
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10405 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10407 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10409 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10411 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10415 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10416
10417 ;;
10418 esac
10419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10420 $as_echo_n "checking for $ac_header... " >&6; }
10421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10422 $as_echo_n "(cached) " >&6
10423 else
10424 eval "$as_ac_Header=\$ac_header_preproc"
10425 fi
10426 ac_res=`eval 'as_val=${'$as_ac_Header'}
10427 $as_echo "$as_val"'`
10428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10429 $as_echo "$ac_res" >&6; }
10430
10431 fi
10432 as_val=`eval 'as_val=${'$as_ac_Header'}
10433 $as_echo "$as_val"'`
10434 if test "x$as_val" = x""yes; then
10435 cat >>confdefs.h <<_ACEOF
10436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10437 _ACEOF
10438
10439 else
10440 $bailout
10441 fi
10442
10443 done
10444
10445 check_lib_no_libs gulm lg_core_login
10446 if test $NOTFOUND = 0; then
10447 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10448 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10449 GULM_LIBS="-lgulm"
10450 HAVE_GULM=yes
10451 fi
10452 else
10453 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10454 GULM_LIBS=$pkg_cv_GULM_LIBS
10455 { $as_echo "$as_me:$LINENO: result: yes" >&5
10456 $as_echo "yes" >&6; }
10457 HAVE_GULM=yes
10458 fi
10459 fi
10460
10461 if test x$BUILDCMAN = xyes; then
10462
10463 pkg_failed=no
10464 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10465 $as_echo_n "checking for CMAN... " >&6; }
10466
10467 if test -n "$CMAN_CFLAGS"; then
10468 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10469 elif test -n "$PKG_CONFIG"; then
10470 if test -n "$PKG_CONFIG" && \
10471 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10472 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10473 ac_status=$?
10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; then
10476 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10477 else
10478 pkg_failed=yes
10479 fi
10480 else
10481 pkg_failed=untried
10482 fi
10483 if test -n "$CMAN_LIBS"; then
10484 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10485 elif test -n "$PKG_CONFIG"; then
10486 if test -n "$PKG_CONFIG" && \
10487 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10488 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10489 ac_status=$?
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10493 else
10494 pkg_failed=yes
10495 fi
10496 else
10497 pkg_failed=untried
10498 fi
10499
10500
10501
10502 if test $pkg_failed = yes; then
10503
10504 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10505 _pkg_short_errors_supported=yes
10506 else
10507 _pkg_short_errors_supported=no
10508 fi
10509 if test $_pkg_short_errors_supported = yes; then
10510 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10511 else
10512 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10513 fi
10514 # Put the nasty error message in config.log where it belongs
10515 echo "$CMAN_PKG_ERRORS" >&5
10516
10517 { $as_echo "$as_me:$LINENO: result: no" >&5
10518 $as_echo "no" >&6; }
10519 NOTFOUND=0
10520
10521 for ac_header in libcman.h
10522 do
10523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10526 $as_echo_n "checking for $ac_header... " >&6; }
10527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10528 $as_echo_n "(cached) " >&6
10529 fi
10530 ac_res=`eval 'as_val=${'$as_ac_Header'}
10531 $as_echo "$as_val"'`
10532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10533 $as_echo "$ac_res" >&6; }
10534 else
10535 # Is the header compilable?
10536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10537 $as_echo_n "checking $ac_header usability... " >&6; }
10538 cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h. */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 $ac_includes_default
10545 #include <$ac_header>
10546 _ACEOF
10547 rm -f conftest.$ac_objext
10548 if { (ac_try="$ac_compile"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10554 $as_echo "$ac_try_echo") >&5
10555 (eval "$ac_compile") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest.$ac_objext; then
10565 ac_header_compiler=yes
10566 else
10567 $as_echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_header_compiler=no
10571 fi
10572
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575 $as_echo "$ac_header_compiler" >&6; }
10576
10577 # Is the header present?
10578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579 $as_echo_n "checking $ac_header presence... " >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <$ac_header>
10587 _ACEOF
10588 if { (ac_try="$ac_cpp conftest.$ac_ext"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null && {
10602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 }; then
10605 ac_header_preproc=yes
10606 else
10607 $as_echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610 ac_header_preproc=no
10611 fi
10612
10613 rm -f conftest.err conftest.$ac_ext
10614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10615 $as_echo "$ac_header_preproc" >&6; }
10616
10617 # So? What about this header?
10618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10619 yes:no: )
10620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10624 ac_header_preproc=yes
10625 ;;
10626 no:yes:* )
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10630 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10634 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10639
10640 ;;
10641 esac
10642 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10643 $as_echo_n "checking for $ac_header... " >&6; }
10644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10645 $as_echo_n "(cached) " >&6
10646 else
10647 eval "$as_ac_Header=\$ac_header_preproc"
10648 fi
10649 ac_res=`eval 'as_val=${'$as_ac_Header'}
10650 $as_echo "$as_val"'`
10651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10652 $as_echo "$ac_res" >&6; }
10653
10654 fi
10655 as_val=`eval 'as_val=${'$as_ac_Header'}
10656 $as_echo "$as_val"'`
10657 if test "x$as_val" = x""yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660 _ACEOF
10661
10662 else
10663 $bailout
10664 fi
10665
10666 done
10667
10668 check_lib_no_libs cman cman_init
10669 if test $NOTFOUND = 0; then
10670 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10671 $as_echo "no pkg for libcman, using -lcman" >&6; }
10672 CMAN_LIBS="-lcman"
10673 HAVE_CMAN=yes
10674 fi
10675 elif test $pkg_failed = untried; then
10676 NOTFOUND=0
10677
10678 for ac_header in libcman.h
10679 do
10680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 $as_echo_n "checking for $ac_header... " >&6; }
10684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 $as_echo_n "(cached) " >&6
10686 fi
10687 ac_res=`eval 'as_val=${'$as_ac_Header'}
10688 $as_echo "$as_val"'`
10689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10690 $as_echo "$ac_res" >&6; }
10691 else
10692 # Is the header compilable?
10693 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694 $as_echo_n "checking $ac_header usability... " >&6; }
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 $ac_includes_default
10702 #include <$ac_header>
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711 $as_echo "$ac_try_echo") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10722 ac_header_compiler=yes
10723 else
10724 $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 ac_header_compiler=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 $as_echo "$ac_header_compiler" >&6; }
10733
10734 # Is the header present?
10735 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 $as_echo_n "checking $ac_header presence... " >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <$ac_header>
10744 _ACEOF
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749 esac
10750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751 $as_echo "$ac_try_echo") >&5
10752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } >/dev/null && {
10759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 }; then
10762 ac_header_preproc=yes
10763 else
10764 $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_header_preproc=no
10768 fi
10769
10770 rm -f conftest.err conftest.$ac_ext
10771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772 $as_echo "$ac_header_preproc" >&6; }
10773
10774 # So? What about this header?
10775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10776 yes:no: )
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781 ac_header_preproc=yes
10782 ;;
10783 no:yes:* )
10784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10787 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10791 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796
10797 ;;
10798 esac
10799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 $as_echo_n "checking for $ac_header... " >&6; }
10801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802 $as_echo_n "(cached) " >&6
10803 else
10804 eval "$as_ac_Header=\$ac_header_preproc"
10805 fi
10806 ac_res=`eval 'as_val=${'$as_ac_Header'}
10807 $as_echo "$as_val"'`
10808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809 $as_echo "$ac_res" >&6; }
10810
10811 fi
10812 as_val=`eval 'as_val=${'$as_ac_Header'}
10813 $as_echo "$as_val"'`
10814 if test "x$as_val" = x""yes; then
10815 cat >>confdefs.h <<_ACEOF
10816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817 _ACEOF
10818
10819 else
10820 $bailout
10821 fi
10822
10823 done
10824
10825 check_lib_no_libs cman cman_init
10826 if test $NOTFOUND = 0; then
10827 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10828 $as_echo "no pkg for libcman, using -lcman" >&6; }
10829 CMAN_LIBS="-lcman"
10830 HAVE_CMAN=yes
10831 fi
10832 else
10833 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10834 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10835 { $as_echo "$as_me:$LINENO: result: yes" >&5
10836 $as_echo "yes" >&6; }
10837 HAVE_CMAN=yes
10838 fi
10839 CHECKCONFDB=yes
10840 CHECKDLM=yes
10841 fi
10842
10843 if test x$BUILDCOROSYNC = xyes || \
10844 test x$BUILDOPENAIS = xyes; then
10845
10846 pkg_failed=no
10847 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10848 $as_echo_n "checking for COROSYNC... " >&6; }
10849
10850 if test -n "$COROSYNC_CFLAGS"; then
10851 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10852 elif test -n "$PKG_CONFIG"; then
10853 if test -n "$PKG_CONFIG" && \
10854 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10855 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10856 ac_status=$?
10857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; then
10859 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10860 else
10861 pkg_failed=yes
10862 fi
10863 else
10864 pkg_failed=untried
10865 fi
10866 if test -n "$COROSYNC_LIBS"; then
10867 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10871 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10872 ac_status=$?
10873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; then
10875 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10876 else
10877 pkg_failed=yes
10878 fi
10879 else
10880 pkg_failed=untried
10881 fi
10882
10883
10884
10885 if test $pkg_failed = yes; then
10886
10887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10888 _pkg_short_errors_supported=yes
10889 else
10890 _pkg_short_errors_supported=no
10891 fi
10892 if test $_pkg_short_errors_supported = yes; then
10893 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10894 else
10895 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10896 fi
10897 # Put the nasty error message in config.log where it belongs
10898 echo "$COROSYNC_PKG_ERRORS" >&5
10899
10900 { $as_echo "$as_me:$LINENO: result: no" >&5
10901 $as_echo "no" >&6; }
10902 $bailout
10903 elif test $pkg_failed = untried; then
10904 $bailout
10905 else
10906 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10907 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10908 { $as_echo "$as_me:$LINENO: result: yes" >&5
10909 $as_echo "yes" >&6; }
10910 HAVE_COROSYNC=yes
10911 fi
10912 CHECKCONFDB=yes
10913 fi
10914
10915 if test x$BUILDCOROSYNC = xyes; then
10916
10917 pkg_failed=no
10918 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10919 $as_echo_n "checking for QUORUM... " >&6; }
10920
10921 if test -n "$QUORUM_CFLAGS"; then
10922 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10923 elif test -n "$PKG_CONFIG"; then
10924 if test -n "$PKG_CONFIG" && \
10925 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10926 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10927 ac_status=$?
10928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; then
10930 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10931 else
10932 pkg_failed=yes
10933 fi
10934 else
10935 pkg_failed=untried
10936 fi
10937 if test -n "$QUORUM_LIBS"; then
10938 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10939 elif test -n "$PKG_CONFIG"; then
10940 if test -n "$PKG_CONFIG" && \
10941 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10942 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; then
10946 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10947 else
10948 pkg_failed=yes
10949 fi
10950 else
10951 pkg_failed=untried
10952 fi
10953
10954
10955
10956 if test $pkg_failed = yes; then
10957
10958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10959 _pkg_short_errors_supported=yes
10960 else
10961 _pkg_short_errors_supported=no
10962 fi
10963 if test $_pkg_short_errors_supported = yes; then
10964 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10965 else
10966 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10967 fi
10968 # Put the nasty error message in config.log where it belongs
10969 echo "$QUORUM_PKG_ERRORS" >&5
10970
10971 { $as_echo "$as_me:$LINENO: result: no" >&5
10972 $as_echo "no" >&6; }
10973 $bailout
10974 elif test $pkg_failed = untried; then
10975 $bailout
10976 else
10977 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10978 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10979 { $as_echo "$as_me:$LINENO: result: yes" >&5
10980 $as_echo "yes" >&6; }
10981 HAVE_QUORUM=yes
10982 fi
10983 CHECKCPG=yes
10984 CHECKDLM=yes
10985 fi
10986
10987 if test x$BUILDOPENAIS = xyes; then
10988
10989 pkg_failed=no
10990 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10991 $as_echo_n "checking for SALCK... " >&6; }
10992
10993 if test -n "$SALCK_CFLAGS"; then
10994 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10995 elif test -n "$PKG_CONFIG"; then
10996 if test -n "$PKG_CONFIG" && \
10997 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10998 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10999 ac_status=$?
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; then
11002 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11003 else
11004 pkg_failed=yes
11005 fi
11006 else
11007 pkg_failed=untried
11008 fi
11009 if test -n "$SALCK_LIBS"; then
11010 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11011 elif test -n "$PKG_CONFIG"; then
11012 if test -n "$PKG_CONFIG" && \
11013 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11014 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11015 ac_status=$?
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; then
11018 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11019 else
11020 pkg_failed=yes
11021 fi
11022 else
11023 pkg_failed=untried
11024 fi
11025
11026
11027
11028 if test $pkg_failed = yes; then
11029
11030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11031 _pkg_short_errors_supported=yes
11032 else
11033 _pkg_short_errors_supported=no
11034 fi
11035 if test $_pkg_short_errors_supported = yes; then
11036 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11037 else
11038 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11039 fi
11040 # Put the nasty error message in config.log where it belongs
11041 echo "$SALCK_PKG_ERRORS" >&5
11042
11043 { $as_echo "$as_me:$LINENO: result: no" >&5
11044 $as_echo "no" >&6; }
11045 $bailout
11046 elif test $pkg_failed = untried; then
11047 $bailout
11048 else
11049 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11050 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11051 { $as_echo "$as_me:$LINENO: result: yes" >&5
11052 $as_echo "yes" >&6; }
11053 HAVE_SALCK=yes
11054 fi
11055 CHECKCPG=yes
11056 fi
11057
11058
11059
11060 if test x$CHECKCONFDB = xyes; then
11061
11062 pkg_failed=no
11063 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11064 $as_echo_n "checking for CONFDB... " >&6; }
11065
11066 if test -n "$CONFDB_CFLAGS"; then
11067 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11068 elif test -n "$PKG_CONFIG"; then
11069 if test -n "$PKG_CONFIG" && \
11070 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11071 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11072 ac_status=$?
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; then
11075 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11076 else
11077 pkg_failed=yes
11078 fi
11079 else
11080 pkg_failed=untried
11081 fi
11082 if test -n "$CONFDB_LIBS"; then
11083 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11084 elif test -n "$PKG_CONFIG"; then
11085 if test -n "$PKG_CONFIG" && \
11086 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11087 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11088 ac_status=$?
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; then
11091 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11092 else
11093 pkg_failed=yes
11094 fi
11095 else
11096 pkg_failed=untried
11097 fi
11098
11099
11100
11101 if test $pkg_failed = yes; then
11102
11103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11104 _pkg_short_errors_supported=yes
11105 else
11106 _pkg_short_errors_supported=no
11107 fi
11108 if test $_pkg_short_errors_supported = yes; then
11109 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11110 else
11111 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11112 fi
11113 # Put the nasty error message in config.log where it belongs
11114 echo "$CONFDB_PKG_ERRORS" >&5
11115
11116 { $as_echo "$as_me:$LINENO: result: no" >&5
11117 $as_echo "no" >&6; }
11118 HAVE_CONFDB=no
11119 elif test $pkg_failed = untried; then
11120 HAVE_CONFDB=no
11121 else
11122 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11123 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11124 { $as_echo "$as_me:$LINENO: result: yes" >&5
11125 $as_echo "yes" >&6; }
11126 HAVE_CONFDB=yes
11127 fi
11128
11129
11130 for ac_header in corosync/confdb.h
11131 do
11132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11135 $as_echo_n "checking for $ac_header... " >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 $as_echo_n "(cached) " >&6
11138 fi
11139 ac_res=`eval 'as_val=${'$as_ac_Header'}
11140 $as_echo "$as_val"'`
11141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11142 $as_echo "$ac_res" >&6; }
11143 else
11144 # Is the header compilable?
11145 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 $as_echo_n "checking $ac_header usability... " >&6; }
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 #include <$ac_header>
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161 esac
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
11174 ac_header_compiler=yes
11175 else
11176 $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_header_compiler=no
11180 fi
11181
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184 $as_echo "$ac_header_compiler" >&6; }
11185
11186 # Is the header present?
11187 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188 $as_echo_n "checking $ac_header presence... " >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h. */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 #include <$ac_header>
11196 _ACEOF
11197 if { (ac_try="$ac_cpp conftest.$ac_ext"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201 esac
11202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11203 $as_echo "$ac_try_echo") >&5
11204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } >/dev/null && {
11211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 }; then
11214 ac_header_preproc=yes
11215 else
11216 $as_echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_header_preproc=no
11220 fi
11221
11222 rm -f conftest.err conftest.$ac_ext
11223 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 $as_echo "$ac_header_preproc" >&6; }
11225
11226 # So? What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228 yes:no: )
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11234 ;;
11235 no:yes:* )
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248
11249 ;;
11250 esac
11251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11252 $as_echo_n "checking for $ac_header... " >&6; }
11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254 $as_echo_n "(cached) " >&6
11255 else
11256 eval "$as_ac_Header=\$ac_header_preproc"
11257 fi
11258 ac_res=`eval 'as_val=${'$as_ac_Header'}
11259 $as_echo "$as_val"'`
11260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11261 $as_echo "$ac_res" >&6; }
11262
11263 fi
11264 as_val=`eval 'as_val=${'$as_ac_Header'}
11265 $as_echo "$as_val"'`
11266 if test "x$as_val" = x""yes; then
11267 cat >>confdefs.h <<_ACEOF
11268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11269 _ACEOF
11270 HAVE_CONFDB_H=yes
11271 else
11272 HAVE_CONFDB_H=no
11273 fi
11274
11275 done
11276
11277
11278 if test x$HAVE_CONFDB != xyes && \
11279 test x$HAVE_CONFDB_H = xyes; then
11280 check_lib_no_libs confdb confdb_initialize
11281 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11282 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11283 CONFDB_LIBS="-lconfdb"
11284 HAVE_CONFDB=yes
11285 fi
11286
11287 if test x$BUILDCOROSYNC = xyes && \
11288 test x$HAVE_CONFDB != xyes &&
11289 test x$CLVMD != xall; then
11290 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11291 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11292 { (exit 1); exit 1; }; }
11293 fi
11294 fi
11295
11296 if test x$CHECKCPG = xyes; then
11297
11298 pkg_failed=no
11299 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11300 $as_echo_n "checking for CPG... " >&6; }
11301
11302 if test -n "$CPG_CFLAGS"; then
11303 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11304 elif test -n "$PKG_CONFIG"; then
11305 if test -n "$PKG_CONFIG" && \
11306 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11307 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11308 ac_status=$?
11309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; then
11311 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11312 else
11313 pkg_failed=yes
11314 fi
11315 else
11316 pkg_failed=untried
11317 fi
11318 if test -n "$CPG_LIBS"; then
11319 pkg_cv_CPG_LIBS="$CPG_LIBS"
11320 elif test -n "$PKG_CONFIG"; then
11321 if test -n "$PKG_CONFIG" && \
11322 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11323 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11324 ac_status=$?
11325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; then
11327 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11328 else
11329 pkg_failed=yes
11330 fi
11331 else
11332 pkg_failed=untried
11333 fi
11334
11335
11336
11337 if test $pkg_failed = yes; then
11338
11339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11340 _pkg_short_errors_supported=yes
11341 else
11342 _pkg_short_errors_supported=no
11343 fi
11344 if test $_pkg_short_errors_supported = yes; then
11345 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11346 else
11347 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11348 fi
11349 # Put the nasty error message in config.log where it belongs
11350 echo "$CPG_PKG_ERRORS" >&5
11351
11352 { $as_echo "$as_me:$LINENO: result: no" >&5
11353 $as_echo "no" >&6; }
11354 $bailout
11355 elif test $pkg_failed = untried; then
11356 $bailout
11357 else
11358 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11359 CPG_LIBS=$pkg_cv_CPG_LIBS
11360 { $as_echo "$as_me:$LINENO: result: yes" >&5
11361 $as_echo "yes" >&6; }
11362 HAVE_CPG=yes
11363 fi
11364 fi
11365
11366 if test x$CHECKDLM = xyes; then
11367
11368 pkg_failed=no
11369 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11370 $as_echo_n "checking for DLM... " >&6; }
11371
11372 if test -n "$DLM_CFLAGS"; then
11373 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11374 elif test -n "$PKG_CONFIG"; then
11375 if test -n "$PKG_CONFIG" && \
11376 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11377 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11378 ac_status=$?
11379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; then
11381 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11382 else
11383 pkg_failed=yes
11384 fi
11385 else
11386 pkg_failed=untried
11387 fi
11388 if test -n "$DLM_LIBS"; then
11389 pkg_cv_DLM_LIBS="$DLM_LIBS"
11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \
11392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11393 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11394 ac_status=$?
11395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; then
11397 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11398 else
11399 pkg_failed=yes
11400 fi
11401 else
11402 pkg_failed=untried
11403 fi
11404
11405
11406
11407 if test $pkg_failed = yes; then
11408
11409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11410 _pkg_short_errors_supported=yes
11411 else
11412 _pkg_short_errors_supported=no
11413 fi
11414 if test $_pkg_short_errors_supported = yes; then
11415 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11416 else
11417 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11418 fi
11419 # Put the nasty error message in config.log where it belongs
11420 echo "$DLM_PKG_ERRORS" >&5
11421
11422 { $as_echo "$as_me:$LINENO: result: no" >&5
11423 $as_echo "no" >&6; }
11424 NOTFOUND=0
11425
11426 for ac_header in libdlm.h
11427 do
11428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 $as_echo_n "checking for $ac_header... " >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 $as_echo_n "(cached) " >&6
11434 fi
11435 ac_res=`eval 'as_val=${'$as_ac_Header'}
11436 $as_echo "$as_val"'`
11437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11438 $as_echo "$ac_res" >&6; }
11439 else
11440 # Is the header compilable?
11441 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 $as_echo_n "checking $ac_header usability... " >&6; }
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (ac_try="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11459 $as_echo "$ac_try_echo") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11470 ac_header_compiler=yes
11471 else
11472 $as_echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_header_compiler=no
11476 fi
11477
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11480 $as_echo "$ac_header_compiler" >&6; }
11481
11482 # Is the header present?
11483 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11484 $as_echo_n "checking $ac_header presence... " >&6; }
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 #include <$ac_header>
11492 _ACEOF
11493 if { (ac_try="$ac_cpp conftest.$ac_ext"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499 $as_echo "$ac_try_echo") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null && {
11507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 }; then
11510 ac_header_preproc=yes
11511 else
11512 $as_echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_header_preproc=no
11516 fi
11517
11518 rm -f conftest.err conftest.$ac_ext
11519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11520 $as_echo "$ac_header_preproc" >&6; }
11521
11522 # So? What about this header?
11523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11524 yes:no: )
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11526 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11529 ac_header_preproc=yes
11530 ;;
11531 no:yes:* )
11532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11535 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11544
11545 ;;
11546 esac
11547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 $as_echo_n "checking for $ac_header... " >&6; }
11549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 $as_echo_n "(cached) " >&6
11551 else
11552 eval "$as_ac_Header=\$ac_header_preproc"
11553 fi
11554 ac_res=`eval 'as_val=${'$as_ac_Header'}
11555 $as_echo "$as_val"'`
11556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11557 $as_echo "$ac_res" >&6; }
11558
11559 fi
11560 as_val=`eval 'as_val=${'$as_ac_Header'}
11561 $as_echo "$as_val"'`
11562 if test "x$as_val" = x""yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 _ACEOF
11566
11567 else
11568 $bailout
11569 fi
11570
11571 done
11572
11573 check_lib_no_libs dlm dlm_lock -lpthread
11574 if test $NOTFOUND = 0; then
11575 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11576 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11577 DLM_LIBS="-ldlm -lpthread"
11578 HAVE_DLM=yes
11579 fi
11580 elif test $pkg_failed = untried; then
11581 NOTFOUND=0
11582
11583 for ac_header in libdlm.h
11584 do
11585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 $as_echo_n "checking for $ac_header... " >&6; }
11589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11590 $as_echo_n "(cached) " >&6
11591 fi
11592 ac_res=`eval 'as_val=${'$as_ac_Header'}
11593 $as_echo "$as_val"'`
11594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11595 $as_echo "$ac_res" >&6; }
11596 else
11597 # Is the header compilable?
11598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11599 $as_echo_n "checking $ac_header usability... " >&6; }
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 $ac_includes_default
11607 #include <$ac_header>
11608 _ACEOF
11609 rm -f conftest.$ac_objext
11610 if { (ac_try="$ac_compile"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614 esac
11615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11616 $as_echo "$ac_try_echo") >&5
11617 (eval "$ac_compile") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest.$ac_objext; then
11627 ac_header_compiler=yes
11628 else
11629 $as_echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ac_header_compiler=no
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11637 $as_echo "$ac_header_compiler" >&6; }
11638
11639 # Is the header present?
11640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11641 $as_echo_n "checking $ac_header presence... " >&6; }
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include <$ac_header>
11649 _ACEOF
11650 if { (ac_try="$ac_cpp conftest.$ac_ext"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656 $as_echo "$ac_try_echo") >&5
11657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } >/dev/null && {
11664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 }; then
11667 ac_header_preproc=yes
11668 else
11669 $as_echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_header_preproc=no
11673 fi
11674
11675 rm -f conftest.err conftest.$ac_ext
11676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11677 $as_echo "$ac_header_preproc" >&6; }
11678
11679 # So? What about this header?
11680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11681 yes:no: )
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11686 ac_header_preproc=yes
11687 ;;
11688 no:yes:* )
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11692 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11701
11702 ;;
11703 esac
11704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 $as_echo_n "checking for $ac_header... " >&6; }
11706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11707 $as_echo_n "(cached) " >&6
11708 else
11709 eval "$as_ac_Header=\$ac_header_preproc"
11710 fi
11711 ac_res=`eval 'as_val=${'$as_ac_Header'}
11712 $as_echo "$as_val"'`
11713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11714 $as_echo "$ac_res" >&6; }
11715
11716 fi
11717 as_val=`eval 'as_val=${'$as_ac_Header'}
11718 $as_echo "$as_val"'`
11719 if test "x$as_val" = x""yes; then
11720 cat >>confdefs.h <<_ACEOF
11721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11722 _ACEOF
11723
11724 else
11725 $bailout
11726 fi
11727
11728 done
11729
11730 check_lib_no_libs dlm dlm_lock -lpthread
11731 if test $NOTFOUND = 0; then
11732 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11733 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11734 DLM_LIBS="-ldlm -lpthread"
11735 HAVE_DLM=yes
11736 fi
11737 else
11738 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11739 DLM_LIBS=$pkg_cv_DLM_LIBS
11740 { $as_echo "$as_me:$LINENO: result: yes" >&5
11741 $as_echo "yes" >&6; }
11742 HAVE_DLM=yes
11743 fi
11744 fi
11745
11746 if test x$CLVMD = xall; then
11747 CLVMD=none
11748 if test x$HAVE_CCS = xyes && \
11749 test x$HAVE_GULM = xyes; then
11750 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11751 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11752 CLVMD="$CLVMD,gulm"
11753 fi
11754 if test x$HAVE_CMAN = xyes && \
11755 test x$HAVE_DLM = xyes; then
11756 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11757 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11758 CLVMD="$CLVMD,cman"
11759 fi
11760 if test x$HAVE_COROSYNC = xyes && \
11761 test x$HAVE_QUORUM = xyes && \
11762 test x$HAVE_CPG = xyes && \
11763 test x$HAVE_DLM = xyes && \
11764 test x$HAVE_CONFDB = xyes; then
11765 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11766 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11767 CLVMD="$CLVMD,corosync"
11768 fi
11769 if test x$HAVE_COROSYNC = xyes && \
11770 test x$HAVE_CPG = xyes && \
11771 test x$HAVE_SALCK = xyes; then
11772 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11773 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11774 CLVMD="$CLVMD,openais"
11775 fi
11776 if test x$CLVMD = xnone; then
11777 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11778 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11779 fi
11780 fi
11781
11782 ################################################################################
11783 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11784 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11785 # Check whether --enable-cmirrord was given.
11786 if test "${enable_cmirrord+set}" = set; then
11787 enableval=$enable_cmirrord; CMIRRORD=$enableval
11788 else
11789 CMIRRORD=no
11790 fi
11791
11792 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11793 $as_echo "$CMIRRORD" >&6; }
11794
11795 BUILD_CMIRRORD=$CMIRRORD
11796
11797 ################################################################################
11798
11799
11800 if test "x$BUILD_CMIRRORD" = xyes; then
11801
11802 # Check whether --with-cmirrord-pidfile was given.
11803 if test "${with_cmirrord_pidfile+set}" = set; then
11804 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11805 #define CMIRRORD_PIDFILE "$withval"
11806 _ACEOF
11807
11808 else
11809 cat >>confdefs.h <<_ACEOF
11810 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11811 _ACEOF
11812
11813 fi
11814
11815 fi
11816
11817 ################################################################################
11818 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11819 if test x$PKGCONFIG_INIT != x1; then
11820 pkg_config_init
11821 fi
11822
11823 pkg_failed=no
11824 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11825 $as_echo_n "checking for SACKPT... " >&6; }
11826
11827 if test -n "$SACKPT_CFLAGS"; then
11828 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11829 elif test -n "$PKG_CONFIG"; then
11830 if test -n "$PKG_CONFIG" && \
11831 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11832 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11833 ac_status=$?
11834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; then
11836 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11837 else
11838 pkg_failed=yes
11839 fi
11840 else
11841 pkg_failed=untried
11842 fi
11843 if test -n "$SACKPT_LIBS"; then
11844 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11845 elif test -n "$PKG_CONFIG"; then
11846 if test -n "$PKG_CONFIG" && \
11847 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11848 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11853 else
11854 pkg_failed=yes
11855 fi
11856 else
11857 pkg_failed=untried
11858 fi
11859
11860
11861
11862 if test $pkg_failed = yes; then
11863
11864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11865 _pkg_short_errors_supported=yes
11866 else
11867 _pkg_short_errors_supported=no
11868 fi
11869 if test $_pkg_short_errors_supported = yes; then
11870 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11871 else
11872 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11873 fi
11874 # Put the nasty error message in config.log where it belongs
11875 echo "$SACKPT_PKG_ERRORS" >&5
11876
11877 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11878
11879 $SACKPT_PKG_ERRORS
11880
11881 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11882 installed software in a non-standard prefix.
11883
11884 Alternatively, you may set the environment variables SACKPT_CFLAGS
11885 and SACKPT_LIBS to avoid the need to call pkg-config.
11886 See the pkg-config man page for more details.
11887 " >&5
11888 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11889
11890 $SACKPT_PKG_ERRORS
11891
11892 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11893 installed software in a non-standard prefix.
11894
11895 Alternatively, you may set the environment variables SACKPT_CFLAGS
11896 and SACKPT_LIBS to avoid the need to call pkg-config.
11897 See the pkg-config man page for more details.
11898 " >&2;}
11899 { (exit 1); exit 1; }; }
11900 elif test $pkg_failed = untried; then
11901 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11903 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11904 is in your PATH or set the PKG_CONFIG environment variable to the full
11905 path to pkg-config.
11906
11907 Alternatively, you may set the environment variables SACKPT_CFLAGS
11908 and SACKPT_LIBS to avoid the need to call pkg-config.
11909 See the pkg-config man page for more details.
11910
11911 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11912 See \`config.log' for more details." >&5
11913 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11914 is in your PATH or set the PKG_CONFIG environment variable to the full
11915 path to pkg-config.
11916
11917 Alternatively, you may set the environment variables SACKPT_CFLAGS
11918 and SACKPT_LIBS to avoid the need to call pkg-config.
11919 See the pkg-config man page for more details.
11920
11921 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11922 See \`config.log' for more details." >&2;}
11923 { (exit 1); exit 1; }; }; }
11924 else
11925 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11926 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11927 { $as_echo "$as_me:$LINENO: result: yes" >&5
11928 $as_echo "yes" >&6; }
11929 :
11930 fi
11931 if test x$HAVE_CPG != xyes; then
11932
11933 pkg_failed=no
11934 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11935 $as_echo_n "checking for CPG... " >&6; }
11936
11937 if test -n "$CPG_CFLAGS"; then
11938 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11939 elif test -n "$PKG_CONFIG"; then
11940 if test -n "$PKG_CONFIG" && \
11941 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11942 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11943 ac_status=$?
11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; then
11946 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11947 else
11948 pkg_failed=yes
11949 fi
11950 else
11951 pkg_failed=untried
11952 fi
11953 if test -n "$CPG_LIBS"; then
11954 pkg_cv_CPG_LIBS="$CPG_LIBS"
11955 elif test -n "$PKG_CONFIG"; then
11956 if test -n "$PKG_CONFIG" && \
11957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11958 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11959 ac_status=$?
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; then
11962 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11963 else
11964 pkg_failed=yes
11965 fi
11966 else
11967 pkg_failed=untried
11968 fi
11969
11970
11971
11972 if test $pkg_failed = yes; then
11973
11974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11975 _pkg_short_errors_supported=yes
11976 else
11977 _pkg_short_errors_supported=no
11978 fi
11979 if test $_pkg_short_errors_supported = yes; then
11980 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11981 else
11982 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11983 fi
11984 # Put the nasty error message in config.log where it belongs
11985 echo "$CPG_PKG_ERRORS" >&5
11986
11987 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11988
11989 $CPG_PKG_ERRORS
11990
11991 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11992 installed software in a non-standard prefix.
11993
11994 Alternatively, you may set the environment variables CPG_CFLAGS
11995 and CPG_LIBS to avoid the need to call pkg-config.
11996 See the pkg-config man page for more details.
11997 " >&5
11998 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
11999
12000 $CPG_PKG_ERRORS
12001
12002 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12003 installed software in a non-standard prefix.
12004
12005 Alternatively, you may set the environment variables CPG_CFLAGS
12006 and CPG_LIBS to avoid the need to call pkg-config.
12007 See the pkg-config man page for more details.
12008 " >&2;}
12009 { (exit 1); exit 1; }; }
12010 elif test $pkg_failed = untried; then
12011 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12013 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12014 is in your PATH or set the PKG_CONFIG environment variable to the full
12015 path to pkg-config.
12016
12017 Alternatively, you may set the environment variables CPG_CFLAGS
12018 and CPG_LIBS to avoid the need to call pkg-config.
12019 See the pkg-config man page for more details.
12020
12021 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12022 See \`config.log' for more details." >&5
12023 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12024 is in your PATH or set the PKG_CONFIG environment variable to the full
12025 path to pkg-config.
12026
12027 Alternatively, you may set the environment variables CPG_CFLAGS
12028 and CPG_LIBS to avoid the need to call pkg-config.
12029 See the pkg-config man page for more details.
12030
12031 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12032 See \`config.log' for more details." >&2;}
12033 { (exit 1); exit 1; }; }; }
12034 else
12035 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12036 CPG_LIBS=$pkg_cv_CPG_LIBS
12037 { $as_echo "$as_me:$LINENO: result: yes" >&5
12038 $as_echo "yes" >&6; }
12039 :
12040 fi
12041 fi
12042 fi
12043
12044 ################################################################################
12045 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12046 $as_echo_n "checking whether to enable debugging... " >&6; }
12047 # Check whether --enable-debug was given.
12048 if test "${enable_debug+set}" = set; then
12049 enableval=$enable_debug; DEBUG=$enableval
12050 else
12051 DEBUG=no
12052 fi
12053
12054 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12055 $as_echo "$DEBUG" >&6; }
12056
12057 if test x$DEBUG = xyes; then
12058 COPTIMISE_FLAG=
12059 else
12060 CSCOPE_CMD=
12061 fi
12062
12063 ################################################################################
12064 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12065 $as_echo_n "checking for C optimisation flag... " >&6; }
12066
12067 # Check whether --with-optimisation was given.
12068 if test "${with_optimisation+set}" = set; then
12069 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12070 fi
12071
12072 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12073 $as_echo "$COPTIMISE_FLAG" >&6; }
12074
12075 ################################################################################
12076 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12077 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12078 # Check whether --enable-profiling was given.
12079 if test "${enable_profiling+set}" = set; then
12080 enableval=$enable_profiling; PROFILING=$enableval
12081 else
12082 PROFILING=no
12083 fi
12084
12085 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12086 $as_echo "$PROFILING" >&6; }
12087
12088 if test "x$PROFILING" = xyes; then
12089 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12090 # Extract the first word of "lcov", so it can be a program name with args.
12091 set dummy lcov; ac_word=$2
12092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if test "${ac_cv_path_LCOV+set}" = set; then
12095 $as_echo_n "(cached) " >&6
12096 else
12097 case $LCOV in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12104 do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113 done
12114 done
12115 IFS=$as_save_IFS
12116
12117 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
12118 ;;
12119 esac
12120 fi
12121 LCOV=$ac_cv_path_LCOV
12122 if test -n "$LCOV"; then
12123 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12124 $as_echo "$LCOV" >&6; }
12125 else
12126 { $as_echo "$as_me:$LINENO: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 # Extract the first word of "genhtml", so it can be a program name with args.
12132 set dummy genhtml; ac_word=$2
12133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if test "${ac_cv_path_GENHTML+set}" = set; then
12136 $as_echo_n "(cached) " >&6
12137 else
12138 case $GENHTML in
12139 [\\/]* | ?:[\\/]*)
12140 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12141 ;;
12142 *)
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12153 fi
12154 done
12155 done
12156 IFS=$as_save_IFS
12157
12158 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
12159 ;;
12160 esac
12161 fi
12162 GENHTML=$ac_cv_path_GENHTML
12163 if test -n "$GENHTML"; then
12164 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12165 $as_echo "$GENHTML" >&6; }
12166 else
12167 { $as_echo "$as_me:$LINENO: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 if test "$LCOV" = no -o "$GENHTML" = no ; then
12173 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12174 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12175 { (exit 1); exit 1; }; }
12176 fi
12177 fi
12178
12179 ################################################################################
12180 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12181 $as_echo_n "checking whether to use device-mapper... " >&6; }
12182 # Check whether --enable-devmapper was given.
12183 if test "${enable_devmapper+set}" = set; then
12184 enableval=$enable_devmapper; DEVMAPPER=$enableval
12185 fi
12186
12187 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12188 $as_echo "$DEVMAPPER" >&6; }
12189
12190 if test x$DEVMAPPER = xyes; then
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define DEVMAPPER_SUPPORT 1
12194 _ACEOF
12195
12196 fi
12197
12198 ################################################################################
12199 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12200 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12201 # Check whether --enable-udev_sync was given.
12202 if test "${enable_udev_sync+set}" = set; then
12203 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12204 else
12205 UDEV_SYNC=no
12206 fi
12207
12208 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12209 $as_echo "$UDEV_SYNC" >&6; }
12210
12211 if test x$UDEV_SYNC = xyes; then
12212
12213 cat >>confdefs.h <<\_ACEOF
12214 #define UDEV_SYNC_SUPPORT 1
12215 _ACEOF
12216
12217 fi
12218
12219 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12220 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12221 # Check whether --enable-udev_rules was given.
12222 if test "${enable_udev_rules+set}" = set; then
12223 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12224 else
12225 UDEV_RULES=$UDEV_SYNC
12226 fi
12227
12228 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12229 $as_echo "$UDEV_RULES" >&6; }
12230
12231 ################################################################################
12232
12233 if test x$UDEV_SYNC = xyes; then
12234 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12235 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12236 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-ludev $LIBS"
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char udev_queue_get_udev_is_active ();
12255 int
12256 main ()
12257 {
12258 return udev_queue_get_udev_is_active ();
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (ac_try="$ac_link"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268 esac
12269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12270 $as_echo "$ac_try_echo") >&5
12271 (eval "$ac_link") 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest$ac_exeext && {
12281 test "$cross_compiling" = yes ||
12282 $as_test_x conftest$ac_exeext
12283 }; then
12284 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12285 else
12286 $as_echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12290 fi
12291
12292 rm -rf conftest.dSYM
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12296 fi
12297 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12298 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12299 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12300 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12301 else
12302 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12303 fi
12304
12305
12306 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12307
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12310 _ACEOF
12311
12312 UDEV_LIBS="-ludev"
12313 else
12314 UDEV_LIBS=
12315 { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
12316 $as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
12317 fi
12318 fi
12319
12320 ################################################################################
12321 # Check whether --enable-compat was given.
12322 if test "${enable_compat+set}" = set; then
12323 enableval=$enable_compat; DM_COMPAT=$enableval
12324 else
12325 DM_COMPAT=no
12326 fi
12327
12328
12329 ################################################################################
12330 # Check whether --enable-units-compat was given.
12331 if test "${enable_units_compat+set}" = set; then
12332 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12333 else
12334 UNITS_COMPAT=no
12335 fi
12336
12337
12338 if test x$UNITS_COMPAT = xyes; then
12339
12340 cat >>confdefs.h <<\_ACEOF
12341 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12342 _ACEOF
12343
12344 fi
12345
12346 ################################################################################
12347 # Check whether --enable-ioctl was given.
12348 if test "${enable_ioctl+set}" = set; then
12349 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12350 fi
12351
12352
12353 ################################################################################
12354 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12355 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12356 # Check whether --enable-o_direct was given.
12357 if test "${enable_o_direct+set}" = set; then
12358 enableval=$enable_o_direct; ODIRECT=$enableval
12359 fi
12360
12361 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12362 $as_echo "$ODIRECT" >&6; }
12363
12364 if test x$ODIRECT = xyes; then
12365
12366 cat >>confdefs.h <<\_ACEOF
12367 #define O_DIRECT_SUPPORT 1
12368 _ACEOF
12369
12370 fi
12371
12372 ################################################################################
12373 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12374 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12375 # Check whether --enable-applib was given.
12376 if test "${enable_applib+set}" = set; then
12377 enableval=$enable_applib; APPLIB=$enableval
12378 else
12379 APPLIB=no
12380 fi
12381
12382 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12383 $as_echo "$APPLIB" >&6; }
12384
12385 test x$APPLIB = xyes \
12386 && LVM2APP_LIB=-llvm2app \
12387 || LVM2APP_LIB=
12388
12389 ################################################################################
12390 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12391 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12392 # Check whether --enable-cmdlib was given.
12393 if test "${enable_cmdlib+set}" = set; then
12394 enableval=$enable_cmdlib; CMDLIB=$enableval
12395 else
12396 CMDLIB=no
12397 fi
12398
12399 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12400 $as_echo "$CMDLIB" >&6; }
12401
12402 test x$CMDLIB = xyes \
12403 && LVM2CMD_LIB=-llvm2cmd \
12404 || LVM2CMD_LIB=
12405
12406 ################################################################################
12407 # Check whether --enable-pkgconfig was given.
12408 if test "${enable_pkgconfig+set}" = set; then
12409 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12410 else
12411 PKGCONFIG=no
12412 fi
12413
12414
12415 ################################################################################
12416 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12417 $as_echo_n "checking whether to install fsadm... " >&6; }
12418 # Check whether --enable-fsadm was given.
12419 if test "${enable_fsadm+set}" = set; then
12420 enableval=$enable_fsadm; FSADM=$enableval
12421 fi
12422
12423 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12424 $as_echo "$FSADM" >&6; }
12425
12426 ################################################################################
12427 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12428 $as_echo_n "checking whether to use dmeventd... " >&6; }
12429 # Check whether --enable-dmeventd was given.
12430 if test "${enable_dmeventd+set}" = set; then
12431 enableval=$enable_dmeventd; DMEVENTD=$enableval
12432 fi
12433
12434 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12435 $as_echo "$DMEVENTD" >&6; }
12436
12437 BUILD_DMEVENTD=$DMEVENTD
12438
12439 if test x$DMEVENTD = xyes; then
12440 if test x$MIRRORS != xinternal; then
12441 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12442 " >&5
12443 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12444 " >&2;}
12445 { (exit 1); exit 1; }; }
12446 fi
12447 if test x$CMDLIB = xno; then
12448 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12449 " >&5
12450 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12451 " >&2;}
12452 { (exit 1); exit 1; }; }
12453 fi
12454 fi
12455
12456 if test x$DMEVENTD = xyes; then
12457
12458 cat >>confdefs.h <<\_ACEOF
12459 #define DMEVENTD 1
12460 _ACEOF
12461
12462 fi
12463
12464 ################################################################################
12465
12466 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12467 $as_echo_n "checking for getline in -lc... " >&6; }
12468 if test "${ac_cv_lib_c_getline+set}" = set; then
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-lc $LIBS"
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char getline ();
12487 int
12488 main ()
12489 {
12490 return getline ();
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (ac_try="$ac_link"
12497 case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12500 esac
12501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12502 $as_echo "$ac_try_echo") >&5
12503 (eval "$ac_link") 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } && {
12510 test -z "$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12512 } && test -s conftest$ac_exeext && {
12513 test "$cross_compiling" = yes ||
12514 $as_test_x conftest$ac_exeext
12515 }; then
12516 ac_cv_lib_c_getline=yes
12517 else
12518 $as_echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 ac_cv_lib_c_getline=no
12522 fi
12523
12524 rm -rf conftest.dSYM
12525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12528 fi
12529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12530 $as_echo "$ac_cv_lib_c_getline" >&6; }
12531 if test "x$ac_cv_lib_c_getline" = x""yes; then
12532
12533 cat >>confdefs.h <<\_ACEOF
12534 #define HAVE_GETLINE 1
12535 _ACEOF
12536
12537 fi
12538
12539
12540 ################################################################################
12541
12542 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12543 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12544 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12545 $as_echo_n "(cached) " >&6
12546 else
12547 ac_check_lib_save_LIBS=$LIBS
12548 LIBS="-lc $LIBS"
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h. */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 char canonicalize_file_name ();
12563 int
12564 main ()
12565 {
12566 return canonicalize_file_name ();
12567 ;
12568 return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576 esac
12577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12578 $as_echo "$ac_try_echo") >&5
12579 (eval "$ac_link") 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } && {
12586 test -z "$ac_c_werror_flag" ||
12587 test ! -s conftest.err
12588 } && test -s conftest$ac_exeext && {
12589 test "$cross_compiling" = yes ||
12590 $as_test_x conftest$ac_exeext
12591 }; then
12592 ac_cv_lib_c_canonicalize_file_name=yes
12593 else
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597 ac_cv_lib_c_canonicalize_file_name=no
12598 fi
12599
12600 rm -rf conftest.dSYM
12601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12604 fi
12605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12606 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12607 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12608
12609 cat >>confdefs.h <<\_ACEOF
12610 #define HAVE_CANONICALIZE_FILE_NAME 1
12611 _ACEOF
12612
12613 fi
12614
12615
12616 ################################################################################
12617 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12618 then exec_prefix="";
12619 fi;
12620
12621 ################################################################################
12622 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12624 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12625 $as_echo_n "(cached) " >&6
12626 else
12627 ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-ldl $LIBS"
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h. */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char dlopen ();
12643 int
12644 main ()
12645 {
12646 return dlopen ();
12647 ;
12648 return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656 esac
12657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12658 $as_echo "$ac_try_echo") >&5
12659 (eval "$ac_link") 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest$ac_exeext && {
12669 test "$cross_compiling" = yes ||
12670 $as_test_x conftest$ac_exeext
12671 }; then
12672 ac_cv_lib_dl_dlopen=yes
12673 else
12674 $as_echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_lib_dl_dlopen=no
12678 fi
12679
12680 rm -rf conftest.dSYM
12681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12682 conftest$ac_exeext conftest.$ac_ext
12683 LIBS=$ac_check_lib_save_LIBS
12684 fi
12685 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12688
12689
12690 cat >>confdefs.h <<\_ACEOF
12691 #define HAVE_LIBDL 1
12692 _ACEOF
12693
12694 DL_LIBS="-ldl"
12695 HAVE_LIBDL=yes
12696 else
12697
12698 DL_LIBS=
12699 HAVE_LIBDL=no
12700 fi
12701
12702
12703 ################################################################################
12704 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12705 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12706 \) -a "x$STATIC_LINK" = xyes ];
12707 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12708 " >&5
12709 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12710 " >&2;}
12711 { (exit 1); exit 1; }; }
12712 fi
12713
12714 ################################################################################
12715 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12716 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12717 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12718 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12719 $as_echo_n "(cached) " >&6
12720 else
12721 ac_check_lib_save_LIBS=$LIBS
12722 LIBS="-lpthread $LIBS"
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729
12730 /* Override any GCC internal prototype to avoid an error.
12731 Use char because int might match the return type of a GCC
12732 builtin and then its argument prototype would still apply. */
12733 #ifdef __cplusplus
12734 extern "C"
12735 #endif
12736 char pthread_mutex_lock ();
12737 int
12738 main ()
12739 {
12740 return pthread_mutex_lock ();
12741 ;
12742 return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (ac_try="$ac_link"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750 esac
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753 (eval "$ac_link") 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest$ac_exeext && {
12763 test "$cross_compiling" = yes ||
12764 $as_test_x conftest$ac_exeext
12765 }; then
12766 ac_cv_lib_pthread_pthread_mutex_lock=yes
12767 else
12768 $as_echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 ac_cv_lib_pthread_pthread_mutex_lock=no
12772 fi
12773
12774 rm -rf conftest.dSYM
12775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12778 fi
12779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12780 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12781 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12782 PTHREAD_LIBS="-lpthread"
12783 else
12784 hard_bailout
12785 fi
12786
12787 fi
12788
12789 ################################################################################
12790 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12791 $as_echo_n "checking whether to enable selinux support... " >&6; }
12792 # Check whether --enable-selinux was given.
12793 if test "${enable_selinux+set}" = set; then
12794 enableval=$enable_selinux; SELINUX=$enableval
12795 fi
12796
12797 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12798 $as_echo "$SELINUX" >&6; }
12799
12800 ################################################################################
12801 if test x$SELINUX = xyes; then
12802 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12803 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12804 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12805 $as_echo_n "(cached) " >&6
12806 else
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lsepol $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char sepol_check_context ();
12823 int
12824 main ()
12825 {
12826 return sepol_check_context ();
12827 ;
12828 return 0;
12829 }
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12838 $as_echo "$ac_try_echo") >&5
12839 (eval "$ac_link") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && {
12846 test -z "$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 } && test -s conftest$ac_exeext && {
12849 test "$cross_compiling" = yes ||
12850 $as_test_x conftest$ac_exeext
12851 }; then
12852 ac_cv_lib_sepol_sepol_check_context=yes
12853 else
12854 $as_echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ac_cv_lib_sepol_sepol_check_context=no
12858 fi
12859
12860 rm -rf conftest.dSYM
12861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12862 conftest$ac_exeext conftest.$ac_ext
12863 LIBS=$ac_check_lib_save_LIBS
12864 fi
12865 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12866 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12867 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12868
12869
12870 cat >>confdefs.h <<\_ACEOF
12871 #define HAVE_SEPOL 1
12872 _ACEOF
12873
12874 SELINUX_LIBS="-lsepol"
12875 fi
12876
12877
12878 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12879 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12880 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-lselinux $LIBS"
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12895 #ifdef __cplusplus
12896 extern "C"
12897 #endif
12898 char is_selinux_enabled ();
12899 int
12900 main ()
12901 {
12902 return is_selinux_enabled ();
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12914 $as_echo "$ac_try_echo") >&5
12915 (eval "$ac_link") 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && {
12922 test -z "$ac_c_werror_flag" ||
12923 test ! -s conftest.err
12924 } && test -s conftest$ac_exeext && {
12925 test "$cross_compiling" = yes ||
12926 $as_test_x conftest$ac_exeext
12927 }; then
12928 ac_cv_lib_selinux_is_selinux_enabled=yes
12929 else
12930 $as_echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 ac_cv_lib_selinux_is_selinux_enabled=no
12934 fi
12935
12936 rm -rf conftest.dSYM
12937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12940 fi
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12942 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12943 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12944
12945
12946 for ac_header in selinux/selinux.h
12947 do
12948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12951 $as_echo_n "checking for $ac_header... " >&6; }
12952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12953 $as_echo_n "(cached) " >&6
12954 fi
12955 ac_res=`eval 'as_val=${'$as_ac_Header'}
12956 $as_echo "$as_val"'`
12957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12958 $as_echo "$ac_res" >&6; }
12959 else
12960 # Is the header compilable?
12961 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12962 $as_echo_n "checking $ac_header usability... " >&6; }
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12970 #include <$ac_header>
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12979 $as_echo "$ac_try_echo") >&5
12980 (eval "$ac_compile") 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && {
12987 test -z "$ac_c_werror_flag" ||
12988 test ! -s conftest.err
12989 } && test -s conftest.$ac_objext; then
12990 ac_header_compiler=yes
12991 else
12992 $as_echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_header_compiler=no
12996 fi
12997
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13000 $as_echo "$ac_header_compiler" >&6; }
13001
13002 # Is the header present?
13003 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13004 $as_echo_n "checking $ac_header presence... " >&6; }
13005 cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h. */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13011 #include <$ac_header>
13012 _ACEOF
13013 if { (ac_try="$ac_cpp conftest.$ac_ext"
13014 case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017 esac
13018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13019 $as_echo "$ac_try_echo") >&5
13020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } >/dev/null && {
13027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 }; then
13030 ac_header_preproc=yes
13031 else
13032 $as_echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 ac_header_preproc=no
13036 fi
13037
13038 rm -f conftest.err conftest.$ac_ext
13039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 $as_echo "$ac_header_preproc" >&6; }
13041
13042 # So? What about this header?
13043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13044 yes:no: )
13045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13046 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13049 ac_header_preproc=yes
13050 ;;
13051 no:yes:* )
13052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13053 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13055 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13057 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13059 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13063 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13064
13065 ;;
13066 esac
13067 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13068 $as_echo_n "checking for $ac_header... " >&6; }
13069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13070 $as_echo_n "(cached) " >&6
13071 else
13072 eval "$as_ac_Header=\$ac_header_preproc"
13073 fi
13074 ac_res=`eval 'as_val=${'$as_ac_Header'}
13075 $as_echo "$as_val"'`
13076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13077 $as_echo "$ac_res" >&6; }
13078
13079 fi
13080 as_val=`eval 'as_val=${'$as_ac_Header'}
13081 $as_echo "$as_val"'`
13082 if test "x$as_val" = x""yes; then
13083 cat >>confdefs.h <<_ACEOF
13084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13085 _ACEOF
13086
13087 else
13088 hard_bailout
13089 fi
13090
13091 done
13092
13093
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_SELINUX 1
13096 _ACEOF
13097
13098 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13099 HAVE_SELINUX=yes
13100 else
13101
13102 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13103 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13104 SELINUX_LIBS=
13105 HAVE_SELINUX=no
13106 fi
13107
13108 fi
13109
13110 ################################################################################
13111 if test x$REALTIME = xyes; then
13112 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13113 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13114 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13115 $as_echo_n "(cached) " >&6
13116 else
13117 ac_check_lib_save_LIBS=$LIBS
13118 LIBS="-lrt $LIBS"
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 char clock_gettime ();
13133 int
13134 main ()
13135 {
13136 return clock_gettime ();
13137 ;
13138 return 0;
13139 }
13140 _ACEOF
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (ac_try="$ac_link"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146 esac
13147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13148 $as_echo "$ac_try_echo") >&5
13149 (eval "$ac_link") 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } && {
13156 test -z "$ac_c_werror_flag" ||
13157 test ! -s conftest.err
13158 } && test -s conftest$ac_exeext && {
13159 test "$cross_compiling" = yes ||
13160 $as_test_x conftest$ac_exeext
13161 }; then
13162 ac_cv_lib_rt_clock_gettime=yes
13163 else
13164 $as_echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 ac_cv_lib_rt_clock_gettime=no
13168 fi
13169
13170 rm -rf conftest.dSYM
13171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13172 conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13174 fi
13175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13176 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13177 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13178 HAVE_REALTIME=yes
13179 else
13180 HAVE_REALTIME=no
13181 fi
13182
13183
13184 if test x$HAVE_REALTIME = xyes; then
13185
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_REALTIME 1
13188 _ACEOF
13189
13190 LIBS="-lrt $LIBS"
13191 else
13192 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13193 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13194 fi
13195 fi
13196
13197 ################################################################################
13198
13199 for ac_header in getopt.h
13200 do
13201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13203 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13204 $as_echo_n "checking for $ac_header... " >&6; }
13205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13206 $as_echo_n "(cached) " >&6
13207 fi
13208 ac_res=`eval 'as_val=${'$as_ac_Header'}
13209 $as_echo "$as_val"'`
13210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13211 $as_echo "$ac_res" >&6; }
13212 else
13213 # Is the header compilable?
13214 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13215 $as_echo_n "checking $ac_header usability... " >&6; }
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 $ac_includes_default
13223 #include <$ac_header>
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (ac_try="$ac_compile"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230 esac
13231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13232 $as_echo "$ac_try_echo") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest.$ac_objext; then
13243 ac_header_compiler=yes
13244 else
13245 $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13247
13248 ac_header_compiler=no
13249 fi
13250
13251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13253 $as_echo "$ac_header_compiler" >&6; }
13254
13255 # Is the header present?
13256 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13257 $as_echo_n "checking $ac_header presence... " >&6; }
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h. */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 #include <$ac_header>
13265 _ACEOF
13266 if { (ac_try="$ac_cpp conftest.$ac_ext"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270 esac
13271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13272 $as_echo "$ac_try_echo") >&5
13273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } >/dev/null && {
13280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13281 test ! -s conftest.err
13282 }; then
13283 ac_header_preproc=yes
13284 else
13285 $as_echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_header_preproc=no
13289 fi
13290
13291 rm -f conftest.err conftest.$ac_ext
13292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13293 $as_echo "$ac_header_preproc" >&6; }
13294
13295 # So? What about this header?
13296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13297 yes:no: )
13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13299 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13302 ac_header_preproc=yes
13303 ;;
13304 no:yes:* )
13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13306 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13308 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13310 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13312 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13316 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13317
13318 ;;
13319 esac
13320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13321 $as_echo_n "checking for $ac_header... " >&6; }
13322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13323 $as_echo_n "(cached) " >&6
13324 else
13325 eval "$as_ac_Header=\$ac_header_preproc"
13326 fi
13327 ac_res=`eval 'as_val=${'$as_ac_Header'}
13328 $as_echo "$as_val"'`
13329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13330 $as_echo "$ac_res" >&6; }
13331
13332 fi
13333 as_val=`eval 'as_val=${'$as_ac_Header'}
13334 $as_echo "$as_val"'`
13335 if test "x$as_val" = x""yes; then
13336 cat >>confdefs.h <<_ACEOF
13337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13338 _ACEOF
13339
13340 cat >>confdefs.h <<\_ACEOF
13341 #define HAVE_GETOPTLONG 1
13342 _ACEOF
13343
13344 fi
13345
13346 done
13347
13348
13349 ################################################################################
13350 if test x$READLINE != xno; then
13351 lvm_saved_libs=$LIBS
13352 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13353 $as_echo_n "checking for library containing tgetent... " >&6; }
13354 if test "${ac_cv_search_tgetent+set}" = set; then
13355 $as_echo_n "(cached) " >&6
13356 else
13357 ac_func_search_save_LIBS=$LIBS
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13368 #ifdef __cplusplus
13369 extern "C"
13370 #endif
13371 char tgetent ();
13372 int
13373 main ()
13374 {
13375 return tgetent ();
13376 ;
13377 return 0;
13378 }
13379 _ACEOF
13380 for ac_lib in '' tinfo ncurses curses termcap termlib; do
13381 if test -z "$ac_lib"; then
13382 ac_res="none required"
13383 else
13384 ac_res=-l$ac_lib
13385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13386 fi
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395 (eval "$ac_link") 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext && {
13405 test "$cross_compiling" = yes ||
13406 $as_test_x conftest$ac_exeext
13407 }; then
13408 ac_cv_search_tgetent=$ac_res
13409 else
13410 $as_echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413
13414 fi
13415
13416 rm -rf conftest.dSYM
13417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13418 conftest$ac_exeext
13419 if test "${ac_cv_search_tgetent+set}" = set; then
13420 break
13421 fi
13422 done
13423 if test "${ac_cv_search_tgetent+set}" = set; then
13424 :
13425 else
13426 ac_cv_search_tgetent=no
13427 fi
13428 rm conftest.$ac_ext
13429 LIBS=$ac_func_search_save_LIBS
13430 fi
13431 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13432 $as_echo "$ac_cv_search_tgetent" >&6; }
13433 ac_res=$ac_cv_search_tgetent
13434 if test "$ac_res" != no; then
13435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13436 READLINE_LIBS=$ac_cv_search_tgetent
13437 else
13438
13439 if test "$READLINE" = yes; then
13440 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13441 --enable-readline option (which is enabled by default). Either disable readline
13442 support with --disable-readline or download and install termcap from:
13443 ftp.gnu.org/gnu/termcap
13444 Note: if you are using precompiled packages you will also need the development
13445 package as well (which may be called termcap-devel or something similar).
13446 Note: (n)curses also seems to work as a substitute for termcap. This was
13447 not found either - but you could try installing that as well." >&5
13448 $as_echo "$as_me: error: termcap could not be found which is required for the
13449 --enable-readline option (which is enabled by default). Either disable readline
13450 support with --disable-readline or download and install termcap from:
13451 ftp.gnu.org/gnu/termcap
13452 Note: if you are using precompiled packages you will also need the development
13453 package as well (which may be called termcap-devel or something similar).
13454 Note: (n)curses also seems to work as a substitute for termcap. This was
13455 not found either - but you could try installing that as well." >&2;}
13456 { (exit 1); exit 1; }; }
13457 fi
13458 fi
13459
13460 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13461 $as_echo_n "checking for readline in -lreadline... " >&6; }
13462 if test "${ac_cv_lib_readline_readline+set}" = set; then
13463 $as_echo_n "(cached) " >&6
13464 else
13465 ac_check_lib_save_LIBS=$LIBS
13466 LIBS="-lreadline $LIBS"
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char readline ();
13481 int
13482 main ()
13483 {
13484 return readline ();
13485 ;
13486 return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (ac_try="$ac_link"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494 esac
13495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496 $as_echo "$ac_try_echo") >&5
13497 (eval "$ac_link") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest$ac_exeext && {
13507 test "$cross_compiling" = yes ||
13508 $as_test_x conftest$ac_exeext
13509 }; then
13510 ac_cv_lib_readline_readline=yes
13511 else
13512 $as_echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_lib_readline_readline=no
13516 fi
13517
13518 rm -rf conftest.dSYM
13519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13522 fi
13523 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13524 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13525 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13526
13527
13528 cat >>confdefs.h <<\_ACEOF
13529 #define READLINE_SUPPORT 1
13530 _ACEOF
13531
13532 LIBS=$lvm_saved_libs
13533 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13534 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13535 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13536 $as_echo_n "(cached) " >&6
13537 else
13538 ac_check_lib_save_LIBS=$LIBS
13539 LIBS="-lreadline $LIBS"
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13550 #ifdef __cplusplus
13551 extern "C"
13552 #endif
13553 char rl_line_buffer ();
13554 int
13555 main ()
13556 {
13557 return rl_line_buffer ();
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (ac_try="$ac_link"
13564 case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13567 esac
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570 (eval "$ac_link") 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest$ac_exeext && {
13580 test "$cross_compiling" = yes ||
13581 $as_test_x conftest$ac_exeext
13582 }; then
13583 ac_cv_lib_readline_rl_line_buffer=yes
13584 else
13585 $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 ac_cv_lib_readline_rl_line_buffer=no
13589 fi
13590
13591 rm -rf conftest.dSYM
13592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13593 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13595 fi
13596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13597 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13598 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13599 READLINE_LIBS="-lreadline"
13600 else
13601
13602 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13603 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13604 READLINE_LIBS="-lreadline $READLINE_LIBS"
13605
13606 fi
13607
13608 else
13609
13610 READLINE_LIBS=
13611 if test "$READLINE" = yes; then
13612 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13613 --enable-readline option (which is enabled by default). Either disable readline
13614 support with --disable-readline or download and install readline from:
13615 ftp.gnu.org/gnu/readline
13616 Note: if you are using precompiled packages you will also need the development
13617 package as well (which may be called readline-devel or something similar)." >&5
13618 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13619 --enable-readline option (which is enabled by default). Either disable readline
13620 support with --disable-readline or download and install readline from:
13621 ftp.gnu.org/gnu/readline
13622 Note: if you are using precompiled packages you will also need the development
13623 package as well (which may be called readline-devel or something similar)." >&2;}
13624 { (exit 1); exit 1; }; }
13625 fi
13626 fi
13627
13628 LIBS="$READLINE_LIBS $lvm_saved_libs"
13629
13630 for ac_func in rl_completion_matches
13631 do
13632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13633 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13634 $as_echo_n "checking for $ac_func... " >&6; }
13635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13636 $as_echo_n "(cached) " >&6
13637 else
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h. */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13646 #define $ac_func innocuous_$ac_func
13647
13648 /* System header to define __stub macros and hopefully few prototypes,
13649 which can conflict with char $ac_func (); below.
13650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651 <limits.h> exists even on freestanding compilers. */
13652
13653 #ifdef __STDC__
13654 # include <limits.h>
13655 #else
13656 # include <assert.h>
13657 #endif
13658
13659 #undef $ac_func
13660
13661 /* Override any GCC internal prototype to avoid an error.
13662 Use char because int might match the return type of a GCC
13663 builtin and then its argument prototype would still apply. */
13664 #ifdef __cplusplus
13665 extern "C"
13666 #endif
13667 char $ac_func ();
13668 /* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671 #if defined __stub_$ac_func || defined __stub___$ac_func
13672 choke me
13673 #endif
13674
13675 int
13676 main ()
13677 {
13678 return $ac_func ();
13679 ;
13680 return 0;
13681 }
13682 _ACEOF
13683 rm -f conftest.$ac_objext conftest$ac_exeext
13684 if { (ac_try="$ac_link"
13685 case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13690 $as_echo "$ac_try_echo") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext && {
13701 test "$cross_compiling" = yes ||
13702 $as_test_x conftest$ac_exeext
13703 }; then
13704 eval "$as_ac_var=yes"
13705 else
13706 $as_echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 eval "$as_ac_var=no"
13710 fi
13711
13712 rm -rf conftest.dSYM
13713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13714 conftest$ac_exeext conftest.$ac_ext
13715 fi
13716 ac_res=`eval 'as_val=${'$as_ac_var'}
13717 $as_echo "$as_val"'`
13718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13719 $as_echo "$ac_res" >&6; }
13720 as_val=`eval 'as_val=${'$as_ac_var'}
13721 $as_echo "$as_val"'`
13722 if test "x$as_val" = x""yes; then
13723 cat >>confdefs.h <<_ACEOF
13724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13725 _ACEOF
13726
13727 fi
13728 done
13729
13730 LIBS=$lvm_saved_libs
13731 fi
13732
13733 ################################################################################
13734 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13735 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13736 # Check whether --enable-nls was given.
13737 if test "${enable_nls+set}" = set; then
13738 enableval=$enable_nls; INTL=$enableval
13739 else
13740 INTL=no
13741 fi
13742
13743 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13744 $as_echo "$INTL" >&6; }
13745
13746 if test x$INTL = xyes; then
13747 # FIXME - Move this - can be device-mapper too
13748 INTL_PACKAGE="lvm2"
13749 # Extract the first word of "msgfmt", so it can be a program name with args.
13750 set dummy msgfmt; ac_word=$2
13751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if test "${ac_cv_path_MSGFMT+set}" = set; then
13754 $as_echo_n "(cached) " >&6
13755 else
13756 case $MSGFMT in
13757 [\\/]* | ?:[\\/]*)
13758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13759 ;;
13760 *)
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13763 do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13768 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772 done
13773 done
13774 IFS=$as_save_IFS
13775
13776 ;;
13777 esac
13778 fi
13779 MSGFMT=$ac_cv_path_MSGFMT
13780 if test -n "$MSGFMT"; then
13781 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13782 $as_echo "$MSGFMT" >&6; }
13783 else
13784 { $as_echo "$as_me:$LINENO: result: no" >&5
13785 $as_echo "no" >&6; }
13786 fi
13787
13788
13789 if [ "x$MSGFMT" == x ];
13790 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13791 " >&5
13792 $as_echo "$as_me: error: msgfmt not found in path $PATH
13793 " >&2;}
13794 { (exit 1); exit 1; }; }
13795 fi;
13796
13797
13798 # Check whether --with-localedir was given.
13799 if test "${with_localedir+set}" = set; then
13800 withval=$with_localedir; LOCALEDIR="$withval"
13801 else
13802 LOCALEDIR='${prefix}/share/locale'
13803 fi
13804
13805 fi
13806
13807 ################################################################################
13808
13809 # Check whether --with-confdir was given.
13810 if test "${with_confdir+set}" = set; then
13811 withval=$with_confdir; CONFDIR="$withval"
13812 else
13813 CONFDIR='/etc'
13814 fi
13815
13816
13817
13818 # Check whether --with-staticdir was given.
13819 if test "${with_staticdir+set}" = set; then
13820 withval=$with_staticdir; STATICDIR="$withval"
13821 else
13822 STATICDIR='${exec_prefix}/sbin'
13823 fi
13824
13825
13826
13827 # Check whether --with-usrlibdir was given.
13828 if test "${with_usrlibdir+set}" = set; then
13829 withval=$with_usrlibdir; usrlibdir="$withval"
13830 else
13831 usrlibdir='${prefix}/lib'
13832 fi
13833
13834
13835
13836 # Check whether --with-usrsbindir was given.
13837 if test "${with_usrsbindir+set}" = set; then
13838 withval=$with_usrsbindir; usrsbindir="$withval"
13839 else
13840 usrsbindir='${prefix}/sbin'
13841 fi
13842
13843
13844 ################################################################################
13845
13846 # Check whether --with-udev_prefix was given.
13847 if test "${with_udev_prefix+set}" = set; then
13848 withval=$with_udev_prefix; udev_prefix="$withval"
13849 else
13850 udev_prefix='${exec_prefix}'
13851 fi
13852
13853
13854
13855 # Check whether --with-udevdir was given.
13856 if test "${with_udevdir+set}" = set; then
13857 withval=$with_udevdir; udevdir="$withval"
13858 else
13859 udevdir='${udev_prefix}/lib/udev/rules.d'
13860 fi
13861
13862
13863 ################################################################################
13864 if test x$READLINE = xyes; then
13865
13866
13867 for ac_header in readline/readline.h readline/history.h
13868 do
13869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 $as_echo_n "checking for $ac_header... " >&6; }
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874 $as_echo_n "(cached) " >&6
13875 fi
13876 ac_res=`eval 'as_val=${'$as_ac_Header'}
13877 $as_echo "$as_val"'`
13878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13879 $as_echo "$ac_res" >&6; }
13880 else
13881 # Is the header compilable?
13882 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13883 $as_echo_n "checking $ac_header usability... " >&6; }
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 #include <$ac_header>
13892 _ACEOF
13893 rm -f conftest.$ac_objext
13894 if { (ac_try="$ac_compile"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13900 $as_echo "$ac_try_echo") >&5
13901 (eval "$ac_compile") 2>conftest.er1
13902 ac_status=$?
13903 grep -v '^ *+' conftest.er1 >conftest.err
13904 rm -f conftest.er1
13905 cat conftest.err >&5
13906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && {
13908 test -z "$ac_c_werror_flag" ||
13909 test ! -s conftest.err
13910 } && test -s conftest.$ac_objext; then
13911 ac_header_compiler=yes
13912 else
13913 $as_echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916 ac_header_compiler=no
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13921 $as_echo "$ac_header_compiler" >&6; }
13922
13923 # Is the header present?
13924 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13925 $as_echo_n "checking $ac_header presence... " >&6; }
13926 cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h. */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 #include <$ac_header>
13933 _ACEOF
13934 if { (ac_try="$ac_cpp conftest.$ac_ext"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13940 $as_echo "$ac_try_echo") >&5
13941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } >/dev/null && {
13948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13949 test ! -s conftest.err
13950 }; then
13951 ac_header_preproc=yes
13952 else
13953 $as_echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956 ac_header_preproc=no
13957 fi
13958
13959 rm -f conftest.err conftest.$ac_ext
13960 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13961 $as_echo "$ac_header_preproc" >&6; }
13962
13963 # So? What about this header?
13964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13965 yes:no: )
13966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13967 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13970 ac_header_preproc=yes
13971 ;;
13972 no:yes:* )
13973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13974 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13976 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13978 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13980 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13982 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13984 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13985
13986 ;;
13987 esac
13988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13989 $as_echo_n "checking for $ac_header... " >&6; }
13990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13991 $as_echo_n "(cached) " >&6
13992 else
13993 eval "$as_ac_Header=\$ac_header_preproc"
13994 fi
13995 ac_res=`eval 'as_val=${'$as_ac_Header'}
13996 $as_echo "$as_val"'`
13997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13998 $as_echo "$ac_res" >&6; }
13999
14000 fi
14001 as_val=`eval 'as_val=${'$as_ac_Header'}
14002 $as_echo "$as_val"'`
14003 if test "x$as_val" = x""yes; then
14004 cat >>confdefs.h <<_ACEOF
14005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14006 _ACEOF
14007
14008 else
14009 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14010 $as_echo "$as_me: error: bailing out" >&2;}
14011 { (exit 1); exit 1; }; }
14012 fi
14013
14014 done
14015
14016 fi
14017
14018 if test x$CLVMD != xnone; then
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029 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
14030 do
14031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14034 $as_echo_n "checking for $ac_header... " >&6; }
14035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14036 $as_echo_n "(cached) " >&6
14037 fi
14038 ac_res=`eval 'as_val=${'$as_ac_Header'}
14039 $as_echo "$as_val"'`
14040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14041 $as_echo "$ac_res" >&6; }
14042 else
14043 # Is the header compilable?
14044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14045 $as_echo_n "checking $ac_header usability... " >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 $ac_includes_default
14053 #include <$ac_header>
14054 _ACEOF
14055 rm -f conftest.$ac_objext
14056 if { (ac_try="$ac_compile"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14062 $as_echo "$ac_try_echo") >&5
14063 (eval "$ac_compile") 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } && {
14070 test -z "$ac_c_werror_flag" ||
14071 test ! -s conftest.err
14072 } && test -s conftest.$ac_objext; then
14073 ac_header_compiler=yes
14074 else
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_header_compiler=no
14079 fi
14080
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14083 $as_echo "$ac_header_compiler" >&6; }
14084
14085 # Is the header present?
14086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14087 $as_echo_n "checking $ac_header presence... " >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h. */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 #include <$ac_header>
14095 _ACEOF
14096 if { (ac_try="$ac_cpp conftest.$ac_ext"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100 esac
14101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14102 $as_echo "$ac_try_echo") >&5
14103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } >/dev/null && {
14110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14111 test ! -s conftest.err
14112 }; then
14113 ac_header_preproc=yes
14114 else
14115 $as_echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_header_preproc=no
14119 fi
14120
14121 rm -f conftest.err conftest.$ac_ext
14122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14123 $as_echo "$ac_header_preproc" >&6; }
14124
14125 # So? What about this header?
14126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14127 yes:no: )
14128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14132 ac_header_preproc=yes
14133 ;;
14134 no:yes:* )
14135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14147
14148 ;;
14149 esac
14150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14151 $as_echo_n "checking for $ac_header... " >&6; }
14152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14153 $as_echo_n "(cached) " >&6
14154 else
14155 eval "$as_ac_Header=\$ac_header_preproc"
14156 fi
14157 ac_res=`eval 'as_val=${'$as_ac_Header'}
14158 $as_echo "$as_val"'`
14159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14160 $as_echo "$ac_res" >&6; }
14161
14162 fi
14163 as_val=`eval 'as_val=${'$as_ac_Header'}
14164 $as_echo "$as_val"'`
14165 if test "x$as_val" = x""yes; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14168 _ACEOF
14169
14170 else
14171 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14172 $as_echo "$as_me: error: bailing out" >&2;}
14173 { (exit 1); exit 1; }; }
14174 fi
14175
14176 done
14177
14178
14179
14180
14181
14182
14183 for ac_func in dup2 getmntent memmove select socket
14184 do
14185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14186 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14187 $as_echo_n "checking for $ac_func... " >&6; }
14188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14189 $as_echo_n "(cached) " >&6
14190 else
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14199 #define $ac_func innocuous_$ac_func
14200
14201 /* System header to define __stub macros and hopefully few prototypes,
14202 which can conflict with char $ac_func (); below.
14203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14204 <limits.h> exists even on freestanding compilers. */
14205
14206 #ifdef __STDC__
14207 # include <limits.h>
14208 #else
14209 # include <assert.h>
14210 #endif
14211
14212 #undef $ac_func
14213
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14217 #ifdef __cplusplus
14218 extern "C"
14219 #endif
14220 char $ac_func ();
14221 /* The GNU C library defines this for functions which it implements
14222 to always fail with ENOSYS. Some functions are actually named
14223 something starting with __ and the normal name is an alias. */
14224 #if defined __stub_$ac_func || defined __stub___$ac_func
14225 choke me
14226 #endif
14227
14228 int
14229 main ()
14230 {
14231 return $ac_func ();
14232 ;
14233 return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (ac_try="$ac_link"
14238 case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241 esac
14242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14243 $as_echo "$ac_try_echo") >&5
14244 (eval "$ac_link") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } && {
14251 test -z "$ac_c_werror_flag" ||
14252 test ! -s conftest.err
14253 } && test -s conftest$ac_exeext && {
14254 test "$cross_compiling" = yes ||
14255 $as_test_x conftest$ac_exeext
14256 }; then
14257 eval "$as_ac_var=yes"
14258 else
14259 $as_echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 eval "$as_ac_var=no"
14263 fi
14264
14265 rm -rf conftest.dSYM
14266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14267 conftest$ac_exeext conftest.$ac_ext
14268 fi
14269 ac_res=`eval 'as_val=${'$as_ac_var'}
14270 $as_echo "$as_val"'`
14271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14272 $as_echo "$ac_res" >&6; }
14273 as_val=`eval 'as_val=${'$as_ac_var'}
14274 $as_echo "$as_val"'`
14275 if test "x$as_val" = x""yes; then
14276 cat >>confdefs.h <<_ACEOF
14277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14278 _ACEOF
14279
14280 else
14281 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14282 $as_echo "$as_me: error: bailing out" >&2;}
14283 { (exit 1); exit 1; }; }
14284 fi
14285 done
14286
14287 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14288 # -lseq on Dynix/PTX, -lgen on Unixware.
14289 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14290 $as_echo_n "checking for library containing getmntent... " >&6; }
14291 if test "${ac_cv_search_getmntent+set}" = set; then
14292 $as_echo_n "(cached) " >&6
14293 else
14294 ac_func_search_save_LIBS=$LIBS
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14305 #ifdef __cplusplus
14306 extern "C"
14307 #endif
14308 char getmntent ();
14309 int
14310 main ()
14311 {
14312 return getmntent ();
14313 ;
14314 return 0;
14315 }
14316 _ACEOF
14317 for ac_lib in '' sun seq gen; do
14318 if test -z "$ac_lib"; then
14319 ac_res="none required"
14320 else
14321 ac_res=-l$ac_lib
14322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14323 fi
14324 rm -f conftest.$ac_objext conftest$ac_exeext
14325 if { (ac_try="$ac_link"
14326 case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329 esac
14330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14331 $as_echo "$ac_try_echo") >&5
14332 (eval "$ac_link") 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest$ac_exeext && {
14342 test "$cross_compiling" = yes ||
14343 $as_test_x conftest$ac_exeext
14344 }; then
14345 ac_cv_search_getmntent=$ac_res
14346 else
14347 $as_echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14349
14350
14351 fi
14352
14353 rm -rf conftest.dSYM
14354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14355 conftest$ac_exeext
14356 if test "${ac_cv_search_getmntent+set}" = set; then
14357 break
14358 fi
14359 done
14360 if test "${ac_cv_search_getmntent+set}" = set; then
14361 :
14362 else
14363 ac_cv_search_getmntent=no
14364 fi
14365 rm conftest.$ac_ext
14366 LIBS=$ac_func_search_save_LIBS
14367 fi
14368 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14369 $as_echo "$ac_cv_search_getmntent" >&6; }
14370 ac_res=$ac_cv_search_getmntent
14371 if test "$ac_res" != no; then
14372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14373 ac_cv_func_getmntent=yes
14374
14375 cat >>confdefs.h <<\_ACEOF
14376 #define HAVE_GETMNTENT 1
14377 _ACEOF
14378
14379 else
14380 ac_cv_func_getmntent=no
14381 fi
14382
14383
14384 # AC_FUNC_REALLOC
14385
14386
14387 for ac_header in sys/select.h sys/socket.h
14388 do
14389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14392 $as_echo_n "checking for $ac_header... " >&6; }
14393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14394 $as_echo_n "(cached) " >&6
14395 fi
14396 ac_res=`eval 'as_val=${'$as_ac_Header'}
14397 $as_echo "$as_val"'`
14398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14399 $as_echo "$ac_res" >&6; }
14400 else
14401 # Is the header compilable?
14402 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14403 $as_echo_n "checking $ac_header usability... " >&6; }
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14411 #include <$ac_header>
14412 _ACEOF
14413 rm -f conftest.$ac_objext
14414 if { (ac_try="$ac_compile"
14415 case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418 esac
14419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14420 $as_echo "$ac_try_echo") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 ac_header_compiler=yes
14432 else
14433 $as_echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 ac_header_compiler=no
14437 fi
14438
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 $as_echo "$ac_header_compiler" >&6; }
14442
14443 # Is the header present?
14444 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14445 $as_echo_n "checking $ac_header presence... " >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h. */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #include <$ac_header>
14453 _ACEOF
14454 if { (ac_try="$ac_cpp conftest.$ac_ext"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460 $as_echo "$ac_try_echo") >&5
14461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } >/dev/null && {
14468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14469 test ! -s conftest.err
14470 }; then
14471 ac_header_preproc=yes
14472 else
14473 $as_echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_header_preproc=no
14477 fi
14478
14479 rm -f conftest.err conftest.$ac_ext
14480 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14481 $as_echo "$ac_header_preproc" >&6; }
14482
14483 # So? What about this header?
14484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14485 yes:no: )
14486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14487 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14490 ac_header_preproc=yes
14491 ;;
14492 no:yes:* )
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14498 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14500 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14502 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14504 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14505
14506 ;;
14507 esac
14508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 $as_echo_n "checking for $ac_header... " >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 $as_echo_n "(cached) " >&6
14512 else
14513 eval "$as_ac_Header=\$ac_header_preproc"
14514 fi
14515 ac_res=`eval 'as_val=${'$as_ac_Header'}
14516 $as_echo "$as_val"'`
14517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14518 $as_echo "$ac_res" >&6; }
14519
14520 fi
14521 as_val=`eval 'as_val=${'$as_ac_Header'}
14522 $as_echo "$as_val"'`
14523 if test "x$as_val" = x""yes; then
14524 cat >>confdefs.h <<_ACEOF
14525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14526 _ACEOF
14527
14528 fi
14529
14530 done
14531
14532 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14533 $as_echo_n "checking types of arguments for select... " >&6; }
14534 if test "${ac_cv_func_select_args+set}" = set; then
14535 $as_echo_n "(cached) " >&6
14536 else
14537 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14538 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14539 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14547 #ifdef HAVE_SYS_SELECT_H
14548 # include <sys/select.h>
14549 #endif
14550 #ifdef HAVE_SYS_SOCKET_H
14551 # include <sys/socket.h>
14552 #endif
14553
14554 int
14555 main ()
14556 {
14557 extern int select ($ac_arg1,
14558 $ac_arg234, $ac_arg234, $ac_arg234,
14559 $ac_arg5);
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext
14565 if { (ac_try="$ac_compile"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14571 $as_echo "$ac_try_echo") >&5
14572 (eval "$ac_compile") 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_c_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest.$ac_objext; then
14582 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14583 else
14584 $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587
14588 fi
14589
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 done
14592 done
14593 done
14594 # Provide a safe default value.
14595 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14596
14597 fi
14598 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14599 $as_echo "$ac_cv_func_select_args" >&6; }
14600 ac_save_IFS=$IFS; IFS=','
14601 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14602 IFS=$ac_save_IFS
14603 shift
14604
14605 cat >>confdefs.h <<_ACEOF
14606 #define SELECT_TYPE_ARG1 $1
14607 _ACEOF
14608
14609
14610 cat >>confdefs.h <<_ACEOF
14611 #define SELECT_TYPE_ARG234 ($2)
14612 _ACEOF
14613
14614
14615 cat >>confdefs.h <<_ACEOF
14616 #define SELECT_TYPE_ARG5 ($3)
14617 _ACEOF
14618
14619 rm -f conftest*
14620
14621 fi
14622
14623 if test x$CLUSTER != xnone; then
14624
14625
14626 for ac_header in sys/socket.h sys/un.h
14627 do
14628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14631 $as_echo_n "checking for $ac_header... " >&6; }
14632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14633 $as_echo_n "(cached) " >&6
14634 fi
14635 ac_res=`eval 'as_val=${'$as_ac_Header'}
14636 $as_echo "$as_val"'`
14637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14638 $as_echo "$ac_res" >&6; }
14639 else
14640 # Is the header compilable?
14641 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14642 $as_echo_n "checking $ac_header usability... " >&6; }
14643 cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h. */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 $ac_includes_default
14650 #include <$ac_header>
14651 _ACEOF
14652 rm -f conftest.$ac_objext
14653 if { (ac_try="$ac_compile"
14654 case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14657 esac
14658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14659 $as_echo "$ac_try_echo") >&5
14660 (eval "$ac_compile") 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } && {
14667 test -z "$ac_c_werror_flag" ||
14668 test ! -s conftest.err
14669 } && test -s conftest.$ac_objext; then
14670 ac_header_compiler=yes
14671 else
14672 $as_echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ac_header_compiler=no
14676 fi
14677
14678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14680 $as_echo "$ac_header_compiler" >&6; }
14681
14682 # Is the header present?
14683 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14684 $as_echo_n "checking $ac_header presence... " >&6; }
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <$ac_header>
14692 _ACEOF
14693 if { (ac_try="$ac_cpp conftest.$ac_ext"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697 esac
14698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14699 $as_echo "$ac_try_echo") >&5
14700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } >/dev/null && {
14707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 }; then
14710 ac_header_preproc=yes
14711 else
14712 $as_echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ac_header_preproc=no
14716 fi
14717
14718 rm -f conftest.err conftest.$ac_ext
14719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14720 $as_echo "$ac_header_preproc" >&6; }
14721
14722 # So? What about this header?
14723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14724 yes:no: )
14725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14726 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14729 ac_header_preproc=yes
14730 ;;
14731 no:yes:* )
14732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14733 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14735 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14737 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14739 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14743 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14744
14745 ;;
14746 esac
14747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14748 $as_echo_n "checking for $ac_header... " >&6; }
14749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14750 $as_echo_n "(cached) " >&6
14751 else
14752 eval "$as_ac_Header=\$ac_header_preproc"
14753 fi
14754 ac_res=`eval 'as_val=${'$as_ac_Header'}
14755 $as_echo "$as_val"'`
14756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14757 $as_echo "$ac_res" >&6; }
14758
14759 fi
14760 as_val=`eval 'as_val=${'$as_ac_Header'}
14761 $as_echo "$as_val"'`
14762 if test "x$as_val" = x""yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14765 _ACEOF
14766
14767 else
14768 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14769 $as_echo "$as_me: error: bailing out" >&2;}
14770 { (exit 1); exit 1; }; }
14771 fi
14772
14773 done
14774
14775
14776 for ac_func in socket
14777 do
14778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14780 $as_echo_n "checking for $ac_func... " >&6; }
14781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14782 $as_echo_n "(cached) " >&6
14783 else
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14792 #define $ac_func innocuous_$ac_func
14793
14794 /* System header to define __stub macros and hopefully few prototypes,
14795 which can conflict with char $ac_func (); below.
14796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14797 <limits.h> exists even on freestanding compilers. */
14798
14799 #ifdef __STDC__
14800 # include <limits.h>
14801 #else
14802 # include <assert.h>
14803 #endif
14804
14805 #undef $ac_func
14806
14807 /* Override any GCC internal prototype to avoid an error.
14808 Use char because int might match the return type of a GCC
14809 builtin and then its argument prototype would still apply. */
14810 #ifdef __cplusplus
14811 extern "C"
14812 #endif
14813 char $ac_func ();
14814 /* The GNU C library defines this for functions which it implements
14815 to always fail with ENOSYS. Some functions are actually named
14816 something starting with __ and the normal name is an alias. */
14817 #if defined __stub_$ac_func || defined __stub___$ac_func
14818 choke me
14819 #endif
14820
14821 int
14822 main ()
14823 {
14824 return $ac_func ();
14825 ;
14826 return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14836 $as_echo "$ac_try_echo") >&5
14837 (eval "$ac_link") 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext && {
14847 test "$cross_compiling" = yes ||
14848 $as_test_x conftest$ac_exeext
14849 }; then
14850 eval "$as_ac_var=yes"
14851 else
14852 $as_echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 eval "$as_ac_var=no"
14856 fi
14857
14858 rm -rf conftest.dSYM
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14861 fi
14862 ac_res=`eval 'as_val=${'$as_ac_var'}
14863 $as_echo "$as_val"'`
14864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14865 $as_echo "$ac_res" >&6; }
14866 as_val=`eval 'as_val=${'$as_ac_var'}
14867 $as_echo "$as_val"'`
14868 if test "x$as_val" = x""yes; then
14869 cat >>confdefs.h <<_ACEOF
14870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14871 _ACEOF
14872
14873 else
14874 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14875 $as_echo "$as_me: error: bailing out" >&2;}
14876 { (exit 1); exit 1; }; }
14877 fi
14878 done
14879
14880 fi
14881
14882 if test x$HAVE_LIBDL = xyes; then
14883
14884 for ac_header in dlfcn.h
14885 do
14886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14889 $as_echo_n "checking for $ac_header... " >&6; }
14890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14891 $as_echo_n "(cached) " >&6
14892 fi
14893 ac_res=`eval 'as_val=${'$as_ac_Header'}
14894 $as_echo "$as_val"'`
14895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14896 $as_echo "$ac_res" >&6; }
14897 else
14898 # Is the header compilable?
14899 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14900 $as_echo_n "checking $ac_header usability... " >&6; }
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 #include <$ac_header>
14909 _ACEOF
14910 rm -f conftest.$ac_objext
14911 if { (ac_try="$ac_compile"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915 esac
14916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14917 $as_echo "$ac_try_echo") >&5
14918 (eval "$ac_compile") 2>conftest.er1
14919 ac_status=$?
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
14923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } && {
14925 test -z "$ac_c_werror_flag" ||
14926 test ! -s conftest.err
14927 } && test -s conftest.$ac_objext; then
14928 ac_header_compiler=yes
14929 else
14930 $as_echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_header_compiler=no
14934 fi
14935
14936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938 $as_echo "$ac_header_compiler" >&6; }
14939
14940 # Is the header present?
14941 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942 $as_echo_n "checking $ac_header presence... " >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h. */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 #include <$ac_header>
14950 _ACEOF
14951 if { (ac_try="$ac_cpp conftest.$ac_ext"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955 esac
14956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14957 $as_echo "$ac_try_echo") >&5
14958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14959 ac_status=$?
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
14963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } >/dev/null && {
14965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14967 }; then
14968 ac_header_preproc=yes
14969 else
14970 $as_echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 ac_header_preproc=no
14974 fi
14975
14976 rm -f conftest.err conftest.$ac_ext
14977 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 $as_echo "$ac_header_preproc" >&6; }
14979
14980 # So? What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
14983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
14988 ;;
14989 no:yes:* )
14990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15002
15003 ;;
15004 esac
15005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 $as_echo_n "checking for $ac_header... " >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 $as_echo_n "(cached) " >&6
15009 else
15010 eval "$as_ac_Header=\$ac_header_preproc"
15011 fi
15012 ac_res=`eval 'as_val=${'$as_ac_Header'}
15013 $as_echo "$as_val"'`
15014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15015 $as_echo "$ac_res" >&6; }
15016
15017 fi
15018 as_val=`eval 'as_val=${'$as_ac_Header'}
15019 $as_echo "$as_val"'`
15020 if test "x$as_val" = x""yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15023 _ACEOF
15024
15025 else
15026 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15027 $as_echo "$as_me: error: bailing out" >&2;}
15028 { (exit 1); exit 1; }; }
15029 fi
15030
15031 done
15032
15033 fi
15034
15035 if test x$INTL = xyes; then
15036
15037 for ac_header in libintl.h
15038 do
15039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15042 $as_echo_n "checking for $ac_header... " >&6; }
15043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15044 $as_echo_n "(cached) " >&6
15045 fi
15046 ac_res=`eval 'as_val=${'$as_ac_Header'}
15047 $as_echo "$as_val"'`
15048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15049 $as_echo "$ac_res" >&6; }
15050 else
15051 # Is the header compilable?
15052 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15053 $as_echo_n "checking $ac_header usability... " >&6; }
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 $ac_includes_default
15061 #include <$ac_header>
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (ac_try="$ac_compile"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068 esac
15069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15070 $as_echo "$ac_try_echo") >&5
15071 (eval "$ac_compile") 2>conftest.er1
15072 ac_status=$?
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest.$ac_objext; then
15081 ac_header_compiler=yes
15082 else
15083 $as_echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086 ac_header_compiler=no
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091 $as_echo "$ac_header_compiler" >&6; }
15092
15093 # Is the header present?
15094 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15095 $as_echo_n "checking $ac_header presence... " >&6; }
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h. */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 #include <$ac_header>
15103 _ACEOF
15104 if { (ac_try="$ac_cpp conftest.$ac_ext"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108 esac
15109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15110 $as_echo "$ac_try_echo") >&5
15111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } >/dev/null && {
15118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 }; then
15121 ac_header_preproc=yes
15122 else
15123 $as_echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_header_preproc=no
15127 fi
15128
15129 rm -f conftest.err conftest.$ac_ext
15130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15131 $as_echo "$ac_header_preproc" >&6; }
15132
15133 # So? What about this header?
15134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15135 yes:no: )
15136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15137 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15140 ac_header_preproc=yes
15141 ;;
15142 no:yes:* )
15143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15144 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15146 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15148 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15150 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15154 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15155
15156 ;;
15157 esac
15158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15159 $as_echo_n "checking for $ac_header... " >&6; }
15160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15161 $as_echo_n "(cached) " >&6
15162 else
15163 eval "$as_ac_Header=\$ac_header_preproc"
15164 fi
15165 ac_res=`eval 'as_val=${'$as_ac_Header'}
15166 $as_echo "$as_val"'`
15167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15168 $as_echo "$ac_res" >&6; }
15169
15170 fi
15171 as_val=`eval 'as_val=${'$as_ac_Header'}
15172 $as_echo "$as_val"'`
15173 if test "x$as_val" = x""yes; then
15174 cat >>confdefs.h <<_ACEOF
15175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176 _ACEOF
15177
15178 else
15179 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15180 $as_echo "$as_me: error: bailing out" >&2;}
15181 { (exit 1); exit 1; }; }
15182 fi
15183
15184 done
15185
15186 fi
15187
15188 if test x$UDEV_SYNC = xyes; then
15189
15190
15191 for ac_header in sys/ipc.h sys/sem.h
15192 do
15193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 $as_echo_n "checking for $ac_header... " >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 $as_echo_n "(cached) " >&6
15199 fi
15200 ac_res=`eval 'as_val=${'$as_ac_Header'}
15201 $as_echo "$as_val"'`
15202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15203 $as_echo "$ac_res" >&6; }
15204 else
15205 # Is the header compilable?
15206 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15207 $as_echo_n "checking $ac_header usability... " >&6; }
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 $ac_includes_default
15215 #include <$ac_header>
15216 _ACEOF
15217 rm -f conftest.$ac_objext
15218 if { (ac_try="$ac_compile"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222 esac
15223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15224 $as_echo "$ac_try_echo") >&5
15225 (eval "$ac_compile") 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } && {
15232 test -z "$ac_c_werror_flag" ||
15233 test ! -s conftest.err
15234 } && test -s conftest.$ac_objext; then
15235 ac_header_compiler=yes
15236 else
15237 $as_echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_header_compiler=no
15241 fi
15242
15243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15245 $as_echo "$ac_header_compiler" >&6; }
15246
15247 # Is the header present?
15248 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15249 $as_echo_n "checking $ac_header presence... " >&6; }
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 #include <$ac_header>
15257 _ACEOF
15258 if { (ac_try="$ac_cpp conftest.$ac_ext"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15264 $as_echo "$ac_try_echo") >&5
15265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev/null && {
15272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 }; then
15275 ac_header_preproc=yes
15276 else
15277 $as_echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_header_preproc=no
15281 fi
15282
15283 rm -f conftest.err conftest.$ac_ext
15284 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15285 $as_echo "$ac_header_preproc" >&6; }
15286
15287 # So? What about this header?
15288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15289 yes:no: )
15290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15291 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15293 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15294 ac_header_preproc=yes
15295 ;;
15296 no:yes:* )
15297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15298 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15300 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15302 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15304 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15306 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15308 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15309
15310 ;;
15311 esac
15312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15313 $as_echo_n "checking for $ac_header... " >&6; }
15314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15315 $as_echo_n "(cached) " >&6
15316 else
15317 eval "$as_ac_Header=\$ac_header_preproc"
15318 fi
15319 ac_res=`eval 'as_val=${'$as_ac_Header'}
15320 $as_echo "$as_val"'`
15321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15322 $as_echo "$ac_res" >&6; }
15323
15324 fi
15325 as_val=`eval 'as_val=${'$as_ac_Header'}
15326 $as_echo "$as_val"'`
15327 if test "x$as_val" = x""yes; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15330 _ACEOF
15331
15332 else
15333 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15334 $as_echo "$as_me: error: bailing out" >&2;}
15335 { (exit 1); exit 1; }; }
15336 fi
15337
15338 done
15339
15340 fi
15341
15342 ################################################################################
15343 # Extract the first word of "modprobe", so it can be a program name with args.
15344 set dummy modprobe; ac_word=$2
15345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15346 $as_echo_n "checking for $ac_word... " >&6; }
15347 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15348 $as_echo_n "(cached) " >&6
15349 else
15350 case $MODPROBE_CMD in
15351 [\\/]* | ?:[\\/]*)
15352 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15353 ;;
15354 *)
15355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15356 for as_dir in $PATH
15357 do
15358 IFS=$as_save_IFS
15359 test -z "$as_dir" && as_dir=.
15360 for ac_exec_ext in '' $ac_executable_extensions; do
15361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15362 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15364 break 2
15365 fi
15366 done
15367 done
15368 IFS=$as_save_IFS
15369
15370 ;;
15371 esac
15372 fi
15373 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15374 if test -n "$MODPROBE_CMD"; then
15375 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15376 $as_echo "$MODPROBE_CMD" >&6; }
15377 else
15378 { $as_echo "$as_me:$LINENO: result: no" >&5
15379 $as_echo "no" >&6; }
15380 fi
15381
15382
15383
15384 if test x$MODPROBE_CMD != x; then
15385
15386 cat >>confdefs.h <<_ACEOF
15387 #define MODPROBE_CMD "$MODPROBE_CMD"
15388 _ACEOF
15389
15390 fi
15391
15392 ################################################################################
15393
15394
15395 if test "$BUILD_DMEVENTD" = yes; then
15396
15397 # Check whether --with-dmeventd-pidfile was given.
15398 if test "${with_dmeventd_pidfile+set}" = set; then
15399 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15400 #define DMEVENTD_PIDFILE "$withval"
15401 _ACEOF
15402
15403 else
15404 cat >>confdefs.h <<_ACEOF
15405 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15406 _ACEOF
15407
15408 fi
15409
15410 fi
15411
15412
15413
15414 if test "$BUILD_DMEVENTD" = yes; then
15415 dmeventd_prefix="$exec_prefix"
15416 if test "x$dmeventd_prefix" = "xNONE"; then
15417 dmeventd_prefix="$prefix"
15418 fi
15419 if test "x$dmeventd_prefix" = "xNONE"; then
15420 dmeventd_prefix=""
15421 fi
15422
15423 # Check whether --with-dmeventd-path was given.
15424 if test "${with_dmeventd_path+set}" = set; then
15425 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15426 #define DMEVENTD_PATH "$withval"
15427 _ACEOF
15428
15429 else
15430 cat >>confdefs.h <<_ACEOF
15431 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15432 _ACEOF
15433
15434 fi
15435
15436 fi
15437
15438 ################################################################################
15439 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15440 $as_echo_n "checking for kernel interface choice... " >&6; }
15441
15442 # Check whether --with-interface was given.
15443 if test "${with_interface+set}" = set; then
15444 withval=$with_interface; interface="$withval"
15445 else
15446 interface=ioctl
15447 fi
15448
15449 if [ "x$interface" != xioctl ];
15450 then
15451 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15452 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15453 { (exit 1); exit 1; }; }
15454 fi
15455 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15456 $as_echo "$interface" >&6; }
15457
15458 ################################################################################
15459 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15460
15461 cat >>confdefs.h <<_ACEOF
15462 #define DM_LIB_VERSION $DM_LIB_VERSION
15463 _ACEOF
15464
15465
15466 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15467
15468 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15469
15470 VER=`cat "$srcdir"/VERSION`
15471 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15472 VER=`echo "$VER" | $AWK '{print $1}'`
15473 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15474 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15475 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15476 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15477 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15478 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15479
15480 ################################################################################
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568 ################################################################################
15569 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15570
15571 cat >confcache <<\_ACEOF
15572 # This file is a shell script that caches the results of configure
15573 # tests run on this system so they can be shared between configure
15574 # scripts and configure runs, see configure's option --config-cache.
15575 # It is not useful on other systems. If it contains results you don't
15576 # want to keep, you may remove or edit it.
15577 #
15578 # config.status only pays attention to the cache file if you give it
15579 # the --recheck option to rerun configure.
15580 #
15581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15583 # following values.
15584
15585 _ACEOF
15586
15587 # The following way of writing the cache mishandles newlines in values,
15588 # but we know of no workaround that is simple, portable, and efficient.
15589 # So, we kill variables containing newlines.
15590 # Ultrix sh set writes to stderr and can't be redirected directly,
15591 # and sets the high bit in the cache file unless we assign to the vars.
15592 (
15593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15594 eval ac_val=\$$ac_var
15595 case $ac_val in #(
15596 *${as_nl}*)
15597 case $ac_var in #(
15598 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15600 esac
15601 case $ac_var in #(
15602 _ | IFS | as_nl) ;; #(
15603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15604 *) $as_unset $ac_var ;;
15605 esac ;;
15606 esac
15607 done
15608
15609 (set) 2>&1 |
15610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15611 *${as_nl}ac_space=\ *)
15612 # `set' does not quote correctly, so add quotes (double-quote
15613 # substitution turns \\\\ into \\, and sed turns \\ into \).
15614 sed -n \
15615 "s/'/'\\\\''/g;
15616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15617 ;; #(
15618 *)
15619 # `set' quotes correctly as required by POSIX, so do not add quotes.
15620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15621 ;;
15622 esac |
15623 sort
15624 ) |
15625 sed '
15626 /^ac_cv_env_/b end
15627 t clear
15628 :clear
15629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15630 t end
15631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15632 :end' >>confcache
15633 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15634 if test -w "$cache_file"; then
15635 test "x$cache_file" != "x/dev/null" &&
15636 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15637 $as_echo "$as_me: updating cache $cache_file" >&6;}
15638 cat confcache >$cache_file
15639 else
15640 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15641 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15642 fi
15643 fi
15644 rm -f confcache
15645
15646 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15647 # Let make expand exec_prefix.
15648 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15649
15650 DEFS=-DHAVE_CONFIG_H
15651
15652 ac_libobjs=
15653 ac_ltlibobjs=
15654 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15655 # 1. Remove the extension, and $U if already installed.
15656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15657 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15659 # will be set to the directory where LIBOBJS objects are built.
15660 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15661 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15662 done
15663 LIBOBJS=$ac_libobjs
15664
15665 LTLIBOBJS=$ac_ltlibobjs
15666
15667
15668
15669 : ${CONFIG_STATUS=./config.status}
15670 ac_write_fail=0
15671 ac_clean_files_save=$ac_clean_files
15672 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15673 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15674 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15675 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 #! $SHELL
15677 # Generated by $as_me.
15678 # Run this file to recreate the current configuration.
15679 # Compiler output produced by configure, useful for debugging
15680 # configure, is in config.log if it exists.
15681
15682 debug=false
15683 ac_cs_recheck=false
15684 ac_cs_silent=false
15685 SHELL=\${CONFIG_SHELL-$SHELL}
15686 _ACEOF
15687
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 ## --------------------- ##
15690 ## M4sh Initialization. ##
15691 ## --------------------- ##
15692
15693 # Be more Bourne compatible
15694 DUALCASE=1; export DUALCASE # for MKS sh
15695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15696 emulate sh
15697 NULLCMD=:
15698 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15699 # is contrary to our usage. Disable this feature.
15700 alias -g '${1+"$@"}'='"$@"'
15701 setopt NO_GLOB_SUBST
15702 else
15703 case `(set -o) 2>/dev/null` in
15704 *posix*) set -o posix ;;
15705 esac
15706
15707 fi
15708
15709
15710
15711
15712 # PATH needs CR
15713 # Avoid depending upon Character Ranges.
15714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15717 as_cr_digits='0123456789'
15718 as_cr_alnum=$as_cr_Letters$as_cr_digits
15719
15720 as_nl='
15721 '
15722 export as_nl
15723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15727 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15728 as_echo='printf %s\n'
15729 as_echo_n='printf %s'
15730 else
15731 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15732 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15733 as_echo_n='/usr/ucb/echo -n'
15734 else
15735 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15736 as_echo_n_body='eval
15737 arg=$1;
15738 case $arg in
15739 *"$as_nl"*)
15740 expr "X$arg" : "X\\(.*\\)$as_nl";
15741 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15742 esac;
15743 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15744 '
15745 export as_echo_n_body
15746 as_echo_n='sh -c $as_echo_n_body as_echo'
15747 fi
15748 export as_echo_body
15749 as_echo='sh -c $as_echo_body as_echo'
15750 fi
15751
15752 # The user is always right.
15753 if test "${PATH_SEPARATOR+set}" != set; then
15754 PATH_SEPARATOR=:
15755 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15756 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15757 PATH_SEPARATOR=';'
15758 }
15759 fi
15760
15761 # Support unset when possible.
15762 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15763 as_unset=unset
15764 else
15765 as_unset=false
15766 fi
15767
15768
15769 # IFS
15770 # We need space, tab and new line, in precisely that order. Quoting is
15771 # there to prevent editors from complaining about space-tab.
15772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15773 # splitting by setting IFS to empty value.)
15774 IFS=" "" $as_nl"
15775
15776 # Find who we are. Look in the path if we contain no directory separator.
15777 case $0 in
15778 *[\\/]* ) as_myself=$0 ;;
15779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780 for as_dir in $PATH
15781 do
15782 IFS=$as_save_IFS
15783 test -z "$as_dir" && as_dir=.
15784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15785 done
15786 IFS=$as_save_IFS
15787
15788 ;;
15789 esac
15790 # We did not find ourselves, most probably we were run as `sh COMMAND'
15791 # in which case we are not to be found in the path.
15792 if test "x$as_myself" = x; then
15793 as_myself=$0
15794 fi
15795 if test ! -f "$as_myself"; then
15796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15797 { (exit 1); exit 1; }
15798 fi
15799
15800 # Work around bugs in pre-3.0 UWIN ksh.
15801 for as_var in ENV MAIL MAILPATH
15802 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15803 done
15804 PS1='$ '
15805 PS2='> '
15806 PS4='+ '
15807
15808 # NLS nuisances.
15809 LC_ALL=C
15810 export LC_ALL
15811 LANGUAGE=C
15812 export LANGUAGE
15813
15814 # Required to use basename.
15815 if expr a : '\(a\)' >/dev/null 2>&1 &&
15816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15817 as_expr=expr
15818 else
15819 as_expr=false
15820 fi
15821
15822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15823 as_basename=basename
15824 else
15825 as_basename=false
15826 fi
15827
15828
15829 # Name of the executable.
15830 as_me=`$as_basename -- "$0" ||
15831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15832 X"$0" : 'X\(//\)$' \| \
15833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15834 $as_echo X/"$0" |
15835 sed '/^.*\/\([^/][^/]*\)\/*$/{
15836 s//\1/
15837 q
15838 }
15839 /^X\/\(\/\/\)$/{
15840 s//\1/
15841 q
15842 }
15843 /^X\/\(\/\).*/{
15844 s//\1/
15845 q
15846 }
15847 s/.*/./; q'`
15848
15849 # CDPATH.
15850 $as_unset CDPATH
15851
15852
15853
15854 as_lineno_1=$LINENO
15855 as_lineno_2=$LINENO
15856 test "x$as_lineno_1" != "x$as_lineno_2" &&
15857 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15858
15859 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15860 # uniformly replaced by the line number. The first 'sed' inserts a
15861 # line-number line after each line using $LINENO; the second 'sed'
15862 # does the real work. The second script uses 'N' to pair each
15863 # line-number line with the line containing $LINENO, and appends
15864 # trailing '-' during substitution so that $LINENO is not a special
15865 # case at line end.
15866 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15867 # scripts with optimization help from Paolo Bonzini. Blame Lee
15868 # E. McMahon (1931-1989) for sed's syntax. :-)
15869 sed -n '
15870 p
15871 /[$]LINENO/=
15872 ' <$as_myself |
15873 sed '
15874 s/[$]LINENO.*/&-/
15875 t lineno
15876 b
15877 :lineno
15878 N
15879 :loop
15880 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15881 t loop
15882 s/-\n.*//
15883 ' >$as_me.lineno &&
15884 chmod +x "$as_me.lineno" ||
15885 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15886 { (exit 1); exit 1; }; }
15887
15888 # Don't try to exec as it changes $[0], causing all sort of problems
15889 # (the dirname of $[0] is not the place where we might find the
15890 # original and so on. Autoconf is especially sensitive to this).
15891 . "./$as_me.lineno"
15892 # Exit status is that of the last command.
15893 exit
15894 }
15895
15896
15897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15898 as_dirname=dirname
15899 else
15900 as_dirname=false
15901 fi
15902
15903 ECHO_C= ECHO_N= ECHO_T=
15904 case `echo -n x` in
15905 -n*)
15906 case `echo 'x\c'` in
15907 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15908 *) ECHO_C='\c';;
15909 esac;;
15910 *)
15911 ECHO_N='-n';;
15912 esac
15913 if expr a : '\(a\)' >/dev/null 2>&1 &&
15914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15915 as_expr=expr
15916 else
15917 as_expr=false
15918 fi
15919
15920 rm -f conf$$ conf$$.exe conf$$.file
15921 if test -d conf$$.dir; then
15922 rm -f conf$$.dir/conf$$.file
15923 else
15924 rm -f conf$$.dir
15925 mkdir conf$$.dir 2>/dev/null
15926 fi
15927 if (echo >conf$$.file) 2>/dev/null; then
15928 if ln -s conf$$.file conf$$ 2>/dev/null; then
15929 as_ln_s='ln -s'
15930 # ... but there are two gotchas:
15931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15933 # In both cases, we have to default to `cp -p'.
15934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15935 as_ln_s='cp -p'
15936 elif ln conf$$.file conf$$ 2>/dev/null; then
15937 as_ln_s=ln
15938 else
15939 as_ln_s='cp -p'
15940 fi
15941 else
15942 as_ln_s='cp -p'
15943 fi
15944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15945 rmdir conf$$.dir 2>/dev/null
15946
15947 if mkdir -p . 2>/dev/null; then
15948 as_mkdir_p=:
15949 else
15950 test -d ./-p && rmdir ./-p
15951 as_mkdir_p=false
15952 fi
15953
15954 if test -x / >/dev/null 2>&1; then
15955 as_test_x='test -x'
15956 else
15957 if ls -dL / >/dev/null 2>&1; then
15958 as_ls_L_option=L
15959 else
15960 as_ls_L_option=
15961 fi
15962 as_test_x='
15963 eval sh -c '\''
15964 if test -d "$1"; then
15965 test -d "$1/.";
15966 else
15967 case $1 in
15968 -*)set "./$1";;
15969 esac;
15970 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15971 ???[sx]*):;;*)false;;esac;fi
15972 '\'' sh
15973 '
15974 fi
15975 as_executable_p=$as_test_x
15976
15977 # Sed expression to map a string onto a valid CPP name.
15978 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15979
15980 # Sed expression to map a string onto a valid variable name.
15981 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15982
15983
15984 exec 6>&1
15985
15986 # Save the log message, to keep $[0] and so on meaningful, and to
15987 # report actual input values of CONFIG_FILES etc. instead of their
15988 # values after options handling.
15989 ac_log="
15990 This file was extended by $as_me, which was
15991 generated by GNU Autoconf 2.63. Invocation command line was
15992
15993 CONFIG_FILES = $CONFIG_FILES
15994 CONFIG_HEADERS = $CONFIG_HEADERS
15995 CONFIG_LINKS = $CONFIG_LINKS
15996 CONFIG_COMMANDS = $CONFIG_COMMANDS
15997 $ $0 $@
15998
15999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16000 "
16001
16002 _ACEOF
16003
16004 case $ac_config_files in *"
16005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16006 esac
16007
16008 case $ac_config_headers in *"
16009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16010 esac
16011
16012
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 # Files that config.status was made for.
16015 config_files="$ac_config_files"
16016 config_headers="$ac_config_headers"
16017
16018 _ACEOF
16019
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021 ac_cs_usage="\
16022 \`$as_me' instantiates files from templates according to the
16023 current configuration.
16024
16025 Usage: $0 [OPTION]... [FILE]...
16026
16027 -h, --help print this help, then exit
16028 -V, --version print version number and configuration settings, then exit
16029 -q, --quiet, --silent
16030 do not print progress messages
16031 -d, --debug don't remove temporary files
16032 --recheck update $as_me by reconfiguring in the same conditions
16033 --file=FILE[:TEMPLATE]
16034 instantiate the configuration file FILE
16035 --header=FILE[:TEMPLATE]
16036 instantiate the configuration header FILE
16037
16038 Configuration files:
16039 $config_files
16040
16041 Configuration headers:
16042 $config_headers
16043
16044 Report bugs to <bug-autoconf@gnu.org>."
16045
16046 _ACEOF
16047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048 ac_cs_version="\\
16049 config.status
16050 configured by $0, generated by GNU Autoconf 2.63,
16051 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16052
16053 Copyright (C) 2008 Free Software Foundation, Inc.
16054 This config.status script is free software; the Free Software Foundation
16055 gives unlimited permission to copy, distribute and modify it."
16056
16057 ac_pwd='$ac_pwd'
16058 srcdir='$srcdir'
16059 INSTALL='$INSTALL'
16060 MKDIR_P='$MKDIR_P'
16061 AWK='$AWK'
16062 test -n "\$AWK" || AWK=awk
16063 _ACEOF
16064
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 # The default lists apply if the user does not specify any file.
16067 ac_need_defaults=:
16068 while test $# != 0
16069 do
16070 case $1 in
16071 --*=*)
16072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16074 ac_shift=:
16075 ;;
16076 *)
16077 ac_option=$1
16078 ac_optarg=$2
16079 ac_shift=shift
16080 ;;
16081 esac
16082
16083 case $ac_option in
16084 # Handling of the options.
16085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16086 ac_cs_recheck=: ;;
16087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16088 $as_echo "$ac_cs_version"; exit ;;
16089 --debug | --debu | --deb | --de | --d | -d )
16090 debug=: ;;
16091 --file | --fil | --fi | --f )
16092 $ac_shift
16093 case $ac_optarg in
16094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16095 esac
16096 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16097 ac_need_defaults=false;;
16098 --header | --heade | --head | --hea )
16099 $ac_shift
16100 case $ac_optarg in
16101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16102 esac
16103 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16104 ac_need_defaults=false;;
16105 --he | --h)
16106 # Conflict between --help and --header
16107 { $as_echo "$as_me: error: ambiguous option: $1
16108 Try \`$0 --help' for more information." >&2
16109 { (exit 1); exit 1; }; };;
16110 --help | --hel | -h )
16111 $as_echo "$ac_cs_usage"; exit ;;
16112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16114 ac_cs_silent=: ;;
16115
16116 # This is an error.
16117 -*) { $as_echo "$as_me: error: unrecognized option: $1
16118 Try \`$0 --help' for more information." >&2
16119 { (exit 1); exit 1; }; } ;;
16120
16121 *) ac_config_targets="$ac_config_targets $1"
16122 ac_need_defaults=false ;;
16123
16124 esac
16125 shift
16126 done
16127
16128 ac_configure_extra_args=
16129
16130 if $ac_cs_silent; then
16131 exec 6>/dev/null
16132 ac_configure_extra_args="$ac_configure_extra_args --silent"
16133 fi
16134
16135 _ACEOF
16136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137 if \$ac_cs_recheck; then
16138 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16139 shift
16140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16141 CONFIG_SHELL='$SHELL'
16142 export CONFIG_SHELL
16143 exec "\$@"
16144 fi
16145
16146 _ACEOF
16147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16148 exec 5>>config.log
16149 {
16150 echo
16151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16152 ## Running $as_me. ##
16153 _ASBOX
16154 $as_echo "$ac_log"
16155 } >&5
16156
16157 _ACEOF
16158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16159 _ACEOF
16160
16161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16162
16163 # Handling of arguments.
16164 for ac_config_target in $ac_config_targets
16165 do
16166 case $ac_config_target in
16167 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16168 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16169 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16170 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16171 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16172 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16173 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16174 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16175 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16176 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
16177 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16178 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16179 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16180 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16181 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16182 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16183 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16184 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16185 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16186 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16187 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16188 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16189 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16190 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16191 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16192 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16193 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16194 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16195 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16196 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
16197 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16198 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16199 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16200 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16201 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16202 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16203
16204 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16205 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16206 { (exit 1); exit 1; }; };;
16207 esac
16208 done
16209
16210
16211 # If the user did not use the arguments to specify the items to instantiate,
16212 # then the envvar interface is used. Set only those that are not.
16213 # We use the long form for the default assignment because of an extremely
16214 # bizarre bug on SunOS 4.1.3.
16215 if $ac_need_defaults; then
16216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16218 fi
16219
16220 # Have a temporary directory for convenience. Make it in the build tree
16221 # simply because there is no reason against having it here, and in addition,
16222 # creating and moving files from /tmp can sometimes cause problems.
16223 # Hook for its removal unless debugging.
16224 # Note that there is a small window in which the directory will not be cleaned:
16225 # after its creation but before its name has been assigned to `$tmp'.
16226 $debug ||
16227 {
16228 tmp=
16229 trap 'exit_status=$?
16230 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16231 ' 0
16232 trap '{ (exit 1); exit 1; }' 1 2 13 15
16233 }
16234 # Create a (secure) tmp directory for tmp files.
16235
16236 {
16237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16238 test -n "$tmp" && test -d "$tmp"
16239 } ||
16240 {
16241 tmp=./conf$$-$RANDOM
16242 (umask 077 && mkdir "$tmp")
16243 } ||
16244 {
16245 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16246 { (exit 1); exit 1; }
16247 }
16248
16249 # Set up the scripts for CONFIG_FILES section.
16250 # No need to generate them if there are no CONFIG_FILES.
16251 # This happens for instance with `./config.status config.h'.
16252 if test -n "$CONFIG_FILES"; then
16253
16254
16255 ac_cr=' '
16256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16258 ac_cs_awk_cr='\\r'
16259 else
16260 ac_cs_awk_cr=$ac_cr
16261 fi
16262
16263 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16264 _ACEOF
16265
16266
16267 {
16268 echo "cat >conf$$subs.awk <<_ACEOF" &&
16269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16270 echo "_ACEOF"
16271 } >conf$$subs.sh ||
16272 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16273 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16274 { (exit 1); exit 1; }; }
16275 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16276 ac_delim='%!_!# '
16277 for ac_last_try in false false false false false :; do
16278 . ./conf$$subs.sh ||
16279 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16280 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16281 { (exit 1); exit 1; }; }
16282
16283 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16284 if test $ac_delim_n = $ac_delim_num; then
16285 break
16286 elif $ac_last_try; then
16287 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16288 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16289 { (exit 1); exit 1; }; }
16290 else
16291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16292 fi
16293 done
16294 rm -f conf$$subs.sh
16295
16296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16298 _ACEOF
16299 sed -n '
16300 h
16301 s/^/S["/; s/!.*/"]=/
16302 p
16303 g
16304 s/^[^!]*!//
16305 :repl
16306 t repl
16307 s/'"$ac_delim"'$//
16308 t delim
16309 :nl
16310 h
16311 s/\(.\{148\}\).*/\1/
16312 t more1
16313 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16314 p
16315 n
16316 b repl
16317 :more1
16318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16319 p
16320 g
16321 s/.\{148\}//
16322 t nl
16323 :delim
16324 h
16325 s/\(.\{148\}\).*/\1/
16326 t more2
16327 s/["\\]/\\&/g; s/^/"/; s/$/"/
16328 p
16329 b
16330 :more2
16331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16332 p
16333 g
16334 s/.\{148\}//
16335 t delim
16336 ' <conf$$subs.awk | sed '
16337 /^[^""]/{
16338 N
16339 s/\n//
16340 }
16341 ' >>$CONFIG_STATUS || ac_write_fail=1
16342 rm -f conf$$subs.awk
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 _ACAWK
16345 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16346 for (key in S) S_is_set[key] = 1
16347 FS = "\a"
16348
16349 }
16350 {
16351 line = $ 0
16352 nfields = split(line, field, "@")
16353 substed = 0
16354 len = length(field[1])
16355 for (i = 2; i < nfields; i++) {
16356 key = field[i]
16357 keylen = length(key)
16358 if (S_is_set[key]) {
16359 value = S[key]
16360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16361 len += length(value) + length(field[++i])
16362 substed = 1
16363 } else
16364 len += 1 + keylen
16365 }
16366
16367 print line
16368 }
16369
16370 _ACAWK
16371 _ACEOF
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16373 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16375 else
16376 cat
16377 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16378 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16379 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16380 { (exit 1); exit 1; }; }
16381 _ACEOF
16382
16383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16385 # trailing colons and then remove the whole line if VPATH becomes empty
16386 # (actually we leave an empty line to preserve line numbers).
16387 if test "x$srcdir" = x.; then
16388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16389 s/:*\$(srcdir):*/:/
16390 s/:*\${srcdir}:*/:/
16391 s/:*@srcdir@:*/:/
16392 s/^\([^=]*=[ ]*\):*/\1/
16393 s/:*$//
16394 s/^[^=]*=[ ]*$//
16395 }'
16396 fi
16397
16398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16399 fi # test -n "$CONFIG_FILES"
16400
16401 # Set up the scripts for CONFIG_HEADERS section.
16402 # No need to generate them if there are no CONFIG_HEADERS.
16403 # This happens for instance with `./config.status Makefile'.
16404 if test -n "$CONFIG_HEADERS"; then
16405 cat >"$tmp/defines.awk" <<\_ACAWK ||
16406 BEGIN {
16407 _ACEOF
16408
16409 # Transform confdefs.h into an awk script `defines.awk', embedded as
16410 # here-document in config.status, that substitutes the proper values into
16411 # config.h.in to produce config.h.
16412
16413 # Create a delimiter string that does not exist in confdefs.h, to ease
16414 # handling of long lines.
16415 ac_delim='%!_!# '
16416 for ac_last_try in false false :; do
16417 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16418 if test -z "$ac_t"; then
16419 break
16420 elif $ac_last_try; then
16421 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16422 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16423 { (exit 1); exit 1; }; }
16424 else
16425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16426 fi
16427 done
16428
16429 # For the awk script, D is an array of macro values keyed by name,
16430 # likewise P contains macro parameters if any. Preserve backslash
16431 # newline sequences.
16432
16433 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16434 sed -n '
16435 s/.\{148\}/&'"$ac_delim"'/g
16436 t rset
16437 :rset
16438 s/^[ ]*#[ ]*define[ ][ ]*/ /
16439 t def
16440 d
16441 :def
16442 s/\\$//
16443 t bsnl
16444 s/["\\]/\\&/g
16445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16446 D["\1"]=" \3"/p
16447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16448 d
16449 :bsnl
16450 s/["\\]/\\&/g
16451 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16452 D["\1"]=" \3\\\\\\n"\\/p
16453 t cont
16454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16455 t cont
16456 d
16457 :cont
16458 n
16459 s/.\{148\}/&'"$ac_delim"'/g
16460 t clear
16461 :clear
16462 s/\\$//
16463 t bsnlc
16464 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16465 d
16466 :bsnlc
16467 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16468 b cont
16469 ' <confdefs.h | sed '
16470 s/'"$ac_delim"'/"\\\
16471 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16472
16473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16474 for (key in D) D_is_set[key] = 1
16475 FS = "\a"
16476 }
16477 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16478 line = \$ 0
16479 split(line, arg, " ")
16480 if (arg[1] == "#") {
16481 defundef = arg[2]
16482 mac1 = arg[3]
16483 } else {
16484 defundef = substr(arg[1], 2)
16485 mac1 = arg[2]
16486 }
16487 split(mac1, mac2, "(") #)
16488 macro = mac2[1]
16489 prefix = substr(line, 1, index(line, defundef) - 1)
16490 if (D_is_set[macro]) {
16491 # Preserve the white space surrounding the "#".
16492 print prefix "define", macro P[macro] D[macro]
16493 next
16494 } else {
16495 # Replace #undef with comments. This is necessary, for example,
16496 # in the case of _POSIX_SOURCE, which is predefined and required
16497 # on some systems where configure will not decide to define it.
16498 if (defundef == "undef") {
16499 print "/*", prefix defundef, macro, "*/"
16500 next
16501 }
16502 }
16503 }
16504 { print }
16505 _ACAWK
16506 _ACEOF
16507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16509 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16510 { (exit 1); exit 1; }; }
16511 fi # test -n "$CONFIG_HEADERS"
16512
16513
16514 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16515 shift
16516 for ac_tag
16517 do
16518 case $ac_tag in
16519 :[FHLC]) ac_mode=$ac_tag; continue;;
16520 esac
16521 case $ac_mode$ac_tag in
16522 :[FHL]*:*);;
16523 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16524 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16525 { (exit 1); exit 1; }; };;
16526 :[FH]-) ac_tag=-:-;;
16527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16528 esac
16529 ac_save_IFS=$IFS
16530 IFS=:
16531 set x $ac_tag
16532 IFS=$ac_save_IFS
16533 shift
16534 ac_file=$1
16535 shift
16536
16537 case $ac_mode in
16538 :L) ac_source=$1;;
16539 :[FH])
16540 ac_file_inputs=
16541 for ac_f
16542 do
16543 case $ac_f in
16544 -) ac_f="$tmp/stdin";;
16545 *) # Look for the file first in the build tree, then in the source tree
16546 # (if the path is not absolute). The absolute path cannot be DOS-style,
16547 # because $ac_f cannot contain `:'.
16548 test -f "$ac_f" ||
16549 case $ac_f in
16550 [\\/$]*) false;;
16551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16552 esac ||
16553 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16554 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16555 { (exit 1); exit 1; }; };;
16556 esac
16557 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16558 ac_file_inputs="$ac_file_inputs '$ac_f'"
16559 done
16560
16561 # Let's still pretend it is `configure' which instantiates (i.e., don't
16562 # use $as_me), people would be surprised to read:
16563 # /* config.h. Generated by config.status. */
16564 configure_input='Generated from '`
16565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16566 `' by configure.'
16567 if test x"$ac_file" != x-; then
16568 configure_input="$ac_file. $configure_input"
16569 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16570 $as_echo "$as_me: creating $ac_file" >&6;}
16571 fi
16572 # Neutralize special characters interpreted by sed in replacement strings.
16573 case $configure_input in #(
16574 *\&* | *\|* | *\\* )
16575 ac_sed_conf_input=`$as_echo "$configure_input" |
16576 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16577 *) ac_sed_conf_input=$configure_input;;
16578 esac
16579
16580 case $ac_tag in
16581 *:-:* | *:-) cat >"$tmp/stdin" \
16582 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16583 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16584 { (exit 1); exit 1; }; } ;;
16585 esac
16586 ;;
16587 esac
16588
16589 ac_dir=`$as_dirname -- "$ac_file" ||
16590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16591 X"$ac_file" : 'X\(//\)[^/]' \| \
16592 X"$ac_file" : 'X\(//\)$' \| \
16593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16594 $as_echo X"$ac_file" |
16595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16596 s//\1/
16597 q
16598 }
16599 /^X\(\/\/\)[^/].*/{
16600 s//\1/
16601 q
16602 }
16603 /^X\(\/\/\)$/{
16604 s//\1/
16605 q
16606 }
16607 /^X\(\/\).*/{
16608 s//\1/
16609 q
16610 }
16611 s/.*/./; q'`
16612 { as_dir="$ac_dir"
16613 case $as_dir in #(
16614 -*) as_dir=./$as_dir;;
16615 esac
16616 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16617 as_dirs=
16618 while :; do
16619 case $as_dir in #(
16620 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16621 *) as_qdir=$as_dir;;
16622 esac
16623 as_dirs="'$as_qdir' $as_dirs"
16624 as_dir=`$as_dirname -- "$as_dir" ||
16625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16626 X"$as_dir" : 'X\(//\)[^/]' \| \
16627 X"$as_dir" : 'X\(//\)$' \| \
16628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16629 $as_echo X"$as_dir" |
16630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16631 s//\1/
16632 q
16633 }
16634 /^X\(\/\/\)[^/].*/{
16635 s//\1/
16636 q
16637 }
16638 /^X\(\/\/\)$/{
16639 s//\1/
16640 q
16641 }
16642 /^X\(\/\).*/{
16643 s//\1/
16644 q
16645 }
16646 s/.*/./; q'`
16647 test -d "$as_dir" && break
16648 done
16649 test -z "$as_dirs" || eval "mkdir $as_dirs"
16650 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16651 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16652 { (exit 1); exit 1; }; }; }
16653 ac_builddir=.
16654
16655 case "$ac_dir" in
16656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16657 *)
16658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16659 # A ".." for each directory in $ac_dir_suffix.
16660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16661 case $ac_top_builddir_sub in
16662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16664 esac ;;
16665 esac
16666 ac_abs_top_builddir=$ac_pwd
16667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16668 # for backward compatibility:
16669 ac_top_builddir=$ac_top_build_prefix
16670
16671 case $srcdir in
16672 .) # We are building in place.
16673 ac_srcdir=.
16674 ac_top_srcdir=$ac_top_builddir_sub
16675 ac_abs_top_srcdir=$ac_pwd ;;
16676 [\\/]* | ?:[\\/]* ) # Absolute name.
16677 ac_srcdir=$srcdir$ac_dir_suffix;
16678 ac_top_srcdir=$srcdir
16679 ac_abs_top_srcdir=$srcdir ;;
16680 *) # Relative name.
16681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16682 ac_top_srcdir=$ac_top_build_prefix$srcdir
16683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16684 esac
16685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16686
16687
16688 case $ac_mode in
16689 :F)
16690 #
16691 # CONFIG_FILE
16692 #
16693
16694 case $INSTALL in
16695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16697 esac
16698 ac_MKDIR_P=$MKDIR_P
16699 case $MKDIR_P in
16700 [\\/$]* | ?:[\\/]* ) ;;
16701 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16702 esac
16703 _ACEOF
16704
16705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16706 # If the template does not know about datarootdir, expand it.
16707 # FIXME: This hack should be removed a few years after 2.60.
16708 ac_datarootdir_hack=; ac_datarootdir_seen=
16709
16710 ac_sed_dataroot='
16711 /datarootdir/ {
16712 p
16713 q
16714 }
16715 /@datadir@/p
16716 /@docdir@/p
16717 /@infodir@/p
16718 /@localedir@/p
16719 /@mandir@/p
16720 '
16721 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16722 *datarootdir*) ac_datarootdir_seen=yes;;
16723 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16724 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16725 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16726 _ACEOF
16727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16728 ac_datarootdir_hack='
16729 s&@datadir@&$datadir&g
16730 s&@docdir@&$docdir&g
16731 s&@infodir@&$infodir&g
16732 s&@localedir@&$localedir&g
16733 s&@mandir@&$mandir&g
16734 s&\\\${datarootdir}&$datarootdir&g' ;;
16735 esac
16736 _ACEOF
16737
16738 # Neutralize VPATH when `$srcdir' = `.'.
16739 # Shell code in configure.ac might set extrasub.
16740 # FIXME: do we really want to maintain this feature?
16741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16742 ac_sed_extra="$ac_vpsub
16743 $extrasub
16744 _ACEOF
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 :t
16747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16748 s|@configure_input@|$ac_sed_conf_input|;t t
16749 s&@top_builddir@&$ac_top_builddir_sub&;t t
16750 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16751 s&@srcdir@&$ac_srcdir&;t t
16752 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16753 s&@top_srcdir@&$ac_top_srcdir&;t t
16754 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16755 s&@builddir@&$ac_builddir&;t t
16756 s&@abs_builddir@&$ac_abs_builddir&;t t
16757 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16758 s&@INSTALL@&$ac_INSTALL&;t t
16759 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16760 $ac_datarootdir_hack
16761 "
16762 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16763 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16764 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16765 { (exit 1); exit 1; }; }
16766
16767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16768 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16770 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16771 which seems to be undefined. Please make sure it is defined." >&5
16772 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16773 which seems to be undefined. Please make sure it is defined." >&2;}
16774
16775 rm -f "$tmp/stdin"
16776 case $ac_file in
16777 -) cat "$tmp/out" && rm -f "$tmp/out";;
16778 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16779 esac \
16780 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16781 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16782 { (exit 1); exit 1; }; }
16783 ;;
16784 :H)
16785 #
16786 # CONFIG_HEADER
16787 #
16788 if test x"$ac_file" != x-; then
16789 {
16790 $as_echo "/* $configure_input */" \
16791 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16792 } >"$tmp/config.h" \
16793 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16794 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16795 { (exit 1); exit 1; }; }
16796 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16797 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16798 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16799 else
16800 rm -f "$ac_file"
16801 mv "$tmp/config.h" "$ac_file" \
16802 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16803 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16804 { (exit 1); exit 1; }; }
16805 fi
16806 else
16807 $as_echo "/* $configure_input */" \
16808 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16809 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16810 $as_echo "$as_me: error: could not create -" >&2;}
16811 { (exit 1); exit 1; }; }
16812 fi
16813 ;;
16814
16815
16816 esac
16817
16818 done # for ac_tag
16819
16820
16821 { (exit 0); exit 0; }
16822 _ACEOF
16823 chmod +x $CONFIG_STATUS
16824 ac_clean_files=$ac_clean_files_save
16825
16826 test $ac_write_fail = 0 ||
16827 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16828 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16829 { (exit 1); exit 1; }; }
16830
16831
16832 # configure is writing to config.log, and then calls config.status.
16833 # config.status does its own redirection, appending to config.log.
16834 # Unfortunately, on DOS this fails, as config.log is still kept open
16835 # by configure, so config.status won't be able to write to it; its
16836 # output is simply discarded. So we exec the FD to /dev/null,
16837 # effectively closing config.log, so it can be properly (re)opened and
16838 # appended to by config.status. When coming back to configure, we
16839 # need to make the FD available again.
16840 if test "$no_create" != yes; then
16841 ac_cs_success=:
16842 ac_config_status_args=
16843 test "$silent" = yes &&
16844 ac_config_status_args="$ac_config_status_args --quiet"
16845 exec 5>/dev/null
16846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16847 exec 5>>config.log
16848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16849 # would make configure fail if this is the last instruction.
16850 $ac_cs_success || { (exit 1); exit 1; }
16851 fi
16852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16853 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16855 fi
16856
16857
16858 if test x$ODIRECT != xyes; then
16859 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16860 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16861 fi
This page took 0.916546 seconds and 6 git commands to generate.