]> sourceware.org Git - lvm2.git/blob - configure
As lcov module is not installed with GD.pm dependency we need
[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 GENPNG
708 GENHTML
709 LCOV
710 SACKPT_LIBS
711 SACKPT_CFLAGS
712 DLM_LIBS
713 DLM_CFLAGS
714 CPG_LIBS
715 CPG_CFLAGS
716 CONFDB_LIBS
717 CONFDB_CFLAGS
718 SALCK_LIBS
719 SALCK_CFLAGS
720 QUORUM_LIBS
721 QUORUM_CFLAGS
722 COROSYNC_LIBS
723 COROSYNC_CFLAGS
724 CMAN_LIBS
725 CMAN_CFLAGS
726 GULM_LIBS
727 GULM_CFLAGS
728 CCS_LIBS
729 CCS_CFLAGS
730 PKGCONFIGINIT_LIBS
731 PKGCONFIGINIT_CFLAGS
732 PKG_CONFIG
733 POW_LIB
734 LIBOBJS
735 ALLOCA
736 CSCOPE_CMD
737 CFLOW_CMD
738 RANLIB
739 MKDIR_P
740 SET_MAKE
741 LN_S
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 EGREP
746 GREP
747 CPP
748 OBJEXT
749 EXEEXT
750 ac_ct_CC
751 CPPFLAGS
752 LDFLAGS
753 CFLAGS
754 CC
755 AWK
756 SED
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_static_link
810 with_user
811 with_group
812 with_device_uid
813 with_device_gid
814 with_device_mode
815 enable_lvm1_fallback
816 with_lvm1
817 with_pool
818 with_cluster
819 with_snapshots
820 with_mirrors
821 enable_readline
822 enable_realtime
823 with_clvmd
824 enable_cmirrord
825 with_cmirrord_pidfile
826 enable_debug
827 with_optimisation
828 enable_profiling
829 enable_devmapper
830 enable_udev_sync
831 enable_udev_rules
832 enable_compat
833 enable_units_compat
834 enable_ioctl
835 enable_o_direct
836 enable_applib
837 enable_cmdlib
838 enable_pkgconfig
839 enable_fsadm
840 enable_dmeventd
841 enable_selinux
842 enable_nls
843 with_localedir
844 with_confdir
845 with_staticdir
846 with_usrlibdir
847 with_usrsbindir
848 with_udev_prefix
849 with_udevdir
850 with_dmeventd_pidfile
851 with_dmeventd_path
852 with_interface
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 PKG_CONFIG
864 PKGCONFIGINIT_CFLAGS
865 PKGCONFIGINIT_LIBS
866 CCS_CFLAGS
867 CCS_LIBS
868 GULM_CFLAGS
869 GULM_LIBS
870 CMAN_CFLAGS
871 CMAN_LIBS
872 COROSYNC_CFLAGS
873 COROSYNC_LIBS
874 QUORUM_CFLAGS
875 QUORUM_LIBS
876 SALCK_CFLAGS
877 SALCK_LIBS
878 CONFDB_CFLAGS
879 CONFDB_LIBS
880 CPG_CFLAGS
881 CPG_LIBS
882 DLM_CFLAGS
883 DLM_LIBS
884 SACKPT_CFLAGS
885 SACKPT_LIBS'
886
887
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
909
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
945 fi
946
947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
982
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1238
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1277 ;;
1278
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1312 fi
1313
1314 # Check all directory arguments for consistency.
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1319 do
1320 eval ac_val=\$$ac_var
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
1328 case $ac_val in
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 esac
1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures this package to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506 Optional Features:
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-static_link Use this to link the tools to their libraries
1511 statically. Default is dynamic linking
1512 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1513 device-mapper is missing from the kernel
1514 --disable-readline Disable readline support
1515 --enable-realtime Enable realtime clock support
1516 --enable-cmirrord Enable the cluster mirror log daemon
1517 --enable-debug Enable debugging
1518 --enable-profiling Gather gcov profiling data
1519 --disable-devmapper Disable LVM2 device-mapper interaction
1520 --enable-udev_sync Enable synchronisation with udev processing
1521 --enable-udev_rules Install rule files needed for udev synchronisation
1522 --enable-compat Enable support for old device-mapper versions
1523 --enable-units-compat Enable output compatibility with old versions that
1524 that don't use KiB-style unit suffixes
1525 --disable-driver Disable calls to device-mapper in the kernel
1526 --disable-o_direct Disable O_DIRECT
1527 --enable-applib Build application library
1528 --enable-cmdlib Build shared command library
1529 --enable-pkgconfig Install pkgconfig support
1530 --disable-fsadm Disable fsadm
1531 --enable-dmeventd Enable the device-mapper event daemon
1532 --disable-selinux Disable selinux support
1533 --enable-nls Enable Native Language Support
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-user=USER Set the owner of installed files [USER=]
1539 --with-group=GROUP Set the group owner of installed files [GROUP=]
1540 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1541 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1542 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1543 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1544 TYPE=internal
1545 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1546 TYPE=internal
1547 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1548 TYPE=internal
1549 --with-snapshots=TYPE Snapshot support: internal/shared/none
1550 TYPE=internal
1551 --with-mirrors=TYPE Mirror support: internal/shared/none
1552 TYPE=internal
1553 --with-clvmd=TYPE Build cluster LVM Daemon.
1554 The following cluster manager combinations are valid:
1555 * cman,gulm (RHEL4 or equivalent)
1556 * cman (RHEL5 or equivalent)
1557 * cman,corosync,openais (or selection of them)
1558 * singlenode (localhost only)
1559 * all (autodetect)
1560 * none (disable build)
1561 TYPE=none
1562 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1563 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1564 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1565 --with-confdir=DIR Configuration files in DIR [/etc]
1566 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1567 --with-usrlibdir=DIR
1568 --with-usrsbindir=DIR
1569 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1570 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1571 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1572 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1573 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1574
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1583 CPP C preprocessor
1584 PKG_CONFIG path to pkg-config utility
1585 PKGCONFIGINIT_CFLAGS
1586 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1587 PKGCONFIGINIT_LIBS
1588 linker flags for PKGCONFIGINIT, overriding pkg-config
1589 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1590 CCS_LIBS linker flags for CCS, overriding pkg-config
1591 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1592 GULM_LIBS linker flags for GULM, overriding pkg-config
1593 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1594 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1595 COROSYNC_CFLAGS
1596 C compiler flags for COROSYNC, overriding pkg-config
1597 COROSYNC_LIBS
1598 linker flags for COROSYNC, overriding pkg-config
1599 QUORUM_CFLAGS
1600 C compiler flags for QUORUM, overriding pkg-config
1601 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1602 SALCK_CFLAGS
1603 C compiler flags for SALCK, overriding pkg-config
1604 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1605 CONFDB_CFLAGS
1606 C compiler flags for CONFDB, overriding pkg-config
1607 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1608 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1609 CPG_LIBS linker flags for CPG, overriding pkg-config
1610 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1611 DLM_LIBS linker flags for DLM, overriding pkg-config
1612 SACKPT_CFLAGS
1613 C compiler flags for SACKPT, overriding pkg-config
1614 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1615
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1618
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 continue
1629 ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648 .) # We are building in place.
1649 ac_srcdir=.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1671 else
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1675 done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680 cat <<\_ACEOF
1681 configure
1682 generated by GNU Autoconf 2.63
1683
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688 _ACEOF
1689 exit
1690 fi
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1694
1695 It was created by $as_me, which was
1696 generated by GNU Autoconf 2.63. Invocation command line was
1697
1698 $ $0 $@
1699
1700 _ACEOF
1701 exec 5>>config.log
1702 {
1703 cat <<_ASUNAME
1704 ## --------- ##
1705 ## Platform. ##
1706 ## --------- ##
1707
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716
1717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
1725 _ASUNAME
1726
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 $as_echo "PATH: $as_dir"
1733 done
1734 IFS=$as_save_IFS
1735
1736 } >&5
1737
1738 cat >&5 <<_ACEOF
1739
1740
1741 ## ----------- ##
1742 ## Core tests. ##
1743 ## ----------- ##
1744
1745 _ACEOF
1746
1747
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_configure_args=
1754 ac_configure_args0=
1755 ac_configure_args1=
1756 ac_must_keep_next=false
1757 for ac_pass in 1 2
1758 do
1759 for ac_arg
1760 do
1761 case $ac_arg in
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1765 continue ;;
1766 *\'*)
1767 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 esac
1769 case $ac_pass in
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771 2)
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1775 else
1776 case $ac_arg in
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 esac
1784 ;;
1785 -* ) ac_must_keep_next=true ;;
1786 esac
1787 fi
1788 ac_configure_args="$ac_configure_args '$ac_arg'"
1789 ;;
1790 esac
1791 done
1792 done
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log. We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1803 {
1804 echo
1805
1806 cat <<\_ASBOX
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1810 _ASBOX
1811 echo
1812 # The following way of writing the cache mishandles newlines in values,
1813 (
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1816 case $ac_val in #(
1817 *${as_nl}*)
1818 case $ac_var in #(
1819 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1820 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1821 esac
1822 case $ac_var in #(
1823 _ | IFS | as_nl) ;; #(
1824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1825 *) $as_unset $ac_var ;;
1826 esac ;;
1827 esac
1828 done
1829 (set) 2>&1 |
1830 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831 *${as_nl}ac_space=\ *)
1832 sed -n \
1833 "s/'\''/'\''\\\\'\'''\''/g;
1834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1835 ;; #(
1836 *)
1837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838 ;;
1839 esac |
1840 sort
1841 )
1842 echo
1843
1844 cat <<\_ASBOX
1845 ## ----------------- ##
1846 ## Output variables. ##
1847 ## ----------------- ##
1848 _ASBOX
1849 echo
1850 for ac_var in $ac_subst_vars
1851 do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 $as_echo "$ac_var='\''$ac_val'\''"
1857 done | sort
1858 echo
1859
1860 if test -n "$ac_subst_files"; then
1861 cat <<\_ASBOX
1862 ## ------------------- ##
1863 ## File substitutions. ##
1864 ## ------------------- ##
1865 _ASBOX
1866 echo
1867 for ac_var in $ac_subst_files
1868 do
1869 eval ac_val=\$$ac_var
1870 case $ac_val in
1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 esac
1873 $as_echo "$ac_var='\''$ac_val'\''"
1874 done | sort
1875 echo
1876 fi
1877
1878 if test -s confdefs.h; then
1879 cat <<\_ASBOX
1880 ## ----------- ##
1881 ## confdefs.h. ##
1882 ## ----------- ##
1883 _ASBOX
1884 echo
1885 cat confdefs.h
1886 echo
1887 fi
1888 test "$ac_signal" != 0 &&
1889 $as_echo "$as_me: caught signal $ac_signal"
1890 $as_echo "$as_me: exit $exit_status"
1891 } >&5
1892 rm -f core *.core core.conftest.* &&
1893 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1894 exit $exit_status
1895 ' 0
1896 for ac_signal in 1 2 13 15; do
1897 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1898 done
1899 ac_signal=0
1900
1901 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1902 rm -f -r conftest* confdefs.h
1903
1904 # Predefined preprocessor variables.
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_NAME "$PACKAGE_NAME"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_STRING "$PACKAGE_STRING"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1928 _ACEOF
1929
1930
1931 # Let the site file select an alternate cache file if it wants to.
1932 # Prefer an explicitly selected file to automatically selected ones.
1933 ac_site_file1=NONE
1934 ac_site_file2=NONE
1935 if test -n "$CONFIG_SITE"; then
1936 ac_site_file1=$CONFIG_SITE
1937 elif test "x$prefix" != xNONE; then
1938 ac_site_file1=$prefix/share/config.site
1939 ac_site_file2=$prefix/etc/config.site
1940 else
1941 ac_site_file1=$ac_default_prefix/share/config.site
1942 ac_site_file2=$ac_default_prefix/etc/config.site
1943 fi
1944 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1945 do
1946 test "x$ac_site_file" = xNONE && continue
1947 if test -r "$ac_site_file"; then
1948 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1950 sed 's/^/| /' "$ac_site_file" >&5
1951 . "$ac_site_file"
1952 fi
1953 done
1954
1955 if test -r "$cache_file"; then
1956 # Some versions of bash will fail to source /dev/null (special
1957 # files actually), so we avoid doing that.
1958 if test -f "$cache_file"; then
1959 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960 $as_echo "$as_me: loading cache $cache_file" >&6;}
1961 case $cache_file in
1962 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963 *) . "./$cache_file";;
1964 esac
1965 fi
1966 else
1967 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968 $as_echo "$as_me: creating cache $cache_file" >&6;}
1969 >$cache_file
1970 fi
1971
1972 # Check that the precious variables saved in the cache have kept the same
1973 # value.
1974 ac_cache_corrupted=false
1975 for ac_var in $ac_precious_vars; do
1976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977 eval ac_new_set=\$ac_env_${ac_var}_set
1978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979 eval ac_new_val=\$ac_env_${ac_var}_value
1980 case $ac_old_set,$ac_new_set in
1981 set,)
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1985 ,set)
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1989 ,);;
1990 *)
1991 if test "x$ac_old_val" != "x$ac_new_val"; then
1992 # differences in whitespace do not lead to failure.
1993 ac_old_val_w=`echo x $ac_old_val`
1994 ac_new_val_w=`echo x $ac_new_val`
1995 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1997 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1998 ac_cache_corrupted=:
1999 else
2000 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2001 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2002 eval $ac_var=\$ac_old_val
2003 fi
2004 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2005 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2006 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2007 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2008 fi;;
2009 esac
2010 # Pass precious variables to config.status.
2011 if test "$ac_new_set" = set; then
2012 case $ac_new_val in
2013 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 *) ac_arg=$ac_var=$ac_new_val ;;
2015 esac
2016 case " $ac_configure_args " in
2017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2018 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2019 esac
2020 fi
2021 done
2022 if $ac_cache_corrupted; then
2023 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2025 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2026 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2027 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2028 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2029 { (exit 1); exit 1; }; }
2030 fi
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048 ac_ext=c
2049 ac_cpp='$CPP $CPPFLAGS'
2050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053
2054
2055
2056 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2057
2058
2059 ################################################################################
2060 ac_aux_dir=
2061 for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if test -f "$ac_dir/install-sh"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 break
2066 elif test -f "$ac_dir/install.sh"; then
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 break
2070 elif test -f "$ac_dir/shtool"; then
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 break
2074 fi
2075 done
2076 if test -z "$ac_aux_dir"; then
2077 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2079 { (exit 1); exit 1; }; }
2080 fi
2081
2082 # These three variables are undocumented and unsupported,
2083 # and are intended to be withdrawn in a future Autoconf release.
2084 # They can cause serious problems if a builder's source tree is in a directory
2085 # whose full name contains unusual characters.
2086 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089
2090
2091
2092 ################################################################################
2093 # Make sure we can run config.sub.
2094 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2095 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2096 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2097 { (exit 1); exit 1; }; }
2098
2099 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2100 $as_echo_n "checking build system type... " >&6; }
2101 if test "${ac_cv_build+set}" = set; then
2102 $as_echo_n "(cached) " >&6
2103 else
2104 ac_build_alias=$build_alias
2105 test "x$ac_build_alias" = x &&
2106 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2107 test "x$ac_build_alias" = x &&
2108 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2109 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2110 { (exit 1); exit 1; }; }
2111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2112 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2113 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2115
2116 fi
2117 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2118 $as_echo "$ac_cv_build" >&6; }
2119 case $ac_cv_build in
2120 *-*-*) ;;
2121 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2122 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2123 { (exit 1); exit 1; }; };;
2124 esac
2125 build=$ac_cv_build
2126 ac_save_IFS=$IFS; IFS='-'
2127 set x $ac_cv_build
2128 shift
2129 build_cpu=$1
2130 build_vendor=$2
2131 shift; shift
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2134 build_os=$*
2135 IFS=$ac_save_IFS
2136 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2137
2138
2139 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2140 $as_echo_n "checking host system type... " >&6; }
2141 if test "${ac_cv_host+set}" = set; then
2142 $as_echo_n "(cached) " >&6
2143 else
2144 if test "x$host_alias" = x; then
2145 ac_cv_host=$ac_cv_build
2146 else
2147 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2148 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2149 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2150 { (exit 1); exit 1; }; }
2151 fi
2152
2153 fi
2154 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2155 $as_echo "$ac_cv_host" >&6; }
2156 case $ac_cv_host in
2157 *-*-*) ;;
2158 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2159 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2160 { (exit 1); exit 1; }; };;
2161 esac
2162 host=$ac_cv_host
2163 ac_save_IFS=$IFS; IFS='-'
2164 set x $ac_cv_host
2165 shift
2166 host_cpu=$1
2167 host_vendor=$2
2168 shift; shift
2169 # Remember, the first character of IFS is used to create $*,
2170 # except with old shells:
2171 host_os=$*
2172 IFS=$ac_save_IFS
2173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2174
2175
2176 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2177 $as_echo_n "checking target system type... " >&6; }
2178 if test "${ac_cv_target+set}" = set; then
2179 $as_echo_n "(cached) " >&6
2180 else
2181 if test "x$target_alias" = x; then
2182 ac_cv_target=$ac_cv_host
2183 else
2184 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2185 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2186 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2187 { (exit 1); exit 1; }; }
2188 fi
2189
2190 fi
2191 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192 $as_echo "$ac_cv_target" >&6; }
2193 case $ac_cv_target in
2194 *-*-*) ;;
2195 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2196 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2197 { (exit 1); exit 1; }; };;
2198 esac
2199 target=$ac_cv_target
2200 ac_save_IFS=$IFS; IFS='-'
2201 set x $ac_cv_target
2202 shift
2203 target_cpu=$1
2204 target_vendor=$2
2205 shift; shift
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2208 target_os=$*
2209 IFS=$ac_save_IFS
2210 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2211
2212
2213 # The aliases save the names the user supplied, while $host etc.
2214 # will get canonicalized.
2215 test -n "$target_alias" &&
2216 test "$program_prefix$program_suffix$program_transform_name" = \
2217 NONENONEs,x,x, &&
2218 program_prefix=${target_alias}-
2219
2220 case "$host_os" in
2221 linux*)
2222 CFLAGS="$CFLAGS"
2223 COPTIMISE_FLAG="-O2"
2224 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2225 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2226 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2227 LDDEPS="$LDDEPS .export.sym"
2228 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2229 LIB_SUFFIX=so
2230 DEVMAPPER=yes
2231 ODIRECT=yes
2232 DM_IOCTLS=yes
2233 SELINUX=yes
2234 CLUSTER=internal
2235 FSADM=yes
2236 ;;
2237 darwin*)
2238 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2239 COPTIMISE_FLAG="-O2"
2240 CLDFLAGS="$CLDFLAGS"
2241 CLDWHOLEARCHIVE="-all_load"
2242 CLDNOWHOLEARCHIVE=
2243 LIB_SUFFIX=dylib
2244 DEVMAPPER=yes
2245 ODIRECT=no
2246 DM_IOCTLS=no
2247 SELINUX=no
2248 CLUSTER=none
2249 FSADM=no
2250 ;;
2251 esac
2252
2253 ################################################################################
2254 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2255 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2256 if test "${ac_cv_path_SED+set}" = set; then
2257 $as_echo_n "(cached) " >&6
2258 else
2259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2260 for ac_i in 1 2 3 4 5 6 7; do
2261 ac_script="$ac_script$as_nl$ac_script"
2262 done
2263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2264 $as_unset ac_script || ac_script=
2265 if test -z "$SED"; then
2266 ac_path_SED_found=false
2267 # Loop through the user's path and test for each of PROGNAME-LIST
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_prog in sed gsed; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2276 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2277 # Check for GNU ac_path_SED and select it if it is found.
2278 # Check for GNU $ac_path_SED
2279 case `"$ac_path_SED" --version 2>&1` in
2280 *GNU*)
2281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2282 *)
2283 ac_count=0
2284 $as_echo_n 0123456789 >"conftest.in"
2285 while :
2286 do
2287 cat "conftest.in" "conftest.in" >"conftest.tmp"
2288 mv "conftest.tmp" "conftest.in"
2289 cp "conftest.in" "conftest.nl"
2290 $as_echo '' >> "conftest.nl"
2291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2293 ac_count=`expr $ac_count + 1`
2294 if test $ac_count -gt ${ac_path_SED_max-0}; then
2295 # Best one so far, save it but keep looking for a better one
2296 ac_cv_path_SED="$ac_path_SED"
2297 ac_path_SED_max=$ac_count
2298 fi
2299 # 10*(2^10) chars as input seems more than enough
2300 test $ac_count -gt 10 && break
2301 done
2302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2303 esac
2304
2305 $ac_path_SED_found && break 3
2306 done
2307 done
2308 done
2309 IFS=$as_save_IFS
2310 if test -z "$ac_cv_path_SED"; then
2311 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2312 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2313 { (exit 1); exit 1; }; }
2314 fi
2315 else
2316 ac_cv_path_SED=$SED
2317 fi
2318
2319 fi
2320 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2321 $as_echo "$ac_cv_path_SED" >&6; }
2322 SED="$ac_cv_path_SED"
2323 rm -f conftest.sed
2324
2325 for ac_prog in gawk mawk nawk awk
2326 do
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332 $as_echo_n "(cached) " >&6
2333 else
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_AWK="$ac_prog"
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348 done
2349 done
2350 IFS=$as_save_IFS
2351
2352 fi
2353 fi
2354 AWK=$ac_cv_prog_AWK
2355 if test -n "$AWK"; then
2356 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2357 $as_echo "$AWK" >&6; }
2358 else
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2361 fi
2362
2363
2364 test -n "$AWK" && break
2365 done
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2374 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394 done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2403 $as_echo "$CC" >&6; }
2404 else
2405 { $as_echo "$as_me:$LINENO: result: no" >&5
2406 $as_echo "no" >&6; }
2407 fi
2408
2409
2410 fi
2411 if test -z "$ac_cv_prog_CC"; then
2412 ac_ct_CC=$CC
2413 # Extract the first word of "gcc", so it can be a program name with args.
2414 set dummy gcc; ac_word=$2
2415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$ac_ct_CC"; then
2421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_ac_ct_CC="gcc"
2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2441 if test -n "$ac_ct_CC"; then
2442 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2443 $as_echo "$ac_ct_CC" >&6; }
2444 else
2445 { $as_echo "$as_me:$LINENO: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449 if test "x$ac_ct_CC" = x; then
2450 CC=""
2451 else
2452 case $cross_compiling:$ac_tool_warned in
2453 yes:)
2454 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456 ac_tool_warned=yes ;;
2457 esac
2458 CC=$ac_ct_CC
2459 fi
2460 else
2461 CC="$ac_cv_prog_CC"
2462 fi
2463
2464 if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}cc; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 CC=$ac_cv_prog_CC
2494 if test -n "$CC"; then
2495 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2496 $as_echo "$CC" >&6; }
2497 else
2498 { $as_echo "$as_me:$LINENO: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 fi
2504 fi
2505 if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 ac_prog_rejected=no
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2526 continue
2527 fi
2528 ac_cv_prog_CC="cc"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2539 shift
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2544 shift
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2546 fi
2547 fi
2548 fi
2549 fi
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2553 $as_echo "$CC" >&6; }
2554 else
2555 { $as_echo "$as_me:$LINENO: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 for ac_prog in cl.exe
2564 do
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2595 $as_echo "$CC" >&6; }
2596 else
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 test -n "$CC" && break
2603 done
2604 fi
2605 if test -z "$CC"; then
2606 ac_ct_CC=$CC
2607 for ac_prog in cl.exe
2608 do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639 $as_echo "$ac_ct_CC" >&6; }
2640 else
2641 { $as_echo "$as_me:$LINENO: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 test -n "$ac_ct_CC" && break
2647 done
2648
2649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658 CC=$ac_ct_CC
2659 fi
2660 fi
2661
2662 fi
2663
2664
2665 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&5
2669 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }; }
2672
2673 # Provide some information about the compiler.
2674 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2675 set X $ac_compile
2676 ac_compiler=$2
2677 { (ac_try="$ac_compiler --version >&5"
2678 case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2683 $as_echo "$ac_try_echo") >&5
2684 (eval "$ac_compiler --version >&5") 2>&5
2685 ac_status=$?
2686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (ac_try="$ac_compiler -v >&5"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2694 $as_echo "$ac_try_echo") >&5
2695 (eval "$ac_compiler -v >&5") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -V >&5"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2705 $as_echo "$ac_try_echo") >&5
2706 (eval "$ac_compiler -V >&5") 2>&5
2707 ac_status=$?
2708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2717
2718 int
2719 main ()
2720 {
2721
2722 ;
2723 return 0;
2724 }
2725 _ACEOF
2726 ac_clean_files_save=$ac_clean_files
2727 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2728 # Try to create an executable without -o first, disregard a.out.
2729 # It will help us diagnose broken compilers, and finding out an intuition
2730 # of exeext.
2731 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2732 $as_echo_n "checking for C compiler default output file name... " >&6; }
2733 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2734
2735 # The possible output files:
2736 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2737
2738 ac_rmfiles=
2739 for ac_file in $ac_files
2740 do
2741 case $ac_file in
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744 esac
2745 done
2746 rm -f $ac_rmfiles
2747
2748 if { (ac_try="$ac_link_default"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755 (eval "$ac_link_default") 2>&5
2756 ac_status=$?
2757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
2759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2760 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2761 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2762 # so that the user can short-circuit this test for compilers unknown to
2763 # Autoconf.
2764 for ac_file in $ac_files ''
2765 do
2766 test -f "$ac_file" || continue
2767 case $ac_file in
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2769 ;;
2770 [ab].out )
2771 # We found the default executable, but exeext='' is most
2772 # certainly right.
2773 break;;
2774 *.* )
2775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2776 then :; else
2777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 fi
2779 # We set ac_cv_exeext here because the later test for it is not
2780 # safe: cross compilers may not add the suffix if given an `-o'
2781 # argument, so we may need to know it at that point already.
2782 # Even if this section looks crufty: it has the advantage of
2783 # actually working.
2784 break;;
2785 * )
2786 break;;
2787 esac
2788 done
2789 test "$ac_cv_exeext" = no && ac_cv_exeext=
2790
2791 else
2792 ac_file=''
2793 fi
2794
2795 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2796 $as_echo "$ac_file" >&6; }
2797 if test -z "$ac_file"; then
2798 $as_echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2804 See \`config.log' for more details." >&5
2805 $as_echo "$as_me: error: C compiler cannot create executables
2806 See \`config.log' for more details." >&2;}
2807 { (exit 77); exit 77; }; }; }
2808 fi
2809
2810 ac_exeext=$ac_cv_exeext
2811
2812 # Check that the compiler produces executables we can run. If not, either
2813 # the compiler is broken, or we cross compile.
2814 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2815 $as_echo_n "checking whether the C compiler works... " >&6; }
2816 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2817 # If not cross compiling, check that we can run a simple program.
2818 if test "$cross_compiling" != yes; then
2819 if { ac_try='./$ac_file'
2820 { (case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825 $as_echo "$ac_try_echo") >&5
2826 (eval "$ac_try") 2>&5
2827 ac_status=$?
2828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 cross_compiling=no
2831 else
2832 if test "$cross_compiling" = maybe; then
2833 cross_compiling=yes
2834 else
2835 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2837 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2838 If you meant to cross compile, use \`--host'.
2839 See \`config.log' for more details." >&5
2840 $as_echo "$as_me: error: cannot run C compiled programs.
2841 If you meant to cross compile, use \`--host'.
2842 See \`config.log' for more details." >&2;}
2843 { (exit 1); exit 1; }; }; }
2844 fi
2845 fi
2846 fi
2847 { $as_echo "$as_me:$LINENO: result: yes" >&5
2848 $as_echo "yes" >&6; }
2849
2850 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2851 ac_clean_files=$ac_clean_files_save
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855 $as_echo_n "checking whether we are cross compiling... " >&6; }
2856 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857 $as_echo "$cross_compiling" >&6; }
2858
2859 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860 $as_echo_n "checking for suffix of executables... " >&6; }
2861 if { (ac_try="$ac_link"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_link") 2>&5
2869 ac_status=$?
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; then
2872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2873 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2874 # work properly (i.e., refer to `conftest.exe'), while it won't with
2875 # `rm'.
2876 for ac_file in conftest.exe conftest conftest.*; do
2877 test -f "$ac_file" || continue
2878 case $ac_file in
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2881 break;;
2882 * ) break;;
2883 esac
2884 done
2885 else
2886 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2889 See \`config.log' for more details." >&5
2890 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2891 See \`config.log' for more details." >&2;}
2892 { (exit 1); exit 1; }; }; }
2893 fi
2894
2895 rm -f conftest$ac_cv_exeext
2896 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2897 $as_echo "$ac_cv_exeext" >&6; }
2898
2899 rm -f conftest.$ac_ext
2900 EXEEXT=$ac_cv_exeext
2901 ac_exeext=$EXEEXT
2902 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2903 $as_echo_n "checking for suffix of object files... " >&6; }
2904 if test "${ac_cv_objext+set}" = set; then
2905 $as_echo_n "(cached) " >&6
2906 else
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913
2914 int
2915 main ()
2916 {
2917
2918 ;
2919 return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.o conftest.obj
2923 if { (ac_try="$ac_compile"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929 $as_echo "$ac_try_echo") >&5
2930 (eval "$ac_compile") 2>&5
2931 ac_status=$?
2932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941 done
2942 else
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." >&5
2950 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2951 See \`config.log' for more details." >&2;}
2952 { (exit 1); exit 1; }; }; }
2953 fi
2954
2955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2956 fi
2957 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2958 $as_echo "$ac_cv_objext" >&6; }
2959 OBJEXT=$ac_cv_objext
2960 ac_objext=$OBJEXT
2961 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2964 $as_echo_n "(cached) " >&6
2965 else
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972
2973 int
2974 main ()
2975 {
2976 #ifndef __GNUC__
2977 choke me
2978 #endif
2979
2980 ;
2981 return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2991 $as_echo "$ac_try_echo") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3002 ac_compiler_gnu=yes
3003 else
3004 $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 ac_compiler_gnu=no
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3012
3013 fi
3014 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3016 if test $ac_compiler_gnu = yes; then
3017 GCC=yes
3018 else
3019 GCC=
3020 fi
3021 ac_test_CFLAGS=${CFLAGS+set}
3022 ac_save_CFLAGS=$CFLAGS
3023 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3024 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3025 if test "${ac_cv_prog_cc_g+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027 else
3028 ac_save_c_werror_flag=$ac_c_werror_flag
3029 ac_c_werror_flag=yes
3030 ac_cv_prog_cc_g=no
3031 CFLAGS="-g"
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038
3039 int
3040 main ()
3041 {
3042
3043 ;
3044 return 0;
3045 }
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3054 $as_echo "$ac_try_echo") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
3065 ac_cv_prog_cc_g=yes
3066 else
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 CFLAGS=""
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077
3078 int
3079 main ()
3080 {
3081
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093 $as_echo "$ac_try_echo") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 :
3105 else
3106 $as_echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_c_werror_flag=$ac_save_c_werror_flag
3110 CFLAGS="-g"
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133 $as_echo "$ac_try_echo") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_cv_prog_cc_g=yes
3145 else
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149
3150 fi
3151
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3160 fi
3161 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3162 $as_echo "$ac_cv_prog_cc_g" >&6; }
3163 if test "$ac_test_CFLAGS" = set; then
3164 CFLAGS=$ac_save_CFLAGS
3165 elif test $ac_cv_prog_cc_g = yes; then
3166 if test "$GCC" = yes; then
3167 CFLAGS="-g -O2"
3168 else
3169 CFLAGS="-g"
3170 fi
3171 else
3172 if test "$GCC" = yes; then
3173 CFLAGS="-O2"
3174 else
3175 CFLAGS=
3176 fi
3177 fi
3178 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3179 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3180 if test "${ac_cv_prog_cc_c89+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3182 else
3183 ac_cv_prog_cc_c89=no
3184 ac_save_CC=$CC
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #include <stdarg.h>
3192 #include <stdio.h>
3193 #include <sys/types.h>
3194 #include <sys/stat.h>
3195 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3196 struct buf { int x; };
3197 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3198 static char *e (p, i)
3199 char **p;
3200 int i;
3201 {
3202 return p[i];
3203 }
3204 static char *f (char * (*g) (char **, int), char **p, ...)
3205 {
3206 char *s;
3207 va_list v;
3208 va_start (v,p);
3209 s = g (p, va_arg (v,int));
3210 va_end (v);
3211 return s;
3212 }
3213
3214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3215 function prototypes and stuff, but not '\xHH' hex character constants.
3216 These don't provoke an error unfortunately, instead are silently treated
3217 as 'x'. The following induces an error, until -std is added to get
3218 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3219 array size at least. It's necessary to write '\x00'==0 to get something
3220 that's true only with -std. */
3221 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3222
3223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3224 inside strings and character constants. */
3225 #define FOO(x) 'x'
3226 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3227
3228 int test (int i, double x);
3229 struct s1 {int (*f) (int a);};
3230 struct s2 {int (*f) (double a);};
3231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3232 int argc;
3233 char **argv;
3234 int
3235 main ()
3236 {
3237 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3243 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3244 do
3245 CC="$ac_save_CC $ac_arg"
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3264 ac_cv_prog_cc_c89=$ac_arg
3265 else
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269
3270 fi
3271
3272 rm -f core conftest.err conftest.$ac_objext
3273 test "x$ac_cv_prog_cc_c89" != "xno" && break
3274 done
3275 rm -f conftest.$ac_ext
3276 CC=$ac_save_CC
3277
3278 fi
3279 # AC_CACHE_VAL
3280 case "x$ac_cv_prog_cc_c89" in
3281 x)
3282 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3283 $as_echo "none needed" >&6; } ;;
3284 xno)
3285 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3286 $as_echo "unsupported" >&6; } ;;
3287 *)
3288 CC="$CC $ac_cv_prog_cc_c89"
3289 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3290 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3291 esac
3292
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299
3300
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3308 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3309 # On Suns, sometimes $CPP names a directory.
3310 if test -n "$CPP" && test -d "$CPP"; then
3311 CPP=
3312 fi
3313 if test -z "$CPP"; then
3314 if test "${ac_cv_prog_CPP+set}" = set; then
3315 $as_echo_n "(cached) " >&6
3316 else
3317 # Double quotes because CPP needs to be expanded
3318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319 do
3320 ac_preproc_ok=false
3321 for ac_c_preproc_warn_flag in '' yes
3322 do
3323 # Use a header file that comes with gcc, so configuring glibc
3324 # with a fresh cross-compiler works.
3325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326 # <limits.h> exists even on freestanding compilers.
3327 # On the NeXT, cc -E runs the code through the compiler's parser,
3328 # not just through cpp. "Syntax error" is here to catch this case.
3329 cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 #ifdef __STDC__
3336 # include <limits.h>
3337 #else
3338 # include <assert.h>
3339 #endif
3340 Syntax error
3341 _ACEOF
3342 if { (ac_try="$ac_cpp conftest.$ac_ext"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3348 $as_echo "$ac_try_echo") >&5
3349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } >/dev/null && {
3356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 }; then
3359 :
3360 else
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 # Broken: fails on valid input.
3365 continue
3366 fi
3367
3368 rm -f conftest.err conftest.$ac_ext
3369
3370 # OK, works on sane cases. Now check whether nonexistent headers
3371 # can be detected and how.
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 #include <ac_nonexistent.h>
3379 _ACEOF
3380 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } >/dev/null && {
3394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 }; then
3397 # Broken: success on invalid input.
3398 continue
3399 else
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 # Passes both tests.
3404 ac_preproc_ok=:
3405 break
3406 fi
3407
3408 rm -f conftest.err conftest.$ac_ext
3409
3410 done
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3414 break
3415 fi
3416
3417 done
3418 ac_cv_prog_CPP=$CPP
3419
3420 fi
3421 CPP=$ac_cv_prog_CPP
3422 else
3423 ac_cv_prog_CPP=$CPP
3424 fi
3425 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3426 $as_echo "$CPP" >&6; }
3427 ac_preproc_ok=false
3428 for ac_c_preproc_warn_flag in '' yes
3429 do
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433 # <limits.h> exists even on freestanding compilers.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error" is here to catch this case.
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447 Syntax error
3448 _ACEOF
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } >/dev/null && {
3463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 }; then
3466 :
3467 else
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 # Broken: fails on valid input.
3472 continue
3473 fi
3474
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 # OK, works on sane cases. Now check whether nonexistent headers
3478 # can be detected and how.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include <ac_nonexistent.h>
3486 _ACEOF
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 }; then
3504 # Broken: success on invalid input.
3505 continue
3506 else
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Passes both tests.
3511 ac_preproc_ok=:
3512 break
3513 fi
3514
3515 rm -f conftest.err conftest.$ac_ext
3516
3517 done
3518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519 rm -f conftest.err conftest.$ac_ext
3520 if $ac_preproc_ok; then
3521 :
3522 else
3523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." >&5
3527 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details." >&2;}
3529 { (exit 1); exit 1; }; }; }
3530 fi
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538
3539 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3540 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3541 if test "${ac_cv_path_GREP+set}" = set; then
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -z "$GREP"; then
3545 ac_path_GREP_found=false
3546 # Loop through the user's path and test for each of PROGNAME-LIST
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3549 do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_prog in grep ggrep; do
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3555 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3556 # Check for GNU ac_path_GREP and select it if it is found.
3557 # Check for GNU $ac_path_GREP
3558 case `"$ac_path_GREP" --version 2>&1` in
3559 *GNU*)
3560 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3561 *)
3562 ac_count=0
3563 $as_echo_n 0123456789 >"conftest.in"
3564 while :
3565 do
3566 cat "conftest.in" "conftest.in" >"conftest.tmp"
3567 mv "conftest.tmp" "conftest.in"
3568 cp "conftest.in" "conftest.nl"
3569 $as_echo 'GREP' >> "conftest.nl"
3570 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3572 ac_count=`expr $ac_count + 1`
3573 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3574 # Best one so far, save it but keep looking for a better one
3575 ac_cv_path_GREP="$ac_path_GREP"
3576 ac_path_GREP_max=$ac_count
3577 fi
3578 # 10*(2^10) chars as input seems more than enough
3579 test $ac_count -gt 10 && break
3580 done
3581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3582 esac
3583
3584 $ac_path_GREP_found && break 3
3585 done
3586 done
3587 done
3588 IFS=$as_save_IFS
3589 if test -z "$ac_cv_path_GREP"; then
3590 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3591 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3592 { (exit 1); exit 1; }; }
3593 fi
3594 else
3595 ac_cv_path_GREP=$GREP
3596 fi
3597
3598 fi
3599 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3600 $as_echo "$ac_cv_path_GREP" >&6; }
3601 GREP="$ac_cv_path_GREP"
3602
3603
3604 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3605 $as_echo_n "checking for egrep... " >&6; }
3606 if test "${ac_cv_path_EGREP+set}" = set; then
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3610 then ac_cv_path_EGREP="$GREP -E"
3611 else
3612 if test -z "$EGREP"; then
3613 ac_path_EGREP_found=false
3614 # Loop through the user's path and test for each of PROGNAME-LIST
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617 do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_prog in egrep; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3623 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3624 # Check for GNU ac_path_EGREP and select it if it is found.
3625 # Check for GNU $ac_path_EGREP
3626 case `"$ac_path_EGREP" --version 2>&1` in
3627 *GNU*)
3628 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3629 *)
3630 ac_count=0
3631 $as_echo_n 0123456789 >"conftest.in"
3632 while :
3633 do
3634 cat "conftest.in" "conftest.in" >"conftest.tmp"
3635 mv "conftest.tmp" "conftest.in"
3636 cp "conftest.in" "conftest.nl"
3637 $as_echo 'EGREP' >> "conftest.nl"
3638 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640 ac_count=`expr $ac_count + 1`
3641 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3642 # Best one so far, save it but keep looking for a better one
3643 ac_cv_path_EGREP="$ac_path_EGREP"
3644 ac_path_EGREP_max=$ac_count
3645 fi
3646 # 10*(2^10) chars as input seems more than enough
3647 test $ac_count -gt 10 && break
3648 done
3649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650 esac
3651
3652 $ac_path_EGREP_found && break 3
3653 done
3654 done
3655 done
3656 IFS=$as_save_IFS
3657 if test -z "$ac_cv_path_EGREP"; then
3658 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3659 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3660 { (exit 1); exit 1; }; }
3661 fi
3662 else
3663 ac_cv_path_EGREP=$EGREP
3664 fi
3665
3666 fi
3667 fi
3668 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3669 $as_echo "$ac_cv_path_EGREP" >&6; }
3670 EGREP="$ac_cv_path_EGREP"
3671
3672
3673 if test $ac_cv_c_compiler_gnu = yes; then
3674 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3675 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3676 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3677 $as_echo_n "(cached) " >&6
3678 else
3679 ac_pattern="Autoconf.*'x'"
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <sgtty.h>
3687 Autoconf TIOCGETP
3688 _ACEOF
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3691 ac_cv_prog_gcc_traditional=yes
3692 else
3693 ac_cv_prog_gcc_traditional=no
3694 fi
3695 rm -f conftest*
3696
3697
3698 if test $ac_cv_prog_gcc_traditional = no; then
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <termio.h>
3706 Autoconf TCGETA
3707 _ACEOF
3708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3709 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3710 ac_cv_prog_gcc_traditional=yes
3711 fi
3712 rm -f conftest*
3713
3714 fi
3715 fi
3716 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3717 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3718 if test $ac_cv_prog_gcc_traditional = yes; then
3719 CC="$CC -traditional"
3720 fi
3721 fi
3722
3723 # Find a good install program. We prefer a C program (faster),
3724 # so one script is as good as another. But avoid the broken or
3725 # incompatible versions:
3726 # SysV /etc/install, /usr/sbin/install
3727 # SunOS /usr/etc/install
3728 # IRIX /sbin/install
3729 # AIX /bin/install
3730 # AmigaOS /C/install, which installs bootblocks on floppy discs
3731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3734 # OS/2's system install, which has a completely different semantic
3735 # ./install, which can be erroneously created by make from ./install.sh.
3736 # Reject install programs that cannot install multiple files.
3737 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3738 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3739 if test -z "$INSTALL"; then
3740 if test "${ac_cv_path_install+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 # Account for people who put trailing slashes in PATH elements.
3749 case $as_dir/ in
3750 ./ | .// | /cC/* | \
3751 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3752 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3753 /usr/ucb/* ) ;;
3754 *)
3755 # OSF1 and SCO ODT 3.0 have their own names for install.
3756 # Don't use installbsd from OSF since it installs stuff as root
3757 # by default.
3758 for ac_prog in ginstall scoinst install; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3761 if test $ac_prog = install &&
3762 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3763 # AIX install. It has an incompatible calling convention.
3764 :
3765 elif test $ac_prog = install &&
3766 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3767 # program-specific install script used by HP pwplus--don't use.
3768 :
3769 else
3770 rm -rf conftest.one conftest.two conftest.dir
3771 echo one > conftest.one
3772 echo two > conftest.two
3773 mkdir conftest.dir
3774 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3775 test -s conftest.one && test -s conftest.two &&
3776 test -s conftest.dir/conftest.one &&
3777 test -s conftest.dir/conftest.two
3778 then
3779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3780 break 3
3781 fi
3782 fi
3783 fi
3784 done
3785 done
3786 ;;
3787 esac
3788
3789 done
3790 IFS=$as_save_IFS
3791
3792 rm -rf conftest.one conftest.two conftest.dir
3793
3794 fi
3795 if test "${ac_cv_path_install+set}" = set; then
3796 INSTALL=$ac_cv_path_install
3797 else
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for INSTALL within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 INSTALL=$ac_install_sh
3803 fi
3804 fi
3805 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3806 $as_echo "$INSTALL" >&6; }
3807
3808 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3809 # It thinks the first close brace ends the variable substitution.
3810 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3811
3812 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3813
3814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3815
3816 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3817 $as_echo_n "checking whether ln -s works... " >&6; }
3818 LN_S=$as_ln_s
3819 if test "$LN_S" = "ln -s"; then
3820 { $as_echo "$as_me:$LINENO: result: yes" >&5
3821 $as_echo "yes" >&6; }
3822 else
3823 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3824 $as_echo "no, using $LN_S" >&6; }
3825 fi
3826
3827 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3829 set x ${MAKE-make}
3830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3831 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat >conftest.make <<\_ACEOF
3835 SHELL = /bin/sh
3836 all:
3837 @echo '@@@%%%=$(MAKE)=@@@%%%'
3838 _ACEOF
3839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3841 *@@@%%%=?*=@@@%%%*)
3842 eval ac_cv_prog_make_${ac_make}_set=yes;;
3843 *)
3844 eval ac_cv_prog_make_${ac_make}_set=no;;
3845 esac
3846 rm -f conftest.make
3847 fi
3848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3849 { $as_echo "$as_me:$LINENO: result: yes" >&5
3850 $as_echo "yes" >&6; }
3851 SET_MAKE=
3852 else
3853 { $as_echo "$as_me:$LINENO: result: no" >&5
3854 $as_echo "no" >&6; }
3855 SET_MAKE="MAKE=${MAKE-make}"
3856 fi
3857
3858 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3860 if test -z "$MKDIR_P"; then
3861 if test "${ac_cv_path_mkdir+set}" = set; then
3862 $as_echo_n "(cached) " >&6
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in mkdir gmkdir; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3873 'mkdir (GNU coreutils) '* | \
3874 'mkdir (coreutils) '* | \
3875 'mkdir (fileutils) '4.1*)
3876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3877 break 3;;
3878 esac
3879 done
3880 done
3881 done
3882 IFS=$as_save_IFS
3883
3884 fi
3885
3886 if test "${ac_cv_path_mkdir+set}" = set; then
3887 MKDIR_P="$ac_cv_path_mkdir -p"
3888 else
3889 # As a last resort, use the slow shell script. Don't cache a
3890 # value for MKDIR_P within a source directory, because that will
3891 # break other packages using the cache if that directory is
3892 # removed, or if the value is a relative name.
3893 test -d ./--version && rmdir ./--version
3894 MKDIR_P="$ac_install_sh -d"
3895 fi
3896 fi
3897 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3898 $as_echo "$MKDIR_P" >&6; }
3899
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if test "${ac_cv_prog_RANLIB+set}" = set; then
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -n "$RANLIB"; then
3909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi
3927 fi
3928 RANLIB=$ac_cv_prog_RANLIB
3929 if test -n "$RANLIB"; then
3930 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3931 $as_echo "$RANLIB" >&6; }
3932 else
3933 { $as_echo "$as_me:$LINENO: result: no" >&5
3934 $as_echo "no" >&6; }
3935 fi
3936
3937
3938 fi
3939 if test -z "$ac_cv_prog_RANLIB"; then
3940 ac_ct_RANLIB=$RANLIB
3941 # Extract the first word of "ranlib", so it can be a program name with args.
3942 set dummy ranlib; ac_word=$2
3943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -n "$ac_ct_RANLIB"; then
3949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_ac_ct_RANLIB="ranlib"
3959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi
3967 fi
3968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3969 if test -n "$ac_ct_RANLIB"; then
3970 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3971 $as_echo "$ac_ct_RANLIB" >&6; }
3972 else
3973 { $as_echo "$as_me:$LINENO: result: no" >&5
3974 $as_echo "no" >&6; }
3975 fi
3976
3977 if test "x$ac_ct_RANLIB" = x; then
3978 RANLIB=":"
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986 RANLIB=$ac_ct_RANLIB
3987 fi
3988 else
3989 RANLIB="$ac_cv_prog_RANLIB"
3990 fi
3991
3992 # Extract the first word of "cflow", so it can be a program name with args.
3993 set dummy cflow; ac_word=$2
3994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3997 $as_echo_n "(cached) " >&6
3998 else
3999 case $CFLOW_CMD in
4000 [\\/]* | ?:[\\/]*)
4001 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4002 ;;
4003 *)
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015 done
4016 done
4017 IFS=$as_save_IFS
4018
4019 ;;
4020 esac
4021 fi
4022 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4023 if test -n "$CFLOW_CMD"; then
4024 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4025 $as_echo "$CFLOW_CMD" >&6; }
4026 else
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032 # Extract the first word of "cscope", so it can be a program name with args.
4033 set dummy cscope; ac_word=$2
4034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4037 $as_echo_n "(cached) " >&6
4038 else
4039 case $CSCOPE_CMD in
4040 [\\/]* | ?:[\\/]*)
4041 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4042 ;;
4043 *)
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055 done
4056 done
4057 IFS=$as_save_IFS
4058
4059 ;;
4060 esac
4061 fi
4062 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4063 if test -n "$CSCOPE_CMD"; then
4064 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4065 $as_echo "$CSCOPE_CMD" >&6; }
4066 else
4067 { $as_echo "$as_me:$LINENO: result: no" >&5
4068 $as_echo "no" >&6; }
4069 fi
4070
4071
4072
4073 ################################################################################
4074
4075
4076
4077
4078
4079 ac_header_dirent=no
4080 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4081 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4082 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4083 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <sys/types.h>
4094 #include <$ac_hdr>
4095
4096 int
4097 main ()
4098 {
4099 if ((DIR *) 0)
4100 return 0;
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113 (eval "$ac_compile") 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } && {
4120 test -z "$ac_c_werror_flag" ||
4121 test ! -s conftest.err
4122 } && test -s conftest.$ac_objext; then
4123 eval "$as_ac_Header=yes"
4124 else
4125 $as_echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128 eval "$as_ac_Header=no"
4129 fi
4130
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 ac_res=`eval 'as_val=${'$as_ac_Header'}
4134 $as_echo "$as_val"'`
4135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4136 $as_echo "$ac_res" >&6; }
4137 as_val=`eval 'as_val=${'$as_ac_Header'}
4138 $as_echo "$as_val"'`
4139 if test "x$as_val" = x""yes; then
4140 cat >>confdefs.h <<_ACEOF
4141 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4142 _ACEOF
4143
4144 ac_header_dirent=$ac_hdr; break
4145 fi
4146
4147 done
4148 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4149 if test $ac_header_dirent = dirent.h; then
4150 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4151 $as_echo_n "checking for library containing opendir... " >&6; }
4152 if test "${ac_cv_search_opendir+set}" = set; then
4153 $as_echo_n "(cached) " >&6
4154 else
4155 ac_func_search_save_LIBS=$LIBS
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162
4163 /* Override any GCC internal prototype to avoid an error.
4164 Use char because int might match the return type of a GCC
4165 builtin and then its argument prototype would still apply. */
4166 #ifdef __cplusplus
4167 extern "C"
4168 #endif
4169 char opendir ();
4170 int
4171 main ()
4172 {
4173 return opendir ();
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 for ac_lib in '' dir; do
4179 if test -z "$ac_lib"; then
4180 ac_res="none required"
4181 else
4182 ac_res=-l$ac_lib
4183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4184 fi
4185 rm -f conftest.$ac_objext conftest$ac_exeext
4186 if { (ac_try="$ac_link"
4187 case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190 esac
4191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4192 $as_echo "$ac_try_echo") >&5
4193 (eval "$ac_link") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } && {
4200 test -z "$ac_c_werror_flag" ||
4201 test ! -s conftest.err
4202 } && test -s conftest$ac_exeext && {
4203 test "$cross_compiling" = yes ||
4204 $as_test_x conftest$ac_exeext
4205 }; then
4206 ac_cv_search_opendir=$ac_res
4207 else
4208 $as_echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211
4212 fi
4213
4214 rm -rf conftest.dSYM
4215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4216 conftest$ac_exeext
4217 if test "${ac_cv_search_opendir+set}" = set; then
4218 break
4219 fi
4220 done
4221 if test "${ac_cv_search_opendir+set}" = set; then
4222 :
4223 else
4224 ac_cv_search_opendir=no
4225 fi
4226 rm conftest.$ac_ext
4227 LIBS=$ac_func_search_save_LIBS
4228 fi
4229 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4230 $as_echo "$ac_cv_search_opendir" >&6; }
4231 ac_res=$ac_cv_search_opendir
4232 if test "$ac_res" != no; then
4233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4234
4235 fi
4236
4237 else
4238 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4239 $as_echo_n "checking for library containing opendir... " >&6; }
4240 if test "${ac_cv_search_opendir+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4242 else
4243 ac_func_search_save_LIBS=$LIBS
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250
4251 /* Override any GCC internal prototype to avoid an error.
4252 Use char because int might match the return type of a GCC
4253 builtin and then its argument prototype would still apply. */
4254 #ifdef __cplusplus
4255 extern "C"
4256 #endif
4257 char opendir ();
4258 int
4259 main ()
4260 {
4261 return opendir ();
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 for ac_lib in '' x; do
4267 if test -z "$ac_lib"; then
4268 ac_res="none required"
4269 else
4270 ac_res=-l$ac_lib
4271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4272 fi
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (ac_try="$ac_link"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281 (eval "$ac_link") 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest$ac_exeext && {
4291 test "$cross_compiling" = yes ||
4292 $as_test_x conftest$ac_exeext
4293 }; then
4294 ac_cv_search_opendir=$ac_res
4295 else
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299
4300 fi
4301
4302 rm -rf conftest.dSYM
4303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4304 conftest$ac_exeext
4305 if test "${ac_cv_search_opendir+set}" = set; then
4306 break
4307 fi
4308 done
4309 if test "${ac_cv_search_opendir+set}" = set; then
4310 :
4311 else
4312 ac_cv_search_opendir=no
4313 fi
4314 rm conftest.$ac_ext
4315 LIBS=$ac_func_search_save_LIBS
4316 fi
4317 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4318 $as_echo "$ac_cv_search_opendir" >&6; }
4319 ac_res=$ac_cv_search_opendir
4320 if test "$ac_res" != no; then
4321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4322
4323 fi
4324
4325 fi
4326
4327 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4328 $as_echo_n "checking for ANSI C header files... " >&6; }
4329 if test "${ac_cv_header_stdc+set}" = set; then
4330 $as_echo_n "(cached) " >&6
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <stdlib.h>
4339 #include <stdarg.h>
4340 #include <string.h>
4341 #include <float.h>
4342
4343 int
4344 main ()
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4353 case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4358 $as_echo "$ac_try_echo") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.$ac_objext; then
4369 ac_cv_header_stdc=yes
4370 else
4371 $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 ac_cv_header_stdc=no
4375 fi
4376
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378
4379 if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <string.h>
4388
4389 _ACEOF
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev/null 2>&1; then
4392 :
4393 else
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f conftest*
4397
4398 fi
4399
4400 if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <stdlib.h>
4409
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "free" >/dev/null 2>&1; then
4413 :
4414 else
4415 ac_cv_header_stdc=no
4416 fi
4417 rm -f conftest*
4418
4419 fi
4420
4421 if test $ac_cv_header_stdc = yes; then
4422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4423 if test "$cross_compiling" = yes; then
4424 :
4425 else
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <ctype.h>
4433 #include <stdlib.h>
4434 #if ((' ' & 0x0FF) == 0x020)
4435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4437 #else
4438 # define ISLOWER(c) \
4439 (('a' <= (c) && (c) <= 'i') \
4440 || ('j' <= (c) && (c) <= 'r') \
4441 || ('s' <= (c) && (c) <= 'z'))
4442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4443 #endif
4444
4445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4446 int
4447 main ()
4448 {
4449 int i;
4450 for (i = 0; i < 256; i++)
4451 if (XOR (islower (i), ISLOWER (i))
4452 || toupper (i) != TOUPPER (i))
4453 return 2;
4454 return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest$ac_exeext
4458 if { (ac_try="$ac_link"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_link") 2>&5
4466 ac_status=$?
4467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_try") 2>&5
4476 ac_status=$?
4477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 :
4480 else
4481 $as_echo "$as_me: program exited with status $ac_status" >&5
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ( exit $ac_status )
4486 ac_cv_header_stdc=no
4487 fi
4488 rm -rf conftest.dSYM
4489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4490 fi
4491
4492
4493 fi
4494 fi
4495 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4496 $as_echo "$ac_cv_header_stdc" >&6; }
4497 if test $ac_cv_header_stdc = yes; then
4498
4499 cat >>confdefs.h <<\_ACEOF
4500 #define STDC_HEADERS 1
4501 _ACEOF
4502
4503 fi
4504
4505 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4506 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4507 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4508 $as_echo_n "(cached) " >&6
4509 else
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #include <sys/types.h>
4517 #include <sys/wait.h>
4518 #ifndef WEXITSTATUS
4519 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4520 #endif
4521 #ifndef WIFEXITED
4522 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4523 #endif
4524
4525 int
4526 main ()
4527 {
4528 int s;
4529 wait (&s);
4530 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (ac_try="$ac_compile"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4542 $as_echo "$ac_try_echo") >&5
4543 (eval "$ac_compile") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.$ac_objext; then
4553 ac_cv_header_sys_wait_h=yes
4554 else
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ac_cv_header_sys_wait_h=no
4559 fi
4560
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 fi
4563 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4564 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4565 if test $ac_cv_header_sys_wait_h = yes; then
4566
4567 cat >>confdefs.h <<\_ACEOF
4568 #define HAVE_SYS_WAIT_H 1
4569 _ACEOF
4570
4571 fi
4572
4573 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4574 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4575 if test "${ac_cv_header_time+set}" = set; then
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #include <sys/types.h>
4585 #include <sys/time.h>
4586 #include <time.h>
4587
4588 int
4589 main ()
4590 {
4591 if ((struct tm *) 0)
4592 return 0;
4593 ;
4594 return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605 (eval "$ac_compile") 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest.$ac_objext; then
4615 ac_cv_header_time=yes
4616 else
4617 $as_echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_cv_header_time=no
4621 fi
4622
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 fi
4625 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4626 $as_echo "$ac_cv_header_time" >&6; }
4627 if test $ac_cv_header_time = yes; then
4628
4629 cat >>confdefs.h <<\_ACEOF
4630 #define TIME_WITH_SYS_TIME 1
4631 _ACEOF
4632
4633 fi
4634
4635
4636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4647 inttypes.h stdint.h unistd.h
4648 do
4649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 $as_echo_n "checking for $ac_header... " >&6; }
4652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4662
4663 #include <$ac_header>
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (ac_try="$ac_compile"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_compile") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
4683 eval "$as_ac_Header=yes"
4684 else
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 eval "$as_ac_Header=no"
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 ac_res=`eval 'as_val=${'$as_ac_Header'}
4694 $as_echo "$as_val"'`
4695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4696 $as_echo "$ac_res" >&6; }
4697 as_val=`eval 'as_val=${'$as_ac_Header'}
4698 $as_echo "$as_val"'`
4699 if test "x$as_val" = x""yes; then
4700 cat >>confdefs.h <<_ACEOF
4701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 _ACEOF
4703
4704 fi
4705
4706 done
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4723 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4724 do
4725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4727 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4728 $as_echo_n "checking for $ac_header... " >&6; }
4729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4730 $as_echo_n "(cached) " >&6
4731 fi
4732 ac_res=`eval 'as_val=${'$as_ac_Header'}
4733 $as_echo "$as_val"'`
4734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4735 $as_echo "$ac_res" >&6; }
4736 else
4737 # Is the header compilable?
4738 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4739 $as_echo_n "checking $ac_header usability... " >&6; }
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 $ac_includes_default
4747 #include <$ac_header>
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 ac_header_compiler=yes
4768 else
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_compiler=no
4773 fi
4774
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4777 $as_echo "$ac_header_compiler" >&6; }
4778
4779 # Is the header present?
4780 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4781 $as_echo_n "checking $ac_header presence... " >&6; }
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h. */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 #include <$ac_header>
4789 _ACEOF
4790 if { (ac_try="$ac_cpp conftest.$ac_ext"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } >/dev/null && {
4804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 }; then
4807 ac_header_preproc=yes
4808 else
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 ac_header_preproc=no
4813 fi
4814
4815 rm -f conftest.err conftest.$ac_ext
4816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4817 $as_echo "$ac_header_preproc" >&6; }
4818
4819 # So? What about this header?
4820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4821 yes:no: )
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4823 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4826 ac_header_preproc=yes
4827 ;;
4828 no:yes:* )
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4830 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4832 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4834 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4836 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4840 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4841
4842 ;;
4843 esac
4844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4845 $as_echo_n "checking for $ac_header... " >&6; }
4846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4847 $as_echo_n "(cached) " >&6
4848 else
4849 eval "$as_ac_Header=\$ac_header_preproc"
4850 fi
4851 ac_res=`eval 'as_val=${'$as_ac_Header'}
4852 $as_echo "$as_val"'`
4853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4854 $as_echo "$ac_res" >&6; }
4855
4856 fi
4857 as_val=`eval 'as_val=${'$as_ac_Header'}
4858 $as_echo "$as_val"'`
4859 if test "x$as_val" = x""yes; then
4860 cat >>confdefs.h <<_ACEOF
4861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4862 _ACEOF
4863
4864 else
4865 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4866 $as_echo "$as_me: error: bailing out" >&2;}
4867 { (exit 1); exit 1; }; }
4868 fi
4869
4870 done
4871
4872
4873 case "$host_os" in
4874 linux*)
4875
4876
4877
4878 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4879 do
4880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4883 $as_echo_n "checking for $ac_header... " >&6; }
4884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4885 $as_echo_n "(cached) " >&6
4886 fi
4887 ac_res=`eval 'as_val=${'$as_ac_Header'}
4888 $as_echo "$as_val"'`
4889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4890 $as_echo "$ac_res" >&6; }
4891 else
4892 # Is the header compilable?
4893 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4894 $as_echo_n "checking $ac_header usability... " >&6; }
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 $ac_includes_default
4902 #include <$ac_header>
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4922 ac_header_compiler=yes
4923 else
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_header_compiler=no
4928 fi
4929
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4932 $as_echo "$ac_header_compiler" >&6; }
4933
4934 # Is the header present?
4935 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4936 $as_echo_n "checking $ac_header presence... " >&6; }
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <$ac_header>
4944 _ACEOF
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951 $as_echo "$ac_try_echo") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 ac_header_preproc=yes
4963 else
4964 $as_echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_header_preproc=no
4968 fi
4969
4970 rm -f conftest.err conftest.$ac_ext
4971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4972 $as_echo "$ac_header_preproc" >&6; }
4973
4974 # So? What about this header?
4975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4976 yes:no: )
4977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4978 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4981 ac_header_preproc=yes
4982 ;;
4983 no:yes:* )
4984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4985 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4987 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4989 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4991 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4995 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4996
4997 ;;
4998 esac
4999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5000 $as_echo_n "checking for $ac_header... " >&6; }
5001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5002 $as_echo_n "(cached) " >&6
5003 else
5004 eval "$as_ac_Header=\$ac_header_preproc"
5005 fi
5006 ac_res=`eval 'as_val=${'$as_ac_Header'}
5007 $as_echo "$as_val"'`
5008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5009 $as_echo "$ac_res" >&6; }
5010
5011 fi
5012 as_val=`eval 'as_val=${'$as_ac_Header'}
5013 $as_echo "$as_val"'`
5014 if test "x$as_val" = x""yes; then
5015 cat >>confdefs.h <<_ACEOF
5016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5017 _ACEOF
5018
5019 else
5020 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5021 $as_echo "$as_me: error: bailing out" >&2;}
5022 { (exit 1); exit 1; }; }
5023 fi
5024
5025 done
5026 ;;
5027 darwin*)
5028
5029
5030 for ac_header in machine/endian.h sys/disk.h
5031 do
5032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 $as_echo_n "checking for $ac_header... " >&6; }
5036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5037 $as_echo_n "(cached) " >&6
5038 fi
5039 ac_res=`eval 'as_val=${'$as_ac_Header'}
5040 $as_echo "$as_val"'`
5041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5042 $as_echo "$ac_res" >&6; }
5043 else
5044 # Is the header compilable?
5045 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5046 $as_echo_n "checking $ac_header usability... " >&6; }
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 $ac_includes_default
5054 #include <$ac_header>
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063 $as_echo "$ac_try_echo") >&5
5064 (eval "$ac_compile") 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } && {
5071 test -z "$ac_c_werror_flag" ||
5072 test ! -s conftest.err
5073 } && test -s conftest.$ac_objext; then
5074 ac_header_compiler=yes
5075 else
5076 $as_echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 ac_header_compiler=no
5080 fi
5081
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5084 $as_echo "$ac_header_compiler" >&6; }
5085
5086 # Is the header present?
5087 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5088 $as_echo_n "checking $ac_header presence... " >&6; }
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <$ac_header>
5096 _ACEOF
5097 if { (ac_try="$ac_cpp conftest.$ac_ext"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5103 $as_echo "$ac_try_echo") >&5
5104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null && {
5111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 }; then
5114 ac_header_preproc=yes
5115 else
5116 $as_echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_preproc=no
5120 fi
5121
5122 rm -f conftest.err conftest.$ac_ext
5123 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124 $as_echo "$ac_header_preproc" >&6; }
5125
5126 # So? What about this header?
5127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5128 yes:no: )
5129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5132 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5133 ac_header_preproc=yes
5134 ;;
5135 no:yes:* )
5136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5137 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5139 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5141 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5143 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5145 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5147 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5148
5149 ;;
5150 esac
5151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 $as_echo_n "checking for $ac_header... " >&6; }
5153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5154 $as_echo_n "(cached) " >&6
5155 else
5156 eval "$as_ac_Header=\$ac_header_preproc"
5157 fi
5158 ac_res=`eval 'as_val=${'$as_ac_Header'}
5159 $as_echo "$as_val"'`
5160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5161 $as_echo "$ac_res" >&6; }
5162
5163 fi
5164 as_val=`eval 'as_val=${'$as_ac_Header'}
5165 $as_echo "$as_val"'`
5166 if test "x$as_val" = x""yes; then
5167 cat >>confdefs.h <<_ACEOF
5168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169 _ACEOF
5170
5171 else
5172 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5173 $as_echo "$as_me: error: bailing out" >&2;}
5174 { (exit 1); exit 1; }; }
5175 fi
5176
5177 done
5178 ;;
5179 esac
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5198 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5199 sys/types.h unistd.h
5200 do
5201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5203 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5204 $as_echo_n "checking for $ac_header... " >&6; }
5205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5206 $as_echo_n "(cached) " >&6
5207 fi
5208 ac_res=`eval 'as_val=${'$as_ac_Header'}
5209 $as_echo "$as_val"'`
5210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5211 $as_echo "$ac_res" >&6; }
5212 else
5213 # Is the header compilable?
5214 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5215 $as_echo_n "checking $ac_header usability... " >&6; }
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5223 #include <$ac_header>
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5227 case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230 esac
5231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5232 $as_echo "$ac_try_echo") >&5
5233 (eval "$ac_compile") 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } && {
5240 test -z "$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 } && test -s conftest.$ac_objext; then
5243 ac_header_compiler=yes
5244 else
5245 $as_echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_header_compiler=no
5249 fi
5250
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5253 $as_echo "$ac_header_compiler" >&6; }
5254
5255 # Is the header present?
5256 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5257 $as_echo_n "checking $ac_header presence... " >&6; }
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 #include <$ac_header>
5265 _ACEOF
5266 if { (ac_try="$ac_cpp conftest.$ac_ext"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272 $as_echo "$ac_try_echo") >&5
5273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } >/dev/null && {
5280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 }; then
5283 ac_header_preproc=yes
5284 else
5285 $as_echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_header_preproc=no
5289 fi
5290
5291 rm -f conftest.err conftest.$ac_ext
5292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5293 $as_echo "$ac_header_preproc" >&6; }
5294
5295 # So? What about this header?
5296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5297 yes:no: )
5298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5299 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5302 ac_header_preproc=yes
5303 ;;
5304 no:yes:* )
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5306 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5308 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5310 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5312 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5316 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5317
5318 ;;
5319 esac
5320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5321 $as_echo_n "checking for $ac_header... " >&6; }
5322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5323 $as_echo_n "(cached) " >&6
5324 else
5325 eval "$as_ac_Header=\$ac_header_preproc"
5326 fi
5327 ac_res=`eval 'as_val=${'$as_ac_Header'}
5328 $as_echo "$as_val"'`
5329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5330 $as_echo "$ac_res" >&6; }
5331
5332 fi
5333 as_val=`eval 'as_val=${'$as_ac_Header'}
5334 $as_echo "$as_val"'`
5335 if test "x$as_val" = x""yes; then
5336 cat >>confdefs.h <<_ACEOF
5337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338 _ACEOF
5339
5340 else
5341 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5342 $as_echo "$as_me: error: bailing out" >&2;}
5343 { (exit 1); exit 1; }; }
5344 fi
5345
5346 done
5347
5348
5349
5350 for ac_header in termios.h sys/statvfs.h
5351 do
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5355 $as_echo_n "checking for $ac_header... " >&6; }
5356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5357 $as_echo_n "(cached) " >&6
5358 fi
5359 ac_res=`eval 'as_val=${'$as_ac_Header'}
5360 $as_echo "$as_val"'`
5361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5362 $as_echo "$ac_res" >&6; }
5363 else
5364 # Is the header compilable?
5365 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5366 $as_echo_n "checking $ac_header usability... " >&6; }
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5374 #include <$ac_header>
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (ac_try="$ac_compile"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383 $as_echo "$ac_try_echo") >&5
5384 (eval "$ac_compile") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
5394 ac_header_compiler=yes
5395 else
5396 $as_echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 ac_header_compiler=no
5400 fi
5401
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5404 $as_echo "$ac_header_compiler" >&6; }
5405
5406 # Is the header present?
5407 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5408 $as_echo_n "checking $ac_header presence... " >&6; }
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 #include <$ac_header>
5416 _ACEOF
5417 if { (ac_try="$ac_cpp conftest.$ac_ext"
5418 case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421 esac
5422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5423 $as_echo "$ac_try_echo") >&5
5424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null && {
5431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5432 test ! -s conftest.err
5433 }; then
5434 ac_header_preproc=yes
5435 else
5436 $as_echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 ac_header_preproc=no
5440 fi
5441
5442 rm -f conftest.err conftest.$ac_ext
5443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5444 $as_echo "$ac_header_preproc" >&6; }
5445
5446 # So? What about this header?
5447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5448 yes:no: )
5449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5450 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5453 ac_header_preproc=yes
5454 ;;
5455 no:yes:* )
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5457 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5459 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5461 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5463 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5467 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5468
5469 ;;
5470 esac
5471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 $as_echo_n "checking for $ac_header... " >&6; }
5473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5474 $as_echo_n "(cached) " >&6
5475 else
5476 eval "$as_ac_Header=\$ac_header_preproc"
5477 fi
5478 ac_res=`eval 'as_val=${'$as_ac_Header'}
5479 $as_echo "$as_val"'`
5480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5481 $as_echo "$ac_res" >&6; }
5482
5483 fi
5484 as_val=`eval 'as_val=${'$as_ac_Header'}
5485 $as_echo "$as_val"'`
5486 if test "x$as_val" = x""yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5489 _ACEOF
5490
5491 fi
5492
5493 done
5494
5495
5496 ################################################################################
5497 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5498 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5499 if test "${ac_cv_c_const+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5501 else
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508
5509 int
5510 main ()
5511 {
5512 /* FIXME: Include the comments suggested by Paul. */
5513 #ifndef __cplusplus
5514 /* Ultrix mips cc rejects this. */
5515 typedef int charset[2];
5516 const charset cs;
5517 /* SunOS 4.1.1 cc rejects this. */
5518 char const *const *pcpcc;
5519 char **ppc;
5520 /* NEC SVR4.0.2 mips cc rejects this. */
5521 struct point {int x, y;};
5522 static struct point const zero = {0,0};
5523 /* AIX XL C 1.02.0.0 rejects this.
5524 It does not let you subtract one const X* pointer from another in
5525 an arm of an if-expression whose if-part is not a constant
5526 expression */
5527 const char *g = "string";
5528 pcpcc = &g + (g ? g-g : 0);
5529 /* HPUX 7.0 cc rejects these. */
5530 ++pcpcc;
5531 ppc = (char**) pcpcc;
5532 pcpcc = (char const *const *) ppc;
5533 { /* SCO 3.2v4 cc rejects this. */
5534 char *t;
5535 char const *s = 0 ? (char *) 0 : (char const *) 0;
5536
5537 *t++ = 0;
5538 if (s) return 0;
5539 }
5540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5541 int x[] = {25, 17};
5542 const int *foo = &x[0];
5543 ++foo;
5544 }
5545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5546 typedef const int *iptr;
5547 iptr p = 0;
5548 ++p;
5549 }
5550 { /* AIX XL C 1.02.0.0 rejects this saying
5551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5552 struct s { int j; const int *ap[3]; };
5553 struct s *b; b->j = 5;
5554 }
5555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5556 const int foo = 10;
5557 if (!foo) return 0;
5558 }
5559 return !cs[0] && !zero.x;
5560 #endif
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_c_const=yes
5585 else
5586 $as_echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ac_cv_c_const=no
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 fi
5594 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5595 $as_echo "$ac_cv_c_const" >&6; }
5596 if test $ac_cv_c_const = no; then
5597
5598 cat >>confdefs.h <<\_ACEOF
5599 #define const /**/
5600 _ACEOF
5601
5602 fi
5603
5604 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5605 $as_echo_n "checking for inline... " >&6; }
5606 if test "${ac_cv_c_inline+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5608 else
5609 ac_cv_c_inline=no
5610 for ac_kw in inline __inline__ __inline; do
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 #ifndef __cplusplus
5618 typedef int foo_t;
5619 static $ac_kw foo_t static_foo () {return 0; }
5620 $ac_kw foo_t foo () {return 0; }
5621 #endif
5622
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631 $as_echo "$ac_try_echo") >&5
5632 (eval "$ac_compile") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest.$ac_objext; then
5642 ac_cv_c_inline=$ac_kw
5643 else
5644 $as_echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647
5648 fi
5649
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 test "$ac_cv_c_inline" != no && break
5652 done
5653
5654 fi
5655 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5656 $as_echo "$ac_cv_c_inline" >&6; }
5657
5658
5659 case $ac_cv_c_inline in
5660 inline | yes) ;;
5661 *)
5662 case $ac_cv_c_inline in
5663 no) ac_val=;;
5664 *) ac_val=$ac_cv_c_inline;;
5665 esac
5666 cat >>confdefs.h <<_ACEOF
5667 #ifndef __cplusplus
5668 #define inline $ac_val
5669 #endif
5670 _ACEOF
5671 ;;
5672 esac
5673
5674 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5675 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5676 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5678 else
5679 cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 $ac_includes_default
5686 int
5687 main ()
5688 {
5689 static struct stat ac_aggr;
5690 if (ac_aggr.st_rdev)
5691 return 0;
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5698 case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701 esac
5702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5703 $as_echo "$ac_try_echo") >&5
5704 (eval "$ac_compile") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest.$ac_objext; then
5714 ac_cv_member_struct_stat_st_rdev=yes
5715 else
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 $ac_includes_default
5726 int
5727 main ()
5728 {
5729 static struct stat ac_aggr;
5730 if (sizeof ac_aggr.st_rdev)
5731 return 0;
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5743 $as_echo "$ac_try_echo") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_cv_member_struct_stat_st_rdev=yes
5755 else
5756 $as_echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_cv_member_struct_stat_st_rdev=no
5760 fi
5761
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 fi
5764
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5768 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5769 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5770
5771 cat >>confdefs.h <<_ACEOF
5772 #define HAVE_STRUCT_STAT_ST_RDEV 1
5773 _ACEOF
5774
5775
5776 fi
5777
5778 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5779 $as_echo_n "checking for off_t... " >&6; }
5780 if test "${ac_cv_type_off_t+set}" = set; then
5781 $as_echo_n "(cached) " >&6
5782 else
5783 ac_cv_type_off_t=no
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5791 int
5792 main ()
5793 {
5794 if (sizeof (off_t))
5795 return 0;
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 $ac_includes_default
5825 int
5826 main ()
5827 {
5828 if (sizeof ((off_t)))
5829 return 0;
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5836 case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 :
5853 else
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_cv_type_off_t=yes
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 else
5862 $as_echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865
5866 fi
5867
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5871 $as_echo "$ac_cv_type_off_t" >&6; }
5872 if test "x$ac_cv_type_off_t" = x""yes; then
5873 :
5874 else
5875
5876 cat >>confdefs.h <<_ACEOF
5877 #define off_t long int
5878 _ACEOF
5879
5880 fi
5881
5882 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5883 $as_echo_n "checking for pid_t... " >&6; }
5884 if test "${ac_cv_type_pid_t+set}" = set; then
5885 $as_echo_n "(cached) " >&6
5886 else
5887 ac_cv_type_pid_t=no
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5895 int
5896 main ()
5897 {
5898 if (sizeof (pid_t))
5899 return 0;
5900 ;
5901 return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909 esac
5910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911 $as_echo "$ac_try_echo") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } && {
5919 test -z "$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 } && test -s conftest.$ac_objext; then
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5929 int
5930 main ()
5931 {
5932 if (sizeof ((pid_t)))
5933 return 0;
5934 ;
5935 return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 :
5957 else
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 ac_cv_type_pid_t=yes
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 else
5966 $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5975 $as_echo "$ac_cv_type_pid_t" >&6; }
5976 if test "x$ac_cv_type_pid_t" = x""yes; then
5977 :
5978 else
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define pid_t int
5982 _ACEOF
5983
5984 fi
5985
5986 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5987 $as_echo_n "checking return type of signal handlers... " >&6; }
5988 if test "${ac_cv_type_signal+set}" = set; then
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 #include <sys/types.h>
5998 #include <signal.h>
5999
6000 int
6001 main ()
6002 {
6003 return *(signal (0, 0)) (0) == 1;
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015 $as_echo "$ac_try_echo") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && {
6023 test -z "$ac_c_werror_flag" ||
6024 test ! -s conftest.err
6025 } && test -s conftest.$ac_objext; then
6026 ac_cv_type_signal=int
6027 else
6028 $as_echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ac_cv_type_signal=void
6032 fi
6033
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 fi
6036 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6037 $as_echo "$ac_cv_type_signal" >&6; }
6038
6039 cat >>confdefs.h <<_ACEOF
6040 #define RETSIGTYPE $ac_cv_type_signal
6041 _ACEOF
6042
6043
6044 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6045 $as_echo_n "checking for size_t... " >&6; }
6046 if test "${ac_cv_type_size_t+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6048 else
6049 ac_cv_type_size_t=no
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 $ac_includes_default
6057 int
6058 main ()
6059 {
6060 if (sizeof (size_t))
6061 return 0;
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6068 case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6073 $as_echo "$ac_try_echo") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 $ac_includes_default
6091 int
6092 main ()
6093 {
6094 if (sizeof ((size_t)))
6095 return 0;
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (ac_try="$ac_compile"
6102 case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105 esac
6106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6107 $as_echo "$ac_try_echo") >&5
6108 (eval "$ac_compile") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest.$ac_objext; then
6118 :
6119 else
6120 $as_echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_type_size_t=yes
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 else
6128 $as_echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131
6132 fi
6133
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 fi
6136 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6137 $as_echo "$ac_cv_type_size_t" >&6; }
6138 if test "x$ac_cv_type_size_t" = x""yes; then
6139 :
6140 else
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define size_t unsigned int
6144 _ACEOF
6145
6146 fi
6147
6148 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6149 $as_echo_n "checking for mode_t... " >&6; }
6150 if test "${ac_cv_type_mode_t+set}" = set; then
6151 $as_echo_n "(cached) " >&6
6152 else
6153 ac_cv_type_mode_t=no
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 $ac_includes_default
6161 int
6162 main ()
6163 {
6164 if (sizeof (mode_t))
6165 return 0;
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6195 int
6196 main ()
6197 {
6198 if (sizeof ((mode_t)))
6199 return 0;
6200 ;
6201 return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 :
6223 else
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_cv_type_mode_t=yes
6228 fi
6229
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 else
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
6236 fi
6237
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 fi
6240 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6241 $as_echo "$ac_cv_type_mode_t" >&6; }
6242 if test "x$ac_cv_type_mode_t" = x""yes; then
6243 :
6244 else
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define mode_t int
6248 _ACEOF
6249
6250 fi
6251
6252 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6253 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6254 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6255 $as_echo_n "(cached) " >&6
6256 else
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6264 int
6265 main ()
6266 {
6267 static struct stat ac_aggr;
6268 if (ac_aggr.st_rdev)
6269 return 0;
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6276 case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279 esac
6280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6281 $as_echo "$ac_try_echo") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
6292 ac_cv_member_struct_stat_st_rdev=yes
6293 else
6294 $as_echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6296
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 $ac_includes_default
6304 int
6305 main ()
6306 {
6307 static struct stat ac_aggr;
6308 if (sizeof ac_aggr.st_rdev)
6309 return 0;
6310 ;
6311 return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6321 $as_echo "$ac_try_echo") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_c_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest.$ac_objext; then
6332 ac_cv_member_struct_stat_st_rdev=yes
6333 else
6334 $as_echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_cv_member_struct_stat_st_rdev=no
6338 fi
6339
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 fi
6342
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344 fi
6345 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6346 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6347 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6348
6349 cat >>confdefs.h <<_ACEOF
6350 #define HAVE_STRUCT_STAT_ST_RDEV 1
6351 _ACEOF
6352
6353
6354 fi
6355
6356 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6357 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6358 if test "${ac_cv_struct_tm+set}" = set; then
6359 $as_echo_n "(cached) " >&6
6360 else
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <sys/types.h>
6368 #include <time.h>
6369
6370 int
6371 main ()
6372 {
6373 struct tm tm;
6374 int *p = &tm.tm_sec;
6375 return !p;
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6387 $as_echo "$ac_try_echo") >&5
6388 (eval "$ac_compile") 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && {
6395 test -z "$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6397 } && test -s conftest.$ac_objext; then
6398 ac_cv_struct_tm=time.h
6399 else
6400 $as_echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_cv_struct_tm=sys/time.h
6404 fi
6405
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 fi
6408 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6409 $as_echo "$ac_cv_struct_tm" >&6; }
6410 if test $ac_cv_struct_tm = sys/time.h; then
6411
6412 cat >>confdefs.h <<\_ACEOF
6413 #define TM_IN_SYS_TIME 1
6414 _ACEOF
6415
6416 fi
6417
6418
6419 ################################################################################
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6438 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6439 uname
6440 do
6441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6443 $as_echo_n "checking for $ac_func... " >&6; }
6444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h. */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6455 #define $ac_func innocuous_$ac_func
6456
6457 /* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char $ac_func (); below.
6459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460 <limits.h> exists even on freestanding compilers. */
6461
6462 #ifdef __STDC__
6463 # include <limits.h>
6464 #else
6465 # include <assert.h>
6466 #endif
6467
6468 #undef $ac_func
6469
6470 /* Override any GCC internal prototype to avoid an error.
6471 Use char because int might match the return type of a GCC
6472 builtin and then its argument prototype would still apply. */
6473 #ifdef __cplusplus
6474 extern "C"
6475 #endif
6476 char $ac_func ();
6477 /* The GNU C library defines this for functions which it implements
6478 to always fail with ENOSYS. Some functions are actually named
6479 something starting with __ and the normal name is an alias. */
6480 #if defined __stub_$ac_func || defined __stub___$ac_func
6481 choke me
6482 #endif
6483
6484 int
6485 main ()
6486 {
6487 return $ac_func ();
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (ac_try="$ac_link"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_link") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest$ac_exeext && {
6510 test "$cross_compiling" = yes ||
6511 $as_test_x conftest$ac_exeext
6512 }; then
6513 eval "$as_ac_var=yes"
6514 else
6515 $as_echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 eval "$as_ac_var=no"
6519 fi
6520
6521 rm -rf conftest.dSYM
6522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 conftest$ac_exeext conftest.$ac_ext
6524 fi
6525 ac_res=`eval 'as_val=${'$as_ac_var'}
6526 $as_echo "$as_val"'`
6527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 as_val=`eval 'as_val=${'$as_ac_var'}
6530 $as_echo "$as_val"'`
6531 if test "x$as_val" = x""yes; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 else
6537 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6538 $as_echo "$as_me: error: bailing out" >&2;}
6539 { (exit 1); exit 1; }; }
6540 fi
6541 done
6542
6543
6544 for ac_func in siginterrupt
6545 do
6546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6547 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6548 $as_echo_n "checking for $ac_func... " >&6; }
6549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6560 #define $ac_func innocuous_$ac_func
6561
6562 /* System header to define __stub macros and hopefully few prototypes,
6563 which can conflict with char $ac_func (); below.
6564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 <limits.h> exists even on freestanding compilers. */
6566
6567 #ifdef __STDC__
6568 # include <limits.h>
6569 #else
6570 # include <assert.h>
6571 #endif
6572
6573 #undef $ac_func
6574
6575 /* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 char $ac_func ();
6582 /* The GNU C library defines this for functions which it implements
6583 to always fail with ENOSYS. Some functions are actually named
6584 something starting with __ and the normal name is an alias. */
6585 #if defined __stub_$ac_func || defined __stub___$ac_func
6586 choke me
6587 #endif
6588
6589 int
6590 main ()
6591 {
6592 return $ac_func ();
6593 ;
6594 return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (ac_try="$ac_link"
6599 case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6604 $as_echo "$ac_try_echo") >&5
6605 (eval "$ac_link") 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest$ac_exeext && {
6615 test "$cross_compiling" = yes ||
6616 $as_test_x conftest$ac_exeext
6617 }; then
6618 eval "$as_ac_var=yes"
6619 else
6620 $as_echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_var=no"
6624 fi
6625
6626 rm -rf conftest.dSYM
6627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6628 conftest$ac_exeext conftest.$ac_ext
6629 fi
6630 ac_res=`eval 'as_val=${'$as_ac_var'}
6631 $as_echo "$as_val"'`
6632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6633 $as_echo "$ac_res" >&6; }
6634 as_val=`eval 'as_val=${'$as_ac_var'}
6635 $as_echo "$as_val"'`
6636 if test "x$as_val" = x""yes; then
6637 cat >>confdefs.h <<_ACEOF
6638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6639 _ACEOF
6640
6641 fi
6642 done
6643
6644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6645 # for constant arguments. Useless!
6646 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6647 $as_echo_n "checking for working alloca.h... " >&6; }
6648 if test "${ac_cv_working_alloca_h+set}" = set; then
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <alloca.h>
6658 int
6659 main ()
6660 {
6661 char *p = (char *) alloca (2 * sizeof (int));
6662 if (p) return 0;
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6669 case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672 esac
6673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6674 $as_echo "$ac_try_echo") >&5
6675 (eval "$ac_link") 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest$ac_exeext && {
6685 test "$cross_compiling" = yes ||
6686 $as_test_x conftest$ac_exeext
6687 }; then
6688 ac_cv_working_alloca_h=yes
6689 else
6690 $as_echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693 ac_cv_working_alloca_h=no
6694 fi
6695
6696 rm -rf conftest.dSYM
6697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6698 conftest$ac_exeext conftest.$ac_ext
6699 fi
6700 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6701 $as_echo "$ac_cv_working_alloca_h" >&6; }
6702 if test $ac_cv_working_alloca_h = yes; then
6703
6704 cat >>confdefs.h <<\_ACEOF
6705 #define HAVE_ALLOCA_H 1
6706 _ACEOF
6707
6708 fi
6709
6710 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6711 $as_echo_n "checking for alloca... " >&6; }
6712 if test "${ac_cv_func_alloca_works+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6714 else
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #ifdef __GNUC__
6722 # define alloca __builtin_alloca
6723 #else
6724 # ifdef _MSC_VER
6725 # include <malloc.h>
6726 # define alloca _alloca
6727 # else
6728 # ifdef HAVE_ALLOCA_H
6729 # include <alloca.h>
6730 # else
6731 # ifdef _AIX
6732 #pragma alloca
6733 # else
6734 # ifndef alloca /* predefined by HP cc +Olibcalls */
6735 char *alloca ();
6736 # endif
6737 # endif
6738 # endif
6739 # endif
6740 #endif
6741
6742 int
6743 main ()
6744 {
6745 char *p = (char *) alloca (1);
6746 if (p) return 0;
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (ac_try="$ac_link"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6758 $as_echo "$ac_try_echo") >&5
6759 (eval "$ac_link") 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest$ac_exeext && {
6769 test "$cross_compiling" = yes ||
6770 $as_test_x conftest$ac_exeext
6771 }; then
6772 ac_cv_func_alloca_works=yes
6773 else
6774 $as_echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777 ac_cv_func_alloca_works=no
6778 fi
6779
6780 rm -rf conftest.dSYM
6781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6782 conftest$ac_exeext conftest.$ac_ext
6783 fi
6784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6785 $as_echo "$ac_cv_func_alloca_works" >&6; }
6786
6787 if test $ac_cv_func_alloca_works = yes; then
6788
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_ALLOCA 1
6791 _ACEOF
6792
6793 else
6794 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6795 # that cause trouble. Some versions do not even contain alloca or
6796 # contain a buggy version. If you still want to use their alloca,
6797 # use ar to extract alloca.o from them instead of compiling alloca.c.
6798
6799 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6800
6801 cat >>confdefs.h <<\_ACEOF
6802 #define C_ALLOCA 1
6803 _ACEOF
6804
6805
6806 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6807 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6808 if test "${ac_cv_os_cray+set}" = set; then
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #if defined CRAY && ! defined CRAY2
6818 webecray
6819 #else
6820 wenotbecray
6821 #endif
6822
6823 _ACEOF
6824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "webecray" >/dev/null 2>&1; then
6826 ac_cv_os_cray=yes
6827 else
6828 ac_cv_os_cray=no
6829 fi
6830 rm -f conftest*
6831
6832 fi
6833 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6834 $as_echo "$ac_cv_os_cray" >&6; }
6835 if test $ac_cv_os_cray = yes; then
6836 for ac_func in _getb67 GETB67 getb67; do
6837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6838 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6839 $as_echo_n "checking for $ac_func... " >&6; }
6840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6841 $as_echo_n "(cached) " >&6
6842 else
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6851 #define $ac_func innocuous_$ac_func
6852
6853 /* System header to define __stub macros and hopefully few prototypes,
6854 which can conflict with char $ac_func (); below.
6855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856 <limits.h> exists even on freestanding compilers. */
6857
6858 #ifdef __STDC__
6859 # include <limits.h>
6860 #else
6861 # include <assert.h>
6862 #endif
6863
6864 #undef $ac_func
6865
6866 /* Override any GCC internal prototype to avoid an error.
6867 Use char because int might match the return type of a GCC
6868 builtin and then its argument prototype would still apply. */
6869 #ifdef __cplusplus
6870 extern "C"
6871 #endif
6872 char $ac_func ();
6873 /* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
6876 #if defined __stub_$ac_func || defined __stub___$ac_func
6877 choke me
6878 #endif
6879
6880 int
6881 main ()
6882 {
6883 return $ac_func ();
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (ac_try="$ac_link"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_link") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest$ac_exeext && {
6906 test "$cross_compiling" = yes ||
6907 $as_test_x conftest$ac_exeext
6908 }; then
6909 eval "$as_ac_var=yes"
6910 else
6911 $as_echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 eval "$as_ac_var=no"
6915 fi
6916
6917 rm -rf conftest.dSYM
6918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6919 conftest$ac_exeext conftest.$ac_ext
6920 fi
6921 ac_res=`eval 'as_val=${'$as_ac_var'}
6922 $as_echo "$as_val"'`
6923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6924 $as_echo "$ac_res" >&6; }
6925 as_val=`eval 'as_val=${'$as_ac_var'}
6926 $as_echo "$as_val"'`
6927 if test "x$as_val" = x""yes; then
6928
6929 cat >>confdefs.h <<_ACEOF
6930 #define CRAY_STACKSEG_END $ac_func
6931 _ACEOF
6932
6933 break
6934 fi
6935
6936 done
6937 fi
6938
6939 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6940 $as_echo_n "checking stack direction for C alloca... " >&6; }
6941 if test "${ac_cv_c_stack_direction+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test "$cross_compiling" = yes; then
6945 ac_cv_c_stack_direction=0
6946 else
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 $ac_includes_default
6954 int
6955 find_stack_direction ()
6956 {
6957 static char *addr = 0;
6958 auto char dummy;
6959 if (addr == 0)
6960 {
6961 addr = &dummy;
6962 return find_stack_direction ();
6963 }
6964 else
6965 return (&dummy > addr) ? 1 : -1;
6966 }
6967
6968 int
6969 main ()
6970 {
6971 return find_stack_direction () < 0;
6972 }
6973 _ACEOF
6974 rm -f conftest$ac_exeext
6975 if { (ac_try="$ac_link"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6981 $as_echo "$ac_try_echo") >&5
6982 (eval "$ac_link") 2>&5
6983 ac_status=$?
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6986 { (case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989 esac
6990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6991 $as_echo "$ac_try_echo") >&5
6992 (eval "$ac_try") 2>&5
6993 ac_status=$?
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
6996 ac_cv_c_stack_direction=1
6997 else
6998 $as_echo "$as_me: program exited with status $ac_status" >&5
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ( exit $ac_status )
7003 ac_cv_c_stack_direction=-1
7004 fi
7005 rm -rf conftest.dSYM
7006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7007 fi
7008
7009
7010 fi
7011 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7012 $as_echo "$ac_cv_c_stack_direction" >&6; }
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define STACK_DIRECTION $ac_cv_c_stack_direction
7016 _ACEOF
7017
7018
7019 fi
7020
7021 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7022 $as_echo_n "checking whether closedir returns void... " >&6; }
7023 if test "${ac_cv_func_closedir_void+set}" = set; then
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test "$cross_compiling" = yes; then
7027 ac_cv_func_closedir_void=yes
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 #include <$ac_header_dirent>
7037 #ifndef __cplusplus
7038 int closedir ();
7039 #endif
7040
7041 int
7042 main ()
7043 {
7044 return closedir (opendir (".")) != 0;
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest$ac_exeext
7050 if { (ac_try="$ac_link"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7056 $as_echo "$ac_try_echo") >&5
7057 (eval "$ac_link") 2>&5
7058 ac_status=$?
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_try") 2>&5
7068 ac_status=$?
7069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 ac_cv_func_closedir_void=no
7072 else
7073 $as_echo "$as_me: program exited with status $ac_status" >&5
7074 $as_echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ( exit $ac_status )
7078 ac_cv_func_closedir_void=yes
7079 fi
7080 rm -rf conftest.dSYM
7081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7082 fi
7083
7084
7085 fi
7086 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7087 $as_echo "$ac_cv_func_closedir_void" >&6; }
7088 if test $ac_cv_func_closedir_void = yes; then
7089
7090 cat >>confdefs.h <<\_ACEOF
7091 #define CLOSEDIR_VOID 1
7092 _ACEOF
7093
7094 fi
7095
7096
7097 for ac_header in vfork.h
7098 do
7099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 $as_echo_n "checking for $ac_header... " >&6; }
7103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7104 $as_echo_n "(cached) " >&6
7105 fi
7106 ac_res=`eval 'as_val=${'$as_ac_Header'}
7107 $as_echo "$as_val"'`
7108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7109 $as_echo "$ac_res" >&6; }
7110 else
7111 # Is the header compilable?
7112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7113 $as_echo_n "checking $ac_header usability... " >&6; }
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 $ac_includes_default
7121 #include <$ac_header>
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$ac_try_echo") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7141 ac_header_compiler=yes
7142 else
7143 $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 ac_header_compiler=no
7147 fi
7148
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151 $as_echo "$ac_header_compiler" >&6; }
7152
7153 # Is the header present?
7154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7155 $as_echo_n "checking $ac_header presence... " >&6; }
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <$ac_header>
7163 _ACEOF
7164 if { (ac_try="$ac_cpp conftest.$ac_ext"
7165 case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7170 $as_echo "$ac_try_echo") >&5
7171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } >/dev/null && {
7178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 }; then
7181 ac_header_preproc=yes
7182 else
7183 $as_echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_header_preproc=no
7187 fi
7188
7189 rm -f conftest.err conftest.$ac_ext
7190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7191 $as_echo "$ac_header_preproc" >&6; }
7192
7193 # So? What about this header?
7194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195 yes:no: )
7196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7200 ac_header_preproc=yes
7201 ;;
7202 no:yes:* )
7203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7206 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7210 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7215
7216 ;;
7217 esac
7218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7219 $as_echo_n "checking for $ac_header... " >&6; }
7220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7221 $as_echo_n "(cached) " >&6
7222 else
7223 eval "$as_ac_Header=\$ac_header_preproc"
7224 fi
7225 ac_res=`eval 'as_val=${'$as_ac_Header'}
7226 $as_echo "$as_val"'`
7227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7228 $as_echo "$ac_res" >&6; }
7229
7230 fi
7231 as_val=`eval 'as_val=${'$as_ac_Header'}
7232 $as_echo "$as_val"'`
7233 if test "x$as_val" = x""yes; then
7234 cat >>confdefs.h <<_ACEOF
7235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 _ACEOF
7237
7238 fi
7239
7240 done
7241
7242
7243
7244 for ac_func in fork vfork
7245 do
7246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7247 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7248 $as_echo_n "checking for $ac_func... " >&6; }
7249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7260 #define $ac_func innocuous_$ac_func
7261
7262 /* System header to define __stub macros and hopefully few prototypes,
7263 which can conflict with char $ac_func (); below.
7264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7265 <limits.h> exists even on freestanding compilers. */
7266
7267 #ifdef __STDC__
7268 # include <limits.h>
7269 #else
7270 # include <assert.h>
7271 #endif
7272
7273 #undef $ac_func
7274
7275 /* Override any GCC internal prototype to avoid an error.
7276 Use char because int might match the return type of a GCC
7277 builtin and then its argument prototype would still apply. */
7278 #ifdef __cplusplus
7279 extern "C"
7280 #endif
7281 char $ac_func ();
7282 /* The GNU C library defines this for functions which it implements
7283 to always fail with ENOSYS. Some functions are actually named
7284 something starting with __ and the normal name is an alias. */
7285 #if defined __stub_$ac_func || defined __stub___$ac_func
7286 choke me
7287 #endif
7288
7289 int
7290 main ()
7291 {
7292 return $ac_func ();
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (ac_try="$ac_link"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7304 $as_echo "$ac_try_echo") >&5
7305 (eval "$ac_link") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest$ac_exeext && {
7315 test "$cross_compiling" = yes ||
7316 $as_test_x conftest$ac_exeext
7317 }; then
7318 eval "$as_ac_var=yes"
7319 else
7320 $as_echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 eval "$as_ac_var=no"
7324 fi
7325
7326 rm -rf conftest.dSYM
7327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7328 conftest$ac_exeext conftest.$ac_ext
7329 fi
7330 ac_res=`eval 'as_val=${'$as_ac_var'}
7331 $as_echo "$as_val"'`
7332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7333 $as_echo "$ac_res" >&6; }
7334 as_val=`eval 'as_val=${'$as_ac_var'}
7335 $as_echo "$as_val"'`
7336 if test "x$as_val" = x""yes; then
7337 cat >>confdefs.h <<_ACEOF
7338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7339 _ACEOF
7340
7341 fi
7342 done
7343
7344 if test "x$ac_cv_func_fork" = xyes; then
7345 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7346 $as_echo_n "checking for working fork... " >&6; }
7347 if test "${ac_cv_func_fork_works+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test "$cross_compiling" = yes; then
7351 ac_cv_func_fork_works=cross
7352 else
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 $ac_includes_default
7360 int
7361 main ()
7362 {
7363
7364 /* By Ruediger Kuhlmann. */
7365 return fork () < 0;
7366
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7373 case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376 esac
7377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379 (eval "$ac_link") 2>&5
7380 ac_status=$?
7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388 $as_echo "$ac_try_echo") >&5
7389 (eval "$ac_try") 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_func_fork_works=yes
7394 else
7395 $as_echo "$as_me: program exited with status $ac_status" >&5
7396 $as_echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 ( exit $ac_status )
7400 ac_cv_func_fork_works=no
7401 fi
7402 rm -rf conftest.dSYM
7403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7404 fi
7405
7406
7407 fi
7408 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7409 $as_echo "$ac_cv_func_fork_works" >&6; }
7410
7411 else
7412 ac_cv_func_fork_works=$ac_cv_func_fork
7413 fi
7414 if test "x$ac_cv_func_fork_works" = xcross; then
7415 case $host in
7416 *-*-amigaos* | *-*-msdosdjgpp*)
7417 # Override, as these systems have only a dummy fork() stub
7418 ac_cv_func_fork_works=no
7419 ;;
7420 *)
7421 ac_cv_func_fork_works=yes
7422 ;;
7423 esac
7424 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7425 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7426 fi
7427 ac_cv_func_vfork_works=$ac_cv_func_vfork
7428 if test "x$ac_cv_func_vfork" = xyes; then
7429 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7430 $as_echo_n "checking for working vfork... " >&6; }
7431 if test "${ac_cv_func_vfork_works+set}" = set; then
7432 $as_echo_n "(cached) " >&6
7433 else
7434 if test "$cross_compiling" = yes; then
7435 ac_cv_func_vfork_works=cross
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 /* Thanks to Paul Eggert for this test. */
7444 $ac_includes_default
7445 #include <sys/wait.h>
7446 #ifdef HAVE_VFORK_H
7447 # include <vfork.h>
7448 #endif
7449 /* On some sparc systems, changes by the child to local and incoming
7450 argument registers are propagated back to the parent. The compiler
7451 is told about this with #include <vfork.h>, but some compilers
7452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7453 static variable whose address is put into a register that is
7454 clobbered by the vfork. */
7455 static void
7456 #ifdef __cplusplus
7457 sparc_address_test (int arg)
7458 # else
7459 sparc_address_test (arg) int arg;
7460 #endif
7461 {
7462 static pid_t child;
7463 if (!child) {
7464 child = vfork ();
7465 if (child < 0) {
7466 perror ("vfork");
7467 _exit(2);
7468 }
7469 if (!child) {
7470 arg = getpid();
7471 write(-1, "", 0);
7472 _exit (arg);
7473 }
7474 }
7475 }
7476
7477 int
7478 main ()
7479 {
7480 pid_t parent = getpid ();
7481 pid_t child;
7482
7483 sparc_address_test (0);
7484
7485 child = vfork ();
7486
7487 if (child == 0) {
7488 /* Here is another test for sparc vfork register problems. This
7489 test uses lots of local variables, at least as many local
7490 variables as main has allocated so far including compiler
7491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7493 reuse the register of parent for one of the local variables,
7494 since it will think that parent can't possibly be used any more
7495 in this routine. Assigning to the local variable will thus
7496 munge parent in the parent process. */
7497 pid_t
7498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7500 /* Convince the compiler that p..p7 are live; otherwise, it might
7501 use the same hardware register for all 8 local variables. */
7502 if (p != p1 || p != p2 || p != p3 || p != p4
7503 || p != p5 || p != p6 || p != p7)
7504 _exit(1);
7505
7506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7507 from child file descriptors. If the child closes a descriptor
7508 before it execs or exits, this munges the parent's descriptor
7509 as well. Test for this by closing stdout in the child. */
7510 _exit(close(fileno(stdout)) != 0);
7511 } else {
7512 int status;
7513 struct stat st;
7514
7515 while (wait(&status) != child)
7516 ;
7517 return (
7518 /* Was there some problem with vforking? */
7519 child < 0
7520
7521 /* Did the child fail? (This shouldn't happen.) */
7522 || status
7523
7524 /* Did the vfork/compiler bug occur? */
7525 || parent != getpid()
7526
7527 /* Did the file descriptor bug occur? */
7528 || fstat(fileno(stdout), &st) != 0
7529 );
7530 }
7531 }
7532 _ACEOF
7533 rm -f conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7535 case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538 esac
7539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540 $as_echo "$ac_try_echo") >&5
7541 (eval "$ac_link") 2>&5
7542 ac_status=$?
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_try") 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_func_vfork_works=yes
7556 else
7557 $as_echo "$as_me: program exited with status $ac_status" >&5
7558 $as_echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ( exit $ac_status )
7562 ac_cv_func_vfork_works=no
7563 fi
7564 rm -rf conftest.dSYM
7565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7566 fi
7567
7568
7569 fi
7570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7571 $as_echo "$ac_cv_func_vfork_works" >&6; }
7572
7573 fi;
7574 if test "x$ac_cv_func_fork_works" = xcross; then
7575 ac_cv_func_vfork_works=$ac_cv_func_vfork
7576 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7577 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7578 fi
7579
7580 if test "x$ac_cv_func_vfork_works" = xyes; then
7581
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_WORKING_VFORK 1
7584 _ACEOF
7585
7586 else
7587
7588 cat >>confdefs.h <<\_ACEOF
7589 #define vfork fork
7590 _ACEOF
7591
7592 fi
7593 if test "x$ac_cv_func_fork_works" = xyes; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_WORKING_FORK 1
7597 _ACEOF
7598
7599 fi
7600
7601 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7602 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7603 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7604 $as_echo_n "(cached) " >&6
7605 else
7606 rm -f conftest.sym conftest.file
7607 echo >conftest.file
7608 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7609 if test "$cross_compiling" = yes; then
7610 ac_cv_func_lstat_dereferences_slashed_symlink=no
7611 else
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7619 int
7620 main ()
7621 {
7622 struct stat sbuf;
7623 /* Linux will dereference the symlink and fail.
7624 That is better in the sense that it means we will not
7625 have to compile and use the lstat wrapper. */
7626 return lstat ("conftest.sym/", &sbuf) == 0;
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 rm -f conftest$ac_exeext
7632 if { (ac_try="$ac_link"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_link") 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7643 { (case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649 (eval "$ac_try") 2>&5
7650 ac_status=$?
7651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7654 else
7655 $as_echo "$as_me: program exited with status $ac_status" >&5
7656 $as_echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 ( exit $ac_status )
7660 ac_cv_func_lstat_dereferences_slashed_symlink=no
7661 fi
7662 rm -rf conftest.dSYM
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7664 fi
7665
7666
7667 else
7668 # If the `ln -s' command failed, then we probably don't even
7669 # have an lstat function.
7670 ac_cv_func_lstat_dereferences_slashed_symlink=no
7671 fi
7672 rm -f conftest.sym conftest.file
7673
7674 fi
7675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7676 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7677
7678 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7679
7680 cat >>confdefs.h <<_ACEOF
7681 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7682 _ACEOF
7683
7684
7685 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7686 case " $LIBOBJS " in
7687 *" lstat.$ac_objext "* ) ;;
7688 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7689 ;;
7690 esac
7691
7692 fi
7693
7694 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7695 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7696 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test "$cross_compiling" = yes; then
7700 ac_cv_func_lstat_empty_string_bug=yes
7701 else
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h. */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7708 $ac_includes_default
7709 int
7710 main ()
7711 {
7712 struct stat sbuf;
7713 return lstat ("", &sbuf) == 0;
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 rm -f conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7720 case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723 esac
7724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7725 $as_echo "$ac_try_echo") >&5
7726 (eval "$ac_link") 2>&5
7727 ac_status=$?
7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7730 { (case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_try") 2>&5
7737 ac_status=$?
7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_func_lstat_empty_string_bug=no
7741 else
7742 $as_echo "$as_me: program exited with status $ac_status" >&5
7743 $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 ( exit $ac_status )
7747 ac_cv_func_lstat_empty_string_bug=yes
7748 fi
7749 rm -rf conftest.dSYM
7750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7751 fi
7752
7753
7754 fi
7755 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7756 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7757 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7758 case " $LIBOBJS " in
7759 *" lstat.$ac_objext "* ) ;;
7760 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7761 ;;
7762 esac
7763
7764
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7767 _ACEOF
7768
7769 fi
7770
7771
7772 for ac_header in stdlib.h
7773 do
7774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 $as_echo_n "checking for $ac_header... " >&6; }
7778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779 $as_echo_n "(cached) " >&6
7780 fi
7781 ac_res=`eval 'as_val=${'$as_ac_Header'}
7782 $as_echo "$as_val"'`
7783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7784 $as_echo "$ac_res" >&6; }
7785 else
7786 # Is the header compilable?
7787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 $as_echo_n "checking $ac_header usability... " >&6; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 #include <$ac_header>
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805 $as_echo "$ac_try_echo") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_header_compiler=yes
7817 else
7818 $as_echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821 ac_header_compiler=no
7822 fi
7823
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7826 $as_echo "$ac_header_compiler" >&6; }
7827
7828 # Is the header present?
7829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7830 $as_echo_n "checking $ac_header presence... " >&6; }
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <$ac_header>
7838 _ACEOF
7839 if { (ac_try="$ac_cpp conftest.$ac_ext"
7840 case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7845 $as_echo "$ac_try_echo") >&5
7846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } >/dev/null && {
7853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7854 test ! -s conftest.err
7855 }; then
7856 ac_header_preproc=yes
7857 else
7858 $as_echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 ac_header_preproc=no
7862 fi
7863
7864 rm -f conftest.err conftest.$ac_ext
7865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7866 $as_echo "$ac_header_preproc" >&6; }
7867
7868 # So? What about this header?
7869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7870 yes:no: )
7871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7875 ac_header_preproc=yes
7876 ;;
7877 no:yes:* )
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7881 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7885 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7890
7891 ;;
7892 esac
7893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 $as_echo_n "checking for $ac_header... " >&6; }
7895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7896 $as_echo_n "(cached) " >&6
7897 else
7898 eval "$as_ac_Header=\$ac_header_preproc"
7899 fi
7900 ac_res=`eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'`
7902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7903 $as_echo "$ac_res" >&6; }
7904
7905 fi
7906 as_val=`eval 'as_val=${'$as_ac_Header'}
7907 $as_echo "$as_val"'`
7908 if test "x$as_val" = x""yes; then
7909 cat >>confdefs.h <<_ACEOF
7910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 _ACEOF
7912
7913 fi
7914
7915 done
7916
7917 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7918 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7919 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test "$cross_compiling" = yes; then
7923 ac_cv_func_malloc_0_nonnull=no
7924 else
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7932 # include <stdlib.h>
7933 #else
7934 char *malloc ();
7935 #endif
7936
7937 int
7938 main ()
7939 {
7940 return ! malloc (0);
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7947 case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_link") 2>&5
7954 ac_status=$?
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7957 { (case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_try") 2>&5
7964 ac_status=$?
7965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_func_malloc_0_nonnull=yes
7968 else
7969 $as_echo "$as_me: program exited with status $ac_status" >&5
7970 $as_echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ( exit $ac_status )
7974 ac_cv_func_malloc_0_nonnull=no
7975 fi
7976 rm -rf conftest.dSYM
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7978 fi
7979
7980
7981 fi
7982 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7983 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7984 if test $ac_cv_func_malloc_0_nonnull = yes; then
7985
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_MALLOC 1
7988 _ACEOF
7989
7990 else
7991 cat >>confdefs.h <<\_ACEOF
7992 #define HAVE_MALLOC 0
7993 _ACEOF
7994
7995 case " $LIBOBJS " in
7996 *" malloc.$ac_objext "* ) ;;
7997 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7998 ;;
7999 esac
8000
8001
8002 cat >>confdefs.h <<\_ACEOF
8003 #define malloc rpl_malloc
8004 _ACEOF
8005
8006 fi
8007
8008
8009
8010 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8011 $as_echo_n "checking for working memcmp... " >&6; }
8012 if test "${ac_cv_func_memcmp_working+set}" = set; then
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test "$cross_compiling" = yes; then
8016 ac_cv_func_memcmp_working=no
8017 else
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8025 int
8026 main ()
8027 {
8028
8029 /* Some versions of memcmp are not 8-bit clean. */
8030 char c0 = '\100', c1 = '\200', c2 = '\201';
8031 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8032 return 1;
8033
8034 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8035 or more and with at least one buffer not starting on a 4-byte boundary.
8036 William Lewis provided this test program. */
8037 {
8038 char foo[21];
8039 char bar[21];
8040 int i;
8041 for (i = 0; i < 4; i++)
8042 {
8043 char *a = foo + i;
8044 char *b = bar + i;
8045 strcpy (a, "--------01111111");
8046 strcpy (b, "--------10000000");
8047 if (memcmp (a, b, 16) >= 0)
8048 return 1;
8049 }
8050 return 0;
8051 }
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 rm -f conftest$ac_exeext
8058 if { (ac_try="$ac_link"
8059 case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062 esac
8063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8064 $as_echo "$ac_try_echo") >&5
8065 (eval "$ac_link") 2>&5
8066 ac_status=$?
8067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8069 { (case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072 esac
8073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075 (eval "$ac_try") 2>&5
8076 ac_status=$?
8077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_func_memcmp_working=yes
8080 else
8081 $as_echo "$as_me: program exited with status $ac_status" >&5
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 ( exit $ac_status )
8086 ac_cv_func_memcmp_working=no
8087 fi
8088 rm -rf conftest.dSYM
8089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8090 fi
8091
8092
8093 fi
8094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8095 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8096 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8097 *" memcmp.$ac_objext "* ) ;;
8098 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8099 ;;
8100 esac
8101
8102
8103
8104
8105 for ac_header in stdlib.h unistd.h
8106 do
8107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 $as_echo_n "checking for $ac_header... " >&6; }
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112 $as_echo_n "(cached) " >&6
8113 fi
8114 ac_res=`eval 'as_val=${'$as_ac_Header'}
8115 $as_echo "$as_val"'`
8116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8117 $as_echo "$ac_res" >&6; }
8118 else
8119 # Is the header compilable?
8120 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121 $as_echo_n "checking $ac_header usability... " >&6; }
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 #include <$ac_header>
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8138 $as_echo "$ac_try_echo") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
8149 ac_header_compiler=yes
8150 else
8151 $as_echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 ac_header_compiler=no
8155 fi
8156
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159 $as_echo "$ac_header_compiler" >&6; }
8160
8161 # Is the header present?
8162 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8163 $as_echo_n "checking $ac_header presence... " >&6; }
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #include <$ac_header>
8171 _ACEOF
8172 if { (ac_try="$ac_cpp conftest.$ac_ext"
8173 case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176 esac
8177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178 $as_echo "$ac_try_echo") >&5
8179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } >/dev/null && {
8186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 }; then
8189 ac_header_preproc=yes
8190 else
8191 $as_echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_header_preproc=no
8195 fi
8196
8197 rm -f conftest.err conftest.$ac_ext
8198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 $as_echo "$ac_header_preproc" >&6; }
8200
8201 # So? What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203 yes:no: )
8204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8209 ;;
8210 no:yes:* )
8211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8214 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8218 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8223
8224 ;;
8225 esac
8226 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 $as_echo_n "checking for $ac_header... " >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229 $as_echo_n "(cached) " >&6
8230 else
8231 eval "$as_ac_Header=\$ac_header_preproc"
8232 fi
8233 ac_res=`eval 'as_val=${'$as_ac_Header'}
8234 $as_echo "$as_val"'`
8235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8236 $as_echo "$ac_res" >&6; }
8237
8238 fi
8239 as_val=`eval 'as_val=${'$as_ac_Header'}
8240 $as_echo "$as_val"'`
8241 if test "x$as_val" = x""yes; then
8242 cat >>confdefs.h <<_ACEOF
8243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244 _ACEOF
8245
8246 fi
8247
8248 done
8249
8250
8251 for ac_func in getpagesize
8252 do
8253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8254 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8255 $as_echo_n "checking for $ac_func... " >&6; }
8256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8257 $as_echo_n "(cached) " >&6
8258 else
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8267 #define $ac_func innocuous_$ac_func
8268
8269 /* System header to define __stub macros and hopefully few prototypes,
8270 which can conflict with char $ac_func (); below.
8271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8272 <limits.h> exists even on freestanding compilers. */
8273
8274 #ifdef __STDC__
8275 # include <limits.h>
8276 #else
8277 # include <assert.h>
8278 #endif
8279
8280 #undef $ac_func
8281
8282 /* Override any GCC internal prototype to avoid an error.
8283 Use char because int might match the return type of a GCC
8284 builtin and then its argument prototype would still apply. */
8285 #ifdef __cplusplus
8286 extern "C"
8287 #endif
8288 char $ac_func ();
8289 /* The GNU C library defines this for functions which it implements
8290 to always fail with ENOSYS. Some functions are actually named
8291 something starting with __ and the normal name is an alias. */
8292 #if defined __stub_$ac_func || defined __stub___$ac_func
8293 choke me
8294 #endif
8295
8296 int
8297 main ()
8298 {
8299 return $ac_func ();
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8306 case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8311 $as_echo "$ac_try_echo") >&5
8312 (eval "$ac_link") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext && {
8322 test "$cross_compiling" = yes ||
8323 $as_test_x conftest$ac_exeext
8324 }; then
8325 eval "$as_ac_var=yes"
8326 else
8327 $as_echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 eval "$as_ac_var=no"
8331 fi
8332
8333 rm -rf conftest.dSYM
8334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335 conftest$ac_exeext conftest.$ac_ext
8336 fi
8337 ac_res=`eval 'as_val=${'$as_ac_var'}
8338 $as_echo "$as_val"'`
8339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8340 $as_echo "$ac_res" >&6; }
8341 as_val=`eval 'as_val=${'$as_ac_var'}
8342 $as_echo "$as_val"'`
8343 if test "x$as_val" = x""yes; then
8344 cat >>confdefs.h <<_ACEOF
8345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8346 _ACEOF
8347
8348 fi
8349 done
8350
8351 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8352 $as_echo_n "checking for working mmap... " >&6; }
8353 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test "$cross_compiling" = yes; then
8357 ac_cv_func_mmap_fixed_mapped=no
8358 else
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 /* malloc might have been renamed as rpl_malloc. */
8367 #undef malloc
8368
8369 /* Thanks to Mike Haertel and Jim Avera for this test.
8370 Here is a matrix of mmap possibilities:
8371 mmap private not fixed
8372 mmap private fixed at somewhere currently unmapped
8373 mmap private fixed at somewhere already mapped
8374 mmap shared not fixed
8375 mmap shared fixed at somewhere currently unmapped
8376 mmap shared fixed at somewhere already mapped
8377 For private mappings, we should verify that changes cannot be read()
8378 back from the file, nor mmap's back from the file at a different
8379 address. (There have been systems where private was not correctly
8380 implemented like the infamous i386 svr4.0, and systems where the
8381 VM page cache was not coherent with the file system buffer cache
8382 like early versions of FreeBSD and possibly contemporary NetBSD.)
8383 For shared mappings, we should conversely verify that changes get
8384 propagated back to all the places they're supposed to be.
8385
8386 Grep wants private fixed already mapped.
8387 The main things grep needs to know about mmap are:
8388 * does it exist and is it safe to write into the mmap'd area
8389 * how to use it (BSD variants) */
8390
8391 #include <fcntl.h>
8392 #include <sys/mman.h>
8393
8394 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8395 char *malloc ();
8396 #endif
8397
8398 /* This mess was copied from the GNU getpagesize.h. */
8399 #ifndef HAVE_GETPAGESIZE
8400 /* Assume that all systems that can run configure have sys/param.h. */
8401 # ifndef HAVE_SYS_PARAM_H
8402 # define HAVE_SYS_PARAM_H 1
8403 # endif
8404
8405 # ifdef _SC_PAGESIZE
8406 # define getpagesize() sysconf(_SC_PAGESIZE)
8407 # else /* no _SC_PAGESIZE */
8408 # ifdef HAVE_SYS_PARAM_H
8409 # include <sys/param.h>
8410 # ifdef EXEC_PAGESIZE
8411 # define getpagesize() EXEC_PAGESIZE
8412 # else /* no EXEC_PAGESIZE */
8413 # ifdef NBPG
8414 # define getpagesize() NBPG * CLSIZE
8415 # ifndef CLSIZE
8416 # define CLSIZE 1
8417 # endif /* no CLSIZE */
8418 # else /* no NBPG */
8419 # ifdef NBPC
8420 # define getpagesize() NBPC
8421 # else /* no NBPC */
8422 # ifdef PAGESIZE
8423 # define getpagesize() PAGESIZE
8424 # endif /* PAGESIZE */
8425 # endif /* no NBPC */
8426 # endif /* no NBPG */
8427 # endif /* no EXEC_PAGESIZE */
8428 # else /* no HAVE_SYS_PARAM_H */
8429 # define getpagesize() 8192 /* punt totally */
8430 # endif /* no HAVE_SYS_PARAM_H */
8431 # endif /* no _SC_PAGESIZE */
8432
8433 #endif /* no HAVE_GETPAGESIZE */
8434
8435 int
8436 main ()
8437 {
8438 char *data, *data2, *data3;
8439 int i, pagesize;
8440 int fd;
8441
8442 pagesize = getpagesize ();
8443
8444 /* First, make a file with some known garbage in it. */
8445 data = (char *) malloc (pagesize);
8446 if (!data)
8447 return 1;
8448 for (i = 0; i < pagesize; ++i)
8449 *(data + i) = rand ();
8450 umask (0);
8451 fd = creat ("conftest.mmap", 0600);
8452 if (fd < 0)
8453 return 1;
8454 if (write (fd, data, pagesize) != pagesize)
8455 return 1;
8456 close (fd);
8457
8458 /* Next, try to mmap the file at a fixed address which already has
8459 something else allocated at it. If we can, also make sure that
8460 we see the same garbage. */
8461 fd = open ("conftest.mmap", O_RDWR);
8462 if (fd < 0)
8463 return 1;
8464 data2 = (char *) malloc (2 * pagesize);
8465 if (!data2)
8466 return 1;
8467 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8468 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8469 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8470 return 1;
8471 for (i = 0; i < pagesize; ++i)
8472 if (*(data + i) != *(data2 + i))
8473 return 1;
8474
8475 /* Finally, make sure that changes to the mapped area do not
8476 percolate back to the file as seen by read(). (This is a bug on
8477 some variants of i386 svr4.0.) */
8478 for (i = 0; i < pagesize; ++i)
8479 *(data2 + i) = *(data2 + i) + 1;
8480 data3 = (char *) malloc (pagesize);
8481 if (!data3)
8482 return 1;
8483 if (read (fd, data3, pagesize) != pagesize)
8484 return 1;
8485 for (i = 0; i < pagesize; ++i)
8486 if (*(data + i) != *(data3 + i))
8487 return 1;
8488 close (fd);
8489 return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500 (eval "$ac_link") 2>&5
8501 ac_status=$?
8502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507 esac
8508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8509 $as_echo "$ac_try_echo") >&5
8510 (eval "$ac_try") 2>&5
8511 ac_status=$?
8512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_mmap_fixed_mapped=yes
8515 else
8516 $as_echo "$as_me: program exited with status $ac_status" >&5
8517 $as_echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ( exit $ac_status )
8521 ac_cv_func_mmap_fixed_mapped=no
8522 fi
8523 rm -rf conftest.dSYM
8524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8525 fi
8526
8527
8528 fi
8529 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8530 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8531 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8532
8533 cat >>confdefs.h <<\_ACEOF
8534 #define HAVE_MMAP 1
8535 _ACEOF
8536
8537 fi
8538 rm -f conftest.mmap
8539
8540 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8541 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8542 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8543 $as_echo_n "(cached) " >&6
8544 else
8545 if test "$cross_compiling" = yes; then
8546 ac_cv_func_stat_empty_string_bug=yes
8547 else
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 int
8556 main ()
8557 {
8558 struct stat sbuf;
8559 return stat ("", &sbuf) == 0;
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_link") 2>&5
8573 ac_status=$?
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579 esac
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582 (eval "$ac_try") 2>&5
8583 ac_status=$?
8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_cv_func_stat_empty_string_bug=no
8587 else
8588 $as_echo "$as_me: program exited with status $ac_status" >&5
8589 $as_echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ( exit $ac_status )
8593 ac_cv_func_stat_empty_string_bug=yes
8594 fi
8595 rm -rf conftest.dSYM
8596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8597 fi
8598
8599
8600 fi
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8602 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8603 if test $ac_cv_func_stat_empty_string_bug = yes; then
8604 case " $LIBOBJS " in
8605 *" stat.$ac_objext "* ) ;;
8606 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8607 ;;
8608 esac
8609
8610
8611 cat >>confdefs.h <<_ACEOF
8612 #define HAVE_STAT_EMPTY_STRING_BUG 1
8613 _ACEOF
8614
8615 fi
8616
8617 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8618 $as_echo_n "checking for working strtod... " >&6; }
8619 if test "${ac_cv_func_strtod+set}" = set; then
8620 $as_echo_n "(cached) " >&6
8621 else
8622 if test "$cross_compiling" = yes; then
8623 ac_cv_func_strtod=no
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631
8632 $ac_includes_default
8633 #ifndef strtod
8634 double strtod ();
8635 #endif
8636 int
8637 main()
8638 {
8639 {
8640 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8641 char *string = " +69";
8642 char *term;
8643 double value;
8644 value = strtod (string, &term);
8645 if (value != 69 || term != (string + 4))
8646 return 1;
8647 }
8648
8649 {
8650 /* Under Solaris 2.4, strtod returns the wrong value for the
8651 terminating character under some conditions. */
8652 char *string = "NaN";
8653 char *term;
8654 strtod (string, &term);
8655 if (term != string && *(term - 1) == 0)
8656 return 1;
8657 }
8658 return 0;
8659 }
8660
8661 _ACEOF
8662 rm -f conftest$ac_exeext
8663 if { (ac_try="$ac_link"
8664 case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667 esac
8668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8669 $as_echo "$ac_try_echo") >&5
8670 (eval "$ac_link") 2>&5
8671 ac_status=$?
8672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677 esac
8678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8679 $as_echo "$ac_try_echo") >&5
8680 (eval "$ac_try") 2>&5
8681 ac_status=$?
8682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_cv_func_strtod=yes
8685 else
8686 $as_echo "$as_me: program exited with status $ac_status" >&5
8687 $as_echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690 ( exit $ac_status )
8691 ac_cv_func_strtod=no
8692 fi
8693 rm -rf conftest.dSYM
8694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8695 fi
8696
8697
8698 fi
8699 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8700 $as_echo "$ac_cv_func_strtod" >&6; }
8701 if test $ac_cv_func_strtod = no; then
8702 case " $LIBOBJS " in
8703 *" strtod.$ac_objext "* ) ;;
8704 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8705 ;;
8706 esac
8707
8708 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8709 $as_echo_n "checking for pow... " >&6; }
8710 if test "${ac_cv_func_pow+set}" = set; then
8711 $as_echo_n "(cached) " >&6
8712 else
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8721 #define pow innocuous_pow
8722
8723 /* System header to define __stub macros and hopefully few prototypes,
8724 which can conflict with char pow (); below.
8725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8726 <limits.h> exists even on freestanding compilers. */
8727
8728 #ifdef __STDC__
8729 # include <limits.h>
8730 #else
8731 # include <assert.h>
8732 #endif
8733
8734 #undef pow
8735
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 char pow ();
8743 /* The GNU C library defines this for functions which it implements
8744 to always fail with ENOSYS. Some functions are actually named
8745 something starting with __ and the normal name is an alias. */
8746 #if defined __stub_pow || defined __stub___pow
8747 choke me
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 return pow ();
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766 (eval "$ac_link") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest$ac_exeext && {
8776 test "$cross_compiling" = yes ||
8777 $as_test_x conftest$ac_exeext
8778 }; then
8779 ac_cv_func_pow=yes
8780 else
8781 $as_echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_cv_func_pow=no
8785 fi
8786
8787 rm -rf conftest.dSYM
8788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8789 conftest$ac_exeext conftest.$ac_ext
8790 fi
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8792 $as_echo "$ac_cv_func_pow" >&6; }
8793
8794 if test $ac_cv_func_pow = no; then
8795 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8796 $as_echo_n "checking for pow in -lm... " >&6; }
8797 if test "${ac_cv_lib_m_pow+set}" = set; then
8798 $as_echo_n "(cached) " >&6
8799 else
8800 ac_check_lib_save_LIBS=$LIBS
8801 LIBS="-lm $LIBS"
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h. */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808
8809 /* Override any GCC internal prototype to avoid an error.
8810 Use char because int might match the return type of a GCC
8811 builtin and then its argument prototype would still apply. */
8812 #ifdef __cplusplus
8813 extern "C"
8814 #endif
8815 char pow ();
8816 int
8817 main ()
8818 {
8819 return pow ();
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (ac_try="$ac_link"
8826 case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829 esac
8830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8831 $as_echo "$ac_try_echo") >&5
8832 (eval "$ac_link") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest$ac_exeext && {
8842 test "$cross_compiling" = yes ||
8843 $as_test_x conftest$ac_exeext
8844 }; then
8845 ac_cv_lib_m_pow=yes
8846 else
8847 $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_cv_lib_m_pow=no
8851 fi
8852
8853 rm -rf conftest.dSYM
8854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8857 fi
8858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8859 $as_echo "$ac_cv_lib_m_pow" >&6; }
8860 if test "x$ac_cv_lib_m_pow" = x""yes; then
8861 POW_LIB=-lm
8862 else
8863 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8864 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8865 fi
8866
8867 fi
8868
8869 fi
8870
8871
8872 for ac_func in vprintf
8873 do
8874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8875 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8876 $as_echo_n "checking for $ac_func... " >&6; }
8877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8878 $as_echo_n "(cached) " >&6
8879 else
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8888 #define $ac_func innocuous_$ac_func
8889
8890 /* System header to define __stub macros and hopefully few prototypes,
8891 which can conflict with char $ac_func (); below.
8892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 <limits.h> exists even on freestanding compilers. */
8894
8895 #ifdef __STDC__
8896 # include <limits.h>
8897 #else
8898 # include <assert.h>
8899 #endif
8900
8901 #undef $ac_func
8902
8903 /* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 char $ac_func ();
8910 /* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913 #if defined __stub_$ac_func || defined __stub___$ac_func
8914 choke me
8915 #endif
8916
8917 int
8918 main ()
8919 {
8920 return $ac_func ();
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext && {
8943 test "$cross_compiling" = yes ||
8944 $as_test_x conftest$ac_exeext
8945 }; then
8946 eval "$as_ac_var=yes"
8947 else
8948 $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 eval "$as_ac_var=no"
8952 fi
8953
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
8957 fi
8958 ac_res=`eval 'as_val=${'$as_ac_var'}
8959 $as_echo "$as_val"'`
8960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8961 $as_echo "$ac_res" >&6; }
8962 as_val=`eval 'as_val=${'$as_ac_var'}
8963 $as_echo "$as_val"'`
8964 if test "x$as_val" = x""yes; then
8965 cat >>confdefs.h <<_ACEOF
8966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8967 _ACEOF
8968
8969 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8970 $as_echo_n "checking for _doprnt... " >&6; }
8971 if test "${ac_cv_func__doprnt+set}" = set; then
8972 $as_echo_n "(cached) " >&6
8973 else
8974 cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982 #define _doprnt innocuous__doprnt
8983
8984 /* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char _doprnt (); below.
8986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987 <limits.h> exists even on freestanding compilers. */
8988
8989 #ifdef __STDC__
8990 # include <limits.h>
8991 #else
8992 # include <assert.h>
8993 #endif
8994
8995 #undef _doprnt
8996
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char _doprnt ();
9004 /* The GNU C library defines this for functions which it implements
9005 to always fail with ENOSYS. Some functions are actually named
9006 something starting with __ and the normal name is an alias. */
9007 #if defined __stub__doprnt || defined __stub____doprnt
9008 choke me
9009 #endif
9010
9011 int
9012 main ()
9013 {
9014 return _doprnt ();
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024 esac
9025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9026 $as_echo "$ac_try_echo") >&5
9027 (eval "$ac_link") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest$ac_exeext && {
9037 test "$cross_compiling" = yes ||
9038 $as_test_x conftest$ac_exeext
9039 }; then
9040 ac_cv_func__doprnt=yes
9041 else
9042 $as_echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_cv_func__doprnt=no
9046 fi
9047
9048 rm -rf conftest.dSYM
9049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9050 conftest$ac_exeext conftest.$ac_ext
9051 fi
9052 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9053 $as_echo "$ac_cv_func__doprnt" >&6; }
9054 if test "x$ac_cv_func__doprnt" = x""yes; then
9055
9056 cat >>confdefs.h <<\_ACEOF
9057 #define HAVE_DOPRNT 1
9058 _ACEOF
9059
9060 fi
9061
9062 fi
9063 done
9064
9065
9066
9067 ################################################################################
9068 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9069 $as_echo_n "checking whether to use static linking... " >&6; }
9070 # Check whether --enable-static_link was given.
9071 if test "${enable_static_link+set}" = set; then
9072 enableval=$enable_static_link; STATIC_LINK=$enableval
9073 else
9074 STATIC_LINK=no
9075 fi
9076
9077 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9078 $as_echo "$STATIC_LINK" >&6; }
9079
9080 ################################################################################
9081
9082
9083 ################################################################################
9084 { $as_echo "$as_me:$LINENO: checking file owner" >&5
9085 $as_echo_n "checking file owner... " >&6; }
9086 OWNER=""
9087
9088
9089 # Check whether --with-user was given.
9090 if test "${with_user+set}" = set; then
9091 withval=$with_user; OWNER="$withval"
9092 fi
9093
9094 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9095 $as_echo "$OWNER" >&6; }
9096
9097 if test x$OWNER != x; then
9098 OWNER="-o $OWNER"
9099 fi
9100
9101 ################################################################################
9102 { $as_echo "$as_me:$LINENO: checking group owner" >&5
9103 $as_echo_n "checking group owner... " >&6; }
9104 GROUP=""
9105
9106 # Check whether --with-group was given.
9107 if test "${with_group+set}" = set; then
9108 withval=$with_group; GROUP="$withval"
9109 fi
9110
9111 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9112 $as_echo "$GROUP" >&6; }
9113
9114 if test x$GROUP != x; then
9115 GROUP="-g $GROUP"
9116 fi
9117
9118 ################################################################################
9119 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9120 $as_echo_n "checking device node uid... " >&6; }
9121
9122
9123 # Check whether --with-device-uid was given.
9124 if test "${with_device_uid+set}" = set; then
9125 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9126 else
9127 DM_DEVICE_UID="0"
9128 fi
9129
9130 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9131 $as_echo "$DM_DEVICE_UID" >&6; }
9132
9133 ################################################################################
9134 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9135 $as_echo_n "checking device node gid... " >&6; }
9136
9137
9138 # Check whether --with-device-gid was given.
9139 if test "${with_device_gid+set}" = set; then
9140 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9141 else
9142 DM_DEVICE_GID="0"
9143 fi
9144
9145 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9146 $as_echo "$DM_DEVICE_GID" >&6; }
9147
9148 ################################################################################
9149 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9150 $as_echo_n "checking device node mode... " >&6; }
9151
9152
9153 # Check whether --with-device-mode was given.
9154 if test "${with_device_mode+set}" = set; then
9155 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9156 else
9157 DM_DEVICE_MODE="0600"
9158 fi
9159
9160 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9161 $as_echo "$DM_DEVICE_MODE" >&6; }
9162
9163 ################################################################################
9164 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9165 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9166 # Check whether --enable-lvm1_fallback was given.
9167 if test "${enable_lvm1_fallback+set}" = set; then
9168 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9169 else
9170 LVM1_FALLBACK=no
9171 fi
9172
9173 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9174 $as_echo "$LVM1_FALLBACK" >&6; }
9175
9176 if test x$LVM1_FALLBACK = xyes; then
9177
9178 cat >>confdefs.h <<\_ACEOF
9179 #define LVM1_FALLBACK 1
9180 _ACEOF
9181
9182 fi
9183
9184 ################################################################################
9185 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9186 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9187
9188 # Check whether --with-lvm1 was given.
9189 if test "${with_lvm1+set}" = set; then
9190 withval=$with_lvm1; LVM1="$withval"
9191 else
9192 LVM1="internal"
9193 fi
9194
9195 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9196 $as_echo "$LVM1" >&6; }
9197
9198 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9199 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9200 " >&5
9201 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9202 " >&2;}
9203 { (exit 1); exit 1; }; }
9204 fi;
9205
9206 if test x$LVM1 = xinternal; then
9207
9208 cat >>confdefs.h <<\_ACEOF
9209 #define LVM1_INTERNAL 1
9210 _ACEOF
9211
9212 fi
9213
9214 ################################################################################
9215 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9216 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9217
9218 # Check whether --with-pool was given.
9219 if test "${with_pool+set}" = set; then
9220 withval=$with_pool; POOL="$withval"
9221 else
9222 POOL="internal"
9223 fi
9224
9225 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9226 $as_echo "$POOL" >&6; }
9227
9228 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9229 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9230 " >&5
9231 $as_echo "$as_me: error: --with-pool parameter invalid
9232 " >&2;}
9233 { (exit 1); exit 1; }; }
9234 fi;
9235
9236 if test x$POOL = xinternal; then
9237
9238 cat >>confdefs.h <<\_ACEOF
9239 #define POOL_INTERNAL 1
9240 _ACEOF
9241
9242 fi
9243
9244 ################################################################################
9245 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9246 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9247
9248 # Check whether --with-cluster was given.
9249 if test "${with_cluster+set}" = set; then
9250 withval=$with_cluster; CLUSTER="$withval"
9251 fi
9252
9253 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9254 $as_echo "$CLUSTER" >&6; }
9255
9256 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9257 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9258 " >&5
9259 $as_echo "$as_me: error: --with-cluster parameter invalid
9260 " >&2;}
9261 { (exit 1); exit 1; }; }
9262 fi;
9263
9264 if test x$CLUSTER = xinternal; then
9265
9266 cat >>confdefs.h <<\_ACEOF
9267 #define CLUSTER_LOCKING_INTERNAL 1
9268 _ACEOF
9269
9270 fi
9271
9272 ################################################################################
9273 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9274 $as_echo_n "checking whether to include snapshots... " >&6; }
9275
9276 # Check whether --with-snapshots was given.
9277 if test "${with_snapshots+set}" = set; then
9278 withval=$with_snapshots; SNAPSHOTS="$withval"
9279 else
9280 SNAPSHOTS="internal"
9281 fi
9282
9283 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9284 $as_echo "$SNAPSHOTS" >&6; }
9285
9286 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9287 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9288 " >&5
9289 $as_echo "$as_me: error: --with-snapshots parameter invalid
9290 " >&2;}
9291 { (exit 1); exit 1; }; }
9292 fi;
9293
9294 if test x$SNAPSHOTS = xinternal; then
9295
9296 cat >>confdefs.h <<\_ACEOF
9297 #define SNAPSHOT_INTERNAL 1
9298 _ACEOF
9299
9300 fi
9301
9302 ################################################################################
9303 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9304 $as_echo_n "checking whether to include mirrors... " >&6; }
9305
9306 # Check whether --with-mirrors was given.
9307 if test "${with_mirrors+set}" = set; then
9308 withval=$with_mirrors; MIRRORS="$withval"
9309 else
9310 MIRRORS="internal"
9311 fi
9312
9313 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9314 $as_echo "$MIRRORS" >&6; }
9315
9316 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9317 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9318 " >&5
9319 $as_echo "$as_me: error: --with-mirrors parameter invalid
9320 " >&2;}
9321 { (exit 1); exit 1; }; }
9322 fi;
9323
9324 if test x$MIRRORS = xinternal; then
9325
9326 cat >>confdefs.h <<\_ACEOF
9327 #define MIRRORED_INTERNAL 1
9328 _ACEOF
9329
9330 fi
9331
9332 ################################################################################
9333 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9334 $as_echo_n "checking whether to enable readline... " >&6; }
9335 # Check whether --enable-readline was given.
9336 if test "${enable_readline+set}" = set; then
9337 enableval=$enable_readline; READLINE=$enableval
9338 else
9339 READLINE=maybe
9340 fi
9341
9342 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9343 $as_echo "$READLINE" >&6; }
9344
9345 ################################################################################
9346 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9347 $as_echo_n "checking whether to enable realtime support... " >&6; }
9348 # Check whether --enable-realtime was given.
9349 if test "${enable_realtime+set}" = set; then
9350 enableval=$enable_realtime; REALTIME=$enableval
9351 fi
9352
9353 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9354 $as_echo "$REALTIME" >&6; }
9355
9356 ################################################################################
9357 pkg_config_init() {
9358
9359
9360 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9361 if test -n "$ac_tool_prefix"; then
9362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9363 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9367 $as_echo_n "(cached) " >&6
9368 else
9369 case $PKG_CONFIG in
9370 [\\/]* | ?:[\\/]*)
9371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9372 ;;
9373 *)
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9376 do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9384 fi
9385 done
9386 done
9387 IFS=$as_save_IFS
9388
9389 ;;
9390 esac
9391 fi
9392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9393 if test -n "$PKG_CONFIG"; then
9394 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9395 $as_echo "$PKG_CONFIG" >&6; }
9396 else
9397 { $as_echo "$as_me:$LINENO: result: no" >&5
9398 $as_echo "no" >&6; }
9399 fi
9400
9401
9402 fi
9403 if test -z "$ac_cv_path_PKG_CONFIG"; then
9404 ac_pt_PKG_CONFIG=$PKG_CONFIG
9405 # Extract the first word of "pkg-config", so it can be a program name with args.
9406 set dummy pkg-config; ac_word=$2
9407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9408 $as_echo_n "checking for $ac_word... " >&6; }
9409 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9410 $as_echo_n "(cached) " >&6
9411 else
9412 case $ac_pt_PKG_CONFIG in
9413 [\\/]* | ?:[\\/]*)
9414 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9415 ;;
9416 *)
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in $PATH
9419 do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428 done
9429 done
9430 IFS=$as_save_IFS
9431
9432 ;;
9433 esac
9434 fi
9435 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9436 if test -n "$ac_pt_PKG_CONFIG"; then
9437 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9438 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9439 else
9440 { $as_echo "$as_me:$LINENO: result: no" >&5
9441 $as_echo "no" >&6; }
9442 fi
9443
9444 if test "x$ac_pt_PKG_CONFIG" = x; then
9445 PKG_CONFIG=""
9446 else
9447 case $cross_compiling:$ac_tool_warned in
9448 yes:)
9449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9451 ac_tool_warned=yes ;;
9452 esac
9453 PKG_CONFIG=$ac_pt_PKG_CONFIG
9454 fi
9455 else
9456 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9457 fi
9458
9459 fi
9460 if test -n "$PKG_CONFIG"; then
9461 _pkg_min_version=0.9.0
9462 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9463 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9464 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9465 { $as_echo "$as_me:$LINENO: result: yes" >&5
9466 $as_echo "yes" >&6; }
9467 else
9468 { $as_echo "$as_me:$LINENO: result: no" >&5
9469 $as_echo "no" >&6; }
9470 PKG_CONFIG=""
9471 fi
9472
9473 fi
9474
9475 pkg_failed=no
9476 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9477 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9478
9479 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9480 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9481 elif test -n "$PKG_CONFIG"; then
9482 if test -n "$PKG_CONFIG" && \
9483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9484 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9485 ac_status=$?
9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; then
9488 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9489 else
9490 pkg_failed=yes
9491 fi
9492 else
9493 pkg_failed=untried
9494 fi
9495 if test -n "$PKGCONFIGINIT_LIBS"; then
9496 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9497 elif test -n "$PKG_CONFIG"; then
9498 if test -n "$PKG_CONFIG" && \
9499 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9500 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9501 ac_status=$?
9502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; then
9504 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9505 else
9506 pkg_failed=yes
9507 fi
9508 else
9509 pkg_failed=untried
9510 fi
9511
9512
9513
9514 if test $pkg_failed = yes; then
9515
9516 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9517 _pkg_short_errors_supported=yes
9518 else
9519 _pkg_short_errors_supported=no
9520 fi
9521 if test $_pkg_short_errors_supported = yes; then
9522 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9523 else
9524 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9525 fi
9526 # Put the nasty error message in config.log where it belongs
9527 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9528
9529 { $as_echo "$as_me:$LINENO: result: no" >&5
9530 $as_echo "no" >&6; }
9531 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9532 $as_echo "pkg-config initialized" >&6; }
9533 elif test $pkg_failed = untried; then
9534 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9535 $as_echo "pkg-config initialized" >&6; }
9536 else
9537 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9538 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9539 { $as_echo "$as_me:$LINENO: result: yes" >&5
9540 $as_echo "yes" >&6; }
9541 :
9542 fi
9543 PKGCONFIG_INIT=1
9544 }
9545
9546 ################################################################################
9547 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9548 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9549
9550 # Check whether --with-clvmd was given.
9551 if test "${with_clvmd+set}" = set; then
9552 withval=$with_clvmd; CLVMD="$withval"
9553 else
9554 CLVMD="none"
9555 fi
9556
9557 if test x$CLVMD = xyes; then
9558 CLVMD=all
9559 fi
9560 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9561 $as_echo "$CLVMD" >&6; }
9562
9563 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9564 CLUSTER=internal
9565 fi
9566
9567 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9568 pkg_config_init
9569 fi
9570
9571
9572 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9573 BUILDGULM=yes
9574 fi
9575 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9576 BUILDCOROSYNC=yes
9577 fi
9578 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9579 BUILDOPENAIS=yes
9580 fi
9581 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9582 BUILDCMAN=yes
9583 fi
9584
9585 if test x$BUILDGULM = xyes; then
9586 if test x$BUILDCOROSYNC = xyes || \
9587 test x$BUILDOPENAIS = xyes; then
9588 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9589 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9590 { (exit 1); exit 1; }; }
9591 fi
9592 fi
9593
9594 soft_bailout() {
9595 NOTFOUND=1
9596 }
9597
9598 hard_bailout() {
9599 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9600 $as_echo "$as_me: error: bailing out" >&2;}
9601 { (exit 1); exit 1; }; }
9602 }
9603
9604 if test x$CLVMD = xall; then
9605 bailout=soft_bailout
9606 BUILDGULM=yes
9607 BUILDCMAN=yes
9608 BUILDCOROSYNC=yes
9609 BUILDOPENAIS=yes
9610 else
9611 bailout=hard_bailout
9612 fi
9613
9614 check_lib_no_libs() {
9615 lib_no_libs_arg1=$1
9616 shift
9617 lib_no_libs_arg2=$1
9618 shift
9619 lib_no_libs_args=$@
9620
9621 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9622 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9623 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9624 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
9626 else
9627 ac_check_lib_save_LIBS=$LIBS
9628 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635
9636 /* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9639 #ifdef __cplusplus
9640 extern "C"
9641 #endif
9642 char $lib_no_libs_arg2 ();
9643 int
9644 main ()
9645 {
9646 return $lib_no_libs_arg2 ();
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 rm -f conftest.$ac_objext conftest$ac_exeext
9652 if { (ac_try="$ac_link"
9653 case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656 esac
9657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9658 $as_echo "$ac_try_echo") >&5
9659 (eval "$ac_link") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext && {
9669 test "$cross_compiling" = yes ||
9670 $as_test_x conftest$ac_exeext
9671 }; then
9672 eval "$as_ac_Lib=yes"
9673 else
9674 $as_echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 eval "$as_ac_Lib=no"
9678 fi
9679
9680 rm -rf conftest.dSYM
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9684 fi
9685 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9686 $as_echo "$as_val"'`
9687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9688 $as_echo "$ac_res" >&6; }
9689 as_val=`eval 'as_val=${'$as_ac_Lib'}
9690 $as_echo "$as_val"'`
9691 if test "x$as_val" = x""yes; then
9692 cat >>confdefs.h <<_ACEOF
9693 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9694 _ACEOF
9695
9696 LIBS="-l$lib_no_libs_arg1 $LIBS"
9697
9698 else
9699 $bailout
9700 fi
9701
9702 LIBS=$ac_check_lib_save_LIBS
9703 }
9704
9705 if test x$BUILDGULM = xyes; then
9706
9707 pkg_failed=no
9708 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9709 $as_echo_n "checking for CCS... " >&6; }
9710
9711 if test -n "$CCS_CFLAGS"; then
9712 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9713 elif test -n "$PKG_CONFIG"; then
9714 if test -n "$PKG_CONFIG" && \
9715 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9716 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9717 ac_status=$?
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; then
9720 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9721 else
9722 pkg_failed=yes
9723 fi
9724 else
9725 pkg_failed=untried
9726 fi
9727 if test -n "$CCS_LIBS"; then
9728 pkg_cv_CCS_LIBS="$CCS_LIBS"
9729 elif test -n "$PKG_CONFIG"; then
9730 if test -n "$PKG_CONFIG" && \
9731 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9732 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9733 ac_status=$?
9734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; then
9736 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9737 else
9738 pkg_failed=yes
9739 fi
9740 else
9741 pkg_failed=untried
9742 fi
9743
9744
9745
9746 if test $pkg_failed = yes; then
9747
9748 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9749 _pkg_short_errors_supported=yes
9750 else
9751 _pkg_short_errors_supported=no
9752 fi
9753 if test $_pkg_short_errors_supported = yes; then
9754 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9755 else
9756 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9757 fi
9758 # Put the nasty error message in config.log where it belongs
9759 echo "$CCS_PKG_ERRORS" >&5
9760
9761 { $as_echo "$as_me:$LINENO: result: no" >&5
9762 $as_echo "no" >&6; }
9763 NOTFOUND=0
9764
9765 for ac_header in ccs.h
9766 do
9767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 $as_echo_n "checking for $ac_header... " >&6; }
9771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9772 $as_echo_n "(cached) " >&6
9773 fi
9774 ac_res=`eval 'as_val=${'$as_ac_Header'}
9775 $as_echo "$as_val"'`
9776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9777 $as_echo "$ac_res" >&6; }
9778 else
9779 # Is the header compilable?
9780 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781 $as_echo_n "checking $ac_header usability... " >&6; }
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 #include <$ac_header>
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (ac_try="$ac_compile"
9793 case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9798 $as_echo "$ac_try_echo") >&5
9799 (eval "$ac_compile") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest.$ac_objext; then
9809 ac_header_compiler=yes
9810 else
9811 $as_echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_header_compiler=no
9815 fi
9816
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819 $as_echo "$ac_header_compiler" >&6; }
9820
9821 # Is the header present?
9822 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823 $as_echo_n "checking $ac_header presence... " >&6; }
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <$ac_header>
9831 _ACEOF
9832 if { (ac_try="$ac_cpp conftest.$ac_ext"
9833 case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836 esac
9837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9838 $as_echo "$ac_try_echo") >&5
9839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null && {
9846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 }; then
9849 ac_header_preproc=yes
9850 else
9851 $as_echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 ac_header_preproc=no
9855 fi
9856
9857 rm -f conftest.err conftest.$ac_ext
9858 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9859 $as_echo "$ac_header_preproc" >&6; }
9860
9861 # So? What about this header?
9862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9863 yes:no: )
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9865 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9868 ac_header_preproc=yes
9869 ;;
9870 no:yes:* )
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9876 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9878 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9882 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9883
9884 ;;
9885 esac
9886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9887 $as_echo_n "checking for $ac_header... " >&6; }
9888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9889 $as_echo_n "(cached) " >&6
9890 else
9891 eval "$as_ac_Header=\$ac_header_preproc"
9892 fi
9893 ac_res=`eval 'as_val=${'$as_ac_Header'}
9894 $as_echo "$as_val"'`
9895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9896 $as_echo "$ac_res" >&6; }
9897
9898 fi
9899 as_val=`eval 'as_val=${'$as_ac_Header'}
9900 $as_echo "$as_val"'`
9901 if test "x$as_val" = x""yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904 _ACEOF
9905
9906 else
9907 $bailout
9908 fi
9909
9910 done
9911
9912 check_lib_no_libs ccs ccs_connect
9913 if test $NOTFOUND = 0; then
9914 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9915 $as_echo "no pkg for libccs, using -lccs" >&6; }
9916 CCS_LIBS="-lccs"
9917 HAVE_CCS=yes
9918 fi
9919 elif test $pkg_failed = untried; then
9920 NOTFOUND=0
9921
9922 for ac_header in ccs.h
9923 do
9924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9927 $as_echo_n "checking for $ac_header... " >&6; }
9928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9929 $as_echo_n "(cached) " >&6
9930 fi
9931 ac_res=`eval 'as_val=${'$as_ac_Header'}
9932 $as_echo "$as_val"'`
9933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9934 $as_echo "$ac_res" >&6; }
9935 else
9936 # Is the header compilable?
9937 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9938 $as_echo_n "checking $ac_header usability... " >&6; }
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9946 #include <$ac_header>
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9955 $as_echo "$ac_try_echo") >&5
9956 (eval "$ac_compile") 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest.$ac_objext; then
9966 ac_header_compiler=yes
9967 else
9968 $as_echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_compiler=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9976 $as_echo "$ac_header_compiler" >&6; }
9977
9978 # Is the header present?
9979 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9980 $as_echo_n "checking $ac_header presence... " >&6; }
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 #include <$ac_header>
9988 _ACEOF
9989 if { (ac_try="$ac_cpp conftest.$ac_ext"
9990 case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993 esac
9994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9995 $as_echo "$ac_try_echo") >&5
9996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } >/dev/null && {
10003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 }; then
10006 ac_header_preproc=yes
10007 else
10008 $as_echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_header_preproc=no
10012 fi
10013
10014 rm -f conftest.err conftest.$ac_ext
10015 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10016 $as_echo "$ac_header_preproc" >&6; }
10017
10018 # So? What about this header?
10019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10020 yes:no: )
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10025 ac_header_preproc=yes
10026 ;;
10027 no:yes:* )
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10029 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10031 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10040
10041 ;;
10042 esac
10043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10044 $as_echo_n "checking for $ac_header... " >&6; }
10045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10046 $as_echo_n "(cached) " >&6
10047 else
10048 eval "$as_ac_Header=\$ac_header_preproc"
10049 fi
10050 ac_res=`eval 'as_val=${'$as_ac_Header'}
10051 $as_echo "$as_val"'`
10052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10053 $as_echo "$ac_res" >&6; }
10054
10055 fi
10056 as_val=`eval 'as_val=${'$as_ac_Header'}
10057 $as_echo "$as_val"'`
10058 if test "x$as_val" = x""yes; then
10059 cat >>confdefs.h <<_ACEOF
10060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10061 _ACEOF
10062
10063 else
10064 $bailout
10065 fi
10066
10067 done
10068
10069 check_lib_no_libs ccs ccs_connect
10070 if test $NOTFOUND = 0; then
10071 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10072 $as_echo "no pkg for libccs, using -lccs" >&6; }
10073 CCS_LIBS="-lccs"
10074 HAVE_CCS=yes
10075 fi
10076 else
10077 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10078 CCS_LIBS=$pkg_cv_CCS_LIBS
10079 { $as_echo "$as_me:$LINENO: result: yes" >&5
10080 $as_echo "yes" >&6; }
10081 HAVE_CCS=yes
10082 fi
10083
10084 pkg_failed=no
10085 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
10086 $as_echo_n "checking for GULM... " >&6; }
10087
10088 if test -n "$GULM_CFLAGS"; then
10089 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10090 elif test -n "$PKG_CONFIG"; then
10091 if test -n "$PKG_CONFIG" && \
10092 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10093 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10094 ac_status=$?
10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; then
10097 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10098 else
10099 pkg_failed=yes
10100 fi
10101 else
10102 pkg_failed=untried
10103 fi
10104 if test -n "$GULM_LIBS"; then
10105 pkg_cv_GULM_LIBS="$GULM_LIBS"
10106 elif test -n "$PKG_CONFIG"; then
10107 if test -n "$PKG_CONFIG" && \
10108 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10109 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10110 ac_status=$?
10111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; then
10113 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10114 else
10115 pkg_failed=yes
10116 fi
10117 else
10118 pkg_failed=untried
10119 fi
10120
10121
10122
10123 if test $pkg_failed = yes; then
10124
10125 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10126 _pkg_short_errors_supported=yes
10127 else
10128 _pkg_short_errors_supported=no
10129 fi
10130 if test $_pkg_short_errors_supported = yes; then
10131 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10132 else
10133 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10134 fi
10135 # Put the nasty error message in config.log where it belongs
10136 echo "$GULM_PKG_ERRORS" >&5
10137
10138 { $as_echo "$as_me:$LINENO: result: no" >&5
10139 $as_echo "no" >&6; }
10140 NOTFOUND=0
10141
10142 for ac_header in libgulm.h
10143 do
10144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 $as_echo_n "checking for $ac_header... " >&6; }
10148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149 $as_echo_n "(cached) " >&6
10150 fi
10151 ac_res=`eval 'as_val=${'$as_ac_Header'}
10152 $as_echo "$as_val"'`
10153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10155 else
10156 # Is the header compilable?
10157 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 $as_echo_n "checking $ac_header usability... " >&6; }
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 #include <$ac_header>
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173 esac
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_header_compiler=yes
10187 else
10188 $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_header_compiler=no
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10196 $as_echo "$ac_header_compiler" >&6; }
10197
10198 # Is the header present?
10199 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10200 $as_echo_n "checking $ac_header presence... " >&6; }
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 #include <$ac_header>
10208 _ACEOF
10209 if { (ac_try="$ac_cpp conftest.$ac_ext"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213 esac
10214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } >/dev/null && {
10223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 }; then
10226 ac_header_preproc=yes
10227 else
10228 $as_echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_preproc=no
10232 fi
10233
10234 rm -f conftest.err conftest.$ac_ext
10235 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10236 $as_echo "$ac_header_preproc" >&6; }
10237
10238 # So? What about this header?
10239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10240 yes:no: )
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10242 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10245 ac_header_preproc=yes
10246 ;;
10247 no:yes:* )
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10249 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10251 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10253 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10255 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10259 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10260
10261 ;;
10262 esac
10263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10264 $as_echo_n "checking for $ac_header... " >&6; }
10265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10266 $as_echo_n "(cached) " >&6
10267 else
10268 eval "$as_ac_Header=\$ac_header_preproc"
10269 fi
10270 ac_res=`eval 'as_val=${'$as_ac_Header'}
10271 $as_echo "$as_val"'`
10272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10273 $as_echo "$ac_res" >&6; }
10274
10275 fi
10276 as_val=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 if test "x$as_val" = x""yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10282
10283 else
10284 $bailout
10285 fi
10286
10287 done
10288
10289 check_lib_no_libs gulm lg_core_login
10290 if test $NOTFOUND = 0; then
10291 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10292 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10293 GULM_LIBS="-lgulm"
10294 HAVE_GULM=yes
10295 fi
10296 elif test $pkg_failed = untried; then
10297 NOTFOUND=0
10298
10299 for ac_header in libgulm.h
10300 do
10301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10304 $as_echo_n "checking for $ac_header... " >&6; }
10305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306 $as_echo_n "(cached) " >&6
10307 fi
10308 ac_res=`eval 'as_val=${'$as_ac_Header'}
10309 $as_echo "$as_val"'`
10310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10311 $as_echo "$ac_res" >&6; }
10312 else
10313 # Is the header compilable?
10314 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10315 $as_echo_n "checking $ac_header usability... " >&6; }
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 $ac_includes_default
10323 #include <$ac_header>
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332 $as_echo "$ac_try_echo") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.$ac_objext; then
10343 ac_header_compiler=yes
10344 else
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_header_compiler=no
10349 fi
10350
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10353 $as_echo "$ac_header_compiler" >&6; }
10354
10355 # Is the header present?
10356 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10357 $as_echo_n "checking $ac_header presence... " >&6; }
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 #include <$ac_header>
10365 _ACEOF
10366 if { (ac_try="$ac_cpp conftest.$ac_ext"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370 esac
10371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10372 $as_echo "$ac_try_echo") >&5
10373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } >/dev/null && {
10380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 }; then
10383 ac_header_preproc=yes
10384 else
10385 $as_echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_header_preproc=no
10389 fi
10390
10391 rm -f conftest.err conftest.$ac_ext
10392 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10393 $as_echo "$ac_header_preproc" >&6; }
10394
10395 # So? What about this header?
10396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10397 yes:no: )
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10399 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10401 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10402 ac_header_preproc=yes
10403 ;;
10404 no:yes:* )
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10406 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10408 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10410 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10412 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10416 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10417
10418 ;;
10419 esac
10420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10421 $as_echo_n "checking for $ac_header... " >&6; }
10422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 $as_echo_n "(cached) " >&6
10424 else
10425 eval "$as_ac_Header=\$ac_header_preproc"
10426 fi
10427 ac_res=`eval 'as_val=${'$as_ac_Header'}
10428 $as_echo "$as_val"'`
10429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10430 $as_echo "$ac_res" >&6; }
10431
10432 fi
10433 as_val=`eval 'as_val=${'$as_ac_Header'}
10434 $as_echo "$as_val"'`
10435 if test "x$as_val" = x""yes; then
10436 cat >>confdefs.h <<_ACEOF
10437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438 _ACEOF
10439
10440 else
10441 $bailout
10442 fi
10443
10444 done
10445
10446 check_lib_no_libs gulm lg_core_login
10447 if test $NOTFOUND = 0; then
10448 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10449 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10450 GULM_LIBS="-lgulm"
10451 HAVE_GULM=yes
10452 fi
10453 else
10454 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10455 GULM_LIBS=$pkg_cv_GULM_LIBS
10456 { $as_echo "$as_me:$LINENO: result: yes" >&5
10457 $as_echo "yes" >&6; }
10458 HAVE_GULM=yes
10459 fi
10460 fi
10461
10462 if test x$BUILDCMAN = xyes; then
10463
10464 pkg_failed=no
10465 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10466 $as_echo_n "checking for CMAN... " >&6; }
10467
10468 if test -n "$CMAN_CFLAGS"; then
10469 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10470 elif test -n "$PKG_CONFIG"; then
10471 if test -n "$PKG_CONFIG" && \
10472 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10473 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; then
10477 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10478 else
10479 pkg_failed=yes
10480 fi
10481 else
10482 pkg_failed=untried
10483 fi
10484 if test -n "$CMAN_LIBS"; then
10485 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10486 elif test -n "$PKG_CONFIG"; then
10487 if test -n "$PKG_CONFIG" && \
10488 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10489 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; then
10493 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10494 else
10495 pkg_failed=yes
10496 fi
10497 else
10498 pkg_failed=untried
10499 fi
10500
10501
10502
10503 if test $pkg_failed = yes; then
10504
10505 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10506 _pkg_short_errors_supported=yes
10507 else
10508 _pkg_short_errors_supported=no
10509 fi
10510 if test $_pkg_short_errors_supported = yes; then
10511 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10512 else
10513 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10514 fi
10515 # Put the nasty error message in config.log where it belongs
10516 echo "$CMAN_PKG_ERRORS" >&5
10517
10518 { $as_echo "$as_me:$LINENO: result: no" >&5
10519 $as_echo "no" >&6; }
10520 NOTFOUND=0
10521
10522 for ac_header in libcman.h
10523 do
10524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10527 $as_echo_n "checking for $ac_header... " >&6; }
10528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10529 $as_echo_n "(cached) " >&6
10530 fi
10531 ac_res=`eval 'as_val=${'$as_ac_Header'}
10532 $as_echo "$as_val"'`
10533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10534 $as_echo "$ac_res" >&6; }
10535 else
10536 # Is the header compilable?
10537 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538 $as_echo_n "checking $ac_header usability... " >&6; }
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 #include <$ac_header>
10547 _ACEOF
10548 rm -f conftest.$ac_objext
10549 if { (ac_try="$ac_compile"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10555 $as_echo "$ac_try_echo") >&5
10556 (eval "$ac_compile") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest.$ac_objext; then
10566 ac_header_compiler=yes
10567 else
10568 $as_echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_header_compiler=no
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576 $as_echo "$ac_header_compiler" >&6; }
10577
10578 # Is the header present?
10579 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580 $as_echo_n "checking $ac_header presence... " >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <$ac_header>
10588 _ACEOF
10589 if { (ac_try="$ac_cpp conftest.$ac_ext"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null && {
10603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 }; then
10606 ac_header_preproc=yes
10607 else
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 ac_header_preproc=no
10612 fi
10613
10614 rm -f conftest.err conftest.$ac_ext
10615 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10616 $as_echo "$ac_header_preproc" >&6; }
10617
10618 # So? What about this header?
10619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10620 yes:no: )
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10624 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10625 ac_header_preproc=yes
10626 ;;
10627 no:yes:* )
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10633 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10635 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10640
10641 ;;
10642 esac
10643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10644 $as_echo_n "checking for $ac_header... " >&6; }
10645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10646 $as_echo_n "(cached) " >&6
10647 else
10648 eval "$as_ac_Header=\$ac_header_preproc"
10649 fi
10650 ac_res=`eval 'as_val=${'$as_ac_Header'}
10651 $as_echo "$as_val"'`
10652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10653 $as_echo "$ac_res" >&6; }
10654
10655 fi
10656 as_val=`eval 'as_val=${'$as_ac_Header'}
10657 $as_echo "$as_val"'`
10658 if test "x$as_val" = x""yes; then
10659 cat >>confdefs.h <<_ACEOF
10660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661 _ACEOF
10662
10663 else
10664 $bailout
10665 fi
10666
10667 done
10668
10669 check_lib_no_libs cman cman_init
10670 if test $NOTFOUND = 0; then
10671 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10672 $as_echo "no pkg for libcman, using -lcman" >&6; }
10673 CMAN_LIBS="-lcman"
10674 HAVE_CMAN=yes
10675 fi
10676 elif test $pkg_failed = untried; then
10677 NOTFOUND=0
10678
10679 for ac_header in libcman.h
10680 do
10681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 $as_echo_n "checking for $ac_header... " >&6; }
10685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 $as_echo_n "(cached) " >&6
10687 fi
10688 ac_res=`eval 'as_val=${'$as_ac_Header'}
10689 $as_echo "$as_val"'`
10690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10691 $as_echo "$ac_res" >&6; }
10692 else
10693 # Is the header compilable?
10694 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10695 $as_echo_n "checking $ac_header usability... " >&6; }
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h. */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 $ac_includes_default
10703 #include <$ac_header>
10704 _ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712 $as_echo "$ac_try_echo") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10723 ac_header_compiler=yes
10724 else
10725 $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ac_header_compiler=no
10729 fi
10730
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10733 $as_echo "$ac_header_compiler" >&6; }
10734
10735 # Is the header present?
10736 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10737 $as_echo_n "checking $ac_header presence... " >&6; }
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <$ac_header>
10745 _ACEOF
10746 if { (ac_try="$ac_cpp conftest.$ac_ext"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750 esac
10751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752 $as_echo "$ac_try_echo") >&5
10753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null && {
10760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 }; then
10763 ac_header_preproc=yes
10764 else
10765 $as_echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_header_preproc=no
10769 fi
10770
10771 rm -f conftest.err conftest.$ac_ext
10772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773 $as_echo "$ac_header_preproc" >&6; }
10774
10775 # So? What about this header?
10776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 yes:no: )
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10783 ;;
10784 no:yes:* )
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797
10798 ;;
10799 esac
10800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 $as_echo_n "checking for $ac_header... " >&6; }
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 $as_echo_n "(cached) " >&6
10804 else
10805 eval "$as_ac_Header=\$ac_header_preproc"
10806 fi
10807 ac_res=`eval 'as_val=${'$as_ac_Header'}
10808 $as_echo "$as_val"'`
10809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10810 $as_echo "$ac_res" >&6; }
10811
10812 fi
10813 as_val=`eval 'as_val=${'$as_ac_Header'}
10814 $as_echo "$as_val"'`
10815 if test "x$as_val" = x""yes; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818 _ACEOF
10819
10820 else
10821 $bailout
10822 fi
10823
10824 done
10825
10826 check_lib_no_libs cman cman_init
10827 if test $NOTFOUND = 0; then
10828 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10829 $as_echo "no pkg for libcman, using -lcman" >&6; }
10830 CMAN_LIBS="-lcman"
10831 HAVE_CMAN=yes
10832 fi
10833 else
10834 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10835 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10836 { $as_echo "$as_me:$LINENO: result: yes" >&5
10837 $as_echo "yes" >&6; }
10838 HAVE_CMAN=yes
10839 fi
10840 CHECKCONFDB=yes
10841 CHECKDLM=yes
10842 fi
10843
10844 if test x$BUILDCOROSYNC = xyes || \
10845 test x$BUILDOPENAIS = xyes; then
10846
10847 pkg_failed=no
10848 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10849 $as_echo_n "checking for COROSYNC... " >&6; }
10850
10851 if test -n "$COROSYNC_CFLAGS"; then
10852 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10853 elif test -n "$PKG_CONFIG"; then
10854 if test -n "$PKG_CONFIG" && \
10855 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10856 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10857 ac_status=$?
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; then
10860 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10861 else
10862 pkg_failed=yes
10863 fi
10864 else
10865 pkg_failed=untried
10866 fi
10867 if test -n "$COROSYNC_LIBS"; then
10868 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10869 elif test -n "$PKG_CONFIG"; then
10870 if test -n "$PKG_CONFIG" && \
10871 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10872 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10873 ac_status=$?
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; then
10876 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10877 else
10878 pkg_failed=yes
10879 fi
10880 else
10881 pkg_failed=untried
10882 fi
10883
10884
10885
10886 if test $pkg_failed = yes; then
10887
10888 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10889 _pkg_short_errors_supported=yes
10890 else
10891 _pkg_short_errors_supported=no
10892 fi
10893 if test $_pkg_short_errors_supported = yes; then
10894 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10895 else
10896 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10897 fi
10898 # Put the nasty error message in config.log where it belongs
10899 echo "$COROSYNC_PKG_ERRORS" >&5
10900
10901 { $as_echo "$as_me:$LINENO: result: no" >&5
10902 $as_echo "no" >&6; }
10903 $bailout
10904 elif test $pkg_failed = untried; then
10905 $bailout
10906 else
10907 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10908 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10909 { $as_echo "$as_me:$LINENO: result: yes" >&5
10910 $as_echo "yes" >&6; }
10911 HAVE_COROSYNC=yes
10912 fi
10913 CHECKCONFDB=yes
10914 fi
10915
10916 if test x$BUILDCOROSYNC = xyes; then
10917
10918 pkg_failed=no
10919 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10920 $as_echo_n "checking for QUORUM... " >&6; }
10921
10922 if test -n "$QUORUM_CFLAGS"; then
10923 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10924 elif test -n "$PKG_CONFIG"; then
10925 if test -n "$PKG_CONFIG" && \
10926 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10927 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10928 ac_status=$?
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; then
10931 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10932 else
10933 pkg_failed=yes
10934 fi
10935 else
10936 pkg_failed=untried
10937 fi
10938 if test -n "$QUORUM_LIBS"; then
10939 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10940 elif test -n "$PKG_CONFIG"; then
10941 if test -n "$PKG_CONFIG" && \
10942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10943 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10944 ac_status=$?
10945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; then
10947 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10948 else
10949 pkg_failed=yes
10950 fi
10951 else
10952 pkg_failed=untried
10953 fi
10954
10955
10956
10957 if test $pkg_failed = yes; then
10958
10959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10960 _pkg_short_errors_supported=yes
10961 else
10962 _pkg_short_errors_supported=no
10963 fi
10964 if test $_pkg_short_errors_supported = yes; then
10965 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10966 else
10967 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10968 fi
10969 # Put the nasty error message in config.log where it belongs
10970 echo "$QUORUM_PKG_ERRORS" >&5
10971
10972 { $as_echo "$as_me:$LINENO: result: no" >&5
10973 $as_echo "no" >&6; }
10974 $bailout
10975 elif test $pkg_failed = untried; then
10976 $bailout
10977 else
10978 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10979 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10980 { $as_echo "$as_me:$LINENO: result: yes" >&5
10981 $as_echo "yes" >&6; }
10982 HAVE_QUORUM=yes
10983 fi
10984 CHECKCPG=yes
10985 CHECKDLM=yes
10986 fi
10987
10988 if test x$BUILDOPENAIS = xyes; then
10989
10990 pkg_failed=no
10991 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10992 $as_echo_n "checking for SALCK... " >&6; }
10993
10994 if test -n "$SALCK_CFLAGS"; then
10995 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10996 elif test -n "$PKG_CONFIG"; then
10997 if test -n "$PKG_CONFIG" && \
10998 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10999 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11000 ac_status=$?
11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; then
11003 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11004 else
11005 pkg_failed=yes
11006 fi
11007 else
11008 pkg_failed=untried
11009 fi
11010 if test -n "$SALCK_LIBS"; then
11011 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11012 elif test -n "$PKG_CONFIG"; then
11013 if test -n "$PKG_CONFIG" && \
11014 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11015 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11016 ac_status=$?
11017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; then
11019 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11020 else
11021 pkg_failed=yes
11022 fi
11023 else
11024 pkg_failed=untried
11025 fi
11026
11027
11028
11029 if test $pkg_failed = yes; then
11030
11031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11032 _pkg_short_errors_supported=yes
11033 else
11034 _pkg_short_errors_supported=no
11035 fi
11036 if test $_pkg_short_errors_supported = yes; then
11037 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11038 else
11039 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11040 fi
11041 # Put the nasty error message in config.log where it belongs
11042 echo "$SALCK_PKG_ERRORS" >&5
11043
11044 { $as_echo "$as_me:$LINENO: result: no" >&5
11045 $as_echo "no" >&6; }
11046 $bailout
11047 elif test $pkg_failed = untried; then
11048 $bailout
11049 else
11050 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11051 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11052 { $as_echo "$as_me:$LINENO: result: yes" >&5
11053 $as_echo "yes" >&6; }
11054 HAVE_SALCK=yes
11055 fi
11056 CHECKCPG=yes
11057 fi
11058
11059
11060
11061 if test x$CHECKCONFDB = xyes; then
11062
11063 pkg_failed=no
11064 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11065 $as_echo_n "checking for CONFDB... " >&6; }
11066
11067 if test -n "$CONFDB_CFLAGS"; then
11068 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11069 elif test -n "$PKG_CONFIG"; then
11070 if test -n "$PKG_CONFIG" && \
11071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11072 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; then
11076 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11077 else
11078 pkg_failed=yes
11079 fi
11080 else
11081 pkg_failed=untried
11082 fi
11083 if test -n "$CONFDB_LIBS"; then
11084 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11085 elif test -n "$PKG_CONFIG"; then
11086 if test -n "$PKG_CONFIG" && \
11087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11088 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11089 ac_status=$?
11090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; then
11092 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11093 else
11094 pkg_failed=yes
11095 fi
11096 else
11097 pkg_failed=untried
11098 fi
11099
11100
11101
11102 if test $pkg_failed = yes; then
11103
11104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11105 _pkg_short_errors_supported=yes
11106 else
11107 _pkg_short_errors_supported=no
11108 fi
11109 if test $_pkg_short_errors_supported = yes; then
11110 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11111 else
11112 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11113 fi
11114 # Put the nasty error message in config.log where it belongs
11115 echo "$CONFDB_PKG_ERRORS" >&5
11116
11117 { $as_echo "$as_me:$LINENO: result: no" >&5
11118 $as_echo "no" >&6; }
11119 HAVE_CONFDB=no
11120 elif test $pkg_failed = untried; then
11121 HAVE_CONFDB=no
11122 else
11123 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11124 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11125 { $as_echo "$as_me:$LINENO: result: yes" >&5
11126 $as_echo "yes" >&6; }
11127 HAVE_CONFDB=yes
11128 fi
11129
11130
11131 for ac_header in corosync/confdb.h
11132 do
11133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 $as_echo_n "checking for $ac_header... " >&6; }
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 $as_echo_n "(cached) " >&6
11139 fi
11140 ac_res=`eval 'as_val=${'$as_ac_Header'}
11141 $as_echo "$as_val"'`
11142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11143 $as_echo "$ac_res" >&6; }
11144 else
11145 # Is the header compilable?
11146 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 $as_echo_n "checking $ac_header usability... " >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11155 #include <$ac_header>
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162 esac
11163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11164 $as_echo "$ac_try_echo") >&5
11165 (eval "$ac_compile") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest.$ac_objext; then
11175 ac_header_compiler=yes
11176 else
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 ac_header_compiler=no
11181 fi
11182
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11185 $as_echo "$ac_header_compiler" >&6; }
11186
11187 # Is the header present?
11188 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11189 $as_echo_n "checking $ac_header presence... " >&6; }
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 #include <$ac_header>
11197 _ACEOF
11198 if { (ac_try="$ac_cpp conftest.$ac_ext"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202 esac
11203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204 $as_echo "$ac_try_echo") >&5
11205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null && {
11212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 }; then
11215 ac_header_preproc=yes
11216 else
11217 $as_echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 ac_header_preproc=no
11221 fi
11222
11223 rm -f conftest.err conftest.$ac_ext
11224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11225 $as_echo "$ac_header_preproc" >&6; }
11226
11227 # So? What about this header?
11228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 yes:no: )
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11234 ac_header_preproc=yes
11235 ;;
11236 no:yes:* )
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11238 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11240 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11242 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11244 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11248 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11249
11250 ;;
11251 esac
11252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 $as_echo_n "checking for $ac_header... " >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 $as_echo_n "(cached) " >&6
11256 else
11257 eval "$as_ac_Header=\$ac_header_preproc"
11258 fi
11259 ac_res=`eval 'as_val=${'$as_ac_Header'}
11260 $as_echo "$as_val"'`
11261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11262 $as_echo "$ac_res" >&6; }
11263
11264 fi
11265 as_val=`eval 'as_val=${'$as_ac_Header'}
11266 $as_echo "$as_val"'`
11267 if test "x$as_val" = x""yes; then
11268 cat >>confdefs.h <<_ACEOF
11269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270 _ACEOF
11271 HAVE_CONFDB_H=yes
11272 else
11273 HAVE_CONFDB_H=no
11274 fi
11275
11276 done
11277
11278
11279 if test x$HAVE_CONFDB != xyes && \
11280 test x$HAVE_CONFDB_H = xyes; then
11281 check_lib_no_libs confdb confdb_initialize
11282 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11283 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11284 CONFDB_LIBS="-lconfdb"
11285 HAVE_CONFDB=yes
11286 fi
11287
11288 if test x$BUILDCOROSYNC = xyes && \
11289 test x$HAVE_CONFDB != xyes &&
11290 test x$CLVMD != xall; then
11291 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11292 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11293 { (exit 1); exit 1; }; }
11294 fi
11295 fi
11296
11297 if test x$CHECKCPG = xyes; then
11298
11299 pkg_failed=no
11300 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11301 $as_echo_n "checking for CPG... " >&6; }
11302
11303 if test -n "$CPG_CFLAGS"; then
11304 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11305 elif test -n "$PKG_CONFIG"; then
11306 if test -n "$PKG_CONFIG" && \
11307 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11308 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11309 ac_status=$?
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; then
11312 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11313 else
11314 pkg_failed=yes
11315 fi
11316 else
11317 pkg_failed=untried
11318 fi
11319 if test -n "$CPG_LIBS"; then
11320 pkg_cv_CPG_LIBS="$CPG_LIBS"
11321 elif test -n "$PKG_CONFIG"; then
11322 if test -n "$PKG_CONFIG" && \
11323 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11324 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; then
11328 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11329 else
11330 pkg_failed=yes
11331 fi
11332 else
11333 pkg_failed=untried
11334 fi
11335
11336
11337
11338 if test $pkg_failed = yes; then
11339
11340 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11341 _pkg_short_errors_supported=yes
11342 else
11343 _pkg_short_errors_supported=no
11344 fi
11345 if test $_pkg_short_errors_supported = yes; then
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11347 else
11348 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11349 fi
11350 # Put the nasty error message in config.log where it belongs
11351 echo "$CPG_PKG_ERRORS" >&5
11352
11353 { $as_echo "$as_me:$LINENO: result: no" >&5
11354 $as_echo "no" >&6; }
11355 $bailout
11356 elif test $pkg_failed = untried; then
11357 $bailout
11358 else
11359 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11360 CPG_LIBS=$pkg_cv_CPG_LIBS
11361 { $as_echo "$as_me:$LINENO: result: yes" >&5
11362 $as_echo "yes" >&6; }
11363 HAVE_CPG=yes
11364 fi
11365 fi
11366
11367 if test x$CHECKDLM = xyes; then
11368
11369 pkg_failed=no
11370 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11371 $as_echo_n "checking for DLM... " >&6; }
11372
11373 if test -n "$DLM_CFLAGS"; then
11374 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11375 elif test -n "$PKG_CONFIG"; then
11376 if test -n "$PKG_CONFIG" && \
11377 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11378 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11379 ac_status=$?
11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; then
11382 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11383 else
11384 pkg_failed=yes
11385 fi
11386 else
11387 pkg_failed=untried
11388 fi
11389 if test -n "$DLM_LIBS"; then
11390 pkg_cv_DLM_LIBS="$DLM_LIBS"
11391 elif test -n "$PKG_CONFIG"; then
11392 if test -n "$PKG_CONFIG" && \
11393 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11394 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11395 ac_status=$?
11396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; then
11398 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11399 else
11400 pkg_failed=yes
11401 fi
11402 else
11403 pkg_failed=untried
11404 fi
11405
11406
11407
11408 if test $pkg_failed = yes; then
11409
11410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11411 _pkg_short_errors_supported=yes
11412 else
11413 _pkg_short_errors_supported=no
11414 fi
11415 if test $_pkg_short_errors_supported = yes; then
11416 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11417 else
11418 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11419 fi
11420 # Put the nasty error message in config.log where it belongs
11421 echo "$DLM_PKG_ERRORS" >&5
11422
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11425 NOTFOUND=0
11426
11427 for ac_header in libdlm.h
11428 do
11429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 $as_echo_n "checking for $ac_header... " >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 $as_echo_n "(cached) " >&6
11435 fi
11436 ac_res=`eval 'as_val=${'$as_ac_Header'}
11437 $as_echo "$as_val"'`
11438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11439 $as_echo "$ac_res" >&6; }
11440 else
11441 # Is the header compilable?
11442 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11443 $as_echo_n "checking $ac_header usability... " >&6; }
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 $ac_includes_default
11451 #include <$ac_header>
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (ac_try="$ac_compile"
11455 case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458 esac
11459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11460 $as_echo "$ac_try_echo") >&5
11461 (eval "$ac_compile") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_c_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest.$ac_objext; then
11471 ac_header_compiler=yes
11472 else
11473 $as_echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_header_compiler=no
11477 fi
11478
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 $as_echo "$ac_header_compiler" >&6; }
11482
11483 # Is the header present?
11484 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 $as_echo_n "checking $ac_header presence... " >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <$ac_header>
11493 _ACEOF
11494 if { (ac_try="$ac_cpp conftest.$ac_ext"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11500 $as_echo "$ac_try_echo") >&5
11501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } >/dev/null && {
11508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 }; then
11511 ac_header_preproc=yes
11512 else
11513 $as_echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 ac_header_preproc=no
11517 fi
11518
11519 rm -f conftest.err conftest.$ac_ext
11520 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11521 $as_echo "$ac_header_preproc" >&6; }
11522
11523 # So? What about this header?
11524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11525 yes:no: )
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11527 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11529 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11530 ac_header_preproc=yes
11531 ;;
11532 no:yes:* )
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11538 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11540 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11542 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11544 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545
11546 ;;
11547 esac
11548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11549 $as_echo_n "checking for $ac_header... " >&6; }
11550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 $as_echo_n "(cached) " >&6
11552 else
11553 eval "$as_ac_Header=\$ac_header_preproc"
11554 fi
11555 ac_res=`eval 'as_val=${'$as_ac_Header'}
11556 $as_echo "$as_val"'`
11557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11558 $as_echo "$ac_res" >&6; }
11559
11560 fi
11561 as_val=`eval 'as_val=${'$as_ac_Header'}
11562 $as_echo "$as_val"'`
11563 if test "x$as_val" = x""yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 _ACEOF
11567
11568 else
11569 $bailout
11570 fi
11571
11572 done
11573
11574 check_lib_no_libs dlm dlm_lock -lpthread
11575 if test $NOTFOUND = 0; then
11576 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11577 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11578 DLM_LIBS="-ldlm -lpthread"
11579 HAVE_DLM=yes
11580 fi
11581 elif test $pkg_failed = untried; then
11582 NOTFOUND=0
11583
11584 for ac_header in libdlm.h
11585 do
11586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11589 $as_echo_n "checking for $ac_header... " >&6; }
11590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591 $as_echo_n "(cached) " >&6
11592 fi
11593 ac_res=`eval 'as_val=${'$as_ac_Header'}
11594 $as_echo "$as_val"'`
11595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11596 $as_echo "$ac_res" >&6; }
11597 else
11598 # Is the header compilable?
11599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11600 $as_echo_n "checking $ac_header usability... " >&6; }
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 $ac_includes_default
11608 #include <$ac_header>
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (ac_try="$ac_compile"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615 esac
11616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617 $as_echo "$ac_try_echo") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 ac_header_compiler=yes
11629 else
11630 $as_echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_header_compiler=no
11634 fi
11635
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638 $as_echo "$ac_header_compiler" >&6; }
11639
11640 # Is the header present?
11641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642 $as_echo_n "checking $ac_header presence... " >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 #include <$ac_header>
11650 _ACEOF
11651 if { (ac_try="$ac_cpp conftest.$ac_ext"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655 esac
11656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657 $as_echo "$ac_try_echo") >&5
11658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } >/dev/null && {
11665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 }; then
11668 ac_header_preproc=yes
11669 else
11670 $as_echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_header_preproc=no
11674 fi
11675
11676 rm -f conftest.err conftest.$ac_ext
11677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11678 $as_echo "$ac_header_preproc" >&6; }
11679
11680 # So? What about this header?
11681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11682 yes:no: )
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11687 ac_header_preproc=yes
11688 ;;
11689 no:yes:* )
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11702
11703 ;;
11704 esac
11705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 $as_echo_n "checking for $ac_header... " >&6; }
11707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11709 else
11710 eval "$as_ac_Header=\$ac_header_preproc"
11711 fi
11712 ac_res=`eval 'as_val=${'$as_ac_Header'}
11713 $as_echo "$as_val"'`
11714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11715 $as_echo "$ac_res" >&6; }
11716
11717 fi
11718 as_val=`eval 'as_val=${'$as_ac_Header'}
11719 $as_echo "$as_val"'`
11720 if test "x$as_val" = x""yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723 _ACEOF
11724
11725 else
11726 $bailout
11727 fi
11728
11729 done
11730
11731 check_lib_no_libs dlm dlm_lock -lpthread
11732 if test $NOTFOUND = 0; then
11733 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11734 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11735 DLM_LIBS="-ldlm -lpthread"
11736 HAVE_DLM=yes
11737 fi
11738 else
11739 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11740 DLM_LIBS=$pkg_cv_DLM_LIBS
11741 { $as_echo "$as_me:$LINENO: result: yes" >&5
11742 $as_echo "yes" >&6; }
11743 HAVE_DLM=yes
11744 fi
11745 fi
11746
11747 if test x$CLVMD = xall; then
11748 CLVMD=none
11749 if test x$HAVE_CCS = xyes && \
11750 test x$HAVE_GULM = xyes; then
11751 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11752 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11753 CLVMD="$CLVMD,gulm"
11754 fi
11755 if test x$HAVE_CMAN = xyes && \
11756 test x$HAVE_DLM = xyes; then
11757 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11758 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11759 CLVMD="$CLVMD,cman"
11760 fi
11761 if test x$HAVE_COROSYNC = xyes && \
11762 test x$HAVE_QUORUM = xyes && \
11763 test x$HAVE_CPG = xyes && \
11764 test x$HAVE_DLM = xyes && \
11765 test x$HAVE_CONFDB = xyes; then
11766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11767 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11768 CLVMD="$CLVMD,corosync"
11769 fi
11770 if test x$HAVE_COROSYNC = xyes && \
11771 test x$HAVE_CPG = xyes && \
11772 test x$HAVE_SALCK = xyes; then
11773 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11774 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11775 CLVMD="$CLVMD,openais"
11776 fi
11777 if test x$CLVMD = xnone; then
11778 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11779 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11780 fi
11781 fi
11782
11783 ################################################################################
11784 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11785 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11786 # Check whether --enable-cmirrord was given.
11787 if test "${enable_cmirrord+set}" = set; then
11788 enableval=$enable_cmirrord; CMIRRORD=$enableval
11789 else
11790 CMIRRORD=no
11791 fi
11792
11793 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11794 $as_echo "$CMIRRORD" >&6; }
11795
11796 BUILD_CMIRRORD=$CMIRRORD
11797
11798 ################################################################################
11799
11800
11801 if test "x$BUILD_CMIRRORD" = xyes; then
11802
11803 # Check whether --with-cmirrord-pidfile was given.
11804 if test "${with_cmirrord_pidfile+set}" = set; then
11805 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11806 #define CMIRRORD_PIDFILE "$withval"
11807 _ACEOF
11808
11809 else
11810 cat >>confdefs.h <<_ACEOF
11811 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11812 _ACEOF
11813
11814 fi
11815
11816 fi
11817
11818 ################################################################################
11819 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11820 if test x$PKGCONFIG_INIT != x1; then
11821 pkg_config_init
11822 fi
11823
11824 pkg_failed=no
11825 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11826 $as_echo_n "checking for SACKPT... " >&6; }
11827
11828 if test -n "$SACKPT_CFLAGS"; then
11829 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11830 elif test -n "$PKG_CONFIG"; then
11831 if test -n "$PKG_CONFIG" && \
11832 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11833 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11834 ac_status=$?
11835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; then
11837 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11838 else
11839 pkg_failed=yes
11840 fi
11841 else
11842 pkg_failed=untried
11843 fi
11844 if test -n "$SACKPT_LIBS"; then
11845 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11846 elif test -n "$PKG_CONFIG"; then
11847 if test -n "$PKG_CONFIG" && \
11848 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11849 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11850 ac_status=$?
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; then
11853 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11854 else
11855 pkg_failed=yes
11856 fi
11857 else
11858 pkg_failed=untried
11859 fi
11860
11861
11862
11863 if test $pkg_failed = yes; then
11864
11865 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11866 _pkg_short_errors_supported=yes
11867 else
11868 _pkg_short_errors_supported=no
11869 fi
11870 if test $_pkg_short_errors_supported = yes; then
11871 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11872 else
11873 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11874 fi
11875 # Put the nasty error message in config.log where it belongs
11876 echo "$SACKPT_PKG_ERRORS" >&5
11877
11878 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11879
11880 $SACKPT_PKG_ERRORS
11881
11882 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11883 installed software in a non-standard prefix.
11884
11885 Alternatively, you may set the environment variables SACKPT_CFLAGS
11886 and SACKPT_LIBS to avoid the need to call pkg-config.
11887 See the pkg-config man page for more details.
11888 " >&5
11889 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11890
11891 $SACKPT_PKG_ERRORS
11892
11893 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11894 installed software in a non-standard prefix.
11895
11896 Alternatively, you may set the environment variables SACKPT_CFLAGS
11897 and SACKPT_LIBS to avoid the need to call pkg-config.
11898 See the pkg-config man page for more details.
11899 " >&2;}
11900 { (exit 1); exit 1; }; }
11901 elif test $pkg_failed = untried; then
11902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11904 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11905 is in your PATH or set the PKG_CONFIG environment variable to the full
11906 path to pkg-config.
11907
11908 Alternatively, you may set the environment variables SACKPT_CFLAGS
11909 and SACKPT_LIBS to avoid the need to call pkg-config.
11910 See the pkg-config man page for more details.
11911
11912 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11913 See \`config.log' for more details." >&5
11914 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11915 is in your PATH or set the PKG_CONFIG environment variable to the full
11916 path to pkg-config.
11917
11918 Alternatively, you may set the environment variables SACKPT_CFLAGS
11919 and SACKPT_LIBS to avoid the need to call pkg-config.
11920 See the pkg-config man page for more details.
11921
11922 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11923 See \`config.log' for more details." >&2;}
11924 { (exit 1); exit 1; }; }; }
11925 else
11926 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11927 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11928 { $as_echo "$as_me:$LINENO: result: yes" >&5
11929 $as_echo "yes" >&6; }
11930 :
11931 fi
11932 if test x$HAVE_CPG != xyes; then
11933
11934 pkg_failed=no
11935 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11936 $as_echo_n "checking for CPG... " >&6; }
11937
11938 if test -n "$CPG_CFLAGS"; then
11939 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11940 elif test -n "$PKG_CONFIG"; then
11941 if test -n "$PKG_CONFIG" && \
11942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11943 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11944 ac_status=$?
11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; then
11947 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11948 else
11949 pkg_failed=yes
11950 fi
11951 else
11952 pkg_failed=untried
11953 fi
11954 if test -n "$CPG_LIBS"; then
11955 pkg_cv_CPG_LIBS="$CPG_LIBS"
11956 elif test -n "$PKG_CONFIG"; then
11957 if test -n "$PKG_CONFIG" && \
11958 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11959 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11960 ac_status=$?
11961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; then
11963 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11964 else
11965 pkg_failed=yes
11966 fi
11967 else
11968 pkg_failed=untried
11969 fi
11970
11971
11972
11973 if test $pkg_failed = yes; then
11974
11975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11976 _pkg_short_errors_supported=yes
11977 else
11978 _pkg_short_errors_supported=no
11979 fi
11980 if test $_pkg_short_errors_supported = yes; then
11981 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11982 else
11983 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11984 fi
11985 # Put the nasty error message in config.log where it belongs
11986 echo "$CPG_PKG_ERRORS" >&5
11987
11988 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11989
11990 $CPG_PKG_ERRORS
11991
11992 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11993 installed software in a non-standard prefix.
11994
11995 Alternatively, you may set the environment variables CPG_CFLAGS
11996 and CPG_LIBS to avoid the need to call pkg-config.
11997 See the pkg-config man page for more details.
11998 " >&5
11999 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
12000
12001 $CPG_PKG_ERRORS
12002
12003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12004 installed software in a non-standard prefix.
12005
12006 Alternatively, you may set the environment variables CPG_CFLAGS
12007 and CPG_LIBS to avoid the need to call pkg-config.
12008 See the pkg-config man page for more details.
12009 " >&2;}
12010 { (exit 1); exit 1; }; }
12011 elif test $pkg_failed = untried; then
12012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12014 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12015 is in your PATH or set the PKG_CONFIG environment variable to the full
12016 path to pkg-config.
12017
12018 Alternatively, you may set the environment variables CPG_CFLAGS
12019 and CPG_LIBS to avoid the need to call pkg-config.
12020 See the pkg-config man page for more details.
12021
12022 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12023 See \`config.log' for more details." >&5
12024 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12025 is in your PATH or set the PKG_CONFIG environment variable to the full
12026 path to pkg-config.
12027
12028 Alternatively, you may set the environment variables CPG_CFLAGS
12029 and CPG_LIBS to avoid the need to call pkg-config.
12030 See the pkg-config man page for more details.
12031
12032 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12033 See \`config.log' for more details." >&2;}
12034 { (exit 1); exit 1; }; }; }
12035 else
12036 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12037 CPG_LIBS=$pkg_cv_CPG_LIBS
12038 { $as_echo "$as_me:$LINENO: result: yes" >&5
12039 $as_echo "yes" >&6; }
12040 :
12041 fi
12042 fi
12043 fi
12044
12045 ################################################################################
12046 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12047 $as_echo_n "checking whether to enable debugging... " >&6; }
12048 # Check whether --enable-debug was given.
12049 if test "${enable_debug+set}" = set; then
12050 enableval=$enable_debug; DEBUG=$enableval
12051 else
12052 DEBUG=no
12053 fi
12054
12055 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12056 $as_echo "$DEBUG" >&6; }
12057
12058 if test x$DEBUG = xyes; then
12059 COPTIMISE_FLAG=
12060 else
12061 CSCOPE_CMD=
12062 fi
12063
12064 ################################################################################
12065 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12066 $as_echo_n "checking for C optimisation flag... " >&6; }
12067
12068 # Check whether --with-optimisation was given.
12069 if test "${with_optimisation+set}" = set; then
12070 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12071 fi
12072
12073 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12074 $as_echo "$COPTIMISE_FLAG" >&6; }
12075
12076 ################################################################################
12077 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12078 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12079 # Check whether --enable-profiling was given.
12080 if test "${enable_profiling+set}" = set; then
12081 enableval=$enable_profiling; PROFILING=$enableval
12082 else
12083 PROFILING=no
12084 fi
12085
12086 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12087 $as_echo "$PROFILING" >&6; }
12088
12089 if test "x$PROFILING" = xyes; then
12090 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12091 # Extract the first word of "lcov", so it can be a program name with args.
12092 set dummy lcov; ac_word=$2
12093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if test "${ac_cv_path_LCOV+set}" = set; then
12096 $as_echo_n "(cached) " >&6
12097 else
12098 case $LCOV in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12101 ;;
12102 *)
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12113 fi
12114 done
12115 done
12116 IFS=$as_save_IFS
12117
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 ;;
12159 esac
12160 fi
12161 GENHTML=$ac_cv_path_GENHTML
12162 if test -n "$GENHTML"; then
12163 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12164 $as_echo "$GENHTML" >&6; }
12165 else
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171 if test -z "$LCOV" -o -z "$GENHTML"; then
12172 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12173 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12174 { (exit 1); exit 1; }; }
12175 fi
12176 # Extract the first word of "genpng", so it can be a program name with args.
12177 set dummy genpng; ac_word=$2
12178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if test "${ac_cv_path_GENPNG+set}" = set; then
12181 $as_echo_n "(cached) " >&6
12182 else
12183 case $GENPNG in
12184 [\\/]* | ?:[\\/]*)
12185 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12186 ;;
12187 *)
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199 done
12200 done
12201 IFS=$as_save_IFS
12202
12203 ;;
12204 esac
12205 fi
12206 GENPNG=$ac_cv_path_GENPNG
12207 if test -n "$GENPNG"; then
12208 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12209 $as_echo "$GENPNG" >&6; }
12210 else
12211 { $as_echo "$as_me:$LINENO: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214
12215
12216 if test -n "$GENPNG"; then
12217 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12218 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12219 if $GENPNG --help > /dev/null 2>&1 ; then
12220 { $as_echo "$as_me:$LINENO: result: ok" >&5
12221 $as_echo "ok" >&6; }
12222 GENHTML="$GENHTML --frames"
12223 else
12224 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12225 $as_echo "not supported" >&6; }
12226 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12227 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12228 GENPNG=
12229 fi
12230 fi
12231 fi
12232
12233 ################################################################################
12234 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12235 $as_echo_n "checking whether to use device-mapper... " >&6; }
12236 # Check whether --enable-devmapper was given.
12237 if test "${enable_devmapper+set}" = set; then
12238 enableval=$enable_devmapper; DEVMAPPER=$enableval
12239 fi
12240
12241 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12242 $as_echo "$DEVMAPPER" >&6; }
12243
12244 if test x$DEVMAPPER = xyes; then
12245
12246 cat >>confdefs.h <<\_ACEOF
12247 #define DEVMAPPER_SUPPORT 1
12248 _ACEOF
12249
12250 fi
12251
12252 ################################################################################
12253 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12254 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12255 # Check whether --enable-udev_sync was given.
12256 if test "${enable_udev_sync+set}" = set; then
12257 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12258 else
12259 UDEV_SYNC=no
12260 fi
12261
12262 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12263 $as_echo "$UDEV_SYNC" >&6; }
12264
12265 if test x$UDEV_SYNC = xyes; then
12266 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12267 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12268 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12270 else
12271 ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-ludev $LIBS"
12273 cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h. */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char udev_queue_get_udev_is_active ();
12287 int
12288 main ()
12289 {
12290 return udev_queue_get_udev_is_active ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (ac_try="$ac_link"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300 esac
12301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12302 $as_echo "$ac_try_echo") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext && {
12313 test "$cross_compiling" = yes ||
12314 $as_test_x conftest$ac_exeext
12315 }; then
12316 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12317 else
12318 $as_echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12322 fi
12323
12324 rm -rf conftest.dSYM
12325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12328 fi
12329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12330 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12331 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12332 UDEV_LIBS="-ludev"
12333 else
12334 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12335 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12336 { (exit 1); exit 1; }; }
12337 fi
12338
12339
12340 cat >>confdefs.h <<\_ACEOF
12341 #define UDEV_SYNC_SUPPORT 1
12342 _ACEOF
12343
12344 fi
12345
12346 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12347 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12348 # Check whether --enable-udev_rules was given.
12349 if test "${enable_udev_rules+set}" = set; then
12350 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12351 else
12352 UDEV_RULES=$UDEV_SYNC
12353 fi
12354
12355 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12356 $as_echo "$UDEV_RULES" >&6; }
12357
12358 ################################################################################
12359 # Check whether --enable-compat was given.
12360 if test "${enable_compat+set}" = set; then
12361 enableval=$enable_compat; DM_COMPAT=$enableval
12362 else
12363 DM_COMPAT=no
12364 fi
12365
12366
12367 ################################################################################
12368 # Check whether --enable-units-compat was given.
12369 if test "${enable_units_compat+set}" = set; then
12370 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12371 else
12372 UNITS_COMPAT=no
12373 fi
12374
12375
12376 if test x$UNITS_COMPAT = xyes; then
12377
12378 cat >>confdefs.h <<\_ACEOF
12379 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12380 _ACEOF
12381
12382 fi
12383
12384 ################################################################################
12385 # Check whether --enable-ioctl was given.
12386 if test "${enable_ioctl+set}" = set; then
12387 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12388 fi
12389
12390
12391 ################################################################################
12392 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12393 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12394 # Check whether --enable-o_direct was given.
12395 if test "${enable_o_direct+set}" = set; then
12396 enableval=$enable_o_direct; ODIRECT=$enableval
12397 fi
12398
12399 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12400 $as_echo "$ODIRECT" >&6; }
12401
12402 if test x$ODIRECT = xyes; then
12403
12404 cat >>confdefs.h <<\_ACEOF
12405 #define O_DIRECT_SUPPORT 1
12406 _ACEOF
12407
12408 fi
12409
12410 ################################################################################
12411 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12412 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12413 # Check whether --enable-applib was given.
12414 if test "${enable_applib+set}" = set; then
12415 enableval=$enable_applib; APPLIB=$enableval
12416 else
12417 APPLIB=no
12418 fi
12419
12420 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12421 $as_echo "$APPLIB" >&6; }
12422
12423 test x$APPLIB = xyes \
12424 && LVM2APP_LIB=-llvm2app \
12425 || LVM2APP_LIB=
12426
12427 ################################################################################
12428 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12429 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12430 # Check whether --enable-cmdlib was given.
12431 if test "${enable_cmdlib+set}" = set; then
12432 enableval=$enable_cmdlib; CMDLIB=$enableval
12433 else
12434 CMDLIB=no
12435 fi
12436
12437 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12438 $as_echo "$CMDLIB" >&6; }
12439
12440 test x$CMDLIB = xyes \
12441 && LVM2CMD_LIB=-llvm2cmd \
12442 || LVM2CMD_LIB=
12443
12444 ################################################################################
12445 # Check whether --enable-pkgconfig was given.
12446 if test "${enable_pkgconfig+set}" = set; then
12447 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12448 else
12449 PKGCONFIG=no
12450 fi
12451
12452
12453 ################################################################################
12454 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12455 $as_echo_n "checking whether to install fsadm... " >&6; }
12456 # Check whether --enable-fsadm was given.
12457 if test "${enable_fsadm+set}" = set; then
12458 enableval=$enable_fsadm; FSADM=$enableval
12459 fi
12460
12461 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12462 $as_echo "$FSADM" >&6; }
12463
12464 ################################################################################
12465 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12466 $as_echo_n "checking whether to use dmeventd... " >&6; }
12467 # Check whether --enable-dmeventd was given.
12468 if test "${enable_dmeventd+set}" = set; then
12469 enableval=$enable_dmeventd; DMEVENTD=$enableval
12470 fi
12471
12472 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12473 $as_echo "$DMEVENTD" >&6; }
12474
12475 BUILD_DMEVENTD=$DMEVENTD
12476
12477 if test x$DMEVENTD = xyes; then
12478 if test x$MIRRORS != xinternal; then
12479 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12480 " >&5
12481 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12482 " >&2;}
12483 { (exit 1); exit 1; }; }
12484 fi
12485 if test x$CMDLIB = xno; then
12486 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12487 " >&5
12488 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12489 " >&2;}
12490 { (exit 1); exit 1; }; }
12491 fi
12492 fi
12493
12494 if test x$DMEVENTD = xyes; then
12495
12496 cat >>confdefs.h <<\_ACEOF
12497 #define DMEVENTD 1
12498 _ACEOF
12499
12500 fi
12501
12502 ################################################################################
12503
12504 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12505 $as_echo_n "checking for getline in -lc... " >&6; }
12506 if test "${ac_cv_lib_c_getline+set}" = set; then
12507 $as_echo_n "(cached) " >&6
12508 else
12509 ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-lc $LIBS"
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 char getline ();
12525 int
12526 main ()
12527 {
12528 return getline ();
12529 ;
12530 return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_link") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext && {
12551 test "$cross_compiling" = yes ||
12552 $as_test_x conftest$ac_exeext
12553 }; then
12554 ac_cv_lib_c_getline=yes
12555 else
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 ac_cv_lib_c_getline=no
12560 fi
12561
12562 rm -rf conftest.dSYM
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12568 $as_echo "$ac_cv_lib_c_getline" >&6; }
12569 if test "x$ac_cv_lib_c_getline" = x""yes; then
12570
12571 cat >>confdefs.h <<\_ACEOF
12572 #define HAVE_GETLINE 1
12573 _ACEOF
12574
12575 fi
12576
12577
12578 ################################################################################
12579
12580 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12581 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12582 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12583 $as_echo_n "(cached) " >&6
12584 else
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-lc $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h. */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char canonicalize_file_name ();
12601 int
12602 main ()
12603 {
12604 return canonicalize_file_name ();
12605 ;
12606 return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616 $as_echo "$ac_try_echo") >&5
12617 (eval "$ac_link") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext && {
12627 test "$cross_compiling" = yes ||
12628 $as_test_x conftest$ac_exeext
12629 }; then
12630 ac_cv_lib_c_canonicalize_file_name=yes
12631 else
12632 $as_echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_lib_c_canonicalize_file_name=no
12636 fi
12637
12638 rm -rf conftest.dSYM
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12644 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12645 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_CANONICALIZE_FILE_NAME 1
12649 _ACEOF
12650
12651 fi
12652
12653
12654 ################################################################################
12655 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12656 then exec_prefix="";
12657 fi;
12658
12659 ################################################################################
12660 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12662 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12663 $as_echo_n "(cached) " >&6
12664 else
12665 ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-ldl $LIBS"
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 char dlopen ();
12681 int
12682 main ()
12683 {
12684 return dlopen ();
12685 ;
12686 return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (ac_try="$ac_link"
12691 case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694 esac
12695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12696 $as_echo "$ac_try_echo") >&5
12697 (eval "$ac_link") 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && {
12704 test -z "$ac_c_werror_flag" ||
12705 test ! -s conftest.err
12706 } && test -s conftest$ac_exeext && {
12707 test "$cross_compiling" = yes ||
12708 $as_test_x conftest$ac_exeext
12709 }; then
12710 ac_cv_lib_dl_dlopen=yes
12711 else
12712 $as_echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 ac_cv_lib_dl_dlopen=no
12716 fi
12717
12718 rm -rf conftest.dSYM
12719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12720 conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12722 fi
12723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12724 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12725 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12726
12727
12728 cat >>confdefs.h <<\_ACEOF
12729 #define HAVE_LIBDL 1
12730 _ACEOF
12731
12732 DL_LIBS="-ldl"
12733 HAVE_LIBDL=yes
12734 else
12735
12736 DL_LIBS=
12737 HAVE_LIBDL=no
12738 fi
12739
12740
12741 ################################################################################
12742 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12743 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12744 \) -a "x$STATIC_LINK" = xyes ];
12745 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12746 " >&5
12747 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12748 " >&2;}
12749 { (exit 1); exit 1; }; }
12750 fi
12751
12752 ################################################################################
12753 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12754 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12755 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12756 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12757 $as_echo_n "(cached) " >&6
12758 else
12759 ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-lpthread $LIBS"
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h. */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12767
12768 /* Override any GCC internal prototype to avoid an error.
12769 Use char because int might match the return type of a GCC
12770 builtin and then its argument prototype would still apply. */
12771 #ifdef __cplusplus
12772 extern "C"
12773 #endif
12774 char pthread_mutex_lock ();
12775 int
12776 main ()
12777 {
12778 return pthread_mutex_lock ();
12779 ;
12780 return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (ac_try="$ac_link"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12790 $as_echo "$ac_try_echo") >&5
12791 (eval "$ac_link") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest$ac_exeext && {
12801 test "$cross_compiling" = yes ||
12802 $as_test_x conftest$ac_exeext
12803 }; then
12804 ac_cv_lib_pthread_pthread_mutex_lock=yes
12805 else
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809 ac_cv_lib_pthread_pthread_mutex_lock=no
12810 fi
12811
12812 rm -rf conftest.dSYM
12813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12816 fi
12817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12818 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12819 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12820 PTHREAD_LIBS="-lpthread"
12821 else
12822 hard_bailout
12823 fi
12824
12825 fi
12826
12827 ################################################################################
12828 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12829 $as_echo_n "checking whether to enable selinux support... " >&6; }
12830 # Check whether --enable-selinux was given.
12831 if test "${enable_selinux+set}" = set; then
12832 enableval=$enable_selinux; SELINUX=$enableval
12833 fi
12834
12835 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12836 $as_echo "$SELINUX" >&6; }
12837
12838 ################################################################################
12839 if test x$SELINUX = xyes; then
12840 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12841 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12842 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12843 $as_echo_n "(cached) " >&6
12844 else
12845 ac_check_lib_save_LIBS=$LIBS
12846 LIBS="-lsepol $LIBS"
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char sepol_check_context ();
12861 int
12862 main ()
12863 {
12864 return sepol_check_context ();
12865 ;
12866 return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874 esac
12875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12876 $as_echo "$ac_try_echo") >&5
12877 (eval "$ac_link") 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } && {
12884 test -z "$ac_c_werror_flag" ||
12885 test ! -s conftest.err
12886 } && test -s conftest$ac_exeext && {
12887 test "$cross_compiling" = yes ||
12888 $as_test_x conftest$ac_exeext
12889 }; then
12890 ac_cv_lib_sepol_sepol_check_context=yes
12891 else
12892 $as_echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_cv_lib_sepol_sepol_check_context=no
12896 fi
12897
12898 rm -rf conftest.dSYM
12899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12902 fi
12903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12904 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12905 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12906
12907
12908 cat >>confdefs.h <<\_ACEOF
12909 #define HAVE_SEPOL 1
12910 _ACEOF
12911
12912 SELINUX_LIBS="-lsepol"
12913 fi
12914
12915
12916 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12917 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12918 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12919 $as_echo_n "(cached) " >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-lselinux $LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char is_selinux_enabled ();
12937 int
12938 main ()
12939 {
12940 return is_selinux_enabled ();
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12952 $as_echo "$ac_try_echo") >&5
12953 (eval "$ac_link") 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } && {
12960 test -z "$ac_c_werror_flag" ||
12961 test ! -s conftest.err
12962 } && test -s conftest$ac_exeext && {
12963 test "$cross_compiling" = yes ||
12964 $as_test_x conftest$ac_exeext
12965 }; then
12966 ac_cv_lib_selinux_is_selinux_enabled=yes
12967 else
12968 $as_echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 ac_cv_lib_selinux_is_selinux_enabled=no
12972 fi
12973
12974 rm -rf conftest.dSYM
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12980 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12981 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12982
12983
12984 for ac_header in selinux/selinux.h
12985 do
12986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12989 $as_echo_n "checking for $ac_header... " >&6; }
12990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12991 $as_echo_n "(cached) " >&6
12992 fi
12993 ac_res=`eval 'as_val=${'$as_ac_Header'}
12994 $as_echo "$as_val"'`
12995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12996 $as_echo "$ac_res" >&6; }
12997 else
12998 # Is the header compilable?
12999 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000 $as_echo_n "checking $ac_header usability... " >&6; }
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 #include <$ac_header>
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015 esac
13016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017 $as_echo "$ac_try_echo") >&5
13018 (eval "$ac_compile") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && {
13025 test -z "$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13027 } && test -s conftest.$ac_objext; then
13028 ac_header_compiler=yes
13029 else
13030 $as_echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 ac_header_compiler=no
13034 fi
13035
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13038 $as_echo "$ac_header_compiler" >&6; }
13039
13040 # Is the header present?
13041 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13042 $as_echo_n "checking $ac_header presence... " >&6; }
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 #include <$ac_header>
13050 _ACEOF
13051 if { (ac_try="$ac_cpp conftest.$ac_ext"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13055 esac
13056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13057 $as_echo "$ac_try_echo") >&5
13058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } >/dev/null && {
13065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13066 test ! -s conftest.err
13067 }; then
13068 ac_header_preproc=yes
13069 else
13070 $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ac_header_preproc=no
13074 fi
13075
13076 rm -f conftest.err conftest.$ac_ext
13077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13078 $as_echo "$ac_header_preproc" >&6; }
13079
13080 # So? What about this header?
13081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13082 yes:no: )
13083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13084 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13087 ac_header_preproc=yes
13088 ;;
13089 no:yes:* )
13090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13091 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13093 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13095 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13097 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13101 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13102
13103 ;;
13104 esac
13105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13106 $as_echo_n "checking for $ac_header... " >&6; }
13107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13108 $as_echo_n "(cached) " >&6
13109 else
13110 eval "$as_ac_Header=\$ac_header_preproc"
13111 fi
13112 ac_res=`eval 'as_val=${'$as_ac_Header'}
13113 $as_echo "$as_val"'`
13114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13115 $as_echo "$ac_res" >&6; }
13116
13117 fi
13118 as_val=`eval 'as_val=${'$as_ac_Header'}
13119 $as_echo "$as_val"'`
13120 if test "x$as_val" = x""yes; then
13121 cat >>confdefs.h <<_ACEOF
13122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13123 _ACEOF
13124
13125 else
13126 hard_bailout
13127 fi
13128
13129 done
13130
13131
13132 cat >>confdefs.h <<\_ACEOF
13133 #define HAVE_SELINUX 1
13134 _ACEOF
13135
13136 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13137 HAVE_SELINUX=yes
13138 else
13139
13140 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13141 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13142 SELINUX_LIBS=
13143 HAVE_SELINUX=no
13144 fi
13145
13146 fi
13147
13148 ################################################################################
13149 if test x$REALTIME = xyes; then
13150 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13151 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13152 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13153 $as_echo_n "(cached) " >&6
13154 else
13155 ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lrt $LIBS"
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 char clock_gettime ();
13171 int
13172 main ()
13173 {
13174 return clock_gettime ();
13175 ;
13176 return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186 $as_echo "$ac_try_echo") >&5
13187 (eval "$ac_link") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest$ac_exeext && {
13197 test "$cross_compiling" = yes ||
13198 $as_test_x conftest$ac_exeext
13199 }; then
13200 ac_cv_lib_rt_clock_gettime=yes
13201 else
13202 $as_echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_cv_lib_rt_clock_gettime=no
13206 fi
13207
13208 rm -rf conftest.dSYM
13209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13210 conftest$ac_exeext conftest.$ac_ext
13211 LIBS=$ac_check_lib_save_LIBS
13212 fi
13213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13214 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13215 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13216 HAVE_REALTIME=yes
13217 else
13218 HAVE_REALTIME=no
13219 fi
13220
13221
13222 if test x$HAVE_REALTIME = xyes; then
13223
13224 cat >>confdefs.h <<\_ACEOF
13225 #define HAVE_REALTIME 1
13226 _ACEOF
13227
13228 LIBS="-lrt $LIBS"
13229 else
13230 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13231 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13232 fi
13233 fi
13234
13235 ################################################################################
13236
13237 for ac_header in getopt.h
13238 do
13239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13242 $as_echo_n "checking for $ac_header... " >&6; }
13243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13244 $as_echo_n "(cached) " >&6
13245 fi
13246 ac_res=`eval 'as_val=${'$as_ac_Header'}
13247 $as_echo "$as_val"'`
13248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13249 $as_echo "$ac_res" >&6; }
13250 else
13251 # Is the header compilable?
13252 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13253 $as_echo_n "checking $ac_header usability... " >&6; }
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 $ac_includes_default
13261 #include <$ac_header>
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (ac_try="$ac_compile"
13265 case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268 esac
13269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270 $as_echo "$ac_try_echo") >&5
13271 (eval "$ac_compile") 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } && {
13278 test -z "$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 } && test -s conftest.$ac_objext; then
13281 ac_header_compiler=yes
13282 else
13283 $as_echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286 ac_header_compiler=no
13287 fi
13288
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13291 $as_echo "$ac_header_compiler" >&6; }
13292
13293 # Is the header present?
13294 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13295 $as_echo_n "checking $ac_header presence... " >&6; }
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h. */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <$ac_header>
13303 _ACEOF
13304 if { (ac_try="$ac_cpp conftest.$ac_ext"
13305 case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } >/dev/null && {
13318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 }; then
13321 ac_header_preproc=yes
13322 else
13323 $as_echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_header_preproc=no
13327 fi
13328
13329 rm -f conftest.err conftest.$ac_ext
13330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13331 $as_echo "$ac_header_preproc" >&6; }
13332
13333 # So? What about this header?
13334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13335 yes:no: )
13336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13337 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13339 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13340 ac_header_preproc=yes
13341 ;;
13342 no:yes:* )
13343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13344 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13346 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13348 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13350 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13354 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13355
13356 ;;
13357 esac
13358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 $as_echo_n "checking for $ac_header... " >&6; }
13360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13361 $as_echo_n "(cached) " >&6
13362 else
13363 eval "$as_ac_Header=\$ac_header_preproc"
13364 fi
13365 ac_res=`eval 'as_val=${'$as_ac_Header'}
13366 $as_echo "$as_val"'`
13367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13368 $as_echo "$ac_res" >&6; }
13369
13370 fi
13371 as_val=`eval 'as_val=${'$as_ac_Header'}
13372 $as_echo "$as_val"'`
13373 if test "x$as_val" = x""yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376 _ACEOF
13377
13378 cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_GETOPTLONG 1
13380 _ACEOF
13381
13382 fi
13383
13384 done
13385
13386
13387 ################################################################################
13388 if test x$READLINE != xno; then
13389 lvm_saved_libs=$LIBS
13390 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13391 $as_echo_n "checking for library containing tgetent... " >&6; }
13392 if test "${ac_cv_search_tgetent+set}" = set; then
13393 $as_echo_n "(cached) " >&6
13394 else
13395 ac_func_search_save_LIBS=$LIBS
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402
13403 /* Override any GCC internal prototype to avoid an error.
13404 Use char because int might match the return type of a GCC
13405 builtin and then its argument prototype would still apply. */
13406 #ifdef __cplusplus
13407 extern "C"
13408 #endif
13409 char tgetent ();
13410 int
13411 main ()
13412 {
13413 return tgetent ();
13414 ;
13415 return 0;
13416 }
13417 _ACEOF
13418 for ac_lib in '' tinfo ncurses curses termcap termlib; do
13419 if test -z "$ac_lib"; then
13420 ac_res="none required"
13421 else
13422 ac_res=-l$ac_lib
13423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13424 fi
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426 if { (ac_try="$ac_link"
13427 case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13432 $as_echo "$ac_try_echo") >&5
13433 (eval "$ac_link") 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest$ac_exeext && {
13443 test "$cross_compiling" = yes ||
13444 $as_test_x conftest$ac_exeext
13445 }; then
13446 ac_cv_search_tgetent=$ac_res
13447 else
13448 $as_echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452 fi
13453
13454 rm -rf conftest.dSYM
13455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13456 conftest$ac_exeext
13457 if test "${ac_cv_search_tgetent+set}" = set; then
13458 break
13459 fi
13460 done
13461 if test "${ac_cv_search_tgetent+set}" = set; then
13462 :
13463 else
13464 ac_cv_search_tgetent=no
13465 fi
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13468 fi
13469 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13470 $as_echo "$ac_cv_search_tgetent" >&6; }
13471 ac_res=$ac_cv_search_tgetent
13472 if test "$ac_res" != no; then
13473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474 READLINE_LIBS=$ac_cv_search_tgetent
13475 else
13476
13477 if test "$READLINE" = yes; then
13478 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13479 --enable-readline option (which is enabled by default). Either disable readline
13480 support with --disable-readline or download and install termcap from:
13481 ftp.gnu.org/gnu/termcap
13482 Note: if you are using precompiled packages you will also need the development
13483 package as well (which may be called termcap-devel or something similar).
13484 Note: (n)curses also seems to work as a substitute for termcap. This was
13485 not found either - but you could try installing that as well." >&5
13486 $as_echo "$as_me: error: termcap could not be found which is required for the
13487 --enable-readline option (which is enabled by default). Either disable readline
13488 support with --disable-readline or download and install termcap from:
13489 ftp.gnu.org/gnu/termcap
13490 Note: if you are using precompiled packages you will also need the development
13491 package as well (which may be called termcap-devel or something similar).
13492 Note: (n)curses also seems to work as a substitute for termcap. This was
13493 not found either - but you could try installing that as well." >&2;}
13494 { (exit 1); exit 1; }; }
13495 fi
13496 fi
13497
13498 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13499 $as_echo_n "checking for readline in -lreadline... " >&6; }
13500 if test "${ac_cv_lib_readline_readline+set}" = set; then
13501 $as_echo_n "(cached) " >&6
13502 else
13503 ac_check_lib_save_LIBS=$LIBS
13504 LIBS="-lreadline $LIBS"
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511
13512 /* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
13515 #ifdef __cplusplus
13516 extern "C"
13517 #endif
13518 char readline ();
13519 int
13520 main ()
13521 {
13522 return readline ();
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532 esac
13533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13534 $as_echo "$ac_try_echo") >&5
13535 (eval "$ac_link") 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 } && test -s conftest$ac_exeext && {
13545 test "$cross_compiling" = yes ||
13546 $as_test_x conftest$ac_exeext
13547 }; then
13548 ac_cv_lib_readline_readline=yes
13549 else
13550 $as_echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_cv_lib_readline_readline=no
13554 fi
13555
13556 rm -rf conftest.dSYM
13557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13558 conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13560 fi
13561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13562 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13563 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13564
13565
13566 cat >>confdefs.h <<\_ACEOF
13567 #define READLINE_SUPPORT 1
13568 _ACEOF
13569
13570 LIBS=$lvm_saved_libs
13571 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13572 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13573 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13574 $as_echo_n "(cached) " >&6
13575 else
13576 ac_check_lib_save_LIBS=$LIBS
13577 LIBS="-lreadline $LIBS"
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13588 #ifdef __cplusplus
13589 extern "C"
13590 #endif
13591 char rl_line_buffer ();
13592 int
13593 main ()
13594 {
13595 return rl_line_buffer ();
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (ac_try="$ac_link"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13607 $as_echo "$ac_try_echo") >&5
13608 (eval "$ac_link") 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } && {
13615 test -z "$ac_c_werror_flag" ||
13616 test ! -s conftest.err
13617 } && test -s conftest$ac_exeext && {
13618 test "$cross_compiling" = yes ||
13619 $as_test_x conftest$ac_exeext
13620 }; then
13621 ac_cv_lib_readline_rl_line_buffer=yes
13622 else
13623 $as_echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_cv_lib_readline_rl_line_buffer=no
13627 fi
13628
13629 rm -rf conftest.dSYM
13630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13633 fi
13634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13635 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13636 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13637 READLINE_LIBS="-lreadline"
13638 else
13639
13640 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13641 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13642 READLINE_LIBS="-lreadline $READLINE_LIBS"
13643
13644 fi
13645
13646 else
13647
13648 READLINE_LIBS=
13649 if test "$READLINE" = yes; then
13650 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13651 --enable-readline option (which is enabled by default). Either disable readline
13652 support with --disable-readline or download and install readline from:
13653 ftp.gnu.org/gnu/readline
13654 Note: if you are using precompiled packages you will also need the development
13655 package as well (which may be called readline-devel or something similar)." >&5
13656 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13657 --enable-readline option (which is enabled by default). Either disable readline
13658 support with --disable-readline or download and install readline from:
13659 ftp.gnu.org/gnu/readline
13660 Note: if you are using precompiled packages you will also need the development
13661 package as well (which may be called readline-devel or something similar)." >&2;}
13662 { (exit 1); exit 1; }; }
13663 fi
13664 fi
13665
13666 LIBS="$READLINE_LIBS $lvm_saved_libs"
13667
13668 for ac_func in rl_completion_matches
13669 do
13670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13671 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13672 $as_echo_n "checking for $ac_func... " >&6; }
13673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13674 $as_echo_n "(cached) " >&6
13675 else
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13684 #define $ac_func innocuous_$ac_func
13685
13686 /* System header to define __stub macros and hopefully few prototypes,
13687 which can conflict with char $ac_func (); below.
13688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13689 <limits.h> exists even on freestanding compilers. */
13690
13691 #ifdef __STDC__
13692 # include <limits.h>
13693 #else
13694 # include <assert.h>
13695 #endif
13696
13697 #undef $ac_func
13698
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702 #ifdef __cplusplus
13703 extern "C"
13704 #endif
13705 char $ac_func ();
13706 /* The GNU C library defines this for functions which it implements
13707 to always fail with ENOSYS. Some functions are actually named
13708 something starting with __ and the normal name is an alias. */
13709 #if defined __stub_$ac_func || defined __stub___$ac_func
13710 choke me
13711 #endif
13712
13713 int
13714 main ()
13715 {
13716 return $ac_func ();
13717 ;
13718 return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (ac_try="$ac_link"
13723 case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726 esac
13727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13728 $as_echo "$ac_try_echo") >&5
13729 (eval "$ac_link") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest$ac_exeext && {
13739 test "$cross_compiling" = yes ||
13740 $as_test_x conftest$ac_exeext
13741 }; then
13742 eval "$as_ac_var=yes"
13743 else
13744 $as_echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 eval "$as_ac_var=no"
13748 fi
13749
13750 rm -rf conftest.dSYM
13751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13752 conftest$ac_exeext conftest.$ac_ext
13753 fi
13754 ac_res=`eval 'as_val=${'$as_ac_var'}
13755 $as_echo "$as_val"'`
13756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13757 $as_echo "$ac_res" >&6; }
13758 as_val=`eval 'as_val=${'$as_ac_var'}
13759 $as_echo "$as_val"'`
13760 if test "x$as_val" = x""yes; then
13761 cat >>confdefs.h <<_ACEOF
13762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13763 _ACEOF
13764
13765 fi
13766 done
13767
13768 LIBS=$lvm_saved_libs
13769 fi
13770
13771 ################################################################################
13772 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13773 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13774 # Check whether --enable-nls was given.
13775 if test "${enable_nls+set}" = set; then
13776 enableval=$enable_nls; INTL=$enableval
13777 else
13778 INTL=no
13779 fi
13780
13781 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13782 $as_echo "$INTL" >&6; }
13783
13784 if test x$INTL = xyes; then
13785 # FIXME - Move this - can be device-mapper too
13786 INTL_PACKAGE="lvm2"
13787 # Extract the first word of "msgfmt", so it can be a program name with args.
13788 set dummy msgfmt; ac_word=$2
13789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if test "${ac_cv_path_MSGFMT+set}" = set; then
13792 $as_echo_n "(cached) " >&6
13793 else
13794 case $MSGFMT in
13795 [\\/]* | ?:[\\/]*)
13796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13797 ;;
13798 *)
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13801 do
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13806 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13808 break 2
13809 fi
13810 done
13811 done
13812 IFS=$as_save_IFS
13813
13814 ;;
13815 esac
13816 fi
13817 MSGFMT=$ac_cv_path_MSGFMT
13818 if test -n "$MSGFMT"; then
13819 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13820 $as_echo "$MSGFMT" >&6; }
13821 else
13822 { $as_echo "$as_me:$LINENO: result: no" >&5
13823 $as_echo "no" >&6; }
13824 fi
13825
13826
13827 if [ "x$MSGFMT" == x ];
13828 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13829 " >&5
13830 $as_echo "$as_me: error: msgfmt not found in path $PATH
13831 " >&2;}
13832 { (exit 1); exit 1; }; }
13833 fi;
13834
13835
13836 # Check whether --with-localedir was given.
13837 if test "${with_localedir+set}" = set; then
13838 withval=$with_localedir; LOCALEDIR="$withval"
13839 else
13840 LOCALEDIR='${prefix}/share/locale'
13841 fi
13842
13843 fi
13844
13845 ################################################################################
13846
13847 # Check whether --with-confdir was given.
13848 if test "${with_confdir+set}" = set; then
13849 withval=$with_confdir; CONFDIR="$withval"
13850 else
13851 CONFDIR='/etc'
13852 fi
13853
13854
13855
13856 # Check whether --with-staticdir was given.
13857 if test "${with_staticdir+set}" = set; then
13858 withval=$with_staticdir; STATICDIR="$withval"
13859 else
13860 STATICDIR='${exec_prefix}/sbin'
13861 fi
13862
13863
13864
13865 # Check whether --with-usrlibdir was given.
13866 if test "${with_usrlibdir+set}" = set; then
13867 withval=$with_usrlibdir; usrlibdir="$withval"
13868 else
13869 usrlibdir='${prefix}/lib'
13870 fi
13871
13872
13873
13874 # Check whether --with-usrsbindir was given.
13875 if test "${with_usrsbindir+set}" = set; then
13876 withval=$with_usrsbindir; usrsbindir="$withval"
13877 else
13878 usrsbindir='${prefix}/sbin'
13879 fi
13880
13881
13882 ################################################################################
13883
13884 # Check whether --with-udev_prefix was given.
13885 if test "${with_udev_prefix+set}" = set; then
13886 withval=$with_udev_prefix; udev_prefix="$withval"
13887 else
13888 udev_prefix='${exec_prefix}'
13889 fi
13890
13891
13892
13893 # Check whether --with-udevdir was given.
13894 if test "${with_udevdir+set}" = set; then
13895 withval=$with_udevdir; udevdir="$withval"
13896 else
13897 udevdir='${udev_prefix}/lib/udev/rules.d'
13898 fi
13899
13900
13901 ################################################################################
13902 if test x$READLINE = xyes; then
13903
13904
13905 for ac_header in readline/readline.h readline/history.h
13906 do
13907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13910 $as_echo_n "checking for $ac_header... " >&6; }
13911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13912 $as_echo_n "(cached) " >&6
13913 fi
13914 ac_res=`eval 'as_val=${'$as_ac_Header'}
13915 $as_echo "$as_val"'`
13916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917 $as_echo "$ac_res" >&6; }
13918 else
13919 # Is the header compilable?
13920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13921 $as_echo_n "checking $ac_header usability... " >&6; }
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 $ac_includes_default
13929 #include <$ac_header>
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (ac_try="$ac_compile"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936 esac
13937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13938 $as_echo "$ac_try_echo") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13950 else
13951 $as_echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_header_compiler=no
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 $as_echo "$ac_header_compiler" >&6; }
13960
13961 # Is the header present?
13962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13963 $as_echo_n "checking $ac_header presence... " >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <$ac_header>
13971 _ACEOF
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13978 $as_echo "$ac_try_echo") >&5
13979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } >/dev/null && {
13986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 }; then
13989 ac_header_preproc=yes
13990 else
13991 $as_echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_header_preproc=no
13995 fi
13996
13997 rm -f conftest.err conftest.$ac_ext
13998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13999 $as_echo "$ac_header_preproc" >&6; }
14000
14001 # So? What about this header?
14002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 yes:no: )
14004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14008 ac_header_preproc=yes
14009 ;;
14010 no:yes:* )
14011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14023
14024 ;;
14025 esac
14026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14027 $as_echo_n "checking for $ac_header... " >&6; }
14028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14029 $as_echo_n "(cached) " >&6
14030 else
14031 eval "$as_ac_Header=\$ac_header_preproc"
14032 fi
14033 ac_res=`eval 'as_val=${'$as_ac_Header'}
14034 $as_echo "$as_val"'`
14035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14036 $as_echo "$ac_res" >&6; }
14037
14038 fi
14039 as_val=`eval 'as_val=${'$as_ac_Header'}
14040 $as_echo "$as_val"'`
14041 if test "x$as_val" = x""yes; then
14042 cat >>confdefs.h <<_ACEOF
14043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14044 _ACEOF
14045
14046 else
14047 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14048 $as_echo "$as_me: error: bailing out" >&2;}
14049 { (exit 1); exit 1; }; }
14050 fi
14051
14052 done
14053
14054 fi
14055
14056 if test x$CLVMD != xnone; then
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067 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
14068 do
14069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14071 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14072 $as_echo_n "checking for $ac_header... " >&6; }
14073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14074 $as_echo_n "(cached) " >&6
14075 fi
14076 ac_res=`eval 'as_val=${'$as_ac_Header'}
14077 $as_echo "$as_val"'`
14078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14079 $as_echo "$ac_res" >&6; }
14080 else
14081 # Is the header compilable?
14082 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14083 $as_echo_n "checking $ac_header usability... " >&6; }
14084 cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h. */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 $ac_includes_default
14091 #include <$ac_header>
14092 _ACEOF
14093 rm -f conftest.$ac_objext
14094 if { (ac_try="$ac_compile"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098 esac
14099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14100 $as_echo "$ac_try_echo") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
14111 ac_header_compiler=yes
14112 else
14113 $as_echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_header_compiler=no
14117 fi
14118
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14121 $as_echo "$ac_header_compiler" >&6; }
14122
14123 # Is the header present?
14124 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14125 $as_echo_n "checking $ac_header presence... " >&6; }
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <$ac_header>
14133 _ACEOF
14134 if { (ac_try="$ac_cpp conftest.$ac_ext"
14135 case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138 esac
14139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14140 $as_echo "$ac_try_echo") >&5
14141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } >/dev/null && {
14148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14149 test ! -s conftest.err
14150 }; then
14151 ac_header_preproc=yes
14152 else
14153 $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_header_preproc=no
14157 fi
14158
14159 rm -f conftest.err conftest.$ac_ext
14160 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14161 $as_echo "$ac_header_preproc" >&6; }
14162
14163 # So? What about this header?
14164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14165 yes:no: )
14166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14167 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14170 ac_header_preproc=yes
14171 ;;
14172 no:yes:* )
14173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14174 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14176 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14178 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14180 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14184 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14185
14186 ;;
14187 esac
14188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 $as_echo_n "checking for $ac_header... " >&6; }
14190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14191 $as_echo_n "(cached) " >&6
14192 else
14193 eval "$as_ac_Header=\$ac_header_preproc"
14194 fi
14195 ac_res=`eval 'as_val=${'$as_ac_Header'}
14196 $as_echo "$as_val"'`
14197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14198 $as_echo "$ac_res" >&6; }
14199
14200 fi
14201 as_val=`eval 'as_val=${'$as_ac_Header'}
14202 $as_echo "$as_val"'`
14203 if test "x$as_val" = x""yes; then
14204 cat >>confdefs.h <<_ACEOF
14205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 _ACEOF
14207
14208 else
14209 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14210 $as_echo "$as_me: error: bailing out" >&2;}
14211 { (exit 1); exit 1; }; }
14212 fi
14213
14214 done
14215
14216
14217
14218
14219
14220
14221 for ac_func in dup2 getmntent memmove select socket
14222 do
14223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14225 $as_echo_n "checking for $ac_func... " >&6; }
14226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14227 $as_echo_n "(cached) " >&6
14228 else
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14237 #define $ac_func innocuous_$ac_func
14238
14239 /* System header to define __stub macros and hopefully few prototypes,
14240 which can conflict with char $ac_func (); below.
14241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14242 <limits.h> exists even on freestanding compilers. */
14243
14244 #ifdef __STDC__
14245 # include <limits.h>
14246 #else
14247 # include <assert.h>
14248 #endif
14249
14250 #undef $ac_func
14251
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char $ac_func ();
14259 /* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
14262 #if defined __stub_$ac_func || defined __stub___$ac_func
14263 choke me
14264 #endif
14265
14266 int
14267 main ()
14268 {
14269 return $ac_func ();
14270 ;
14271 return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (ac_try="$ac_link"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279 esac
14280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14281 $as_echo "$ac_try_echo") >&5
14282 (eval "$ac_link") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } && {
14289 test -z "$ac_c_werror_flag" ||
14290 test ! -s conftest.err
14291 } && test -s conftest$ac_exeext && {
14292 test "$cross_compiling" = yes ||
14293 $as_test_x conftest$ac_exeext
14294 }; then
14295 eval "$as_ac_var=yes"
14296 else
14297 $as_echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 eval "$as_ac_var=no"
14301 fi
14302
14303 rm -rf conftest.dSYM
14304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14305 conftest$ac_exeext conftest.$ac_ext
14306 fi
14307 ac_res=`eval 'as_val=${'$as_ac_var'}
14308 $as_echo "$as_val"'`
14309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14310 $as_echo "$ac_res" >&6; }
14311 as_val=`eval 'as_val=${'$as_ac_var'}
14312 $as_echo "$as_val"'`
14313 if test "x$as_val" = x""yes; then
14314 cat >>confdefs.h <<_ACEOF
14315 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14316 _ACEOF
14317
14318 else
14319 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14320 $as_echo "$as_me: error: bailing out" >&2;}
14321 { (exit 1); exit 1; }; }
14322 fi
14323 done
14324
14325 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14326 # -lseq on Dynix/PTX, -lgen on Unixware.
14327 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14328 $as_echo_n "checking for library containing getmntent... " >&6; }
14329 if test "${ac_cv_search_getmntent+set}" = set; then
14330 $as_echo_n "(cached) " >&6
14331 else
14332 ac_func_search_save_LIBS=$LIBS
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply. */
14343 #ifdef __cplusplus
14344 extern "C"
14345 #endif
14346 char getmntent ();
14347 int
14348 main ()
14349 {
14350 return getmntent ();
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 for ac_lib in '' sun seq gen; do
14356 if test -z "$ac_lib"; then
14357 ac_res="none required"
14358 else
14359 ac_res=-l$ac_lib
14360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14361 fi
14362 rm -f conftest.$ac_objext conftest$ac_exeext
14363 if { (ac_try="$ac_link"
14364 case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367 esac
14368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14369 $as_echo "$ac_try_echo") >&5
14370 (eval "$ac_link") 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
14379 } && test -s conftest$ac_exeext && {
14380 test "$cross_compiling" = yes ||
14381 $as_test_x conftest$ac_exeext
14382 }; then
14383 ac_cv_search_getmntent=$ac_res
14384 else
14385 $as_echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388
14389 fi
14390
14391 rm -rf conftest.dSYM
14392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14393 conftest$ac_exeext
14394 if test "${ac_cv_search_getmntent+set}" = set; then
14395 break
14396 fi
14397 done
14398 if test "${ac_cv_search_getmntent+set}" = set; then
14399 :
14400 else
14401 ac_cv_search_getmntent=no
14402 fi
14403 rm conftest.$ac_ext
14404 LIBS=$ac_func_search_save_LIBS
14405 fi
14406 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14407 $as_echo "$ac_cv_search_getmntent" >&6; }
14408 ac_res=$ac_cv_search_getmntent
14409 if test "$ac_res" != no; then
14410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14411 ac_cv_func_getmntent=yes
14412
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_GETMNTENT 1
14415 _ACEOF
14416
14417 else
14418 ac_cv_func_getmntent=no
14419 fi
14420
14421
14422 # AC_FUNC_REALLOC
14423
14424
14425 for ac_header in sys/select.h sys/socket.h
14426 do
14427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14430 $as_echo_n "checking for $ac_header... " >&6; }
14431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432 $as_echo_n "(cached) " >&6
14433 fi
14434 ac_res=`eval 'as_val=${'$as_ac_Header'}
14435 $as_echo "$as_val"'`
14436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14437 $as_echo "$ac_res" >&6; }
14438 else
14439 # Is the header compilable?
14440 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14441 $as_echo_n "checking $ac_header usability... " >&6; }
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14449 #include <$ac_header>
14450 _ACEOF
14451 rm -f conftest.$ac_objext
14452 if { (ac_try="$ac_compile"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458 $as_echo "$ac_try_echo") >&5
14459 (eval "$ac_compile") 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && {
14466 test -z "$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest.$ac_objext; then
14469 ac_header_compiler=yes
14470 else
14471 $as_echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ac_header_compiler=no
14475 fi
14476
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14479 $as_echo "$ac_header_compiler" >&6; }
14480
14481 # Is the header present?
14482 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14483 $as_echo_n "checking $ac_header presence... " >&6; }
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 #include <$ac_header>
14491 _ACEOF
14492 if { (ac_try="$ac_cpp conftest.$ac_ext"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14496 esac
14497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14498 $as_echo "$ac_try_echo") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 }; then
14509 ac_header_preproc=yes
14510 else
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 ac_header_preproc=no
14515 fi
14516
14517 rm -f conftest.err conftest.$ac_ext
14518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 $as_echo "$ac_header_preproc" >&6; }
14520
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14523 yes:no: )
14524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14527 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14528 ac_header_preproc=yes
14529 ;;
14530 no:yes:* )
14531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14532 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14534 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14536 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14538 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14542 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14543
14544 ;;
14545 esac
14546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14547 $as_echo_n "checking for $ac_header... " >&6; }
14548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14549 $as_echo_n "(cached) " >&6
14550 else
14551 eval "$as_ac_Header=\$ac_header_preproc"
14552 fi
14553 ac_res=`eval 'as_val=${'$as_ac_Header'}
14554 $as_echo "$as_val"'`
14555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14556 $as_echo "$ac_res" >&6; }
14557
14558 fi
14559 as_val=`eval 'as_val=${'$as_ac_Header'}
14560 $as_echo "$as_val"'`
14561 if test "x$as_val" = x""yes; then
14562 cat >>confdefs.h <<_ACEOF
14563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14564 _ACEOF
14565
14566 fi
14567
14568 done
14569
14570 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14571 $as_echo_n "checking types of arguments for select... " >&6; }
14572 if test "${ac_cv_func_select_args+set}" = set; then
14573 $as_echo_n "(cached) " >&6
14574 else
14575 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14576 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14577 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14578 cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h. */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 $ac_includes_default
14585 #ifdef HAVE_SYS_SELECT_H
14586 # include <sys/select.h>
14587 #endif
14588 #ifdef HAVE_SYS_SOCKET_H
14589 # include <sys/socket.h>
14590 #endif
14591
14592 int
14593 main ()
14594 {
14595 extern int select ($ac_arg1,
14596 $ac_arg234, $ac_arg234, $ac_arg234,
14597 $ac_arg5);
14598 ;
14599 return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609 $as_echo "$ac_try_echo") >&5
14610 (eval "$ac_compile") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest.$ac_objext; then
14620 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14621 else
14622 $as_echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 done
14630 done
14631 done
14632 # Provide a safe default value.
14633 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14634
14635 fi
14636 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14637 $as_echo "$ac_cv_func_select_args" >&6; }
14638 ac_save_IFS=$IFS; IFS=','
14639 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14640 IFS=$ac_save_IFS
14641 shift
14642
14643 cat >>confdefs.h <<_ACEOF
14644 #define SELECT_TYPE_ARG1 $1
14645 _ACEOF
14646
14647
14648 cat >>confdefs.h <<_ACEOF
14649 #define SELECT_TYPE_ARG234 ($2)
14650 _ACEOF
14651
14652
14653 cat >>confdefs.h <<_ACEOF
14654 #define SELECT_TYPE_ARG5 ($3)
14655 _ACEOF
14656
14657 rm -f conftest*
14658
14659 fi
14660
14661 if test x$CLUSTER != xnone; then
14662
14663
14664 for ac_header in sys/socket.h sys/un.h
14665 do
14666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14669 $as_echo_n "checking for $ac_header... " >&6; }
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 $as_echo_n "(cached) " >&6
14672 fi
14673 ac_res=`eval 'as_val=${'$as_ac_Header'}
14674 $as_echo "$as_val"'`
14675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14676 $as_echo "$ac_res" >&6; }
14677 else
14678 # Is the header compilable?
14679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14680 $as_echo_n "checking $ac_header usability... " >&6; }
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14688 #include <$ac_header>
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695 esac
14696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697 $as_echo "$ac_try_echo") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest.$ac_objext; then
14708 ac_header_compiler=yes
14709 else
14710 $as_echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713 ac_header_compiler=no
14714 fi
14715
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14718 $as_echo "$ac_header_compiler" >&6; }
14719
14720 # Is the header present?
14721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14722 $as_echo_n "checking $ac_header presence... " >&6; }
14723 cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h. */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 #include <$ac_header>
14730 _ACEOF
14731 if { (ac_try="$ac_cpp conftest.$ac_ext"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735 esac
14736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14737 $as_echo "$ac_try_echo") >&5
14738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14739 ac_status=$?
14740 grep -v '^ *+' conftest.er1 >conftest.err
14741 rm -f conftest.er1
14742 cat conftest.err >&5
14743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } >/dev/null && {
14745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14746 test ! -s conftest.err
14747 }; then
14748 ac_header_preproc=yes
14749 else
14750 $as_echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_header_preproc=no
14754 fi
14755
14756 rm -f conftest.err conftest.$ac_ext
14757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14758 $as_echo "$ac_header_preproc" >&6; }
14759
14760 # So? What about this header?
14761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14762 yes:no: )
14763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14767 ac_header_preproc=yes
14768 ;;
14769 no:yes:* )
14770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14782
14783 ;;
14784 esac
14785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14786 $as_echo_n "checking for $ac_header... " >&6; }
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 $as_echo_n "(cached) " >&6
14789 else
14790 eval "$as_ac_Header=\$ac_header_preproc"
14791 fi
14792 ac_res=`eval 'as_val=${'$as_ac_Header'}
14793 $as_echo "$as_val"'`
14794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14795 $as_echo "$ac_res" >&6; }
14796
14797 fi
14798 as_val=`eval 'as_val=${'$as_ac_Header'}
14799 $as_echo "$as_val"'`
14800 if test "x$as_val" = x""yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14803 _ACEOF
14804
14805 else
14806 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14807 $as_echo "$as_me: error: bailing out" >&2;}
14808 { (exit 1); exit 1; }; }
14809 fi
14810
14811 done
14812
14813
14814 for ac_func in socket
14815 do
14816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14817 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14818 $as_echo_n "checking for $ac_func... " >&6; }
14819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14820 $as_echo_n "(cached) " >&6
14821 else
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14830 #define $ac_func innocuous_$ac_func
14831
14832 /* System header to define __stub macros and hopefully few prototypes,
14833 which can conflict with char $ac_func (); below.
14834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14835 <limits.h> exists even on freestanding compilers. */
14836
14837 #ifdef __STDC__
14838 # include <limits.h>
14839 #else
14840 # include <assert.h>
14841 #endif
14842
14843 #undef $ac_func
14844
14845 /* Override any GCC internal prototype to avoid an error.
14846 Use char because int might match the return type of a GCC
14847 builtin and then its argument prototype would still apply. */
14848 #ifdef __cplusplus
14849 extern "C"
14850 #endif
14851 char $ac_func ();
14852 /* The GNU C library defines this for functions which it implements
14853 to always fail with ENOSYS. Some functions are actually named
14854 something starting with __ and the normal name is an alias. */
14855 #if defined __stub_$ac_func || defined __stub___$ac_func
14856 choke me
14857 #endif
14858
14859 int
14860 main ()
14861 {
14862 return $ac_func ();
14863 ;
14864 return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest.$ac_objext conftest$ac_exeext
14868 if { (ac_try="$ac_link"
14869 case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872 esac
14873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874 $as_echo "$ac_try_echo") >&5
14875 (eval "$ac_link") 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest$ac_exeext && {
14885 test "$cross_compiling" = yes ||
14886 $as_test_x conftest$ac_exeext
14887 }; then
14888 eval "$as_ac_var=yes"
14889 else
14890 $as_echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 eval "$as_ac_var=no"
14894 fi
14895
14896 rm -rf conftest.dSYM
14897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14898 conftest$ac_exeext conftest.$ac_ext
14899 fi
14900 ac_res=`eval 'as_val=${'$as_ac_var'}
14901 $as_echo "$as_val"'`
14902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14903 $as_echo "$ac_res" >&6; }
14904 as_val=`eval 'as_val=${'$as_ac_var'}
14905 $as_echo "$as_val"'`
14906 if test "x$as_val" = x""yes; then
14907 cat >>confdefs.h <<_ACEOF
14908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14909 _ACEOF
14910
14911 else
14912 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14913 $as_echo "$as_me: error: bailing out" >&2;}
14914 { (exit 1); exit 1; }; }
14915 fi
14916 done
14917
14918 fi
14919
14920 if test x$HAVE_LIBDL = xyes; then
14921
14922 for ac_header in dlfcn.h
14923 do
14924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14927 $as_echo_n "checking for $ac_header... " >&6; }
14928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14929 $as_echo_n "(cached) " >&6
14930 fi
14931 ac_res=`eval 'as_val=${'$as_ac_Header'}
14932 $as_echo "$as_val"'`
14933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14934 $as_echo "$ac_res" >&6; }
14935 else
14936 # Is the header compilable?
14937 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14938 $as_echo_n "checking $ac_header usability... " >&6; }
14939 cat >conftest.$ac_ext <<_ACEOF
14940 /* confdefs.h. */
14941 _ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 $ac_includes_default
14946 #include <$ac_header>
14947 _ACEOF
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953 esac
14954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14955 $as_echo "$ac_try_echo") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 ac_header_compiler=yes
14967 else
14968 $as_echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971 ac_header_compiler=no
14972 fi
14973
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 $as_echo "$ac_header_compiler" >&6; }
14977
14978 # Is the header present?
14979 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14980 $as_echo_n "checking $ac_header presence... " >&6; }
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <$ac_header>
14988 _ACEOF
14989 if { (ac_try="$ac_cpp conftest.$ac_ext"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993 esac
14994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14995 $as_echo "$ac_try_echo") >&5
14996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } >/dev/null && {
15003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15004 test ! -s conftest.err
15005 }; then
15006 ac_header_preproc=yes
15007 else
15008 $as_echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_header_preproc=no
15012 fi
15013
15014 rm -f conftest.err conftest.$ac_ext
15015 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016 $as_echo "$ac_header_preproc" >&6; }
15017
15018 # So? What about this header?
15019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 yes:no: )
15021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15025 ac_header_preproc=yes
15026 ;;
15027 no:yes:* )
15028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15031 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15035 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15040
15041 ;;
15042 esac
15043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15044 $as_echo_n "checking for $ac_header... " >&6; }
15045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15046 $as_echo_n "(cached) " >&6
15047 else
15048 eval "$as_ac_Header=\$ac_header_preproc"
15049 fi
15050 ac_res=`eval 'as_val=${'$as_ac_Header'}
15051 $as_echo "$as_val"'`
15052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15053 $as_echo "$ac_res" >&6; }
15054
15055 fi
15056 as_val=`eval 'as_val=${'$as_ac_Header'}
15057 $as_echo "$as_val"'`
15058 if test "x$as_val" = x""yes; then
15059 cat >>confdefs.h <<_ACEOF
15060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15061 _ACEOF
15062
15063 else
15064 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15065 $as_echo "$as_me: error: bailing out" >&2;}
15066 { (exit 1); exit 1; }; }
15067 fi
15068
15069 done
15070
15071 fi
15072
15073 if test x$INTL = xyes; then
15074
15075 for ac_header in libintl.h
15076 do
15077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 $as_echo_n "checking for $ac_header... " >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 $as_echo_n "(cached) " >&6
15083 fi
15084 ac_res=`eval 'as_val=${'$as_ac_Header'}
15085 $as_echo "$as_val"'`
15086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15087 $as_echo "$ac_res" >&6; }
15088 else
15089 # Is the header compilable?
15090 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15091 $as_echo_n "checking $ac_header usability... " >&6; }
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15099 #include <$ac_header>
15100 _ACEOF
15101 rm -f conftest.$ac_objext
15102 if { (ac_try="$ac_compile"
15103 case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106 esac
15107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15108 $as_echo "$ac_try_echo") >&5
15109 (eval "$ac_compile") 2>conftest.er1
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && {
15116 test -z "$ac_c_werror_flag" ||
15117 test ! -s conftest.err
15118 } && test -s conftest.$ac_objext; then
15119 ac_header_compiler=yes
15120 else
15121 $as_echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_compiler=no
15125 fi
15126
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15129 $as_echo "$ac_header_compiler" >&6; }
15130
15131 # Is the header present?
15132 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15133 $as_echo_n "checking $ac_header presence... " >&6; }
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h. */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15140 #include <$ac_header>
15141 _ACEOF
15142 if { (ac_try="$ac_cpp conftest.$ac_ext"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146 esac
15147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148 $as_echo "$ac_try_echo") >&5
15149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } >/dev/null && {
15156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 }; then
15159 ac_header_preproc=yes
15160 else
15161 $as_echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_header_preproc=no
15165 fi
15166
15167 rm -f conftest.err conftest.$ac_ext
15168 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15169 $as_echo "$ac_header_preproc" >&6; }
15170
15171 # So? What about this header?
15172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173 yes:no: )
15174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15175 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15178 ac_header_preproc=yes
15179 ;;
15180 no:yes:* )
15181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15186 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15188 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15192 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15193
15194 ;;
15195 esac
15196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 $as_echo_n "checking for $ac_header... " >&6; }
15198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15199 $as_echo_n "(cached) " >&6
15200 else
15201 eval "$as_ac_Header=\$ac_header_preproc"
15202 fi
15203 ac_res=`eval 'as_val=${'$as_ac_Header'}
15204 $as_echo "$as_val"'`
15205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15206 $as_echo "$ac_res" >&6; }
15207
15208 fi
15209 as_val=`eval 'as_val=${'$as_ac_Header'}
15210 $as_echo "$as_val"'`
15211 if test "x$as_val" = x""yes; then
15212 cat >>confdefs.h <<_ACEOF
15213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15214 _ACEOF
15215
15216 else
15217 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15218 $as_echo "$as_me: error: bailing out" >&2;}
15219 { (exit 1); exit 1; }; }
15220 fi
15221
15222 done
15223
15224 fi
15225
15226 if test x$UDEV_SYNC = xyes; then
15227
15228
15229 for ac_header in sys/ipc.h sys/sem.h
15230 do
15231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15234 $as_echo_n "checking for $ac_header... " >&6; }
15235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15236 $as_echo_n "(cached) " >&6
15237 fi
15238 ac_res=`eval 'as_val=${'$as_ac_Header'}
15239 $as_echo "$as_val"'`
15240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15241 $as_echo "$ac_res" >&6; }
15242 else
15243 # Is the header compilable?
15244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15245 $as_echo_n "checking $ac_header usability... " >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 $ac_includes_default
15253 #include <$ac_header>
15254 _ACEOF
15255 rm -f conftest.$ac_objext
15256 if { (ac_try="$ac_compile"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260 esac
15261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15262 $as_echo "$ac_try_echo") >&5
15263 (eval "$ac_compile") 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest.$ac_objext; then
15273 ac_header_compiler=yes
15274 else
15275 $as_echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 ac_header_compiler=no
15279 fi
15280
15281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15283 $as_echo "$ac_header_compiler" >&6; }
15284
15285 # Is the header present?
15286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15287 $as_echo_n "checking $ac_header presence... " >&6; }
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h. */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 #include <$ac_header>
15295 _ACEOF
15296 if { (ac_try="$ac_cpp conftest.$ac_ext"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300 esac
15301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15302 $as_echo "$ac_try_echo") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null && {
15310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 }; then
15313 ac_header_preproc=yes
15314 else
15315 $as_echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_header_preproc=no
15319 fi
15320
15321 rm -f conftest.err conftest.$ac_ext
15322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15323 $as_echo "$ac_header_preproc" >&6; }
15324
15325 # So? What about this header?
15326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15327 yes:no: )
15328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15332 ac_header_preproc=yes
15333 ;;
15334 no:yes:* )
15335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15338 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15347
15348 ;;
15349 esac
15350 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 $as_echo_n "checking for $ac_header... " >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 $as_echo_n "(cached) " >&6
15354 else
15355 eval "$as_ac_Header=\$ac_header_preproc"
15356 fi
15357 ac_res=`eval 'as_val=${'$as_ac_Header'}
15358 $as_echo "$as_val"'`
15359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15360 $as_echo "$ac_res" >&6; }
15361
15362 fi
15363 as_val=`eval 'as_val=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 if test "x$as_val" = x""yes; then
15366 cat >>confdefs.h <<_ACEOF
15367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15368 _ACEOF
15369
15370 else
15371 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15372 $as_echo "$as_me: error: bailing out" >&2;}
15373 { (exit 1); exit 1; }; }
15374 fi
15375
15376 done
15377
15378 fi
15379
15380 ################################################################################
15381 # Extract the first word of "modprobe", so it can be a program name with args.
15382 set dummy modprobe; ac_word=$2
15383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15384 $as_echo_n "checking for $ac_word... " >&6; }
15385 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15386 $as_echo_n "(cached) " >&6
15387 else
15388 case $MODPROBE_CMD in
15389 [\\/]* | ?:[\\/]*)
15390 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15391 ;;
15392 *)
15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 for as_dir in $PATH
15395 do
15396 IFS=$as_save_IFS
15397 test -z "$as_dir" && as_dir=.
15398 for ac_exec_ext in '' $ac_executable_extensions; do
15399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15400 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15402 break 2
15403 fi
15404 done
15405 done
15406 IFS=$as_save_IFS
15407
15408 ;;
15409 esac
15410 fi
15411 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15412 if test -n "$MODPROBE_CMD"; then
15413 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15414 $as_echo "$MODPROBE_CMD" >&6; }
15415 else
15416 { $as_echo "$as_me:$LINENO: result: no" >&5
15417 $as_echo "no" >&6; }
15418 fi
15419
15420
15421
15422 if test x$MODPROBE_CMD != x; then
15423
15424 cat >>confdefs.h <<_ACEOF
15425 #define MODPROBE_CMD "$MODPROBE_CMD"
15426 _ACEOF
15427
15428 fi
15429
15430 ################################################################################
15431
15432
15433 if test "$BUILD_DMEVENTD" = yes; then
15434
15435 # Check whether --with-dmeventd-pidfile was given.
15436 if test "${with_dmeventd_pidfile+set}" = set; then
15437 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15438 #define DMEVENTD_PIDFILE "$withval"
15439 _ACEOF
15440
15441 else
15442 cat >>confdefs.h <<_ACEOF
15443 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15444 _ACEOF
15445
15446 fi
15447
15448 fi
15449
15450
15451
15452 if test "$BUILD_DMEVENTD" = yes; then
15453 dmeventd_prefix="$exec_prefix"
15454 if test "x$dmeventd_prefix" = "xNONE"; then
15455 dmeventd_prefix="$prefix"
15456 fi
15457 if test "x$dmeventd_prefix" = "xNONE"; then
15458 dmeventd_prefix=""
15459 fi
15460
15461 # Check whether --with-dmeventd-path was given.
15462 if test "${with_dmeventd_path+set}" = set; then
15463 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15464 #define DMEVENTD_PATH "$withval"
15465 _ACEOF
15466
15467 else
15468 cat >>confdefs.h <<_ACEOF
15469 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15470 _ACEOF
15471
15472 fi
15473
15474 fi
15475
15476 ################################################################################
15477 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15478 $as_echo_n "checking for kernel interface choice... " >&6; }
15479
15480 # Check whether --with-interface was given.
15481 if test "${with_interface+set}" = set; then
15482 withval=$with_interface; interface="$withval"
15483 else
15484 interface=ioctl
15485 fi
15486
15487 if [ "x$interface" != xioctl ];
15488 then
15489 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15490 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15491 { (exit 1); exit 1; }; }
15492 fi
15493 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15494 $as_echo "$interface" >&6; }
15495
15496 ################################################################################
15497 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15498
15499 cat >>confdefs.h <<_ACEOF
15500 #define DM_LIB_VERSION $DM_LIB_VERSION
15501 _ACEOF
15502
15503
15504 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15505
15506 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15507
15508 VER=`cat "$srcdir"/VERSION`
15509 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15510 VER=`echo "$VER" | $AWK '{print $1}'`
15511 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15512 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15513 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15514 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15515 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15516 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
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
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606 ################################################################################
15607 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"
15608
15609 cat >confcache <<\_ACEOF
15610 # This file is a shell script that caches the results of configure
15611 # tests run on this system so they can be shared between configure
15612 # scripts and configure runs, see configure's option --config-cache.
15613 # It is not useful on other systems. If it contains results you don't
15614 # want to keep, you may remove or edit it.
15615 #
15616 # config.status only pays attention to the cache file if you give it
15617 # the --recheck option to rerun configure.
15618 #
15619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15621 # following values.
15622
15623 _ACEOF
15624
15625 # The following way of writing the cache mishandles newlines in values,
15626 # but we know of no workaround that is simple, portable, and efficient.
15627 # So, we kill variables containing newlines.
15628 # Ultrix sh set writes to stderr and can't be redirected directly,
15629 # and sets the high bit in the cache file unless we assign to the vars.
15630 (
15631 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15632 eval ac_val=\$$ac_var
15633 case $ac_val in #(
15634 *${as_nl}*)
15635 case $ac_var in #(
15636 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15637 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15638 esac
15639 case $ac_var in #(
15640 _ | IFS | as_nl) ;; #(
15641 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15642 *) $as_unset $ac_var ;;
15643 esac ;;
15644 esac
15645 done
15646
15647 (set) 2>&1 |
15648 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15649 *${as_nl}ac_space=\ *)
15650 # `set' does not quote correctly, so add quotes (double-quote
15651 # substitution turns \\\\ into \\, and sed turns \\ into \).
15652 sed -n \
15653 "s/'/'\\\\''/g;
15654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15655 ;; #(
15656 *)
15657 # `set' quotes correctly as required by POSIX, so do not add quotes.
15658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15659 ;;
15660 esac |
15661 sort
15662 ) |
15663 sed '
15664 /^ac_cv_env_/b end
15665 t clear
15666 :clear
15667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15668 t end
15669 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15670 :end' >>confcache
15671 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15672 if test -w "$cache_file"; then
15673 test "x$cache_file" != "x/dev/null" &&
15674 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15675 $as_echo "$as_me: updating cache $cache_file" >&6;}
15676 cat confcache >$cache_file
15677 else
15678 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15679 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15680 fi
15681 fi
15682 rm -f confcache
15683
15684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15685 # Let make expand exec_prefix.
15686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15687
15688 DEFS=-DHAVE_CONFIG_H
15689
15690 ac_libobjs=
15691 ac_ltlibobjs=
15692 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15693 # 1. Remove the extension, and $U if already installed.
15694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15697 # will be set to the directory where LIBOBJS objects are built.
15698 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15699 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15700 done
15701 LIBOBJS=$ac_libobjs
15702
15703 LTLIBOBJS=$ac_ltlibobjs
15704
15705
15706
15707 : ${CONFIG_STATUS=./config.status}
15708 ac_write_fail=0
15709 ac_clean_files_save=$ac_clean_files
15710 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15711 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15712 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15713 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15714 #! $SHELL
15715 # Generated by $as_me.
15716 # Run this file to recreate the current configuration.
15717 # Compiler output produced by configure, useful for debugging
15718 # configure, is in config.log if it exists.
15719
15720 debug=false
15721 ac_cs_recheck=false
15722 ac_cs_silent=false
15723 SHELL=\${CONFIG_SHELL-$SHELL}
15724 _ACEOF
15725
15726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 ## --------------------- ##
15728 ## M4sh Initialization. ##
15729 ## --------------------- ##
15730
15731 # Be more Bourne compatible
15732 DUALCASE=1; export DUALCASE # for MKS sh
15733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15734 emulate sh
15735 NULLCMD=:
15736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15737 # is contrary to our usage. Disable this feature.
15738 alias -g '${1+"$@"}'='"$@"'
15739 setopt NO_GLOB_SUBST
15740 else
15741 case `(set -o) 2>/dev/null` in
15742 *posix*) set -o posix ;;
15743 esac
15744
15745 fi
15746
15747
15748
15749
15750 # PATH needs CR
15751 # Avoid depending upon Character Ranges.
15752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15755 as_cr_digits='0123456789'
15756 as_cr_alnum=$as_cr_Letters$as_cr_digits
15757
15758 as_nl='
15759 '
15760 export as_nl
15761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15765 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15766 as_echo='printf %s\n'
15767 as_echo_n='printf %s'
15768 else
15769 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15770 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15771 as_echo_n='/usr/ucb/echo -n'
15772 else
15773 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15774 as_echo_n_body='eval
15775 arg=$1;
15776 case $arg in
15777 *"$as_nl"*)
15778 expr "X$arg" : "X\\(.*\\)$as_nl";
15779 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15780 esac;
15781 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15782 '
15783 export as_echo_n_body
15784 as_echo_n='sh -c $as_echo_n_body as_echo'
15785 fi
15786 export as_echo_body
15787 as_echo='sh -c $as_echo_body as_echo'
15788 fi
15789
15790 # The user is always right.
15791 if test "${PATH_SEPARATOR+set}" != set; then
15792 PATH_SEPARATOR=:
15793 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15794 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15795 PATH_SEPARATOR=';'
15796 }
15797 fi
15798
15799 # Support unset when possible.
15800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15801 as_unset=unset
15802 else
15803 as_unset=false
15804 fi
15805
15806
15807 # IFS
15808 # We need space, tab and new line, in precisely that order. Quoting is
15809 # there to prevent editors from complaining about space-tab.
15810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15811 # splitting by setting IFS to empty value.)
15812 IFS=" "" $as_nl"
15813
15814 # Find who we are. Look in the path if we contain no directory separator.
15815 case $0 in
15816 *[\\/]* ) as_myself=$0 ;;
15817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15818 for as_dir in $PATH
15819 do
15820 IFS=$as_save_IFS
15821 test -z "$as_dir" && as_dir=.
15822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15823 done
15824 IFS=$as_save_IFS
15825
15826 ;;
15827 esac
15828 # We did not find ourselves, most probably we were run as `sh COMMAND'
15829 # in which case we are not to be found in the path.
15830 if test "x$as_myself" = x; then
15831 as_myself=$0
15832 fi
15833 if test ! -f "$as_myself"; then
15834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15835 { (exit 1); exit 1; }
15836 fi
15837
15838 # Work around bugs in pre-3.0 UWIN ksh.
15839 for as_var in ENV MAIL MAILPATH
15840 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15841 done
15842 PS1='$ '
15843 PS2='> '
15844 PS4='+ '
15845
15846 # NLS nuisances.
15847 LC_ALL=C
15848 export LC_ALL
15849 LANGUAGE=C
15850 export LANGUAGE
15851
15852 # Required to use basename.
15853 if expr a : '\(a\)' >/dev/null 2>&1 &&
15854 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15855 as_expr=expr
15856 else
15857 as_expr=false
15858 fi
15859
15860 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15861 as_basename=basename
15862 else
15863 as_basename=false
15864 fi
15865
15866
15867 # Name of the executable.
15868 as_me=`$as_basename -- "$0" ||
15869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15870 X"$0" : 'X\(//\)$' \| \
15871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15872 $as_echo X/"$0" |
15873 sed '/^.*\/\([^/][^/]*\)\/*$/{
15874 s//\1/
15875 q
15876 }
15877 /^X\/\(\/\/\)$/{
15878 s//\1/
15879 q
15880 }
15881 /^X\/\(\/\).*/{
15882 s//\1/
15883 q
15884 }
15885 s/.*/./; q'`
15886
15887 # CDPATH.
15888 $as_unset CDPATH
15889
15890
15891
15892 as_lineno_1=$LINENO
15893 as_lineno_2=$LINENO
15894 test "x$as_lineno_1" != "x$as_lineno_2" &&
15895 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15896
15897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15898 # uniformly replaced by the line number. The first 'sed' inserts a
15899 # line-number line after each line using $LINENO; the second 'sed'
15900 # does the real work. The second script uses 'N' to pair each
15901 # line-number line with the line containing $LINENO, and appends
15902 # trailing '-' during substitution so that $LINENO is not a special
15903 # case at line end.
15904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15905 # scripts with optimization help from Paolo Bonzini. Blame Lee
15906 # E. McMahon (1931-1989) for sed's syntax. :-)
15907 sed -n '
15908 p
15909 /[$]LINENO/=
15910 ' <$as_myself |
15911 sed '
15912 s/[$]LINENO.*/&-/
15913 t lineno
15914 b
15915 :lineno
15916 N
15917 :loop
15918 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15919 t loop
15920 s/-\n.*//
15921 ' >$as_me.lineno &&
15922 chmod +x "$as_me.lineno" ||
15923 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15924 { (exit 1); exit 1; }; }
15925
15926 # Don't try to exec as it changes $[0], causing all sort of problems
15927 # (the dirname of $[0] is not the place where we might find the
15928 # original and so on. Autoconf is especially sensitive to this).
15929 . "./$as_me.lineno"
15930 # Exit status is that of the last command.
15931 exit
15932 }
15933
15934
15935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15936 as_dirname=dirname
15937 else
15938 as_dirname=false
15939 fi
15940
15941 ECHO_C= ECHO_N= ECHO_T=
15942 case `echo -n x` in
15943 -n*)
15944 case `echo 'x\c'` in
15945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15946 *) ECHO_C='\c';;
15947 esac;;
15948 *)
15949 ECHO_N='-n';;
15950 esac
15951 if expr a : '\(a\)' >/dev/null 2>&1 &&
15952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15953 as_expr=expr
15954 else
15955 as_expr=false
15956 fi
15957
15958 rm -f conf$$ conf$$.exe conf$$.file
15959 if test -d conf$$.dir; then
15960 rm -f conf$$.dir/conf$$.file
15961 else
15962 rm -f conf$$.dir
15963 mkdir conf$$.dir 2>/dev/null
15964 fi
15965 if (echo >conf$$.file) 2>/dev/null; then
15966 if ln -s conf$$.file conf$$ 2>/dev/null; then
15967 as_ln_s='ln -s'
15968 # ... but there are two gotchas:
15969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15971 # In both cases, we have to default to `cp -p'.
15972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15973 as_ln_s='cp -p'
15974 elif ln conf$$.file conf$$ 2>/dev/null; then
15975 as_ln_s=ln
15976 else
15977 as_ln_s='cp -p'
15978 fi
15979 else
15980 as_ln_s='cp -p'
15981 fi
15982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15983 rmdir conf$$.dir 2>/dev/null
15984
15985 if mkdir -p . 2>/dev/null; then
15986 as_mkdir_p=:
15987 else
15988 test -d ./-p && rmdir ./-p
15989 as_mkdir_p=false
15990 fi
15991
15992 if test -x / >/dev/null 2>&1; then
15993 as_test_x='test -x'
15994 else
15995 if ls -dL / >/dev/null 2>&1; then
15996 as_ls_L_option=L
15997 else
15998 as_ls_L_option=
15999 fi
16000 as_test_x='
16001 eval sh -c '\''
16002 if test -d "$1"; then
16003 test -d "$1/.";
16004 else
16005 case $1 in
16006 -*)set "./$1";;
16007 esac;
16008 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16009 ???[sx]*):;;*)false;;esac;fi
16010 '\'' sh
16011 '
16012 fi
16013 as_executable_p=$as_test_x
16014
16015 # Sed expression to map a string onto a valid CPP name.
16016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16017
16018 # Sed expression to map a string onto a valid variable name.
16019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16020
16021
16022 exec 6>&1
16023
16024 # Save the log message, to keep $[0] and so on meaningful, and to
16025 # report actual input values of CONFIG_FILES etc. instead of their
16026 # values after options handling.
16027 ac_log="
16028 This file was extended by $as_me, which was
16029 generated by GNU Autoconf 2.63. Invocation command line was
16030
16031 CONFIG_FILES = $CONFIG_FILES
16032 CONFIG_HEADERS = $CONFIG_HEADERS
16033 CONFIG_LINKS = $CONFIG_LINKS
16034 CONFIG_COMMANDS = $CONFIG_COMMANDS
16035 $ $0 $@
16036
16037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16038 "
16039
16040 _ACEOF
16041
16042 case $ac_config_files in *"
16043 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16044 esac
16045
16046 case $ac_config_headers in *"
16047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16048 esac
16049
16050
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052 # Files that config.status was made for.
16053 config_files="$ac_config_files"
16054 config_headers="$ac_config_headers"
16055
16056 _ACEOF
16057
16058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059 ac_cs_usage="\
16060 \`$as_me' instantiates files from templates according to the
16061 current configuration.
16062
16063 Usage: $0 [OPTION]... [FILE]...
16064
16065 -h, --help print this help, then exit
16066 -V, --version print version number and configuration settings, then exit
16067 -q, --quiet, --silent
16068 do not print progress messages
16069 -d, --debug don't remove temporary files
16070 --recheck update $as_me by reconfiguring in the same conditions
16071 --file=FILE[:TEMPLATE]
16072 instantiate the configuration file FILE
16073 --header=FILE[:TEMPLATE]
16074 instantiate the configuration header FILE
16075
16076 Configuration files:
16077 $config_files
16078
16079 Configuration headers:
16080 $config_headers
16081
16082 Report bugs to <bug-autoconf@gnu.org>."
16083
16084 _ACEOF
16085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16086 ac_cs_version="\\
16087 config.status
16088 configured by $0, generated by GNU Autoconf 2.63,
16089 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16090
16091 Copyright (C) 2008 Free Software Foundation, Inc.
16092 This config.status script is free software; the Free Software Foundation
16093 gives unlimited permission to copy, distribute and modify it."
16094
16095 ac_pwd='$ac_pwd'
16096 srcdir='$srcdir'
16097 INSTALL='$INSTALL'
16098 MKDIR_P='$MKDIR_P'
16099 AWK='$AWK'
16100 test -n "\$AWK" || AWK=awk
16101 _ACEOF
16102
16103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 # The default lists apply if the user does not specify any file.
16105 ac_need_defaults=:
16106 while test $# != 0
16107 do
16108 case $1 in
16109 --*=*)
16110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16112 ac_shift=:
16113 ;;
16114 *)
16115 ac_option=$1
16116 ac_optarg=$2
16117 ac_shift=shift
16118 ;;
16119 esac
16120
16121 case $ac_option in
16122 # Handling of the options.
16123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16124 ac_cs_recheck=: ;;
16125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16126 $as_echo "$ac_cs_version"; exit ;;
16127 --debug | --debu | --deb | --de | --d | -d )
16128 debug=: ;;
16129 --file | --fil | --fi | --f )
16130 $ac_shift
16131 case $ac_optarg in
16132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16133 esac
16134 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16135 ac_need_defaults=false;;
16136 --header | --heade | --head | --hea )
16137 $ac_shift
16138 case $ac_optarg in
16139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16140 esac
16141 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16142 ac_need_defaults=false;;
16143 --he | --h)
16144 # Conflict between --help and --header
16145 { $as_echo "$as_me: error: ambiguous option: $1
16146 Try \`$0 --help' for more information." >&2
16147 { (exit 1); exit 1; }; };;
16148 --help | --hel | -h )
16149 $as_echo "$ac_cs_usage"; exit ;;
16150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16152 ac_cs_silent=: ;;
16153
16154 # This is an error.
16155 -*) { $as_echo "$as_me: error: unrecognized option: $1
16156 Try \`$0 --help' for more information." >&2
16157 { (exit 1); exit 1; }; } ;;
16158
16159 *) ac_config_targets="$ac_config_targets $1"
16160 ac_need_defaults=false ;;
16161
16162 esac
16163 shift
16164 done
16165
16166 ac_configure_extra_args=
16167
16168 if $ac_cs_silent; then
16169 exec 6>/dev/null
16170 ac_configure_extra_args="$ac_configure_extra_args --silent"
16171 fi
16172
16173 _ACEOF
16174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16175 if \$ac_cs_recheck; then
16176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16177 shift
16178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16179 CONFIG_SHELL='$SHELL'
16180 export CONFIG_SHELL
16181 exec "\$@"
16182 fi
16183
16184 _ACEOF
16185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16186 exec 5>>config.log
16187 {
16188 echo
16189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16190 ## Running $as_me. ##
16191 _ASBOX
16192 $as_echo "$ac_log"
16193 } >&5
16194
16195 _ACEOF
16196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16197 _ACEOF
16198
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200
16201 # Handling of arguments.
16202 for ac_config_target in $ac_config_targets
16203 do
16204 case $ac_config_target in
16205 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16207 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16208 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16209 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16210 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16211 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16212 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16213 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16214 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
16215 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16216 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16217 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16218 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16219 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16220 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16221 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16222 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16223 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16224 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16225 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16226 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16227 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16228 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16229 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16230 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16231 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16232 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16233 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16234 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
16235 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16236 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16237 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16238 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16239 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16240 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16241
16242 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16243 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16244 { (exit 1); exit 1; }; };;
16245 esac
16246 done
16247
16248
16249 # If the user did not use the arguments to specify the items to instantiate,
16250 # then the envvar interface is used. Set only those that are not.
16251 # We use the long form for the default assignment because of an extremely
16252 # bizarre bug on SunOS 4.1.3.
16253 if $ac_need_defaults; then
16254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16256 fi
16257
16258 # Have a temporary directory for convenience. Make it in the build tree
16259 # simply because there is no reason against having it here, and in addition,
16260 # creating and moving files from /tmp can sometimes cause problems.
16261 # Hook for its removal unless debugging.
16262 # Note that there is a small window in which the directory will not be cleaned:
16263 # after its creation but before its name has been assigned to `$tmp'.
16264 $debug ||
16265 {
16266 tmp=
16267 trap 'exit_status=$?
16268 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16269 ' 0
16270 trap '{ (exit 1); exit 1; }' 1 2 13 15
16271 }
16272 # Create a (secure) tmp directory for tmp files.
16273
16274 {
16275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16276 test -n "$tmp" && test -d "$tmp"
16277 } ||
16278 {
16279 tmp=./conf$$-$RANDOM
16280 (umask 077 && mkdir "$tmp")
16281 } ||
16282 {
16283 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16284 { (exit 1); exit 1; }
16285 }
16286
16287 # Set up the scripts for CONFIG_FILES section.
16288 # No need to generate them if there are no CONFIG_FILES.
16289 # This happens for instance with `./config.status config.h'.
16290 if test -n "$CONFIG_FILES"; then
16291
16292
16293 ac_cr=' '
16294 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16295 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16296 ac_cs_awk_cr='\\r'
16297 else
16298 ac_cs_awk_cr=$ac_cr
16299 fi
16300
16301 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16302 _ACEOF
16303
16304
16305 {
16306 echo "cat >conf$$subs.awk <<_ACEOF" &&
16307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16308 echo "_ACEOF"
16309 } >conf$$subs.sh ||
16310 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16311 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16312 { (exit 1); exit 1; }; }
16313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16314 ac_delim='%!_!# '
16315 for ac_last_try in false false false false false :; do
16316 . ./conf$$subs.sh ||
16317 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16318 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16319 { (exit 1); exit 1; }; }
16320
16321 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16322 if test $ac_delim_n = $ac_delim_num; then
16323 break
16324 elif $ac_last_try; then
16325 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16326 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16327 { (exit 1); exit 1; }; }
16328 else
16329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16330 fi
16331 done
16332 rm -f conf$$subs.sh
16333
16334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16336 _ACEOF
16337 sed -n '
16338 h
16339 s/^/S["/; s/!.*/"]=/
16340 p
16341 g
16342 s/^[^!]*!//
16343 :repl
16344 t repl
16345 s/'"$ac_delim"'$//
16346 t delim
16347 :nl
16348 h
16349 s/\(.\{148\}\).*/\1/
16350 t more1
16351 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16352 p
16353 n
16354 b repl
16355 :more1
16356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16357 p
16358 g
16359 s/.\{148\}//
16360 t nl
16361 :delim
16362 h
16363 s/\(.\{148\}\).*/\1/
16364 t more2
16365 s/["\\]/\\&/g; s/^/"/; s/$/"/
16366 p
16367 b
16368 :more2
16369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16370 p
16371 g
16372 s/.\{148\}//
16373 t delim
16374 ' <conf$$subs.awk | sed '
16375 /^[^""]/{
16376 N
16377 s/\n//
16378 }
16379 ' >>$CONFIG_STATUS || ac_write_fail=1
16380 rm -f conf$$subs.awk
16381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16382 _ACAWK
16383 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16384 for (key in S) S_is_set[key] = 1
16385 FS = "\a"
16386
16387 }
16388 {
16389 line = $ 0
16390 nfields = split(line, field, "@")
16391 substed = 0
16392 len = length(field[1])
16393 for (i = 2; i < nfields; i++) {
16394 key = field[i]
16395 keylen = length(key)
16396 if (S_is_set[key]) {
16397 value = S[key]
16398 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16399 len += length(value) + length(field[++i])
16400 substed = 1
16401 } else
16402 len += 1 + keylen
16403 }
16404
16405 print line
16406 }
16407
16408 _ACAWK
16409 _ACEOF
16410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16412 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16413 else
16414 cat
16415 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16416 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16417 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16418 { (exit 1); exit 1; }; }
16419 _ACEOF
16420
16421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16423 # trailing colons and then remove the whole line if VPATH becomes empty
16424 # (actually we leave an empty line to preserve line numbers).
16425 if test "x$srcdir" = x.; then
16426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16427 s/:*\$(srcdir):*/:/
16428 s/:*\${srcdir}:*/:/
16429 s/:*@srcdir@:*/:/
16430 s/^\([^=]*=[ ]*\):*/\1/
16431 s/:*$//
16432 s/^[^=]*=[ ]*$//
16433 }'
16434 fi
16435
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 fi # test -n "$CONFIG_FILES"
16438
16439 # Set up the scripts for CONFIG_HEADERS section.
16440 # No need to generate them if there are no CONFIG_HEADERS.
16441 # This happens for instance with `./config.status Makefile'.
16442 if test -n "$CONFIG_HEADERS"; then
16443 cat >"$tmp/defines.awk" <<\_ACAWK ||
16444 BEGIN {
16445 _ACEOF
16446
16447 # Transform confdefs.h into an awk script `defines.awk', embedded as
16448 # here-document in config.status, that substitutes the proper values into
16449 # config.h.in to produce config.h.
16450
16451 # Create a delimiter string that does not exist in confdefs.h, to ease
16452 # handling of long lines.
16453 ac_delim='%!_!# '
16454 for ac_last_try in false false :; do
16455 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16456 if test -z "$ac_t"; then
16457 break
16458 elif $ac_last_try; then
16459 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16460 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16461 { (exit 1); exit 1; }; }
16462 else
16463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16464 fi
16465 done
16466
16467 # For the awk script, D is an array of macro values keyed by name,
16468 # likewise P contains macro parameters if any. Preserve backslash
16469 # newline sequences.
16470
16471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16472 sed -n '
16473 s/.\{148\}/&'"$ac_delim"'/g
16474 t rset
16475 :rset
16476 s/^[ ]*#[ ]*define[ ][ ]*/ /
16477 t def
16478 d
16479 :def
16480 s/\\$//
16481 t bsnl
16482 s/["\\]/\\&/g
16483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16484 D["\1"]=" \3"/p
16485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16486 d
16487 :bsnl
16488 s/["\\]/\\&/g
16489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16490 D["\1"]=" \3\\\\\\n"\\/p
16491 t cont
16492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16493 t cont
16494 d
16495 :cont
16496 n
16497 s/.\{148\}/&'"$ac_delim"'/g
16498 t clear
16499 :clear
16500 s/\\$//
16501 t bsnlc
16502 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16503 d
16504 :bsnlc
16505 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16506 b cont
16507 ' <confdefs.h | sed '
16508 s/'"$ac_delim"'/"\\\
16509 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16510
16511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 for (key in D) D_is_set[key] = 1
16513 FS = "\a"
16514 }
16515 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16516 line = \$ 0
16517 split(line, arg, " ")
16518 if (arg[1] == "#") {
16519 defundef = arg[2]
16520 mac1 = arg[3]
16521 } else {
16522 defundef = substr(arg[1], 2)
16523 mac1 = arg[2]
16524 }
16525 split(mac1, mac2, "(") #)
16526 macro = mac2[1]
16527 prefix = substr(line, 1, index(line, defundef) - 1)
16528 if (D_is_set[macro]) {
16529 # Preserve the white space surrounding the "#".
16530 print prefix "define", macro P[macro] D[macro]
16531 next
16532 } else {
16533 # Replace #undef with comments. This is necessary, for example,
16534 # in the case of _POSIX_SOURCE, which is predefined and required
16535 # on some systems where configure will not decide to define it.
16536 if (defundef == "undef") {
16537 print "/*", prefix defundef, macro, "*/"
16538 next
16539 }
16540 }
16541 }
16542 { print }
16543 _ACAWK
16544 _ACEOF
16545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16546 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16547 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16548 { (exit 1); exit 1; }; }
16549 fi # test -n "$CONFIG_HEADERS"
16550
16551
16552 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16553 shift
16554 for ac_tag
16555 do
16556 case $ac_tag in
16557 :[FHLC]) ac_mode=$ac_tag; continue;;
16558 esac
16559 case $ac_mode$ac_tag in
16560 :[FHL]*:*);;
16561 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16562 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16563 { (exit 1); exit 1; }; };;
16564 :[FH]-) ac_tag=-:-;;
16565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16566 esac
16567 ac_save_IFS=$IFS
16568 IFS=:
16569 set x $ac_tag
16570 IFS=$ac_save_IFS
16571 shift
16572 ac_file=$1
16573 shift
16574
16575 case $ac_mode in
16576 :L) ac_source=$1;;
16577 :[FH])
16578 ac_file_inputs=
16579 for ac_f
16580 do
16581 case $ac_f in
16582 -) ac_f="$tmp/stdin";;
16583 *) # Look for the file first in the build tree, then in the source tree
16584 # (if the path is not absolute). The absolute path cannot be DOS-style,
16585 # because $ac_f cannot contain `:'.
16586 test -f "$ac_f" ||
16587 case $ac_f in
16588 [\\/$]*) false;;
16589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16590 esac ||
16591 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16592 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16593 { (exit 1); exit 1; }; };;
16594 esac
16595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16596 ac_file_inputs="$ac_file_inputs '$ac_f'"
16597 done
16598
16599 # Let's still pretend it is `configure' which instantiates (i.e., don't
16600 # use $as_me), people would be surprised to read:
16601 # /* config.h. Generated by config.status. */
16602 configure_input='Generated from '`
16603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16604 `' by configure.'
16605 if test x"$ac_file" != x-; then
16606 configure_input="$ac_file. $configure_input"
16607 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16608 $as_echo "$as_me: creating $ac_file" >&6;}
16609 fi
16610 # Neutralize special characters interpreted by sed in replacement strings.
16611 case $configure_input in #(
16612 *\&* | *\|* | *\\* )
16613 ac_sed_conf_input=`$as_echo "$configure_input" |
16614 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16615 *) ac_sed_conf_input=$configure_input;;
16616 esac
16617
16618 case $ac_tag in
16619 *:-:* | *:-) cat >"$tmp/stdin" \
16620 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16621 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16622 { (exit 1); exit 1; }; } ;;
16623 esac
16624 ;;
16625 esac
16626
16627 ac_dir=`$as_dirname -- "$ac_file" ||
16628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16629 X"$ac_file" : 'X\(//\)[^/]' \| \
16630 X"$ac_file" : 'X\(//\)$' \| \
16631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16632 $as_echo X"$ac_file" |
16633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)[^/].*/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\/\)$/{
16642 s//\1/
16643 q
16644 }
16645 /^X\(\/\).*/{
16646 s//\1/
16647 q
16648 }
16649 s/.*/./; q'`
16650 { as_dir="$ac_dir"
16651 case $as_dir in #(
16652 -*) as_dir=./$as_dir;;
16653 esac
16654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16655 as_dirs=
16656 while :; do
16657 case $as_dir in #(
16658 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16659 *) as_qdir=$as_dir;;
16660 esac
16661 as_dirs="'$as_qdir' $as_dirs"
16662 as_dir=`$as_dirname -- "$as_dir" ||
16663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16664 X"$as_dir" : 'X\(//\)[^/]' \| \
16665 X"$as_dir" : 'X\(//\)$' \| \
16666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16667 $as_echo X"$as_dir" |
16668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16669 s//\1/
16670 q
16671 }
16672 /^X\(\/\/\)[^/].*/{
16673 s//\1/
16674 q
16675 }
16676 /^X\(\/\/\)$/{
16677 s//\1/
16678 q
16679 }
16680 /^X\(\/\).*/{
16681 s//\1/
16682 q
16683 }
16684 s/.*/./; q'`
16685 test -d "$as_dir" && break
16686 done
16687 test -z "$as_dirs" || eval "mkdir $as_dirs"
16688 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16689 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16690 { (exit 1); exit 1; }; }; }
16691 ac_builddir=.
16692
16693 case "$ac_dir" in
16694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16695 *)
16696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16697 # A ".." for each directory in $ac_dir_suffix.
16698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16699 case $ac_top_builddir_sub in
16700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16702 esac ;;
16703 esac
16704 ac_abs_top_builddir=$ac_pwd
16705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16706 # for backward compatibility:
16707 ac_top_builddir=$ac_top_build_prefix
16708
16709 case $srcdir in
16710 .) # We are building in place.
16711 ac_srcdir=.
16712 ac_top_srcdir=$ac_top_builddir_sub
16713 ac_abs_top_srcdir=$ac_pwd ;;
16714 [\\/]* | ?:[\\/]* ) # Absolute name.
16715 ac_srcdir=$srcdir$ac_dir_suffix;
16716 ac_top_srcdir=$srcdir
16717 ac_abs_top_srcdir=$srcdir ;;
16718 *) # Relative name.
16719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16720 ac_top_srcdir=$ac_top_build_prefix$srcdir
16721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16722 esac
16723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16724
16725
16726 case $ac_mode in
16727 :F)
16728 #
16729 # CONFIG_FILE
16730 #
16731
16732 case $INSTALL in
16733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16735 esac
16736 ac_MKDIR_P=$MKDIR_P
16737 case $MKDIR_P in
16738 [\\/$]* | ?:[\\/]* ) ;;
16739 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16740 esac
16741 _ACEOF
16742
16743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16744 # If the template does not know about datarootdir, expand it.
16745 # FIXME: This hack should be removed a few years after 2.60.
16746 ac_datarootdir_hack=; ac_datarootdir_seen=
16747
16748 ac_sed_dataroot='
16749 /datarootdir/ {
16750 p
16751 q
16752 }
16753 /@datadir@/p
16754 /@docdir@/p
16755 /@infodir@/p
16756 /@localedir@/p
16757 /@mandir@/p
16758 '
16759 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16760 *datarootdir*) ac_datarootdir_seen=yes;;
16761 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16762 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16763 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16764 _ACEOF
16765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16766 ac_datarootdir_hack='
16767 s&@datadir@&$datadir&g
16768 s&@docdir@&$docdir&g
16769 s&@infodir@&$infodir&g
16770 s&@localedir@&$localedir&g
16771 s&@mandir@&$mandir&g
16772 s&\\\${datarootdir}&$datarootdir&g' ;;
16773 esac
16774 _ACEOF
16775
16776 # Neutralize VPATH when `$srcdir' = `.'.
16777 # Shell code in configure.ac might set extrasub.
16778 # FIXME: do we really want to maintain this feature?
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 ac_sed_extra="$ac_vpsub
16781 $extrasub
16782 _ACEOF
16783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16784 :t
16785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16786 s|@configure_input@|$ac_sed_conf_input|;t t
16787 s&@top_builddir@&$ac_top_builddir_sub&;t t
16788 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16789 s&@srcdir@&$ac_srcdir&;t t
16790 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16791 s&@top_srcdir@&$ac_top_srcdir&;t t
16792 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16793 s&@builddir@&$ac_builddir&;t t
16794 s&@abs_builddir@&$ac_abs_builddir&;t t
16795 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16796 s&@INSTALL@&$ac_INSTALL&;t t
16797 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16798 $ac_datarootdir_hack
16799 "
16800 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16802 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16803 { (exit 1); exit 1; }; }
16804
16805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16808 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16809 which seems to be undefined. Please make sure it is defined." >&5
16810 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16811 which seems to be undefined. Please make sure it is defined." >&2;}
16812
16813 rm -f "$tmp/stdin"
16814 case $ac_file in
16815 -) cat "$tmp/out" && rm -f "$tmp/out";;
16816 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16817 esac \
16818 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16819 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16820 { (exit 1); exit 1; }; }
16821 ;;
16822 :H)
16823 #
16824 # CONFIG_HEADER
16825 #
16826 if test x"$ac_file" != x-; then
16827 {
16828 $as_echo "/* $configure_input */" \
16829 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16830 } >"$tmp/config.h" \
16831 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16832 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16833 { (exit 1); exit 1; }; }
16834 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16835 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16836 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16837 else
16838 rm -f "$ac_file"
16839 mv "$tmp/config.h" "$ac_file" \
16840 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16841 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16842 { (exit 1); exit 1; }; }
16843 fi
16844 else
16845 $as_echo "/* $configure_input */" \
16846 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16847 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16848 $as_echo "$as_me: error: could not create -" >&2;}
16849 { (exit 1); exit 1; }; }
16850 fi
16851 ;;
16852
16853
16854 esac
16855
16856 done # for ac_tag
16857
16858
16859 { (exit 0); exit 0; }
16860 _ACEOF
16861 chmod +x $CONFIG_STATUS
16862 ac_clean_files=$ac_clean_files_save
16863
16864 test $ac_write_fail = 0 ||
16865 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16866 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16867 { (exit 1); exit 1; }; }
16868
16869
16870 # configure is writing to config.log, and then calls config.status.
16871 # config.status does its own redirection, appending to config.log.
16872 # Unfortunately, on DOS this fails, as config.log is still kept open
16873 # by configure, so config.status won't be able to write to it; its
16874 # output is simply discarded. So we exec the FD to /dev/null,
16875 # effectively closing config.log, so it can be properly (re)opened and
16876 # appended to by config.status. When coming back to configure, we
16877 # need to make the FD available again.
16878 if test "$no_create" != yes; then
16879 ac_cs_success=:
16880 ac_config_status_args=
16881 test "$silent" = yes &&
16882 ac_config_status_args="$ac_config_status_args --quiet"
16883 exec 5>/dev/null
16884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16885 exec 5>>config.log
16886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16887 # would make configure fail if this is the last instruction.
16888 $ac_cs_success || { (exit 1); exit 1; }
16889 fi
16890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16891 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16892 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16893 fi
16894
16895
16896 if test x$ODIRECT != xyes; then
16897 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16898 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16899 fi
This page took 1.041568 seconds and 6 git commands to generate.