]> sourceware.org Git - lvm2.git/blob - configure
Add install_system_dirs makefile target.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 udevdir
643 udev_prefix
644 tmpdir
645 kernelvsn
646 missingkernel
647 kerneldir
648 interface
649 WRITE_INSTALL
650 UDEV_SYNC
651 UDEV_RULES
652 UDEV_PC
653 UDEV_LIBS
654 STATIC_LINK
655 STATICDIR
656 SNAPSHOTS
657 SELINUX_PC
658 SELINUX_LIBS
659 READLINE_LIBS
660 PTHREAD_LIBS
661 POOL
662 PKGCONFIG
663 MIRRORS
664 LVM_RELEASE_DATE
665 LVM_RELEASE
666 LVM_PATCHLEVEL
667 LVM_MINOR
668 LVM_MAJOR
669 LVM_LIBAPI
670 LVM_VERSION
671 LVM1_FALLBACK
672 LVM1
673 LOCALEDIR
674 LIB_SUFFIX
675 LDDEPS
676 JOBS
677 INTL_PACKAGE
678 INTL
679 HAVE_REALTIME
680 HAVE_LIBDL
681 FSADM
682 DM_LIB_PATCHLEVEL
683 DM_LIB_VERSION
684 DM_IOCTLS
685 DM_DEVICE_UID
686 DM_DEVICE_MODE
687 DM_DEVICE_GID
688 DM_COMPAT
689 DMEVENTD
690 DL_LIBS
691 DEVMAPPER
692 DEFAULT_LOCK_DIR
693 DEFAULT_CACHE_SUBDIR
694 DEFAULT_BACKUP_SUBDIR
695 DEFAULT_ARCHIVE_SUBDIR
696 DEFAULT_SYS_DIR
697 DEBUG
698 COPTIMISE_FLAG
699 CONFDIR
700 CMDLIB
701 CLVMD
702 CLUSTER
703 CLDWHOLEARCHIVE
704 CLDNOWHOLEARCHIVE
705 CLDFLAGS
706 BUILD_DMEVENTD
707 BUILD_CMIRRORD
708 APPLIB
709 MODPROBE_CMD
710 MSGFMT
711 LVM2CMD_LIB
712 LVM2APP_LIB
713 GENPNG
714 GENHTML
715 LCOV
716 SACKPT_LIBS
717 SACKPT_CFLAGS
718 DLM_LIBS
719 DLM_CFLAGS
720 CPG_LIBS
721 CPG_CFLAGS
722 CONFDB_LIBS
723 CONFDB_CFLAGS
724 SALCK_LIBS
725 SALCK_CFLAGS
726 QUORUM_LIBS
727 QUORUM_CFLAGS
728 COROSYNC_LIBS
729 COROSYNC_CFLAGS
730 CMAN_LIBS
731 CMAN_CFLAGS
732 GULM_LIBS
733 GULM_CFLAGS
734 CCS_LIBS
735 CCS_CFLAGS
736 PKGCONFIGINIT_LIBS
737 PKGCONFIGINIT_CFLAGS
738 PKG_CONFIG
739 POW_LIB
740 LIBOBJS
741 ALLOCA
742 CSCOPE_CMD
743 CFLOW_CMD
744 RANLIB
745 MKDIR_P
746 SET_MAKE
747 LN_S
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 EGREP
752 GREP
753 CPP
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 AWK
762 SED
763 target_os
764 target_vendor
765 target_cpu
766 target
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_static_link
816 with_user
817 with_group
818 with_device_uid
819 with_device_gid
820 with_device_mode
821 enable_lvm1_fallback
822 with_lvm1
823 with_pool
824 with_cluster
825 with_snapshots
826 with_mirrors
827 enable_readline
828 enable_realtime
829 with_clvmd
830 enable_cmirrord
831 with_cmirrord_pidfile
832 enable_debug
833 with_optimisation
834 enable_profiling
835 enable_devmapper
836 enable_udev_sync
837 enable_udev_rules
838 enable_compat
839 enable_units_compat
840 enable_ioctl
841 enable_o_direct
842 enable_applib
843 enable_cmdlib
844 enable_pkgconfig
845 enable_write_install
846 enable_fsadm
847 enable_dmeventd
848 enable_selinux
849 enable_nls
850 with_localedir
851 with_confdir
852 with_staticdir
853 with_usrlibdir
854 with_usrsbindir
855 with_udev_prefix
856 with_udevdir
857 with_dmeventd_pidfile
858 with_dmeventd_path
859 with_default_system_dir
860 with_default_archive_subdir
861 with_default_backup_subdir
862 with_default_cache_subdir
863 with_default_locking_dir
864 with_interface
865 '
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CPP
875 PKG_CONFIG
876 PKGCONFIGINIT_CFLAGS
877 PKGCONFIGINIT_LIBS
878 CCS_CFLAGS
879 CCS_LIBS
880 GULM_CFLAGS
881 GULM_LIBS
882 CMAN_CFLAGS
883 CMAN_LIBS
884 COROSYNC_CFLAGS
885 COROSYNC_LIBS
886 QUORUM_CFLAGS
887 QUORUM_LIBS
888 SALCK_CFLAGS
889 SALCK_LIBS
890 CONFDB_CFLAGS
891 CONFDB_LIBS
892 CPG_CFLAGS
893 CPG_LIBS
894 DLM_CFLAGS
895 DLM_LIBS
896 SACKPT_CFLAGS
897 SACKPT_LIBS'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1028
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=\$ac_optarg ;;
1250
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1285
1286 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1289 ;;
1290
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1299
1300 *)
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306 ;;
1307
1308 esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1315 fi
1316
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1321 { (exit 1); exit 1; }; } ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
1409 srcdir=$ac_confdir
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 srcdir=..
1412 fi
1413 else
1414 ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419 { (exit 1); exit 1; }; }
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1425 pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
1450 \`configure' configures this package to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1503 _ACEOF
1504
1505 cat <<\_ACEOF
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1511 _ACEOF
1512 fi
1513
1514 if test -n "$ac_init_help"; then
1515
1516 cat <<\_ACEOF
1517
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-static_link Use this to link the tools to their libraries
1523 statically. Default is dynamic linking
1524 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1525 device-mapper is missing from the kernel
1526 --disable-readline Disable readline support
1527 --enable-realtime Enable realtime clock support
1528 --enable-cmirrord Enable the cluster mirror log daemon
1529 --enable-debug Enable debugging
1530 --enable-profiling Gather gcov profiling data
1531 --disable-devmapper Disable LVM2 device-mapper interaction
1532 --enable-udev_sync Enable synchronisation with udev processing
1533 --enable-udev_rules Install rule files needed for udev synchronisation
1534 --enable-compat Enable support for old device-mapper versions
1535 --enable-units-compat Enable output compatibility with old versions that
1536 that don't use KiB-style unit suffixes
1537 --disable-driver Disable calls to device-mapper in the kernel
1538 --disable-o_direct Disable O_DIRECT
1539 --enable-applib Build application library
1540 --enable-cmdlib Build shared command library
1541 --enable-pkgconfig Install pkgconfig support
1542 --enable-write_install Install user writable files
1543 --disable-fsadm Disable fsadm
1544 --enable-dmeventd Enable the device-mapper event daemon
1545 --disable-selinux Disable selinux support
1546 --enable-nls Enable Native Language Support
1547
1548 Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-user=USER Set the owner of installed files [USER=]
1552 --with-group=GROUP Set the group owner of installed files [GROUP=]
1553 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1554 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1555 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1556 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1557 TYPE=internal
1558 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1559 TYPE=internal
1560 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1561 TYPE=internal
1562 --with-snapshots=TYPE Snapshot support: internal/shared/none
1563 TYPE=internal
1564 --with-mirrors=TYPE Mirror support: internal/shared/none
1565 TYPE=internal
1566 --with-clvmd=TYPE Build cluster LVM Daemon.
1567 The following cluster manager combinations are valid:
1568 * cman,gulm (RHEL4 or equivalent)
1569 * cman (RHEL5 or equivalent)
1570 * cman,corosync,openais (or selection of them)
1571 * singlenode (localhost only)
1572 * all (autodetect)
1573 * none (disable build)
1574 TYPE=none
1575 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1576 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1577 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1578 --with-confdir=DIR Configuration files in DIR [/etc]
1579 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1580 --with-usrlibdir=DIR
1581 --with-usrsbindir=DIR
1582 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1583 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1584 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1585 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1586 --with-default-system-dir=DIR Default LVM system directory [/etc/lvm]
1587 --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive]
1588 --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup]
1589 --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache]
1590 --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm]
1591 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1592
1593 Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
1598 LIBS libraries to pass to the linker, e.g. -l<library>
1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
1601 CPP C preprocessor
1602 PKG_CONFIG path to pkg-config utility
1603 PKGCONFIGINIT_CFLAGS
1604 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1605 PKGCONFIGINIT_LIBS
1606 linker flags for PKGCONFIGINIT, overriding pkg-config
1607 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1608 CCS_LIBS linker flags for CCS, overriding pkg-config
1609 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1610 GULM_LIBS linker flags for GULM, overriding pkg-config
1611 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1612 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1613 COROSYNC_CFLAGS
1614 C compiler flags for COROSYNC, overriding pkg-config
1615 COROSYNC_LIBS
1616 linker flags for COROSYNC, overriding pkg-config
1617 QUORUM_CFLAGS
1618 C compiler flags for QUORUM, overriding pkg-config
1619 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1620 SALCK_CFLAGS
1621 C compiler flags for SALCK, overriding pkg-config
1622 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1623 CONFDB_CFLAGS
1624 C compiler flags for CONFDB, overriding pkg-config
1625 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1626 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1627 CPG_LIBS linker flags for CPG, overriding pkg-config
1628 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1629 DLM_LIBS linker flags for DLM, overriding pkg-config
1630 SACKPT_CFLAGS
1631 C compiler flags for SACKPT, overriding pkg-config
1632 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1633
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1636
1637 _ACEOF
1638 ac_status=$?
1639 fi
1640
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
1647 ac_builddir=.
1648
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *)
1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1664
1665 case $srcdir in
1666 .) # We are building in place.
1667 ac_srcdir=.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure" --help=recursive
1689 else
1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 fi || ac_status=$?
1692 cd "$ac_pwd" || { ac_status=$?; break; }
1693 done
1694 fi
1695
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1698 cat <<\_ACEOF
1699 configure
1700 generated by GNU Autoconf 2.63
1701
1702 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1703 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707 exit
1708 fi
1709 cat >config.log <<_ACEOF
1710 This file contains any messages produced by compilers while
1711 running configure, to aid debugging if configure makes a mistake.
1712
1713 It was created by $as_me, which was
1714 generated by GNU Autoconf 2.63. Invocation command line was
1715
1716 $ $0 $@
1717
1718 _ACEOF
1719 exec 5>>config.log
1720 {
1721 cat <<_ASUNAME
1722 ## --------- ##
1723 ## Platform. ##
1724 ## --------- ##
1725
1726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1731
1732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1733 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1734
1735 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1736 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1738 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1739 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1740 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1741 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1742
1743 _ASUNAME
1744
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 $as_echo "PATH: $as_dir"
1751 done
1752 IFS=$as_save_IFS
1753
1754 } >&5
1755
1756 cat >&5 <<_ACEOF
1757
1758
1759 ## ----------- ##
1760 ## Core tests. ##
1761 ## ----------- ##
1762
1763 _ACEOF
1764
1765
1766 # Keep a trace of the command line.
1767 # Strip out --no-create and --no-recursion so they do not pile up.
1768 # Strip out --silent because we don't want to record it for future runs.
1769 # Also quote any args containing shell meta-characters.
1770 # Make two passes to allow for proper duplicate-argument suppression.
1771 ac_configure_args=
1772 ac_configure_args0=
1773 ac_configure_args1=
1774 ac_must_keep_next=false
1775 for ac_pass in 1 2
1776 do
1777 for ac_arg
1778 do
1779 case $ac_arg in
1780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1782 | -silent | --silent | --silen | --sile | --sil)
1783 continue ;;
1784 *\'*)
1785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 esac
1787 case $ac_pass in
1788 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1789 2)
1790 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1791 if test $ac_must_keep_next = true; then
1792 ac_must_keep_next=false # Got value, back to normal.
1793 else
1794 case $ac_arg in
1795 *=* | --config-cache | -C | -disable-* | --disable-* \
1796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1798 | -with-* | --with-* | -without-* | --without-* | --x)
1799 case "$ac_configure_args0 " in
1800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 esac
1802 ;;
1803 -* ) ac_must_keep_next=true ;;
1804 esac
1805 fi
1806 ac_configure_args="$ac_configure_args '$ac_arg'"
1807 ;;
1808 esac
1809 done
1810 done
1811 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1812 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1813
1814 # When interrupted or exit'd, cleanup temporary files, and complete
1815 # config.log. We remove comments because anyway the quotes in there
1816 # would cause problems or look ugly.
1817 # WARNING: Use '\'' to represent an apostrophe within the trap.
1818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1819 trap 'exit_status=$?
1820 # Save into config.log some information that might help in debugging.
1821 {
1822 echo
1823
1824 cat <<\_ASBOX
1825 ## ---------------- ##
1826 ## Cache variables. ##
1827 ## ---------------- ##
1828 _ASBOX
1829 echo
1830 # The following way of writing the cache mishandles newlines in values,
1831 (
1832 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in #(
1835 *${as_nl}*)
1836 case $ac_var in #(
1837 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1838 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1839 esac
1840 case $ac_var in #(
1841 _ | IFS | as_nl) ;; #(
1842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1843 *) $as_unset $ac_var ;;
1844 esac ;;
1845 esac
1846 done
1847 (set) 2>&1 |
1848 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1849 *${as_nl}ac_space=\ *)
1850 sed -n \
1851 "s/'\''/'\''\\\\'\'''\''/g;
1852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1853 ;; #(
1854 *)
1855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1856 ;;
1857 esac |
1858 sort
1859 )
1860 echo
1861
1862 cat <<\_ASBOX
1863 ## ----------------- ##
1864 ## Output variables. ##
1865 ## ----------------- ##
1866 _ASBOX
1867 echo
1868 for ac_var in $ac_subst_vars
1869 do
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 $as_echo "$ac_var='\''$ac_val'\''"
1875 done | sort
1876 echo
1877
1878 if test -n "$ac_subst_files"; then
1879 cat <<\_ASBOX
1880 ## ------------------- ##
1881 ## File substitutions. ##
1882 ## ------------------- ##
1883 _ASBOX
1884 echo
1885 for ac_var in $ac_subst_files
1886 do
1887 eval ac_val=\$$ac_var
1888 case $ac_val in
1889 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890 esac
1891 $as_echo "$ac_var='\''$ac_val'\''"
1892 done | sort
1893 echo
1894 fi
1895
1896 if test -s confdefs.h; then
1897 cat <<\_ASBOX
1898 ## ----------- ##
1899 ## confdefs.h. ##
1900 ## ----------- ##
1901 _ASBOX
1902 echo
1903 cat confdefs.h
1904 echo
1905 fi
1906 test "$ac_signal" != 0 &&
1907 $as_echo "$as_me: caught signal $ac_signal"
1908 $as_echo "$as_me: exit $exit_status"
1909 } >&5
1910 rm -f core *.core core.conftest.* &&
1911 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1912 exit $exit_status
1913 ' 0
1914 for ac_signal in 1 2 13 15; do
1915 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1916 done
1917 ac_signal=0
1918
1919 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1920 rm -f -r conftest* confdefs.h
1921
1922 # Predefined preprocessor variables.
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_NAME "$PACKAGE_NAME"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_STRING "$PACKAGE_STRING"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1946 _ACEOF
1947
1948
1949 # Let the site file select an alternate cache file if it wants to.
1950 # Prefer an explicitly selected file to automatically selected ones.
1951 ac_site_file1=NONE
1952 ac_site_file2=NONE
1953 if test -n "$CONFIG_SITE"; then
1954 ac_site_file1=$CONFIG_SITE
1955 elif test "x$prefix" != xNONE; then
1956 ac_site_file1=$prefix/share/config.site
1957 ac_site_file2=$prefix/etc/config.site
1958 else
1959 ac_site_file1=$ac_default_prefix/share/config.site
1960 ac_site_file2=$ac_default_prefix/etc/config.site
1961 fi
1962 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1963 do
1964 test "x$ac_site_file" = xNONE && continue
1965 if test -r "$ac_site_file"; then
1966 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1967 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1968 sed 's/^/| /' "$ac_site_file" >&5
1969 . "$ac_site_file"
1970 fi
1971 done
1972
1973 if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special
1975 # files actually), so we avoid doing that.
1976 if test -f "$cache_file"; then
1977 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1978 $as_echo "$as_me: loading cache $cache_file" >&6;}
1979 case $cache_file in
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
1982 esac
1983 fi
1984 else
1985 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1986 $as_echo "$as_me: creating cache $cache_file" >&6;}
1987 >$cache_file
1988 fi
1989
1990 # Check that the precious variables saved in the cache have kept the same
1991 # value.
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
1999 set,)
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,set)
2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2007 ,);;
2008 *)
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2017 else
2018 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2021 fi
2022 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2026 fi;;
2027 esac
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2030 case $ac_new_val in
2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2033 esac
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2037 esac
2038 fi
2039 done
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2046 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2047 { (exit 1); exit 1; }; }
2048 fi
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066 ac_ext=c
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071
2072
2073
2074 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2075
2076
2077 ################################################################################
2078 ac_aux_dir=
2079 for ac_dir in autoconf "$srcdir"/autoconf; do
2080 if test -f "$ac_dir/install-sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
2084 elif test -f "$ac_dir/install.sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
2088 elif test -f "$ac_dir/shtool"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
2092 fi
2093 done
2094 if test -z "$ac_aux_dir"; then
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2096 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 # These three variables are undocumented and unsupported,
2101 # and are intended to be withdrawn in a future Autoconf release.
2102 # They can cause serious problems if a builder's source tree is in a directory
2103 # whose full name contains unusual characters.
2104 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107
2108
2109
2110 ################################################################################
2111 # Make sure we can run config.sub.
2112 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2113 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2114 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2115 { (exit 1); exit 1; }; }
2116
2117 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2118 $as_echo_n "checking build system type... " >&6; }
2119 if test "${ac_cv_build+set}" = set; then
2120 $as_echo_n "(cached) " >&6
2121 else
2122 ac_build_alias=$build_alias
2123 test "x$ac_build_alias" = x &&
2124 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2125 test "x$ac_build_alias" = x &&
2126 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2127 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2128 { (exit 1); exit 1; }; }
2129 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2130 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2131 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2132 { (exit 1); exit 1; }; }
2133
2134 fi
2135 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2136 $as_echo "$ac_cv_build" >&6; }
2137 case $ac_cv_build in
2138 *-*-*) ;;
2139 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2140 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2141 { (exit 1); exit 1; }; };;
2142 esac
2143 build=$ac_cv_build
2144 ac_save_IFS=$IFS; IFS='-'
2145 set x $ac_cv_build
2146 shift
2147 build_cpu=$1
2148 build_vendor=$2
2149 shift; shift
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2152 build_os=$*
2153 IFS=$ac_save_IFS
2154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2155
2156
2157 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2158 $as_echo_n "checking host system type... " >&6; }
2159 if test "${ac_cv_host+set}" = set; then
2160 $as_echo_n "(cached) " >&6
2161 else
2162 if test "x$host_alias" = x; then
2163 ac_cv_host=$ac_cv_build
2164 else
2165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 fi
2172 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2173 $as_echo "$ac_cv_host" >&6; }
2174 case $ac_cv_host in
2175 *-*-*) ;;
2176 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2177 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2178 { (exit 1); exit 1; }; };;
2179 esac
2180 host=$ac_cv_host
2181 ac_save_IFS=$IFS; IFS='-'
2182 set x $ac_cv_host
2183 shift
2184 host_cpu=$1
2185 host_vendor=$2
2186 shift; shift
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2189 host_os=$*
2190 IFS=$ac_save_IFS
2191 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2192
2193
2194 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2195 $as_echo_n "checking target system type... " >&6; }
2196 if test "${ac_cv_target+set}" = set; then
2197 $as_echo_n "(cached) " >&6
2198 else
2199 if test "x$target_alias" = x; then
2200 ac_cv_target=$ac_cv_host
2201 else
2202 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2203 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2204 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2206 fi
2207
2208 fi
2209 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2210 $as_echo "$ac_cv_target" >&6; }
2211 case $ac_cv_target in
2212 *-*-*) ;;
2213 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2214 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2215 { (exit 1); exit 1; }; };;
2216 esac
2217 target=$ac_cv_target
2218 ac_save_IFS=$IFS; IFS='-'
2219 set x $ac_cv_target
2220 shift
2221 target_cpu=$1
2222 target_vendor=$2
2223 shift; shift
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2226 target_os=$*
2227 IFS=$ac_save_IFS
2228 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2229
2230
2231 # The aliases save the names the user supplied, while $host etc.
2232 # will get canonicalized.
2233 test -n "$target_alias" &&
2234 test "$program_prefix$program_suffix$program_transform_name" = \
2235 NONENONEs,x,x, &&
2236 program_prefix=${target_alias}-
2237
2238 case "$host_os" in
2239 linux*)
2240 CFLAGS="$CFLAGS"
2241 COPTIMISE_FLAG="-O2"
2242 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2243 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2244 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2245 LDDEPS="$LDDEPS .export.sym"
2246 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2247 LIB_SUFFIX=so
2248 DEVMAPPER=yes
2249 ODIRECT=yes
2250 DM_IOCTLS=yes
2251 SELINUX=yes
2252 CLUSTER=internal
2253 FSADM=yes
2254 ;;
2255 darwin*)
2256 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2257 COPTIMISE_FLAG="-O2"
2258 CLDFLAGS="$CLDFLAGS"
2259 CLDWHOLEARCHIVE="-all_load"
2260 CLDNOWHOLEARCHIVE=
2261 LIB_SUFFIX=dylib
2262 DEVMAPPER=yes
2263 ODIRECT=no
2264 DM_IOCTLS=no
2265 SELINUX=no
2266 CLUSTER=none
2267 FSADM=no
2268 ;;
2269 esac
2270
2271 ################################################################################
2272 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2273 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2274 if test "${ac_cv_path_SED+set}" = set; then
2275 $as_echo_n "(cached) " >&6
2276 else
2277 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2278 for ac_i in 1 2 3 4 5 6 7; do
2279 ac_script="$ac_script$as_nl$ac_script"
2280 done
2281 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2282 $as_unset ac_script || ac_script=
2283 if test -z "$SED"; then
2284 ac_path_SED_found=false
2285 # Loop through the user's path and test for each of PROGNAME-LIST
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_prog in sed gsed; do
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2294 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2295 # Check for GNU ac_path_SED and select it if it is found.
2296 # Check for GNU $ac_path_SED
2297 case `"$ac_path_SED" --version 2>&1` in
2298 *GNU*)
2299 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2300 *)
2301 ac_count=0
2302 $as_echo_n 0123456789 >"conftest.in"
2303 while :
2304 do
2305 cat "conftest.in" "conftest.in" >"conftest.tmp"
2306 mv "conftest.tmp" "conftest.in"
2307 cp "conftest.in" "conftest.nl"
2308 $as_echo '' >> "conftest.nl"
2309 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2311 ac_count=`expr $ac_count + 1`
2312 if test $ac_count -gt ${ac_path_SED_max-0}; then
2313 # Best one so far, save it but keep looking for a better one
2314 ac_cv_path_SED="$ac_path_SED"
2315 ac_path_SED_max=$ac_count
2316 fi
2317 # 10*(2^10) chars as input seems more than enough
2318 test $ac_count -gt 10 && break
2319 done
2320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2321 esac
2322
2323 $ac_path_SED_found && break 3
2324 done
2325 done
2326 done
2327 IFS=$as_save_IFS
2328 if test -z "$ac_cv_path_SED"; then
2329 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2330 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2331 { (exit 1); exit 1; }; }
2332 fi
2333 else
2334 ac_cv_path_SED=$SED
2335 fi
2336
2337 fi
2338 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2339 $as_echo "$ac_cv_path_SED" >&6; }
2340 SED="$ac_cv_path_SED"
2341 rm -f conftest.sed
2342
2343 for ac_prog in gawk mawk nawk awk
2344 do
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if test "${ac_cv_prog_AWK+set}" = set; then
2350 $as_echo_n "(cached) " >&6
2351 else
2352 if test -n "$AWK"; then
2353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_AWK="$ac_prog"
2363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 AWK=$ac_cv_prog_AWK
2373 if test -n "$AWK"; then
2374 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2375 $as_echo "$AWK" >&6; }
2376 else
2377 { $as_echo "$as_me:$LINENO: result: no" >&5
2378 $as_echo "no" >&6; }
2379 fi
2380
2381
2382 test -n "$AWK" && break
2383 done
2384
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 $as_echo_n "checking for $ac_word... " >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 $as_echo_n "(cached) " >&6
2397 else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 break 2
2411 fi
2412 done
2413 done
2414 IFS=$as_save_IFS
2415
2416 fi
2417 fi
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2421 $as_echo "$CC" >&6; }
2422 else
2423 { $as_echo "$as_me:$LINENO: result: no" >&5
2424 $as_echo "no" >&6; }
2425 fi
2426
2427
2428 fi
2429 if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc; ac_word=$2
2433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 $as_echo "$ac_ct_CC" >&6; }
2462 else
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464 $as_echo "no" >&6; }
2465 fi
2466
2467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471 yes:)
2472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2474 ac_tool_warned=yes ;;
2475 esac
2476 CC=$ac_ct_CC
2477 fi
2478 else
2479 CC="$ac_cv_prog_CC"
2480 fi
2481
2482 if test -z "$CC"; then
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}cc; ac_word=$2
2486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 $as_echo_n "checking for $ac_word... " >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 $as_echo_n "(cached) " >&6
2490 else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_CC="${ac_tool_prefix}cc"
2502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 CC=$ac_cv_prog_CC
2512 if test -n "$CC"; then
2513 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2514 $as_echo "$CC" >&6; }
2515 else
2516 { $as_echo "$as_me:$LINENO: result: no" >&5
2517 $as_echo "no" >&6; }
2518 fi
2519
2520
2521 fi
2522 fi
2523 if test -z "$CC"; then
2524 # Extract the first word of "cc", so it can be a program name with args.
2525 set dummy cc; ac_word=$2
2526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534 ac_prog_rejected=no
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2543 ac_prog_rejected=yes
2544 continue
2545 fi
2546 ac_cv_prog_CC="cc"
2547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 if test $ac_prog_rejected = yes; then
2555 # We found a bogon in the path, so make sure we never use it.
2556 set dummy $ac_cv_prog_CC
2557 shift
2558 if test $# != 0; then
2559 # We chose a different compiler from the bogus one.
2560 # However, it has the same basename, so the bogon will be chosen
2561 # first if we set CC to just the basename; use the full file name.
2562 shift
2563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2564 fi
2565 fi
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2572 else
2573 { $as_echo "$as_me:$LINENO: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577
2578 fi
2579 if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
2581 for ac_prog in cl.exe
2582 do
2583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2613 $as_echo "$CC" >&6; }
2614 else
2615 { $as_echo "$as_me:$LINENO: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620 test -n "$CC" && break
2621 done
2622 fi
2623 if test -z "$CC"; then
2624 ac_ct_CC=$CC
2625 for ac_prog in cl.exe
2626 do
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_CC="$ac_prog"
2645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657 $as_echo "$ac_ct_CC" >&6; }
2658 else
2659 { $as_echo "$as_me:$LINENO: result: no" >&5
2660 $as_echo "no" >&6; }
2661 fi
2662
2663
2664 test -n "$ac_ct_CC" && break
2665 done
2666
2667 if test "x$ac_ct_CC" = x; then
2668 CC=""
2669 else
2670 case $cross_compiling:$ac_tool_warned in
2671 yes:)
2672 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2674 ac_tool_warned=yes ;;
2675 esac
2676 CC=$ac_ct_CC
2677 fi
2678 fi
2679
2680 fi
2681
2682
2683 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&5
2687 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }; }
2690
2691 # Provide some information about the compiler.
2692 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2693 set X $ac_compile
2694 ac_compiler=$2
2695 { (ac_try="$ac_compiler --version >&5"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702 (eval "$ac_compiler --version >&5") 2>&5
2703 ac_status=$?
2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2706 { (ac_try="$ac_compiler -v >&5"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2712 $as_echo "$ac_try_echo") >&5
2713 (eval "$ac_compiler -v >&5") 2>&5
2714 ac_status=$?
2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -V >&5"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2723 $as_echo "$ac_try_echo") >&5
2724 (eval "$ac_compiler -V >&5") 2>&5
2725 ac_status=$?
2726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h. */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2735
2736 int
2737 main ()
2738 {
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 ac_clean_files_save=$ac_clean_files
2745 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2746 # Try to create an executable without -o first, disregard a.out.
2747 # It will help us diagnose broken compilers, and finding out an intuition
2748 # of exeext.
2749 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2750 $as_echo_n "checking for C compiler default output file name... " >&6; }
2751 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752
2753 # The possible output files:
2754 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2755
2756 ac_rmfiles=
2757 for ac_file in $ac_files
2758 do
2759 case $ac_file in
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762 esac
2763 done
2764 rm -f $ac_rmfiles
2765
2766 if { (ac_try="$ac_link_default"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773 (eval "$ac_link_default") 2>&5
2774 ac_status=$?
2775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2781 # Autoconf.
2782 for ac_file in $ac_files ''
2783 do
2784 test -f "$ac_file" || continue
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2787 ;;
2788 [ab].out )
2789 # We found the default executable, but exeext='' is most
2790 # certainly right.
2791 break;;
2792 *.* )
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 then :; else
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 fi
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2801 # actually working.
2802 break;;
2803 * )
2804 break;;
2805 esac
2806 done
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
2809 else
2810 ac_file=''
2811 fi
2812
2813 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2814 $as_echo "$ac_file" >&6; }
2815 if test -z "$ac_file"; then
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 $as_echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }; }
2826 fi
2827
2828 ac_exeext=$ac_cv_exeext
2829
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833 $as_echo_n "checking whether the C compiler works... " >&6; }
2834 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835 # If not cross compiling, check that we can run a simple program.
2836 if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843 $as_echo "$ac_try_echo") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2856 If you meant to cross compile, use \`--host'.
2857 See \`config.log' for more details." >&5
2858 $as_echo "$as_me: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }; }
2862 fi
2863 fi
2864 fi
2865 { $as_echo "$as_me:$LINENO: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867
2868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2869 ac_clean_files=$ac_clean_files_save
2870 # Check that the compiler produces executables we can run. If not, either
2871 # the compiler is broken, or we cross compile.
2872 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2873 $as_echo_n "checking whether we are cross compiling... " >&6; }
2874 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2875 $as_echo "$cross_compiling" >&6; }
2876
2877 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2878 $as_echo_n "checking for suffix of executables... " >&6; }
2879 if { (ac_try="$ac_link"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886 (eval "$ac_link") 2>&5
2887 ac_status=$?
2888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2893 # `rm'.
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 break;;
2900 * ) break;;
2901 esac
2902 done
2903 else
2904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }; }
2911 fi
2912
2913 rm -f conftest$ac_cv_exeext
2914 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 $as_echo "$ac_cv_exeext" >&6; }
2916
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 $as_echo_n "checking for suffix of object files... " >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931
2932 int
2933 main ()
2934 {
2935
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2947 $as_echo "$ac_try_echo") >&5
2948 (eval "$ac_compile") 2>&5
2949 ac_status=$?
2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959 done
2960 else
2961 $as_echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&5
2968 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2969 See \`config.log' for more details." >&2;}
2970 { (exit 1); exit 1; }; }; }
2971 fi
2972
2973 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974 fi
2975 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2976 $as_echo "$ac_cv_objext" >&6; }
2977 OBJEXT=$ac_cv_objext
2978 ac_objext=$OBJEXT
2979 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2981 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2982 $as_echo_n "(cached) " >&6
2983 else
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990
2991 int
2992 main ()
2993 {
2994 #ifndef __GNUC__
2995 choke me
2996 #endif
2997
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3020 ac_compiler_gnu=yes
3021 else
3022 $as_echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 ac_compiler_gnu=no
3026 fi
3027
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3030
3031 fi
3032 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3033 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3034 if test $ac_compiler_gnu = yes; then
3035 GCC=yes
3036 else
3037 GCC=
3038 fi
3039 ac_test_CFLAGS=${CFLAGS+set}
3040 ac_save_CFLAGS=$CFLAGS
3041 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3042 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3043 if test "${ac_cv_prog_cc_g+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3045 else
3046 ac_save_c_werror_flag=$ac_c_werror_flag
3047 ac_c_werror_flag=yes
3048 ac_cv_prog_cc_g=no
3049 CFLAGS="-g"
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072 $as_echo "$ac_try_echo") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
3083 ac_cv_prog_cc_g=yes
3084 else
3085 $as_echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 CFLAGS=""
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095
3096 int
3097 main ()
3098 {
3099
3100 ;
3101 return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 $as_echo "$ac_try_echo") >&5
3112 (eval "$ac_compile") 2>conftest.er1
3113 ac_status=$?
3114 grep -v '^ *+' conftest.er1 >conftest.err
3115 rm -f conftest.er1
3116 cat conftest.err >&5
3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } && {
3119 test -z "$ac_c_werror_flag" ||
3120 test ! -s conftest.err
3121 } && test -s conftest.$ac_objext; then
3122 :
3123 else
3124 $as_echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 CFLAGS="-g"
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135
3136 int
3137 main ()
3138 {
3139
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (ac_try="$ac_compile"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3151 $as_echo "$ac_try_echo") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } && {
3159 test -z "$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3161 } && test -s conftest.$ac_objext; then
3162 ac_cv_prog_cc_g=yes
3163 else
3164 $as_echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168 fi
3169
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3178 fi
3179 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3180 $as_echo "$ac_cv_prog_cc_g" >&6; }
3181 if test "$ac_test_CFLAGS" = set; then
3182 CFLAGS=$ac_save_CFLAGS
3183 elif test $ac_cv_prog_cc_g = yes; then
3184 if test "$GCC" = yes; then
3185 CFLAGS="-g -O2"
3186 else
3187 CFLAGS="-g"
3188 fi
3189 else
3190 if test "$GCC" = yes; then
3191 CFLAGS="-O2"
3192 else
3193 CFLAGS=
3194 fi
3195 fi
3196 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3197 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3198 if test "${ac_cv_prog_cc_c89+set}" = set; then
3199 $as_echo_n "(cached) " >&6
3200 else
3201 ac_cv_prog_cc_c89=no
3202 ac_save_CC=$CC
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <stdarg.h>
3210 #include <stdio.h>
3211 #include <sys/types.h>
3212 #include <sys/stat.h>
3213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3214 struct buf { int x; };
3215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3216 static char *e (p, i)
3217 char **p;
3218 int i;
3219 {
3220 return p[i];
3221 }
3222 static char *f (char * (*g) (char **, int), char **p, ...)
3223 {
3224 char *s;
3225 va_list v;
3226 va_start (v,p);
3227 s = g (p, va_arg (v,int));
3228 va_end (v);
3229 return s;
3230 }
3231
3232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3233 function prototypes and stuff, but not '\xHH' hex character constants.
3234 These don't provoke an error unfortunately, instead are silently treated
3235 as 'x'. The following induces an error, until -std is added to get
3236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3237 array size at least. It's necessary to write '\x00'==0 to get something
3238 that's true only with -std. */
3239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3240
3241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3242 inside strings and character constants. */
3243 #define FOO(x) 'x'
3244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3245
3246 int test (int i, double x);
3247 struct s1 {int (*f) (int a);};
3248 struct s2 {int (*f) (double a);};
3249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3250 int argc;
3251 char **argv;
3252 int
3253 main ()
3254 {
3255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3262 do
3263 CC="$ac_save_CC $ac_arg"
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_prog_cc_c89=$ac_arg
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287
3288 fi
3289
3290 rm -f core conftest.err conftest.$ac_objext
3291 test "x$ac_cv_prog_cc_c89" != "xno" && break
3292 done
3293 rm -f conftest.$ac_ext
3294 CC=$ac_save_CC
3295
3296 fi
3297 # AC_CACHE_VAL
3298 case "x$ac_cv_prog_cc_c89" in
3299 x)
3300 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3301 $as_echo "none needed" >&6; } ;;
3302 xno)
3303 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3304 $as_echo "unsupported" >&6; } ;;
3305 *)
3306 CC="$CC $ac_cv_prog_cc_c89"
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309 esac
3310
3311
3312 ac_ext=c
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318
3319
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3330 fi
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3334 else
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 do
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3340 do
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358 Syntax error
3359 _ACEOF
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3377 :
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 # Broken: fails on valid input.
3383 continue
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404 $as_echo "$ac_try_echo") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 }; then
3415 # Broken: success on invalid input.
3416 continue
3417 else
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 # Passes both tests.
3422 ac_preproc_ok=:
3423 break
3424 fi
3425
3426 rm -f conftest.err conftest.$ac_ext
3427
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3432 break
3433 fi
3434
3435 done
3436 ac_cv_prog_CPP=$CPP
3437
3438 fi
3439 CPP=$ac_cv_prog_CPP
3440 else
3441 ac_cv_prog_CPP=$CPP
3442 fi
3443 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3444 $as_echo "$CPP" >&6; }
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3447 do
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465 Syntax error
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3473 $as_echo "$ac_try_echo") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
3484 :
3485 else
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 # Broken: fails on valid input.
3490 continue
3491 fi
3492
3493 rm -f conftest.err conftest.$ac_ext
3494
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3521 }; then
3522 # Broken: success on invalid input.
3523 continue
3524 else
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 # Passes both tests.
3529 ac_preproc_ok=:
3530 break
3531 fi
3532
3533 rm -f conftest.err conftest.$ac_ext
3534
3535 done
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then
3539 :
3540 else
3541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3544 See \`config.log' for more details." >&5
3545 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }; }
3548 fi
3549
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556
3557 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3558 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3559 if test "${ac_cv_path_GREP+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -z "$GREP"; then
3563 ac_path_GREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_prog in grep ggrep; do
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3573 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3574 # Check for GNU ac_path_GREP and select it if it is found.
3575 # Check for GNU $ac_path_GREP
3576 case `"$ac_path_GREP" --version 2>&1` in
3577 *GNU*)
3578 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3579 *)
3580 ac_count=0
3581 $as_echo_n 0123456789 >"conftest.in"
3582 while :
3583 do
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'GREP' >> "conftest.nl"
3588 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590 ac_count=`expr $ac_count + 1`
3591 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_GREP="$ac_path_GREP"
3594 ac_path_GREP_max=$ac_count
3595 fi
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600 esac
3601
3602 $ac_path_GREP_found && break 3
3603 done
3604 done
3605 done
3606 IFS=$as_save_IFS
3607 if test -z "$ac_cv_path_GREP"; then
3608 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3609 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3610 { (exit 1); exit 1; }; }
3611 fi
3612 else
3613 ac_cv_path_GREP=$GREP
3614 fi
3615
3616 fi
3617 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3618 $as_echo "$ac_cv_path_GREP" >&6; }
3619 GREP="$ac_cv_path_GREP"
3620
3621
3622 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3623 $as_echo_n "checking for egrep... " >&6; }
3624 if test "${ac_cv_path_EGREP+set}" = set; then
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3628 then ac_cv_path_EGREP="$GREP -E"
3629 else
3630 if test -z "$EGREP"; then
3631 ac_path_EGREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in egrep; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3642 # Check for GNU ac_path_EGREP and select it if it is found.
3643 # Check for GNU $ac_path_EGREP
3644 case `"$ac_path_EGREP" --version 2>&1` in
3645 *GNU*)
3646 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3647 *)
3648 ac_count=0
3649 $as_echo_n 0123456789 >"conftest.in"
3650 while :
3651 do
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 $as_echo 'EGREP' >> "conftest.nl"
3656 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_EGREP="$ac_path_EGREP"
3662 ac_path_EGREP_max=$ac_count
3663 fi
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3666 done
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 esac
3669
3670 $ac_path_EGREP_found && break 3
3671 done
3672 done
3673 done
3674 IFS=$as_save_IFS
3675 if test -z "$ac_cv_path_EGREP"; then
3676 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3678 { (exit 1); exit 1; }; }
3679 fi
3680 else
3681 ac_cv_path_EGREP=$EGREP
3682 fi
3683
3684 fi
3685 fi
3686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3687 $as_echo "$ac_cv_path_EGREP" >&6; }
3688 EGREP="$ac_cv_path_EGREP"
3689
3690
3691 if test $ac_cv_c_compiler_gnu = yes; then
3692 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3693 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3694 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3696 else
3697 ac_pattern="Autoconf.*'x'"
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 #include <sgtty.h>
3705 Autoconf TIOCGETP
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3709 ac_cv_prog_gcc_traditional=yes
3710 else
3711 ac_cv_prog_gcc_traditional=no
3712 fi
3713 rm -f conftest*
3714
3715
3716 if test $ac_cv_prog_gcc_traditional = no; then
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723 #include <termio.h>
3724 Autoconf TCGETA
3725 _ACEOF
3726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3727 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3728 ac_cv_prog_gcc_traditional=yes
3729 fi
3730 rm -f conftest*
3731
3732 fi
3733 fi
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3735 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3736 if test $ac_cv_prog_gcc_traditional = yes; then
3737 CC="$CC -traditional"
3738 fi
3739 fi
3740
3741 # Find a good install program. We prefer a C program (faster),
3742 # so one script is as good as another. But avoid the broken or
3743 # incompatible versions:
3744 # SysV /etc/install, /usr/sbin/install
3745 # SunOS /usr/etc/install
3746 # IRIX /sbin/install
3747 # AIX /bin/install
3748 # AmigaOS /C/install, which installs bootblocks on floppy discs
3749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3752 # OS/2's system install, which has a completely different semantic
3753 # ./install, which can be erroneously created by make from ./install.sh.
3754 # Reject install programs that cannot install multiple files.
3755 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3757 if test -z "$INSTALL"; then
3758 if test "${ac_cv_path_install+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 # Account for people who put trailing slashes in PATH elements.
3767 case $as_dir/ in
3768 ./ | .// | /cC/* | \
3769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3770 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3771 /usr/ucb/* ) ;;
3772 *)
3773 # OSF1 and SCO ODT 3.0 have their own names for install.
3774 # Don't use installbsd from OSF since it installs stuff as root
3775 # by default.
3776 for ac_prog in ginstall scoinst install; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3779 if test $ac_prog = install &&
3780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3781 # AIX install. It has an incompatible calling convention.
3782 :
3783 elif test $ac_prog = install &&
3784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3785 # program-specific install script used by HP pwplus--don't use.
3786 :
3787 else
3788 rm -rf conftest.one conftest.two conftest.dir
3789 echo one > conftest.one
3790 echo two > conftest.two
3791 mkdir conftest.dir
3792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3793 test -s conftest.one && test -s conftest.two &&
3794 test -s conftest.dir/conftest.one &&
3795 test -s conftest.dir/conftest.two
3796 then
3797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3798 break 3
3799 fi
3800 fi
3801 fi
3802 done
3803 done
3804 ;;
3805 esac
3806
3807 done
3808 IFS=$as_save_IFS
3809
3810 rm -rf conftest.one conftest.two conftest.dir
3811
3812 fi
3813 if test "${ac_cv_path_install+set}" = set; then
3814 INSTALL=$ac_cv_path_install
3815 else
3816 # As a last resort, use the slow shell script. Don't cache a
3817 # value for INSTALL within a source directory, because that will
3818 # break other packages using the cache if that directory is
3819 # removed, or if the value is a relative name.
3820 INSTALL=$ac_install_sh
3821 fi
3822 fi
3823 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3824 $as_echo "$INSTALL" >&6; }
3825
3826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3827 # It thinks the first close brace ends the variable substitution.
3828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3829
3830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3831
3832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3833
3834 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3835 $as_echo_n "checking whether ln -s works... " >&6; }
3836 LN_S=$as_ln_s
3837 if test "$LN_S" = "ln -s"; then
3838 { $as_echo "$as_me:$LINENO: result: yes" >&5
3839 $as_echo "yes" >&6; }
3840 else
3841 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3842 $as_echo "no, using $LN_S" >&6; }
3843 fi
3844
3845 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3847 set x ${MAKE-make}
3848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3850 $as_echo_n "(cached) " >&6
3851 else
3852 cat >conftest.make <<\_ACEOF
3853 SHELL = /bin/sh
3854 all:
3855 @echo '@@@%%%=$(MAKE)=@@@%%%'
3856 _ACEOF
3857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3859 *@@@%%%=?*=@@@%%%*)
3860 eval ac_cv_prog_make_${ac_make}_set=yes;;
3861 *)
3862 eval ac_cv_prog_make_${ac_make}_set=no;;
3863 esac
3864 rm -f conftest.make
3865 fi
3866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3867 { $as_echo "$as_me:$LINENO: result: yes" >&5
3868 $as_echo "yes" >&6; }
3869 SET_MAKE=
3870 else
3871 { $as_echo "$as_me:$LINENO: result: no" >&5
3872 $as_echo "no" >&6; }
3873 SET_MAKE="MAKE=${MAKE-make}"
3874 fi
3875
3876 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3877 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3878 if test -z "$MKDIR_P"; then
3879 if test "${ac_cv_path_mkdir+set}" = set; then
3880 $as_echo_n "(cached) " >&6
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3884 do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in mkdir gmkdir; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3890 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3891 'mkdir (GNU coreutils) '* | \
3892 'mkdir (coreutils) '* | \
3893 'mkdir (fileutils) '4.1*)
3894 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3895 break 3;;
3896 esac
3897 done
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 fi
3903
3904 if test "${ac_cv_path_mkdir+set}" = set; then
3905 MKDIR_P="$ac_cv_path_mkdir -p"
3906 else
3907 # As a last resort, use the slow shell script. Don't cache a
3908 # value for MKDIR_P within a source directory, because that will
3909 # break other packages using the cache if that directory is
3910 # removed, or if the value is a relative name.
3911 test -d ./--version && rmdir ./--version
3912 MKDIR_P="$ac_install_sh -d"
3913 fi
3914 fi
3915 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3916 $as_echo "$MKDIR_P" >&6; }
3917
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940 done
3941 done
3942 IFS=$as_save_IFS
3943
3944 fi
3945 fi
3946 RANLIB=$ac_cv_prog_RANLIB
3947 if test -n "$RANLIB"; then
3948 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3949 $as_echo "$RANLIB" >&6; }
3950 else
3951 { $as_echo "$as_me:$LINENO: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955
3956 fi
3957 if test -z "$ac_cv_prog_RANLIB"; then
3958 ac_ct_RANLIB=$RANLIB
3959 # Extract the first word of "ranlib", so it can be a program name with args.
3960 set dummy ranlib; ac_word=$2
3961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3965 else
3966 if test -n "$ac_ct_RANLIB"; then
3967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_RANLIB="ranlib"
3977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3987 if test -n "$ac_ct_RANLIB"; then
3988 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3989 $as_echo "$ac_ct_RANLIB" >&6; }
3990 else
3991 { $as_echo "$as_me:$LINENO: result: no" >&5
3992 $as_echo "no" >&6; }
3993 fi
3994
3995 if test "x$ac_ct_RANLIB" = x; then
3996 RANLIB=":"
3997 else
3998 case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004 RANLIB=$ac_ct_RANLIB
4005 fi
4006 else
4007 RANLIB="$ac_cv_prog_RANLIB"
4008 fi
4009
4010 # Extract the first word of "cflow", so it can be a program name with args.
4011 set dummy cflow; ac_word=$2
4012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
4015 $as_echo_n "(cached) " >&6
4016 else
4017 case $CFLOW_CMD in
4018 [\\/]* | ?:[\\/]*)
4019 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4020 ;;
4021 *)
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033 done
4034 done
4035 IFS=$as_save_IFS
4036
4037 ;;
4038 esac
4039 fi
4040 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4041 if test -n "$CFLOW_CMD"; then
4042 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4043 $as_echo "$CFLOW_CMD" >&6; }
4044 else
4045 { $as_echo "$as_me:$LINENO: result: no" >&5
4046 $as_echo "no" >&6; }
4047 fi
4048
4049
4050 # Extract the first word of "cscope", so it can be a program name with args.
4051 set dummy cscope; ac_word=$2
4052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 $as_echo_n "checking for $ac_word... " >&6; }
4054 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4055 $as_echo_n "(cached) " >&6
4056 else
4057 case $CSCOPE_CMD in
4058 [\\/]* | ?:[\\/]*)
4059 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4060 ;;
4061 *)
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 ;;
4078 esac
4079 fi
4080 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4081 if test -n "$CSCOPE_CMD"; then
4082 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4083 $as_echo "$CSCOPE_CMD" >&6; }
4084 else
4085 { $as_echo "$as_me:$LINENO: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090
4091 ################################################################################
4092
4093
4094
4095
4096
4097 ac_header_dirent=no
4098 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4099 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4100 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4101 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4103 $as_echo_n "(cached) " >&6
4104 else
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <sys/types.h>
4112 #include <$ac_hdr>
4113
4114 int
4115 main ()
4116 {
4117 if ((DIR *) 0)
4118 return 0;
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (ac_try="$ac_compile"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && {
4138 test -z "$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 } && test -s conftest.$ac_objext; then
4141 eval "$as_ac_Header=yes"
4142 else
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 eval "$as_ac_Header=no"
4147 fi
4148
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 fi
4151 ac_res=`eval 'as_val=${'$as_ac_Header'}
4152 $as_echo "$as_val"'`
4153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4154 $as_echo "$ac_res" >&6; }
4155 as_val=`eval 'as_val=${'$as_ac_Header'}
4156 $as_echo "$as_val"'`
4157 if test "x$as_val" = x""yes; then
4158 cat >>confdefs.h <<_ACEOF
4159 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4160 _ACEOF
4161
4162 ac_header_dirent=$ac_hdr; break
4163 fi
4164
4165 done
4166 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4167 if test $ac_header_dirent = dirent.h; then
4168 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4169 $as_echo_n "checking for library containing opendir... " >&6; }
4170 if test "${ac_cv_search_opendir+set}" = set; then
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_func_search_save_LIBS=$LIBS
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180
4181 /* Override any GCC internal prototype to avoid an error.
4182 Use char because int might match the return type of a GCC
4183 builtin and then its argument prototype would still apply. */
4184 #ifdef __cplusplus
4185 extern "C"
4186 #endif
4187 char opendir ();
4188 int
4189 main ()
4190 {
4191 return opendir ();
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 for ac_lib in '' dir; do
4197 if test -z "$ac_lib"; then
4198 ac_res="none required"
4199 else
4200 ac_res=-l$ac_lib
4201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4202 fi
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (ac_try="$ac_link"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4210 $as_echo "$ac_try_echo") >&5
4211 (eval "$ac_link") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest$ac_exeext && {
4221 test "$cross_compiling" = yes ||
4222 $as_test_x conftest$ac_exeext
4223 }; then
4224 ac_cv_search_opendir=$ac_res
4225 else
4226 $as_echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229
4230 fi
4231
4232 rm -rf conftest.dSYM
4233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4234 conftest$ac_exeext
4235 if test "${ac_cv_search_opendir+set}" = set; then
4236 break
4237 fi
4238 done
4239 if test "${ac_cv_search_opendir+set}" = set; then
4240 :
4241 else
4242 ac_cv_search_opendir=no
4243 fi
4244 rm conftest.$ac_ext
4245 LIBS=$ac_func_search_save_LIBS
4246 fi
4247 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4248 $as_echo "$ac_cv_search_opendir" >&6; }
4249 ac_res=$ac_cv_search_opendir
4250 if test "$ac_res" != no; then
4251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4252
4253 fi
4254
4255 else
4256 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4257 $as_echo_n "checking for library containing opendir... " >&6; }
4258 if test "${ac_cv_search_opendir+set}" = set; then
4259 $as_echo_n "(cached) " >&6
4260 else
4261 ac_func_search_save_LIBS=$LIBS
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268
4269 /* Override any GCC internal prototype to avoid an error.
4270 Use char because int might match the return type of a GCC
4271 builtin and then its argument prototype would still apply. */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 char opendir ();
4276 int
4277 main ()
4278 {
4279 return opendir ();
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 for ac_lib in '' x; do
4285 if test -z "$ac_lib"; then
4286 ac_res="none required"
4287 else
4288 ac_res=-l$ac_lib
4289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4290 fi
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4298 $as_echo "$ac_try_echo") >&5
4299 (eval "$ac_link") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest$ac_exeext && {
4309 test "$cross_compiling" = yes ||
4310 $as_test_x conftest$ac_exeext
4311 }; then
4312 ac_cv_search_opendir=$ac_res
4313 else
4314 $as_echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317
4318 fi
4319
4320 rm -rf conftest.dSYM
4321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4322 conftest$ac_exeext
4323 if test "${ac_cv_search_opendir+set}" = set; then
4324 break
4325 fi
4326 done
4327 if test "${ac_cv_search_opendir+set}" = set; then
4328 :
4329 else
4330 ac_cv_search_opendir=no
4331 fi
4332 rm conftest.$ac_ext
4333 LIBS=$ac_func_search_save_LIBS
4334 fi
4335 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4336 $as_echo "$ac_cv_search_opendir" >&6; }
4337 ac_res=$ac_cv_search_opendir
4338 if test "$ac_res" != no; then
4339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4340
4341 fi
4342
4343 fi
4344
4345 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4346 $as_echo_n "checking for ANSI C header files... " >&6; }
4347 if test "${ac_cv_header_stdc+set}" = set; then
4348 $as_echo_n "(cached) " >&6
4349 else
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h. */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #include <stdlib.h>
4357 #include <stdarg.h>
4358 #include <string.h>
4359 #include <float.h>
4360
4361 int
4362 main ()
4363 {
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 rm -f conftest.$ac_objext
4370 if { (ac_try="$ac_compile"
4371 case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374 esac
4375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376 $as_echo "$ac_try_echo") >&5
4377 (eval "$ac_compile") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } && {
4384 test -z "$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 } && test -s conftest.$ac_objext; then
4387 ac_cv_header_stdc=yes
4388 else
4389 $as_echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 ac_cv_header_stdc=no
4393 fi
4394
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <string.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev/null 2>&1; then
4410 :
4411 else
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <stdlib.h>
4427
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev/null 2>&1; then
4431 :
4432 else
4433 ac_cv_header_stdc=no
4434 fi
4435 rm -f conftest*
4436
4437 fi
4438
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4442 :
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <ctype.h>
4451 #include <stdlib.h>
4452 #if ((' ' & 0x0FF) == 0x020)
4453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455 #else
4456 # define ISLOWER(c) \
4457 (('a' <= (c) && (c) <= 'i') \
4458 || ('j' <= (c) && (c) <= 'r') \
4459 || ('s' <= (c) && (c) <= 'z'))
4460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4461 #endif
4462
4463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464 int
4465 main ()
4466 {
4467 int i;
4468 for (i = 0; i < 256; i++)
4469 if (XOR (islower (i), ISLOWER (i))
4470 || toupper (i) != TOUPPER (i))
4471 return 2;
4472 return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest$ac_exeext
4476 if { (ac_try="$ac_link"
4477 case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482 $as_echo "$ac_try_echo") >&5
4483 (eval "$ac_link") 2>&5
4484 ac_status=$?
4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4487 { (case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493 (eval "$ac_try") 2>&5
4494 ac_status=$?
4495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 :
4498 else
4499 $as_echo "$as_me: program exited with status $ac_status" >&5
4500 $as_echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 ( exit $ac_status )
4504 ac_cv_header_stdc=no
4505 fi
4506 rm -rf conftest.dSYM
4507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4508 fi
4509
4510
4511 fi
4512 fi
4513 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4514 $as_echo "$ac_cv_header_stdc" >&6; }
4515 if test $ac_cv_header_stdc = yes; then
4516
4517 cat >>confdefs.h <<\_ACEOF
4518 #define STDC_HEADERS 1
4519 _ACEOF
4520
4521 fi
4522
4523 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4524 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4525 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4527 else
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h. */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 #include <sys/types.h>
4535 #include <sys/wait.h>
4536 #ifndef WEXITSTATUS
4537 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4538 #endif
4539 #ifndef WIFEXITED
4540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4541 #endif
4542
4543 int
4544 main ()
4545 {
4546 int s;
4547 wait (&s);
4548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4555 case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558 esac
4559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4560 $as_echo "$ac_try_echo") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 ac_cv_header_sys_wait_h=yes
4572 else
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 ac_cv_header_sys_wait_h=no
4577 fi
4578
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 fi
4581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4582 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4583 if test $ac_cv_header_sys_wait_h = yes; then
4584
4585 cat >>confdefs.h <<\_ACEOF
4586 #define HAVE_SYS_WAIT_H 1
4587 _ACEOF
4588
4589 fi
4590
4591 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4592 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4593 if test "${ac_cv_header_time+set}" = set; then
4594 $as_echo_n "(cached) " >&6
4595 else
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #include <sys/types.h>
4603 #include <sys/time.h>
4604 #include <time.h>
4605
4606 int
4607 main ()
4608 {
4609 if ((struct tm *) 0)
4610 return 0;
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (ac_try="$ac_compile"
4617 case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4622 $as_echo "$ac_try_echo") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_cv_header_time=yes
4634 else
4635 $as_echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 ac_cv_header_time=no
4639 fi
4640
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 fi
4643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4644 $as_echo "$ac_cv_header_time" >&6; }
4645 if test $ac_cv_header_time = yes; then
4646
4647 cat >>confdefs.h <<\_ACEOF
4648 #define TIME_WITH_SYS_TIME 1
4649 _ACEOF
4650
4651 fi
4652
4653
4654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4665 inttypes.h stdint.h unistd.h
4666 do
4667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4669 $as_echo_n "checking for $ac_header... " >&6; }
4670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4671 $as_echo_n "(cached) " >&6
4672 else
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_includes_default
4680
4681 #include <$ac_header>
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (ac_try="$ac_compile"
4685 case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690 $as_echo "$ac_try_echo") >&5
4691 (eval "$ac_compile") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest.$ac_objext; then
4701 eval "$as_ac_Header=yes"
4702 else
4703 $as_echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 eval "$as_ac_Header=no"
4707 fi
4708
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 ac_res=`eval 'as_val=${'$as_ac_Header'}
4712 $as_echo "$as_val"'`
4713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4714 $as_echo "$ac_res" >&6; }
4715 as_val=`eval 'as_val=${'$as_ac_Header'}
4716 $as_echo "$as_val"'`
4717 if test "x$as_val" = x""yes; then
4718 cat >>confdefs.h <<_ACEOF
4719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720 _ACEOF
4721
4722 fi
4723
4724 done
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4741 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4742 do
4743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4745 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4746 $as_echo_n "checking for $ac_header... " >&6; }
4747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4748 $as_echo_n "(cached) " >&6
4749 fi
4750 ac_res=`eval 'as_val=${'$as_ac_Header'}
4751 $as_echo "$as_val"'`
4752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4753 $as_echo "$ac_res" >&6; }
4754 else
4755 # Is the header compilable?
4756 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4757 $as_echo_n "checking $ac_header usability... " >&6; }
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 $ac_includes_default
4765 #include <$ac_header>
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4785 ac_header_compiler=yes
4786 else
4787 $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 ac_header_compiler=no
4791 fi
4792
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4795 $as_echo "$ac_header_compiler" >&6; }
4796
4797 # Is the header present?
4798 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4799 $as_echo_n "checking $ac_header presence... " >&6; }
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #include <$ac_header>
4807 _ACEOF
4808 if { (ac_try="$ac_cpp conftest.$ac_ext"
4809 case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812 esac
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null && {
4822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4824 }; then
4825 ac_header_preproc=yes
4826 else
4827 $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_header_preproc=no
4831 fi
4832
4833 rm -f conftest.err conftest.$ac_ext
4834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4835 $as_echo "$ac_header_preproc" >&6; }
4836
4837 # So? What about this header?
4838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4839 yes:no: )
4840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4841 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4843 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4844 ac_header_preproc=yes
4845 ;;
4846 no:yes:* )
4847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4848 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4850 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4852 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4854 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4858 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4859
4860 ;;
4861 esac
4862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4863 $as_echo_n "checking for $ac_header... " >&6; }
4864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4865 $as_echo_n "(cached) " >&6
4866 else
4867 eval "$as_ac_Header=\$ac_header_preproc"
4868 fi
4869 ac_res=`eval 'as_val=${'$as_ac_Header'}
4870 $as_echo "$as_val"'`
4871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4872 $as_echo "$ac_res" >&6; }
4873
4874 fi
4875 as_val=`eval 'as_val=${'$as_ac_Header'}
4876 $as_echo "$as_val"'`
4877 if test "x$as_val" = x""yes; then
4878 cat >>confdefs.h <<_ACEOF
4879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4880 _ACEOF
4881
4882 else
4883 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4884 $as_echo "$as_me: error: bailing out" >&2;}
4885 { (exit 1); exit 1; }; }
4886 fi
4887
4888 done
4889
4890
4891 case "$host_os" in
4892 linux*)
4893
4894
4895
4896 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4897 do
4898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 $as_echo_n "checking for $ac_header... " >&6; }
4902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4903 $as_echo_n "(cached) " >&6
4904 fi
4905 ac_res=`eval 'as_val=${'$as_ac_Header'}
4906 $as_echo "$as_val"'`
4907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4908 $as_echo "$ac_res" >&6; }
4909 else
4910 # Is the header compilable?
4911 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4912 $as_echo_n "checking $ac_header usability... " >&6; }
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 $ac_includes_default
4920 #include <$ac_header>
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4929 $as_echo "$ac_try_echo") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4940 ac_header_compiler=yes
4941 else
4942 $as_echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_header_compiler=no
4946 fi
4947
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4950 $as_echo "$ac_header_compiler" >&6; }
4951
4952 # Is the header present?
4953 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4954 $as_echo_n "checking $ac_header presence... " >&6; }
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 #include <$ac_header>
4962 _ACEOF
4963 if { (ac_try="$ac_cpp conftest.$ac_ext"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969 $as_echo "$ac_try_echo") >&5
4970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null && {
4977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 }; then
4980 ac_header_preproc=yes
4981 else
4982 $as_echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_header_preproc=no
4986 fi
4987
4988 rm -f conftest.err conftest.$ac_ext
4989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4990 $as_echo "$ac_header_preproc" >&6; }
4991
4992 # So? What about this header?
4993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4994 yes:no: )
4995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4996 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4999 ac_header_preproc=yes
5000 ;;
5001 no:yes:* )
5002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5003 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5005 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5007 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5009 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5013 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5014
5015 ;;
5016 esac
5017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5018 $as_echo_n "checking for $ac_header... " >&6; }
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020 $as_echo_n "(cached) " >&6
5021 else
5022 eval "$as_ac_Header=\$ac_header_preproc"
5023 fi
5024 ac_res=`eval 'as_val=${'$as_ac_Header'}
5025 $as_echo "$as_val"'`
5026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5027 $as_echo "$ac_res" >&6; }
5028
5029 fi
5030 as_val=`eval 'as_val=${'$as_ac_Header'}
5031 $as_echo "$as_val"'`
5032 if test "x$as_val" = x""yes; then
5033 cat >>confdefs.h <<_ACEOF
5034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035 _ACEOF
5036
5037 else
5038 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5039 $as_echo "$as_me: error: bailing out" >&2;}
5040 { (exit 1); exit 1; }; }
5041 fi
5042
5043 done
5044 ;;
5045 darwin*)
5046
5047
5048 for ac_header in machine/endian.h sys/disk.h
5049 do
5050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 $as_echo_n "checking for $ac_header... " >&6; }
5054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055 $as_echo_n "(cached) " >&6
5056 fi
5057 ac_res=`eval 'as_val=${'$as_ac_Header'}
5058 $as_echo "$as_val"'`
5059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5060 $as_echo "$ac_res" >&6; }
5061 else
5062 # Is the header compilable?
5063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5064 $as_echo_n "checking $ac_header usability... " >&6; }
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 $ac_includes_default
5072 #include <$ac_header>
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (ac_try="$ac_compile"
5076 case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5081 $as_echo "$ac_try_echo") >&5
5082 (eval "$ac_compile") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } && {
5089 test -z "$ac_c_werror_flag" ||
5090 test ! -s conftest.err
5091 } && test -s conftest.$ac_objext; then
5092 ac_header_compiler=yes
5093 else
5094 $as_echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 ac_header_compiler=no
5098 fi
5099
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5102 $as_echo "$ac_header_compiler" >&6; }
5103
5104 # Is the header present?
5105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5106 $as_echo_n "checking $ac_header presence... " >&6; }
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #include <$ac_header>
5114 _ACEOF
5115 if { (ac_try="$ac_cpp conftest.$ac_ext"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null && {
5129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 }; then
5132 ac_header_preproc=yes
5133 else
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 ac_header_preproc=no
5138 fi
5139
5140 rm -f conftest.err conftest.$ac_ext
5141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5142 $as_echo "$ac_header_preproc" >&6; }
5143
5144 # So? What about this header?
5145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5146 yes:no: )
5147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5151 ac_header_preproc=yes
5152 ;;
5153 no:yes:* )
5154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5166
5167 ;;
5168 esac
5169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 $as_echo_n "checking for $ac_header... " >&6; }
5171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172 $as_echo_n "(cached) " >&6
5173 else
5174 eval "$as_ac_Header=\$ac_header_preproc"
5175 fi
5176 ac_res=`eval 'as_val=${'$as_ac_Header'}
5177 $as_echo "$as_val"'`
5178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5179 $as_echo "$ac_res" >&6; }
5180
5181 fi
5182 as_val=`eval 'as_val=${'$as_ac_Header'}
5183 $as_echo "$as_val"'`
5184 if test "x$as_val" = x""yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5188
5189 else
5190 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5191 $as_echo "$as_me: error: bailing out" >&2;}
5192 { (exit 1); exit 1; }; }
5193 fi
5194
5195 done
5196 ;;
5197 esac
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5216 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5217 sys/types.h unistd.h
5218 do
5219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5222 $as_echo_n "checking for $ac_header... " >&6; }
5223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5224 $as_echo_n "(cached) " >&6
5225 fi
5226 ac_res=`eval 'as_val=${'$as_ac_Header'}
5227 $as_echo "$as_val"'`
5228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5229 $as_echo "$ac_res" >&6; }
5230 else
5231 # Is the header compilable?
5232 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5233 $as_echo_n "checking $ac_header usability... " >&6; }
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 $ac_includes_default
5241 #include <$ac_header>
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5250 $as_echo "$ac_try_echo") >&5
5251 (eval "$ac_compile") 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest.$ac_objext; then
5261 ac_header_compiler=yes
5262 else
5263 $as_echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 ac_header_compiler=no
5267 fi
5268
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5271 $as_echo "$ac_header_compiler" >&6; }
5272
5273 # Is the header present?
5274 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5275 $as_echo_n "checking $ac_header presence... " >&6; }
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <$ac_header>
5283 _ACEOF
5284 if { (ac_try="$ac_cpp conftest.$ac_ext"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5290 $as_echo "$ac_try_echo") >&5
5291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } >/dev/null && {
5298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5299 test ! -s conftest.err
5300 }; then
5301 ac_header_preproc=yes
5302 else
5303 $as_echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ac_header_preproc=no
5307 fi
5308
5309 rm -f conftest.err conftest.$ac_ext
5310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5311 $as_echo "$ac_header_preproc" >&6; }
5312
5313 # So? What about this header?
5314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5315 yes:no: )
5316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5317 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5320 ac_header_preproc=yes
5321 ;;
5322 no:yes:* )
5323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5324 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5326 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5328 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5330 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5334 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5335
5336 ;;
5337 esac
5338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5339 $as_echo_n "checking for $ac_header... " >&6; }
5340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5341 $as_echo_n "(cached) " >&6
5342 else
5343 eval "$as_ac_Header=\$ac_header_preproc"
5344 fi
5345 ac_res=`eval 'as_val=${'$as_ac_Header'}
5346 $as_echo "$as_val"'`
5347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5348 $as_echo "$ac_res" >&6; }
5349
5350 fi
5351 as_val=`eval 'as_val=${'$as_ac_Header'}
5352 $as_echo "$as_val"'`
5353 if test "x$as_val" = x""yes; then
5354 cat >>confdefs.h <<_ACEOF
5355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5356 _ACEOF
5357
5358 else
5359 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5360 $as_echo "$as_me: error: bailing out" >&2;}
5361 { (exit 1); exit 1; }; }
5362 fi
5363
5364 done
5365
5366
5367
5368 for ac_header in termios.h sys/statvfs.h
5369 do
5370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 $as_echo_n "checking for $ac_header... " >&6; }
5374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5375 $as_echo_n "(cached) " >&6
5376 fi
5377 ac_res=`eval 'as_val=${'$as_ac_Header'}
5378 $as_echo "$as_val"'`
5379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5380 $as_echo "$ac_res" >&6; }
5381 else
5382 # Is the header compilable?
5383 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5384 $as_echo_n "checking $ac_header usability... " >&6; }
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 $ac_includes_default
5392 #include <$ac_header>
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_header_compiler=yes
5413 else
5414 $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_header_compiler=no
5418 fi
5419
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 $as_echo "$ac_header_compiler" >&6; }
5423
5424 # Is the header present?
5425 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426 $as_echo_n "checking $ac_header presence... " >&6; }
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <$ac_header>
5434 _ACEOF
5435 if { (ac_try="$ac_cpp conftest.$ac_ext"
5436 case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441 $as_echo "$ac_try_echo") >&5
5442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } >/dev/null && {
5449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 }; then
5452 ac_header_preproc=yes
5453 else
5454 $as_echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_header_preproc=no
5458 fi
5459
5460 rm -f conftest.err conftest.$ac_ext
5461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462 $as_echo "$ac_header_preproc" >&6; }
5463
5464 # So? What about this header?
5465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 yes:no: )
5467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5468 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5471 ac_header_preproc=yes
5472 ;;
5473 no:yes:* )
5474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5475 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5477 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5479 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5481 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5485 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5486
5487 ;;
5488 esac
5489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5490 $as_echo_n "checking for $ac_header... " >&6; }
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492 $as_echo_n "(cached) " >&6
5493 else
5494 eval "$as_ac_Header=\$ac_header_preproc"
5495 fi
5496 ac_res=`eval 'as_val=${'$as_ac_Header'}
5497 $as_echo "$as_val"'`
5498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5499 $as_echo "$ac_res" >&6; }
5500
5501 fi
5502 as_val=`eval 'as_val=${'$as_ac_Header'}
5503 $as_echo "$as_val"'`
5504 if test "x$as_val" = x""yes; then
5505 cat >>confdefs.h <<_ACEOF
5506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507 _ACEOF
5508
5509 fi
5510
5511 done
5512
5513
5514 ################################################################################
5515 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5516 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5517 if test "${ac_cv_c_const+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5519 else
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526
5527 int
5528 main ()
5529 {
5530 /* FIXME: Include the comments suggested by Paul. */
5531 #ifndef __cplusplus
5532 /* Ultrix mips cc rejects this. */
5533 typedef int charset[2];
5534 const charset cs;
5535 /* SunOS 4.1.1 cc rejects this. */
5536 char const *const *pcpcc;
5537 char **ppc;
5538 /* NEC SVR4.0.2 mips cc rejects this. */
5539 struct point {int x, y;};
5540 static struct point const zero = {0,0};
5541 /* AIX XL C 1.02.0.0 rejects this.
5542 It does not let you subtract one const X* pointer from another in
5543 an arm of an if-expression whose if-part is not a constant
5544 expression */
5545 const char *g = "string";
5546 pcpcc = &g + (g ? g-g : 0);
5547 /* HPUX 7.0 cc rejects these. */
5548 ++pcpcc;
5549 ppc = (char**) pcpcc;
5550 pcpcc = (char const *const *) ppc;
5551 { /* SCO 3.2v4 cc rejects this. */
5552 char *t;
5553 char const *s = 0 ? (char *) 0 : (char const *) 0;
5554
5555 *t++ = 0;
5556 if (s) return 0;
5557 }
5558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5559 int x[] = {25, 17};
5560 const int *foo = &x[0];
5561 ++foo;
5562 }
5563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5564 typedef const int *iptr;
5565 iptr p = 0;
5566 ++p;
5567 }
5568 { /* AIX XL C 1.02.0.0 rejects this saying
5569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5570 struct s { int j; const int *ap[3]; };
5571 struct s *b; b->j = 5;
5572 }
5573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5574 const int foo = 10;
5575 if (!foo) return 0;
5576 }
5577 return !cs[0] && !zero.x;
5578 #endif
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_cv_c_const=yes
5603 else
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 ac_cv_c_const=no
5608 fi
5609
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 fi
5612 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5613 $as_echo "$ac_cv_c_const" >&6; }
5614 if test $ac_cv_c_const = no; then
5615
5616 cat >>confdefs.h <<\_ACEOF
5617 #define const /**/
5618 _ACEOF
5619
5620 fi
5621
5622 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5623 $as_echo_n "checking for inline... " >&6; }
5624 if test "${ac_cv_c_inline+set}" = set; then
5625 $as_echo_n "(cached) " >&6
5626 else
5627 ac_cv_c_inline=no
5628 for ac_kw in inline __inline__ __inline; do
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #ifndef __cplusplus
5636 typedef int foo_t;
5637 static $ac_kw foo_t static_foo () {return 0; }
5638 $ac_kw foo_t foo () {return 0; }
5639 #endif
5640
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 ac_cv_c_inline=$ac_kw
5661 else
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665
5666 fi
5667
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 test "$ac_cv_c_inline" != no && break
5670 done
5671
5672 fi
5673 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5674 $as_echo "$ac_cv_c_inline" >&6; }
5675
5676
5677 case $ac_cv_c_inline in
5678 inline | yes) ;;
5679 *)
5680 case $ac_cv_c_inline in
5681 no) ac_val=;;
5682 *) ac_val=$ac_cv_c_inline;;
5683 esac
5684 cat >>confdefs.h <<_ACEOF
5685 #ifndef __cplusplus
5686 #define inline $ac_val
5687 #endif
5688 _ACEOF
5689 ;;
5690 esac
5691
5692 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5693 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5694 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5695 $as_echo_n "(cached) " >&6
5696 else
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 $ac_includes_default
5704 int
5705 main ()
5706 {
5707 static struct stat ac_aggr;
5708 if (ac_aggr.st_rdev)
5709 return 0;
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5716 case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5721 $as_echo "$ac_try_echo") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_member_struct_stat_st_rdev=yes
5733 else
5734 $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 int
5745 main ()
5746 {
5747 static struct stat ac_aggr;
5748 if (sizeof ac_aggr.st_rdev)
5749 return 0;
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext
5755 if { (ac_try="$ac_compile"
5756 case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759 esac
5760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5761 $as_echo "$ac_try_echo") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 ac_cv_member_struct_stat_st_rdev=yes
5773 else
5774 $as_echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_cv_member_struct_stat_st_rdev=no
5778 fi
5779
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5785 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5786 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5787 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5788
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_STRUCT_STAT_ST_RDEV 1
5791 _ACEOF
5792
5793
5794 fi
5795
5796 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5797 $as_echo_n "checking for off_t... " >&6; }
5798 if test "${ac_cv_type_off_t+set}" = set; then
5799 $as_echo_n "(cached) " >&6
5800 else
5801 ac_cv_type_off_t=no
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 $ac_includes_default
5809 int
5810 main ()
5811 {
5812 if (sizeof (off_t))
5813 return 0;
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5825 $as_echo "$ac_try_echo") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 $ac_includes_default
5843 int
5844 main ()
5845 {
5846 if (sizeof ((off_t)))
5847 return 0;
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5854 case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857 esac
5858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859 $as_echo "$ac_try_echo") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest.$ac_objext; then
5870 :
5871 else
5872 $as_echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 ac_cv_type_off_t=yes
5876 fi
5877
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 else
5880 $as_echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883
5884 fi
5885
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 fi
5888 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5889 $as_echo "$ac_cv_type_off_t" >&6; }
5890 if test "x$ac_cv_type_off_t" = x""yes; then
5891 :
5892 else
5893
5894 cat >>confdefs.h <<_ACEOF
5895 #define off_t long int
5896 _ACEOF
5897
5898 fi
5899
5900 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5901 $as_echo_n "checking for pid_t... " >&6; }
5902 if test "${ac_cv_type_pid_t+set}" = set; then
5903 $as_echo_n "(cached) " >&6
5904 else
5905 ac_cv_type_pid_t=no
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5913 int
5914 main ()
5915 {
5916 if (sizeof (pid_t))
5917 return 0;
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5924 case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929 $as_echo "$ac_try_echo") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 $ac_includes_default
5947 int
5948 main ()
5949 {
5950 if (sizeof ((pid_t)))
5951 return 0;
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5963 $as_echo "$ac_try_echo") >&5
5964 (eval "$ac_compile") 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest.$ac_objext; then
5974 :
5975 else
5976 $as_echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_cv_type_pid_t=yes
5980 fi
5981
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 else
5984 $as_echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987
5988 fi
5989
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 fi
5992 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5993 $as_echo "$ac_cv_type_pid_t" >&6; }
5994 if test "x$ac_cv_type_pid_t" = x""yes; then
5995 :
5996 else
5997
5998 cat >>confdefs.h <<_ACEOF
5999 #define pid_t int
6000 _ACEOF
6001
6002 fi
6003
6004 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6005 $as_echo_n "checking return type of signal handlers... " >&6; }
6006 if test "${ac_cv_type_signal+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6008 else
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #include <sys/types.h>
6016 #include <signal.h>
6017
6018 int
6019 main ()
6020 {
6021 return *(signal (0, 0)) (0) == 1;
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext
6027 if { (ac_try="$ac_compile"
6028 case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031 esac
6032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6033 $as_echo "$ac_try_echo") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
6044 ac_cv_type_signal=int
6045 else
6046 $as_echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049 ac_cv_type_signal=void
6050 fi
6051
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 fi
6054 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6055 $as_echo "$ac_cv_type_signal" >&6; }
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define RETSIGTYPE $ac_cv_type_signal
6059 _ACEOF
6060
6061
6062 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6063 $as_echo_n "checking for size_t... " >&6; }
6064 if test "${ac_cv_type_size_t+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6066 else
6067 ac_cv_type_size_t=no
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6075 int
6076 main ()
6077 {
6078 if (sizeof (size_t))
6079 return 0;
6080 ;
6081 return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (ac_try="$ac_compile"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092 (eval "$ac_compile") 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest.$ac_objext; then
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 int
6110 main ()
6111 {
6112 if (sizeof ((size_t)))
6113 return 0;
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125 $as_echo "$ac_try_echo") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6136 :
6137 else
6138 $as_echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 ac_cv_type_size_t=yes
6142 fi
6143
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 else
6146 $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6155 $as_echo "$ac_cv_type_size_t" >&6; }
6156 if test "x$ac_cv_type_size_t" = x""yes; then
6157 :
6158 else
6159
6160 cat >>confdefs.h <<_ACEOF
6161 #define size_t unsigned int
6162 _ACEOF
6163
6164 fi
6165
6166 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6167 $as_echo_n "checking for mode_t... " >&6; }
6168 if test "${ac_cv_type_mode_t+set}" = set; then
6169 $as_echo_n "(cached) " >&6
6170 else
6171 ac_cv_type_mode_t=no
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179 int
6180 main ()
6181 {
6182 if (sizeof (mode_t))
6183 return 0;
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195 $as_echo "$ac_try_echo") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h. */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 $ac_includes_default
6213 int
6214 main ()
6215 {
6216 if (sizeof ((mode_t)))
6217 return 0;
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6224 case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 :
6241 else
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_type_mode_t=yes
6246 fi
6247
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 else
6250 $as_echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253
6254 fi
6255
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 fi
6258 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6259 $as_echo "$ac_cv_type_mode_t" >&6; }
6260 if test "x$ac_cv_type_mode_t" = x""yes; then
6261 :
6262 else
6263
6264 cat >>confdefs.h <<_ACEOF
6265 #define mode_t int
6266 _ACEOF
6267
6268 fi
6269
6270 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6271 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6272 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 $ac_includes_default
6282 int
6283 main ()
6284 {
6285 static struct stat ac_aggr;
6286 if (ac_aggr.st_rdev)
6287 return 0;
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 ac_cv_member_struct_stat_st_rdev=yes
6311 else
6312 $as_echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6322 int
6323 main ()
6324 {
6325 static struct stat ac_aggr;
6326 if (sizeof ac_aggr.st_rdev)
6327 return 0;
6328 ;
6329 return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6334 case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337 esac
6338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6339 $as_echo "$ac_try_echo") >&5
6340 (eval "$ac_compile") 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && {
6347 test -z "$ac_c_werror_flag" ||
6348 test ! -s conftest.err
6349 } && test -s conftest.$ac_objext; then
6350 ac_cv_member_struct_stat_st_rdev=yes
6351 else
6352 $as_echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 ac_cv_member_struct_stat_st_rdev=no
6356 fi
6357
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 fi
6360
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 fi
6363 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6364 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6365 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6366
6367 cat >>confdefs.h <<_ACEOF
6368 #define HAVE_STRUCT_STAT_ST_RDEV 1
6369 _ACEOF
6370
6371
6372 fi
6373
6374 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6375 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6376 if test "${ac_cv_struct_tm+set}" = set; then
6377 $as_echo_n "(cached) " >&6
6378 else
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h. */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <sys/types.h>
6386 #include <time.h>
6387
6388 int
6389 main ()
6390 {
6391 struct tm tm;
6392 int *p = &tm.tm_sec;
6393 return !p;
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6405 $as_echo "$ac_try_echo") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest.$ac_objext; then
6416 ac_cv_struct_tm=time.h
6417 else
6418 $as_echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_cv_struct_tm=sys/time.h
6422 fi
6423
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 fi
6426 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6427 $as_echo "$ac_cv_struct_tm" >&6; }
6428 if test $ac_cv_struct_tm = sys/time.h; then
6429
6430 cat >>confdefs.h <<\_ACEOF
6431 #define TM_IN_SYS_TIME 1
6432 _ACEOF
6433
6434 fi
6435
6436
6437 ################################################################################
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6456 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6457 uname
6458 do
6459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6460 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6461 $as_echo_n "checking for $ac_func... " >&6; }
6462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6463 $as_echo_n "(cached) " >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6473 #define $ac_func innocuous_$ac_func
6474
6475 /* System header to define __stub macros and hopefully few prototypes,
6476 which can conflict with char $ac_func (); below.
6477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6478 <limits.h> exists even on freestanding compilers. */
6479
6480 #ifdef __STDC__
6481 # include <limits.h>
6482 #else
6483 # include <assert.h>
6484 #endif
6485
6486 #undef $ac_func
6487
6488 /* Override any GCC internal prototype to avoid an error.
6489 Use char because int might match the return type of a GCC
6490 builtin and then its argument prototype would still apply. */
6491 #ifdef __cplusplus
6492 extern "C"
6493 #endif
6494 char $ac_func ();
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined __stub_$ac_func || defined __stub___$ac_func
6499 choke me
6500 #endif
6501
6502 int
6503 main ()
6504 {
6505 return $ac_func ();
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6512 case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515 esac
6516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6517 $as_echo "$ac_try_echo") >&5
6518 (eval "$ac_link") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest$ac_exeext && {
6528 test "$cross_compiling" = yes ||
6529 $as_test_x conftest$ac_exeext
6530 }; then
6531 eval "$as_ac_var=yes"
6532 else
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 eval "$as_ac_var=no"
6537 fi
6538
6539 rm -rf conftest.dSYM
6540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6541 conftest$ac_exeext conftest.$ac_ext
6542 fi
6543 ac_res=`eval 'as_val=${'$as_ac_var'}
6544 $as_echo "$as_val"'`
6545 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6546 $as_echo "$ac_res" >&6; }
6547 as_val=`eval 'as_val=${'$as_ac_var'}
6548 $as_echo "$as_val"'`
6549 if test "x$as_val" = x""yes; then
6550 cat >>confdefs.h <<_ACEOF
6551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6552 _ACEOF
6553
6554 else
6555 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6556 $as_echo "$as_me: error: bailing out" >&2;}
6557 { (exit 1); exit 1; }; }
6558 fi
6559 done
6560
6561
6562 for ac_func in siginterrupt
6563 do
6564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6565 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6566 $as_echo_n "checking for $ac_func... " >&6; }
6567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6568 $as_echo_n "(cached) " >&6
6569 else
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6578 #define $ac_func innocuous_$ac_func
6579
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func (); below.
6582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6583 <limits.h> exists even on freestanding compilers. */
6584
6585 #ifdef __STDC__
6586 # include <limits.h>
6587 #else
6588 # include <assert.h>
6589 #endif
6590
6591 #undef $ac_func
6592
6593 /* Override any GCC internal prototype to avoid an error.
6594 Use char because int might match the return type of a GCC
6595 builtin and then its argument prototype would still apply. */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 char $ac_func ();
6600 /* The GNU C library defines this for functions which it implements
6601 to always fail with ENOSYS. Some functions are actually named
6602 something starting with __ and the normal name is an alias. */
6603 #if defined __stub_$ac_func || defined __stub___$ac_func
6604 choke me
6605 #endif
6606
6607 int
6608 main ()
6609 {
6610 return $ac_func ();
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (ac_try="$ac_link"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6622 $as_echo "$ac_try_echo") >&5
6623 (eval "$ac_link") 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && {
6630 test -z "$ac_c_werror_flag" ||
6631 test ! -s conftest.err
6632 } && test -s conftest$ac_exeext && {
6633 test "$cross_compiling" = yes ||
6634 $as_test_x conftest$ac_exeext
6635 }; then
6636 eval "$as_ac_var=yes"
6637 else
6638 $as_echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 eval "$as_ac_var=no"
6642 fi
6643
6644 rm -rf conftest.dSYM
6645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6646 conftest$ac_exeext conftest.$ac_ext
6647 fi
6648 ac_res=`eval 'as_val=${'$as_ac_var'}
6649 $as_echo "$as_val"'`
6650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6651 $as_echo "$ac_res" >&6; }
6652 as_val=`eval 'as_val=${'$as_ac_var'}
6653 $as_echo "$as_val"'`
6654 if test "x$as_val" = x""yes; then
6655 cat >>confdefs.h <<_ACEOF
6656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6657 _ACEOF
6658
6659 fi
6660 done
6661
6662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6663 # for constant arguments. Useless!
6664 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6665 $as_echo_n "checking for working alloca.h... " >&6; }
6666 if test "${ac_cv_working_alloca_h+set}" = set; then
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <alloca.h>
6676 int
6677 main ()
6678 {
6679 char *p = (char *) alloca (2 * sizeof (int));
6680 if (p) return 0;
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6687 case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690 esac
6691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692 $as_echo "$ac_try_echo") >&5
6693 (eval "$ac_link") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest$ac_exeext
6705 }; then
6706 ac_cv_working_alloca_h=yes
6707 else
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 ac_cv_working_alloca_h=no
6712 fi
6713
6714 rm -rf conftest.dSYM
6715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6716 conftest$ac_exeext conftest.$ac_ext
6717 fi
6718 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6719 $as_echo "$ac_cv_working_alloca_h" >&6; }
6720 if test $ac_cv_working_alloca_h = yes; then
6721
6722 cat >>confdefs.h <<\_ACEOF
6723 #define HAVE_ALLOCA_H 1
6724 _ACEOF
6725
6726 fi
6727
6728 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6729 $as_echo_n "checking for alloca... " >&6; }
6730 if test "${ac_cv_func_alloca_works+set}" = set; then
6731 $as_echo_n "(cached) " >&6
6732 else
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #ifdef __GNUC__
6740 # define alloca __builtin_alloca
6741 #else
6742 # ifdef _MSC_VER
6743 # include <malloc.h>
6744 # define alloca _alloca
6745 # else
6746 # ifdef HAVE_ALLOCA_H
6747 # include <alloca.h>
6748 # else
6749 # ifdef _AIX
6750 #pragma alloca
6751 # else
6752 # ifndef alloca /* predefined by HP cc +Olibcalls */
6753 char *alloca ();
6754 # endif
6755 # endif
6756 # endif
6757 # endif
6758 #endif
6759
6760 int
6761 main ()
6762 {
6763 char *p = (char *) alloca (1);
6764 if (p) return 0;
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (ac_try="$ac_link"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776 $as_echo "$ac_try_echo") >&5
6777 (eval "$ac_link") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest$ac_exeext && {
6787 test "$cross_compiling" = yes ||
6788 $as_test_x conftest$ac_exeext
6789 }; then
6790 ac_cv_func_alloca_works=yes
6791 else
6792 $as_echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_cv_func_alloca_works=no
6796 fi
6797
6798 rm -rf conftest.dSYM
6799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6800 conftest$ac_exeext conftest.$ac_ext
6801 fi
6802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6803 $as_echo "$ac_cv_func_alloca_works" >&6; }
6804
6805 if test $ac_cv_func_alloca_works = yes; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_ALLOCA 1
6809 _ACEOF
6810
6811 else
6812 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6813 # that cause trouble. Some versions do not even contain alloca or
6814 # contain a buggy version. If you still want to use their alloca,
6815 # use ar to extract alloca.o from them instead of compiling alloca.c.
6816
6817 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6818
6819 cat >>confdefs.h <<\_ACEOF
6820 #define C_ALLOCA 1
6821 _ACEOF
6822
6823
6824 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6825 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6826 if test "${ac_cv_os_cray+set}" = set; then
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #if defined CRAY && ! defined CRAY2
6836 webecray
6837 #else
6838 wenotbecray
6839 #endif
6840
6841 _ACEOF
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "webecray" >/dev/null 2>&1; then
6844 ac_cv_os_cray=yes
6845 else
6846 ac_cv_os_cray=no
6847 fi
6848 rm -f conftest*
6849
6850 fi
6851 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6852 $as_echo "$ac_cv_os_cray" >&6; }
6853 if test $ac_cv_os_cray = yes; then
6854 for ac_func in _getb67 GETB67 getb67; do
6855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6857 $as_echo_n "checking for $ac_func... " >&6; }
6858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6859 $as_echo_n "(cached) " >&6
6860 else
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6869 #define $ac_func innocuous_$ac_func
6870
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func (); below.
6873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6874 <limits.h> exists even on freestanding compilers. */
6875
6876 #ifdef __STDC__
6877 # include <limits.h>
6878 #else
6879 # include <assert.h>
6880 #endif
6881
6882 #undef $ac_func
6883
6884 /* Override any GCC internal prototype to avoid an error.
6885 Use char because int might match the return type of a GCC
6886 builtin and then its argument prototype would still apply. */
6887 #ifdef __cplusplus
6888 extern "C"
6889 #endif
6890 char $ac_func ();
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined __stub_$ac_func || defined __stub___$ac_func
6895 choke me
6896 #endif
6897
6898 int
6899 main ()
6900 {
6901 return $ac_func ();
6902 ;
6903 return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext conftest$ac_exeext
6907 if { (ac_try="$ac_link"
6908 case "(($ac_try" in
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6911 esac
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914 (eval "$ac_link") 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 } && test -s conftest$ac_exeext && {
6924 test "$cross_compiling" = yes ||
6925 $as_test_x conftest$ac_exeext
6926 }; then
6927 eval "$as_ac_var=yes"
6928 else
6929 $as_echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 eval "$as_ac_var=no"
6933 fi
6934
6935 rm -rf conftest.dSYM
6936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6937 conftest$ac_exeext conftest.$ac_ext
6938 fi
6939 ac_res=`eval 'as_val=${'$as_ac_var'}
6940 $as_echo "$as_val"'`
6941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6942 $as_echo "$ac_res" >&6; }
6943 as_val=`eval 'as_val=${'$as_ac_var'}
6944 $as_echo "$as_val"'`
6945 if test "x$as_val" = x""yes; then
6946
6947 cat >>confdefs.h <<_ACEOF
6948 #define CRAY_STACKSEG_END $ac_func
6949 _ACEOF
6950
6951 break
6952 fi
6953
6954 done
6955 fi
6956
6957 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6958 $as_echo_n "checking stack direction for C alloca... " >&6; }
6959 if test "${ac_cv_c_stack_direction+set}" = set; then
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test "$cross_compiling" = yes; then
6963 ac_cv_c_stack_direction=0
6964 else
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 $ac_includes_default
6972 int
6973 find_stack_direction ()
6974 {
6975 static char *addr = 0;
6976 auto char dummy;
6977 if (addr == 0)
6978 {
6979 addr = &dummy;
6980 return find_stack_direction ();
6981 }
6982 else
6983 return (&dummy > addr) ? 1 : -1;
6984 }
6985
6986 int
6987 main ()
6988 {
6989 return find_stack_direction () < 0;
6990 }
6991 _ACEOF
6992 rm -f conftest$ac_exeext
6993 if { (ac_try="$ac_link"
6994 case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997 esac
6998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999 $as_echo "$ac_try_echo") >&5
7000 (eval "$ac_link") 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7004 { (case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007 esac
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010 (eval "$ac_try") 2>&5
7011 ac_status=$?
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 ac_cv_c_stack_direction=1
7015 else
7016 $as_echo "$as_me: program exited with status $ac_status" >&5
7017 $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ( exit $ac_status )
7021 ac_cv_c_stack_direction=-1
7022 fi
7023 rm -rf conftest.dSYM
7024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 fi
7026
7027
7028 fi
7029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7030 $as_echo "$ac_cv_c_stack_direction" >&6; }
7031
7032 cat >>confdefs.h <<_ACEOF
7033 #define STACK_DIRECTION $ac_cv_c_stack_direction
7034 _ACEOF
7035
7036
7037 fi
7038
7039 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7040 $as_echo_n "checking whether closedir returns void... " >&6; }
7041 if test "${ac_cv_func_closedir_void+set}" = set; then
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test "$cross_compiling" = yes; then
7045 ac_cv_func_closedir_void=yes
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 #include <$ac_header_dirent>
7055 #ifndef __cplusplus
7056 int closedir ();
7057 #endif
7058
7059 int
7060 main ()
7061 {
7062 return closedir (opendir (".")) != 0;
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest$ac_exeext
7068 if { (ac_try="$ac_link"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075 (eval "$ac_link") 2>&5
7076 ac_status=$?
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7079 { (case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082 esac
7083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7084 $as_echo "$ac_try_echo") >&5
7085 (eval "$ac_try") 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_func_closedir_void=no
7090 else
7091 $as_echo "$as_me: program exited with status $ac_status" >&5
7092 $as_echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 ( exit $ac_status )
7096 ac_cv_func_closedir_void=yes
7097 fi
7098 rm -rf conftest.dSYM
7099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7100 fi
7101
7102
7103 fi
7104 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7105 $as_echo "$ac_cv_func_closedir_void" >&6; }
7106 if test $ac_cv_func_closedir_void = yes; then
7107
7108 cat >>confdefs.h <<\_ACEOF
7109 #define CLOSEDIR_VOID 1
7110 _ACEOF
7111
7112 fi
7113
7114
7115 for ac_header in vfork.h
7116 do
7117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7120 $as_echo_n "checking for $ac_header... " >&6; }
7121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7122 $as_echo_n "(cached) " >&6
7123 fi
7124 ac_res=`eval 'as_val=${'$as_ac_Header'}
7125 $as_echo "$as_val"'`
7126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 else
7129 # Is the header compilable?
7130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7131 $as_echo_n "checking $ac_header usability... " >&6; }
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 #include <$ac_header>
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7143 case "(($ac_try" in
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7146 esac
7147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7148 $as_echo "$ac_try_echo") >&5
7149 (eval "$ac_compile") 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest.$ac_objext; then
7159 ac_header_compiler=yes
7160 else
7161 $as_echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7163
7164 ac_header_compiler=no
7165 fi
7166
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7169 $as_echo "$ac_header_compiler" >&6; }
7170
7171 # Is the header present?
7172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7173 $as_echo_n "checking $ac_header presence... " >&6; }
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <$ac_header>
7181 _ACEOF
7182 if { (ac_try="$ac_cpp conftest.$ac_ext"
7183 case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 }; then
7199 ac_header_preproc=yes
7200 else
7201 $as_echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_header_preproc=no
7205 fi
7206
7207 rm -f conftest.err conftest.$ac_ext
7208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7209 $as_echo "$ac_header_preproc" >&6; }
7210
7211 # So? What about this header?
7212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7213 yes:no: )
7214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7218 ac_header_preproc=yes
7219 ;;
7220 no:yes:* )
7221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7224 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7228 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7233
7234 ;;
7235 esac
7236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 $as_echo_n "checking for $ac_header... " >&6; }
7238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7239 $as_echo_n "(cached) " >&6
7240 else
7241 eval "$as_ac_Header=\$ac_header_preproc"
7242 fi
7243 ac_res=`eval 'as_val=${'$as_ac_Header'}
7244 $as_echo "$as_val"'`
7245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7246 $as_echo "$ac_res" >&6; }
7247
7248 fi
7249 as_val=`eval 'as_val=${'$as_ac_Header'}
7250 $as_echo "$as_val"'`
7251 if test "x$as_val" = x""yes; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7254 _ACEOF
7255
7256 fi
7257
7258 done
7259
7260
7261
7262 for ac_func in fork vfork
7263 do
7264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7265 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7266 $as_echo_n "checking for $ac_func... " >&6; }
7267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7268 $as_echo_n "(cached) " >&6
7269 else
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7278 #define $ac_func innocuous_$ac_func
7279
7280 /* System header to define __stub macros and hopefully few prototypes,
7281 which can conflict with char $ac_func (); below.
7282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 <limits.h> exists even on freestanding compilers. */
7284
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7290
7291 #undef $ac_func
7292
7293 /* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 char $ac_func ();
7300 /* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7303 #if defined __stub_$ac_func || defined __stub___$ac_func
7304 choke me
7305 #endif
7306
7307 int
7308 main ()
7309 {
7310 return $ac_func ();
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (ac_try="$ac_link"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7322 $as_echo "$ac_try_echo") >&5
7323 (eval "$ac_link") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext && {
7333 test "$cross_compiling" = yes ||
7334 $as_test_x conftest$ac_exeext
7335 }; then
7336 eval "$as_ac_var=yes"
7337 else
7338 $as_echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 eval "$as_ac_var=no"
7342 fi
7343
7344 rm -rf conftest.dSYM
7345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7346 conftest$ac_exeext conftest.$ac_ext
7347 fi
7348 ac_res=`eval 'as_val=${'$as_ac_var'}
7349 $as_echo "$as_val"'`
7350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7351 $as_echo "$ac_res" >&6; }
7352 as_val=`eval 'as_val=${'$as_ac_var'}
7353 $as_echo "$as_val"'`
7354 if test "x$as_val" = x""yes; then
7355 cat >>confdefs.h <<_ACEOF
7356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7357 _ACEOF
7358
7359 fi
7360 done
7361
7362 if test "x$ac_cv_func_fork" = xyes; then
7363 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7364 $as_echo_n "checking for working fork... " >&6; }
7365 if test "${ac_cv_func_fork_works+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test "$cross_compiling" = yes; then
7369 ac_cv_func_fork_works=cross
7370 else
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h. */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 $ac_includes_default
7378 int
7379 main ()
7380 {
7381
7382 /* By Ruediger Kuhlmann. */
7383 return fork () < 0;
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 rm -f conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7391 case "(($ac_try" in
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7394 esac
7395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7396 $as_echo "$ac_try_echo") >&5
7397 (eval "$ac_link") 2>&5
7398 ac_status=$?
7399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7401 { (case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_try") 2>&5
7408 ac_status=$?
7409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_func_fork_works=yes
7412 else
7413 $as_echo "$as_me: program exited with status $ac_status" >&5
7414 $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 ( exit $ac_status )
7418 ac_cv_func_fork_works=no
7419 fi
7420 rm -rf conftest.dSYM
7421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7422 fi
7423
7424
7425 fi
7426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7427 $as_echo "$ac_cv_func_fork_works" >&6; }
7428
7429 else
7430 ac_cv_func_fork_works=$ac_cv_func_fork
7431 fi
7432 if test "x$ac_cv_func_fork_works" = xcross; then
7433 case $host in
7434 *-*-amigaos* | *-*-msdosdjgpp*)
7435 # Override, as these systems have only a dummy fork() stub
7436 ac_cv_func_fork_works=no
7437 ;;
7438 *)
7439 ac_cv_func_fork_works=yes
7440 ;;
7441 esac
7442 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7443 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7444 fi
7445 ac_cv_func_vfork_works=$ac_cv_func_vfork
7446 if test "x$ac_cv_func_vfork" = xyes; then
7447 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7448 $as_echo_n "checking for working vfork... " >&6; }
7449 if test "${ac_cv_func_vfork_works+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test "$cross_compiling" = yes; then
7453 ac_cv_func_vfork_works=cross
7454 else
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 /* Thanks to Paul Eggert for this test. */
7462 $ac_includes_default
7463 #include <sys/wait.h>
7464 #ifdef HAVE_VFORK_H
7465 # include <vfork.h>
7466 #endif
7467 /* On some sparc systems, changes by the child to local and incoming
7468 argument registers are propagated back to the parent. The compiler
7469 is told about this with #include <vfork.h>, but some compilers
7470 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7471 static variable whose address is put into a register that is
7472 clobbered by the vfork. */
7473 static void
7474 #ifdef __cplusplus
7475 sparc_address_test (int arg)
7476 # else
7477 sparc_address_test (arg) int arg;
7478 #endif
7479 {
7480 static pid_t child;
7481 if (!child) {
7482 child = vfork ();
7483 if (child < 0) {
7484 perror ("vfork");
7485 _exit(2);
7486 }
7487 if (!child) {
7488 arg = getpid();
7489 write(-1, "", 0);
7490 _exit (arg);
7491 }
7492 }
7493 }
7494
7495 int
7496 main ()
7497 {
7498 pid_t parent = getpid ();
7499 pid_t child;
7500
7501 sparc_address_test (0);
7502
7503 child = vfork ();
7504
7505 if (child == 0) {
7506 /* Here is another test for sparc vfork register problems. This
7507 test uses lots of local variables, at least as many local
7508 variables as main has allocated so far including compiler
7509 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7510 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7511 reuse the register of parent for one of the local variables,
7512 since it will think that parent can't possibly be used any more
7513 in this routine. Assigning to the local variable will thus
7514 munge parent in the parent process. */
7515 pid_t
7516 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7517 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7518 /* Convince the compiler that p..p7 are live; otherwise, it might
7519 use the same hardware register for all 8 local variables. */
7520 if (p != p1 || p != p2 || p != p3 || p != p4
7521 || p != p5 || p != p6 || p != p7)
7522 _exit(1);
7523
7524 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7525 from child file descriptors. If the child closes a descriptor
7526 before it execs or exits, this munges the parent's descriptor
7527 as well. Test for this by closing stdout in the child. */
7528 _exit(close(fileno(stdout)) != 0);
7529 } else {
7530 int status;
7531 struct stat st;
7532
7533 while (wait(&status) != child)
7534 ;
7535 return (
7536 /* Was there some problem with vforking? */
7537 child < 0
7538
7539 /* Did the child fail? (This shouldn't happen.) */
7540 || status
7541
7542 /* Did the vfork/compiler bug occur? */
7543 || parent != getpid()
7544
7545 /* Did the file descriptor bug occur? */
7546 || fstat(fileno(stdout), &st) != 0
7547 );
7548 }
7549 }
7550 _ACEOF
7551 rm -f conftest$ac_exeext
7552 if { (ac_try="$ac_link"
7553 case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556 esac
7557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7558 $as_echo "$ac_try_echo") >&5
7559 (eval "$ac_link") 2>&5
7560 ac_status=$?
7561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7563 { (case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569 (eval "$ac_try") 2>&5
7570 ac_status=$?
7571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 ac_cv_func_vfork_works=yes
7574 else
7575 $as_echo "$as_me: program exited with status $ac_status" >&5
7576 $as_echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579 ( exit $ac_status )
7580 ac_cv_func_vfork_works=no
7581 fi
7582 rm -rf conftest.dSYM
7583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7584 fi
7585
7586
7587 fi
7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7589 $as_echo "$ac_cv_func_vfork_works" >&6; }
7590
7591 fi;
7592 if test "x$ac_cv_func_fork_works" = xcross; then
7593 ac_cv_func_vfork_works=$ac_cv_func_vfork
7594 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7595 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7596 fi
7597
7598 if test "x$ac_cv_func_vfork_works" = xyes; then
7599
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_WORKING_VFORK 1
7602 _ACEOF
7603
7604 else
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define vfork fork
7608 _ACEOF
7609
7610 fi
7611 if test "x$ac_cv_func_fork_works" = xyes; then
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_WORKING_FORK 1
7615 _ACEOF
7616
7617 fi
7618
7619 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7620 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7621 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7622 $as_echo_n "(cached) " >&6
7623 else
7624 rm -f conftest.sym conftest.file
7625 echo >conftest.file
7626 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7627 if test "$cross_compiling" = yes; then
7628 ac_cv_func_lstat_dereferences_slashed_symlink=no
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 int
7638 main ()
7639 {
7640 struct stat sbuf;
7641 /* Linux will dereference the symlink and fail.
7642 That is better in the sense that it means we will not
7643 have to compile and use the lstat wrapper. */
7644 return lstat ("conftest.sym/", &sbuf) == 0;
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7656 $as_echo "$ac_try_echo") >&5
7657 (eval "$ac_link") 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7661 { (case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666 $as_echo "$ac_try_echo") >&5
7667 (eval "$ac_try") 2>&5
7668 ac_status=$?
7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7672 else
7673 $as_echo "$as_me: program exited with status $ac_status" >&5
7674 $as_echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ( exit $ac_status )
7678 ac_cv_func_lstat_dereferences_slashed_symlink=no
7679 fi
7680 rm -rf conftest.dSYM
7681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7682 fi
7683
7684
7685 else
7686 # If the `ln -s' command failed, then we probably don't even
7687 # have an lstat function.
7688 ac_cv_func_lstat_dereferences_slashed_symlink=no
7689 fi
7690 rm -f conftest.sym conftest.file
7691
7692 fi
7693 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7694 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7695
7696 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7697
7698 cat >>confdefs.h <<_ACEOF
7699 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7700 _ACEOF
7701
7702
7703 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7704 case " $LIBOBJS " in
7705 *" lstat.$ac_objext "* ) ;;
7706 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7707 ;;
7708 esac
7709
7710 fi
7711
7712 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7713 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7714 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test "$cross_compiling" = yes; then
7718 ac_cv_func_lstat_empty_string_bug=yes
7719 else
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 int
7728 main ()
7729 {
7730 struct stat sbuf;
7731 return lstat ("", &sbuf) == 0;
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 rm -f conftest$ac_exeext
7737 if { (ac_try="$ac_link"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7743 $as_echo "$ac_try_echo") >&5
7744 (eval "$ac_link") 2>&5
7745 ac_status=$?
7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753 $as_echo "$ac_try_echo") >&5
7754 (eval "$ac_try") 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_func_lstat_empty_string_bug=no
7759 else
7760 $as_echo "$as_me: program exited with status $ac_status" >&5
7761 $as_echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 ( exit $ac_status )
7765 ac_cv_func_lstat_empty_string_bug=yes
7766 fi
7767 rm -rf conftest.dSYM
7768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7769 fi
7770
7771
7772 fi
7773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7774 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7775 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7776 case " $LIBOBJS " in
7777 *" lstat.$ac_objext "* ) ;;
7778 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7779 ;;
7780 esac
7781
7782
7783 cat >>confdefs.h <<_ACEOF
7784 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7785 _ACEOF
7786
7787 fi
7788
7789
7790 for ac_header in stdlib.h
7791 do
7792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7795 $as_echo_n "checking for $ac_header... " >&6; }
7796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7797 $as_echo_n "(cached) " >&6
7798 fi
7799 ac_res=`eval 'as_val=${'$as_ac_Header'}
7800 $as_echo "$as_val"'`
7801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7802 $as_echo "$ac_res" >&6; }
7803 else
7804 # Is the header compilable?
7805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7806 $as_echo_n "checking $ac_header usability... " >&6; }
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h. */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 $ac_includes_default
7814 #include <$ac_header>
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_header_compiler=yes
7835 else
7836 $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ac_header_compiler=no
7840 fi
7841
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844 $as_echo "$ac_header_compiler" >&6; }
7845
7846 # Is the header present?
7847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7848 $as_echo_n "checking $ac_header presence... " >&6; }
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 #include <$ac_header>
7856 _ACEOF
7857 if { (ac_try="$ac_cpp conftest.$ac_ext"
7858 case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861 esac
7862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7863 $as_echo "$ac_try_echo") >&5
7864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } >/dev/null && {
7871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 }; then
7874 ac_header_preproc=yes
7875 else
7876 $as_echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ac_header_preproc=no
7880 fi
7881
7882 rm -f conftest.err conftest.$ac_ext
7883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 $as_echo "$ac_header_preproc" >&6; }
7885
7886 # So? What about this header?
7887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7888 yes:no: )
7889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7893 ac_header_preproc=yes
7894 ;;
7895 no:yes:* )
7896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7908
7909 ;;
7910 esac
7911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 $as_echo_n "checking for $ac_header... " >&6; }
7913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7914 $as_echo_n "(cached) " >&6
7915 else
7916 eval "$as_ac_Header=\$ac_header_preproc"
7917 fi
7918 ac_res=`eval 'as_val=${'$as_ac_Header'}
7919 $as_echo "$as_val"'`
7920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7921 $as_echo "$ac_res" >&6; }
7922
7923 fi
7924 as_val=`eval 'as_val=${'$as_ac_Header'}
7925 $as_echo "$as_val"'`
7926 if test "x$as_val" = x""yes; then
7927 cat >>confdefs.h <<_ACEOF
7928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7929 _ACEOF
7930
7931 fi
7932
7933 done
7934
7935 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7936 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7937 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test "$cross_compiling" = yes; then
7941 ac_cv_func_malloc_0_nonnull=no
7942 else
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7950 # include <stdlib.h>
7951 #else
7952 char *malloc ();
7953 #endif
7954
7955 int
7956 main ()
7957 {
7958 return ! malloc (0);
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7965 case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7968 esac
7969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970 $as_echo "$ac_try_echo") >&5
7971 (eval "$ac_link") 2>&5
7972 ac_status=$?
7973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_try") 2>&5
7982 ac_status=$?
7983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_func_malloc_0_nonnull=yes
7986 else
7987 $as_echo "$as_me: program exited with status $ac_status" >&5
7988 $as_echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 ( exit $ac_status )
7992 ac_cv_func_malloc_0_nonnull=no
7993 fi
7994 rm -rf conftest.dSYM
7995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7996 fi
7997
7998
7999 fi
8000 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8001 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8002 if test $ac_cv_func_malloc_0_nonnull = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_MALLOC 1
8006 _ACEOF
8007
8008 else
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_MALLOC 0
8011 _ACEOF
8012
8013 case " $LIBOBJS " in
8014 *" malloc.$ac_objext "* ) ;;
8015 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8016 ;;
8017 esac
8018
8019
8020 cat >>confdefs.h <<\_ACEOF
8021 #define malloc rpl_malloc
8022 _ACEOF
8023
8024 fi
8025
8026
8027
8028 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8029 $as_echo_n "checking for working memcmp... " >&6; }
8030 if test "${ac_cv_func_memcmp_working+set}" = set; then
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test "$cross_compiling" = yes; then
8034 ac_cv_func_memcmp_working=no
8035 else
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 $ac_includes_default
8043 int
8044 main ()
8045 {
8046
8047 /* Some versions of memcmp are not 8-bit clean. */
8048 char c0 = '\100', c1 = '\200', c2 = '\201';
8049 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8050 return 1;
8051
8052 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8053 or more and with at least one buffer not starting on a 4-byte boundary.
8054 William Lewis provided this test program. */
8055 {
8056 char foo[21];
8057 char bar[21];
8058 int i;
8059 for (i = 0; i < 4; i++)
8060 {
8061 char *a = foo + i;
8062 char *b = bar + i;
8063 strcpy (a, "--------01111111");
8064 strcpy (b, "--------10000000");
8065 if (memcmp (a, b, 16) >= 0)
8066 return 1;
8067 }
8068 return 0;
8069 }
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest$ac_exeext
8076 if { (ac_try="$ac_link"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083 (eval "$ac_link") 2>&5
8084 ac_status=$?
8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090 esac
8091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093 (eval "$ac_try") 2>&5
8094 ac_status=$?
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_func_memcmp_working=yes
8098 else
8099 $as_echo "$as_me: program exited with status $ac_status" >&5
8100 $as_echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ( exit $ac_status )
8104 ac_cv_func_memcmp_working=no
8105 fi
8106 rm -rf conftest.dSYM
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8108 fi
8109
8110
8111 fi
8112 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8113 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8114 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8115 *" memcmp.$ac_objext "* ) ;;
8116 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8117 ;;
8118 esac
8119
8120
8121
8122
8123 for ac_header in stdlib.h unistd.h
8124 do
8125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8128 $as_echo_n "checking for $ac_header... " >&6; }
8129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8130 $as_echo_n "(cached) " >&6
8131 fi
8132 ac_res=`eval 'as_val=${'$as_ac_Header'}
8133 $as_echo "$as_val"'`
8134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8135 $as_echo "$ac_res" >&6; }
8136 else
8137 # Is the header compilable?
8138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8139 $as_echo_n "checking $ac_header usability... " >&6; }
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 #include <$ac_header>
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 ac_header_compiler=yes
8168 else
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 ac_header_compiler=no
8173 fi
8174
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177 $as_echo "$ac_header_compiler" >&6; }
8178
8179 # Is the header present?
8180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181 $as_echo_n "checking $ac_header presence... " >&6; }
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <$ac_header>
8189 _ACEOF
8190 if { (ac_try="$ac_cpp conftest.$ac_ext"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } >/dev/null && {
8204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 }; then
8207 ac_header_preproc=yes
8208 else
8209 $as_echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_header_preproc=no
8213 fi
8214
8215 rm -f conftest.err conftest.$ac_ext
8216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217 $as_echo "$ac_header_preproc" >&6; }
8218
8219 # So? What about this header?
8220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 yes:no: )
8222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8226 ac_header_preproc=yes
8227 ;;
8228 no:yes:* )
8229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8241
8242 ;;
8243 esac
8244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8245 $as_echo_n "checking for $ac_header... " >&6; }
8246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8247 $as_echo_n "(cached) " >&6
8248 else
8249 eval "$as_ac_Header=\$ac_header_preproc"
8250 fi
8251 ac_res=`eval 'as_val=${'$as_ac_Header'}
8252 $as_echo "$as_val"'`
8253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8254 $as_echo "$ac_res" >&6; }
8255
8256 fi
8257 as_val=`eval 'as_val=${'$as_ac_Header'}
8258 $as_echo "$as_val"'`
8259 if test "x$as_val" = x""yes; then
8260 cat >>confdefs.h <<_ACEOF
8261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 _ACEOF
8263
8264 fi
8265
8266 done
8267
8268
8269 for ac_func in getpagesize
8270 do
8271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8272 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8273 $as_echo_n "checking for $ac_func... " >&6; }
8274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8275 $as_echo_n "(cached) " >&6
8276 else
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8285 #define $ac_func innocuous_$ac_func
8286
8287 /* System header to define __stub macros and hopefully few prototypes,
8288 which can conflict with char $ac_func (); below.
8289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8290 <limits.h> exists even on freestanding compilers. */
8291
8292 #ifdef __STDC__
8293 # include <limits.h>
8294 #else
8295 # include <assert.h>
8296 #endif
8297
8298 #undef $ac_func
8299
8300 /* Override any GCC internal prototype to avoid an error.
8301 Use char because int might match the return type of a GCC
8302 builtin and then its argument prototype would still apply. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 char $ac_func ();
8307 /* The GNU C library defines this for functions which it implements
8308 to always fail with ENOSYS. Some functions are actually named
8309 something starting with __ and the normal name is an alias. */
8310 #if defined __stub_$ac_func || defined __stub___$ac_func
8311 choke me
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 return $ac_func ();
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (ac_try="$ac_link"
8324 case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330 (eval "$ac_link") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest$ac_exeext && {
8340 test "$cross_compiling" = yes ||
8341 $as_test_x conftest$ac_exeext
8342 }; then
8343 eval "$as_ac_var=yes"
8344 else
8345 $as_echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 eval "$as_ac_var=no"
8349 fi
8350
8351 rm -rf conftest.dSYM
8352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8353 conftest$ac_exeext conftest.$ac_ext
8354 fi
8355 ac_res=`eval 'as_val=${'$as_ac_var'}
8356 $as_echo "$as_val"'`
8357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8358 $as_echo "$ac_res" >&6; }
8359 as_val=`eval 'as_val=${'$as_ac_var'}
8360 $as_echo "$as_val"'`
8361 if test "x$as_val" = x""yes; then
8362 cat >>confdefs.h <<_ACEOF
8363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8364 _ACEOF
8365
8366 fi
8367 done
8368
8369 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8370 $as_echo_n "checking for working mmap... " >&6; }
8371 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8372 $as_echo_n "(cached) " >&6
8373 else
8374 if test "$cross_compiling" = yes; then
8375 ac_cv_func_mmap_fixed_mapped=no
8376 else
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 /* malloc might have been renamed as rpl_malloc. */
8385 #undef malloc
8386
8387 /* Thanks to Mike Haertel and Jim Avera for this test.
8388 Here is a matrix of mmap possibilities:
8389 mmap private not fixed
8390 mmap private fixed at somewhere currently unmapped
8391 mmap private fixed at somewhere already mapped
8392 mmap shared not fixed
8393 mmap shared fixed at somewhere currently unmapped
8394 mmap shared fixed at somewhere already mapped
8395 For private mappings, we should verify that changes cannot be read()
8396 back from the file, nor mmap's back from the file at a different
8397 address. (There have been systems where private was not correctly
8398 implemented like the infamous i386 svr4.0, and systems where the
8399 VM page cache was not coherent with the file system buffer cache
8400 like early versions of FreeBSD and possibly contemporary NetBSD.)
8401 For shared mappings, we should conversely verify that changes get
8402 propagated back to all the places they're supposed to be.
8403
8404 Grep wants private fixed already mapped.
8405 The main things grep needs to know about mmap are:
8406 * does it exist and is it safe to write into the mmap'd area
8407 * how to use it (BSD variants) */
8408
8409 #include <fcntl.h>
8410 #include <sys/mman.h>
8411
8412 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8413 char *malloc ();
8414 #endif
8415
8416 /* This mess was copied from the GNU getpagesize.h. */
8417 #ifndef HAVE_GETPAGESIZE
8418 /* Assume that all systems that can run configure have sys/param.h. */
8419 # ifndef HAVE_SYS_PARAM_H
8420 # define HAVE_SYS_PARAM_H 1
8421 # endif
8422
8423 # ifdef _SC_PAGESIZE
8424 # define getpagesize() sysconf(_SC_PAGESIZE)
8425 # else /* no _SC_PAGESIZE */
8426 # ifdef HAVE_SYS_PARAM_H
8427 # include <sys/param.h>
8428 # ifdef EXEC_PAGESIZE
8429 # define getpagesize() EXEC_PAGESIZE
8430 # else /* no EXEC_PAGESIZE */
8431 # ifdef NBPG
8432 # define getpagesize() NBPG * CLSIZE
8433 # ifndef CLSIZE
8434 # define CLSIZE 1
8435 # endif /* no CLSIZE */
8436 # else /* no NBPG */
8437 # ifdef NBPC
8438 # define getpagesize() NBPC
8439 # else /* no NBPC */
8440 # ifdef PAGESIZE
8441 # define getpagesize() PAGESIZE
8442 # endif /* PAGESIZE */
8443 # endif /* no NBPC */
8444 # endif /* no NBPG */
8445 # endif /* no EXEC_PAGESIZE */
8446 # else /* no HAVE_SYS_PARAM_H */
8447 # define getpagesize() 8192 /* punt totally */
8448 # endif /* no HAVE_SYS_PARAM_H */
8449 # endif /* no _SC_PAGESIZE */
8450
8451 #endif /* no HAVE_GETPAGESIZE */
8452
8453 int
8454 main ()
8455 {
8456 char *data, *data2, *data3;
8457 int i, pagesize;
8458 int fd;
8459
8460 pagesize = getpagesize ();
8461
8462 /* First, make a file with some known garbage in it. */
8463 data = (char *) malloc (pagesize);
8464 if (!data)
8465 return 1;
8466 for (i = 0; i < pagesize; ++i)
8467 *(data + i) = rand ();
8468 umask (0);
8469 fd = creat ("conftest.mmap", 0600);
8470 if (fd < 0)
8471 return 1;
8472 if (write (fd, data, pagesize) != pagesize)
8473 return 1;
8474 close (fd);
8475
8476 /* Next, try to mmap the file at a fixed address which already has
8477 something else allocated at it. If we can, also make sure that
8478 we see the same garbage. */
8479 fd = open ("conftest.mmap", O_RDWR);
8480 if (fd < 0)
8481 return 1;
8482 data2 = (char *) malloc (2 * pagesize);
8483 if (!data2)
8484 return 1;
8485 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8486 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8487 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8488 return 1;
8489 for (i = 0; i < pagesize; ++i)
8490 if (*(data + i) != *(data2 + i))
8491 return 1;
8492
8493 /* Finally, make sure that changes to the mapped area do not
8494 percolate back to the file as seen by read(). (This is a bug on
8495 some variants of i386 svr4.0.) */
8496 for (i = 0; i < pagesize; ++i)
8497 *(data2 + i) = *(data2 + i) + 1;
8498 data3 = (char *) malloc (pagesize);
8499 if (!data3)
8500 return 1;
8501 if (read (fd, data3, pagesize) != pagesize)
8502 return 1;
8503 for (i = 0; i < pagesize; ++i)
8504 if (*(data + i) != *(data3 + i))
8505 return 1;
8506 close (fd);
8507 return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517 $as_echo "$ac_try_echo") >&5
8518 (eval "$ac_link") 2>&5
8519 ac_status=$?
8520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8522 { (case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527 $as_echo "$ac_try_echo") >&5
8528 (eval "$ac_try") 2>&5
8529 ac_status=$?
8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_func_mmap_fixed_mapped=yes
8533 else
8534 $as_echo "$as_me: program exited with status $ac_status" >&5
8535 $as_echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538 ( exit $ac_status )
8539 ac_cv_func_mmap_fixed_mapped=no
8540 fi
8541 rm -rf conftest.dSYM
8542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8543 fi
8544
8545
8546 fi
8547 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8548 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8549 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8550
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_MMAP 1
8553 _ACEOF
8554
8555 fi
8556 rm -f conftest.mmap
8557
8558 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8559 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8560 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8561 $as_echo_n "(cached) " >&6
8562 else
8563 if test "$cross_compiling" = yes; then
8564 ac_cv_func_stat_empty_string_bug=yes
8565 else
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 int
8574 main ()
8575 {
8576 struct stat sbuf;
8577 return stat ("", &sbuf) == 0;
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest$ac_exeext
8583 if { (ac_try="$ac_link"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590 (eval "$ac_link") 2>&5
8591 ac_status=$?
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597 esac
8598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599 $as_echo "$ac_try_echo") >&5
8600 (eval "$ac_try") 2>&5
8601 ac_status=$?
8602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_cv_func_stat_empty_string_bug=no
8605 else
8606 $as_echo "$as_me: program exited with status $ac_status" >&5
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ( exit $ac_status )
8611 ac_cv_func_stat_empty_string_bug=yes
8612 fi
8613 rm -rf conftest.dSYM
8614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8615 fi
8616
8617
8618 fi
8619 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8620 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8621 if test $ac_cv_func_stat_empty_string_bug = yes; then
8622 case " $LIBOBJS " in
8623 *" stat.$ac_objext "* ) ;;
8624 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8625 ;;
8626 esac
8627
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_STAT_EMPTY_STRING_BUG 1
8631 _ACEOF
8632
8633 fi
8634
8635 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8636 $as_echo_n "checking for working strtod... " >&6; }
8637 if test "${ac_cv_func_strtod+set}" = set; then
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test "$cross_compiling" = yes; then
8641 ac_cv_func_strtod=no
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649
8650 $ac_includes_default
8651 #ifndef strtod
8652 double strtod ();
8653 #endif
8654 int
8655 main()
8656 {
8657 {
8658 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8659 char *string = " +69";
8660 char *term;
8661 double value;
8662 value = strtod (string, &term);
8663 if (value != 69 || term != (string + 4))
8664 return 1;
8665 }
8666
8667 {
8668 /* Under Solaris 2.4, strtod returns the wrong value for the
8669 terminating character under some conditions. */
8670 char *string = "NaN";
8671 char *term;
8672 strtod (string, &term);
8673 if (term != string && *(term - 1) == 0)
8674 return 1;
8675 }
8676 return 0;
8677 }
8678
8679 _ACEOF
8680 rm -f conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_link") 2>&5
8689 ac_status=$?
8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697 $as_echo "$ac_try_echo") >&5
8698 (eval "$ac_try") 2>&5
8699 ac_status=$?
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_func_strtod=yes
8703 else
8704 $as_echo "$as_me: program exited with status $ac_status" >&5
8705 $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708 ( exit $ac_status )
8709 ac_cv_func_strtod=no
8710 fi
8711 rm -rf conftest.dSYM
8712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8713 fi
8714
8715
8716 fi
8717 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8718 $as_echo "$ac_cv_func_strtod" >&6; }
8719 if test $ac_cv_func_strtod = no; then
8720 case " $LIBOBJS " in
8721 *" strtod.$ac_objext "* ) ;;
8722 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8723 ;;
8724 esac
8725
8726 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8727 $as_echo_n "checking for pow... " >&6; }
8728 if test "${ac_cv_func_pow+set}" = set; then
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8739 #define pow innocuous_pow
8740
8741 /* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char pow (); below.
8743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8744 <limits.h> exists even on freestanding compilers. */
8745
8746 #ifdef __STDC__
8747 # include <limits.h>
8748 #else
8749 # include <assert.h>
8750 #endif
8751
8752 #undef pow
8753
8754 /* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8757 #ifdef __cplusplus
8758 extern "C"
8759 #endif
8760 char pow ();
8761 /* The GNU C library defines this for functions which it implements
8762 to always fail with ENOSYS. Some functions are actually named
8763 something starting with __ and the normal name is an alias. */
8764 #if defined __stub_pow || defined __stub___pow
8765 choke me
8766 #endif
8767
8768 int
8769 main ()
8770 {
8771 return pow ();
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (ac_try="$ac_link"
8778 case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8781 esac
8782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8783 $as_echo "$ac_try_echo") >&5
8784 (eval "$ac_link") 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } && {
8791 test -z "$ac_c_werror_flag" ||
8792 test ! -s conftest.err
8793 } && test -s conftest$ac_exeext && {
8794 test "$cross_compiling" = yes ||
8795 $as_test_x conftest$ac_exeext
8796 }; then
8797 ac_cv_func_pow=yes
8798 else
8799 $as_echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8801
8802 ac_cv_func_pow=no
8803 fi
8804
8805 rm -rf conftest.dSYM
8806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807 conftest$ac_exeext conftest.$ac_ext
8808 fi
8809 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8810 $as_echo "$ac_cv_func_pow" >&6; }
8811
8812 if test $ac_cv_func_pow = no; then
8813 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8814 $as_echo_n "checking for pow in -lm... " >&6; }
8815 if test "${ac_cv_lib_m_pow+set}" = set; then
8816 $as_echo_n "(cached) " >&6
8817 else
8818 ac_check_lib_save_LIBS=$LIBS
8819 LIBS="-lm $LIBS"
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char pow ();
8834 int
8835 main ()
8836 {
8837 return pow ();
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_link") 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest$ac_exeext && {
8860 test "$cross_compiling" = yes ||
8861 $as_test_x conftest$ac_exeext
8862 }; then
8863 ac_cv_lib_m_pow=yes
8864 else
8865 $as_echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_lib_m_pow=no
8869 fi
8870
8871 rm -rf conftest.dSYM
8872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8875 fi
8876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8877 $as_echo "$ac_cv_lib_m_pow" >&6; }
8878 if test "x$ac_cv_lib_m_pow" = x""yes; then
8879 POW_LIB=-lm
8880 else
8881 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8882 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8883 fi
8884
8885 fi
8886
8887 fi
8888
8889
8890 for ac_func in vprintf
8891 do
8892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8893 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8894 $as_echo_n "checking for $ac_func... " >&6; }
8895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8896 $as_echo_n "(cached) " >&6
8897 else
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8906 #define $ac_func innocuous_$ac_func
8907
8908 /* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char $ac_func (); below.
8910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8911 <limits.h> exists even on freestanding compilers. */
8912
8913 #ifdef __STDC__
8914 # include <limits.h>
8915 #else
8916 # include <assert.h>
8917 #endif
8918
8919 #undef $ac_func
8920
8921 /* Override any GCC internal prototype to avoid an error.
8922 Use char because int might match the return type of a GCC
8923 builtin and then its argument prototype would still apply. */
8924 #ifdef __cplusplus
8925 extern "C"
8926 #endif
8927 char $ac_func ();
8928 /* The GNU C library defines this for functions which it implements
8929 to always fail with ENOSYS. Some functions are actually named
8930 something starting with __ and the normal name is an alias. */
8931 #if defined __stub_$ac_func || defined __stub___$ac_func
8932 choke me
8933 #endif
8934
8935 int
8936 main ()
8937 {
8938 return $ac_func ();
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (ac_try="$ac_link"
8945 case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8948 esac
8949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8950 $as_echo "$ac_try_echo") >&5
8951 (eval "$ac_link") 2>conftest.er1
8952 ac_status=$?
8953 grep -v '^ *+' conftest.er1 >conftest.err
8954 rm -f conftest.er1
8955 cat conftest.err >&5
8956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && {
8958 test -z "$ac_c_werror_flag" ||
8959 test ! -s conftest.err
8960 } && test -s conftest$ac_exeext && {
8961 test "$cross_compiling" = yes ||
8962 $as_test_x conftest$ac_exeext
8963 }; then
8964 eval "$as_ac_var=yes"
8965 else
8966 $as_echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 eval "$as_ac_var=no"
8970 fi
8971
8972 rm -rf conftest.dSYM
8973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi
8976 ac_res=`eval 'as_val=${'$as_ac_var'}
8977 $as_echo "$as_val"'`
8978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8979 $as_echo "$ac_res" >&6; }
8980 as_val=`eval 'as_val=${'$as_ac_var'}
8981 $as_echo "$as_val"'`
8982 if test "x$as_val" = x""yes; then
8983 cat >>confdefs.h <<_ACEOF
8984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8985 _ACEOF
8986
8987 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8988 $as_echo_n "checking for _doprnt... " >&6; }
8989 if test "${ac_cv_func__doprnt+set}" = set; then
8990 $as_echo_n "(cached) " >&6
8991 else
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9000 #define _doprnt innocuous__doprnt
9001
9002 /* System header to define __stub macros and hopefully few prototypes,
9003 which can conflict with char _doprnt (); below.
9004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9005 <limits.h> exists even on freestanding compilers. */
9006
9007 #ifdef __STDC__
9008 # include <limits.h>
9009 #else
9010 # include <assert.h>
9011 #endif
9012
9013 #undef _doprnt
9014
9015 /* Override any GCC internal prototype to avoid an error.
9016 Use char because int might match the return type of a GCC
9017 builtin and then its argument prototype would still apply. */
9018 #ifdef __cplusplus
9019 extern "C"
9020 #endif
9021 char _doprnt ();
9022 /* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025 #if defined __stub__doprnt || defined __stub____doprnt
9026 choke me
9027 #endif
9028
9029 int
9030 main ()
9031 {
9032 return _doprnt ();
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (ac_try="$ac_link"
9039 case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042 esac
9043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9044 $as_echo "$ac_try_echo") >&5
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext && {
9055 test "$cross_compiling" = yes ||
9056 $as_test_x conftest$ac_exeext
9057 }; then
9058 ac_cv_func__doprnt=yes
9059 else
9060 $as_echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_cv_func__doprnt=no
9064 fi
9065
9066 rm -rf conftest.dSYM
9067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9068 conftest$ac_exeext conftest.$ac_ext
9069 fi
9070 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9071 $as_echo "$ac_cv_func__doprnt" >&6; }
9072 if test "x$ac_cv_func__doprnt" = x""yes; then
9073
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_DOPRNT 1
9076 _ACEOF
9077
9078 fi
9079
9080 fi
9081 done
9082
9083
9084
9085 ################################################################################
9086 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9087 $as_echo_n "checking whether to use static linking... " >&6; }
9088 # Check whether --enable-static_link was given.
9089 if test "${enable_static_link+set}" = set; then
9090 enableval=$enable_static_link; STATIC_LINK=$enableval
9091 else
9092 STATIC_LINK=no
9093 fi
9094
9095 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9096 $as_echo "$STATIC_LINK" >&6; }
9097
9098 ################################################################################
9099
9100
9101 ################################################################################
9102 { $as_echo "$as_me:$LINENO: checking file owner" >&5
9103 $as_echo_n "checking file owner... " >&6; }
9104
9105 # Check whether --with-user was given.
9106 if test "${with_user+set}" = set; then
9107 withval=$with_user; OWNER="$withval"
9108 fi
9109
9110 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9111 $as_echo "$OWNER" >&6; }
9112
9113 if test x$OWNER != x; then
9114 INSTALL="$INSTALL -o $OWNER"
9115 fi
9116
9117 ################################################################################
9118 { $as_echo "$as_me:$LINENO: checking group owner" >&5
9119 $as_echo_n "checking group owner... " >&6; }
9120
9121 # Check whether --with-group was given.
9122 if test "${with_group+set}" = set; then
9123 withval=$with_group; GROUP="$withval"
9124 fi
9125
9126 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9127 $as_echo "$GROUP" >&6; }
9128
9129 if test x$GROUP != x; then
9130 INSTALL="$INSTALL -g $GROUP"
9131 fi
9132
9133 ################################################################################
9134 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9135 $as_echo_n "checking device node uid... " >&6; }
9136
9137
9138 # Check whether --with-device-uid was given.
9139 if test "${with_device_uid+set}" = set; then
9140 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9141 else
9142 DM_DEVICE_UID="0"
9143 fi
9144
9145 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9146 $as_echo "$DM_DEVICE_UID" >&6; }
9147
9148 ################################################################################
9149 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9150 $as_echo_n "checking device node gid... " >&6; }
9151
9152
9153 # Check whether --with-device-gid was given.
9154 if test "${with_device_gid+set}" = set; then
9155 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9156 else
9157 DM_DEVICE_GID="0"
9158 fi
9159
9160 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9161 $as_echo "$DM_DEVICE_GID" >&6; }
9162
9163 ################################################################################
9164 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9165 $as_echo_n "checking device node mode... " >&6; }
9166
9167
9168 # Check whether --with-device-mode was given.
9169 if test "${with_device_mode+set}" = set; then
9170 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9171 else
9172 DM_DEVICE_MODE="0600"
9173 fi
9174
9175 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9176 $as_echo "$DM_DEVICE_MODE" >&6; }
9177
9178 ################################################################################
9179 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9180 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9181 # Check whether --enable-lvm1_fallback was given.
9182 if test "${enable_lvm1_fallback+set}" = set; then
9183 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9184 else
9185 LVM1_FALLBACK=no
9186 fi
9187
9188 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9189 $as_echo "$LVM1_FALLBACK" >&6; }
9190
9191 if test x$LVM1_FALLBACK = xyes; then
9192
9193 cat >>confdefs.h <<\_ACEOF
9194 #define LVM1_FALLBACK 1
9195 _ACEOF
9196
9197 fi
9198
9199 ################################################################################
9200 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9201 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9202
9203 # Check whether --with-lvm1 was given.
9204 if test "${with_lvm1+set}" = set; then
9205 withval=$with_lvm1; LVM1="$withval"
9206 else
9207 LVM1="internal"
9208 fi
9209
9210 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9211 $as_echo "$LVM1" >&6; }
9212
9213 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9214 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9215 " >&5
9216 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9217 " >&2;}
9218 { (exit 1); exit 1; }; }
9219 fi;
9220
9221 if test x$LVM1 = xinternal; then
9222
9223 cat >>confdefs.h <<\_ACEOF
9224 #define LVM1_INTERNAL 1
9225 _ACEOF
9226
9227 fi
9228
9229 ################################################################################
9230 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9231 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9232
9233 # Check whether --with-pool was given.
9234 if test "${with_pool+set}" = set; then
9235 withval=$with_pool; POOL="$withval"
9236 else
9237 POOL="internal"
9238 fi
9239
9240 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9241 $as_echo "$POOL" >&6; }
9242
9243 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9244 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9245 " >&5
9246 $as_echo "$as_me: error: --with-pool parameter invalid
9247 " >&2;}
9248 { (exit 1); exit 1; }; }
9249 fi;
9250
9251 if test x$POOL = xinternal; then
9252
9253 cat >>confdefs.h <<\_ACEOF
9254 #define POOL_INTERNAL 1
9255 _ACEOF
9256
9257 fi
9258
9259 ################################################################################
9260 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9261 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9262
9263 # Check whether --with-cluster was given.
9264 if test "${with_cluster+set}" = set; then
9265 withval=$with_cluster; CLUSTER="$withval"
9266 fi
9267
9268 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9269 $as_echo "$CLUSTER" >&6; }
9270
9271 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9272 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9273 " >&5
9274 $as_echo "$as_me: error: --with-cluster parameter invalid
9275 " >&2;}
9276 { (exit 1); exit 1; }; }
9277 fi;
9278
9279 if test x$CLUSTER = xinternal; then
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define CLUSTER_LOCKING_INTERNAL 1
9283 _ACEOF
9284
9285 fi
9286
9287 ################################################################################
9288 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9289 $as_echo_n "checking whether to include snapshots... " >&6; }
9290
9291 # Check whether --with-snapshots was given.
9292 if test "${with_snapshots+set}" = set; then
9293 withval=$with_snapshots; SNAPSHOTS="$withval"
9294 else
9295 SNAPSHOTS="internal"
9296 fi
9297
9298 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9299 $as_echo "$SNAPSHOTS" >&6; }
9300
9301 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9302 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9303 " >&5
9304 $as_echo "$as_me: error: --with-snapshots parameter invalid
9305 " >&2;}
9306 { (exit 1); exit 1; }; }
9307 fi;
9308
9309 if test x$SNAPSHOTS = xinternal; then
9310
9311 cat >>confdefs.h <<\_ACEOF
9312 #define SNAPSHOT_INTERNAL 1
9313 _ACEOF
9314
9315 fi
9316
9317 ################################################################################
9318 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9319 $as_echo_n "checking whether to include mirrors... " >&6; }
9320
9321 # Check whether --with-mirrors was given.
9322 if test "${with_mirrors+set}" = set; then
9323 withval=$with_mirrors; MIRRORS="$withval"
9324 else
9325 MIRRORS="internal"
9326 fi
9327
9328 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9329 $as_echo "$MIRRORS" >&6; }
9330
9331 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9332 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9333 " >&5
9334 $as_echo "$as_me: error: --with-mirrors parameter invalid
9335 " >&2;}
9336 { (exit 1); exit 1; }; }
9337 fi;
9338
9339 if test x$MIRRORS = xinternal; then
9340
9341 cat >>confdefs.h <<\_ACEOF
9342 #define MIRRORED_INTERNAL 1
9343 _ACEOF
9344
9345 fi
9346
9347 ################################################################################
9348 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9349 $as_echo_n "checking whether to enable readline... " >&6; }
9350 # Check whether --enable-readline was given.
9351 if test "${enable_readline+set}" = set; then
9352 enableval=$enable_readline; READLINE=$enableval
9353 else
9354 READLINE=maybe
9355 fi
9356
9357 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9358 $as_echo "$READLINE" >&6; }
9359
9360 ################################################################################
9361 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9362 $as_echo_n "checking whether to enable realtime support... " >&6; }
9363 # Check whether --enable-realtime was given.
9364 if test "${enable_realtime+set}" = set; then
9365 enableval=$enable_realtime; REALTIME=$enableval
9366 fi
9367
9368 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9369 $as_echo "$REALTIME" >&6; }
9370
9371 ################################################################################
9372 pkg_config_init() {
9373
9374
9375 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9376 if test -n "$ac_tool_prefix"; then
9377 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9378 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9382 $as_echo_n "(cached) " >&6
9383 else
9384 case $PKG_CONFIG in
9385 [\\/]* | ?:[\\/]*)
9386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9387 ;;
9388 *)
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400 done
9401 done
9402 IFS=$as_save_IFS
9403
9404 ;;
9405 esac
9406 fi
9407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9408 if test -n "$PKG_CONFIG"; then
9409 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9410 $as_echo "$PKG_CONFIG" >&6; }
9411 else
9412 { $as_echo "$as_me:$LINENO: result: no" >&5
9413 $as_echo "no" >&6; }
9414 fi
9415
9416
9417 fi
9418 if test -z "$ac_cv_path_PKG_CONFIG"; then
9419 ac_pt_PKG_CONFIG=$PKG_CONFIG
9420 # Extract the first word of "pkg-config", so it can be a program name with args.
9421 set dummy pkg-config; ac_word=$2
9422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9425 $as_echo_n "(cached) " >&6
9426 else
9427 case $ac_pt_PKG_CONFIG in
9428 [\\/]* | ?:[\\/]*)
9429 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9430 ;;
9431 *)
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 ;;
9448 esac
9449 fi
9450 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9451 if test -n "$ac_pt_PKG_CONFIG"; then
9452 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9453 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9454 else
9455 { $as_echo "$as_me:$LINENO: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458
9459 if test "x$ac_pt_PKG_CONFIG" = x; then
9460 PKG_CONFIG=""
9461 else
9462 case $cross_compiling:$ac_tool_warned in
9463 yes:)
9464 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466 ac_tool_warned=yes ;;
9467 esac
9468 PKG_CONFIG=$ac_pt_PKG_CONFIG
9469 fi
9470 else
9471 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9472 fi
9473
9474 fi
9475 if test -n "$PKG_CONFIG"; then
9476 _pkg_min_version=0.9.0
9477 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9478 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9479 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9480 { $as_echo "$as_me:$LINENO: result: yes" >&5
9481 $as_echo "yes" >&6; }
9482 else
9483 { $as_echo "$as_me:$LINENO: result: no" >&5
9484 $as_echo "no" >&6; }
9485 PKG_CONFIG=""
9486 fi
9487
9488 fi
9489
9490 pkg_failed=no
9491 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9492 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9493
9494 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9495 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9496 elif test -n "$PKG_CONFIG"; then
9497 if test -n "$PKG_CONFIG" && \
9498 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9499 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; then
9503 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9504 else
9505 pkg_failed=yes
9506 fi
9507 else
9508 pkg_failed=untried
9509 fi
9510 if test -n "$PKGCONFIGINIT_LIBS"; then
9511 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9512 elif test -n "$PKG_CONFIG"; then
9513 if test -n "$PKG_CONFIG" && \
9514 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9515 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9516 ac_status=$?
9517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; then
9519 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9520 else
9521 pkg_failed=yes
9522 fi
9523 else
9524 pkg_failed=untried
9525 fi
9526
9527
9528
9529 if test $pkg_failed = yes; then
9530
9531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9532 _pkg_short_errors_supported=yes
9533 else
9534 _pkg_short_errors_supported=no
9535 fi
9536 if test $_pkg_short_errors_supported = yes; then
9537 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9538 else
9539 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9540 fi
9541 # Put the nasty error message in config.log where it belongs
9542 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9543
9544 { $as_echo "$as_me:$LINENO: result: no" >&5
9545 $as_echo "no" >&6; }
9546 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9547 $as_echo "pkg-config initialized" >&6; }
9548 elif test $pkg_failed = untried; then
9549 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9550 $as_echo "pkg-config initialized" >&6; }
9551 else
9552 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9553 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9554 { $as_echo "$as_me:$LINENO: result: yes" >&5
9555 $as_echo "yes" >&6; }
9556 :
9557 fi
9558 PKGCONFIG_INIT=1
9559 }
9560
9561 ################################################################################
9562 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9563 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9564
9565 # Check whether --with-clvmd was given.
9566 if test "${with_clvmd+set}" = set; then
9567 withval=$with_clvmd; CLVMD="$withval"
9568 else
9569 CLVMD="none"
9570 fi
9571
9572 if test x$CLVMD = xyes; then
9573 CLVMD=all
9574 fi
9575 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9576 $as_echo "$CLVMD" >&6; }
9577
9578 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9579 CLUSTER=internal
9580 fi
9581
9582 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9583 pkg_config_init
9584 fi
9585
9586
9587 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9588 BUILDGULM=yes
9589 fi
9590 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9591 BUILDCOROSYNC=yes
9592 fi
9593 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9594 BUILDOPENAIS=yes
9595 fi
9596 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9597 BUILDCMAN=yes
9598 fi
9599
9600 if test x$BUILDGULM = xyes; then
9601 if test x$BUILDCOROSYNC = xyes || \
9602 test x$BUILDOPENAIS = xyes; then
9603 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9604 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9605 { (exit 1); exit 1; }; }
9606 fi
9607 fi
9608
9609 soft_bailout() {
9610 NOTFOUND=1
9611 }
9612
9613 hard_bailout() {
9614 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9615 $as_echo "$as_me: error: bailing out" >&2;}
9616 { (exit 1); exit 1; }; }
9617 }
9618
9619 if test x$CLVMD = xall; then
9620 bailout=soft_bailout
9621 BUILDGULM=yes
9622 BUILDCMAN=yes
9623 BUILDCOROSYNC=yes
9624 BUILDOPENAIS=yes
9625 else
9626 bailout=hard_bailout
9627 fi
9628
9629 check_lib_no_libs() {
9630 lib_no_libs_arg1=$1
9631 shift
9632 lib_no_libs_arg2=$1
9633 shift
9634 lib_no_libs_args=$@
9635
9636 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9637 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9638 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9639 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9640 $as_echo_n "(cached) " >&6
9641 else
9642 ac_check_lib_save_LIBS=$LIBS
9643 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char $lib_no_libs_arg2 ();
9658 int
9659 main ()
9660 {
9661 return $lib_no_libs_arg2 ();
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9673 $as_echo "$ac_try_echo") >&5
9674 (eval "$ac_link") 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest$ac_exeext && {
9684 test "$cross_compiling" = yes ||
9685 $as_test_x conftest$ac_exeext
9686 }; then
9687 eval "$as_ac_Lib=yes"
9688 else
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 eval "$as_ac_Lib=no"
9693 fi
9694
9695 rm -rf conftest.dSYM
9696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9699 fi
9700 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9701 $as_echo "$as_val"'`
9702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9703 $as_echo "$ac_res" >&6; }
9704 as_val=`eval 'as_val=${'$as_ac_Lib'}
9705 $as_echo "$as_val"'`
9706 if test "x$as_val" = x""yes; then
9707 cat >>confdefs.h <<_ACEOF
9708 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9709 _ACEOF
9710
9711 LIBS="-l$lib_no_libs_arg1 $LIBS"
9712
9713 else
9714 $bailout
9715 fi
9716
9717 LIBS=$ac_check_lib_save_LIBS
9718 }
9719
9720 if test x$BUILDGULM = xyes; then
9721
9722 pkg_failed=no
9723 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9724 $as_echo_n "checking for CCS... " >&6; }
9725
9726 if test -n "$CCS_CFLAGS"; then
9727 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9728 elif test -n "$PKG_CONFIG"; then
9729 if test -n "$PKG_CONFIG" && \
9730 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9731 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9732 ac_status=$?
9733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; then
9735 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9736 else
9737 pkg_failed=yes
9738 fi
9739 else
9740 pkg_failed=untried
9741 fi
9742 if test -n "$CCS_LIBS"; then
9743 pkg_cv_CCS_LIBS="$CCS_LIBS"
9744 elif test -n "$PKG_CONFIG"; then
9745 if test -n "$PKG_CONFIG" && \
9746 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9747 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9748 ac_status=$?
9749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; then
9751 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9752 else
9753 pkg_failed=yes
9754 fi
9755 else
9756 pkg_failed=untried
9757 fi
9758
9759
9760
9761 if test $pkg_failed = yes; then
9762
9763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9764 _pkg_short_errors_supported=yes
9765 else
9766 _pkg_short_errors_supported=no
9767 fi
9768 if test $_pkg_short_errors_supported = yes; then
9769 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9770 else
9771 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9772 fi
9773 # Put the nasty error message in config.log where it belongs
9774 echo "$CCS_PKG_ERRORS" >&5
9775
9776 { $as_echo "$as_me:$LINENO: result: no" >&5
9777 $as_echo "no" >&6; }
9778 NOTFOUND=0
9779
9780 for ac_header in ccs.h
9781 do
9782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9785 $as_echo_n "checking for $ac_header... " >&6; }
9786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9787 $as_echo_n "(cached) " >&6
9788 fi
9789 ac_res=`eval 'as_val=${'$as_ac_Header'}
9790 $as_echo "$as_val"'`
9791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9792 $as_echo "$ac_res" >&6; }
9793 else
9794 # Is the header compilable?
9795 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9796 $as_echo_n "checking $ac_header usability... " >&6; }
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 $ac_includes_default
9804 #include <$ac_header>
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9808 case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811 esac
9812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9813 $as_echo "$ac_try_echo") >&5
9814 (eval "$ac_compile") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest.$ac_objext; then
9824 ac_header_compiler=yes
9825 else
9826 $as_echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829 ac_header_compiler=no
9830 fi
9831
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9834 $as_echo "$ac_header_compiler" >&6; }
9835
9836 # Is the header present?
9837 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9838 $as_echo_n "checking $ac_header presence... " >&6; }
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <$ac_header>
9846 _ACEOF
9847 if { (ac_try="$ac_cpp conftest.$ac_ext"
9848 case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9853 $as_echo "$ac_try_echo") >&5
9854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } >/dev/null && {
9861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9862 test ! -s conftest.err
9863 }; then
9864 ac_header_preproc=yes
9865 else
9866 $as_echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_header_preproc=no
9870 fi
9871
9872 rm -f conftest.err conftest.$ac_ext
9873 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9874 $as_echo "$ac_header_preproc" >&6; }
9875
9876 # So? What about this header?
9877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9878 yes:no: )
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9880 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9883 ac_header_preproc=yes
9884 ;;
9885 no:yes:* )
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9889 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9891 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9893 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9897 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9898
9899 ;;
9900 esac
9901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9902 $as_echo_n "checking for $ac_header... " >&6; }
9903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9904 $as_echo_n "(cached) " >&6
9905 else
9906 eval "$as_ac_Header=\$ac_header_preproc"
9907 fi
9908 ac_res=`eval 'as_val=${'$as_ac_Header'}
9909 $as_echo "$as_val"'`
9910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9911 $as_echo "$ac_res" >&6; }
9912
9913 fi
9914 as_val=`eval 'as_val=${'$as_ac_Header'}
9915 $as_echo "$as_val"'`
9916 if test "x$as_val" = x""yes; then
9917 cat >>confdefs.h <<_ACEOF
9918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919 _ACEOF
9920
9921 else
9922 $bailout
9923 fi
9924
9925 done
9926
9927 check_lib_no_libs ccs ccs_connect
9928 if test $NOTFOUND = 0; then
9929 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9930 $as_echo "no pkg for libccs, using -lccs" >&6; }
9931 CCS_LIBS="-lccs"
9932 HAVE_CCS=yes
9933 fi
9934 elif test $pkg_failed = untried; then
9935 NOTFOUND=0
9936
9937 for ac_header in ccs.h
9938 do
9939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9942 $as_echo_n "checking for $ac_header... " >&6; }
9943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9944 $as_echo_n "(cached) " >&6
9945 fi
9946 ac_res=`eval 'as_val=${'$as_ac_Header'}
9947 $as_echo "$as_val"'`
9948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9949 $as_echo "$ac_res" >&6; }
9950 else
9951 # Is the header compilable?
9952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9953 $as_echo_n "checking $ac_header usability... " >&6; }
9954 cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h. */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 $ac_includes_default
9961 #include <$ac_header>
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (ac_try="$ac_compile"
9965 case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968 esac
9969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970 $as_echo "$ac_try_echo") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 ac_header_compiler=yes
9982 else
9983 $as_echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_header_compiler=no
9987 fi
9988
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9991 $as_echo "$ac_header_compiler" >&6; }
9992
9993 # Is the header present?
9994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9995 $as_echo_n "checking $ac_header presence... " >&6; }
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h. */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 #include <$ac_header>
10003 _ACEOF
10004 if { (ac_try="$ac_cpp conftest.$ac_ext"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10010 $as_echo "$ac_try_echo") >&5
10011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } >/dev/null && {
10018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 }; then
10021 ac_header_preproc=yes
10022 else
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_header_preproc=no
10027 fi
10028
10029 rm -f conftest.err conftest.$ac_ext
10030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10031 $as_echo "$ac_header_preproc" >&6; }
10032
10033 # So? What about this header?
10034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10035 yes:no: )
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10040 ac_header_preproc=yes
10041 ;;
10042 no:yes:* )
10043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10046 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10050 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10055
10056 ;;
10057 esac
10058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 $as_echo_n "checking for $ac_header... " >&6; }
10060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 $as_echo_n "(cached) " >&6
10062 else
10063 eval "$as_ac_Header=\$ac_header_preproc"
10064 fi
10065 ac_res=`eval 'as_val=${'$as_ac_Header'}
10066 $as_echo "$as_val"'`
10067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10068 $as_echo "$ac_res" >&6; }
10069
10070 fi
10071 as_val=`eval 'as_val=${'$as_ac_Header'}
10072 $as_echo "$as_val"'`
10073 if test "x$as_val" = x""yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10076 _ACEOF
10077
10078 else
10079 $bailout
10080 fi
10081
10082 done
10083
10084 check_lib_no_libs ccs ccs_connect
10085 if test $NOTFOUND = 0; then
10086 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10087 $as_echo "no pkg for libccs, using -lccs" >&6; }
10088 CCS_LIBS="-lccs"
10089 HAVE_CCS=yes
10090 fi
10091 else
10092 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10093 CCS_LIBS=$pkg_cv_CCS_LIBS
10094 { $as_echo "$as_me:$LINENO: result: yes" >&5
10095 $as_echo "yes" >&6; }
10096 HAVE_CCS=yes
10097 fi
10098
10099 pkg_failed=no
10100 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
10101 $as_echo_n "checking for GULM... " >&6; }
10102
10103 if test -n "$GULM_CFLAGS"; then
10104 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10105 elif test -n "$PKG_CONFIG"; then
10106 if test -n "$PKG_CONFIG" && \
10107 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10108 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; then
10112 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10113 else
10114 pkg_failed=yes
10115 fi
10116 else
10117 pkg_failed=untried
10118 fi
10119 if test -n "$GULM_LIBS"; then
10120 pkg_cv_GULM_LIBS="$GULM_LIBS"
10121 elif test -n "$PKG_CONFIG"; then
10122 if test -n "$PKG_CONFIG" && \
10123 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10124 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10125 ac_status=$?
10126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; then
10128 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10129 else
10130 pkg_failed=yes
10131 fi
10132 else
10133 pkg_failed=untried
10134 fi
10135
10136
10137
10138 if test $pkg_failed = yes; then
10139
10140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10141 _pkg_short_errors_supported=yes
10142 else
10143 _pkg_short_errors_supported=no
10144 fi
10145 if test $_pkg_short_errors_supported = yes; then
10146 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10147 else
10148 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10149 fi
10150 # Put the nasty error message in config.log where it belongs
10151 echo "$GULM_PKG_ERRORS" >&5
10152
10153 { $as_echo "$as_me:$LINENO: result: no" >&5
10154 $as_echo "no" >&6; }
10155 NOTFOUND=0
10156
10157 for ac_header in libgulm.h
10158 do
10159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10162 $as_echo_n "checking for $ac_header... " >&6; }
10163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 $as_echo_n "(cached) " >&6
10165 fi
10166 ac_res=`eval 'as_val=${'$as_ac_Header'}
10167 $as_echo "$as_val"'`
10168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10169 $as_echo "$ac_res" >&6; }
10170 else
10171 # Is the header compilable?
10172 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10173 $as_echo_n "checking $ac_header usability... " >&6; }
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 $ac_includes_default
10181 #include <$ac_header>
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (ac_try="$ac_compile"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10190 $as_echo "$ac_try_echo") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_header_compiler=yes
10202 else
10203 $as_echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_header_compiler=no
10207 fi
10208
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10211 $as_echo "$ac_header_compiler" >&6; }
10212
10213 # Is the header present?
10214 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10215 $as_echo_n "checking $ac_header presence... " >&6; }
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <$ac_header>
10223 _ACEOF
10224 if { (ac_try="$ac_cpp conftest.$ac_ext"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230 $as_echo "$ac_try_echo") >&5
10231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } >/dev/null && {
10238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 }; then
10241 ac_header_preproc=yes
10242 else
10243 $as_echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_header_preproc=no
10247 fi
10248
10249 rm -f conftest.err conftest.$ac_ext
10250 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10251 $as_echo "$ac_header_preproc" >&6; }
10252
10253 # So? What about this header?
10254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10255 yes:no: )
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10259 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10260 ac_header_preproc=yes
10261 ;;
10262 no:yes:* )
10263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10264 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10266 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10268 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10270 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10272 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10274 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10275
10276 ;;
10277 esac
10278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10279 $as_echo_n "checking for $ac_header... " >&6; }
10280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281 $as_echo_n "(cached) " >&6
10282 else
10283 eval "$as_ac_Header=\$ac_header_preproc"
10284 fi
10285 ac_res=`eval 'as_val=${'$as_ac_Header'}
10286 $as_echo "$as_val"'`
10287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10288 $as_echo "$ac_res" >&6; }
10289
10290 fi
10291 as_val=`eval 'as_val=${'$as_ac_Header'}
10292 $as_echo "$as_val"'`
10293 if test "x$as_val" = x""yes; then
10294 cat >>confdefs.h <<_ACEOF
10295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10296 _ACEOF
10297
10298 else
10299 $bailout
10300 fi
10301
10302 done
10303
10304 check_lib_no_libs gulm lg_core_login
10305 if test $NOTFOUND = 0; then
10306 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10307 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10308 GULM_LIBS="-lgulm"
10309 HAVE_GULM=yes
10310 fi
10311 elif test $pkg_failed = untried; then
10312 NOTFOUND=0
10313
10314 for ac_header in libgulm.h
10315 do
10316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10319 $as_echo_n "checking for $ac_header... " >&6; }
10320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321 $as_echo_n "(cached) " >&6
10322 fi
10323 ac_res=`eval 'as_val=${'$as_ac_Header'}
10324 $as_echo "$as_val"'`
10325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10326 $as_echo "$ac_res" >&6; }
10327 else
10328 # Is the header compilable?
10329 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10330 $as_echo_n "checking $ac_header usability... " >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 $ac_includes_default
10338 #include <$ac_header>
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (ac_try="$ac_compile"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345 esac
10346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10347 $as_echo "$ac_try_echo") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_header_compiler=yes
10359 else
10360 $as_echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_compiler=no
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10368 $as_echo "$ac_header_compiler" >&6; }
10369
10370 # Is the header present?
10371 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10372 $as_echo_n "checking $ac_header presence... " >&6; }
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 #include <$ac_header>
10380 _ACEOF
10381 if { (ac_try="$ac_cpp conftest.$ac_ext"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385 esac
10386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387 $as_echo "$ac_try_echo") >&5
10388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } >/dev/null && {
10395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 }; then
10398 ac_header_preproc=yes
10399 else
10400 $as_echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403 ac_header_preproc=no
10404 fi
10405
10406 rm -f conftest.err conftest.$ac_ext
10407 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10408 $as_echo "$ac_header_preproc" >&6; }
10409
10410 # So? What about this header?
10411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10412 yes:no: )
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10414 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10417 ac_header_preproc=yes
10418 ;;
10419 no:yes:* )
10420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10421 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10423 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10425 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10427 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10431 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10432
10433 ;;
10434 esac
10435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10436 $as_echo_n "checking for $ac_header... " >&6; }
10437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10438 $as_echo_n "(cached) " >&6
10439 else
10440 eval "$as_ac_Header=\$ac_header_preproc"
10441 fi
10442 ac_res=`eval 'as_val=${'$as_ac_Header'}
10443 $as_echo "$as_val"'`
10444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10445 $as_echo "$ac_res" >&6; }
10446
10447 fi
10448 as_val=`eval 'as_val=${'$as_ac_Header'}
10449 $as_echo "$as_val"'`
10450 if test "x$as_val" = x""yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10453 _ACEOF
10454
10455 else
10456 $bailout
10457 fi
10458
10459 done
10460
10461 check_lib_no_libs gulm lg_core_login
10462 if test $NOTFOUND = 0; then
10463 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10464 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10465 GULM_LIBS="-lgulm"
10466 HAVE_GULM=yes
10467 fi
10468 else
10469 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10470 GULM_LIBS=$pkg_cv_GULM_LIBS
10471 { $as_echo "$as_me:$LINENO: result: yes" >&5
10472 $as_echo "yes" >&6; }
10473 HAVE_GULM=yes
10474 fi
10475 fi
10476
10477 if test x$BUILDCMAN = xyes; then
10478
10479 pkg_failed=no
10480 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10481 $as_echo_n "checking for CMAN... " >&6; }
10482
10483 if test -n "$CMAN_CFLAGS"; then
10484 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10485 elif test -n "$PKG_CONFIG"; then
10486 if test -n "$PKG_CONFIG" && \
10487 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10488 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10489 ac_status=$?
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10493 else
10494 pkg_failed=yes
10495 fi
10496 else
10497 pkg_failed=untried
10498 fi
10499 if test -n "$CMAN_LIBS"; then
10500 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10501 elif test -n "$PKG_CONFIG"; then
10502 if test -n "$PKG_CONFIG" && \
10503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10504 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10505 ac_status=$?
10506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; then
10508 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10509 else
10510 pkg_failed=yes
10511 fi
10512 else
10513 pkg_failed=untried
10514 fi
10515
10516
10517
10518 if test $pkg_failed = yes; then
10519
10520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10521 _pkg_short_errors_supported=yes
10522 else
10523 _pkg_short_errors_supported=no
10524 fi
10525 if test $_pkg_short_errors_supported = yes; then
10526 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10527 else
10528 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10529 fi
10530 # Put the nasty error message in config.log where it belongs
10531 echo "$CMAN_PKG_ERRORS" >&5
10532
10533 { $as_echo "$as_me:$LINENO: result: no" >&5
10534 $as_echo "no" >&6; }
10535 NOTFOUND=0
10536
10537 for ac_header in libcman.h
10538 do
10539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 $as_echo_n "checking for $ac_header... " >&6; }
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544 $as_echo_n "(cached) " >&6
10545 fi
10546 ac_res=`eval 'as_val=${'$as_ac_Header'}
10547 $as_echo "$as_val"'`
10548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10549 $as_echo "$ac_res" >&6; }
10550 else
10551 # Is the header compilable?
10552 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10553 $as_echo_n "checking $ac_header usability... " >&6; }
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 $ac_includes_default
10561 #include <$ac_header>
10562 _ACEOF
10563 rm -f conftest.$ac_objext
10564 if { (ac_try="$ac_compile"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568 esac
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571 (eval "$ac_compile") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest.$ac_objext; then
10581 ac_header_compiler=yes
10582 else
10583 $as_echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 ac_header_compiler=no
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10591 $as_echo "$ac_header_compiler" >&6; }
10592
10593 # Is the header present?
10594 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10595 $as_echo_n "checking $ac_header presence... " >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <$ac_header>
10603 _ACEOF
10604 if { (ac_try="$ac_cpp conftest.$ac_ext"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610 $as_echo "$ac_try_echo") >&5
10611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } >/dev/null && {
10618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 }; then
10621 ac_header_preproc=yes
10622 else
10623 $as_echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 ac_header_preproc=no
10627 fi
10628
10629 rm -f conftest.err conftest.$ac_ext
10630 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10631 $as_echo "$ac_header_preproc" >&6; }
10632
10633 # So? What about this header?
10634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10635 yes:no: )
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10637 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10640 ac_header_preproc=yes
10641 ;;
10642 no:yes:* )
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10648 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10650 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10655
10656 ;;
10657 esac
10658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 $as_echo_n "checking for $ac_header... " >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 $as_echo_n "(cached) " >&6
10662 else
10663 eval "$as_ac_Header=\$ac_header_preproc"
10664 fi
10665 ac_res=`eval 'as_val=${'$as_ac_Header'}
10666 $as_echo "$as_val"'`
10667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10668 $as_echo "$ac_res" >&6; }
10669
10670 fi
10671 as_val=`eval 'as_val=${'$as_ac_Header'}
10672 $as_echo "$as_val"'`
10673 if test "x$as_val" = x""yes; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676 _ACEOF
10677
10678 else
10679 $bailout
10680 fi
10681
10682 done
10683
10684 check_lib_no_libs cman cman_init
10685 if test $NOTFOUND = 0; then
10686 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10687 $as_echo "no pkg for libcman, using -lcman" >&6; }
10688 CMAN_LIBS="-lcman"
10689 HAVE_CMAN=yes
10690 fi
10691 elif test $pkg_failed = untried; then
10692 NOTFOUND=0
10693
10694 for ac_header in libcman.h
10695 do
10696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 $as_echo_n "checking for $ac_header... " >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 $as_echo_n "(cached) " >&6
10702 fi
10703 ac_res=`eval 'as_val=${'$as_ac_Header'}
10704 $as_echo "$as_val"'`
10705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10706 $as_echo "$ac_res" >&6; }
10707 else
10708 # Is the header compilable?
10709 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10710 $as_echo_n "checking $ac_header usability... " >&6; }
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 $ac_includes_default
10718 #include <$ac_header>
10719 _ACEOF
10720 rm -f conftest.$ac_objext
10721 if { (ac_try="$ac_compile"
10722 case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725 esac
10726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10727 $as_echo "$ac_try_echo") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest.$ac_objext; then
10738 ac_header_compiler=yes
10739 else
10740 $as_echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_header_compiler=no
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748 $as_echo "$ac_header_compiler" >&6; }
10749
10750 # Is the header present?
10751 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752 $as_echo_n "checking $ac_header presence... " >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <$ac_header>
10760 _ACEOF
10761 if { (ac_try="$ac_cpp conftest.$ac_ext"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767 $as_echo "$ac_try_echo") >&5
10768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null && {
10775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 }; then
10778 ac_header_preproc=yes
10779 else
10780 $as_echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_header_preproc=no
10784 fi
10785
10786 rm -f conftest.err conftest.$ac_ext
10787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10788 $as_echo "$ac_header_preproc" >&6; }
10789
10790 # So? What about this header?
10791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 yes:no: )
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10794 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10796 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10797 ac_header_preproc=yes
10798 ;;
10799 no:yes:* )
10800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10801 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10803 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10805 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10807 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10811 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812
10813 ;;
10814 esac
10815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10816 $as_echo_n "checking for $ac_header... " >&6; }
10817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 $as_echo_n "(cached) " >&6
10819 else
10820 eval "$as_ac_Header=\$ac_header_preproc"
10821 fi
10822 ac_res=`eval 'as_val=${'$as_ac_Header'}
10823 $as_echo "$as_val"'`
10824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10825 $as_echo "$ac_res" >&6; }
10826
10827 fi
10828 as_val=`eval 'as_val=${'$as_ac_Header'}
10829 $as_echo "$as_val"'`
10830 if test "x$as_val" = x""yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10833 _ACEOF
10834
10835 else
10836 $bailout
10837 fi
10838
10839 done
10840
10841 check_lib_no_libs cman cman_init
10842 if test $NOTFOUND = 0; then
10843 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10844 $as_echo "no pkg for libcman, using -lcman" >&6; }
10845 CMAN_LIBS="-lcman"
10846 HAVE_CMAN=yes
10847 fi
10848 else
10849 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10850 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10851 { $as_echo "$as_me:$LINENO: result: yes" >&5
10852 $as_echo "yes" >&6; }
10853 HAVE_CMAN=yes
10854 fi
10855 CHECKCONFDB=yes
10856 CHECKDLM=yes
10857 fi
10858
10859 if test x$BUILDCOROSYNC = xyes || \
10860 test x$BUILDOPENAIS = xyes; then
10861
10862 pkg_failed=no
10863 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10864 $as_echo_n "checking for COROSYNC... " >&6; }
10865
10866 if test -n "$COROSYNC_CFLAGS"; then
10867 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10871 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10872 ac_status=$?
10873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; then
10875 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10876 else
10877 pkg_failed=yes
10878 fi
10879 else
10880 pkg_failed=untried
10881 fi
10882 if test -n "$COROSYNC_LIBS"; then
10883 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10884 elif test -n "$PKG_CONFIG"; then
10885 if test -n "$PKG_CONFIG" && \
10886 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10887 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; then
10891 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10892 else
10893 pkg_failed=yes
10894 fi
10895 else
10896 pkg_failed=untried
10897 fi
10898
10899
10900
10901 if test $pkg_failed = yes; then
10902
10903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10904 _pkg_short_errors_supported=yes
10905 else
10906 _pkg_short_errors_supported=no
10907 fi
10908 if test $_pkg_short_errors_supported = yes; then
10909 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10910 else
10911 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10912 fi
10913 # Put the nasty error message in config.log where it belongs
10914 echo "$COROSYNC_PKG_ERRORS" >&5
10915
10916 { $as_echo "$as_me:$LINENO: result: no" >&5
10917 $as_echo "no" >&6; }
10918 $bailout
10919 elif test $pkg_failed = untried; then
10920 $bailout
10921 else
10922 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10923 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10924 { $as_echo "$as_me:$LINENO: result: yes" >&5
10925 $as_echo "yes" >&6; }
10926 HAVE_COROSYNC=yes
10927 fi
10928 CHECKCONFDB=yes
10929 fi
10930
10931 if test x$BUILDCOROSYNC = xyes; then
10932
10933 pkg_failed=no
10934 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10935 $as_echo_n "checking for QUORUM... " >&6; }
10936
10937 if test -n "$QUORUM_CFLAGS"; then
10938 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10939 elif test -n "$PKG_CONFIG"; then
10940 if test -n "$PKG_CONFIG" && \
10941 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10942 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; then
10946 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10947 else
10948 pkg_failed=yes
10949 fi
10950 else
10951 pkg_failed=untried
10952 fi
10953 if test -n "$QUORUM_LIBS"; then
10954 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10955 elif test -n "$PKG_CONFIG"; then
10956 if test -n "$PKG_CONFIG" && \
10957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10958 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10959 ac_status=$?
10960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; then
10962 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10963 else
10964 pkg_failed=yes
10965 fi
10966 else
10967 pkg_failed=untried
10968 fi
10969
10970
10971
10972 if test $pkg_failed = yes; then
10973
10974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10975 _pkg_short_errors_supported=yes
10976 else
10977 _pkg_short_errors_supported=no
10978 fi
10979 if test $_pkg_short_errors_supported = yes; then
10980 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10981 else
10982 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10983 fi
10984 # Put the nasty error message in config.log where it belongs
10985 echo "$QUORUM_PKG_ERRORS" >&5
10986
10987 { $as_echo "$as_me:$LINENO: result: no" >&5
10988 $as_echo "no" >&6; }
10989 $bailout
10990 elif test $pkg_failed = untried; then
10991 $bailout
10992 else
10993 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10994 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10995 { $as_echo "$as_me:$LINENO: result: yes" >&5
10996 $as_echo "yes" >&6; }
10997 HAVE_QUORUM=yes
10998 fi
10999 CHECKCPG=yes
11000 CHECKDLM=yes
11001 fi
11002
11003 if test x$BUILDOPENAIS = xyes; then
11004
11005 pkg_failed=no
11006 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
11007 $as_echo_n "checking for SALCK... " >&6; }
11008
11009 if test -n "$SALCK_CFLAGS"; then
11010 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
11011 elif test -n "$PKG_CONFIG"; then
11012 if test -n "$PKG_CONFIG" && \
11013 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11014 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11015 ac_status=$?
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; then
11018 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11019 else
11020 pkg_failed=yes
11021 fi
11022 else
11023 pkg_failed=untried
11024 fi
11025 if test -n "$SALCK_LIBS"; then
11026 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11027 elif test -n "$PKG_CONFIG"; then
11028 if test -n "$PKG_CONFIG" && \
11029 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11030 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11031 ac_status=$?
11032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; then
11034 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11035 else
11036 pkg_failed=yes
11037 fi
11038 else
11039 pkg_failed=untried
11040 fi
11041
11042
11043
11044 if test $pkg_failed = yes; then
11045
11046 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11047 _pkg_short_errors_supported=yes
11048 else
11049 _pkg_short_errors_supported=no
11050 fi
11051 if test $_pkg_short_errors_supported = yes; then
11052 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11053 else
11054 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11055 fi
11056 # Put the nasty error message in config.log where it belongs
11057 echo "$SALCK_PKG_ERRORS" >&5
11058
11059 { $as_echo "$as_me:$LINENO: result: no" >&5
11060 $as_echo "no" >&6; }
11061 $bailout
11062 elif test $pkg_failed = untried; then
11063 $bailout
11064 else
11065 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11066 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11067 { $as_echo "$as_me:$LINENO: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069 HAVE_SALCK=yes
11070 fi
11071 CHECKCPG=yes
11072 fi
11073
11074
11075
11076 if test x$CHECKCONFDB = xyes; then
11077
11078 pkg_failed=no
11079 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11080 $as_echo_n "checking for CONFDB... " >&6; }
11081
11082 if test -n "$CONFDB_CFLAGS"; then
11083 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11084 elif test -n "$PKG_CONFIG"; then
11085 if test -n "$PKG_CONFIG" && \
11086 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11087 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11088 ac_status=$?
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; then
11091 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11092 else
11093 pkg_failed=yes
11094 fi
11095 else
11096 pkg_failed=untried
11097 fi
11098 if test -n "$CONFDB_LIBS"; then
11099 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11100 elif test -n "$PKG_CONFIG"; then
11101 if test -n "$PKG_CONFIG" && \
11102 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11103 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11104 ac_status=$?
11105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; then
11107 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11108 else
11109 pkg_failed=yes
11110 fi
11111 else
11112 pkg_failed=untried
11113 fi
11114
11115
11116
11117 if test $pkg_failed = yes; then
11118
11119 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11120 _pkg_short_errors_supported=yes
11121 else
11122 _pkg_short_errors_supported=no
11123 fi
11124 if test $_pkg_short_errors_supported = yes; then
11125 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11126 else
11127 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11128 fi
11129 # Put the nasty error message in config.log where it belongs
11130 echo "$CONFDB_PKG_ERRORS" >&5
11131
11132 { $as_echo "$as_me:$LINENO: result: no" >&5
11133 $as_echo "no" >&6; }
11134 HAVE_CONFDB=no
11135 elif test $pkg_failed = untried; then
11136 HAVE_CONFDB=no
11137 else
11138 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11139 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11140 { $as_echo "$as_me:$LINENO: result: yes" >&5
11141 $as_echo "yes" >&6; }
11142 HAVE_CONFDB=yes
11143 fi
11144
11145
11146 for ac_header in corosync/confdb.h
11147 do
11148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 $as_echo_n "checking for $ac_header... " >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 $as_echo_n "(cached) " >&6
11154 fi
11155 ac_res=`eval 'as_val=${'$as_ac_Header'}
11156 $as_echo "$as_val"'`
11157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11158 $as_echo "$ac_res" >&6; }
11159 else
11160 # Is the header compilable?
11161 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 $as_echo_n "checking $ac_header usability... " >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11179 $as_echo "$ac_try_echo") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.$ac_objext; then
11190 ac_header_compiler=yes
11191 else
11192 $as_echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_header_compiler=no
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 $as_echo "$ac_header_compiler" >&6; }
11201
11202 # Is the header present?
11203 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 $as_echo_n "checking $ac_header presence... " >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11212 _ACEOF
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217 esac
11218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219 $as_echo "$ac_try_echo") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null && {
11227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 }; then
11230 ac_header_preproc=yes
11231 else
11232 $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_header_preproc=no
11236 fi
11237
11238 rm -f conftest.err conftest.$ac_ext
11239 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240 $as_echo "$ac_header_preproc" >&6; }
11241
11242 # So? What about this header?
11243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 yes:no: )
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc=yes
11250 ;;
11251 no:yes:* )
11252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11264
11265 ;;
11266 esac
11267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 $as_echo_n "checking for $ac_header... " >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 $as_echo_n "(cached) " >&6
11271 else
11272 eval "$as_ac_Header=\$ac_header_preproc"
11273 fi
11274 ac_res=`eval 'as_val=${'$as_ac_Header'}
11275 $as_echo "$as_val"'`
11276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11277 $as_echo "$ac_res" >&6; }
11278
11279 fi
11280 as_val=`eval 'as_val=${'$as_ac_Header'}
11281 $as_echo "$as_val"'`
11282 if test "x$as_val" = x""yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 _ACEOF
11286 HAVE_CONFDB_H=yes
11287 else
11288 HAVE_CONFDB_H=no
11289 fi
11290
11291 done
11292
11293
11294 if test x$HAVE_CONFDB != xyes && \
11295 test x$HAVE_CONFDB_H = xyes; then
11296 check_lib_no_libs confdb confdb_initialize
11297 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11298 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11299 CONFDB_LIBS="-lconfdb"
11300 HAVE_CONFDB=yes
11301 fi
11302
11303 if test x$BUILDCOROSYNC = xyes && \
11304 test x$HAVE_CONFDB != xyes &&
11305 test x$CLVMD != xall; then
11306 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11307 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11308 { (exit 1); exit 1; }; }
11309 fi
11310 fi
11311
11312 if test x$CHECKCPG = xyes; then
11313
11314 pkg_failed=no
11315 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11316 $as_echo_n "checking for CPG... " >&6; }
11317
11318 if test -n "$CPG_CFLAGS"; then
11319 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11320 elif test -n "$PKG_CONFIG"; then
11321 if test -n "$PKG_CONFIG" && \
11322 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11323 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11324 ac_status=$?
11325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; then
11327 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11328 else
11329 pkg_failed=yes
11330 fi
11331 else
11332 pkg_failed=untried
11333 fi
11334 if test -n "$CPG_LIBS"; then
11335 pkg_cv_CPG_LIBS="$CPG_LIBS"
11336 elif test -n "$PKG_CONFIG"; then
11337 if test -n "$PKG_CONFIG" && \
11338 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11339 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11340 ac_status=$?
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; then
11343 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11344 else
11345 pkg_failed=yes
11346 fi
11347 else
11348 pkg_failed=untried
11349 fi
11350
11351
11352
11353 if test $pkg_failed = yes; then
11354
11355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11356 _pkg_short_errors_supported=yes
11357 else
11358 _pkg_short_errors_supported=no
11359 fi
11360 if test $_pkg_short_errors_supported = yes; then
11361 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11362 else
11363 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11364 fi
11365 # Put the nasty error message in config.log where it belongs
11366 echo "$CPG_PKG_ERRORS" >&5
11367
11368 { $as_echo "$as_me:$LINENO: result: no" >&5
11369 $as_echo "no" >&6; }
11370 $bailout
11371 elif test $pkg_failed = untried; then
11372 $bailout
11373 else
11374 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11375 CPG_LIBS=$pkg_cv_CPG_LIBS
11376 { $as_echo "$as_me:$LINENO: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378 HAVE_CPG=yes
11379 fi
11380 fi
11381
11382 if test x$CHECKDLM = xyes; then
11383
11384 pkg_failed=no
11385 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11386 $as_echo_n "checking for DLM... " >&6; }
11387
11388 if test -n "$DLM_CFLAGS"; then
11389 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \
11392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11393 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11394 ac_status=$?
11395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; then
11397 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11398 else
11399 pkg_failed=yes
11400 fi
11401 else
11402 pkg_failed=untried
11403 fi
11404 if test -n "$DLM_LIBS"; then
11405 pkg_cv_DLM_LIBS="$DLM_LIBS"
11406 elif test -n "$PKG_CONFIG"; then
11407 if test -n "$PKG_CONFIG" && \
11408 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11409 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11410 ac_status=$?
11411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; then
11413 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11414 else
11415 pkg_failed=yes
11416 fi
11417 else
11418 pkg_failed=untried
11419 fi
11420
11421
11422
11423 if test $pkg_failed = yes; then
11424
11425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11426 _pkg_short_errors_supported=yes
11427 else
11428 _pkg_short_errors_supported=no
11429 fi
11430 if test $_pkg_short_errors_supported = yes; then
11431 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11432 else
11433 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11434 fi
11435 # Put the nasty error message in config.log where it belongs
11436 echo "$DLM_PKG_ERRORS" >&5
11437
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11440 NOTFOUND=0
11441
11442 for ac_header in libdlm.h
11443 do
11444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11447 $as_echo_n "checking for $ac_header... " >&6; }
11448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 $as_echo_n "(cached) " >&6
11450 fi
11451 ac_res=`eval 'as_val=${'$as_ac_Header'}
11452 $as_echo "$as_val"'`
11453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11454 $as_echo "$ac_res" >&6; }
11455 else
11456 # Is the header compilable?
11457 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11458 $as_echo_n "checking $ac_header usability... " >&6; }
11459 cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11466 #include <$ac_header>
11467 _ACEOF
11468 rm -f conftest.$ac_objext
11469 if { (ac_try="$ac_compile"
11470 case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473 esac
11474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11475 $as_echo "$ac_try_echo") >&5
11476 (eval "$ac_compile") 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } && {
11483 test -z "$ac_c_werror_flag" ||
11484 test ! -s conftest.err
11485 } && test -s conftest.$ac_objext; then
11486 ac_header_compiler=yes
11487 else
11488 $as_echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 ac_header_compiler=no
11492 fi
11493
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11496 $as_echo "$ac_header_compiler" >&6; }
11497
11498 # Is the header present?
11499 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11500 $as_echo_n "checking $ac_header presence... " >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 #include <$ac_header>
11508 _ACEOF
11509 if { (ac_try="$ac_cpp conftest.$ac_ext"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513 esac
11514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11515 $as_echo "$ac_try_echo") >&5
11516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } >/dev/null && {
11523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 }; then
11526 ac_header_preproc=yes
11527 else
11528 $as_echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 ac_header_preproc=no
11532 fi
11533
11534 rm -f conftest.err conftest.$ac_ext
11535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 $as_echo "$ac_header_preproc" >&6; }
11537
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 yes:no: )
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11546 ;;
11547 no:yes:* )
11548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560
11561 ;;
11562 esac
11563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11564 $as_echo_n "checking for $ac_header... " >&6; }
11565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11566 $as_echo_n "(cached) " >&6
11567 else
11568 eval "$as_ac_Header=\$ac_header_preproc"
11569 fi
11570 ac_res=`eval 'as_val=${'$as_ac_Header'}
11571 $as_echo "$as_val"'`
11572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11573 $as_echo "$ac_res" >&6; }
11574
11575 fi
11576 as_val=`eval 'as_val=${'$as_ac_Header'}
11577 $as_echo "$as_val"'`
11578 if test "x$as_val" = x""yes; then
11579 cat >>confdefs.h <<_ACEOF
11580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581 _ACEOF
11582
11583 else
11584 $bailout
11585 fi
11586
11587 done
11588
11589 check_lib_no_libs dlm dlm_lock -lpthread
11590 if test $NOTFOUND = 0; then
11591 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11592 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11593 DLM_LIBS="-ldlm -lpthread"
11594 HAVE_DLM=yes
11595 fi
11596 elif test $pkg_failed = untried; then
11597 NOTFOUND=0
11598
11599 for ac_header in libdlm.h
11600 do
11601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 $as_echo_n "checking for $ac_header... " >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 $as_echo_n "(cached) " >&6
11607 fi
11608 ac_res=`eval 'as_val=${'$as_ac_Header'}
11609 $as_echo "$as_val"'`
11610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11611 $as_echo "$ac_res" >&6; }
11612 else
11613 # Is the header compilable?
11614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11615 $as_echo_n "checking $ac_header usability... " >&6; }
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11622 $ac_includes_default
11623 #include <$ac_header>
11624 _ACEOF
11625 rm -f conftest.$ac_objext
11626 if { (ac_try="$ac_compile"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630 esac
11631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632 $as_echo "$ac_try_echo") >&5
11633 (eval "$ac_compile") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_c_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest.$ac_objext; then
11643 ac_header_compiler=yes
11644 else
11645 $as_echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_header_compiler=no
11649 fi
11650
11651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11653 $as_echo "$ac_header_compiler" >&6; }
11654
11655 # Is the header present?
11656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11657 $as_echo_n "checking $ac_header presence... " >&6; }
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 #include <$ac_header>
11665 _ACEOF
11666 if { (ac_try="$ac_cpp conftest.$ac_ext"
11667 case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670 esac
11671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11672 $as_echo "$ac_try_echo") >&5
11673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null && {
11680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11681 test ! -s conftest.err
11682 }; then
11683 ac_header_preproc=yes
11684 else
11685 $as_echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 ac_header_preproc=no
11689 fi
11690
11691 rm -f conftest.err conftest.$ac_ext
11692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11693 $as_echo "$ac_header_preproc" >&6; }
11694
11695 # So? What about this header?
11696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 yes:no: )
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11702 ac_header_preproc=yes
11703 ;;
11704 no:yes:* )
11705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11717
11718 ;;
11719 esac
11720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 $as_echo_n "checking for $ac_header... " >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 $as_echo_n "(cached) " >&6
11724 else
11725 eval "$as_ac_Header=\$ac_header_preproc"
11726 fi
11727 ac_res=`eval 'as_val=${'$as_ac_Header'}
11728 $as_echo "$as_val"'`
11729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11730 $as_echo "$ac_res" >&6; }
11731
11732 fi
11733 as_val=`eval 'as_val=${'$as_ac_Header'}
11734 $as_echo "$as_val"'`
11735 if test "x$as_val" = x""yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11738 _ACEOF
11739
11740 else
11741 $bailout
11742 fi
11743
11744 done
11745
11746 check_lib_no_libs dlm dlm_lock -lpthread
11747 if test $NOTFOUND = 0; then
11748 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11749 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11750 DLM_LIBS="-ldlm -lpthread"
11751 HAVE_DLM=yes
11752 fi
11753 else
11754 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11755 DLM_LIBS=$pkg_cv_DLM_LIBS
11756 { $as_echo "$as_me:$LINENO: result: yes" >&5
11757 $as_echo "yes" >&6; }
11758 HAVE_DLM=yes
11759 fi
11760 fi
11761
11762 if test x$CLVMD = xall; then
11763 CLVMD=none
11764 if test x$HAVE_CCS = xyes && \
11765 test x$HAVE_GULM = xyes; then
11766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11767 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11768 CLVMD="$CLVMD,gulm"
11769 fi
11770 if test x$HAVE_CMAN = xyes && \
11771 test x$HAVE_DLM = xyes; then
11772 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11773 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11774 CLVMD="$CLVMD,cman"
11775 fi
11776 if test x$HAVE_COROSYNC = xyes && \
11777 test x$HAVE_QUORUM = xyes && \
11778 test x$HAVE_CPG = xyes && \
11779 test x$HAVE_DLM = xyes && \
11780 test x$HAVE_CONFDB = xyes; then
11781 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11782 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11783 CLVMD="$CLVMD,corosync"
11784 fi
11785 if test x$HAVE_COROSYNC = xyes && \
11786 test x$HAVE_CPG = xyes && \
11787 test x$HAVE_SALCK = xyes; then
11788 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11789 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11790 CLVMD="$CLVMD,openais"
11791 fi
11792 if test x$CLVMD = xnone; then
11793 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11794 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11795 fi
11796 fi
11797
11798 ################################################################################
11799 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11800 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11801 # Check whether --enable-cmirrord was given.
11802 if test "${enable_cmirrord+set}" = set; then
11803 enableval=$enable_cmirrord; CMIRRORD=$enableval
11804 else
11805 CMIRRORD=no
11806 fi
11807
11808 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11809 $as_echo "$CMIRRORD" >&6; }
11810
11811 BUILD_CMIRRORD=$CMIRRORD
11812
11813 ################################################################################
11814
11815
11816 if test "x$BUILD_CMIRRORD" = xyes; then
11817
11818 # Check whether --with-cmirrord-pidfile was given.
11819 if test "${with_cmirrord_pidfile+set}" = set; then
11820 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11821 #define CMIRRORD_PIDFILE "$withval"
11822 _ACEOF
11823
11824 else
11825 cat >>confdefs.h <<_ACEOF
11826 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11827 _ACEOF
11828
11829 fi
11830
11831 fi
11832
11833 ################################################################################
11834 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11835 if test x$PKGCONFIG_INIT != x1; then
11836 pkg_config_init
11837 fi
11838
11839 pkg_failed=no
11840 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11841 $as_echo_n "checking for SACKPT... " >&6; }
11842
11843 if test -n "$SACKPT_CFLAGS"; then
11844 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11845 elif test -n "$PKG_CONFIG"; then
11846 if test -n "$PKG_CONFIG" && \
11847 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11848 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11853 else
11854 pkg_failed=yes
11855 fi
11856 else
11857 pkg_failed=untried
11858 fi
11859 if test -n "$SACKPT_LIBS"; then
11860 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11861 elif test -n "$PKG_CONFIG"; then
11862 if test -n "$PKG_CONFIG" && \
11863 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11864 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11865 ac_status=$?
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; then
11868 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11869 else
11870 pkg_failed=yes
11871 fi
11872 else
11873 pkg_failed=untried
11874 fi
11875
11876
11877
11878 if test $pkg_failed = yes; then
11879
11880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11881 _pkg_short_errors_supported=yes
11882 else
11883 _pkg_short_errors_supported=no
11884 fi
11885 if test $_pkg_short_errors_supported = yes; then
11886 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11887 else
11888 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11889 fi
11890 # Put the nasty error message in config.log where it belongs
11891 echo "$SACKPT_PKG_ERRORS" >&5
11892
11893 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11894
11895 $SACKPT_PKG_ERRORS
11896
11897 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11898 installed software in a non-standard prefix.
11899
11900 Alternatively, you may set the environment variables SACKPT_CFLAGS
11901 and SACKPT_LIBS to avoid the need to call pkg-config.
11902 See the pkg-config man page for more details.
11903 " >&5
11904 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11905
11906 $SACKPT_PKG_ERRORS
11907
11908 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11909 installed software in a non-standard prefix.
11910
11911 Alternatively, you may set the environment variables SACKPT_CFLAGS
11912 and SACKPT_LIBS to avoid the need to call pkg-config.
11913 See the pkg-config man page for more details.
11914 " >&2;}
11915 { (exit 1); exit 1; }; }
11916 elif test $pkg_failed = untried; then
11917 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11919 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11920 is in your PATH or set the PKG_CONFIG environment variable to the full
11921 path to pkg-config.
11922
11923 Alternatively, you may set the environment variables SACKPT_CFLAGS
11924 and SACKPT_LIBS to avoid the need to call pkg-config.
11925 See the pkg-config man page for more details.
11926
11927 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11928 See \`config.log' for more details." >&5
11929 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11930 is in your PATH or set the PKG_CONFIG environment variable to the full
11931 path to pkg-config.
11932
11933 Alternatively, you may set the environment variables SACKPT_CFLAGS
11934 and SACKPT_LIBS to avoid the need to call pkg-config.
11935 See the pkg-config man page for more details.
11936
11937 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11938 See \`config.log' for more details." >&2;}
11939 { (exit 1); exit 1; }; }; }
11940 else
11941 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11942 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11943 { $as_echo "$as_me:$LINENO: result: yes" >&5
11944 $as_echo "yes" >&6; }
11945 :
11946 fi
11947 if test x$HAVE_CPG != xyes; then
11948
11949 pkg_failed=no
11950 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11951 $as_echo_n "checking for CPG... " >&6; }
11952
11953 if test -n "$CPG_CFLAGS"; then
11954 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11955 elif test -n "$PKG_CONFIG"; then
11956 if test -n "$PKG_CONFIG" && \
11957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11958 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11959 ac_status=$?
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; then
11962 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11963 else
11964 pkg_failed=yes
11965 fi
11966 else
11967 pkg_failed=untried
11968 fi
11969 if test -n "$CPG_LIBS"; then
11970 pkg_cv_CPG_LIBS="$CPG_LIBS"
11971 elif test -n "$PKG_CONFIG"; then
11972 if test -n "$PKG_CONFIG" && \
11973 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11974 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11975 ac_status=$?
11976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; then
11978 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11979 else
11980 pkg_failed=yes
11981 fi
11982 else
11983 pkg_failed=untried
11984 fi
11985
11986
11987
11988 if test $pkg_failed = yes; then
11989
11990 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11991 _pkg_short_errors_supported=yes
11992 else
11993 _pkg_short_errors_supported=no
11994 fi
11995 if test $_pkg_short_errors_supported = yes; then
11996 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11997 else
11998 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11999 fi
12000 # Put the nasty error message in config.log where it belongs
12001 echo "$CPG_PKG_ERRORS" >&5
12002
12003 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
12004
12005 $CPG_PKG_ERRORS
12006
12007 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12008 installed software in a non-standard prefix.
12009
12010 Alternatively, you may set the environment variables CPG_CFLAGS
12011 and CPG_LIBS to avoid the need to call pkg-config.
12012 See the pkg-config man page for more details.
12013 " >&5
12014 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
12015
12016 $CPG_PKG_ERRORS
12017
12018 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12019 installed software in a non-standard prefix.
12020
12021 Alternatively, you may set the environment variables CPG_CFLAGS
12022 and CPG_LIBS to avoid the need to call pkg-config.
12023 See the pkg-config man page for more details.
12024 " >&2;}
12025 { (exit 1); exit 1; }; }
12026 elif test $pkg_failed = untried; then
12027 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12029 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12030 is in your PATH or set the PKG_CONFIG environment variable to the full
12031 path to pkg-config.
12032
12033 Alternatively, you may set the environment variables CPG_CFLAGS
12034 and CPG_LIBS to avoid the need to call pkg-config.
12035 See the pkg-config man page for more details.
12036
12037 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12038 See \`config.log' for more details." >&5
12039 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12040 is in your PATH or set the PKG_CONFIG environment variable to the full
12041 path to pkg-config.
12042
12043 Alternatively, you may set the environment variables CPG_CFLAGS
12044 and CPG_LIBS to avoid the need to call pkg-config.
12045 See the pkg-config man page for more details.
12046
12047 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12048 See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }; }
12050 else
12051 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12052 CPG_LIBS=$pkg_cv_CPG_LIBS
12053 { $as_echo "$as_me:$LINENO: result: yes" >&5
12054 $as_echo "yes" >&6; }
12055 :
12056 fi
12057 fi
12058 fi
12059
12060 ################################################################################
12061 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12062 $as_echo_n "checking whether to enable debugging... " >&6; }
12063 # Check whether --enable-debug was given.
12064 if test "${enable_debug+set}" = set; then
12065 enableval=$enable_debug; DEBUG=$enableval
12066 else
12067 DEBUG=no
12068 fi
12069
12070 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12071 $as_echo "$DEBUG" >&6; }
12072
12073 if test x$DEBUG = xyes; then
12074 COPTIMISE_FLAG=
12075 else
12076 CSCOPE_CMD=
12077 fi
12078
12079 ################################################################################
12080 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12081 $as_echo_n "checking for C optimisation flag... " >&6; }
12082
12083 # Check whether --with-optimisation was given.
12084 if test "${with_optimisation+set}" = set; then
12085 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12086 fi
12087
12088 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12089 $as_echo "$COPTIMISE_FLAG" >&6; }
12090
12091 ################################################################################
12092 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12093 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12094 # Check whether --enable-profiling was given.
12095 if test "${enable_profiling+set}" = set; then
12096 enableval=$enable_profiling; PROFILING=$enableval
12097 else
12098 PROFILING=no
12099 fi
12100
12101 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12102 $as_echo "$PROFILING" >&6; }
12103
12104 if test "x$PROFILING" = xyes; then
12105 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12106 # Extract the first word of "lcov", so it can be a program name with args.
12107 set dummy lcov; ac_word=$2
12108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if test "${ac_cv_path_LCOV+set}" = set; then
12111 $as_echo_n "(cached) " >&6
12112 else
12113 case $LCOV in
12114 [\\/]* | ?:[\\/]*)
12115 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12116 ;;
12117 *)
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12120 do
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12125 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12127 break 2
12128 fi
12129 done
12130 done
12131 IFS=$as_save_IFS
12132
12133 ;;
12134 esac
12135 fi
12136 LCOV=$ac_cv_path_LCOV
12137 if test -n "$LCOV"; then
12138 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12139 $as_echo "$LCOV" >&6; }
12140 else
12141 { $as_echo "$as_me:$LINENO: result: no" >&5
12142 $as_echo "no" >&6; }
12143 fi
12144
12145
12146 # Extract the first word of "genhtml", so it can be a program name with args.
12147 set dummy genhtml; ac_word=$2
12148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if test "${ac_cv_path_GENHTML+set}" = set; then
12151 $as_echo_n "(cached) " >&6
12152 else
12153 case $GENHTML in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12156 ;;
12157 *)
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12168 fi
12169 done
12170 done
12171 IFS=$as_save_IFS
12172
12173 ;;
12174 esac
12175 fi
12176 GENHTML=$ac_cv_path_GENHTML
12177 if test -n "$GENHTML"; then
12178 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12179 $as_echo "$GENHTML" >&6; }
12180 else
12181 { $as_echo "$as_me:$LINENO: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185
12186 if test -z "$LCOV" -o -z "$GENHTML"; then
12187 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12188 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12189 { (exit 1); exit 1; }; }
12190 fi
12191 # Extract the first word of "genpng", so it can be a program name with args.
12192 set dummy genpng; ac_word=$2
12193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_path_GENPNG+set}" = set; then
12196 $as_echo_n "(cached) " >&6
12197 else
12198 case $GENPNG in
12199 [\\/]* | ?:[\\/]*)
12200 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12201 ;;
12202 *)
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12205 do
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12210 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12213 fi
12214 done
12215 done
12216 IFS=$as_save_IFS
12217
12218 ;;
12219 esac
12220 fi
12221 GENPNG=$ac_cv_path_GENPNG
12222 if test -n "$GENPNG"; then
12223 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12224 $as_echo "$GENPNG" >&6; }
12225 else
12226 { $as_echo "$as_me:$LINENO: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 if test -n "$GENPNG"; then
12232 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12233 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12234 if $GENPNG --help > /dev/null 2>&1 ; then
12235 { $as_echo "$as_me:$LINENO: result: ok" >&5
12236 $as_echo "ok" >&6; }
12237 GENHTML="$GENHTML --frames"
12238 else
12239 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12240 $as_echo "not supported" >&6; }
12241 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12242 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12243 GENPNG=
12244 fi
12245 fi
12246 fi
12247
12248 ################################################################################
12249 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12250 $as_echo_n "checking whether to use device-mapper... " >&6; }
12251 # Check whether --enable-devmapper was given.
12252 if test "${enable_devmapper+set}" = set; then
12253 enableval=$enable_devmapper; DEVMAPPER=$enableval
12254 fi
12255
12256 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12257 $as_echo "$DEVMAPPER" >&6; }
12258
12259 if test x$DEVMAPPER = xyes; then
12260
12261 cat >>confdefs.h <<\_ACEOF
12262 #define DEVMAPPER_SUPPORT 1
12263 _ACEOF
12264
12265 fi
12266
12267 ################################################################################
12268 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12269 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12270 # Check whether --enable-udev_sync was given.
12271 if test "${enable_udev_sync+set}" = set; then
12272 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12273 else
12274 UDEV_SYNC=no
12275 fi
12276
12277 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12278 $as_echo "$UDEV_SYNC" >&6; }
12279
12280 if test x$UDEV_SYNC = xyes; then
12281 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12282 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12283 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12284 $as_echo_n "(cached) " >&6
12285 else
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-ludev $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char udev_queue_get_udev_is_active ();
12302 int
12303 main ()
12304 {
12305 return udev_queue_get_udev_is_active ();
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315 esac
12316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12317 $as_echo "$ac_try_echo") >&5
12318 (eval "$ac_link") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && {
12325 test -z "$ac_c_werror_flag" ||
12326 test ! -s conftest.err
12327 } && test -s conftest$ac_exeext && {
12328 test "$cross_compiling" = yes ||
12329 $as_test_x conftest$ac_exeext
12330 }; then
12331 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12332 else
12333 $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12337 fi
12338
12339 rm -rf conftest.dSYM
12340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12343 fi
12344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12345 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12346 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12347 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
12348 else
12349 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12350 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12351 { (exit 1); exit 1; }; }
12352 fi
12353
12354
12355 cat >>confdefs.h <<\_ACEOF
12356 #define UDEV_SYNC_SUPPORT 1
12357 _ACEOF
12358
12359 fi
12360
12361 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12362 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12363 # Check whether --enable-udev_rules was given.
12364 if test "${enable_udev_rules+set}" = set; then
12365 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12366 else
12367 UDEV_RULES=$UDEV_SYNC
12368 fi
12369
12370 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12371 $as_echo "$UDEV_RULES" >&6; }
12372
12373 ################################################################################
12374 # Check whether --enable-compat was given.
12375 if test "${enable_compat+set}" = set; then
12376 enableval=$enable_compat; DM_COMPAT=$enableval
12377 else
12378 DM_COMPAT=no
12379 fi
12380
12381
12382 ################################################################################
12383 # Check whether --enable-units-compat was given.
12384 if test "${enable_units_compat+set}" = set; then
12385 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12386 else
12387 UNITS_COMPAT=no
12388 fi
12389
12390
12391 if test x$UNITS_COMPAT = xyes; then
12392
12393 cat >>confdefs.h <<\_ACEOF
12394 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12395 _ACEOF
12396
12397 fi
12398
12399 ################################################################################
12400 # Check whether --enable-ioctl was given.
12401 if test "${enable_ioctl+set}" = set; then
12402 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12403 fi
12404
12405
12406 ################################################################################
12407 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12408 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12409 # Check whether --enable-o_direct was given.
12410 if test "${enable_o_direct+set}" = set; then
12411 enableval=$enable_o_direct; ODIRECT=$enableval
12412 fi
12413
12414 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12415 $as_echo "$ODIRECT" >&6; }
12416
12417 if test x$ODIRECT = xyes; then
12418
12419 cat >>confdefs.h <<\_ACEOF
12420 #define O_DIRECT_SUPPORT 1
12421 _ACEOF
12422
12423 fi
12424
12425 ################################################################################
12426 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12427 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12428 # Check whether --enable-applib was given.
12429 if test "${enable_applib+set}" = set; then
12430 enableval=$enable_applib; APPLIB=$enableval
12431 else
12432 APPLIB=no
12433 fi
12434
12435 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12436 $as_echo "$APPLIB" >&6; }
12437
12438 test x$APPLIB = xyes \
12439 && LVM2APP_LIB=-llvm2app \
12440 || LVM2APP_LIB=
12441
12442 ################################################################################
12443 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12444 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12445 # Check whether --enable-cmdlib was given.
12446 if test "${enable_cmdlib+set}" = set; then
12447 enableval=$enable_cmdlib; CMDLIB=$enableval
12448 else
12449 CMDLIB=no
12450 fi
12451
12452 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12453 $as_echo "$CMDLIB" >&6; }
12454
12455 test x$CMDLIB = xyes \
12456 && LVM2CMD_LIB=-llvm2cmd \
12457 || LVM2CMD_LIB=
12458
12459 ################################################################################
12460 # Check whether --enable-pkgconfig was given.
12461 if test "${enable_pkgconfig+set}" = set; then
12462 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12463 else
12464 PKGCONFIG=no
12465 fi
12466
12467
12468 ################################################################################
12469 # Check whether --enable-write_install was given.
12470 if test "${enable_write_install+set}" = set; then
12471 enableval=$enable_write_install; WRITE_INSTALL=$enableval
12472 else
12473 WRITE_INSTALL=no
12474 fi
12475
12476
12477 ################################################################################
12478 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12479 $as_echo_n "checking whether to install fsadm... " >&6; }
12480 # Check whether --enable-fsadm was given.
12481 if test "${enable_fsadm+set}" = set; then
12482 enableval=$enable_fsadm; FSADM=$enableval
12483 fi
12484
12485 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12486 $as_echo "$FSADM" >&6; }
12487
12488 ################################################################################
12489 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12490 $as_echo_n "checking whether to use dmeventd... " >&6; }
12491 # Check whether --enable-dmeventd was given.
12492 if test "${enable_dmeventd+set}" = set; then
12493 enableval=$enable_dmeventd; DMEVENTD=$enableval
12494 fi
12495
12496 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12497 $as_echo "$DMEVENTD" >&6; }
12498
12499 BUILD_DMEVENTD=$DMEVENTD
12500
12501 if test x$DMEVENTD = xyes; then
12502 if test x$MIRRORS != xinternal; then
12503 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12504 " >&5
12505 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12506 " >&2;}
12507 { (exit 1); exit 1; }; }
12508 fi
12509 if test x$CMDLIB = xno; then
12510 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12511 " >&5
12512 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12513 " >&2;}
12514 { (exit 1); exit 1; }; }
12515 fi
12516 fi
12517
12518 if test x$DMEVENTD = xyes; then
12519
12520 cat >>confdefs.h <<\_ACEOF
12521 #define DMEVENTD 1
12522 _ACEOF
12523
12524 fi
12525
12526 ################################################################################
12527
12528 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12529 $as_echo_n "checking for getline in -lc... " >&6; }
12530 if test "${ac_cv_lib_c_getline+set}" = set; then
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_check_lib_save_LIBS=$LIBS
12534 LIBS="-lc $LIBS"
12535 cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char getline ();
12549 int
12550 main ()
12551 {
12552 return getline ();
12553 ;
12554 return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (ac_try="$ac_link"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562 esac
12563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12564 $as_echo "$ac_try_echo") >&5
12565 (eval "$ac_link") 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
12570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
12574 } && test -s conftest$ac_exeext && {
12575 test "$cross_compiling" = yes ||
12576 $as_test_x conftest$ac_exeext
12577 }; then
12578 ac_cv_lib_c_getline=yes
12579 else
12580 $as_echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_cv_lib_c_getline=no
12584 fi
12585
12586 rm -rf conftest.dSYM
12587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12588 conftest$ac_exeext conftest.$ac_ext
12589 LIBS=$ac_check_lib_save_LIBS
12590 fi
12591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12592 $as_echo "$ac_cv_lib_c_getline" >&6; }
12593 if test "x$ac_cv_lib_c_getline" = x""yes; then
12594
12595 cat >>confdefs.h <<\_ACEOF
12596 #define HAVE_GETLINE 1
12597 _ACEOF
12598
12599 fi
12600
12601
12602 ################################################################################
12603
12604 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12605 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12606 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12607 $as_echo_n "(cached) " >&6
12608 else
12609 ac_check_lib_save_LIBS=$LIBS
12610 LIBS="-lc $LIBS"
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617
12618 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 char canonicalize_file_name ();
12625 int
12626 main ()
12627 {
12628 return canonicalize_file_name ();
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext conftest$ac_exeext
12634 if { (ac_try="$ac_link"
12635 case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638 esac
12639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640 $as_echo "$ac_try_echo") >&5
12641 (eval "$ac_link") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest$ac_exeext && {
12651 test "$cross_compiling" = yes ||
12652 $as_test_x conftest$ac_exeext
12653 }; then
12654 ac_cv_lib_c_canonicalize_file_name=yes
12655 else
12656 $as_echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_cv_lib_c_canonicalize_file_name=no
12660 fi
12661
12662 rm -rf conftest.dSYM
12663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12664 conftest$ac_exeext conftest.$ac_ext
12665 LIBS=$ac_check_lib_save_LIBS
12666 fi
12667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12668 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12669 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12670
12671 cat >>confdefs.h <<\_ACEOF
12672 #define HAVE_CANONICALIZE_FILE_NAME 1
12673 _ACEOF
12674
12675 fi
12676
12677
12678 ################################################################################
12679 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12680 then exec_prefix="";
12681 fi;
12682
12683 ################################################################################
12684 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12687 $as_echo_n "(cached) " >&6
12688 else
12689 ac_check_lib_save_LIBS=$LIBS
12690 LIBS="-ldl $LIBS"
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char dlopen ();
12705 int
12706 main ()
12707 {
12708 return dlopen ();
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718 esac
12719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12720 $as_echo "$ac_try_echo") >&5
12721 (eval "$ac_link") 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } && {
12728 test -z "$ac_c_werror_flag" ||
12729 test ! -s conftest.err
12730 } && test -s conftest$ac_exeext && {
12731 test "$cross_compiling" = yes ||
12732 $as_test_x conftest$ac_exeext
12733 }; then
12734 ac_cv_lib_dl_dlopen=yes
12735 else
12736 $as_echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ac_cv_lib_dl_dlopen=no
12740 fi
12741
12742 rm -rf conftest.dSYM
12743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12744 conftest$ac_exeext conftest.$ac_ext
12745 LIBS=$ac_check_lib_save_LIBS
12746 fi
12747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12749 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12750
12751
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_LIBDL 1
12754 _ACEOF
12755
12756 DL_LIBS="-ldl"
12757 HAVE_LIBDL=yes
12758 else
12759
12760 DL_LIBS=
12761 HAVE_LIBDL=no
12762 fi
12763
12764
12765 ################################################################################
12766 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12767 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12768 \) -a "x$STATIC_LINK" = xyes ];
12769 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12770 " >&5
12771 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12772 " >&2;}
12773 { (exit 1); exit 1; }; }
12774 fi
12775
12776 ################################################################################
12777 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12778 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12779 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12780 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12781 $as_echo_n "(cached) " >&6
12782 else
12783 ac_check_lib_save_LIBS=$LIBS
12784 LIBS="-lpthread $LIBS"
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char pthread_mutex_lock ();
12799 int
12800 main ()
12801 {
12802 return pthread_mutex_lock ();
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12814 $as_echo "$ac_try_echo") >&5
12815 (eval "$ac_link") 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest$ac_exeext && {
12825 test "$cross_compiling" = yes ||
12826 $as_test_x conftest$ac_exeext
12827 }; then
12828 ac_cv_lib_pthread_pthread_mutex_lock=yes
12829 else
12830 $as_echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 ac_cv_lib_pthread_pthread_mutex_lock=no
12834 fi
12835
12836 rm -rf conftest.dSYM
12837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12842 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12843 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12844 PTHREAD_LIBS="-lpthread"
12845 else
12846 hard_bailout
12847 fi
12848
12849 fi
12850
12851 ################################################################################
12852 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12853 $as_echo_n "checking whether to enable selinux support... " >&6; }
12854 # Check whether --enable-selinux was given.
12855 if test "${enable_selinux+set}" = set; then
12856 enableval=$enable_selinux; SELINUX=$enableval
12857 fi
12858
12859 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12860 $as_echo "$SELINUX" >&6; }
12861
12862 ################################################################################
12863 if test x$SELINUX = xyes; then
12864 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12865 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12866 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12867 $as_echo_n "(cached) " >&6
12868 else
12869 ac_check_lib_save_LIBS=$LIBS
12870 LIBS="-lsepol $LIBS"
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h. */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char sepol_check_context ();
12885 int
12886 main ()
12887 {
12888 return sepol_check_context ();
12889 ;
12890 return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (ac_try="$ac_link"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898 esac
12899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900 $as_echo "$ac_try_echo") >&5
12901 (eval "$ac_link") 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest$ac_exeext && {
12911 test "$cross_compiling" = yes ||
12912 $as_test_x conftest$ac_exeext
12913 }; then
12914 ac_cv_lib_sepol_sepol_check_context=yes
12915 else
12916 $as_echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 ac_cv_lib_sepol_sepol_check_context=no
12920 fi
12921
12922 rm -rf conftest.dSYM
12923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12924 conftest$ac_exeext conftest.$ac_ext
12925 LIBS=$ac_check_lib_save_LIBS
12926 fi
12927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12928 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12929 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12930
12931
12932 cat >>confdefs.h <<\_ACEOF
12933 #define HAVE_SEPOL 1
12934 _ACEOF
12935
12936 SELINUX_LIBS="-lsepol"
12937 fi
12938
12939
12940 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12941 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12942 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12943 $as_echo_n "(cached) " >&6
12944 else
12945 ac_check_lib_save_LIBS=$LIBS
12946 LIBS="-lselinux $LIBS"
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h. */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953
12954 /* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 char is_selinux_enabled ();
12961 int
12962 main ()
12963 {
12964 return is_selinux_enabled ();
12965 ;
12966 return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (ac_try="$ac_link"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974 esac
12975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12976 $as_echo "$ac_try_echo") >&5
12977 (eval "$ac_link") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
12986 } && test -s conftest$ac_exeext && {
12987 test "$cross_compiling" = yes ||
12988 $as_test_x conftest$ac_exeext
12989 }; then
12990 ac_cv_lib_selinux_is_selinux_enabled=yes
12991 else
12992 $as_echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_cv_lib_selinux_is_selinux_enabled=no
12996 fi
12997
12998 rm -rf conftest.dSYM
12999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13000 conftest$ac_exeext conftest.$ac_ext
13001 LIBS=$ac_check_lib_save_LIBS
13002 fi
13003 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
13004 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
13005 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
13006
13007
13008 for ac_header in selinux/selinux.h
13009 do
13010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13013 $as_echo_n "checking for $ac_header... " >&6; }
13014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13015 $as_echo_n "(cached) " >&6
13016 fi
13017 ac_res=`eval 'as_val=${'$as_ac_Header'}
13018 $as_echo "$as_val"'`
13019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13020 $as_echo "$ac_res" >&6; }
13021 else
13022 # Is the header compilable?
13023 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13024 $as_echo_n "checking $ac_header usability... " >&6; }
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 $ac_includes_default
13032 #include <$ac_header>
13033 _ACEOF
13034 rm -f conftest.$ac_objext
13035 if { (ac_try="$ac_compile"
13036 case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039 esac
13040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13041 $as_echo "$ac_try_echo") >&5
13042 (eval "$ac_compile") 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } && {
13049 test -z "$ac_c_werror_flag" ||
13050 test ! -s conftest.err
13051 } && test -s conftest.$ac_objext; then
13052 ac_header_compiler=yes
13053 else
13054 $as_echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 ac_header_compiler=no
13058 fi
13059
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13062 $as_echo "$ac_header_compiler" >&6; }
13063
13064 # Is the header present?
13065 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13066 $as_echo_n "checking $ac_header presence... " >&6; }
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 #include <$ac_header>
13074 _ACEOF
13075 if { (ac_try="$ac_cpp conftest.$ac_ext"
13076 case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079 esac
13080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13081 $as_echo "$ac_try_echo") >&5
13082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null && {
13089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13090 test ! -s conftest.err
13091 }; then
13092 ac_header_preproc=yes
13093 else
13094 $as_echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 ac_header_preproc=no
13098 fi
13099
13100 rm -f conftest.err conftest.$ac_ext
13101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13102 $as_echo "$ac_header_preproc" >&6; }
13103
13104 # So? What about this header?
13105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13106 yes:no: )
13107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13108 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13111 ac_header_preproc=yes
13112 ;;
13113 no:yes:* )
13114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13115 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13117 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13119 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13121 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13125 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13126
13127 ;;
13128 esac
13129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13130 $as_echo_n "checking for $ac_header... " >&6; }
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 $as_echo_n "(cached) " >&6
13133 else
13134 eval "$as_ac_Header=\$ac_header_preproc"
13135 fi
13136 ac_res=`eval 'as_val=${'$as_ac_Header'}
13137 $as_echo "$as_val"'`
13138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13139 $as_echo "$ac_res" >&6; }
13140
13141 fi
13142 as_val=`eval 'as_val=${'$as_ac_Header'}
13143 $as_echo "$as_val"'`
13144 if test "x$as_val" = x""yes; then
13145 cat >>confdefs.h <<_ACEOF
13146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13147 _ACEOF
13148
13149 else
13150 hard_bailout
13151 fi
13152
13153 done
13154
13155
13156 cat >>confdefs.h <<\_ACEOF
13157 #define HAVE_SELINUX 1
13158 _ACEOF
13159
13160 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13161 SELINUX_PC="libselinux"
13162 HAVE_SELINUX=yes
13163 else
13164
13165 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13166 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13167 SELINUX_LIBS=
13168 SELINUX_PC=
13169 HAVE_SELINUX=no
13170 fi
13171
13172 fi
13173
13174 ################################################################################
13175 if test x$REALTIME = xyes; then
13176 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13177 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13178 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13179 $as_echo_n "(cached) " >&6
13180 else
13181 ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-lrt $LIBS"
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193 #ifdef __cplusplus
13194 extern "C"
13195 #endif
13196 char clock_gettime ();
13197 int
13198 main ()
13199 {
13200 return clock_gettime ();
13201 ;
13202 return 0;
13203 }
13204 _ACEOF
13205 rm -f conftest.$ac_objext conftest$ac_exeext
13206 if { (ac_try="$ac_link"
13207 case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210 esac
13211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13212 $as_echo "$ac_try_echo") >&5
13213 (eval "$ac_link") 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest$ac_exeext && {
13223 test "$cross_compiling" = yes ||
13224 $as_test_x conftest$ac_exeext
13225 }; then
13226 ac_cv_lib_rt_clock_gettime=yes
13227 else
13228 $as_echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13230
13231 ac_cv_lib_rt_clock_gettime=no
13232 fi
13233
13234 rm -rf conftest.dSYM
13235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13236 conftest$ac_exeext conftest.$ac_ext
13237 LIBS=$ac_check_lib_save_LIBS
13238 fi
13239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13240 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13241 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13242 HAVE_REALTIME=yes
13243 else
13244 HAVE_REALTIME=no
13245 fi
13246
13247
13248 if test x$HAVE_REALTIME = xyes; then
13249
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_REALTIME 1
13252 _ACEOF
13253
13254 LIBS="-lrt $LIBS"
13255 else
13256 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13257 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13258 fi
13259 fi
13260
13261 ################################################################################
13262
13263 for ac_header in getopt.h
13264 do
13265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13268 $as_echo_n "checking for $ac_header... " >&6; }
13269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13270 $as_echo_n "(cached) " >&6
13271 fi
13272 ac_res=`eval 'as_val=${'$as_ac_Header'}
13273 $as_echo "$as_val"'`
13274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13275 $as_echo "$ac_res" >&6; }
13276 else
13277 # Is the header compilable?
13278 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13279 $as_echo_n "checking $ac_header usability... " >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13287 #include <$ac_header>
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294 esac
13295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296 $as_echo "$ac_try_echo") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest.$ac_objext; then
13307 ac_header_compiler=yes
13308 else
13309 $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_header_compiler=no
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13317 $as_echo "$ac_header_compiler" >&6; }
13318
13319 # Is the header present?
13320 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13321 $as_echo_n "checking $ac_header presence... " >&6; }
13322 cat >conftest.$ac_ext <<_ACEOF
13323 /* confdefs.h. */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 #include <$ac_header>
13329 _ACEOF
13330 if { (ac_try="$ac_cpp conftest.$ac_ext"
13331 case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334 esac
13335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336 $as_echo "$ac_try_echo") >&5
13337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } >/dev/null && {
13344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 }; then
13347 ac_header_preproc=yes
13348 else
13349 $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_header_preproc=no
13353 fi
13354
13355 rm -f conftest.err conftest.$ac_ext
13356 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13357 $as_echo "$ac_header_preproc" >&6; }
13358
13359 # So? What about this header?
13360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13361 yes:no: )
13362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13363 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13366 ac_header_preproc=yes
13367 ;;
13368 no:yes:* )
13369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13380 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13381
13382 ;;
13383 esac
13384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13385 $as_echo_n "checking for $ac_header... " >&6; }
13386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13387 $as_echo_n "(cached) " >&6
13388 else
13389 eval "$as_ac_Header=\$ac_header_preproc"
13390 fi
13391 ac_res=`eval 'as_val=${'$as_ac_Header'}
13392 $as_echo "$as_val"'`
13393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13394 $as_echo "$ac_res" >&6; }
13395
13396 fi
13397 as_val=`eval 'as_val=${'$as_ac_Header'}
13398 $as_echo "$as_val"'`
13399 if test "x$as_val" = x""yes; then
13400 cat >>confdefs.h <<_ACEOF
13401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13402 _ACEOF
13403
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_GETOPTLONG 1
13406 _ACEOF
13407
13408 fi
13409
13410 done
13411
13412
13413 ################################################################################
13414 if test x$READLINE != xno; then
13415 lvm_saved_libs=$LIBS
13416 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13417 $as_echo_n "checking for library containing tgetent... " >&6; }
13418 if test "${ac_cv_search_tgetent+set}" = set; then
13419 $as_echo_n "(cached) " >&6
13420 else
13421 ac_func_search_save_LIBS=$LIBS
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char tgetent ();
13436 int
13437 main ()
13438 {
13439 return tgetent ();
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 for ac_lib in '' tinfo ncurses curses termcap termlib; do
13445 if test -z "$ac_lib"; then
13446 ac_res="none required"
13447 else
13448 ac_res=-l$ac_lib
13449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13450 fi
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452 if { (ac_try="$ac_link"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456 esac
13457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13458 $as_echo "$ac_try_echo") >&5
13459 (eval "$ac_link") 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest$ac_exeext && {
13469 test "$cross_compiling" = yes ||
13470 $as_test_x conftest$ac_exeext
13471 }; then
13472 ac_cv_search_tgetent=$ac_res
13473 else
13474 $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477
13478 fi
13479
13480 rm -rf conftest.dSYM
13481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13482 conftest$ac_exeext
13483 if test "${ac_cv_search_tgetent+set}" = set; then
13484 break
13485 fi
13486 done
13487 if test "${ac_cv_search_tgetent+set}" = set; then
13488 :
13489 else
13490 ac_cv_search_tgetent=no
13491 fi
13492 rm conftest.$ac_ext
13493 LIBS=$ac_func_search_save_LIBS
13494 fi
13495 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13496 $as_echo "$ac_cv_search_tgetent" >&6; }
13497 ac_res=$ac_cv_search_tgetent
13498 if test "$ac_res" != no; then
13499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13500 READLINE_LIBS=$ac_cv_search_tgetent
13501 else
13502
13503 if test "$READLINE" = yes; then
13504 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13505 --enable-readline option (which is enabled by default). Either disable readline
13506 support with --disable-readline or download and install termcap from:
13507 ftp.gnu.org/gnu/termcap
13508 Note: if you are using precompiled packages you will also need the development
13509 package as well (which may be called termcap-devel or something similar).
13510 Note: (n)curses also seems to work as a substitute for termcap. This was
13511 not found either - but you could try installing that as well." >&5
13512 $as_echo "$as_me: error: termcap could not be found which is required for the
13513 --enable-readline option (which is enabled by default). Either disable readline
13514 support with --disable-readline or download and install termcap from:
13515 ftp.gnu.org/gnu/termcap
13516 Note: if you are using precompiled packages you will also need the development
13517 package as well (which may be called termcap-devel or something similar).
13518 Note: (n)curses also seems to work as a substitute for termcap. This was
13519 not found either - but you could try installing that as well." >&2;}
13520 { (exit 1); exit 1; }; }
13521 fi
13522 fi
13523
13524 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13525 $as_echo_n "checking for readline in -lreadline... " >&6; }
13526 if test "${ac_cv_lib_readline_readline+set}" = set; then
13527 $as_echo_n "(cached) " >&6
13528 else
13529 ac_check_lib_save_LIBS=$LIBS
13530 LIBS="-lreadline $LIBS"
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537
13538 /* Override any GCC internal prototype to avoid an error.
13539 Use char because int might match the return type of a GCC
13540 builtin and then its argument prototype would still apply. */
13541 #ifdef __cplusplus
13542 extern "C"
13543 #endif
13544 char readline ();
13545 int
13546 main ()
13547 {
13548 return readline ();
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext conftest$ac_exeext
13554 if { (ac_try="$ac_link"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558 esac
13559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13560 $as_echo "$ac_try_echo") >&5
13561 (eval "$ac_link") 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } && {
13568 test -z "$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13570 } && test -s conftest$ac_exeext && {
13571 test "$cross_compiling" = yes ||
13572 $as_test_x conftest$ac_exeext
13573 }; then
13574 ac_cv_lib_readline_readline=yes
13575 else
13576 $as_echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_cv_lib_readline_readline=no
13580 fi
13581
13582 rm -rf conftest.dSYM
13583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13584 conftest$ac_exeext conftest.$ac_ext
13585 LIBS=$ac_check_lib_save_LIBS
13586 fi
13587 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13588 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13589 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13590
13591
13592 cat >>confdefs.h <<\_ACEOF
13593 #define READLINE_SUPPORT 1
13594 _ACEOF
13595
13596 LIBS=$lvm_saved_libs
13597 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13598 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13599 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13600 $as_echo_n "(cached) " >&6
13601 else
13602 ac_check_lib_save_LIBS=$LIBS
13603 LIBS="-lreadline $LIBS"
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h. */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610
13611 /* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply. */
13614 #ifdef __cplusplus
13615 extern "C"
13616 #endif
13617 char rl_line_buffer ();
13618 int
13619 main ()
13620 {
13621 return rl_line_buffer ();
13622 ;
13623 return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext conftest$ac_exeext
13627 if { (ac_try="$ac_link"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631 esac
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634 (eval "$ac_link") 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest$ac_exeext && {
13644 test "$cross_compiling" = yes ||
13645 $as_test_x conftest$ac_exeext
13646 }; then
13647 ac_cv_lib_readline_rl_line_buffer=yes
13648 else
13649 $as_echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652 ac_cv_lib_readline_rl_line_buffer=no
13653 fi
13654
13655 rm -rf conftest.dSYM
13656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13657 conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13659 fi
13660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13661 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13662 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13663 READLINE_LIBS="-lreadline"
13664 else
13665
13666 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13667 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13668 READLINE_LIBS="-lreadline $READLINE_LIBS"
13669
13670 fi
13671
13672 else
13673
13674 READLINE_LIBS=
13675 if test "$READLINE" = yes; then
13676 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13677 --enable-readline option (which is enabled by default). Either disable readline
13678 support with --disable-readline or download and install readline from:
13679 ftp.gnu.org/gnu/readline
13680 Note: if you are using precompiled packages you will also need the development
13681 package as well (which may be called readline-devel or something similar)." >&5
13682 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13683 --enable-readline option (which is enabled by default). Either disable readline
13684 support with --disable-readline or download and install readline from:
13685 ftp.gnu.org/gnu/readline
13686 Note: if you are using precompiled packages you will also need the development
13687 package as well (which may be called readline-devel or something similar)." >&2;}
13688 { (exit 1); exit 1; }; }
13689 fi
13690 fi
13691
13692 LIBS="$READLINE_LIBS $lvm_saved_libs"
13693
13694 for ac_func in rl_completion_matches
13695 do
13696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13698 $as_echo_n "checking for $ac_func... " >&6; }
13699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13700 $as_echo_n "(cached) " >&6
13701 else
13702 cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h. */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13710 #define $ac_func innocuous_$ac_func
13711
13712 /* System header to define __stub macros and hopefully few prototypes,
13713 which can conflict with char $ac_func (); below.
13714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13715 <limits.h> exists even on freestanding compilers. */
13716
13717 #ifdef __STDC__
13718 # include <limits.h>
13719 #else
13720 # include <assert.h>
13721 #endif
13722
13723 #undef $ac_func
13724
13725 /* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
13728 #ifdef __cplusplus
13729 extern "C"
13730 #endif
13731 char $ac_func ();
13732 /* The GNU C library defines this for functions which it implements
13733 to always fail with ENOSYS. Some functions are actually named
13734 something starting with __ and the normal name is an alias. */
13735 #if defined __stub_$ac_func || defined __stub___$ac_func
13736 choke me
13737 #endif
13738
13739 int
13740 main ()
13741 {
13742 return $ac_func ();
13743 ;
13744 return 0;
13745 }
13746 _ACEOF
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (ac_try="$ac_link"
13749 case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13752 esac
13753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13754 $as_echo "$ac_try_echo") >&5
13755 (eval "$ac_link") 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } && {
13762 test -z "$ac_c_werror_flag" ||
13763 test ! -s conftest.err
13764 } && test -s conftest$ac_exeext && {
13765 test "$cross_compiling" = yes ||
13766 $as_test_x conftest$ac_exeext
13767 }; then
13768 eval "$as_ac_var=yes"
13769 else
13770 $as_echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773 eval "$as_ac_var=no"
13774 fi
13775
13776 rm -rf conftest.dSYM
13777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13778 conftest$ac_exeext conftest.$ac_ext
13779 fi
13780 ac_res=`eval 'as_val=${'$as_ac_var'}
13781 $as_echo "$as_val"'`
13782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13783 $as_echo "$ac_res" >&6; }
13784 as_val=`eval 'as_val=${'$as_ac_var'}
13785 $as_echo "$as_val"'`
13786 if test "x$as_val" = x""yes; then
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13789 _ACEOF
13790
13791 fi
13792 done
13793
13794 LIBS=$lvm_saved_libs
13795 fi
13796
13797 ################################################################################
13798 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13799 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13800 # Check whether --enable-nls was given.
13801 if test "${enable_nls+set}" = set; then
13802 enableval=$enable_nls; INTL=$enableval
13803 else
13804 INTL=no
13805 fi
13806
13807 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13808 $as_echo "$INTL" >&6; }
13809
13810 if test x$INTL = xyes; then
13811 # FIXME - Move this - can be device-mapper too
13812 INTL_PACKAGE="lvm2"
13813 # Extract the first word of "msgfmt", so it can be a program name with args.
13814 set dummy msgfmt; ac_word=$2
13815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if test "${ac_cv_path_MSGFMT+set}" = set; then
13818 $as_echo_n "(cached) " >&6
13819 else
13820 case $MSGFMT in
13821 [\\/]* | ?:[\\/]*)
13822 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13823 ;;
13824 *)
13825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $PATH
13827 do
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13832 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13834 break 2
13835 fi
13836 done
13837 done
13838 IFS=$as_save_IFS
13839
13840 ;;
13841 esac
13842 fi
13843 MSGFMT=$ac_cv_path_MSGFMT
13844 if test -n "$MSGFMT"; then
13845 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13846 $as_echo "$MSGFMT" >&6; }
13847 else
13848 { $as_echo "$as_me:$LINENO: result: no" >&5
13849 $as_echo "no" >&6; }
13850 fi
13851
13852
13853 if [ "x$MSGFMT" == x ];
13854 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13855 " >&5
13856 $as_echo "$as_me: error: msgfmt not found in path $PATH
13857 " >&2;}
13858 { (exit 1); exit 1; }; }
13859 fi;
13860
13861
13862 # Check whether --with-localedir was given.
13863 if test "${with_localedir+set}" = set; then
13864 withval=$with_localedir; LOCALEDIR="$withval"
13865 else
13866 LOCALEDIR='${prefix}/share/locale'
13867 fi
13868
13869 fi
13870
13871 ################################################################################
13872
13873 # Check whether --with-confdir was given.
13874 if test "${with_confdir+set}" = set; then
13875 withval=$with_confdir; CONFDIR="$withval"
13876 else
13877 CONFDIR='/etc'
13878 fi
13879
13880
13881
13882 # Check whether --with-staticdir was given.
13883 if test "${with_staticdir+set}" = set; then
13884 withval=$with_staticdir; STATICDIR="$withval"
13885 else
13886 STATICDIR='${exec_prefix}/sbin'
13887 fi
13888
13889
13890
13891 # Check whether --with-usrlibdir was given.
13892 if test "${with_usrlibdir+set}" = set; then
13893 withval=$with_usrlibdir; usrlibdir="$withval"
13894 else
13895 usrlibdir='${prefix}/lib'
13896 fi
13897
13898
13899
13900 # Check whether --with-usrsbindir was given.
13901 if test "${with_usrsbindir+set}" = set; then
13902 withval=$with_usrsbindir; usrsbindir="$withval"
13903 else
13904 usrsbindir='${prefix}/sbin'
13905 fi
13906
13907
13908 ################################################################################
13909
13910 # Check whether --with-udev_prefix was given.
13911 if test "${with_udev_prefix+set}" = set; then
13912 withval=$with_udev_prefix; udev_prefix="$withval"
13913 else
13914 udev_prefix='${exec_prefix}'
13915 fi
13916
13917
13918
13919 # Check whether --with-udevdir was given.
13920 if test "${with_udevdir+set}" = set; then
13921 withval=$with_udevdir; udevdir="$withval"
13922 else
13923 udevdir='${udev_prefix}/lib/udev/rules.d'
13924 fi
13925
13926
13927 ################################################################################
13928 if test x$READLINE = xyes; then
13929
13930
13931 for ac_header in readline/readline.h readline/history.h
13932 do
13933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13935 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13936 $as_echo_n "checking for $ac_header... " >&6; }
13937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13938 $as_echo_n "(cached) " >&6
13939 fi
13940 ac_res=`eval 'as_val=${'$as_ac_Header'}
13941 $as_echo "$as_val"'`
13942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13943 $as_echo "$ac_res" >&6; }
13944 else
13945 # Is the header compilable?
13946 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13947 $as_echo_n "checking $ac_header usability... " >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <$ac_header>
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962 esac
13963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13964 $as_echo "$ac_try_echo") >&5
13965 (eval "$ac_compile") 2>conftest.er1
13966 ac_status=$?
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && {
13972 test -z "$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13974 } && test -s conftest.$ac_objext; then
13975 ac_header_compiler=yes
13976 else
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 ac_header_compiler=no
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13985 $as_echo "$ac_header_compiler" >&6; }
13986
13987 # Is the header present?
13988 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13989 $as_echo_n "checking $ac_header presence... " >&6; }
13990 cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h. */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 #include <$ac_header>
13997 _ACEOF
13998 if { (ac_try="$ac_cpp conftest.$ac_ext"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002 esac
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } >/dev/null && {
14012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 }; then
14015 ac_header_preproc=yes
14016 else
14017 $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_preproc=no
14021 fi
14022
14023 rm -f conftest.err conftest.$ac_ext
14024 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025 $as_echo "$ac_header_preproc" >&6; }
14026
14027 # So? What about this header?
14028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14029 yes:no: )
14030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14031 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14034 ac_header_preproc=yes
14035 ;;
14036 no:yes:* )
14037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14038 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14040 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14042 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14044 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14046 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14048 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14049
14050 ;;
14051 esac
14052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14053 $as_echo_n "checking for $ac_header... " >&6; }
14054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14055 $as_echo_n "(cached) " >&6
14056 else
14057 eval "$as_ac_Header=\$ac_header_preproc"
14058 fi
14059 ac_res=`eval 'as_val=${'$as_ac_Header'}
14060 $as_echo "$as_val"'`
14061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14062 $as_echo "$ac_res" >&6; }
14063
14064 fi
14065 as_val=`eval 'as_val=${'$as_ac_Header'}
14066 $as_echo "$as_val"'`
14067 if test "x$as_val" = x""yes; then
14068 cat >>confdefs.h <<_ACEOF
14069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14070 _ACEOF
14071
14072 else
14073 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14074 $as_echo "$as_me: error: bailing out" >&2;}
14075 { (exit 1); exit 1; }; }
14076 fi
14077
14078 done
14079
14080 fi
14081
14082 if test x$CLVMD != xnone; then
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093 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
14094 do
14095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14097 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 $as_echo_n "checking for $ac_header... " >&6; }
14099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14100 $as_echo_n "(cached) " >&6
14101 fi
14102 ac_res=`eval 'as_val=${'$as_ac_Header'}
14103 $as_echo "$as_val"'`
14104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14105 $as_echo "$ac_res" >&6; }
14106 else
14107 # Is the header compilable?
14108 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14109 $as_echo_n "checking $ac_header usability... " >&6; }
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h. */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 $ac_includes_default
14117 #include <$ac_header>
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124 esac
14125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14126 $as_echo "$ac_try_echo") >&5
14127 (eval "$ac_compile") 2>conftest.er1
14128 ac_status=$?
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest.$ac_objext; then
14137 ac_header_compiler=yes
14138 else
14139 $as_echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_header_compiler=no
14143 fi
14144
14145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 $as_echo "$ac_header_compiler" >&6; }
14148
14149 # Is the header present?
14150 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151 $as_echo_n "checking $ac_header presence... " >&6; }
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <$ac_header>
14159 _ACEOF
14160 if { (ac_try="$ac_cpp conftest.$ac_ext"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164 esac
14165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14166 $as_echo "$ac_try_echo") >&5
14167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } >/dev/null && {
14174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 }; then
14177 ac_header_preproc=yes
14178 else
14179 $as_echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_header_preproc=no
14183 fi
14184
14185 rm -f conftest.err conftest.$ac_ext
14186 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187 $as_echo "$ac_header_preproc" >&6; }
14188
14189 # So? What about this header?
14190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14191 yes:no: )
14192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14195 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14196 ac_header_preproc=yes
14197 ;;
14198 no:yes:* )
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14202 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14204 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14206 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14208 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14210 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14211
14212 ;;
14213 esac
14214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 $as_echo_n "checking for $ac_header... " >&6; }
14216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14217 $as_echo_n "(cached) " >&6
14218 else
14219 eval "$as_ac_Header=\$ac_header_preproc"
14220 fi
14221 ac_res=`eval 'as_val=${'$as_ac_Header'}
14222 $as_echo "$as_val"'`
14223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14224 $as_echo "$ac_res" >&6; }
14225
14226 fi
14227 as_val=`eval 'as_val=${'$as_ac_Header'}
14228 $as_echo "$as_val"'`
14229 if test "x$as_val" = x""yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 _ACEOF
14233
14234 else
14235 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14236 $as_echo "$as_me: error: bailing out" >&2;}
14237 { (exit 1); exit 1; }; }
14238 fi
14239
14240 done
14241
14242
14243
14244
14245
14246
14247 for ac_func in dup2 getmntent memmove select socket
14248 do
14249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14250 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14251 $as_echo_n "checking for $ac_func... " >&6; }
14252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14263 #define $ac_func innocuous_$ac_func
14264
14265 /* System header to define __stub macros and hopefully few prototypes,
14266 which can conflict with char $ac_func (); below.
14267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14268 <limits.h> exists even on freestanding compilers. */
14269
14270 #ifdef __STDC__
14271 # include <limits.h>
14272 #else
14273 # include <assert.h>
14274 #endif
14275
14276 #undef $ac_func
14277
14278 /* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply. */
14281 #ifdef __cplusplus
14282 extern "C"
14283 #endif
14284 char $ac_func ();
14285 /* The GNU C library defines this for functions which it implements
14286 to always fail with ENOSYS. Some functions are actually named
14287 something starting with __ and the normal name is an alias. */
14288 #if defined __stub_$ac_func || defined __stub___$ac_func
14289 choke me
14290 #endif
14291
14292 int
14293 main ()
14294 {
14295 return $ac_func ();
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (ac_try="$ac_link"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305 esac
14306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14307 $as_echo "$ac_try_echo") >&5
14308 (eval "$ac_link") 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest$ac_exeext && {
14318 test "$cross_compiling" = yes ||
14319 $as_test_x conftest$ac_exeext
14320 }; then
14321 eval "$as_ac_var=yes"
14322 else
14323 $as_echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 eval "$as_ac_var=no"
14327 fi
14328
14329 rm -rf conftest.dSYM
14330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14331 conftest$ac_exeext conftest.$ac_ext
14332 fi
14333 ac_res=`eval 'as_val=${'$as_ac_var'}
14334 $as_echo "$as_val"'`
14335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14336 $as_echo "$ac_res" >&6; }
14337 as_val=`eval 'as_val=${'$as_ac_var'}
14338 $as_echo "$as_val"'`
14339 if test "x$as_val" = x""yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14342 _ACEOF
14343
14344 else
14345 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14346 $as_echo "$as_me: error: bailing out" >&2;}
14347 { (exit 1); exit 1; }; }
14348 fi
14349 done
14350
14351 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14352 # -lseq on Dynix/PTX, -lgen on Unixware.
14353 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14354 $as_echo_n "checking for library containing getmntent... " >&6; }
14355 if test "${ac_cv_search_getmntent+set}" = set; then
14356 $as_echo_n "(cached) " >&6
14357 else
14358 ac_func_search_save_LIBS=$LIBS
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14369 #ifdef __cplusplus
14370 extern "C"
14371 #endif
14372 char getmntent ();
14373 int
14374 main ()
14375 {
14376 return getmntent ();
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 for ac_lib in '' sun seq gen; do
14382 if test -z "$ac_lib"; then
14383 ac_res="none required"
14384 else
14385 ac_res=-l$ac_lib
14386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14387 fi
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393 esac
14394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14395 $as_echo "$ac_try_echo") >&5
14396 (eval "$ac_link") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext && {
14406 test "$cross_compiling" = yes ||
14407 $as_test_x conftest$ac_exeext
14408 }; then
14409 ac_cv_search_getmntent=$ac_res
14410 else
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414
14415 fi
14416
14417 rm -rf conftest.dSYM
14418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14419 conftest$ac_exeext
14420 if test "${ac_cv_search_getmntent+set}" = set; then
14421 break
14422 fi
14423 done
14424 if test "${ac_cv_search_getmntent+set}" = set; then
14425 :
14426 else
14427 ac_cv_search_getmntent=no
14428 fi
14429 rm conftest.$ac_ext
14430 LIBS=$ac_func_search_save_LIBS
14431 fi
14432 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14433 $as_echo "$ac_cv_search_getmntent" >&6; }
14434 ac_res=$ac_cv_search_getmntent
14435 if test "$ac_res" != no; then
14436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14437 ac_cv_func_getmntent=yes
14438
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_GETMNTENT 1
14441 _ACEOF
14442
14443 else
14444 ac_cv_func_getmntent=no
14445 fi
14446
14447
14448 # AC_FUNC_REALLOC
14449
14450
14451 for ac_header in sys/select.h sys/socket.h
14452 do
14453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 $as_echo_n "checking for $ac_header... " >&6; }
14457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14458 $as_echo_n "(cached) " >&6
14459 fi
14460 ac_res=`eval 'as_val=${'$as_ac_Header'}
14461 $as_echo "$as_val"'`
14462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14463 $as_echo "$ac_res" >&6; }
14464 else
14465 # Is the header compilable?
14466 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14467 $as_echo_n "checking $ac_header usability... " >&6; }
14468 cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 $ac_includes_default
14475 #include <$ac_header>
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (ac_try="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482 esac
14483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14484 $as_echo "$ac_try_echo") >&5
14485 (eval "$ac_compile") 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest.$ac_objext; then
14495 ac_header_compiler=yes
14496 else
14497 $as_echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 ac_header_compiler=no
14501 fi
14502
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 $as_echo "$ac_header_compiler" >&6; }
14506
14507 # Is the header present?
14508 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 $as_echo_n "checking $ac_header presence... " >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14517 _ACEOF
14518 if { (ac_try="$ac_cpp conftest.$ac_ext"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } >/dev/null && {
14532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 }; then
14535 ac_header_preproc=yes
14536 else
14537 $as_echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 ac_header_preproc=no
14541 fi
14542
14543 rm -f conftest.err conftest.$ac_ext
14544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545 $as_echo "$ac_header_preproc" >&6; }
14546
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 yes:no: )
14550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14554 ac_header_preproc=yes
14555 ;;
14556 no:yes:* )
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14569
14570 ;;
14571 esac
14572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14573 $as_echo_n "checking for $ac_header... " >&6; }
14574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14575 $as_echo_n "(cached) " >&6
14576 else
14577 eval "$as_ac_Header=\$ac_header_preproc"
14578 fi
14579 ac_res=`eval 'as_val=${'$as_ac_Header'}
14580 $as_echo "$as_val"'`
14581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14582 $as_echo "$ac_res" >&6; }
14583
14584 fi
14585 as_val=`eval 'as_val=${'$as_ac_Header'}
14586 $as_echo "$as_val"'`
14587 if test "x$as_val" = x""yes; then
14588 cat >>confdefs.h <<_ACEOF
14589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590 _ACEOF
14591
14592 fi
14593
14594 done
14595
14596 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14597 $as_echo_n "checking types of arguments for select... " >&6; }
14598 if test "${ac_cv_func_select_args+set}" = set; then
14599 $as_echo_n "(cached) " >&6
14600 else
14601 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14602 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14603 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h. */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 $ac_includes_default
14611 #ifdef HAVE_SYS_SELECT_H
14612 # include <sys/select.h>
14613 #endif
14614 #ifdef HAVE_SYS_SOCKET_H
14615 # include <sys/socket.h>
14616 #endif
14617
14618 int
14619 main ()
14620 {
14621 extern int select ($ac_arg1,
14622 $ac_arg234, $ac_arg234, $ac_arg234,
14623 $ac_arg5);
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635 $as_echo "$ac_try_echo") >&5
14636 (eval "$ac_compile") 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest.$ac_objext; then
14646 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14647 else
14648 $as_echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14650
14651
14652 fi
14653
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 done
14656 done
14657 done
14658 # Provide a safe default value.
14659 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14660
14661 fi
14662 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14663 $as_echo "$ac_cv_func_select_args" >&6; }
14664 ac_save_IFS=$IFS; IFS=','
14665 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14666 IFS=$ac_save_IFS
14667 shift
14668
14669 cat >>confdefs.h <<_ACEOF
14670 #define SELECT_TYPE_ARG1 $1
14671 _ACEOF
14672
14673
14674 cat >>confdefs.h <<_ACEOF
14675 #define SELECT_TYPE_ARG234 ($2)
14676 _ACEOF
14677
14678
14679 cat >>confdefs.h <<_ACEOF
14680 #define SELECT_TYPE_ARG5 ($3)
14681 _ACEOF
14682
14683 rm -f conftest*
14684
14685 fi
14686
14687 if test x$CLUSTER != xnone; then
14688
14689
14690 for ac_header in sys/socket.h sys/un.h
14691 do
14692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 $as_echo_n "checking for $ac_header... " >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697 $as_echo_n "(cached) " >&6
14698 fi
14699 ac_res=`eval 'as_val=${'$as_ac_Header'}
14700 $as_echo "$as_val"'`
14701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14702 $as_echo "$ac_res" >&6; }
14703 else
14704 # Is the header compilable?
14705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14706 $as_echo_n "checking $ac_header usability... " >&6; }
14707 cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 $ac_includes_default
14714 #include <$ac_header>
14715 _ACEOF
14716 rm -f conftest.$ac_objext
14717 if { (ac_try="$ac_compile"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724 (eval "$ac_compile") 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest.$ac_objext; then
14734 ac_header_compiler=yes
14735 else
14736 $as_echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739 ac_header_compiler=no
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 $as_echo "$ac_header_compiler" >&6; }
14745
14746 # Is the header present?
14747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 $as_echo_n "checking $ac_header presence... " >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <$ac_header>
14756 _ACEOF
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761 esac
14762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763 $as_echo "$ac_try_echo") >&5
14764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } >/dev/null && {
14771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 }; then
14774 ac_header_preproc=yes
14775 else
14776 $as_echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779 ac_header_preproc=no
14780 fi
14781
14782 rm -f conftest.err conftest.$ac_ext
14783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14784 $as_echo "$ac_header_preproc" >&6; }
14785
14786 # So? What about this header?
14787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 yes:no: )
14789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14793 ac_header_preproc=yes
14794 ;;
14795 no:yes:* )
14796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14808
14809 ;;
14810 esac
14811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 $as_echo_n "checking for $ac_header... " >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814 $as_echo_n "(cached) " >&6
14815 else
14816 eval "$as_ac_Header=\$ac_header_preproc"
14817 fi
14818 ac_res=`eval 'as_val=${'$as_ac_Header'}
14819 $as_echo "$as_val"'`
14820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14821 $as_echo "$ac_res" >&6; }
14822
14823 fi
14824 as_val=`eval 'as_val=${'$as_ac_Header'}
14825 $as_echo "$as_val"'`
14826 if test "x$as_val" = x""yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14829 _ACEOF
14830
14831 else
14832 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14833 $as_echo "$as_me: error: bailing out" >&2;}
14834 { (exit 1); exit 1; }; }
14835 fi
14836
14837 done
14838
14839
14840 for ac_func in socket
14841 do
14842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14844 $as_echo_n "checking for $ac_func... " >&6; }
14845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14846 $as_echo_n "(cached) " >&6
14847 else
14848 cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h. */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14856 #define $ac_func innocuous_$ac_func
14857
14858 /* System header to define __stub macros and hopefully few prototypes,
14859 which can conflict with char $ac_func (); below.
14860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14861 <limits.h> exists even on freestanding compilers. */
14862
14863 #ifdef __STDC__
14864 # include <limits.h>
14865 #else
14866 # include <assert.h>
14867 #endif
14868
14869 #undef $ac_func
14870
14871 /* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
14874 #ifdef __cplusplus
14875 extern "C"
14876 #endif
14877 char $ac_func ();
14878 /* The GNU C library defines this for functions which it implements
14879 to always fail with ENOSYS. Some functions are actually named
14880 something starting with __ and the normal name is an alias. */
14881 #if defined __stub_$ac_func || defined __stub___$ac_func
14882 choke me
14883 #endif
14884
14885 int
14886 main ()
14887 {
14888 return $ac_func ();
14889 ;
14890 return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898 esac
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901 (eval "$ac_link") 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } && {
14908 test -z "$ac_c_werror_flag" ||
14909 test ! -s conftest.err
14910 } && test -s conftest$ac_exeext && {
14911 test "$cross_compiling" = yes ||
14912 $as_test_x conftest$ac_exeext
14913 }; then
14914 eval "$as_ac_var=yes"
14915 else
14916 $as_echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919 eval "$as_ac_var=no"
14920 fi
14921
14922 rm -rf conftest.dSYM
14923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14924 conftest$ac_exeext conftest.$ac_ext
14925 fi
14926 ac_res=`eval 'as_val=${'$as_ac_var'}
14927 $as_echo "$as_val"'`
14928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14929 $as_echo "$ac_res" >&6; }
14930 as_val=`eval 'as_val=${'$as_ac_var'}
14931 $as_echo "$as_val"'`
14932 if test "x$as_val" = x""yes; then
14933 cat >>confdefs.h <<_ACEOF
14934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14935 _ACEOF
14936
14937 else
14938 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14939 $as_echo "$as_me: error: bailing out" >&2;}
14940 { (exit 1); exit 1; }; }
14941 fi
14942 done
14943
14944 fi
14945
14946 if test x$HAVE_LIBDL = xyes; then
14947
14948 for ac_header in dlfcn.h
14949 do
14950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14953 $as_echo_n "checking for $ac_header... " >&6; }
14954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14955 $as_echo_n "(cached) " >&6
14956 fi
14957 ac_res=`eval 'as_val=${'$as_ac_Header'}
14958 $as_echo "$as_val"'`
14959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14960 $as_echo "$ac_res" >&6; }
14961 else
14962 # Is the header compilable?
14963 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14964 $as_echo_n "checking $ac_header usability... " >&6; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 $ac_includes_default
14972 #include <$ac_header>
14973 _ACEOF
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979 esac
14980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14981 $as_echo "$ac_try_echo") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14983 ac_status=$?
14984 grep -v '^ *+' conftest.er1 >conftest.err
14985 rm -f conftest.er1
14986 cat conftest.err >&5
14987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
14992 ac_header_compiler=yes
14993 else
14994 $as_echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_header_compiler=no
14998 fi
14999
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002 $as_echo "$ac_header_compiler" >&6; }
15003
15004 # Is the header present?
15005 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006 $as_echo_n "checking $ac_header presence... " >&6; }
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h. */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <$ac_header>
15014 _ACEOF
15015 if { (ac_try="$ac_cpp conftest.$ac_ext"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019 esac
15020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15021 $as_echo "$ac_try_echo") >&5
15022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } >/dev/null && {
15029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 }; then
15032 ac_header_preproc=yes
15033 else
15034 $as_echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037 ac_header_preproc=no
15038 fi
15039
15040 rm -f conftest.err conftest.$ac_ext
15041 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042 $as_echo "$ac_header_preproc" >&6; }
15043
15044 # So? What about this header?
15045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 yes:no: )
15047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15048 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15051 ac_header_preproc=yes
15052 ;;
15053 no:yes:* )
15054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15055 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15057 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15059 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15061 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15065 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15066
15067 ;;
15068 esac
15069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15070 $as_echo_n "checking for $ac_header... " >&6; }
15071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072 $as_echo_n "(cached) " >&6
15073 else
15074 eval "$as_ac_Header=\$ac_header_preproc"
15075 fi
15076 ac_res=`eval 'as_val=${'$as_ac_Header'}
15077 $as_echo "$as_val"'`
15078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15079 $as_echo "$ac_res" >&6; }
15080
15081 fi
15082 as_val=`eval 'as_val=${'$as_ac_Header'}
15083 $as_echo "$as_val"'`
15084 if test "x$as_val" = x""yes; then
15085 cat >>confdefs.h <<_ACEOF
15086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15087 _ACEOF
15088
15089 else
15090 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15091 $as_echo "$as_me: error: bailing out" >&2;}
15092 { (exit 1); exit 1; }; }
15093 fi
15094
15095 done
15096
15097 fi
15098
15099 if test x$INTL = xyes; then
15100
15101 for ac_header in libintl.h
15102 do
15103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15106 $as_echo_n "checking for $ac_header... " >&6; }
15107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15108 $as_echo_n "(cached) " >&6
15109 fi
15110 ac_res=`eval 'as_val=${'$as_ac_Header'}
15111 $as_echo "$as_val"'`
15112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15113 $as_echo "$ac_res" >&6; }
15114 else
15115 # Is the header compilable?
15116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15117 $as_echo_n "checking $ac_header usability... " >&6; }
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h. */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15125 #include <$ac_header>
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132 esac
15133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134 $as_echo "$ac_try_echo") >&5
15135 (eval "$ac_compile") 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest.$ac_objext; then
15145 ac_header_compiler=yes
15146 else
15147 $as_echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ac_header_compiler=no
15151 fi
15152
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15155 $as_echo "$ac_header_compiler" >&6; }
15156
15157 # Is the header present?
15158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15159 $as_echo_n "checking $ac_header presence... " >&6; }
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #include <$ac_header>
15167 _ACEOF
15168 if { (ac_try="$ac_cpp conftest.$ac_ext"
15169 case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172 esac
15173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15174 $as_echo "$ac_try_echo") >&5
15175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } >/dev/null && {
15182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15183 test ! -s conftest.err
15184 }; then
15185 ac_header_preproc=yes
15186 else
15187 $as_echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_header_preproc=no
15191 fi
15192
15193 rm -f conftest.err conftest.$ac_ext
15194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195 $as_echo "$ac_header_preproc" >&6; }
15196
15197 # So? What about this header?
15198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199 yes:no: )
15200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15204 ac_header_preproc=yes
15205 ;;
15206 no:yes:* )
15207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15219
15220 ;;
15221 esac
15222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 $as_echo_n "checking for $ac_header... " >&6; }
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 $as_echo_n "(cached) " >&6
15226 else
15227 eval "$as_ac_Header=\$ac_header_preproc"
15228 fi
15229 ac_res=`eval 'as_val=${'$as_ac_Header'}
15230 $as_echo "$as_val"'`
15231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15232 $as_echo "$ac_res" >&6; }
15233
15234 fi
15235 as_val=`eval 'as_val=${'$as_ac_Header'}
15236 $as_echo "$as_val"'`
15237 if test "x$as_val" = x""yes; then
15238 cat >>confdefs.h <<_ACEOF
15239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15240 _ACEOF
15241
15242 else
15243 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15244 $as_echo "$as_me: error: bailing out" >&2;}
15245 { (exit 1); exit 1; }; }
15246 fi
15247
15248 done
15249
15250 fi
15251
15252 if test x$UDEV_SYNC = xyes; then
15253
15254
15255 for ac_header in sys/ipc.h sys/sem.h
15256 do
15257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 $as_echo_n "checking for $ac_header... " >&6; }
15261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15262 $as_echo_n "(cached) " >&6
15263 fi
15264 ac_res=`eval 'as_val=${'$as_ac_Header'}
15265 $as_echo "$as_val"'`
15266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15267 $as_echo "$ac_res" >&6; }
15268 else
15269 # Is the header compilable?
15270 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15271 $as_echo_n "checking $ac_header usability... " >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h. */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 $ac_includes_default
15279 #include <$ac_header>
15280 _ACEOF
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15286 esac
15287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288 $as_echo "$ac_try_echo") >&5
15289 (eval "$ac_compile") 2>conftest.er1
15290 ac_status=$?
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
15294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest.$ac_objext; then
15299 ac_header_compiler=yes
15300 else
15301 $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 ac_header_compiler=no
15305 fi
15306
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15309 $as_echo "$ac_header_compiler" >&6; }
15310
15311 # Is the header present?
15312 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15313 $as_echo_n "checking $ac_header presence... " >&6; }
15314 cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h. */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 #include <$ac_header>
15321 _ACEOF
15322 if { (ac_try="$ac_cpp conftest.$ac_ext"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328 $as_echo "$ac_try_echo") >&5
15329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } >/dev/null && {
15336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 }; then
15339 ac_header_preproc=yes
15340 else
15341 $as_echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_preproc=no
15345 fi
15346
15347 rm -f conftest.err conftest.$ac_ext
15348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15349 $as_echo "$ac_header_preproc" >&6; }
15350
15351 # So? What about this header?
15352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15353 yes:no: )
15354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15355 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15358 ac_header_preproc=yes
15359 ;;
15360 no:yes:* )
15361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15362 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15364 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15366 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15368 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15372 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15373
15374 ;;
15375 esac
15376 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15377 $as_echo_n "checking for $ac_header... " >&6; }
15378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15379 $as_echo_n "(cached) " >&6
15380 else
15381 eval "$as_ac_Header=\$ac_header_preproc"
15382 fi
15383 ac_res=`eval 'as_val=${'$as_ac_Header'}
15384 $as_echo "$as_val"'`
15385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15386 $as_echo "$ac_res" >&6; }
15387
15388 fi
15389 as_val=`eval 'as_val=${'$as_ac_Header'}
15390 $as_echo "$as_val"'`
15391 if test "x$as_val" = x""yes; then
15392 cat >>confdefs.h <<_ACEOF
15393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15394 _ACEOF
15395
15396 else
15397 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15398 $as_echo "$as_me: error: bailing out" >&2;}
15399 { (exit 1); exit 1; }; }
15400 fi
15401
15402 done
15403
15404 fi
15405
15406 ################################################################################
15407 # Extract the first word of "modprobe", so it can be a program name with args.
15408 set dummy modprobe; ac_word=$2
15409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15410 $as_echo_n "checking for $ac_word... " >&6; }
15411 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15412 $as_echo_n "(cached) " >&6
15413 else
15414 case $MODPROBE_CMD in
15415 [\\/]* | ?:[\\/]*)
15416 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15417 ;;
15418 *)
15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420 for as_dir in $PATH
15421 do
15422 IFS=$as_save_IFS
15423 test -z "$as_dir" && as_dir=.
15424 for ac_exec_ext in '' $ac_executable_extensions; do
15425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15426 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15428 break 2
15429 fi
15430 done
15431 done
15432 IFS=$as_save_IFS
15433
15434 ;;
15435 esac
15436 fi
15437 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15438 if test -n "$MODPROBE_CMD"; then
15439 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15440 $as_echo "$MODPROBE_CMD" >&6; }
15441 else
15442 { $as_echo "$as_me:$LINENO: result: no" >&5
15443 $as_echo "no" >&6; }
15444 fi
15445
15446
15447
15448 if test x$MODPROBE_CMD != x; then
15449
15450 cat >>confdefs.h <<_ACEOF
15451 #define MODPROBE_CMD "$MODPROBE_CMD"
15452 _ACEOF
15453
15454 fi
15455
15456 ################################################################################
15457
15458
15459 if test "$BUILD_DMEVENTD" = yes; then
15460
15461 # Check whether --with-dmeventd-pidfile was given.
15462 if test "${with_dmeventd_pidfile+set}" = set; then
15463 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15464 #define DMEVENTD_PIDFILE "$withval"
15465 _ACEOF
15466
15467 else
15468 cat >>confdefs.h <<_ACEOF
15469 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15470 _ACEOF
15471
15472 fi
15473
15474 fi
15475
15476
15477
15478 if test "$BUILD_DMEVENTD" = yes; then
15479 dmeventd_prefix="$exec_prefix"
15480 if test "x$dmeventd_prefix" = "xNONE"; then
15481 dmeventd_prefix="$prefix"
15482 fi
15483 if test "x$dmeventd_prefix" = "xNONE"; then
15484 dmeventd_prefix=""
15485 fi
15486
15487 # Check whether --with-dmeventd-path was given.
15488 if test "${with_dmeventd_path+set}" = set; then
15489 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15490 #define DMEVENTD_PATH "$withval"
15491 _ACEOF
15492
15493 else
15494 cat >>confdefs.h <<_ACEOF
15495 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15496 _ACEOF
15497
15498 fi
15499
15500 fi
15501
15502 ################################################################################
15503
15504
15505
15506 # Check whether --with-default-system-dir was given.
15507 if test "${with_default_system_dir+set}" = set; then
15508 withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval"
15509 else
15510 DEFAULT_SYS_DIR="/etc/lvm"
15511 fi
15512
15513 cat >>confdefs.h <<_ACEOF
15514 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
15515 _ACEOF
15516
15517
15518
15519
15520
15521 # Check whether --with-default-archive-subdir was given.
15522 if test "${with_default_archive_subdir+set}" = set; then
15523 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval"
15524 else
15525 DEFAULT_ARCHIVE_SUBDIR="archive"
15526 fi
15527
15528 cat >>confdefs.h <<_ACEOF
15529 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
15530 _ACEOF
15531
15532
15533
15534
15535
15536 # Check whether --with-default-backup-subdir was given.
15537 if test "${with_default_backup_subdir+set}" = set; then
15538 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval"
15539 else
15540 DEFAULT_BACKUP_SUBDIR="backup"
15541 fi
15542
15543 cat >>confdefs.h <<_ACEOF
15544 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
15545 _ACEOF
15546
15547
15548
15549
15550
15551 # Check whether --with-default-cache-subdir was given.
15552 if test "${with_default_cache_subdir+set}" = set; then
15553 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval"
15554 else
15555 DEFAULT_CACHE_SUBDIR="cache"
15556 fi
15557
15558 cat >>confdefs.h <<_ACEOF
15559 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
15560 _ACEOF
15561
15562
15563
15564
15565
15566 # Check whether --with-default-locking-dir was given.
15567 if test "${with_default_locking_dir+set}" = set; then
15568 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval"
15569 else
15570 DEFAULT_LOCK_DIR="/var/lock/lvm"
15571 fi
15572
15573 cat >>confdefs.h <<_ACEOF
15574 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
15575 _ACEOF
15576
15577
15578 ################################################################################
15579 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15580 $as_echo_n "checking for kernel interface choice... " >&6; }
15581
15582 # Check whether --with-interface was given.
15583 if test "${with_interface+set}" = set; then
15584 withval=$with_interface; interface="$withval"
15585 else
15586 interface=ioctl
15587 fi
15588
15589 if [ "x$interface" != xioctl ];
15590 then
15591 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15592 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15593 { (exit 1); exit 1; }; }
15594 fi
15595 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15596 $as_echo "$interface" >&6; }
15597
15598 ################################################################################
15599 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15600
15601 cat >>confdefs.h <<_ACEOF
15602 #define DM_LIB_VERSION $DM_LIB_VERSION
15603 _ACEOF
15604
15605
15606 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15607
15608 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15609
15610 VER=`cat "$srcdir"/VERSION`
15611 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15612 VER=`echo "$VER" | $AWK '{print $1}'`
15613 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15614 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15615 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15616 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15617 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15618 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15619
15620 ################################################################################
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715 ################################################################################
15716 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/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"
15717
15718 cat >confcache <<\_ACEOF
15719 # This file is a shell script that caches the results of configure
15720 # tests run on this system so they can be shared between configure
15721 # scripts and configure runs, see configure's option --config-cache.
15722 # It is not useful on other systems. If it contains results you don't
15723 # want to keep, you may remove or edit it.
15724 #
15725 # config.status only pays attention to the cache file if you give it
15726 # the --recheck option to rerun configure.
15727 #
15728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15730 # following values.
15731
15732 _ACEOF
15733
15734 # The following way of writing the cache mishandles newlines in values,
15735 # but we know of no workaround that is simple, portable, and efficient.
15736 # So, we kill variables containing newlines.
15737 # Ultrix sh set writes to stderr and can't be redirected directly,
15738 # and sets the high bit in the cache file unless we assign to the vars.
15739 (
15740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15741 eval ac_val=\$$ac_var
15742 case $ac_val in #(
15743 *${as_nl}*)
15744 case $ac_var in #(
15745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15747 esac
15748 case $ac_var in #(
15749 _ | IFS | as_nl) ;; #(
15750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15751 *) $as_unset $ac_var ;;
15752 esac ;;
15753 esac
15754 done
15755
15756 (set) 2>&1 |
15757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15758 *${as_nl}ac_space=\ *)
15759 # `set' does not quote correctly, so add quotes (double-quote
15760 # substitution turns \\\\ into \\, and sed turns \\ into \).
15761 sed -n \
15762 "s/'/'\\\\''/g;
15763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15764 ;; #(
15765 *)
15766 # `set' quotes correctly as required by POSIX, so do not add quotes.
15767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15768 ;;
15769 esac |
15770 sort
15771 ) |
15772 sed '
15773 /^ac_cv_env_/b end
15774 t clear
15775 :clear
15776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15777 t end
15778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15779 :end' >>confcache
15780 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15781 if test -w "$cache_file"; then
15782 test "x$cache_file" != "x/dev/null" &&
15783 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15784 $as_echo "$as_me: updating cache $cache_file" >&6;}
15785 cat confcache >$cache_file
15786 else
15787 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15789 fi
15790 fi
15791 rm -f confcache
15792
15793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15794 # Let make expand exec_prefix.
15795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15796
15797 DEFS=-DHAVE_CONFIG_H
15798
15799 ac_libobjs=
15800 ac_ltlibobjs=
15801 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15802 # 1. Remove the extension, and $U if already installed.
15803 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15804 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15806 # will be set to the directory where LIBOBJS objects are built.
15807 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15808 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15809 done
15810 LIBOBJS=$ac_libobjs
15811
15812 LTLIBOBJS=$ac_ltlibobjs
15813
15814
15815
15816 : ${CONFIG_STATUS=./config.status}
15817 ac_write_fail=0
15818 ac_clean_files_save=$ac_clean_files
15819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15820 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15822 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15823 #! $SHELL
15824 # Generated by $as_me.
15825 # Run this file to recreate the current configuration.
15826 # Compiler output produced by configure, useful for debugging
15827 # configure, is in config.log if it exists.
15828
15829 debug=false
15830 ac_cs_recheck=false
15831 ac_cs_silent=false
15832 SHELL=\${CONFIG_SHELL-$SHELL}
15833 _ACEOF
15834
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836 ## --------------------- ##
15837 ## M4sh Initialization. ##
15838 ## --------------------- ##
15839
15840 # Be more Bourne compatible
15841 DUALCASE=1; export DUALCASE # for MKS sh
15842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15843 emulate sh
15844 NULLCMD=:
15845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15846 # is contrary to our usage. Disable this feature.
15847 alias -g '${1+"$@"}'='"$@"'
15848 setopt NO_GLOB_SUBST
15849 else
15850 case `(set -o) 2>/dev/null` in
15851 *posix*) set -o posix ;;
15852 esac
15853
15854 fi
15855
15856
15857
15858
15859 # PATH needs CR
15860 # Avoid depending upon Character Ranges.
15861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15864 as_cr_digits='0123456789'
15865 as_cr_alnum=$as_cr_Letters$as_cr_digits
15866
15867 as_nl='
15868 '
15869 export as_nl
15870 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15871 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15874 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15875 as_echo='printf %s\n'
15876 as_echo_n='printf %s'
15877 else
15878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15880 as_echo_n='/usr/ucb/echo -n'
15881 else
15882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15883 as_echo_n_body='eval
15884 arg=$1;
15885 case $arg in
15886 *"$as_nl"*)
15887 expr "X$arg" : "X\\(.*\\)$as_nl";
15888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15889 esac;
15890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15891 '
15892 export as_echo_n_body
15893 as_echo_n='sh -c $as_echo_n_body as_echo'
15894 fi
15895 export as_echo_body
15896 as_echo='sh -c $as_echo_body as_echo'
15897 fi
15898
15899 # The user is always right.
15900 if test "${PATH_SEPARATOR+set}" != set; then
15901 PATH_SEPARATOR=:
15902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15904 PATH_SEPARATOR=';'
15905 }
15906 fi
15907
15908 # Support unset when possible.
15909 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15910 as_unset=unset
15911 else
15912 as_unset=false
15913 fi
15914
15915
15916 # IFS
15917 # We need space, tab and new line, in precisely that order. Quoting is
15918 # there to prevent editors from complaining about space-tab.
15919 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15920 # splitting by setting IFS to empty value.)
15921 IFS=" "" $as_nl"
15922
15923 # Find who we are. Look in the path if we contain no directory separator.
15924 case $0 in
15925 *[\\/]* ) as_myself=$0 ;;
15926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15927 for as_dir in $PATH
15928 do
15929 IFS=$as_save_IFS
15930 test -z "$as_dir" && as_dir=.
15931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15932 done
15933 IFS=$as_save_IFS
15934
15935 ;;
15936 esac
15937 # We did not find ourselves, most probably we were run as `sh COMMAND'
15938 # in which case we are not to be found in the path.
15939 if test "x$as_myself" = x; then
15940 as_myself=$0
15941 fi
15942 if test ! -f "$as_myself"; then
15943 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15944 { (exit 1); exit 1; }
15945 fi
15946
15947 # Work around bugs in pre-3.0 UWIN ksh.
15948 for as_var in ENV MAIL MAILPATH
15949 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15950 done
15951 PS1='$ '
15952 PS2='> '
15953 PS4='+ '
15954
15955 # NLS nuisances.
15956 LC_ALL=C
15957 export LC_ALL
15958 LANGUAGE=C
15959 export LANGUAGE
15960
15961 # Required to use basename.
15962 if expr a : '\(a\)' >/dev/null 2>&1 &&
15963 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15964 as_expr=expr
15965 else
15966 as_expr=false
15967 fi
15968
15969 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15970 as_basename=basename
15971 else
15972 as_basename=false
15973 fi
15974
15975
15976 # Name of the executable.
15977 as_me=`$as_basename -- "$0" ||
15978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15979 X"$0" : 'X\(//\)$' \| \
15980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15981 $as_echo X/"$0" |
15982 sed '/^.*\/\([^/][^/]*\)\/*$/{
15983 s//\1/
15984 q
15985 }
15986 /^X\/\(\/\/\)$/{
15987 s//\1/
15988 q
15989 }
15990 /^X\/\(\/\).*/{
15991 s//\1/
15992 q
15993 }
15994 s/.*/./; q'`
15995
15996 # CDPATH.
15997 $as_unset CDPATH
15998
15999
16000
16001 as_lineno_1=$LINENO
16002 as_lineno_2=$LINENO
16003 test "x$as_lineno_1" != "x$as_lineno_2" &&
16004 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16005
16006 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16007 # uniformly replaced by the line number. The first 'sed' inserts a
16008 # line-number line after each line using $LINENO; the second 'sed'
16009 # does the real work. The second script uses 'N' to pair each
16010 # line-number line with the line containing $LINENO, and appends
16011 # trailing '-' during substitution so that $LINENO is not a special
16012 # case at line end.
16013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16014 # scripts with optimization help from Paolo Bonzini. Blame Lee
16015 # E. McMahon (1931-1989) for sed's syntax. :-)
16016 sed -n '
16017 p
16018 /[$]LINENO/=
16019 ' <$as_myself |
16020 sed '
16021 s/[$]LINENO.*/&-/
16022 t lineno
16023 b
16024 :lineno
16025 N
16026 :loop
16027 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16028 t loop
16029 s/-\n.*//
16030 ' >$as_me.lineno &&
16031 chmod +x "$as_me.lineno" ||
16032 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16033 { (exit 1); exit 1; }; }
16034
16035 # Don't try to exec as it changes $[0], causing all sort of problems
16036 # (the dirname of $[0] is not the place where we might find the
16037 # original and so on. Autoconf is especially sensitive to this).
16038 . "./$as_me.lineno"
16039 # Exit status is that of the last command.
16040 exit
16041 }
16042
16043
16044 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16045 as_dirname=dirname
16046 else
16047 as_dirname=false
16048 fi
16049
16050 ECHO_C= ECHO_N= ECHO_T=
16051 case `echo -n x` in
16052 -n*)
16053 case `echo 'x\c'` in
16054 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16055 *) ECHO_C='\c';;
16056 esac;;
16057 *)
16058 ECHO_N='-n';;
16059 esac
16060 if expr a : '\(a\)' >/dev/null 2>&1 &&
16061 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16062 as_expr=expr
16063 else
16064 as_expr=false
16065 fi
16066
16067 rm -f conf$$ conf$$.exe conf$$.file
16068 if test -d conf$$.dir; then
16069 rm -f conf$$.dir/conf$$.file
16070 else
16071 rm -f conf$$.dir
16072 mkdir conf$$.dir 2>/dev/null
16073 fi
16074 if (echo >conf$$.file) 2>/dev/null; then
16075 if ln -s conf$$.file conf$$ 2>/dev/null; then
16076 as_ln_s='ln -s'
16077 # ... but there are two gotchas:
16078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16080 # In both cases, we have to default to `cp -p'.
16081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16082 as_ln_s='cp -p'
16083 elif ln conf$$.file conf$$ 2>/dev/null; then
16084 as_ln_s=ln
16085 else
16086 as_ln_s='cp -p'
16087 fi
16088 else
16089 as_ln_s='cp -p'
16090 fi
16091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16092 rmdir conf$$.dir 2>/dev/null
16093
16094 if mkdir -p . 2>/dev/null; then
16095 as_mkdir_p=:
16096 else
16097 test -d ./-p && rmdir ./-p
16098 as_mkdir_p=false
16099 fi
16100
16101 if test -x / >/dev/null 2>&1; then
16102 as_test_x='test -x'
16103 else
16104 if ls -dL / >/dev/null 2>&1; then
16105 as_ls_L_option=L
16106 else
16107 as_ls_L_option=
16108 fi
16109 as_test_x='
16110 eval sh -c '\''
16111 if test -d "$1"; then
16112 test -d "$1/.";
16113 else
16114 case $1 in
16115 -*)set "./$1";;
16116 esac;
16117 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16118 ???[sx]*):;;*)false;;esac;fi
16119 '\'' sh
16120 '
16121 fi
16122 as_executable_p=$as_test_x
16123
16124 # Sed expression to map a string onto a valid CPP name.
16125 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16126
16127 # Sed expression to map a string onto a valid variable name.
16128 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16129
16130
16131 exec 6>&1
16132
16133 # Save the log message, to keep $[0] and so on meaningful, and to
16134 # report actual input values of CONFIG_FILES etc. instead of their
16135 # values after options handling.
16136 ac_log="
16137 This file was extended by $as_me, which was
16138 generated by GNU Autoconf 2.63. Invocation command line was
16139
16140 CONFIG_FILES = $CONFIG_FILES
16141 CONFIG_HEADERS = $CONFIG_HEADERS
16142 CONFIG_LINKS = $CONFIG_LINKS
16143 CONFIG_COMMANDS = $CONFIG_COMMANDS
16144 $ $0 $@
16145
16146 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16147 "
16148
16149 _ACEOF
16150
16151 case $ac_config_files in *"
16152 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16153 esac
16154
16155 case $ac_config_headers in *"
16156 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16157 esac
16158
16159
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16161 # Files that config.status was made for.
16162 config_files="$ac_config_files"
16163 config_headers="$ac_config_headers"
16164
16165 _ACEOF
16166
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 ac_cs_usage="\
16169 \`$as_me' instantiates files from templates according to the
16170 current configuration.
16171
16172 Usage: $0 [OPTION]... [FILE]...
16173
16174 -h, --help print this help, then exit
16175 -V, --version print version number and configuration settings, then exit
16176 -q, --quiet, --silent
16177 do not print progress messages
16178 -d, --debug don't remove temporary files
16179 --recheck update $as_me by reconfiguring in the same conditions
16180 --file=FILE[:TEMPLATE]
16181 instantiate the configuration file FILE
16182 --header=FILE[:TEMPLATE]
16183 instantiate the configuration header FILE
16184
16185 Configuration files:
16186 $config_files
16187
16188 Configuration headers:
16189 $config_headers
16190
16191 Report bugs to <bug-autoconf@gnu.org>."
16192
16193 _ACEOF
16194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16195 ac_cs_version="\\
16196 config.status
16197 configured by $0, generated by GNU Autoconf 2.63,
16198 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16199
16200 Copyright (C) 2008 Free Software Foundation, Inc.
16201 This config.status script is free software; the Free Software Foundation
16202 gives unlimited permission to copy, distribute and modify it."
16203
16204 ac_pwd='$ac_pwd'
16205 srcdir='$srcdir'
16206 INSTALL='$INSTALL'
16207 MKDIR_P='$MKDIR_P'
16208 AWK='$AWK'
16209 test -n "\$AWK" || AWK=awk
16210 _ACEOF
16211
16212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213 # The default lists apply if the user does not specify any file.
16214 ac_need_defaults=:
16215 while test $# != 0
16216 do
16217 case $1 in
16218 --*=*)
16219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16221 ac_shift=:
16222 ;;
16223 *)
16224 ac_option=$1
16225 ac_optarg=$2
16226 ac_shift=shift
16227 ;;
16228 esac
16229
16230 case $ac_option in
16231 # Handling of the options.
16232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16233 ac_cs_recheck=: ;;
16234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16235 $as_echo "$ac_cs_version"; exit ;;
16236 --debug | --debu | --deb | --de | --d | -d )
16237 debug=: ;;
16238 --file | --fil | --fi | --f )
16239 $ac_shift
16240 case $ac_optarg in
16241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16242 esac
16243 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16244 ac_need_defaults=false;;
16245 --header | --heade | --head | --hea )
16246 $ac_shift
16247 case $ac_optarg in
16248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16249 esac
16250 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16251 ac_need_defaults=false;;
16252 --he | --h)
16253 # Conflict between --help and --header
16254 { $as_echo "$as_me: error: ambiguous option: $1
16255 Try \`$0 --help' for more information." >&2
16256 { (exit 1); exit 1; }; };;
16257 --help | --hel | -h )
16258 $as_echo "$ac_cs_usage"; exit ;;
16259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16261 ac_cs_silent=: ;;
16262
16263 # This is an error.
16264 -*) { $as_echo "$as_me: error: unrecognized option: $1
16265 Try \`$0 --help' for more information." >&2
16266 { (exit 1); exit 1; }; } ;;
16267
16268 *) ac_config_targets="$ac_config_targets $1"
16269 ac_need_defaults=false ;;
16270
16271 esac
16272 shift
16273 done
16274
16275 ac_configure_extra_args=
16276
16277 if $ac_cs_silent; then
16278 exec 6>/dev/null
16279 ac_configure_extra_args="$ac_configure_extra_args --silent"
16280 fi
16281
16282 _ACEOF
16283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16284 if \$ac_cs_recheck; then
16285 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16286 shift
16287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16288 CONFIG_SHELL='$SHELL'
16289 export CONFIG_SHELL
16290 exec "\$@"
16291 fi
16292
16293 _ACEOF
16294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 exec 5>>config.log
16296 {
16297 echo
16298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16299 ## Running $as_me. ##
16300 _ASBOX
16301 $as_echo "$ac_log"
16302 } >&5
16303
16304 _ACEOF
16305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16306 _ACEOF
16307
16308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309
16310 # Handling of arguments.
16311 for ac_config_target in $ac_config_targets
16312 do
16313 case $ac_config_target in
16314 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16316 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16317 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16318 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16319 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16320 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16321 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16322 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16323 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
16324 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16325 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16326 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16327 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
16328 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16329 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16330 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16331 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16332 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16333 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16334 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16335 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16336 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16337 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16338 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16339 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16340 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16341 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16342 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16343 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16344 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
16345 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16346 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16347 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16348 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16349 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16350 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16351
16352 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16353 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16354 { (exit 1); exit 1; }; };;
16355 esac
16356 done
16357
16358
16359 # If the user did not use the arguments to specify the items to instantiate,
16360 # then the envvar interface is used. Set only those that are not.
16361 # We use the long form for the default assignment because of an extremely
16362 # bizarre bug on SunOS 4.1.3.
16363 if $ac_need_defaults; then
16364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16366 fi
16367
16368 # Have a temporary directory for convenience. Make it in the build tree
16369 # simply because there is no reason against having it here, and in addition,
16370 # creating and moving files from /tmp can sometimes cause problems.
16371 # Hook for its removal unless debugging.
16372 # Note that there is a small window in which the directory will not be cleaned:
16373 # after its creation but before its name has been assigned to `$tmp'.
16374 $debug ||
16375 {
16376 tmp=
16377 trap 'exit_status=$?
16378 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16379 ' 0
16380 trap '{ (exit 1); exit 1; }' 1 2 13 15
16381 }
16382 # Create a (secure) tmp directory for tmp files.
16383
16384 {
16385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16386 test -n "$tmp" && test -d "$tmp"
16387 } ||
16388 {
16389 tmp=./conf$$-$RANDOM
16390 (umask 077 && mkdir "$tmp")
16391 } ||
16392 {
16393 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16394 { (exit 1); exit 1; }
16395 }
16396
16397 # Set up the scripts for CONFIG_FILES section.
16398 # No need to generate them if there are no CONFIG_FILES.
16399 # This happens for instance with `./config.status config.h'.
16400 if test -n "$CONFIG_FILES"; then
16401
16402
16403 ac_cr=' '
16404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16406 ac_cs_awk_cr='\\r'
16407 else
16408 ac_cs_awk_cr=$ac_cr
16409 fi
16410
16411 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16412 _ACEOF
16413
16414
16415 {
16416 echo "cat >conf$$subs.awk <<_ACEOF" &&
16417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16418 echo "_ACEOF"
16419 } >conf$$subs.sh ||
16420 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16421 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16422 { (exit 1); exit 1; }; }
16423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16424 ac_delim='%!_!# '
16425 for ac_last_try in false false false false false :; do
16426 . ./conf$$subs.sh ||
16427 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16428 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16429 { (exit 1); exit 1; }; }
16430
16431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16432 if test $ac_delim_n = $ac_delim_num; then
16433 break
16434 elif $ac_last_try; then
16435 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16436 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16437 { (exit 1); exit 1; }; }
16438 else
16439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16440 fi
16441 done
16442 rm -f conf$$subs.sh
16443
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16446 _ACEOF
16447 sed -n '
16448 h
16449 s/^/S["/; s/!.*/"]=/
16450 p
16451 g
16452 s/^[^!]*!//
16453 :repl
16454 t repl
16455 s/'"$ac_delim"'$//
16456 t delim
16457 :nl
16458 h
16459 s/\(.\{148\}\).*/\1/
16460 t more1
16461 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16462 p
16463 n
16464 b repl
16465 :more1
16466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16467 p
16468 g
16469 s/.\{148\}//
16470 t nl
16471 :delim
16472 h
16473 s/\(.\{148\}\).*/\1/
16474 t more2
16475 s/["\\]/\\&/g; s/^/"/; s/$/"/
16476 p
16477 b
16478 :more2
16479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16480 p
16481 g
16482 s/.\{148\}//
16483 t delim
16484 ' <conf$$subs.awk | sed '
16485 /^[^""]/{
16486 N
16487 s/\n//
16488 }
16489 ' >>$CONFIG_STATUS || ac_write_fail=1
16490 rm -f conf$$subs.awk
16491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16492 _ACAWK
16493 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16494 for (key in S) S_is_set[key] = 1
16495 FS = "\a"
16496
16497 }
16498 {
16499 line = $ 0
16500 nfields = split(line, field, "@")
16501 substed = 0
16502 len = length(field[1])
16503 for (i = 2; i < nfields; i++) {
16504 key = field[i]
16505 keylen = length(key)
16506 if (S_is_set[key]) {
16507 value = S[key]
16508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16509 len += length(value) + length(field[++i])
16510 substed = 1
16511 } else
16512 len += 1 + keylen
16513 }
16514
16515 print line
16516 }
16517
16518 _ACAWK
16519 _ACEOF
16520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16523 else
16524 cat
16525 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16526 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16527 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16528 { (exit 1); exit 1; }; }
16529 _ACEOF
16530
16531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16533 # trailing colons and then remove the whole line if VPATH becomes empty
16534 # (actually we leave an empty line to preserve line numbers).
16535 if test "x$srcdir" = x.; then
16536 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16537 s/:*\$(srcdir):*/:/
16538 s/:*\${srcdir}:*/:/
16539 s/:*@srcdir@:*/:/
16540 s/^\([^=]*=[ ]*\):*/\1/
16541 s/:*$//
16542 s/^[^=]*=[ ]*$//
16543 }'
16544 fi
16545
16546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16547 fi # test -n "$CONFIG_FILES"
16548
16549 # Set up the scripts for CONFIG_HEADERS section.
16550 # No need to generate them if there are no CONFIG_HEADERS.
16551 # This happens for instance with `./config.status Makefile'.
16552 if test -n "$CONFIG_HEADERS"; then
16553 cat >"$tmp/defines.awk" <<\_ACAWK ||
16554 BEGIN {
16555 _ACEOF
16556
16557 # Transform confdefs.h into an awk script `defines.awk', embedded as
16558 # here-document in config.status, that substitutes the proper values into
16559 # config.h.in to produce config.h.
16560
16561 # Create a delimiter string that does not exist in confdefs.h, to ease
16562 # handling of long lines.
16563 ac_delim='%!_!# '
16564 for ac_last_try in false false :; do
16565 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16566 if test -z "$ac_t"; then
16567 break
16568 elif $ac_last_try; then
16569 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16570 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16571 { (exit 1); exit 1; }; }
16572 else
16573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16574 fi
16575 done
16576
16577 # For the awk script, D is an array of macro values keyed by name,
16578 # likewise P contains macro parameters if any. Preserve backslash
16579 # newline sequences.
16580
16581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16582 sed -n '
16583 s/.\{148\}/&'"$ac_delim"'/g
16584 t rset
16585 :rset
16586 s/^[ ]*#[ ]*define[ ][ ]*/ /
16587 t def
16588 d
16589 :def
16590 s/\\$//
16591 t bsnl
16592 s/["\\]/\\&/g
16593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16594 D["\1"]=" \3"/p
16595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16596 d
16597 :bsnl
16598 s/["\\]/\\&/g
16599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16600 D["\1"]=" \3\\\\\\n"\\/p
16601 t cont
16602 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16603 t cont
16604 d
16605 :cont
16606 n
16607 s/.\{148\}/&'"$ac_delim"'/g
16608 t clear
16609 :clear
16610 s/\\$//
16611 t bsnlc
16612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16613 d
16614 :bsnlc
16615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16616 b cont
16617 ' <confdefs.h | sed '
16618 s/'"$ac_delim"'/"\\\
16619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16620
16621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16622 for (key in D) D_is_set[key] = 1
16623 FS = "\a"
16624 }
16625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16626 line = \$ 0
16627 split(line, arg, " ")
16628 if (arg[1] == "#") {
16629 defundef = arg[2]
16630 mac1 = arg[3]
16631 } else {
16632 defundef = substr(arg[1], 2)
16633 mac1 = arg[2]
16634 }
16635 split(mac1, mac2, "(") #)
16636 macro = mac2[1]
16637 prefix = substr(line, 1, index(line, defundef) - 1)
16638 if (D_is_set[macro]) {
16639 # Preserve the white space surrounding the "#".
16640 print prefix "define", macro P[macro] D[macro]
16641 next
16642 } else {
16643 # Replace #undef with comments. This is necessary, for example,
16644 # in the case of _POSIX_SOURCE, which is predefined and required
16645 # on some systems where configure will not decide to define it.
16646 if (defundef == "undef") {
16647 print "/*", prefix defundef, macro, "*/"
16648 next
16649 }
16650 }
16651 }
16652 { print }
16653 _ACAWK
16654 _ACEOF
16655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16657 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16658 { (exit 1); exit 1; }; }
16659 fi # test -n "$CONFIG_HEADERS"
16660
16661
16662 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16663 shift
16664 for ac_tag
16665 do
16666 case $ac_tag in
16667 :[FHLC]) ac_mode=$ac_tag; continue;;
16668 esac
16669 case $ac_mode$ac_tag in
16670 :[FHL]*:*);;
16671 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16672 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16673 { (exit 1); exit 1; }; };;
16674 :[FH]-) ac_tag=-:-;;
16675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16676 esac
16677 ac_save_IFS=$IFS
16678 IFS=:
16679 set x $ac_tag
16680 IFS=$ac_save_IFS
16681 shift
16682 ac_file=$1
16683 shift
16684
16685 case $ac_mode in
16686 :L) ac_source=$1;;
16687 :[FH])
16688 ac_file_inputs=
16689 for ac_f
16690 do
16691 case $ac_f in
16692 -) ac_f="$tmp/stdin";;
16693 *) # Look for the file first in the build tree, then in the source tree
16694 # (if the path is not absolute). The absolute path cannot be DOS-style,
16695 # because $ac_f cannot contain `:'.
16696 test -f "$ac_f" ||
16697 case $ac_f in
16698 [\\/$]*) false;;
16699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16700 esac ||
16701 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16702 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16703 { (exit 1); exit 1; }; };;
16704 esac
16705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16706 ac_file_inputs="$ac_file_inputs '$ac_f'"
16707 done
16708
16709 # Let's still pretend it is `configure' which instantiates (i.e., don't
16710 # use $as_me), people would be surprised to read:
16711 # /* config.h. Generated by config.status. */
16712 configure_input='Generated from '`
16713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16714 `' by configure.'
16715 if test x"$ac_file" != x-; then
16716 configure_input="$ac_file. $configure_input"
16717 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16718 $as_echo "$as_me: creating $ac_file" >&6;}
16719 fi
16720 # Neutralize special characters interpreted by sed in replacement strings.
16721 case $configure_input in #(
16722 *\&* | *\|* | *\\* )
16723 ac_sed_conf_input=`$as_echo "$configure_input" |
16724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16725 *) ac_sed_conf_input=$configure_input;;
16726 esac
16727
16728 case $ac_tag in
16729 *:-:* | *:-) cat >"$tmp/stdin" \
16730 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16731 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16732 { (exit 1); exit 1; }; } ;;
16733 esac
16734 ;;
16735 esac
16736
16737 ac_dir=`$as_dirname -- "$ac_file" ||
16738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16739 X"$ac_file" : 'X\(//\)[^/]' \| \
16740 X"$ac_file" : 'X\(//\)$' \| \
16741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16742 $as_echo X"$ac_file" |
16743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16744 s//\1/
16745 q
16746 }
16747 /^X\(\/\/\)[^/].*/{
16748 s//\1/
16749 q
16750 }
16751 /^X\(\/\/\)$/{
16752 s//\1/
16753 q
16754 }
16755 /^X\(\/\).*/{
16756 s//\1/
16757 q
16758 }
16759 s/.*/./; q'`
16760 { as_dir="$ac_dir"
16761 case $as_dir in #(
16762 -*) as_dir=./$as_dir;;
16763 esac
16764 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16765 as_dirs=
16766 while :; do
16767 case $as_dir in #(
16768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16769 *) as_qdir=$as_dir;;
16770 esac
16771 as_dirs="'$as_qdir' $as_dirs"
16772 as_dir=`$as_dirname -- "$as_dir" ||
16773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16774 X"$as_dir" : 'X\(//\)[^/]' \| \
16775 X"$as_dir" : 'X\(//\)$' \| \
16776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16777 $as_echo X"$as_dir" |
16778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16779 s//\1/
16780 q
16781 }
16782 /^X\(\/\/\)[^/].*/{
16783 s//\1/
16784 q
16785 }
16786 /^X\(\/\/\)$/{
16787 s//\1/
16788 q
16789 }
16790 /^X\(\/\).*/{
16791 s//\1/
16792 q
16793 }
16794 s/.*/./; q'`
16795 test -d "$as_dir" && break
16796 done
16797 test -z "$as_dirs" || eval "mkdir $as_dirs"
16798 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16799 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16800 { (exit 1); exit 1; }; }; }
16801 ac_builddir=.
16802
16803 case "$ac_dir" in
16804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16805 *)
16806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16807 # A ".." for each directory in $ac_dir_suffix.
16808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16809 case $ac_top_builddir_sub in
16810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16812 esac ;;
16813 esac
16814 ac_abs_top_builddir=$ac_pwd
16815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16816 # for backward compatibility:
16817 ac_top_builddir=$ac_top_build_prefix
16818
16819 case $srcdir in
16820 .) # We are building in place.
16821 ac_srcdir=.
16822 ac_top_srcdir=$ac_top_builddir_sub
16823 ac_abs_top_srcdir=$ac_pwd ;;
16824 [\\/]* | ?:[\\/]* ) # Absolute name.
16825 ac_srcdir=$srcdir$ac_dir_suffix;
16826 ac_top_srcdir=$srcdir
16827 ac_abs_top_srcdir=$srcdir ;;
16828 *) # Relative name.
16829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16830 ac_top_srcdir=$ac_top_build_prefix$srcdir
16831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16832 esac
16833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16834
16835
16836 case $ac_mode in
16837 :F)
16838 #
16839 # CONFIG_FILE
16840 #
16841
16842 case $INSTALL in
16843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16845 esac
16846 ac_MKDIR_P=$MKDIR_P
16847 case $MKDIR_P in
16848 [\\/$]* | ?:[\\/]* ) ;;
16849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16850 esac
16851 _ACEOF
16852
16853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854 # If the template does not know about datarootdir, expand it.
16855 # FIXME: This hack should be removed a few years after 2.60.
16856 ac_datarootdir_hack=; ac_datarootdir_seen=
16857
16858 ac_sed_dataroot='
16859 /datarootdir/ {
16860 p
16861 q
16862 }
16863 /@datadir@/p
16864 /@docdir@/p
16865 /@infodir@/p
16866 /@localedir@/p
16867 /@mandir@/p
16868 '
16869 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16870 *datarootdir*) ac_datarootdir_seen=yes;;
16871 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16872 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16873 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16874 _ACEOF
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 ac_datarootdir_hack='
16877 s&@datadir@&$datadir&g
16878 s&@docdir@&$docdir&g
16879 s&@infodir@&$infodir&g
16880 s&@localedir@&$localedir&g
16881 s&@mandir@&$mandir&g
16882 s&\\\${datarootdir}&$datarootdir&g' ;;
16883 esac
16884 _ACEOF
16885
16886 # Neutralize VPATH when `$srcdir' = `.'.
16887 # Shell code in configure.ac might set extrasub.
16888 # FIXME: do we really want to maintain this feature?
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 ac_sed_extra="$ac_vpsub
16891 $extrasub
16892 _ACEOF
16893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16894 :t
16895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16896 s|@configure_input@|$ac_sed_conf_input|;t t
16897 s&@top_builddir@&$ac_top_builddir_sub&;t t
16898 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16899 s&@srcdir@&$ac_srcdir&;t t
16900 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16901 s&@top_srcdir@&$ac_top_srcdir&;t t
16902 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16903 s&@builddir@&$ac_builddir&;t t
16904 s&@abs_builddir@&$ac_abs_builddir&;t t
16905 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16906 s&@INSTALL@&$ac_INSTALL&;t t
16907 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16908 $ac_datarootdir_hack
16909 "
16910 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16911 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16912 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16913 { (exit 1); exit 1; }; }
16914
16915 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16916 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16917 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16918 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16919 which seems to be undefined. Please make sure it is defined." >&5
16920 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16921 which seems to be undefined. Please make sure it is defined." >&2;}
16922
16923 rm -f "$tmp/stdin"
16924 case $ac_file in
16925 -) cat "$tmp/out" && rm -f "$tmp/out";;
16926 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16927 esac \
16928 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16929 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16930 { (exit 1); exit 1; }; }
16931 ;;
16932 :H)
16933 #
16934 # CONFIG_HEADER
16935 #
16936 if test x"$ac_file" != x-; then
16937 {
16938 $as_echo "/* $configure_input */" \
16939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16940 } >"$tmp/config.h" \
16941 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16942 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16943 { (exit 1); exit 1; }; }
16944 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16945 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16946 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16947 else
16948 rm -f "$ac_file"
16949 mv "$tmp/config.h" "$ac_file" \
16950 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16951 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16952 { (exit 1); exit 1; }; }
16953 fi
16954 else
16955 $as_echo "/* $configure_input */" \
16956 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16957 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16958 $as_echo "$as_me: error: could not create -" >&2;}
16959 { (exit 1); exit 1; }; }
16960 fi
16961 ;;
16962
16963
16964 esac
16965
16966 done # for ac_tag
16967
16968
16969 { (exit 0); exit 0; }
16970 _ACEOF
16971 chmod +x $CONFIG_STATUS
16972 ac_clean_files=$ac_clean_files_save
16973
16974 test $ac_write_fail = 0 ||
16975 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16976 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16977 { (exit 1); exit 1; }; }
16978
16979
16980 # configure is writing to config.log, and then calls config.status.
16981 # config.status does its own redirection, appending to config.log.
16982 # Unfortunately, on DOS this fails, as config.log is still kept open
16983 # by configure, so config.status won't be able to write to it; its
16984 # output is simply discarded. So we exec the FD to /dev/null,
16985 # effectively closing config.log, so it can be properly (re)opened and
16986 # appended to by config.status. When coming back to configure, we
16987 # need to make the FD available again.
16988 if test "$no_create" != yes; then
16989 ac_cs_success=:
16990 ac_config_status_args=
16991 test "$silent" = yes &&
16992 ac_config_status_args="$ac_config_status_args --quiet"
16993 exec 5>/dev/null
16994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16995 exec 5>>config.log
16996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16997 # would make configure fail if this is the last instruction.
16998 $ac_cs_success || { (exit 1); exit 1; }
16999 fi
17000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17001 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17003 fi
17004
17005
17006 if test x$ODIRECT != xyes; then
17007 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17008 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
17009 fi
This page took 0.893288 seconds and 6 git commands to generate.