]> sourceware.org Git - lvm2.git/blob - configure
autoreconf
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="lib/device/dev-cache.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_default_prefix=/usr
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SED
667 AWK
668 CC
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
675 CPP
676 GREP
677 EGREP
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
682 SET_MAKE
683 RANLIB
684 CFLOW_CMD
685 CSCOPE_CMD
686 ALLOCA
687 LIBOBJS
688 POW_LIB
689 LCOV
690 GENHTML
691 LVM2CMD_LIB
692 MSGFMT
693 MODPROBE_CMD
694 BUILD_DMEVENTD
695 CLDFLAGS
696 CLDNOWHOLEARCHIVE
697 CLDWHOLEARCHIVE
698 CLUSTER
699 CLVMD
700 CMDLIB
701 COPTIMISE_FLAG
702 DEBUG
703 DEVMAPPER
704 DMEVENTD
705 DM_COMPAT
706 DM_DEVICE_GID
707 DM_DEVICE_MODE
708 DM_DEVICE_UID
709 DM_IOCTLS
710 DM_LIB_VERSION
711 FSADM
712 GROUP
713 HAVE_LIBDL
714 HAVE_REALTIME
715 HAVE_SELINUX
716 INTL
717 INTL_PACKAGE
718 JOBS
719 LDDEPS
720 LIB_SUFFIX
721 LOCALEDIR
722 LVM1
723 LVM1_FALLBACK
724 CONFDIR
725 LVM_VERSION
726 MIRRORS
727 OWNER
728 PKGCONFIG
729 POOL
730 SNAPSHOTS
731 STATICDIR
732 STATIC_LINK
733 LIB_PTHREAD
734 interface
735 kerneldir
736 missingkernel
737 kernelvsn
738 tmpdir
739 usrlibdir
740 usrsbindir
741 LTLIBOBJS'
742 ac_subst_files=''
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP'
752
753
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
826
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
841
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
846
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
854 -disable-* | --disable-*)
855 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=no ;;
862
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
867
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
872
873 -enable-* | --enable-*)
874 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
877 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
878 { (exit 1); exit 1; }; }
879 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
880 eval enable_$ac_feature=\$ac_optarg ;;
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
901
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
906
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
936
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1010
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=\$ac_optarg ;;
1078
1079 -without-* | --without-*)
1080 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=no ;;
1087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1105
1106 -*) { echo "$as_me: error: unrecognized option: $ac_option
1107 Try \`$0 --help' for more information." >&2
1108 { (exit 1); exit 1; }; }
1109 ;;
1110
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1116 { (exit 1); exit 1; }; }
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1119
1120 *)
1121 # FIXME: should be removed in autoconf 3.0.
1122 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 ;;
1127
1128 esac
1129 done
1130
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 { echo "$as_me: error: missing argument to $ac_option" >&2
1134 { (exit 1); exit 1; }; }
1135 fi
1136
1137 # Be sure to have absolute directory names.
1138 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
1142 do
1143 eval ac_val=\$$ac_var
1144 case $ac_val in
1145 [\\/$]* | ?:[\\/]* ) continue;;
1146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1147 esac
1148 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1149 { (exit 1); exit 1; }; }
1150 done
1151
1152 # There might be people who depend on the old broken behavior: `$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1155 build=$build_alias
1156 host=$host_alias
1157 target=$target_alias
1158
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168 fi
1169
1170 ac_tool_prefix=
1171 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173 test "$silent" = yes && exec 6>/dev/null
1174
1175
1176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di=`ls -di .` &&
1178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 { echo "$as_me: error: Working directory cannot be determined" >&2
1180 { (exit 1); exit 1; }; }
1181 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 { echo "$as_me: error: pwd does not report name of working directory" >&2
1183 { (exit 1); exit 1; }; }
1184
1185
1186 # Find the source files, if location was not specified.
1187 if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
1189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir=`$as_dirname -- "$0" ||
1191 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$0" : 'X\(//\)[^/]' \| \
1193 X"$0" : 'X\(//\)$' \| \
1194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195 echo X"$0" |
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
1213 srcdir=$ac_confdir
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 srcdir=..
1216 fi
1217 else
1218 ac_srcdir_defaulted=no
1219 fi
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1223 { (exit 1); exit 1; }; }
1224 fi
1225 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1228 { (exit 1); exit 1; }; }
1229 pwd)`
1230 # When building in place, set srcdir=.
1231 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1233 fi
1234 # Remove unnecessary trailing slashes from srcdir.
1235 # Double slashes in file names in object file debugging info
1236 # mess up M-x gdb in Emacs.
1237 case $srcdir in
1238 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 esac
1240 for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 done
1246
1247 #
1248 # Report the --help message.
1249 #
1250 if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
1254 \`configure' configures this package to adapt to many kinds of systems.
1255
1256 Usage: $0 [OPTION]... [VAR=VALUE]...
1257
1258 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259 VAR=VALUE. See below for descriptions of some of the useful variables.
1260
1261 Defaults for the options are specified in brackets.
1262
1263 Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
1268 -q, --quiet, --silent do not print \`checking...' messages
1269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273
1274 Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
1276 [$ac_default_prefix]
1277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 [PREFIX]
1279
1280 By default, \`make install' will install all the files in
1281 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283 for instance \`--prefix=\$HOME'.
1284
1285 For better control, use the options below.
1286
1287 Fine tuning of the installation directories:
1288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
1291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
1307 _ACEOF
1308
1309 cat <<\_ACEOF
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 --target=TARGET configure for building compilers for TARGET [HOST]
1315 _ACEOF
1316 fi
1317
1318 if test -n "$ac_init_help"; then
1319
1320 cat <<\_ACEOF
1321
1322 Optional Features:
1323 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1324 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1325 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1326 device-mapper is missing from the kernel
1327 --disable-readline Disable readline support
1328 --disable-realtime Disable realtime clock support
1329 --enable-debug Enable debugging
1330 --enable-profiling Gather gcov profiling data
1331 --disable-devmapper Disable LVM2 device-mapper interaction
1332 --enable-compat Enable support for old device-mapper versions
1333 --disable-driver Disable calls to device-mapper in the kernel
1334 --disable-o_direct Disable O_DIRECT
1335 --enable-cmdlib Build shared command library
1336 --enable-pkgconfig Install pkgconfig support
1337 --enable-fsadm Enable fsadm
1338 --enable-dmeventd Enable the device-mapper event daemon
1339 --enable-static_link Use this to link the tools to their libraries
1340 statically. Default is dynamic linking
1341 --disable-selinux Disable selinux support
1342 --enable-nls Enable Native Language Support
1343
1344 Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --with-user=USER Set the owner of installed files [USER=root]
1348 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1349 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1350 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1351 TYPE=internal
1352 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1353 TYPE=internal
1354 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1355 TYPE=internal
1356 --with-snapshots=TYPE Snapshot support: internal/shared/none
1357 TYPE=internal
1358 --with-mirrors=TYPE Mirror support: internal/shared/none
1359 TYPE=internal
1360 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
1361 TYPE=none
1362 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1363 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1364 --with-confdir=DIR Configuration files in DIR /etc
1365 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1366 --with-usrlibdir=DIR
1367 --with-usrsbindir=DIR
1368 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1369 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1370 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1371
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CPP C preprocessor
1381
1382 Use these variables to override the choices made by `configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1384
1385 _ACEOF
1386 ac_status=$?
1387 fi
1388
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" || continue
1393 ac_builddir=.
1394
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *)
1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1410
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1440 fi
1441
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 configure
1446 generated by GNU Autoconf 2.61
1447
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1454 fi
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by $as_me, which was
1460 generated by GNU Autoconf 2.61. Invocation command line was
1461
1462 $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 2)
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1551 fi
1552 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 ;;
1554 esac
1555 done
1556 done
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1567 {
1568 echo
1569
1570 cat <<\_ASBOX
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1574 _ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
1577 (
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
1592 (set) 2>&1 |
1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
1595 sed -n \
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
1599 *)
1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 ;;
1602 esac |
1603 sort
1604 )
1605 echo
1606
1607 cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1614 do
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1622
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1631 do
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1639 fi
1640
1641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647 echo
1648 cat confdefs.h
1649 echo
1650 fi
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1654 } >&5
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 exit $exit_status
1658 ' 0
1659 for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1663
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1666
1667 # Predefined preprocessor variables.
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1687
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1692
1693
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 else
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
1703 fi
1704 shift
1705 for ac_site_file
1706 do
1707 if test -r "$ac_site_file"; then
1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710 sed 's/^/| /' "$ac_site_file" >&5
1711 . "$ac_site_file"
1712 fi
1713 done
1714
1715 if test -r "$cache_file"; then
1716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1721 case $cache_file in
1722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
1724 esac
1725 fi
1726 else
1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1729 >$cache_file
1730 fi
1731
1732 # Check that the precious variables saved in the cache have kept the same
1733 # value.
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
1740 case $ac_old_set,$ac_new_set in
1741 set,)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,set)
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1749 ,);;
1750 *)
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1755 echo "$as_me: former value: $ac_old_val" >&2;}
1756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1757 echo "$as_me: current value: $ac_new_val" >&2;}
1758 ac_cache_corrupted=:
1759 fi;;
1760 esac
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770 esac
1771 fi
1772 done
1773 if $ac_cache_corrupted; then
1774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
1779 fi
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797 ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802
1803
1804
1805 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1806
1807
1808 ################################################################################
1809 ac_aux_dir=
1810 for ac_dir in autoconf "$srcdir"/autoconf; do
1811 if test -f "$ac_dir/install-sh"; then
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
1815 elif test -f "$ac_dir/install.sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
1819 elif test -f "$ac_dir/shtool"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
1823 fi
1824 done
1825 if test -z "$ac_aux_dir"; then
1826 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1827 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1828 { (exit 1); exit 1; }; }
1829 fi
1830
1831 # These three variables are undocumented and unsupported,
1832 # and are intended to be withdrawn in a future Autoconf release.
1833 # They can cause serious problems if a builder's source tree is in a directory
1834 # whose full name contains unusual characters.
1835 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1836 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1837 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1838
1839
1840
1841 ################################################################################
1842 # Make sure we can run config.sub.
1843 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1844 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1845 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1846 { (exit 1); exit 1; }; }
1847
1848 { echo "$as_me:$LINENO: checking build system type" >&5
1849 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1850 if test "${ac_cv_build+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 ac_build_alias=$build_alias
1854 test "x$ac_build_alias" = x &&
1855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1856 test "x$ac_build_alias" = x &&
1857 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1858 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1859 { (exit 1); exit 1; }; }
1860 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1861 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1862 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1863 { (exit 1); exit 1; }; }
1864
1865 fi
1866 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1867 echo "${ECHO_T}$ac_cv_build" >&6; }
1868 case $ac_cv_build in
1869 *-*-*) ;;
1870 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1871 echo "$as_me: error: invalid value of canonical build" >&2;}
1872 { (exit 1); exit 1; }; };;
1873 esac
1874 build=$ac_cv_build
1875 ac_save_IFS=$IFS; IFS='-'
1876 set x $ac_cv_build
1877 shift
1878 build_cpu=$1
1879 build_vendor=$2
1880 shift; shift
1881 # Remember, the first character of IFS is used to create $*,
1882 # except with old shells:
1883 build_os=$*
1884 IFS=$ac_save_IFS
1885 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1886
1887
1888 { echo "$as_me:$LINENO: checking host system type" >&5
1889 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1890 if test "${ac_cv_host+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test "x$host_alias" = x; then
1894 ac_cv_host=$ac_cv_build
1895 else
1896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901
1902 fi
1903 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1904 echo "${ECHO_T}$ac_cv_host" >&6; }
1905 case $ac_cv_host in
1906 *-*-*) ;;
1907 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1908 echo "$as_me: error: invalid value of canonical host" >&2;}
1909 { (exit 1); exit 1; }; };;
1910 esac
1911 host=$ac_cv_host
1912 ac_save_IFS=$IFS; IFS='-'
1913 set x $ac_cv_host
1914 shift
1915 host_cpu=$1
1916 host_vendor=$2
1917 shift; shift
1918 # Remember, the first character of IFS is used to create $*,
1919 # except with old shells:
1920 host_os=$*
1921 IFS=$ac_save_IFS
1922 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1923
1924
1925 { echo "$as_me:$LINENO: checking target system type" >&5
1926 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_target+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930 if test "x$target_alias" = x; then
1931 ac_cv_target=$ac_cv_host
1932 else
1933 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1934 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1935 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939 fi
1940 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1941 echo "${ECHO_T}$ac_cv_target" >&6; }
1942 case $ac_cv_target in
1943 *-*-*) ;;
1944 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1945 echo "$as_me: error: invalid value of canonical target" >&2;}
1946 { (exit 1); exit 1; }; };;
1947 esac
1948 target=$ac_cv_target
1949 ac_save_IFS=$IFS; IFS='-'
1950 set x $ac_cv_target
1951 shift
1952 target_cpu=$1
1953 target_vendor=$2
1954 shift; shift
1955 # Remember, the first character of IFS is used to create $*,
1956 # except with old shells:
1957 target_os=$*
1958 IFS=$ac_save_IFS
1959 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1960
1961
1962 # The aliases save the names the user supplied, while $host etc.
1963 # will get canonicalized.
1964 test -n "$target_alias" &&
1965 test "$program_prefix$program_suffix$program_transform_name" = \
1966 NONENONEs,x,x, &&
1967 program_prefix=${target_alias}-
1968
1969 case "$host_os" in
1970 linux*)
1971 COPTIMISE_FLAG="-O2"
1972 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1973 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1974 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1975 LDDEPS="$LDDEPS .export.sym"
1976 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
1977 LIB_SUFFIX=so
1978 DEVMAPPER=yes
1979 ODIRECT=yes
1980 DM_IOCTLS=yes
1981 SELINUX=yes
1982 REALTIME=yes
1983 CLUSTER=internal
1984 FSADM=yes
1985 ;;
1986 darwin*)
1987 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1988 COPTIMISE_FLAG="-O2"
1989 CLDFLAGS="$CLDFLAGS"
1990 CLDWHOLEARCHIVE="-all_load"
1991 CLDNOWHOLEARCHIVE=
1992 LIB_SUFFIX=dylib
1993 DEVMAPPER=yes
1994 ODIRECT=no
1995 DM_IOCTLS=no
1996 SELINUX=no
1997 REALTIME=no
1998 CLUSTER=none
1999 FSADM=no
2000 ;;
2001 esac
2002
2003 ################################################################################
2004 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2005 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2006 if test "${ac_cv_path_SED+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2010 for ac_i in 1 2 3 4 5 6 7; do
2011 ac_script="$ac_script$as_nl$ac_script"
2012 done
2013 echo "$ac_script" | sed 99q >conftest.sed
2014 $as_unset ac_script || ac_script=
2015 # Extract the first word of "sed gsed" to use in msg output
2016 if test -z "$SED"; then
2017 set dummy sed gsed; ac_prog_name=$2
2018 if test "${ac_cv_path_SED+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 ac_path_SED_found=false
2022 # Loop through the user's path and test for each of PROGNAME-LIST
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_prog in sed gsed; do
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2032 # Check for GNU ac_path_SED and select it if it is found.
2033 # Check for GNU $ac_path_SED
2034 case `"$ac_path_SED" --version 2>&1` in
2035 *GNU*)
2036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2037 *)
2038 ac_count=0
2039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2040 while :
2041 do
2042 cat "conftest.in" "conftest.in" >"conftest.tmp"
2043 mv "conftest.tmp" "conftest.in"
2044 cp "conftest.in" "conftest.nl"
2045 echo '' >> "conftest.nl"
2046 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2048 ac_count=`expr $ac_count + 1`
2049 if test $ac_count -gt ${ac_path_SED_max-0}; then
2050 # Best one so far, save it but keep looking for a better one
2051 ac_cv_path_SED="$ac_path_SED"
2052 ac_path_SED_max=$ac_count
2053 fi
2054 # 10*(2^10) chars as input seems more than enough
2055 test $ac_count -gt 10 && break
2056 done
2057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2058 esac
2059
2060
2061 $ac_path_SED_found && break 3
2062 done
2063 done
2064
2065 done
2066 IFS=$as_save_IFS
2067
2068
2069 fi
2070
2071 SED="$ac_cv_path_SED"
2072 if test -z "$SED"; then
2073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2074 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2075 { (exit 1); exit 1; }; }
2076 fi
2077
2078 else
2079 ac_cv_path_SED=$SED
2080 fi
2081
2082 fi
2083 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2084 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2085 SED="$ac_cv_path_SED"
2086 rm -f conftest.sed
2087
2088 for ac_prog in gawk mawk nawk awk
2089 do
2090 # Extract the first word of "$ac_prog", so it can be a program name with args.
2091 set dummy $ac_prog; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_AWK+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 if test -n "$AWK"; then
2098 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_AWK="$ac_prog"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2110 fi
2111 done
2112 done
2113 IFS=$as_save_IFS
2114
2115 fi
2116 fi
2117 AWK=$ac_cv_prog_AWK
2118 if test -n "$AWK"; then
2119 { echo "$as_me:$LINENO: result: $AWK" >&5
2120 echo "${ECHO_T}$AWK" >&6; }
2121 else
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2124 fi
2125
2126
2127 test -n "$AWK" && break
2128 done
2129
2130 ac_ext=c
2131 ac_cpp='$CPP $CPPFLAGS'
2132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135 if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2137 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2156 fi
2157 done
2158 done
2159 IFS=$as_save_IFS
2160
2161 fi
2162 fi
2163 CC=$ac_cv_prog_CC
2164 if test -n "$CC"; then
2165 { echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6; }
2167 else
2168 { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2170 fi
2171
2172
2173 fi
2174 if test -z "$ac_cv_prog_CC"; then
2175 ac_ct_CC=$CC
2176 # Extract the first word of "gcc", so it can be a program name with args.
2177 set dummy gcc; ac_word=$2
2178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_ac_ct_CC="gcc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 fi
2202 fi
2203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204 if test -n "$ac_ct_CC"; then
2205 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206 echo "${ECHO_T}$ac_ct_CC" >&6; }
2207 else
2208 { echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6; }
2210 fi
2211
2212 if test "x$ac_ct_CC" = x; then
2213 CC=""
2214 else
2215 case $cross_compiling:$ac_tool_warned in
2216 yes:)
2217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2218 whose name does not start with the host triplet. If you think this
2219 configuration is useful to you, please write to autoconf@gnu.org." >&5
2220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2221 whose name does not start with the host triplet. If you think this
2222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2223 ac_tool_warned=yes ;;
2224 esac
2225 CC=$ac_ct_CC
2226 fi
2227 else
2228 CC="$ac_cv_prog_CC"
2229 fi
2230
2231 if test -z "$CC"; then
2232 if test -n "$ac_tool_prefix"; then
2233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2234 set dummy ${ac_tool_prefix}cc; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_prog_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_CC="${ac_tool_prefix}cc"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2253 fi
2254 done
2255 done
2256 IFS=$as_save_IFS
2257
2258 fi
2259 fi
2260 CC=$ac_cv_prog_CC
2261 if test -n "$CC"; then
2262 { echo "$as_me:$LINENO: result: $CC" >&5
2263 echo "${ECHO_T}$CC" >&6; }
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 fi
2268
2269
2270 fi
2271 fi
2272 if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274 set dummy cc; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 ac_prog_rejected=no
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292 ac_prog_rejected=yes
2293 continue
2294 fi
2295 ac_cv_prog_CC="cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2298 fi
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303 if test $ac_prog_rejected = yes; then
2304 # We found a bogon in the path, so make sure we never use it.
2305 set dummy $ac_cv_prog_CC
2306 shift
2307 if test $# != 0; then
2308 # We chose a different compiler from the bogus one.
2309 # However, it has the same basename, so the bogon will be chosen
2310 # first if we set CC to just the basename; use the full file name.
2311 shift
2312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2313 fi
2314 fi
2315 fi
2316 fi
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 { echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 fi
2325
2326
2327 fi
2328 if test -z "$CC"; then
2329 if test -n "$ac_tool_prefix"; then
2330 for ac_prog in cl.exe
2331 do
2332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 CC=$ac_cv_prog_CC
2360 if test -n "$CC"; then
2361 { echo "$as_me:$LINENO: result: $CC" >&5
2362 echo "${ECHO_T}$CC" >&6; }
2363 else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366 fi
2367
2368
2369 test -n "$CC" && break
2370 done
2371 fi
2372 if test -z "$CC"; then
2373 ac_ct_CC=$CC
2374 for ac_prog in cl.exe
2375 do
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_ac_ct_CC="$ac_prog"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404 if test -n "$ac_ct_CC"; then
2405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2406 echo "${ECHO_T}$ac_ct_CC" >&6; }
2407 else
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 fi
2411
2412
2413 test -n "$ac_ct_CC" && break
2414 done
2415
2416 if test "x$ac_ct_CC" = x; then
2417 CC=""
2418 else
2419 case $cross_compiling:$ac_tool_warned in
2420 yes:)
2421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&5
2424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2427 ac_tool_warned=yes ;;
2428 esac
2429 CC=$ac_ct_CC
2430 fi
2431 fi
2432
2433 fi
2434
2435
2436 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: no acceptable C compiler found in \$PATH
2439 See \`config.log' for more details." >&2;}
2440 { (exit 1); exit 1; }; }
2441
2442 # Provide some information about the compiler.
2443 echo "$as_me:$LINENO: checking for C compiler version" >&5
2444 ac_compiler=`set X $ac_compile; echo $2`
2445 { (ac_try="$ac_compiler --version >&5"
2446 case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compiler --version >&5") 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }
2455 { (ac_try="$ac_compiler -v >&5"
2456 case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler -v >&5") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465 { (ac_try="$ac_compiler -V >&5"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_compiler -V >&5") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }
2475
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482
2483 int
2484 main ()
2485 {
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 ac_clean_files_save=$ac_clean_files
2492 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2493 # Try to create an executable without -o first, disregard a.out.
2494 # It will help us diagnose broken compilers, and finding out an intuition
2495 # of exeext.
2496 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2497 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2498 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2499 #
2500 # List of possible output files, starting from the most likely.
2501 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2502 # only as a last resort. b.out is created by i960 compilers.
2503 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2504 #
2505 # The IRIX 6 linker writes into existing files which may not be
2506 # executable, retaining their permissions. Remove them first so a
2507 # subsequent execution test works.
2508 ac_rmfiles=
2509 for ac_file in $ac_files
2510 do
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2514 esac
2515 done
2516 rm -f $ac_rmfiles
2517
2518 if { (ac_try="$ac_link_default"
2519 case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_link_default") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2529 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2530 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2531 # so that the user can short-circuit this test for compilers unknown to
2532 # Autoconf.
2533 for ac_file in $ac_files ''
2534 do
2535 test -f "$ac_file" || continue
2536 case $ac_file in
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2538 ;;
2539 [ab].out )
2540 # We found the default executable, but exeext='' is most
2541 # certainly right.
2542 break;;
2543 *.* )
2544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2545 then :; else
2546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 fi
2548 # We set ac_cv_exeext here because the later test for it is not
2549 # safe: cross compilers may not add the suffix if given an `-o'
2550 # argument, so we may need to know it at that point already.
2551 # Even if this section looks crufty: it has the advantage of
2552 # actually working.
2553 break;;
2554 * )
2555 break;;
2556 esac
2557 done
2558 test "$ac_cv_exeext" = no && ac_cv_exeext=
2559
2560 else
2561 ac_file=''
2562 fi
2563
2564 { echo "$as_me:$LINENO: result: $ac_file" >&5
2565 echo "${ECHO_T}$ac_file" >&6; }
2566 if test -z "$ac_file"; then
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&2;}
2574 { (exit 77); exit 77; }; }
2575 fi
2576
2577 ac_exeext=$ac_cv_exeext
2578
2579 # Check that the compiler produces executables we can run. If not, either
2580 # the compiler is broken, or we cross compile.
2581 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2582 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2583 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2584 # If not cross compiling, check that we can run a simple program.
2585 if test "$cross_compiling" != yes; then
2586 if { ac_try='./$ac_file'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 cross_compiling=no
2597 else
2598 if test "$cross_compiling" = maybe; then
2599 cross_compiling=yes
2600 else
2601 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2608 fi
2609 fi
2610 fi
2611 { echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6; }
2613
2614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2615 ac_clean_files=$ac_clean_files_save
2616 # Check that the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2620 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621 echo "${ECHO_T}$cross_compiling" >&6; }
2622
2623 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2625 if { (ac_try="$ac_link"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_link") 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; then
2635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2636 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2637 # work properly (i.e., refer to `conftest.exe'), while it won't with
2638 # `rm'.
2639 for ac_file in conftest.exe conftest conftest.*; do
2640 test -f "$ac_file" || continue
2641 case $ac_file in
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2644 break;;
2645 * ) break;;
2646 esac
2647 done
2648 else
2649 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2652 See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
2654 fi
2655
2656 rm -f conftest$ac_cv_exeext
2657 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2658 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2659
2660 rm -f conftest.$ac_ext
2661 EXEEXT=$ac_cv_exeext
2662 ac_exeext=$EXEEXT
2663 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2664 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2665 if test "${ac_cv_objext+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h. */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2674
2675 int
2676 main ()
2677 {
2678
2679 ;
2680 return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.o conftest.obj
2684 if { (ac_try="$ac_compile"
2685 case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compile") 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 for ac_file in conftest.o conftest.obj conftest.*; do
2695 test -f "$ac_file" || continue;
2696 case $ac_file in
2697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2699 break;;
2700 esac
2701 done
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2705
2706 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&2;}
2710 { (exit 1); exit 1; }; }
2711 fi
2712
2713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2714 fi
2715 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2716 echo "${ECHO_T}$ac_cv_objext" >&6; }
2717 OBJEXT=$ac_cv_objext
2718 ac_objext=$OBJEXT
2719 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730
2731 int
2732 main ()
2733 {
2734 #ifndef __GNUC__
2735 choke me
2736 #endif
2737
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compile") 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } && {
2756 test -z "$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 } && test -s conftest.$ac_objext; then
2759 ac_compiler_gnu=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 ac_compiler_gnu=no
2765 fi
2766
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2769
2770 fi
2771 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2772 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2773 GCC=`test $ac_compiler_gnu = yes && echo yes`
2774 ac_test_CFLAGS=${CFLAGS+set}
2775 ac_save_CFLAGS=$CFLAGS
2776 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2777 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_cc_g+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 ac_save_c_werror_flag=$ac_c_werror_flag
2782 ac_c_werror_flag=yes
2783 ac_cv_prog_cc_g=no
2784 CFLAGS="-g"
2785 cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h. */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791
2792 int
2793 main ()
2794 {
2795
2796 ;
2797 return 0;
2798 }
2799 _ACEOF
2800 rm -f conftest.$ac_objext
2801 if { (ac_try="$ac_compile"
2802 case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compile") 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } && {
2814 test -z "$ac_c_werror_flag" ||
2815 test ! -s conftest.err
2816 } && test -s conftest.$ac_objext; then
2817 ac_cv_prog_cc_g=yes
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 CFLAGS=""
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829
2830 int
2831 main ()
2832 {
2833
2834 ;
2835 return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (ac_try="$ac_compile"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compile") 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } && {
2852 test -z "$ac_c_werror_flag" ||
2853 test ! -s conftest.err
2854 } && test -s conftest.$ac_objext; then
2855 :
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 ac_c_werror_flag=$ac_save_c_werror_flag
2861 CFLAGS="-g"
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868
2869 int
2870 main ()
2871 {
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_compile") 2>conftest.er1
2885 ac_status=$?
2886 grep -v '^ *+' conftest.er1 >conftest.err
2887 rm -f conftest.er1
2888 cat conftest.err >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } && {
2891 test -z "$ac_c_werror_flag" ||
2892 test ! -s conftest.err
2893 } && test -s conftest.$ac_objext; then
2894 ac_cv_prog_cc_g=yes
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899
2900 fi
2901
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 fi
2904
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_c_werror_flag=$ac_save_c_werror_flag
2910 fi
2911 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2912 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2913 if test "$ac_test_CFLAGS" = set; then
2914 CFLAGS=$ac_save_CFLAGS
2915 elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2917 CFLAGS="-g -O2"
2918 else
2919 CFLAGS="-g"
2920 fi
2921 else
2922 if test "$GCC" = yes; then
2923 CFLAGS="-O2"
2924 else
2925 CFLAGS=
2926 fi
2927 fi
2928 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2929 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2930 if test "${ac_cv_prog_cc_c89+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 ac_cv_prog_cc_c89=no
2934 ac_save_CC=$CC
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <stdarg.h>
2942 #include <stdio.h>
2943 #include <sys/types.h>
2944 #include <sys/stat.h>
2945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2946 struct buf { int x; };
2947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2948 static char *e (p, i)
2949 char **p;
2950 int i;
2951 {
2952 return p[i];
2953 }
2954 static char *f (char * (*g) (char **, int), char **p, ...)
2955 {
2956 char *s;
2957 va_list v;
2958 va_start (v,p);
2959 s = g (p, va_arg (v,int));
2960 va_end (v);
2961 return s;
2962 }
2963
2964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2965 function prototypes and stuff, but not '\xHH' hex character constants.
2966 These don't provoke an error unfortunately, instead are silently treated
2967 as 'x'. The following induces an error, until -std is added to get
2968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2969 array size at least. It's necessary to write '\x00'==0 to get something
2970 that's true only with -std. */
2971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972
2973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2974 inside strings and character constants. */
2975 #define FOO(x) 'x'
2976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977
2978 int test (int i, double x);
2979 struct s1 {int (*f) (int a);};
2980 struct s2 {int (*f) (double a);};
2981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2982 int argc;
2983 char **argv;
2984 int
2985 main ()
2986 {
2987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994 do
2995 CC="$ac_save_CC $ac_arg"
2996 rm -f conftest.$ac_objext
2997 if { (ac_try="$ac_compile"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compile") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } && {
3010 test -z "$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 } && test -s conftest.$ac_objext; then
3013 ac_cv_prog_cc_c89=$ac_arg
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018
3019 fi
3020
3021 rm -f core conftest.err conftest.$ac_objext
3022 test "x$ac_cv_prog_cc_c89" != "xno" && break
3023 done
3024 rm -f conftest.$ac_ext
3025 CC=$ac_save_CC
3026
3027 fi
3028 # AC_CACHE_VAL
3029 case "x$ac_cv_prog_cc_c89" in
3030 x)
3031 { echo "$as_me:$LINENO: result: none needed" >&5
3032 echo "${ECHO_T}none needed" >&6; } ;;
3033 xno)
3034 { echo "$as_me:$LINENO: result: unsupported" >&5
3035 echo "${ECHO_T}unsupported" >&6; } ;;
3036 *)
3037 CC="$CC $ac_cv_prog_cc_c89"
3038 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3039 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3040 esac
3041
3042
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048
3049
3050
3051 ac_ext=c
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3057 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3058 # On Suns, sometimes $CPP names a directory.
3059 if test -n "$CPP" && test -d "$CPP"; then
3060 CPP=
3061 fi
3062 if test -z "$CPP"; then
3063 if test "${ac_cv_prog_CPP+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 # Double quotes because CPP needs to be expanded
3067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3068 do
3069 ac_preproc_ok=false
3070 for ac_c_preproc_warn_flag in '' yes
3071 do
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 #ifdef __STDC__
3085 # include <limits.h>
3086 #else
3087 # include <assert.h>
3088 #endif
3089 Syntax error
3090 _ACEOF
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 }; then
3107 :
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 # Broken: fails on valid input.
3113 continue
3114 fi
3115
3116 rm -f conftest.err conftest.$ac_ext
3117
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 }; then
3144 # Broken: success on invalid input.
3145 continue
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3153 fi
3154
3155 rm -f conftest.err conftest.$ac_ext
3156
3157 done
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3161 break
3162 fi
3163
3164 done
3165 ac_cv_prog_CPP=$CPP
3166
3167 fi
3168 CPP=$ac_cv_prog_CPP
3169 else
3170 ac_cv_prog_CPP=$CPP
3171 fi
3172 { echo "$as_me:$LINENO: result: $CPP" >&5
3173 echo "${ECHO_T}$CPP" >&6; }
3174 ac_preproc_ok=false
3175 for ac_c_preproc_warn_flag in '' yes
3176 do
3177 # Use a header file that comes with gcc, so configuring glibc
3178 # with a fresh cross-compiler works.
3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3180 # <limits.h> exists even on freestanding compilers.
3181 # On the NeXT, cc -E runs the code through the compiler's parser,
3182 # not just through cpp. "Syntax error" is here to catch this case.
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #ifdef __STDC__
3190 # include <limits.h>
3191 #else
3192 # include <assert.h>
3193 #endif
3194 Syntax error
3195 _ACEOF
3196 if { (ac_try="$ac_cpp conftest.$ac_ext"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null && {
3209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 }; then
3212 :
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Broken: fails on valid input.
3218 continue
3219 fi
3220
3221 rm -f conftest.err conftest.$ac_ext
3222
3223 # OK, works on sane cases. Now check whether nonexistent headers
3224 # can be detected and how.
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 #include <ac_nonexistent.h>
3232 _ACEOF
3233 if { (ac_try="$ac_cpp conftest.$ac_ext"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } >/dev/null && {
3246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3247 test ! -s conftest.err
3248 }; then
3249 # Broken: success on invalid input.
3250 continue
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 # Passes both tests.
3256 ac_preproc_ok=:
3257 break
3258 fi
3259
3260 rm -f conftest.err conftest.$ac_ext
3261
3262 done
3263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264 rm -f conftest.err conftest.$ac_ext
3265 if $ac_preproc_ok; then
3266 :
3267 else
3268 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3273 fi
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281
3282 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3283 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_GREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 # Extract the first word of "grep ggrep" to use in msg output
3288 if test -z "$GREP"; then
3289 set dummy grep ggrep; ac_prog_name=$2
3290 if test "${ac_cv_path_GREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 ac_path_GREP_found=false
3294 # Loop through the user's path and test for each of PROGNAME-LIST
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in grep ggrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3304 # Check for GNU ac_path_GREP and select it if it is found.
3305 # Check for GNU $ac_path_GREP
3306 case `"$ac_path_GREP" --version 2>&1` in
3307 *GNU*)
3308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3309 *)
3310 ac_count=0
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 while :
3313 do
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'GREP' >> "conftest.nl"
3318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_GREP="$ac_path_GREP"
3324 ac_path_GREP_max=$ac_count
3325 fi
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3328 done
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330 esac
3331
3332
3333 $ac_path_GREP_found && break 3
3334 done
3335 done
3336
3337 done
3338 IFS=$as_save_IFS
3339
3340
3341 fi
3342
3343 GREP="$ac_cv_path_GREP"
3344 if test -z "$GREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3348 fi
3349
3350 else
3351 ac_cv_path_GREP=$GREP
3352 fi
3353
3354
3355 fi
3356 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3357 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3358 GREP="$ac_cv_path_GREP"
3359
3360
3361 { echo "$as_me:$LINENO: checking for egrep" >&5
3362 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3363 if test "${ac_cv_path_EGREP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3367 then ac_cv_path_EGREP="$GREP -E"
3368 else
3369 # Extract the first word of "egrep" to use in msg output
3370 if test -z "$EGREP"; then
3371 set dummy egrep; ac_prog_name=$2
3372 if test "${ac_cv_path_EGREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 ac_path_EGREP_found=false
3376 # Loop through the user's path and test for each of PROGNAME-LIST
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_prog in egrep; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3386 # Check for GNU ac_path_EGREP and select it if it is found.
3387 # Check for GNU $ac_path_EGREP
3388 case `"$ac_path_EGREP" --version 2>&1` in
3389 *GNU*)
3390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3391 *)
3392 ac_count=0
3393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3394 while :
3395 do
3396 cat "conftest.in" "conftest.in" >"conftest.tmp"
3397 mv "conftest.tmp" "conftest.in"
3398 cp "conftest.in" "conftest.nl"
3399 echo 'EGREP' >> "conftest.nl"
3400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 ac_count=`expr $ac_count + 1`
3403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3404 # Best one so far, save it but keep looking for a better one
3405 ac_cv_path_EGREP="$ac_path_EGREP"
3406 ac_path_EGREP_max=$ac_count
3407 fi
3408 # 10*(2^10) chars as input seems more than enough
3409 test $ac_count -gt 10 && break
3410 done
3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3412 esac
3413
3414
3415 $ac_path_EGREP_found && break 3
3416 done
3417 done
3418
3419 done
3420 IFS=$as_save_IFS
3421
3422
3423 fi
3424
3425 EGREP="$ac_cv_path_EGREP"
3426 if test -z "$EGREP"; then
3427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3429 { (exit 1); exit 1; }; }
3430 fi
3431
3432 else
3433 ac_cv_path_EGREP=$EGREP
3434 fi
3435
3436
3437 fi
3438 fi
3439 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3440 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3441 EGREP="$ac_cv_path_EGREP"
3442
3443
3444 if test $ac_cv_c_compiler_gnu = yes; then
3445 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3446 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 ac_pattern="Autoconf.*'x'"
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <sgtty.h>
3458 Autoconf TIOCGETP
3459 _ACEOF
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3462 ac_cv_prog_gcc_traditional=yes
3463 else
3464 ac_cv_prog_gcc_traditional=no
3465 fi
3466 rm -f conftest*
3467
3468
3469 if test $ac_cv_prog_gcc_traditional = no; then
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <termio.h>
3477 Autoconf TCGETA
3478 _ACEOF
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3481 ac_cv_prog_gcc_traditional=yes
3482 fi
3483 rm -f conftest*
3484
3485 fi
3486 fi
3487 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3488 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3489 if test $ac_cv_prog_gcc_traditional = yes; then
3490 CC="$CC -traditional"
3491 fi
3492 fi
3493
3494 # Find a good install program. We prefer a C program (faster),
3495 # so one script is as good as another. But avoid the broken or
3496 # incompatible versions:
3497 # SysV /etc/install, /usr/sbin/install
3498 # SunOS /usr/etc/install
3499 # IRIX /sbin/install
3500 # AIX /bin/install
3501 # AmigaOS /C/install, which installs bootblocks on floppy discs
3502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3505 # OS/2's system install, which has a completely different semantic
3506 # ./install, which can be erroneously created by make from ./install.sh.
3507 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3508 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3509 if test -z "$INSTALL"; then
3510 if test "${ac_cv_path_install+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 # Account for people who put trailing slashes in PATH elements.
3519 case $as_dir/ in
3520 ./ | .// | /cC/* | \
3521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3523 /usr/ucb/* ) ;;
3524 *)
3525 # OSF1 and SCO ODT 3.0 have their own names for install.
3526 # Don't use installbsd from OSF since it installs stuff as root
3527 # by default.
3528 for ac_prog in ginstall scoinst install; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3531 if test $ac_prog = install &&
3532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3533 # AIX install. It has an incompatible calling convention.
3534 :
3535 elif test $ac_prog = install &&
3536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3537 # program-specific install script used by HP pwplus--don't use.
3538 :
3539 else
3540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3541 break 3
3542 fi
3543 fi
3544 done
3545 done
3546 ;;
3547 esac
3548 done
3549 IFS=$as_save_IFS
3550
3551
3552 fi
3553 if test "${ac_cv_path_install+set}" = set; then
3554 INSTALL=$ac_cv_path_install
3555 else
3556 # As a last resort, use the slow shell script. Don't cache a
3557 # value for INSTALL within a source directory, because that will
3558 # break other packages using the cache if that directory is
3559 # removed, or if the value is a relative name.
3560 INSTALL=$ac_install_sh
3561 fi
3562 fi
3563 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3564 echo "${ECHO_T}$INSTALL" >&6; }
3565
3566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3567 # It thinks the first close brace ends the variable substitution.
3568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3569
3570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3571
3572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3573
3574 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3575 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3576 LN_S=$as_ln_s
3577 if test "$LN_S" = "ln -s"; then
3578 { echo "$as_me:$LINENO: result: yes" >&5
3579 echo "${ECHO_T}yes" >&6; }
3580 else
3581 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3582 echo "${ECHO_T}no, using $LN_S" >&6; }
3583 fi
3584
3585 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3586 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3587 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3588 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 cat >conftest.make <<\_ACEOF
3592 SHELL = /bin/sh
3593 all:
3594 @echo '@@@%%%=$(MAKE)=@@@%%%'
3595 _ACEOF
3596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3597 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3598 *@@@%%%=?*=@@@%%%*)
3599 eval ac_cv_prog_make_${ac_make}_set=yes;;
3600 *)
3601 eval ac_cv_prog_make_${ac_make}_set=no;;
3602 esac
3603 rm -f conftest.make
3604 fi
3605 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3606 { echo "$as_me:$LINENO: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6; }
3608 SET_MAKE=
3609 else
3610 { echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6; }
3612 SET_MAKE="MAKE=${MAKE-make}"
3613 fi
3614
3615 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3616 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3617 if test -z "$MKDIR_P"; then
3618 if test "${ac_cv_path_mkdir+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3623 do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in mkdir gmkdir; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3630 'mkdir (GNU coreutils) '* | \
3631 'mkdir (coreutils) '* | \
3632 'mkdir (fileutils) '4.1*)
3633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3634 break 3;;
3635 esac
3636 done
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 fi
3642
3643 if test "${ac_cv_path_mkdir+set}" = set; then
3644 MKDIR_P="$ac_cv_path_mkdir -p"
3645 else
3646 # As a last resort, use the slow shell script. Don't cache a
3647 # value for MKDIR_P within a source directory, because that will
3648 # break other packages using the cache if that directory is
3649 # removed, or if the value is a relative name.
3650 test -d ./--version && rmdir ./--version
3651 MKDIR_P="$ac_install_sh -d"
3652 fi
3653 fi
3654 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3655 echo "${ECHO_T}$MKDIR_P" >&6; }
3656
3657 if test -n "$ac_tool_prefix"; then
3658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3662 if test "${ac_cv_prog_RANLIB+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 if test -n "$RANLIB"; then
3666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679 done
3680 done
3681 IFS=$as_save_IFS
3682
3683 fi
3684 fi
3685 RANLIB=$ac_cv_prog_RANLIB
3686 if test -n "$RANLIB"; then
3687 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3688 echo "${ECHO_T}$RANLIB" >&6; }
3689 else
3690 { echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6; }
3692 fi
3693
3694
3695 fi
3696 if test -z "$ac_cv_prog_RANLIB"; then
3697 ac_ct_RANLIB=$RANLIB
3698 # Extract the first word of "ranlib", so it can be a program name with args.
3699 set dummy ranlib; ac_word=$2
3700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 if test -n "$ac_ct_RANLIB"; then
3706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_ac_ct_RANLIB="ranlib"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3726 if test -n "$ac_ct_RANLIB"; then
3727 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3728 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3729 else
3730 { echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6; }
3732 fi
3733
3734 if test "x$ac_ct_RANLIB" = x; then
3735 RANLIB=":"
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3740 whose name does not start with the host triplet. If you think this
3741 configuration is useful to you, please write to autoconf@gnu.org." >&5
3742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3743 whose name does not start with the host triplet. If you think this
3744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3745 ac_tool_warned=yes ;;
3746 esac
3747 RANLIB=$ac_ct_RANLIB
3748 fi
3749 else
3750 RANLIB="$ac_cv_prog_RANLIB"
3751 fi
3752
3753 # Extract the first word of "cflow", so it can be a program name with args.
3754 set dummy cflow; ac_word=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 case $CFLOW_CMD in
3761 [\\/]* | ?:[\\/]*)
3762 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3763 ;;
3764 *)
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 ;;
3781 esac
3782 fi
3783 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3784 if test -n "$CFLOW_CMD"; then
3785 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3786 echo "${ECHO_T}$CFLOW_CMD" >&6; }
3787 else
3788 { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3790 fi
3791
3792
3793 # Extract the first word of "cscope", so it can be a program name with args.
3794 set dummy cscope; ac_word=$2
3795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3797 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 case $CSCOPE_CMD in
3801 [\\/]* | ?:[\\/]*)
3802 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3803 ;;
3804 *)
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818 IFS=$as_save_IFS
3819
3820 ;;
3821 esac
3822 fi
3823 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3824 if test -n "$CSCOPE_CMD"; then
3825 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3826 echo "${ECHO_T}$CSCOPE_CMD" >&6; }
3827 else
3828 { echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6; }
3830 fi
3831
3832
3833
3834 ################################################################################
3835
3836
3837
3838
3839
3840 ac_header_dirent=no
3841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3842 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3843 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <sys/types.h>
3855 #include <$ac_hdr>
3856
3857 int
3858 main ()
3859 {
3860 if ((DIR *) 0)
3861 return 0;
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3883 eval "$as_ac_Header=yes"
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 eval "$as_ac_Header=no"
3889 fi
3890
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 fi
3893 ac_res=`eval echo '${'$as_ac_Header'}'`
3894 { echo "$as_me:$LINENO: result: $ac_res" >&5
3895 echo "${ECHO_T}$ac_res" >&6; }
3896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3897 cat >>confdefs.h <<_ACEOF
3898 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3899 _ACEOF
3900
3901 ac_header_dirent=$ac_hdr; break
3902 fi
3903
3904 done
3905 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3906 if test $ac_header_dirent = dirent.h; then
3907 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3908 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3909 if test "${ac_cv_search_opendir+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 ac_func_search_save_LIBS=$LIBS
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919
3920 /* Override any GCC internal prototype to avoid an error.
3921 Use char because int might match the return type of a GCC
3922 builtin and then its argument prototype would still apply. */
3923 #ifdef __cplusplus
3924 extern "C"
3925 #endif
3926 char opendir ();
3927 int
3928 main ()
3929 {
3930 return opendir ();
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 for ac_lib in '' dir; do
3936 if test -z "$ac_lib"; then
3937 ac_res="none required"
3938 else
3939 ac_res=-l$ac_lib
3940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3941 fi
3942 rm -f conftest.$ac_objext conftest$ac_exeext
3943 if { (ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_link") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && {
3956 test -z "$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3958 } && test -s conftest$ac_exeext &&
3959 $as_test_x conftest$ac_exeext; then
3960 ac_cv_search_opendir=$ac_res
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965
3966 fi
3967
3968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3969 conftest$ac_exeext
3970 if test "${ac_cv_search_opendir+set}" = set; then
3971 break
3972 fi
3973 done
3974 if test "${ac_cv_search_opendir+set}" = set; then
3975 :
3976 else
3977 ac_cv_search_opendir=no
3978 fi
3979 rm conftest.$ac_ext
3980 LIBS=$ac_func_search_save_LIBS
3981 fi
3982 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3983 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3984 ac_res=$ac_cv_search_opendir
3985 if test "$ac_res" != no; then
3986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3987
3988 fi
3989
3990 else
3991 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3992 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3993 if test "${ac_cv_search_opendir+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 ac_func_search_save_LIBS=$LIBS
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003
4004 /* Override any GCC internal prototype to avoid an error.
4005 Use char because int might match the return type of a GCC
4006 builtin and then its argument prototype would still apply. */
4007 #ifdef __cplusplus
4008 extern "C"
4009 #endif
4010 char opendir ();
4011 int
4012 main ()
4013 {
4014 return opendir ();
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 for ac_lib in '' x; do
4020 if test -z "$ac_lib"; then
4021 ac_res="none required"
4022 else
4023 ac_res=-l$ac_lib
4024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4025 fi
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027 if { (ac_try="$ac_link"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_link") 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && {
4040 test -z "$ac_c_werror_flag" ||
4041 test ! -s conftest.err
4042 } && test -s conftest$ac_exeext &&
4043 $as_test_x conftest$ac_exeext; then
4044 ac_cv_search_opendir=$ac_res
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049
4050 fi
4051
4052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4053 conftest$ac_exeext
4054 if test "${ac_cv_search_opendir+set}" = set; then
4055 break
4056 fi
4057 done
4058 if test "${ac_cv_search_opendir+set}" = set; then
4059 :
4060 else
4061 ac_cv_search_opendir=no
4062 fi
4063 rm conftest.$ac_ext
4064 LIBS=$ac_func_search_save_LIBS
4065 fi
4066 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4067 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4068 ac_res=$ac_cv_search_opendir
4069 if test "$ac_res" != no; then
4070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4071
4072 fi
4073
4074 fi
4075
4076 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4077 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4078 if test "${ac_cv_header_stdc+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 cat >conftest.$ac_ext <<_ACEOF
4082 /* confdefs.h. */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 #include <stdlib.h>
4088 #include <stdarg.h>
4089 #include <string.h>
4090 #include <float.h>
4091
4092 int
4093 main ()
4094 {
4095
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 rm -f conftest.$ac_objext
4101 if { (ac_try="$ac_compile"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4117 ac_cv_header_stdc=yes
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 ac_cv_header_stdc=no
4123 fi
4124
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126
4127 if test $ac_cv_header_stdc = yes; then
4128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <string.h>
4136
4137 _ACEOF
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "memchr" >/dev/null 2>&1; then
4140 :
4141 else
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest*
4145
4146 fi
4147
4148 if test $ac_cv_header_stdc = yes; then
4149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 #include <stdlib.h>
4157
4158 _ACEOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "free" >/dev/null 2>&1; then
4161 :
4162 else
4163 ac_cv_header_stdc=no
4164 fi
4165 rm -f conftest*
4166
4167 fi
4168
4169 if test $ac_cv_header_stdc = yes; then
4170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4171 if test "$cross_compiling" = yes; then
4172 :
4173 else
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 #include <ctype.h>
4181 #include <stdlib.h>
4182 #if ((' ' & 0x0FF) == 0x020)
4183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4185 #else
4186 # define ISLOWER(c) \
4187 (('a' <= (c) && (c) <= 'i') \
4188 || ('j' <= (c) && (c) <= 'r') \
4189 || ('s' <= (c) && (c) <= 'z'))
4190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4191 #endif
4192
4193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4194 int
4195 main ()
4196 {
4197 int i;
4198 for (i = 0; i < 256; i++)
4199 if (XOR (islower (i), ISLOWER (i))
4200 || toupper (i) != TOUPPER (i))
4201 return 2;
4202 return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest$ac_exeext
4206 if { (ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_link") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216 { (case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_try") 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 :
4226 else
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ( exit $ac_status )
4232 ac_cv_header_stdc=no
4233 fi
4234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 fi
4236
4237
4238 fi
4239 fi
4240 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4241 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4242 if test $ac_cv_header_stdc = yes; then
4243
4244 cat >>confdefs.h <<\_ACEOF
4245 #define STDC_HEADERS 1
4246 _ACEOF
4247
4248 fi
4249
4250 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4251 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 #include <sys/types.h>
4262 #include <sys/wait.h>
4263 #ifndef WEXITSTATUS
4264 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4265 #endif
4266 #ifndef WIFEXITED
4267 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4268 #endif
4269
4270 int
4271 main ()
4272 {
4273 int s;
4274 wait (&s);
4275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (ac_try="$ac_compile"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
4297 ac_cv_header_sys_wait_h=yes
4298 else
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ac_cv_header_sys_wait_h=no
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4308 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4309 if test $ac_cv_header_sys_wait_h = yes; then
4310
4311 cat >>confdefs.h <<\_ACEOF
4312 #define HAVE_SYS_WAIT_H 1
4313 _ACEOF
4314
4315 fi
4316
4317 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4318 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4319 if test "${ac_cv_header_time+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #include <sys/types.h>
4329 #include <sys/time.h>
4330 #include <time.h>
4331
4332 int
4333 main ()
4334 {
4335 if ((struct tm *) 0)
4336 return 0;
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
4358 ac_cv_header_time=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 ac_cv_header_time=no
4364 fi
4365
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 fi
4368 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4369 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4370 if test $ac_cv_header_time = yes; then
4371
4372 cat >>confdefs.h <<\_ACEOF
4373 #define TIME_WITH_SYS_TIME 1
4374 _ACEOF
4375
4376 fi
4377
4378
4379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4390 inttypes.h stdint.h unistd.h
4391 do
4392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 $ac_includes_default
4405
4406 #include <$ac_header>
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (ac_try="$ac_compile"
4410 case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 eval "$as_ac_Header=yes"
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 eval "$as_ac_Header=no"
4431 fi
4432
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 fi
4435 ac_res=`eval echo '${'$as_ac_Header'}'`
4436 { echo "$as_me:$LINENO: result: $ac_res" >&5
4437 echo "${ECHO_T}$ac_res" >&6; }
4438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4439 cat >>confdefs.h <<_ACEOF
4440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441 _ACEOF
4442
4443 fi
4444
4445 done
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4462 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4463 do
4464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 fi
4471 ac_res=`eval echo '${'$as_ac_Header'}'`
4472 { echo "$as_me:$LINENO: result: $ac_res" >&5
4473 echo "${ECHO_T}$ac_res" >&6; }
4474 else
4475 # Is the header compilable?
4476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4478 cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 $ac_includes_default
4485 #include <$ac_header>
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (ac_try="$ac_compile"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_compile") 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } && {
4501 test -z "$ac_c_werror_flag" ||
4502 test ! -s conftest.err
4503 } && test -s conftest.$ac_objext; then
4504 ac_header_compiler=yes
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 ac_header_compiler=no
4510 fi
4511
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4514 echo "${ECHO_T}$ac_header_compiler" >&6; }
4515
4516 # Is the header present?
4517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4519 cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h. */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 #include <$ac_header>
4526 _ACEOF
4527 if { (ac_try="$ac_cpp conftest.$ac_ext"
4528 case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } >/dev/null && {
4540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 }; then
4543 ac_header_preproc=yes
4544 else
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 ac_header_preproc=no
4549 fi
4550
4551 rm -f conftest.err conftest.$ac_ext
4552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4553 echo "${ECHO_T}$ac_header_preproc" >&6; }
4554
4555 # So? What about this header?
4556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4557 yes:no: )
4558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4562 ac_header_preproc=yes
4563 ;;
4564 no:yes:* )
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4577
4578 ;;
4579 esac
4580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 eval "$as_ac_Header=\$ac_header_preproc"
4586 fi
4587 ac_res=`eval echo '${'$as_ac_Header'}'`
4588 { echo "$as_me:$LINENO: result: $ac_res" >&5
4589 echo "${ECHO_T}$ac_res" >&6; }
4590
4591 fi
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 _ACEOF
4596
4597 else
4598 { { echo "$as_me:$LINENO: error: bailing out" >&5
4599 echo "$as_me: error: bailing out" >&2;}
4600 { (exit 1); exit 1; }; }
4601 fi
4602
4603 done
4604
4605
4606 case "$host_os" in
4607 linux*)
4608
4609
4610
4611 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4612 do
4613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 fi
4620 ac_res=`eval echo '${'$as_ac_Header'}'`
4621 { echo "$as_me:$LINENO: result: $ac_res" >&5
4622 echo "${ECHO_T}$ac_res" >&6; }
4623 else
4624 # Is the header compilable?
4625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 $ac_includes_default
4634 #include <$ac_header>
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_header_compiler=no
4659 fi
4660
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 echo "${ECHO_T}$ac_header_compiler" >&6; }
4664
4665 # Is the header present?
4666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <$ac_header>
4675 _ACEOF
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } >/dev/null && {
4689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 }; then
4692 ac_header_preproc=yes
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_header_preproc=no
4698 fi
4699
4700 rm -f conftest.err conftest.$ac_ext
4701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4702 echo "${ECHO_T}$ac_header_preproc" >&6; }
4703
4704 # So? What about this header?
4705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4706 yes:no: )
4707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4711 ac_header_preproc=yes
4712 ;;
4713 no:yes:* )
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4726
4727 ;;
4728 esac
4729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 eval "$as_ac_Header=\$ac_header_preproc"
4735 fi
4736 ac_res=`eval echo '${'$as_ac_Header'}'`
4737 { echo "$as_me:$LINENO: result: $ac_res" >&5
4738 echo "${ECHO_T}$ac_res" >&6; }
4739
4740 fi
4741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4742 cat >>confdefs.h <<_ACEOF
4743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744 _ACEOF
4745
4746 else
4747 { { echo "$as_me:$LINENO: error: bailing out" >&5
4748 echo "$as_me: error: bailing out" >&2;}
4749 { (exit 1); exit 1; }; }
4750 fi
4751
4752 done
4753 ;;
4754 darwin*)
4755
4756
4757 for ac_header in machine/endian.h sys/disk.h
4758 do
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 fi
4766 ac_res=`eval echo '${'$as_ac_Header'}'`
4767 { echo "$as_me:$LINENO: result: $ac_res" >&5
4768 echo "${ECHO_T}$ac_res" >&6; }
4769 else
4770 # Is the header compilable?
4771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4780 #include <$ac_header>
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (ac_try="$ac_compile"
4784 case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_compile") 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
4799 ac_header_compiler=yes
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 ac_header_compiler=no
4805 fi
4806
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4809 echo "${ECHO_T}$ac_header_compiler" >&6; }
4810
4811 # Is the header present?
4812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <$ac_header>
4821 _ACEOF
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null && {
4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4837 }; then
4838 ac_header_preproc=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ac_header_preproc=no
4844 fi
4845
4846 rm -f conftest.err conftest.$ac_ext
4847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4848 echo "${ECHO_T}$ac_header_preproc" >&6; }
4849
4850 # So? What about this header?
4851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4852 yes:no: )
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4857 ac_header_preproc=yes
4858 ;;
4859 no:yes:* )
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4872
4873 ;;
4874 esac
4875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 eval "$as_ac_Header=\$ac_header_preproc"
4881 fi
4882 ac_res=`eval echo '${'$as_ac_Header'}'`
4883 { echo "$as_me:$LINENO: result: $ac_res" >&5
4884 echo "${ECHO_T}$ac_res" >&6; }
4885
4886 fi
4887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4888 cat >>confdefs.h <<_ACEOF
4889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4890 _ACEOF
4891
4892 else
4893 { { echo "$as_me:$LINENO: error: bailing out" >&5
4894 echo "$as_me: error: bailing out" >&2;}
4895 { (exit 1); exit 1; }; }
4896 fi
4897
4898 done
4899 ;;
4900 esac
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4919 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4920 sys/types.h unistd.h
4921 do
4922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 fi
4929 ac_res=`eval echo '${'$as_ac_Header'}'`
4930 { echo "$as_me:$LINENO: result: $ac_res" >&5
4931 echo "${ECHO_T}$ac_res" >&6; }
4932 else
4933 # Is the header compilable?
4934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 $ac_includes_default
4943 #include <$ac_header>
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (ac_try="$ac_compile"
4947 case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_compile") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } && {
4959 test -z "$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 } && test -s conftest.$ac_objext; then
4962 ac_header_compiler=yes
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_header_compiler=no
4968 fi
4969
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4972 echo "${ECHO_T}$ac_header_compiler" >&6; }
4973
4974 # Is the header present?
4975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #include <$ac_header>
4984 _ACEOF
4985 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
5001 ac_header_preproc=yes
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_header_preproc=no
5007 fi
5008
5009 rm -f conftest.err conftest.$ac_ext
5010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5011 echo "${ECHO_T}$ac_header_preproc" >&6; }
5012
5013 # So? What about this header?
5014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5015 yes:no: )
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5020 ac_header_preproc=yes
5021 ;;
5022 no:yes:* )
5023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5035
5036 ;;
5037 esac
5038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 eval "$as_ac_Header=\$ac_header_preproc"
5044 fi
5045 ac_res=`eval echo '${'$as_ac_Header'}'`
5046 { echo "$as_me:$LINENO: result: $ac_res" >&5
5047 echo "${ECHO_T}$ac_res" >&6; }
5048
5049 fi
5050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5051 cat >>confdefs.h <<_ACEOF
5052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5053 _ACEOF
5054
5055 else
5056 { { echo "$as_me:$LINENO: error: bailing out" >&5
5057 echo "$as_me: error: bailing out" >&2;}
5058 { (exit 1); exit 1; }; }
5059 fi
5060
5061 done
5062
5063
5064
5065 for ac_header in termios.h sys/statvfs.h
5066 do
5067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 fi
5074 ac_res=`eval echo '${'$as_ac_Header'}'`
5075 { echo "$as_me:$LINENO: result: $ac_res" >&5
5076 echo "${ECHO_T}$ac_res" >&6; }
5077 else
5078 # Is the header compilable?
5079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h. */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 $ac_includes_default
5088 #include <$ac_header>
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compile") 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && {
5104 test -z "$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
5107 ac_header_compiler=yes
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_header_compiler=no
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5117 echo "${ECHO_T}$ac_header_compiler" >&6; }
5118
5119 # Is the header present?
5120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #include <$ac_header>
5129 _ACEOF
5130 if { (ac_try="$ac_cpp conftest.$ac_ext"
5131 case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } >/dev/null && {
5143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 }; then
5146 ac_header_preproc=yes
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 ac_header_preproc=no
5152 fi
5153
5154 rm -f conftest.err conftest.$ac_ext
5155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5156 echo "${ECHO_T}$ac_header_preproc" >&6; }
5157
5158 # So? What about this header?
5159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5160 yes:no: )
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5165 ac_header_preproc=yes
5166 ;;
5167 no:yes:* )
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5180
5181 ;;
5182 esac
5183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 eval "$as_ac_Header=\$ac_header_preproc"
5189 fi
5190 ac_res=`eval echo '${'$as_ac_Header'}'`
5191 { echo "$as_me:$LINENO: result: $ac_res" >&5
5192 echo "${ECHO_T}$ac_res" >&6; }
5193
5194 fi
5195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5196 cat >>confdefs.h <<_ACEOF
5197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5198 _ACEOF
5199
5200 fi
5201
5202 done
5203
5204
5205 ################################################################################
5206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5208 if test "${ac_cv_c_const+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217
5218 int
5219 main ()
5220 {
5221 /* FIXME: Include the comments suggested by Paul. */
5222 #ifndef __cplusplus
5223 /* Ultrix mips cc rejects this. */
5224 typedef int charset[2];
5225 const charset cs;
5226 /* SunOS 4.1.1 cc rejects this. */
5227 char const *const *pcpcc;
5228 char **ppc;
5229 /* NEC SVR4.0.2 mips cc rejects this. */
5230 struct point {int x, y;};
5231 static struct point const zero = {0,0};
5232 /* AIX XL C 1.02.0.0 rejects this.
5233 It does not let you subtract one const X* pointer from another in
5234 an arm of an if-expression whose if-part is not a constant
5235 expression */
5236 const char *g = "string";
5237 pcpcc = &g + (g ? g-g : 0);
5238 /* HPUX 7.0 cc rejects these. */
5239 ++pcpcc;
5240 ppc = (char**) pcpcc;
5241 pcpcc = (char const *const *) ppc;
5242 { /* SCO 3.2v4 cc rejects this. */
5243 char *t;
5244 char const *s = 0 ? (char *) 0 : (char const *) 0;
5245
5246 *t++ = 0;
5247 if (s) return 0;
5248 }
5249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5250 int x[] = {25, 17};
5251 const int *foo = &x[0];
5252 ++foo;
5253 }
5254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5255 typedef const int *iptr;
5256 iptr p = 0;
5257 ++p;
5258 }
5259 { /* AIX XL C 1.02.0.0 rejects this saying
5260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5261 struct s { int j; const int *ap[3]; };
5262 struct s *b; b->j = 5;
5263 }
5264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5265 const int foo = 10;
5266 if (!foo) return 0;
5267 }
5268 return !cs[0] && !zero.x;
5269 #endif
5270
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (ac_try="$ac_compile"
5277 case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_compile") 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest.$ac_objext; then
5292 ac_cv_c_const=yes
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 ac_cv_c_const=no
5298 fi
5299
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 fi
5302 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5303 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5304 if test $ac_cv_c_const = no; then
5305
5306 cat >>confdefs.h <<\_ACEOF
5307 #define const
5308 _ACEOF
5309
5310 fi
5311
5312 { echo "$as_me:$LINENO: checking for inline" >&5
5313 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5314 if test "${ac_cv_c_inline+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 ac_cv_c_inline=no
5318 for ac_kw in inline __inline__ __inline; do
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #ifndef __cplusplus
5326 typedef int foo_t;
5327 static $ac_kw foo_t static_foo () {return 0; }
5328 $ac_kw foo_t foo () {return 0; }
5329 #endif
5330
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_cv_c_inline=$ac_kw
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 test "$ac_cv_c_inline" != no && break
5359 done
5360
5361 fi
5362 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5363 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5364
5365
5366 case $ac_cv_c_inline in
5367 inline | yes) ;;
5368 *)
5369 case $ac_cv_c_inline in
5370 no) ac_val=;;
5371 *) ac_val=$ac_cv_c_inline;;
5372 esac
5373 cat >>confdefs.h <<_ACEOF
5374 #ifndef __cplusplus
5375 #define inline $ac_val
5376 #endif
5377 _ACEOF
5378 ;;
5379 esac
5380
5381 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5382 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5383 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5393 int
5394 main ()
5395 {
5396 static struct stat ac_aggr;
5397 if (ac_aggr.st_rdev)
5398 return 0;
5399 ;
5400 return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (ac_try="$ac_compile"
5405 case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_compile") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
5420 ac_cv_member_struct_stat_st_rdev=yes
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5432 int
5433 main ()
5434 {
5435 static struct stat ac_aggr;
5436 if (sizeof ac_aggr.st_rdev)
5437 return 0;
5438 ;
5439 return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5459 ac_cv_member_struct_stat_st_rdev=yes
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_cv_member_struct_stat_st_rdev=no
5465 fi
5466
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5473 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5474 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5475
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_STRUCT_STAT_ST_RDEV 1
5478 _ACEOF
5479
5480
5481 fi
5482
5483 { echo "$as_me:$LINENO: checking for off_t" >&5
5484 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5485 if test "${ac_cv_type_off_t+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5495 typedef off_t ac__type_new_;
5496 int
5497 main ()
5498 {
5499 if ((ac__type_new_ *) 0)
5500 return 0;
5501 if (sizeof (ac__type_new_))
5502 return 0;
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 ac_cv_type_off_t=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_cv_type_off_t=no
5530 fi
5531
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 fi
5534 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5535 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5536 if test $ac_cv_type_off_t = yes; then
5537 :
5538 else
5539
5540 cat >>confdefs.h <<_ACEOF
5541 #define off_t long int
5542 _ACEOF
5543
5544 fi
5545
5546 { echo "$as_me:$LINENO: checking for pid_t" >&5
5547 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5548 if test "${ac_cv_type_pid_t+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 $ac_includes_default
5558 typedef pid_t ac__type_new_;
5559 int
5560 main ()
5561 {
5562 if ((ac__type_new_ *) 0)
5563 return 0;
5564 if (sizeof (ac__type_new_))
5565 return 0;
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_cv_type_pid_t=yes
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 ac_cv_type_pid_t=no
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5598 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5599 if test $ac_cv_type_pid_t = yes; then
5600 :
5601 else
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define pid_t int
5605 _ACEOF
5606
5607 fi
5608
5609 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5610 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5611 if test "${ac_cv_type_signal+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 #include <sys/types.h>
5621 #include <signal.h>
5622
5623 int
5624 main ()
5625 {
5626 return *(signal (0, 0)) (0) == 1;
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_cv_type_signal=int
5649 else
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_cv_type_signal=void
5654 fi
5655
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 fi
5658 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5659 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5660
5661 cat >>confdefs.h <<_ACEOF
5662 #define RETSIGTYPE $ac_cv_type_signal
5663 _ACEOF
5664
5665
5666 { echo "$as_me:$LINENO: checking for size_t" >&5
5667 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5668 if test "${ac_cv_type_size_t+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 $ac_includes_default
5678 typedef size_t ac__type_new_;
5679 int
5680 main ()
5681 {
5682 if ((ac__type_new_ *) 0)
5683 return 0;
5684 if (sizeof (ac__type_new_))
5685 return 0;
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (ac_try="$ac_compile"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
5707 ac_cv_type_size_t=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_cv_type_size_t=no
5713 fi
5714
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5718 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5719 if test $ac_cv_type_size_t = yes; then
5720 :
5721 else
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define size_t unsigned int
5725 _ACEOF
5726
5727 fi
5728
5729 { echo "$as_me:$LINENO: checking for mode_t" >&5
5730 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
5731 if test "${ac_cv_type_mode_t+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 $ac_includes_default
5741 typedef mode_t ac__type_new_;
5742 int
5743 main ()
5744 {
5745 if ((ac__type_new_ *) 0)
5746 return 0;
5747 if (sizeof (ac__type_new_))
5748 return 0;
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (ac_try="$ac_compile"
5755 case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compile") 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } && {
5767 test -z "$ac_c_werror_flag" ||
5768 test ! -s conftest.err
5769 } && test -s conftest.$ac_objext; then
5770 ac_cv_type_mode_t=yes
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 ac_cv_type_mode_t=no
5776 fi
5777
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 fi
5780 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5781 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5782 if test $ac_cv_type_mode_t = yes; then
5783 :
5784 else
5785
5786 cat >>confdefs.h <<_ACEOF
5787 #define mode_t int
5788 _ACEOF
5789
5790 fi
5791
5792 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5793 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5794 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 int
5805 main ()
5806 {
5807 static struct stat ac_aggr;
5808 if (ac_aggr.st_rdev)
5809 return 0;
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && {
5828 test -z "$ac_c_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
5831 ac_cv_member_struct_stat_st_rdev=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
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 static struct stat ac_aggr;
5847 if (sizeof ac_aggr.st_rdev)
5848 return 0;
5849 ;
5850 return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $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 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 ac_cv_member_struct_stat_st_rdev=yes
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 ac_cv_member_struct_stat_st_rdev=no
5876 fi
5877
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5884 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5885 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5886
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_STRUCT_STAT_ST_RDEV 1
5889 _ACEOF
5890
5891
5892 fi
5893
5894 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5895 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5896 if test "${ac_cv_struct_tm+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <sys/types.h>
5906 #include <time.h>
5907
5908 int
5909 main ()
5910 {
5911 struct tm tm;
5912 int *p = &tm.tm_sec;
5913 return !p;
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compile") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest.$ac_objext; then
5935 ac_cv_struct_tm=time.h
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 ac_cv_struct_tm=sys/time.h
5941 fi
5942
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 fi
5945 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5946 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5947 if test $ac_cv_struct_tm = sys/time.h; then
5948
5949 cat >>confdefs.h <<\_ACEOF
5950 #define TM_IN_SYS_TIME 1
5951 _ACEOF
5952
5953 fi
5954
5955
5956 ################################################################################
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5975 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5976 uname
5977 do
5978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5992 #define $ac_func innocuous_$ac_func
5993
5994 /* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char $ac_func (); below.
5996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 <limits.h> exists even on freestanding compilers. */
5998
5999 #ifdef __STDC__
6000 # include <limits.h>
6001 #else
6002 # include <assert.h>
6003 #endif
6004
6005 #undef $ac_func
6006
6007 /* Override any GCC internal prototype to avoid an error.
6008 Use char because int might match the return type of a GCC
6009 builtin and then its argument prototype would still apply. */
6010 #ifdef __cplusplus
6011 extern "C"
6012 #endif
6013 char $ac_func ();
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined __stub_$ac_func || defined __stub___$ac_func
6018 choke me
6019 #endif
6020
6021 int
6022 main ()
6023 {
6024 return $ac_func ();
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (ac_try="$ac_link"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_link") 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest$ac_exeext &&
6046 $as_test_x conftest$ac_exeext; then
6047 eval "$as_ac_var=yes"
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052 eval "$as_ac_var=no"
6053 fi
6054
6055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6056 conftest$ac_exeext conftest.$ac_ext
6057 fi
6058 ac_res=`eval echo '${'$as_ac_var'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060 echo "${ECHO_T}$ac_res" >&6; }
6061 if test `eval echo '${'$as_ac_var'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6064 _ACEOF
6065
6066 else
6067 { { echo "$as_me:$LINENO: error: bailing out" >&5
6068 echo "$as_me: error: bailing out" >&2;}
6069 { (exit 1); exit 1; }; }
6070 fi
6071 done
6072
6073 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6074 # for constant arguments. Useless!
6075 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6076 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6077 if test "${ac_cv_working_alloca_h+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <alloca.h>
6087 int
6088 main ()
6089 {
6090 char *p = (char *) alloca (2 * sizeof (int));
6091 if (p) return 0;
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext conftest$ac_exeext
6097 if { (ac_try="$ac_link"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_link") 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && {
6110 test -z "$ac_c_werror_flag" ||
6111 test ! -s conftest.err
6112 } && test -s conftest$ac_exeext &&
6113 $as_test_x conftest$ac_exeext; then
6114 ac_cv_working_alloca_h=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_working_alloca_h=no
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6123 conftest$ac_exeext conftest.$ac_ext
6124 fi
6125 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6126 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6127 if test $ac_cv_working_alloca_h = yes; then
6128
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_ALLOCA_H 1
6131 _ACEOF
6132
6133 fi
6134
6135 { echo "$as_me:$LINENO: checking for alloca" >&5
6136 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6137 if test "${ac_cv_func_alloca_works+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 #ifdef __GNUC__
6147 # define alloca __builtin_alloca
6148 #else
6149 # ifdef _MSC_VER
6150 # include <malloc.h>
6151 # define alloca _alloca
6152 # else
6153 # ifdef HAVE_ALLOCA_H
6154 # include <alloca.h>
6155 # else
6156 # ifdef _AIX
6157 #pragma alloca
6158 # else
6159 # ifndef alloca /* predefined by HP cc +Olibcalls */
6160 char *alloca ();
6161 # endif
6162 # endif
6163 # endif
6164 # endif
6165 #endif
6166
6167 int
6168 main ()
6169 {
6170 char *p = (char *) alloca (1);
6171 if (p) return 0;
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (ac_try="$ac_link"
6178 case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_link") 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest$ac_exeext &&
6193 $as_test_x conftest$ac_exeext; then
6194 ac_cv_func_alloca_works=yes
6195 else
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 ac_cv_func_alloca_works=no
6200 fi
6201
6202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6203 conftest$ac_exeext conftest.$ac_ext
6204 fi
6205 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6206 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6207
6208 if test $ac_cv_func_alloca_works = yes; then
6209
6210 cat >>confdefs.h <<\_ACEOF
6211 #define HAVE_ALLOCA 1
6212 _ACEOF
6213
6214 else
6215 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6216 # that cause trouble. Some versions do not even contain alloca or
6217 # contain a buggy version. If you still want to use their alloca,
6218 # use ar to extract alloca.o from them instead of compiling alloca.c.
6219
6220 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6221
6222 cat >>confdefs.h <<\_ACEOF
6223 #define C_ALLOCA 1
6224 _ACEOF
6225
6226
6227 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6228 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6229 if test "${ac_cv_os_cray+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #if defined CRAY && ! defined CRAY2
6239 webecray
6240 #else
6241 wenotbecray
6242 #endif
6243
6244 _ACEOF
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "webecray" >/dev/null 2>&1; then
6247 ac_cv_os_cray=yes
6248 else
6249 ac_cv_os_cray=no
6250 fi
6251 rm -f conftest*
6252
6253 fi
6254 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6255 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6256 if test $ac_cv_os_cray = yes; then
6257 for ac_func in _getb67 GETB67 getb67; do
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6272 #define $ac_func innocuous_$ac_func
6273
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func (); below.
6276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277 <limits.h> exists even on freestanding compilers. */
6278
6279 #ifdef __STDC__
6280 # include <limits.h>
6281 #else
6282 # include <assert.h>
6283 #endif
6284
6285 #undef $ac_func
6286
6287 /* Override any GCC internal prototype to avoid an error.
6288 Use char because int might match the return type of a GCC
6289 builtin and then its argument prototype would still apply. */
6290 #ifdef __cplusplus
6291 extern "C"
6292 #endif
6293 char $ac_func ();
6294 /* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
6297 #if defined __stub_$ac_func || defined __stub___$ac_func
6298 choke me
6299 #endif
6300
6301 int
6302 main ()
6303 {
6304 return $ac_func ();
6305 ;
6306 return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (ac_try="$ac_link"
6311 case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_link") 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest$ac_exeext &&
6326 $as_test_x conftest$ac_exeext; then
6327 eval "$as_ac_var=yes"
6328 else
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 eval "$as_ac_var=no"
6333 fi
6334
6335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6336 conftest$ac_exeext conftest.$ac_ext
6337 fi
6338 ac_res=`eval echo '${'$as_ac_var'}'`
6339 { echo "$as_me:$LINENO: result: $ac_res" >&5
6340 echo "${ECHO_T}$ac_res" >&6; }
6341 if test `eval echo '${'$as_ac_var'}'` = yes; then
6342
6343 cat >>confdefs.h <<_ACEOF
6344 #define CRAY_STACKSEG_END $ac_func
6345 _ACEOF
6346
6347 break
6348 fi
6349
6350 done
6351 fi
6352
6353 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6354 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6355 if test "${ac_cv_c_stack_direction+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 if test "$cross_compiling" = yes; then
6359 ac_cv_c_stack_direction=0
6360 else
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 $ac_includes_default
6368 int
6369 find_stack_direction ()
6370 {
6371 static char *addr = 0;
6372 auto char dummy;
6373 if (addr == 0)
6374 {
6375 addr = &dummy;
6376 return find_stack_direction ();
6377 }
6378 else
6379 return (&dummy > addr) ? 1 : -1;
6380 }
6381
6382 int
6383 main ()
6384 {
6385 return find_stack_direction () < 0;
6386 }
6387 _ACEOF
6388 rm -f conftest$ac_exeext
6389 if { (ac_try="$ac_link"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_link") 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6399 { (case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_try") 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_c_stack_direction=1
6409 else
6410 echo "$as_me: program exited with status $ac_status" >&5
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ( exit $ac_status )
6415 ac_cv_c_stack_direction=-1
6416 fi
6417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6418 fi
6419
6420
6421 fi
6422 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6423 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6424
6425 cat >>confdefs.h <<_ACEOF
6426 #define STACK_DIRECTION $ac_cv_c_stack_direction
6427 _ACEOF
6428
6429
6430 fi
6431
6432 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6433 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
6434 if test "${ac_cv_func_closedir_void+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 if test "$cross_compiling" = yes; then
6438 ac_cv_func_closedir_void=yes
6439 else
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6447 #include <$ac_header_dirent>
6448 #ifndef __cplusplus
6449 int closedir ();
6450 #endif
6451
6452 int
6453 main ()
6454 {
6455 return closedir (opendir (".")) != 0;
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest$ac_exeext
6461 if { (ac_try="$ac_link"
6462 case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465 esac
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_link") 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_func_closedir_void=no
6481 else
6482 echo "$as_me: program exited with status $ac_status" >&5
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 ( exit $ac_status )
6487 ac_cv_func_closedir_void=yes
6488 fi
6489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6490 fi
6491
6492
6493 fi
6494 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6495 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
6496 if test $ac_cv_func_closedir_void = yes; then
6497
6498 cat >>confdefs.h <<\_ACEOF
6499 #define CLOSEDIR_VOID 1
6500 _ACEOF
6501
6502 fi
6503
6504
6505 for ac_header in vfork.h
6506 do
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 fi
6514 ac_res=`eval echo '${'$as_ac_Header'}'`
6515 { echo "$as_me:$LINENO: result: $ac_res" >&5
6516 echo "${ECHO_T}$ac_res" >&6; }
6517 else
6518 # Is the header compilable?
6519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6528 #include <$ac_header>
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_header_compiler=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_header_compiler=no
6553 fi
6554
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6557 echo "${ECHO_T}$ac_header_compiler" >&6; }
6558
6559 # Is the header present?
6560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <$ac_header>
6569 _ACEOF
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6571 case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null && {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 }; then
6586 ac_header_preproc=yes
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_header_preproc=no
6592 fi
6593
6594 rm -f conftest.err conftest.$ac_ext
6595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6596 echo "${ECHO_T}$ac_header_preproc" >&6; }
6597
6598 # So? What about this header?
6599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6600 yes:no: )
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6605 ac_header_preproc=yes
6606 ;;
6607 no:yes:* )
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6620
6621 ;;
6622 esac
6623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 eval "$as_ac_Header=\$ac_header_preproc"
6629 fi
6630 ac_res=`eval echo '${'$as_ac_Header'}'`
6631 { echo "$as_me:$LINENO: result: $ac_res" >&5
6632 echo "${ECHO_T}$ac_res" >&6; }
6633
6634 fi
6635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 _ACEOF
6639
6640 fi
6641
6642 done
6643
6644
6645
6646 for ac_func in fork vfork
6647 do
6648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6662 #define $ac_func innocuous_$ac_func
6663
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func (); below.
6666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667 <limits.h> exists even on freestanding compilers. */
6668
6669 #ifdef __STDC__
6670 # include <limits.h>
6671 #else
6672 # include <assert.h>
6673 #endif
6674
6675 #undef $ac_func
6676
6677 /* Override any GCC internal prototype to avoid an error.
6678 Use char because int might match the return type of a GCC
6679 builtin and then its argument prototype would still apply. */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 char $ac_func ();
6684 /* The GNU C library defines this for functions which it implements
6685 to always fail with ENOSYS. Some functions are actually named
6686 something starting with __ and the normal name is an alias. */
6687 #if defined __stub_$ac_func || defined __stub___$ac_func
6688 choke me
6689 #endif
6690
6691 int
6692 main ()
6693 {
6694 return $ac_func ();
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (ac_try="$ac_link"
6701 case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704 esac
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_link") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest$ac_exeext &&
6716 $as_test_x conftest$ac_exeext; then
6717 eval "$as_ac_var=yes"
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 eval "$as_ac_var=no"
6723 fi
6724
6725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6726 conftest$ac_exeext conftest.$ac_ext
6727 fi
6728 ac_res=`eval echo '${'$as_ac_var'}'`
6729 { echo "$as_me:$LINENO: result: $ac_res" >&5
6730 echo "${ECHO_T}$ac_res" >&6; }
6731 if test `eval echo '${'$as_ac_var'}'` = yes; then
6732 cat >>confdefs.h <<_ACEOF
6733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6734 _ACEOF
6735
6736 fi
6737 done
6738
6739 if test "x$ac_cv_func_fork" = xyes; then
6740 { echo "$as_me:$LINENO: checking for working fork" >&5
6741 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6742 if test "${ac_cv_func_fork_works+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 if test "$cross_compiling" = yes; then
6746 ac_cv_func_fork_works=cross
6747 else
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6755 int
6756 main ()
6757 {
6758
6759 /* By Ruediger Kuhlmann. */
6760 return fork () < 0;
6761
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest$ac_exeext
6767 if { (ac_try="$ac_link"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_link") 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6777 { (case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_try") 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_func_fork_works=yes
6787 else
6788 echo "$as_me: program exited with status $ac_status" >&5
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 ( exit $ac_status )
6793 ac_cv_func_fork_works=no
6794 fi
6795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6796 fi
6797
6798
6799 fi
6800 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6801 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6802
6803 else
6804 ac_cv_func_fork_works=$ac_cv_func_fork
6805 fi
6806 if test "x$ac_cv_func_fork_works" = xcross; then
6807 case $host in
6808 *-*-amigaos* | *-*-msdosdjgpp*)
6809 # Override, as these systems have only a dummy fork() stub
6810 ac_cv_func_fork_works=no
6811 ;;
6812 *)
6813 ac_cv_func_fork_works=yes
6814 ;;
6815 esac
6816 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6817 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6818 fi
6819 ac_cv_func_vfork_works=$ac_cv_func_vfork
6820 if test "x$ac_cv_func_vfork" = xyes; then
6821 { echo "$as_me:$LINENO: checking for working vfork" >&5
6822 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6823 if test "${ac_cv_func_vfork_works+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 if test "$cross_compiling" = yes; then
6827 ac_cv_func_vfork_works=cross
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 /* Thanks to Paul Eggert for this test. */
6836 $ac_includes_default
6837 #include <sys/wait.h>
6838 #ifdef HAVE_VFORK_H
6839 # include <vfork.h>
6840 #endif
6841 /* On some sparc systems, changes by the child to local and incoming
6842 argument registers are propagated back to the parent. The compiler
6843 is told about this with #include <vfork.h>, but some compilers
6844 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6845 static variable whose address is put into a register that is
6846 clobbered by the vfork. */
6847 static void
6848 #ifdef __cplusplus
6849 sparc_address_test (int arg)
6850 # else
6851 sparc_address_test (arg) int arg;
6852 #endif
6853 {
6854 static pid_t child;
6855 if (!child) {
6856 child = vfork ();
6857 if (child < 0) {
6858 perror ("vfork");
6859 _exit(2);
6860 }
6861 if (!child) {
6862 arg = getpid();
6863 write(-1, "", 0);
6864 _exit (arg);
6865 }
6866 }
6867 }
6868
6869 int
6870 main ()
6871 {
6872 pid_t parent = getpid ();
6873 pid_t child;
6874
6875 sparc_address_test (0);
6876
6877 child = vfork ();
6878
6879 if (child == 0) {
6880 /* Here is another test for sparc vfork register problems. This
6881 test uses lots of local variables, at least as many local
6882 variables as main has allocated so far including compiler
6883 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6884 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6885 reuse the register of parent for one of the local variables,
6886 since it will think that parent can't possibly be used any more
6887 in this routine. Assigning to the local variable will thus
6888 munge parent in the parent process. */
6889 pid_t
6890 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6891 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6892 /* Convince the compiler that p..p7 are live; otherwise, it might
6893 use the same hardware register for all 8 local variables. */
6894 if (p != p1 || p != p2 || p != p3 || p != p4
6895 || p != p5 || p != p6 || p != p7)
6896 _exit(1);
6897
6898 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6899 from child file descriptors. If the child closes a descriptor
6900 before it execs or exits, this munges the parent's descriptor
6901 as well. Test for this by closing stdout in the child. */
6902 _exit(close(fileno(stdout)) != 0);
6903 } else {
6904 int status;
6905 struct stat st;
6906
6907 while (wait(&status) != child)
6908 ;
6909 return (
6910 /* Was there some problem with vforking? */
6911 child < 0
6912
6913 /* Did the child fail? (This shouldn't happen.) */
6914 || status
6915
6916 /* Did the vfork/compiler bug occur? */
6917 || parent != getpid()
6918
6919 /* Did the file descriptor bug occur? */
6920 || fstat(fileno(stdout), &st) != 0
6921 );
6922 }
6923 }
6924 _ACEOF
6925 rm -f conftest$ac_exeext
6926 if { (ac_try="$ac_link"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_link") 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6936 { (case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6941 (eval "$ac_try") 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_func_vfork_works=yes
6946 else
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ( exit $ac_status )
6952 ac_cv_func_vfork_works=no
6953 fi
6954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6955 fi
6956
6957
6958 fi
6959 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6960 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6961
6962 fi;
6963 if test "x$ac_cv_func_fork_works" = xcross; then
6964 ac_cv_func_vfork_works=$ac_cv_func_vfork
6965 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6966 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6967 fi
6968
6969 if test "x$ac_cv_func_vfork_works" = xyes; then
6970
6971 cat >>confdefs.h <<\_ACEOF
6972 #define HAVE_WORKING_VFORK 1
6973 _ACEOF
6974
6975 else
6976
6977 cat >>confdefs.h <<\_ACEOF
6978 #define vfork fork
6979 _ACEOF
6980
6981 fi
6982 if test "x$ac_cv_func_fork_works" = xyes; then
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_WORKING_FORK 1
6986 _ACEOF
6987
6988 fi
6989
6990 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6991 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6992 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 rm -f conftest.sym conftest.file
6996 echo >conftest.file
6997 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6998 if test "$cross_compiling" = yes; then
6999 ac_cv_func_lstat_dereferences_slashed_symlink=no
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 $ac_includes_default
7008 int
7009 main ()
7010 {
7011 struct stat sbuf;
7012 /* Linux will dereference the symlink and fail.
7013 That is better in the sense that it means we will not
7014 have to compile and use the lstat wrapper. */
7015 return lstat ("conftest.sym/", &sbuf) == 0;
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 rm -f conftest$ac_exeext
7021 if { (ac_try="$ac_link"
7022 case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025 esac
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_link") 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7031 { (case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034 esac
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_try") 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7041 else
7042 echo "$as_me: program exited with status $ac_status" >&5
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046 ( exit $ac_status )
7047 ac_cv_func_lstat_dereferences_slashed_symlink=no
7048 fi
7049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7050 fi
7051
7052
7053 else
7054 # If the `ln -s' command failed, then we probably don't even
7055 # have an lstat function.
7056 ac_cv_func_lstat_dereferences_slashed_symlink=no
7057 fi
7058 rm -f conftest.sym conftest.file
7059
7060 fi
7061 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7062 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7063
7064 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7065
7066 cat >>confdefs.h <<_ACEOF
7067 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7068 _ACEOF
7069
7070
7071 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7072 case " $LIBOBJS " in
7073 *" lstat.$ac_objext "* ) ;;
7074 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7075 ;;
7076 esac
7077
7078 fi
7079
7080 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7081 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
7082 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 if test "$cross_compiling" = yes; then
7086 ac_cv_func_lstat_empty_string_bug=yes
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 int
7096 main ()
7097 {
7098 struct stat sbuf;
7099 return lstat ("", &sbuf) == 0;
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest$ac_exeext
7105 if { (ac_try="$ac_link"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_link") 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7115 { (case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_try") 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7124 ac_cv_func_lstat_empty_string_bug=no
7125 else
7126 echo "$as_me: program exited with status $ac_status" >&5
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ( exit $ac_status )
7131 ac_cv_func_lstat_empty_string_bug=yes
7132 fi
7133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 fi
7135
7136
7137 fi
7138 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7139 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
7140 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7141 case " $LIBOBJS " in
7142 *" lstat.$ac_objext "* ) ;;
7143 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7144 ;;
7145 esac
7146
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7150 _ACEOF
7151
7152 fi
7153
7154
7155 for ac_header in stdlib.h
7156 do
7157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 fi
7164 ac_res=`eval echo '${'$as_ac_Header'}'`
7165 { echo "$as_me:$LINENO: result: $ac_res" >&5
7166 echo "${ECHO_T}$ac_res" >&6; }
7167 else
7168 # Is the header compilable?
7169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 #include <$ac_header>
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_header_compiler=yes
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_header_compiler=no
7203 fi
7204
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207 echo "${ECHO_T}$ac_header_compiler" >&6; }
7208
7209 # Is the header present?
7210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <$ac_header>
7219 _ACEOF
7220 if { (ac_try="$ac_cpp conftest.$ac_ext"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } >/dev/null && {
7233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 }; then
7236 ac_header_preproc=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_header_preproc=no
7242 fi
7243
7244 rm -f conftest.err conftest.$ac_ext
7245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7246 echo "${ECHO_T}$ac_header_preproc" >&6; }
7247
7248 # So? What about this header?
7249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7250 yes:no: )
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7255 ac_header_preproc=yes
7256 ;;
7257 no:yes:* )
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7270
7271 ;;
7272 esac
7273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 eval "$as_ac_Header=\$ac_header_preproc"
7279 fi
7280 ac_res=`eval echo '${'$as_ac_Header'}'`
7281 { echo "$as_me:$LINENO: result: $ac_res" >&5
7282 echo "${ECHO_T}$ac_res" >&6; }
7283
7284 fi
7285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7286 cat >>confdefs.h <<_ACEOF
7287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7288 _ACEOF
7289
7290 fi
7291
7292 done
7293
7294 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7295 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
7296 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 if test "$cross_compiling" = yes; then
7300 ac_cv_func_malloc_0_nonnull=no
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7309 # include <stdlib.h>
7310 #else
7311 char *malloc ();
7312 #endif
7313
7314 int
7315 main ()
7316 {
7317 return ! malloc (0);
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 rm -f conftest$ac_exeext
7323 if { (ac_try="$ac_link"
7324 case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_link") 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7333 { (case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_try") 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_cv_func_malloc_0_nonnull=yes
7343 else
7344 echo "$as_me: program exited with status $ac_status" >&5
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ( exit $ac_status )
7349 ac_cv_func_malloc_0_nonnull=no
7350 fi
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7352 fi
7353
7354
7355 fi
7356 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7357 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
7358 if test $ac_cv_func_malloc_0_nonnull = yes; then
7359
7360 cat >>confdefs.h <<\_ACEOF
7361 #define HAVE_MALLOC 1
7362 _ACEOF
7363
7364 else
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_MALLOC 0
7367 _ACEOF
7368
7369 case " $LIBOBJS " in
7370 *" malloc.$ac_objext "* ) ;;
7371 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7372 ;;
7373 esac
7374
7375
7376 cat >>confdefs.h <<\_ACEOF
7377 #define malloc rpl_malloc
7378 _ACEOF
7379
7380 fi
7381
7382
7383
7384 { echo "$as_me:$LINENO: checking for working memcmp" >&5
7385 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
7386 if test "${ac_cv_func_memcmp_working+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 if test "$cross_compiling" = yes; then
7390 ac_cv_func_memcmp_working=no
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7399 int
7400 main ()
7401 {
7402
7403 /* Some versions of memcmp are not 8-bit clean. */
7404 char c0 = '\100', c1 = '\200', c2 = '\201';
7405 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7406 return 1;
7407
7408 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7409 or more and with at least one buffer not starting on a 4-byte boundary.
7410 William Lewis provided this test program. */
7411 {
7412 char foo[21];
7413 char bar[21];
7414 int i;
7415 for (i = 0; i < 4; i++)
7416 {
7417 char *a = foo + i;
7418 char *b = bar + i;
7419 strcpy (a, "--------01111111");
7420 strcpy (b, "--------10000000");
7421 if (memcmp (a, b, 16) >= 0)
7422 return 1;
7423 }
7424 return 0;
7425 }
7426
7427 ;
7428 return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7442 { (case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_try") 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_cv_func_memcmp_working=yes
7452 else
7453 echo "$as_me: program exited with status $ac_status" >&5
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457 ( exit $ac_status )
7458 ac_cv_func_memcmp_working=no
7459 fi
7460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7461 fi
7462
7463
7464 fi
7465 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7466 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7467 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7468 *" memcmp.$ac_objext "* ) ;;
7469 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7470 ;;
7471 esac
7472
7473
7474
7475
7476 for ac_header in stdlib.h unistd.h
7477 do
7478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 fi
7485 ac_res=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487 echo "${ECHO_T}$ac_res" >&6; }
7488 else
7489 # Is the header compilable?
7490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 $ac_includes_default
7499 #include <$ac_header>
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_header_compiler=yes
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 ac_header_compiler=no
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7528 echo "${ECHO_T}$ac_header_compiler" >&6; }
7529
7530 # Is the header present?
7531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <$ac_header>
7540 _ACEOF
7541 if { (ac_try="$ac_cpp conftest.$ac_ext"
7542 case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } >/dev/null && {
7554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 }; then
7557 ac_header_preproc=yes
7558 else
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562 ac_header_preproc=no
7563 fi
7564
7565 rm -f conftest.err conftest.$ac_ext
7566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7567 echo "${ECHO_T}$ac_header_preproc" >&6; }
7568
7569 # So? What about this header?
7570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7571 yes:no: )
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7576 ac_header_preproc=yes
7577 ;;
7578 no:yes:* )
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7591
7592 ;;
7593 esac
7594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599 eval "$as_ac_Header=\$ac_header_preproc"
7600 fi
7601 ac_res=`eval echo '${'$as_ac_Header'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603 echo "${ECHO_T}$ac_res" >&6; }
7604
7605 fi
7606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7607 cat >>confdefs.h <<_ACEOF
7608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7609 _ACEOF
7610
7611 fi
7612
7613 done
7614
7615
7616 for ac_func in getpagesize
7617 do
7618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7632 #define $ac_func innocuous_$ac_func
7633
7634 /* System header to define __stub macros and hopefully few prototypes,
7635 which can conflict with char $ac_func (); below.
7636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7637 <limits.h> exists even on freestanding compilers. */
7638
7639 #ifdef __STDC__
7640 # include <limits.h>
7641 #else
7642 # include <assert.h>
7643 #endif
7644
7645 #undef $ac_func
7646
7647 /* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 char $ac_func ();
7654 /* The GNU C library defines this for functions which it implements
7655 to always fail with ENOSYS. Some functions are actually named
7656 something starting with __ and the normal name is an alias. */
7657 #if defined __stub_$ac_func || defined __stub___$ac_func
7658 choke me
7659 #endif
7660
7661 int
7662 main ()
7663 {
7664 return $ac_func ();
7665 ;
7666 return 0;
7667 }
7668 _ACEOF
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (ac_try="$ac_link"
7671 case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674 esac
7675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676 (eval "$ac_link") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest$ac_exeext &&
7686 $as_test_x conftest$ac_exeext; then
7687 eval "$as_ac_var=yes"
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7691
7692 eval "$as_ac_var=no"
7693 fi
7694
7695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7696 conftest$ac_exeext conftest.$ac_ext
7697 fi
7698 ac_res=`eval echo '${'$as_ac_var'}'`
7699 { echo "$as_me:$LINENO: result: $ac_res" >&5
7700 echo "${ECHO_T}$ac_res" >&6; }
7701 if test `eval echo '${'$as_ac_var'}'` = yes; then
7702 cat >>confdefs.h <<_ACEOF
7703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7704 _ACEOF
7705
7706 fi
7707 done
7708
7709 { echo "$as_me:$LINENO: checking for working mmap" >&5
7710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 if test "$cross_compiling" = yes; then
7715 ac_cv_func_mmap_fixed_mapped=no
7716 else
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 /* malloc might have been renamed as rpl_malloc. */
7725 #undef malloc
7726
7727 /* Thanks to Mike Haertel and Jim Avera for this test.
7728 Here is a matrix of mmap possibilities:
7729 mmap private not fixed
7730 mmap private fixed at somewhere currently unmapped
7731 mmap private fixed at somewhere already mapped
7732 mmap shared not fixed
7733 mmap shared fixed at somewhere currently unmapped
7734 mmap shared fixed at somewhere already mapped
7735 For private mappings, we should verify that changes cannot be read()
7736 back from the file, nor mmap's back from the file at a different
7737 address. (There have been systems where private was not correctly
7738 implemented like the infamous i386 svr4.0, and systems where the
7739 VM page cache was not coherent with the file system buffer cache
7740 like early versions of FreeBSD and possibly contemporary NetBSD.)
7741 For shared mappings, we should conversely verify that changes get
7742 propagated back to all the places they're supposed to be.
7743
7744 Grep wants private fixed already mapped.
7745 The main things grep needs to know about mmap are:
7746 * does it exist and is it safe to write into the mmap'd area
7747 * how to use it (BSD variants) */
7748
7749 #include <fcntl.h>
7750 #include <sys/mman.h>
7751
7752 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7753 char *malloc ();
7754 #endif
7755
7756 /* This mess was copied from the GNU getpagesize.h. */
7757 #ifndef HAVE_GETPAGESIZE
7758 /* Assume that all systems that can run configure have sys/param.h. */
7759 # ifndef HAVE_SYS_PARAM_H
7760 # define HAVE_SYS_PARAM_H 1
7761 # endif
7762
7763 # ifdef _SC_PAGESIZE
7764 # define getpagesize() sysconf(_SC_PAGESIZE)
7765 # else /* no _SC_PAGESIZE */
7766 # ifdef HAVE_SYS_PARAM_H
7767 # include <sys/param.h>
7768 # ifdef EXEC_PAGESIZE
7769 # define getpagesize() EXEC_PAGESIZE
7770 # else /* no EXEC_PAGESIZE */
7771 # ifdef NBPG
7772 # define getpagesize() NBPG * CLSIZE
7773 # ifndef CLSIZE
7774 # define CLSIZE 1
7775 # endif /* no CLSIZE */
7776 # else /* no NBPG */
7777 # ifdef NBPC
7778 # define getpagesize() NBPC
7779 # else /* no NBPC */
7780 # ifdef PAGESIZE
7781 # define getpagesize() PAGESIZE
7782 # endif /* PAGESIZE */
7783 # endif /* no NBPC */
7784 # endif /* no NBPG */
7785 # endif /* no EXEC_PAGESIZE */
7786 # else /* no HAVE_SYS_PARAM_H */
7787 # define getpagesize() 8192 /* punt totally */
7788 # endif /* no HAVE_SYS_PARAM_H */
7789 # endif /* no _SC_PAGESIZE */
7790
7791 #endif /* no HAVE_GETPAGESIZE */
7792
7793 int
7794 main ()
7795 {
7796 char *data, *data2, *data3;
7797 int i, pagesize;
7798 int fd;
7799
7800 pagesize = getpagesize ();
7801
7802 /* First, make a file with some known garbage in it. */
7803 data = (char *) malloc (pagesize);
7804 if (!data)
7805 return 1;
7806 for (i = 0; i < pagesize; ++i)
7807 *(data + i) = rand ();
7808 umask (0);
7809 fd = creat ("conftest.mmap", 0600);
7810 if (fd < 0)
7811 return 1;
7812 if (write (fd, data, pagesize) != pagesize)
7813 return 1;
7814 close (fd);
7815
7816 /* Next, try to mmap the file at a fixed address which already has
7817 something else allocated at it. If we can, also make sure that
7818 we see the same garbage. */
7819 fd = open ("conftest.mmap", O_RDWR);
7820 if (fd < 0)
7821 return 1;
7822 data2 = (char *) malloc (2 * pagesize);
7823 if (!data2)
7824 return 1;
7825 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7828 return 1;
7829 for (i = 0; i < pagesize; ++i)
7830 if (*(data + i) != *(data2 + i))
7831 return 1;
7832
7833 /* Finally, make sure that changes to the mapped area do not
7834 percolate back to the file as seen by read(). (This is a bug on
7835 some variants of i386 svr4.0.) */
7836 for (i = 0; i < pagesize; ++i)
7837 *(data2 + i) = *(data2 + i) + 1;
7838 data3 = (char *) malloc (pagesize);
7839 if (!data3)
7840 return 1;
7841 if (read (fd, data3, pagesize) != pagesize)
7842 return 1;
7843 for (i = 0; i < pagesize; ++i)
7844 if (*(data + i) != *(data3 + i))
7845 return 1;
7846 close (fd);
7847 return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7861 { (case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_try") 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_cv_func_mmap_fixed_mapped=yes
7871 else
7872 echo "$as_me: program exited with status $ac_status" >&5
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ( exit $ac_status )
7877 ac_cv_func_mmap_fixed_mapped=no
7878 fi
7879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7880 fi
7881
7882
7883 fi
7884 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7885 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7886 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7887
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_MMAP 1
7890 _ACEOF
7891
7892 fi
7893 rm -f conftest.mmap
7894
7895 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7896 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7897 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 if test "$cross_compiling" = yes; then
7901 ac_cv_func_stat_empty_string_bug=yes
7902 else
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7910 int
7911 main ()
7912 {
7913 struct stat sbuf;
7914 return stat ("", &sbuf) == 0;
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_func_stat_empty_string_bug=no
7940 else
7941 echo "$as_me: program exited with status $ac_status" >&5
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ( exit $ac_status )
7946 ac_cv_func_stat_empty_string_bug=yes
7947 fi
7948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7949 fi
7950
7951
7952 fi
7953 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7954 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7955 if test $ac_cv_func_stat_empty_string_bug = yes; then
7956 case " $LIBOBJS " in
7957 *" stat.$ac_objext "* ) ;;
7958 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7959 ;;
7960 esac
7961
7962
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_STAT_EMPTY_STRING_BUG 1
7965 _ACEOF
7966
7967 fi
7968
7969 { echo "$as_me:$LINENO: checking for working strtod" >&5
7970 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
7971 if test "${ac_cv_func_strtod+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 if test "$cross_compiling" = yes; then
7975 ac_cv_func_strtod=no
7976 else
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983
7984 $ac_includes_default
7985 #ifndef strtod
7986 double strtod ();
7987 #endif
7988 int
7989 main()
7990 {
7991 {
7992 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7993 char *string = " +69";
7994 char *term;
7995 double value;
7996 value = strtod (string, &term);
7997 if (value != 69 || term != (string + 4))
7998 return 1;
7999 }
8000
8001 {
8002 /* Under Solaris 2.4, strtod returns the wrong value for the
8003 terminating character under some conditions. */
8004 char *string = "NaN";
8005 char *term;
8006 strtod (string, &term);
8007 if (term != string && *(term - 1) == 0)
8008 return 1;
8009 }
8010 return 0;
8011 }
8012
8013 _ACEOF
8014 rm -f conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8016 case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_func_strtod=yes
8035 else
8036 echo "$as_me: program exited with status $ac_status" >&5
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 ( exit $ac_status )
8041 ac_cv_func_strtod=no
8042 fi
8043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8044 fi
8045
8046
8047 fi
8048 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8049 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
8050 if test $ac_cv_func_strtod = no; then
8051 case " $LIBOBJS " in
8052 *" strtod.$ac_objext "* ) ;;
8053 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8054 ;;
8055 esac
8056
8057 { echo "$as_me:$LINENO: checking for pow" >&5
8058 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
8059 if test "${ac_cv_func_pow+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8070 #define pow innocuous_pow
8071
8072 /* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char pow (); below.
8074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8075 <limits.h> exists even on freestanding compilers. */
8076
8077 #ifdef __STDC__
8078 # include <limits.h>
8079 #else
8080 # include <assert.h>
8081 #endif
8082
8083 #undef pow
8084
8085 /* Override any GCC internal prototype to avoid an error.
8086 Use char because int might match the return type of a GCC
8087 builtin and then its argument prototype would still apply. */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 char pow ();
8092 /* The GNU C library defines this for functions which it implements
8093 to always fail with ENOSYS. Some functions are actually named
8094 something starting with __ and the normal name is an alias. */
8095 #if defined __stub_pow || defined __stub___pow
8096 choke me
8097 #endif
8098
8099 int
8100 main ()
8101 {
8102 return pow ();
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest$ac_exeext &&
8124 $as_test_x conftest$ac_exeext; then
8125 ac_cv_func_pow=yes
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 ac_cv_func_pow=no
8131 fi
8132
8133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 conftest$ac_exeext conftest.$ac_ext
8135 fi
8136 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8137 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
8138
8139 if test $ac_cv_func_pow = no; then
8140 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8141 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
8142 if test "${ac_cv_lib_m_pow+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 ac_check_lib_save_LIBS=$LIBS
8146 LIBS="-lm $LIBS"
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 char pow ();
8161 int
8162 main ()
8163 {
8164 return pow ();
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (ac_try="$ac_link"
8171 case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_link") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } && {
8183 test -z "$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 } && test -s conftest$ac_exeext &&
8186 $as_test_x conftest$ac_exeext; then
8187 ac_cv_lib_m_pow=yes
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_cv_lib_m_pow=no
8193 fi
8194
8195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8196 conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8200 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
8201 if test $ac_cv_lib_m_pow = yes; then
8202 POW_LIB=-lm
8203 else
8204 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8205 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8206 fi
8207
8208 fi
8209
8210 fi
8211
8212
8213 for ac_func in vprintf
8214 do
8215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8229 #define $ac_func innocuous_$ac_func
8230
8231 /* System header to define __stub macros and hopefully few prototypes,
8232 which can conflict with char $ac_func (); below.
8233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8234 <limits.h> exists even on freestanding compilers. */
8235
8236 #ifdef __STDC__
8237 # include <limits.h>
8238 #else
8239 # include <assert.h>
8240 #endif
8241
8242 #undef $ac_func
8243
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8247 #ifdef __cplusplus
8248 extern "C"
8249 #endif
8250 char $ac_func ();
8251 /* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254 #if defined __stub_$ac_func || defined __stub___$ac_func
8255 choke me
8256 #endif
8257
8258 int
8259 main ()
8260 {
8261 return $ac_func ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (ac_try="$ac_link"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_link") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest$ac_exeext &&
8283 $as_test_x conftest$ac_exeext; then
8284 eval "$as_ac_var=yes"
8285 else
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 eval "$as_ac_var=no"
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
8294 fi
8295 ac_res=`eval echo '${'$as_ac_var'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 { echo "$as_me:$LINENO: checking for _doprnt" >&5
8304 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8305 if test "${ac_cv_func__doprnt+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8316 #define _doprnt innocuous__doprnt
8317
8318 /* System header to define __stub macros and hopefully few prototypes,
8319 which can conflict with char _doprnt (); below.
8320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8321 <limits.h> exists even on freestanding compilers. */
8322
8323 #ifdef __STDC__
8324 # include <limits.h>
8325 #else
8326 # include <assert.h>
8327 #endif
8328
8329 #undef _doprnt
8330
8331 /* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8334 #ifdef __cplusplus
8335 extern "C"
8336 #endif
8337 char _doprnt ();
8338 /* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341 #if defined __stub__doprnt || defined __stub____doprnt
8342 choke me
8343 #endif
8344
8345 int
8346 main ()
8347 {
8348 return _doprnt ();
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (ac_try="$ac_link"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_link") 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
8369 } && test -s conftest$ac_exeext &&
8370 $as_test_x conftest$ac_exeext; then
8371 ac_cv_func__doprnt=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8375
8376 ac_cv_func__doprnt=no
8377 fi
8378
8379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8380 conftest$ac_exeext conftest.$ac_ext
8381 fi
8382 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8383 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8384 if test $ac_cv_func__doprnt = yes; then
8385
8386 cat >>confdefs.h <<\_ACEOF
8387 #define HAVE_DOPRNT 1
8388 _ACEOF
8389
8390 fi
8391
8392 fi
8393 done
8394
8395
8396
8397 ################################################################################
8398
8399
8400 ################################################################################
8401 { echo "$as_me:$LINENO: checking file owner" >&5
8402 echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
8403 OWNER="root"
8404
8405
8406 # Check whether --with-user was given.
8407 if test "${with_user+set}" = set; then
8408 withval=$with_user; OWNER="$withval"
8409 fi
8410
8411 { echo "$as_me:$LINENO: result: $OWNER" >&5
8412 echo "${ECHO_T}$OWNER" >&6; }
8413
8414 if test x$OWNER != x; then
8415 OWNER="-o $OWNER"
8416 fi
8417
8418 ################################################################################
8419 { echo "$as_me:$LINENO: checking group owner" >&5
8420 echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
8421 GROUP="root"
8422
8423 # Check whether --with-group was given.
8424 if test "${with_group+set}" = set; then
8425 withval=$with_group; GROUP="$withval"
8426 fi
8427
8428 { echo "$as_me:$LINENO: result: $GROUP" >&5
8429 echo "${ECHO_T}$GROUP" >&6; }
8430
8431 if test x$GROUP != x; then
8432 GROUP="-g $GROUP"
8433 fi
8434
8435 ################################################################################
8436 { echo "$as_me:$LINENO: checking device node mode" >&5
8437 echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8438
8439
8440 # Check whether --with-device-mode was given.
8441 if test "${with_device_mode+set}" = set; then
8442 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8443 else
8444 DM_DEVICE_MODE="0600"
8445 fi
8446
8447 { echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8448 echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8449
8450 ################################################################################
8451 { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8452 echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
8453 # Check whether --enable-lvm1_fallback was given.
8454 if test "${enable_lvm1_fallback+set}" = set; then
8455 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8456 else
8457 LVM1_FALLBACK=no
8458 fi
8459
8460 { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8461 echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
8462
8463 if test x$LVM1_FALLBACK = xyes; then
8464
8465 cat >>confdefs.h <<\_ACEOF
8466 #define LVM1_FALLBACK 1
8467 _ACEOF
8468
8469 fi
8470
8471 ################################################################################
8472 { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8473 echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
8474
8475 # Check whether --with-lvm1 was given.
8476 if test "${with_lvm1+set}" = set; then
8477 withval=$with_lvm1; LVM1="$withval"
8478 else
8479 LVM1="internal"
8480 fi
8481
8482 { echo "$as_me:$LINENO: result: $LVM1" >&5
8483 echo "${ECHO_T}$LVM1" >&6; }
8484
8485 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8486 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
8487 " >&5
8488 echo "$as_me: error: --with-lvm1 parameter invalid
8489 " >&2;}
8490 { (exit 1); exit 1; }; }
8491 fi;
8492
8493 if test x$LVM1 = xinternal; then
8494
8495 cat >>confdefs.h <<\_ACEOF
8496 #define LVM1_INTERNAL 1
8497 _ACEOF
8498
8499 fi
8500
8501 ################################################################################
8502 { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8503 echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
8504
8505 # Check whether --with-pool was given.
8506 if test "${with_pool+set}" = set; then
8507 withval=$with_pool; POOL="$withval"
8508 else
8509 POOL="internal"
8510 fi
8511
8512 { echo "$as_me:$LINENO: result: $POOL" >&5
8513 echo "${ECHO_T}$POOL" >&6; }
8514
8515 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
8516 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
8517 " >&5
8518 echo "$as_me: error: --with-pool parameter invalid
8519 " >&2;}
8520 { (exit 1); exit 1; }; }
8521 fi;
8522
8523 if test x$POOL = xinternal; then
8524
8525 cat >>confdefs.h <<\_ACEOF
8526 #define POOL_INTERNAL 1
8527 _ACEOF
8528
8529 fi
8530
8531 ################################################################################
8532 { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8533 echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
8534
8535 # Check whether --with-cluster was given.
8536 if test "${with_cluster+set}" = set; then
8537 withval=$with_cluster; CLUSTER="$withval"
8538 fi
8539
8540 { echo "$as_me:$LINENO: result: $CLUSTER" >&5
8541 echo "${ECHO_T}$CLUSTER" >&6; }
8542
8543 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
8544 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
8545 " >&5
8546 echo "$as_me: error: --with-cluster parameter invalid
8547 " >&2;}
8548 { (exit 1); exit 1; }; }
8549 fi;
8550
8551 if test x$CLUSTER = xinternal; then
8552
8553 cat >>confdefs.h <<\_ACEOF
8554 #define CLUSTER_LOCKING_INTERNAL 1
8555 _ACEOF
8556
8557 fi
8558
8559 ################################################################################
8560 { echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8561 echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
8562
8563 # Check whether --with-snapshots was given.
8564 if test "${with_snapshots+set}" = set; then
8565 withval=$with_snapshots; SNAPSHOTS="$withval"
8566 else
8567 SNAPSHOTS="internal"
8568 fi
8569
8570 { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8571 echo "${ECHO_T}$SNAPSHOTS" >&6; }
8572
8573 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
8574 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
8575 " >&5
8576 echo "$as_me: error: --with-snapshots parameter invalid
8577 " >&2;}
8578 { (exit 1); exit 1; }; }
8579 fi;
8580
8581 if test x$SNAPSHOTS = xinternal; then
8582
8583 cat >>confdefs.h <<\_ACEOF
8584 #define SNAPSHOT_INTERNAL 1
8585 _ACEOF
8586
8587 fi
8588
8589 ################################################################################
8590 { echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8591 echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
8592
8593 # Check whether --with-mirrors was given.
8594 if test "${with_mirrors+set}" = set; then
8595 withval=$with_mirrors; MIRRORS="$withval"
8596 else
8597 MIRRORS="internal"
8598 fi
8599
8600 { echo "$as_me:$LINENO: result: $MIRRORS" >&5
8601 echo "${ECHO_T}$MIRRORS" >&6; }
8602
8603 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
8604 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
8605 " >&5
8606 echo "$as_me: error: --with-mirrors parameter invalid
8607 " >&2;}
8608 { (exit 1); exit 1; }; }
8609 fi;
8610
8611 if test x$MIRRORS = xinternal; then
8612
8613 cat >>confdefs.h <<\_ACEOF
8614 #define MIRRORED_INTERNAL 1
8615 _ACEOF
8616
8617 fi
8618
8619 ################################################################################
8620 { echo "$as_me:$LINENO: checking whether to enable readline" >&5
8621 echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
8622 # Check whether --enable-readline was given.
8623 if test "${enable_readline+set}" = set; then
8624 enableval=$enable_readline; READLINE=$enableval
8625 else
8626 READLINE=maybe
8627 fi
8628
8629 { echo "$as_me:$LINENO: result: $READLINE" >&5
8630 echo "${ECHO_T}$READLINE" >&6; }
8631
8632 ################################################################################
8633 { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8634 echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
8635 # Check whether --enable-realtime was given.
8636 if test "${enable_realtime+set}" = set; then
8637 enableval=$enable_realtime; REALTIME=$enableval
8638 fi
8639
8640 { echo "$as_me:$LINENO: result: $REALTIME" >&5
8641 echo "${ECHO_T}$REALTIME" >&6; }
8642
8643 ################################################################################
8644 { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8645 echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
8646
8647 # Check whether --with-clvmd was given.
8648 if test "${with_clvmd+set}" = set; then
8649 withval=$with_clvmd; CLVMD="$withval"
8650 else
8651 CLVMD="none"
8652 fi
8653
8654 if test x$CLVMD = xyes; then
8655 CLVMD=all
8656 fi
8657 { echo "$as_me:$LINENO: result: $CLVMD" >&5
8658 echo "${ECHO_T}$CLVMD" >&6; }
8659
8660 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8661 CLUSTER=internal
8662 fi
8663
8664 ################################################################################
8665 { echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8666 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
8667 # Check whether --enable-debug was given.
8668 if test "${enable_debug+set}" = set; then
8669 enableval=$enable_debug; DEBUG=$enableval
8670 else
8671 DEBUG=no
8672 fi
8673
8674 { echo "$as_me:$LINENO: result: $DEBUG" >&5
8675 echo "${ECHO_T}$DEBUG" >&6; }
8676
8677 if test x$DEBUG = xyes; then
8678 COPTIMISE_FLAG=
8679 else
8680 CSCOPE_CMD=
8681 fi
8682
8683 ################################################################################
8684 { echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8685 echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
8686
8687 # Check whether --with-optimisation was given.
8688 if test "${with_optimisation+set}" = set; then
8689 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8690 fi
8691
8692 { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8693 echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
8694
8695 ################################################################################
8696 { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8697 echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
8698 # Check whether --enable-profiling was given.
8699 if test "${enable_profiling+set}" = set; then
8700 enableval=$enable_profiling; PROFILING=$enableval
8701 else
8702 PROFILING=no
8703 fi
8704
8705 { echo "$as_me:$LINENO: result: $PROFILING" >&5
8706 echo "${ECHO_T}$PROFILING" >&6; }
8707
8708 if test "x$PROFILING" = xyes; then
8709 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8710 # Extract the first word of "lcov", so it can be a program name with args.
8711 set dummy lcov; ac_word=$2
8712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8714 if test "${ac_cv_path_LCOV+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 case $LCOV in
8718 [\\/]* | ?:[\\/]*)
8719 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8720 ;;
8721 *)
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733 done
8734 done
8735 IFS=$as_save_IFS
8736
8737 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
8738 ;;
8739 esac
8740 fi
8741 LCOV=$ac_cv_path_LCOV
8742 if test -n "$LCOV"; then
8743 { echo "$as_me:$LINENO: result: $LCOV" >&5
8744 echo "${ECHO_T}$LCOV" >&6; }
8745 else
8746 { echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6; }
8748 fi
8749
8750
8751 # Extract the first word of "genhtml", so it can be a program name with args.
8752 set dummy genhtml; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_path_GENHTML+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 case $GENHTML in
8759 [\\/]* | ?:[\\/]*)
8760 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8761 ;;
8762 *)
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8765 do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8773 fi
8774 done
8775 done
8776 IFS=$as_save_IFS
8777
8778 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
8779 ;;
8780 esac
8781 fi
8782 GENHTML=$ac_cv_path_GENHTML
8783 if test -n "$GENHTML"; then
8784 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8785 echo "${ECHO_T}$GENHTML" >&6; }
8786 else
8787 { echo "$as_me:$LINENO: result: no" >&5
8788 echo "${ECHO_T}no" >&6; }
8789 fi
8790
8791
8792 if test "$LCOV" = no -o "$GENHTML" = no ; then
8793 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8794 echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
8795 { (exit 1); exit 1; }; }
8796 fi
8797 fi
8798
8799 ################################################################################
8800 { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8801 echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
8802 # Check whether --enable-devmapper was given.
8803 if test "${enable_devmapper+set}" = set; then
8804 enableval=$enable_devmapper; DEVMAPPER=$enableval
8805 fi
8806
8807 { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8808 echo "${ECHO_T}$DEVMAPPER" >&6; }
8809
8810 if test x$DEVMAPPER = xyes; then
8811
8812 cat >>confdefs.h <<\_ACEOF
8813 #define DEVMAPPER_SUPPORT 1
8814 _ACEOF
8815
8816 fi
8817
8818 ################################################################################
8819 # Check whether --enable-compat was given.
8820 if test "${enable_compat+set}" = set; then
8821 enableval=$enable_compat; DM_COMPAT=$enableval
8822 else
8823 DM_COMPAT=no
8824 fi
8825
8826
8827 ################################################################################
8828 # Check whether --enable-ioctl was given.
8829 if test "${enable_ioctl+set}" = set; then
8830 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8831 fi
8832
8833
8834 ################################################################################
8835 { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8836 echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
8837 # Check whether --enable-o_direct was given.
8838 if test "${enable_o_direct+set}" = set; then
8839 enableval=$enable_o_direct; ODIRECT=$enableval
8840 fi
8841
8842 { echo "$as_me:$LINENO: result: $ODIRECT" >&5
8843 echo "${ECHO_T}$ODIRECT" >&6; }
8844
8845 if test x$ODIRECT = xyes; then
8846
8847 cat >>confdefs.h <<\_ACEOF
8848 #define O_DIRECT_SUPPORT 1
8849 _ACEOF
8850
8851 fi
8852
8853 ################################################################################
8854 { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8855 echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
8856 # Check whether --enable-cmdlib was given.
8857 if test "${enable_cmdlib+set}" = set; then
8858 enableval=$enable_cmdlib; CMDLIB=$enableval
8859 else
8860 CMDLIB=no
8861 fi
8862
8863 { echo "$as_me:$LINENO: result: $CMDLIB" >&5
8864 echo "${ECHO_T}$CMDLIB" >&6; }
8865
8866 test x$CMDLIB = xyes \
8867 && LVM2CMD_LIB=-llvm2cmd \
8868 || LVM2CMD_LIB=
8869
8870 ################################################################################
8871 # Check whether --enable-pkgconfig was given.
8872 if test "${enable_pkgconfig+set}" = set; then
8873 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8874 else
8875 PKGCONFIG=no
8876 fi
8877
8878
8879 ################################################################################
8880 { echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8881 echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
8882 # Check whether --enable-fsadm was given.
8883 if test "${enable_fsadm+set}" = set; then
8884 enableval=$enable_fsadm; FSADM=$enableval
8885 fi
8886
8887 { echo "$as_me:$LINENO: result: $FSADM" >&5
8888 echo "${ECHO_T}$FSADM" >&6; }
8889
8890 ################################################################################
8891 { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8892 echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
8893 # Check whether --enable-dmeventd was given.
8894 if test "${enable_dmeventd+set}" = set; then
8895 enableval=$enable_dmeventd; DMEVENTD=$enableval
8896 fi
8897
8898 { echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8899 echo "${ECHO_T}$DMEVENTD" >&6; }
8900
8901 BUILD_DMEVENTD=$DMEVENTD
8902
8903 if test x$DMEVENTD = xyes; then
8904 if test x$MIRRORS != xinternal; then
8905 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8906 " >&5
8907 echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
8908 " >&2;}
8909 { (exit 1); exit 1; }; }
8910 fi
8911 if test x$CMDLIB = xno; then
8912 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8913 " >&5
8914 echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8915 " >&2;}
8916 { (exit 1); exit 1; }; }
8917 fi
8918 fi
8919
8920 if test x$DMEVENTD = xyes; then
8921
8922 cat >>confdefs.h <<\_ACEOF
8923 #define DMEVENTD 1
8924 _ACEOF
8925
8926 fi
8927
8928 ################################################################################
8929
8930 { echo "$as_me:$LINENO: checking for getline in -lc" >&5
8931 echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8932 if test "${ac_cv_lib_c_getline+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935 ac_check_lib_save_LIBS=$LIBS
8936 LIBS="-lc $LIBS"
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h. */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char getline ();
8951 int
8952 main ()
8953 {
8954 return getline ();
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8961 case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } && {
8973 test -z "$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8975 } && test -s conftest$ac_exeext &&
8976 $as_test_x conftest$ac_exeext; then
8977 ac_cv_lib_c_getline=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_cv_lib_c_getline=no
8983 fi
8984
8985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8986 conftest$ac_exeext conftest.$ac_ext
8987 LIBS=$ac_check_lib_save_LIBS
8988 fi
8989 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
8990 echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
8991 if test $ac_cv_lib_c_getline = yes; then
8992
8993 cat >>confdefs.h <<\_ACEOF
8994 #define HAVE_GETLINE 1
8995 _ACEOF
8996
8997 fi
8998
8999
9000 ################################################################################
9001
9002 { echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9003 echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9004 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 ac_check_lib_save_LIBS=$LIBS
9008 LIBS="-lc $LIBS"
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015
9016 /* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9019 #ifdef __cplusplus
9020 extern "C"
9021 #endif
9022 char canonicalize_file_name ();
9023 int
9024 main ()
9025 {
9026 return canonicalize_file_name ();
9027 ;
9028 return 0;
9029 }
9030 _ACEOF
9031 rm -f conftest.$ac_objext conftest$ac_exeext
9032 if { (ac_try="$ac_link"
9033 case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_link") 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest$ac_exeext &&
9048 $as_test_x conftest$ac_exeext; then
9049 ac_cv_lib_c_canonicalize_file_name=yes
9050 else
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_cv_lib_c_canonicalize_file_name=no
9055 fi
9056
9057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9058 conftest$ac_exeext conftest.$ac_ext
9059 LIBS=$ac_check_lib_save_LIBS
9060 fi
9061 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9062 echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9063 if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9064
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_CANONICALIZE_FILE_NAME 1
9067 _ACEOF
9068
9069 fi
9070
9071
9072 ################################################################################
9073 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9074 then exec_prefix="";
9075 fi;
9076
9077 ################################################################################
9078 if test x$READLINE != xno; then
9079 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9080 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
9081 if test "${ac_cv_search_tgetent+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 ac_func_search_save_LIBS=$LIBS
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091
9092 /* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
9095 #ifdef __cplusplus
9096 extern "C"
9097 #endif
9098 char tgetent ();
9099 int
9100 main ()
9101 {
9102 return tgetent ();
9103 ;
9104 return 0;
9105 }
9106 _ACEOF
9107 for ac_lib in '' ncurses curses termcap termlib; do
9108 if test -z "$ac_lib"; then
9109 ac_res="none required"
9110 else
9111 ac_res=-l$ac_lib
9112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9113 fi
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_link") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest$ac_exeext &&
9131 $as_test_x conftest$ac_exeext; then
9132 ac_cv_search_tgetent=$ac_res
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137
9138 fi
9139
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141 conftest$ac_exeext
9142 if test "${ac_cv_search_tgetent+set}" = set; then
9143 break
9144 fi
9145 done
9146 if test "${ac_cv_search_tgetent+set}" = set; then
9147 :
9148 else
9149 ac_cv_search_tgetent=no
9150 fi
9151 rm conftest.$ac_ext
9152 LIBS=$ac_func_search_save_LIBS
9153 fi
9154 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9155 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
9156 ac_res=$ac_cv_search_tgetent
9157 if test "$ac_res" != no; then
9158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9159 tg_found=yes
9160 else
9161 tg_found=no
9162 fi
9163
9164 test x$READLINE:$tg_found = xyes:no &&
9165 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
9166 --enable-readline option (which is enabled by default). Either disable readline
9167 support with --disable-readline or download and install termcap from:
9168 ftp.gnu.org/gnu/termcap
9169 Note: if you are using precompiled packages you will also need the development
9170 package as well (which may be called termcap-devel or something similar).
9171 Note: (n)curses also seems to work as a substitute for termcap. This was
9172 not found either - but you could try installing that as well.
9173 " >&5
9174 echo "$as_me: error: termcap could not be found which is required for the
9175 --enable-readline option (which is enabled by default). Either disable readline
9176 support with --disable-readline or download and install termcap from:
9177 ftp.gnu.org/gnu/termcap
9178 Note: if you are using precompiled packages you will also need the development
9179 package as well (which may be called termcap-devel or something similar).
9180 Note: (n)curses also seems to work as a substitute for termcap. This was
9181 not found either - but you could try installing that as well.
9182 " >&2;}
9183 { (exit 1); exit 1; }; }
9184 fi
9185
9186 ################################################################################
9187 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9188 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9189 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 ac_check_lib_save_LIBS=$LIBS
9193 LIBS="-ldl $LIBS"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char dlopen ();
9208 int
9209 main ()
9210 {
9211 return dlopen ();
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (ac_try="$ac_link"
9218 case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_link") 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest$ac_exeext &&
9233 $as_test_x conftest$ac_exeext; then
9234 ac_cv_lib_dl_dlopen=yes
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239 ac_cv_lib_dl_dlopen=no
9240 fi
9241
9242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9245 fi
9246 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9248 if test $ac_cv_lib_dl_dlopen = yes; then
9249 HAVE_LIBDL=yes
9250 else
9251 HAVE_LIBDL=no
9252 fi
9253
9254
9255 if [ "x$HAVE_LIBDL" = xyes ]; then
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_LIBDL 1
9259 _ACEOF
9260
9261 LIBS="-ldl $LIBS"
9262 else
9263 HAVE_LIBDL=no
9264 fi
9265
9266 ################################################################################
9267 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9268 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9269 \) -a "x$STATIC_LINK" = xyes ];
9270 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
9271 " >&5
9272 echo "$as_me: error: Features cannot be 'shared' when building statically
9273 " >&2;}
9274 { (exit 1); exit 1; }; }
9275 fi
9276
9277 ################################################################################
9278 { echo "$as_me:$LINENO: checking whether to use static linking" >&5
9279 echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
9280 # Check whether --enable-static_link was given.
9281 if test "${enable_static_link+set}" = set; then
9282 enableval=$enable_static_link; STATIC_LINK=$enableval
9283 else
9284 STATIC_LINK=no
9285 fi
9286
9287 { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9288 echo "${ECHO_T}$STATIC_LINK" >&6; }
9289
9290 ################################################################################
9291 { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9292 echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
9293 # Check whether --enable-selinux was given.
9294 if test "${enable_selinux+set}" = set; then
9295 enableval=$enable_selinux; SELINUX=$enableval
9296 fi
9297
9298 { echo "$as_me:$LINENO: result: $SELINUX" >&5
9299 echo "${ECHO_T}$SELINUX" >&6; }
9300
9301 ################################################################################
9302 if test x$SELINUX = xyes; then
9303 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9304 echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
9305 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 ac_check_lib_save_LIBS=$LIBS
9309 LIBS="-lsepol $LIBS"
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char sepol_check_context ();
9324 int
9325 main ()
9326 {
9327 return sepol_check_context ();
9328 ;
9329 return 0;
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (ac_try="$ac_link"
9334 case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_link") 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } && {
9346 test -z "$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9348 } && test -s conftest$ac_exeext &&
9349 $as_test_x conftest$ac_exeext; then
9350 ac_cv_lib_sepol_sepol_check_context=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355 ac_cv_lib_sepol_sepol_check_context=no
9356 fi
9357
9358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9359 conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9361 fi
9362 { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9363 echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
9364 if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9365 HAVE_SEPOL=yes
9366 else
9367 HAVE_SEPOL=no
9368 fi
9369
9370
9371 if test x$HAVE_SEPOL = xyes; then
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_SEPOL 1
9375 _ACEOF
9376
9377 LIBS="-lsepol $LIBS"
9378 fi
9379
9380 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9381 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
9382 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-lselinux $LIBS"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h. */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393
9394 /* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 char is_selinux_enabled ();
9401 int
9402 main ()
9403 {
9404 return is_selinux_enabled ();
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (ac_try="$ac_link"
9411 case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414 esac
9415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416 (eval "$ac_link") 2>conftest.er1
9417 ac_status=$?
9418 grep -v '^ *+' conftest.er1 >conftest.err
9419 rm -f conftest.er1
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && {
9423 test -z "$ac_c_werror_flag" ||
9424 test ! -s conftest.err
9425 } && test -s conftest$ac_exeext &&
9426 $as_test_x conftest$ac_exeext; then
9427 ac_cv_lib_selinux_is_selinux_enabled=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_lib_selinux_is_selinux_enabled=no
9433 fi
9434
9435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS
9438 fi
9439 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9440 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9441 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9442 HAVE_SELINUX=yes
9443 else
9444 HAVE_SELINUX=no
9445 fi
9446
9447
9448 if test x$HAVE_SELINUX = xyes; then
9449
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_SELINUX 1
9452 _ACEOF
9453
9454 LIBS="-lselinux $LIBS"
9455 else
9456 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9457 echo "$as_me: WARNING: Disabling selinux" >&2;}
9458 fi
9459
9460 # With --enable-static_link and selinux enabled, linking
9461 # fails on at least Debian unstable due to unsatisfied references
9462 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9463 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9464 lvm_saved_libs=$LIBS
9465 LIBS="$LIBS -static"
9466 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9467 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9468 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 ac_func_search_save_LIBS=$LIBS
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char pthread_mutex_lock ();
9486 int
9487 main ()
9488 {
9489 return pthread_mutex_lock ();
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 for ac_lib in '' pthread; do
9495 if test -z "$ac_lib"; then
9496 ac_res="none required"
9497 else
9498 ac_res=-l$ac_lib
9499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9500 fi
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (ac_try="$ac_link"
9503 case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext &&
9518 $as_test_x conftest$ac_exeext; then
9519 ac_cv_search_pthread_mutex_lock=$ac_res
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524
9525 fi
9526
9527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9528 conftest$ac_exeext
9529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9530 break
9531 fi
9532 done
9533 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9534 :
9535 else
9536 ac_cv_search_pthread_mutex_lock=no
9537 fi
9538 rm conftest.$ac_ext
9539 LIBS=$ac_func_search_save_LIBS
9540 fi
9541 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9542 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9543 ac_res=$ac_cv_search_pthread_mutex_lock
9544 if test "$ac_res" != no; then
9545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9546 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9547 LIB_PTHREAD=-lpthread
9548 fi
9549
9550 LIBS=$lvm_saved_libs
9551 fi
9552 fi
9553
9554 ################################################################################
9555 if test x$REALTIME = xyes; then
9556 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9557 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9558 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 ac_check_lib_save_LIBS=$LIBS
9562 LIBS="-lrt $LIBS"
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char clock_gettime ();
9577 int
9578 main ()
9579 {
9580 return clock_gettime ();
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest$ac_exeext &&
9602 $as_test_x conftest$ac_exeext; then
9603 ac_cv_lib_rt_clock_gettime=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_cv_lib_rt_clock_gettime=no
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9616 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9617 if test $ac_cv_lib_rt_clock_gettime = yes; then
9618 HAVE_REALTIME=yes
9619 else
9620 HAVE_REALTIME=no
9621 fi
9622
9623
9624 if test x$HAVE_REALTIME = xyes; then
9625
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_REALTIME 1
9628 _ACEOF
9629
9630 LIBS="-lrt $LIBS"
9631 else
9632 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9633 echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9634 fi
9635 fi
9636
9637 ################################################################################
9638
9639 for ac_header in getopt.h
9640 do
9641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 fi
9648 ac_res=`eval echo '${'$as_ac_Header'}'`
9649 { echo "$as_me:$LINENO: result: $ac_res" >&5
9650 echo "${ECHO_T}$ac_res" >&6; }
9651 else
9652 # Is the header compilable?
9653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 #include <$ac_header>
9663 _ACEOF
9664 rm -f conftest.$ac_objext
9665 if { (ac_try="$ac_compile"
9666 case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_compile") 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest.$ac_objext; then
9681 ac_header_compiler=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 ac_header_compiler=no
9687 fi
9688
9689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9691 echo "${ECHO_T}$ac_header_compiler" >&6; }
9692
9693 # Is the header present?
9694 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h. */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 #include <$ac_header>
9703 _ACEOF
9704 if { (ac_try="$ac_cpp conftest.$ac_ext"
9705 case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } >/dev/null && {
9717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 }; then
9720 ac_header_preproc=yes
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 ac_header_preproc=no
9726 fi
9727
9728 rm -f conftest.err conftest.$ac_ext
9729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9730 echo "${ECHO_T}$ac_header_preproc" >&6; }
9731
9732 # So? What about this header?
9733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9734 yes:no: )
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9739 ac_header_preproc=yes
9740 ;;
9741 no:yes:* )
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9754
9755 ;;
9756 esac
9757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 eval "$as_ac_Header=\$ac_header_preproc"
9763 fi
9764 ac_res=`eval echo '${'$as_ac_Header'}'`
9765 { echo "$as_me:$LINENO: result: $ac_res" >&5
9766 echo "${ECHO_T}$ac_res" >&6; }
9767
9768 fi
9769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9772 _ACEOF
9773
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_GETOPTLONG 1
9776 _ACEOF
9777
9778 fi
9779
9780 done
9781
9782
9783 ################################################################################
9784 if test x$READLINE != xno; then
9785 rl_found=yes
9786
9787 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9788 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
9789 if test "${ac_cv_lib_readline_readline+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-lreadline $LIBS"
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char readline ();
9808 int
9809 main ()
9810 {
9811 return readline ();
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest$ac_exeext &&
9833 $as_test_x conftest$ac_exeext; then
9834 ac_cv_lib_readline_readline=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 ac_cv_lib_readline_readline=no
9840 fi
9841
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843 conftest$ac_exeext conftest.$ac_ext
9844 LIBS=$ac_check_lib_save_LIBS
9845 fi
9846 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9847 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
9848 if test $ac_cv_lib_readline_readline = yes; then
9849 cat >>confdefs.h <<_ACEOF
9850 #define HAVE_LIBREADLINE 1
9851 _ACEOF
9852
9853 LIBS="-lreadline $LIBS"
9854
9855 else
9856 rl_found=no
9857 fi
9858
9859 test x$READLINE:$rl_found = xyes:no &&
9860 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
9861 --enable-readline option (which is enabled by default). Either disable readline
9862 support with --disable-readline or download and install readline from:
9863 ftp.gnu.org/gnu/readline
9864 Note: if you are using precompiled packages you will also need the development
9865 package as well (which may be called readline-devel or something similar).
9866 " >&5
9867 echo "$as_me: error: GNU Readline could not be found which is required for the
9868 --enable-readline option (which is enabled by default). Either disable readline
9869 support with --disable-readline or download and install readline from:
9870 ftp.gnu.org/gnu/readline
9871 Note: if you are using precompiled packages you will also need the development
9872 package as well (which may be called readline-devel or something similar).
9873 " >&2;}
9874 { (exit 1); exit 1; }; }
9875 if test $rl_found = yes; then
9876
9877 for ac_func in rl_completion_matches
9878 do
9879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define $ac_func innocuous_$ac_func
9894
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char $ac_func (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9899
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9905
9906 #undef $ac_func
9907
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char $ac_func ();
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_$ac_func || defined __stub___$ac_func
9919 choke me
9920 #endif
9921
9922 int
9923 main ()
9924 {
9925 return $ac_func ();
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 eval "$as_ac_var=yes"
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 eval "$as_ac_var=no"
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9958 fi
9959 ac_res=`eval echo '${'$as_ac_var'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961 echo "${ECHO_T}$ac_res" >&6; }
9962 if test `eval echo '${'$as_ac_var'}'` = yes; then
9963 cat >>confdefs.h <<_ACEOF
9964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9965 _ACEOF
9966
9967 fi
9968 done
9969
9970
9971 cat >>confdefs.h <<\_ACEOF
9972 #define READLINE_SUPPORT 1
9973 _ACEOF
9974
9975 fi
9976 fi
9977
9978 ################################################################################
9979 { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9980 echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
9981 # Check whether --enable-nls was given.
9982 if test "${enable_nls+set}" = set; then
9983 enableval=$enable_nls; INTL=$enableval
9984 else
9985 INTL=no
9986 fi
9987
9988 { echo "$as_me:$LINENO: result: $INTL" >&5
9989 echo "${ECHO_T}$INTL" >&6; }
9990
9991 if test x$INTL = xyes; then
9992 # FIXME - Move this - can be device-mapper too
9993 INTL_PACKAGE="lvm2"
9994 # Extract the first word of "msgfmt", so it can be a program name with args.
9995 set dummy msgfmt; ac_word=$2
9996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9998 if test "${ac_cv_path_MSGFMT+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001 case $MSGFMT in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10004 ;;
10005 *)
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 ;;
10022 esac
10023 fi
10024 MSGFMT=$ac_cv_path_MSGFMT
10025 if test -n "$MSGFMT"; then
10026 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10027 echo "${ECHO_T}$MSGFMT" >&6; }
10028 else
10029 { echo "$as_me:$LINENO: result: no" >&5
10030 echo "${ECHO_T}no" >&6; }
10031 fi
10032
10033
10034 if [ "x$MSGFMT" == x ];
10035 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10036 " >&5
10037 echo "$as_me: error: msgfmt not found in path $PATH
10038 " >&2;}
10039 { (exit 1); exit 1; }; }
10040 fi;
10041
10042
10043 # Check whether --with-localedir was given.
10044 if test "${with_localedir+set}" = set; then
10045 withval=$with_localedir; LOCALEDIR="$withval"
10046 else
10047 LOCALEDIR='${prefix}/share/locale'
10048 fi
10049
10050 fi
10051
10052 ################################################################################
10053
10054 # Check whether --with-confdir was given.
10055 if test "${with_confdir+set}" = set; then
10056 withval=$with_confdir; CONFDIR="$withval"
10057 else
10058 CONFDIR='/etc'
10059 fi
10060
10061
10062
10063 # Check whether --with-staticdir was given.
10064 if test "${with_staticdir+set}" = set; then
10065 withval=$with_staticdir; STATICDIR="$withval"
10066 else
10067 STATICDIR='${exec_prefix}/sbin'
10068 fi
10069
10070
10071
10072 # Check whether --with-usrlibdir was given.
10073 if test "${with_usrlibdir+set}" = set; then
10074 withval=$with_usrlibdir; usrlibdir="$withval"
10075 else
10076 usrlibdir='${prefix}/lib'
10077 fi
10078
10079
10080
10081 # Check whether --with-usrsbindir was given.
10082 if test "${with_usrsbindir+set}" = set; then
10083 withval=$with_usrsbindir; usrsbindir="$withval"
10084 else
10085 usrsbindir='${prefix}/sbin'
10086 fi
10087
10088
10089 ################################################################################
10090 if test x$READLINE = xyes; then
10091
10092
10093 for ac_header in readline/readline.h readline/history.h
10094 do
10095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 fi
10102 ac_res=`eval echo '${'$as_ac_Header'}'`
10103 { echo "$as_me:$LINENO: result: $ac_res" >&5
10104 echo "${ECHO_T}$ac_res" >&6; }
10105 else
10106 # Is the header compilable?
10107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 #include <$ac_header>
10117 _ACEOF
10118 rm -f conftest.$ac_objext
10119 if { (ac_try="$ac_compile"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_compile") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest.$ac_objext; then
10135 ac_header_compiler=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 ac_header_compiler=no
10141 fi
10142
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10145 echo "${ECHO_T}$ac_header_compiler" >&6; }
10146
10147 # Is the header present?
10148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <$ac_header>
10157 _ACEOF
10158 if { (ac_try="$ac_cpp conftest.$ac_ext"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } >/dev/null && {
10171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 }; then
10174 ac_header_preproc=yes
10175 else
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179 ac_header_preproc=no
10180 fi
10181
10182 rm -f conftest.err conftest.$ac_ext
10183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10184 echo "${ECHO_T}$ac_header_preproc" >&6; }
10185
10186 # So? What about this header?
10187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10188 yes:no: )
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10193 ac_header_preproc=yes
10194 ;;
10195 no:yes:* )
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10208
10209 ;;
10210 esac
10211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 eval "$as_ac_Header=\$ac_header_preproc"
10217 fi
10218 ac_res=`eval echo '${'$as_ac_Header'}'`
10219 { echo "$as_me:$LINENO: result: $ac_res" >&5
10220 echo "${ECHO_T}$ac_res" >&6; }
10221
10222 fi
10223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10224 cat >>confdefs.h <<_ACEOF
10225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10226 _ACEOF
10227
10228 else
10229 { { echo "$as_me:$LINENO: error: bailing out" >&5
10230 echo "$as_me: error: bailing out" >&2;}
10231 { (exit 1); exit 1; }; }
10232 fi
10233
10234 done
10235
10236 fi
10237
10238 if test x$CLVMD != xnone; then
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 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
10250 do
10251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 fi
10258 ac_res=`eval echo '${'$as_ac_Header'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10261 else
10262 # Is the header compilable?
10263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_compile") 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest.$ac_objext; then
10291 ac_header_compiler=yes
10292 else
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296 ac_header_compiler=no
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301 echo "${ECHO_T}$ac_header_compiler" >&6; }
10302
10303 # Is the header present?
10304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 #include <$ac_header>
10313 _ACEOF
10314 if { (ac_try="$ac_cpp conftest.$ac_ext"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } >/dev/null && {
10327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10329 }; then
10330 ac_header_preproc=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_header_preproc=no
10336 fi
10337
10338 rm -f conftest.err conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340 echo "${ECHO_T}$ac_header_preproc" >&6; }
10341
10342 # So? What about this header?
10343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344 yes:no: )
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349 ac_header_preproc=yes
10350 ;;
10351 no:yes:* )
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364
10365 ;;
10366 esac
10367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 eval "$as_ac_Header=\$ac_header_preproc"
10373 fi
10374 ac_res=`eval echo '${'$as_ac_Header'}'`
10375 { echo "$as_me:$LINENO: result: $ac_res" >&5
10376 echo "${ECHO_T}$ac_res" >&6; }
10377
10378 fi
10379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382 _ACEOF
10383
10384 else
10385 { { echo "$as_me:$LINENO: error: bailing out" >&5
10386 echo "$as_me: error: bailing out" >&2;}
10387 { (exit 1); exit 1; }; }
10388 fi
10389
10390 done
10391
10392
10393
10394
10395
10396
10397 for ac_func in dup2 getmntent memmove select socket
10398 do
10399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10413 #define $ac_func innocuous_$ac_func
10414
10415 /* System header to define __stub macros and hopefully few prototypes,
10416 which can conflict with char $ac_func (); below.
10417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10418 <limits.h> exists even on freestanding compilers. */
10419
10420 #ifdef __STDC__
10421 # include <limits.h>
10422 #else
10423 # include <assert.h>
10424 #endif
10425
10426 #undef $ac_func
10427
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char $ac_func ();
10435 /* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
10438 #if defined __stub_$ac_func || defined __stub___$ac_func
10439 choke me
10440 #endif
10441
10442 int
10443 main ()
10444 {
10445 return $ac_func ();
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_link") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest$ac_exeext &&
10467 $as_test_x conftest$ac_exeext; then
10468 eval "$as_ac_var=yes"
10469 else
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 eval "$as_ac_var=no"
10474 fi
10475
10476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10477 conftest$ac_exeext conftest.$ac_ext
10478 fi
10479 ac_res=`eval echo '${'$as_ac_var'}'`
10480 { echo "$as_me:$LINENO: result: $ac_res" >&5
10481 echo "${ECHO_T}$ac_res" >&6; }
10482 if test `eval echo '${'$as_ac_var'}'` = yes; then
10483 cat >>confdefs.h <<_ACEOF
10484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10485 _ACEOF
10486
10487 else
10488 { { echo "$as_me:$LINENO: error: bailing out" >&5
10489 echo "$as_me: error: bailing out" >&2;}
10490 { (exit 1); exit 1; }; }
10491 fi
10492 done
10493
10494 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10495 # -lseq on Dynix/PTX, -lgen on Unixware.
10496 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10497 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
10498 if test "${ac_cv_search_getmntent+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501 ac_func_search_save_LIBS=$LIBS
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508
10509 /* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 char getmntent ();
10516 int
10517 main ()
10518 {
10519 return getmntent ();
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 for ac_lib in '' sun seq gen; do
10525 if test -z "$ac_lib"; then
10526 ac_res="none required"
10527 else
10528 ac_res=-l$ac_lib
10529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10530 fi
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext &&
10548 $as_test_x conftest$ac_exeext; then
10549 ac_cv_search_getmntent=$ac_res
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext
10559 if test "${ac_cv_search_getmntent+set}" = set; then
10560 break
10561 fi
10562 done
10563 if test "${ac_cv_search_getmntent+set}" = set; then
10564 :
10565 else
10566 ac_cv_search_getmntent=no
10567 fi
10568 rm conftest.$ac_ext
10569 LIBS=$ac_func_search_save_LIBS
10570 fi
10571 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10572 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
10573 ac_res=$ac_cv_search_getmntent
10574 if test "$ac_res" != no; then
10575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10576 ac_cv_func_getmntent=yes
10577
10578 cat >>confdefs.h <<\_ACEOF
10579 #define HAVE_GETMNTENT
10580 _ACEOF
10581
10582 else
10583 ac_cv_func_getmntent=no
10584 fi
10585
10586
10587 # AC_FUNC_REALLOC
10588
10589
10590 for ac_header in sys/select.h sys/socket.h
10591 do
10592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 fi
10599 ac_res=`eval echo '${'$as_ac_Header'}'`
10600 { echo "$as_me:$LINENO: result: $ac_res" >&5
10601 echo "${ECHO_T}$ac_res" >&6; }
10602 else
10603 # Is the header compilable?
10604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 $ac_includes_default
10613 #include <$ac_header>
10614 _ACEOF
10615 rm -f conftest.$ac_objext
10616 if { (ac_try="$ac_compile"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_compile") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest.$ac_objext; then
10632 ac_header_compiler=yes
10633 else
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ac_header_compiler=no
10638 fi
10639
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10642 echo "${ECHO_T}$ac_header_compiler" >&6; }
10643
10644 # Is the header present?
10645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 #include <$ac_header>
10654 _ACEOF
10655 if { (ac_try="$ac_cpp conftest.$ac_ext"
10656 case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10659 esac
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null && {
10668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 }; then
10671 ac_header_preproc=yes
10672 else
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_header_preproc=no
10677 fi
10678
10679 rm -f conftest.err conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 echo "${ECHO_T}$ac_header_preproc" >&6; }
10682
10683 # So? What about this header?
10684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10685 yes:no: )
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10690 ac_header_preproc=yes
10691 ;;
10692 no:yes:* )
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10705
10706 ;;
10707 esac
10708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 eval "$as_ac_Header=\$ac_header_preproc"
10714 fi
10715 ac_res=`eval echo '${'$as_ac_Header'}'`
10716 { echo "$as_me:$LINENO: result: $ac_res" >&5
10717 echo "${ECHO_T}$ac_res" >&6; }
10718
10719 fi
10720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10723 _ACEOF
10724
10725 fi
10726
10727 done
10728
10729 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
10730 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10731 if test "${ac_cv_func_select_args+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10735 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10736 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 $ac_includes_default
10744 #ifdef HAVE_SYS_SELECT_H
10745 # include <sys/select.h>
10746 #endif
10747 #ifdef HAVE_SYS_SOCKET_H
10748 # include <sys/socket.h>
10749 #endif
10750
10751 int
10752 main ()
10753 {
10754 extern int select ($ac_arg1,
10755 $ac_arg234, $ac_arg234, $ac_arg234,
10756 $ac_arg5);
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (ac_try="$ac_compile"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_compile") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest.$ac_objext; then
10778 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 done
10788 done
10789 done
10790 # Provide a safe default value.
10791 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10792
10793 fi
10794 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10795 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10796 ac_save_IFS=$IFS; IFS=','
10797 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10798 IFS=$ac_save_IFS
10799 shift
10800
10801 cat >>confdefs.h <<_ACEOF
10802 #define SELECT_TYPE_ARG1 $1
10803 _ACEOF
10804
10805
10806 cat >>confdefs.h <<_ACEOF
10807 #define SELECT_TYPE_ARG234 ($2)
10808 _ACEOF
10809
10810
10811 cat >>confdefs.h <<_ACEOF
10812 #define SELECT_TYPE_ARG5 ($3)
10813 _ACEOF
10814
10815 rm -f conftest*
10816
10817 fi
10818
10819 if test x$CLUSTER != xnone; then
10820
10821
10822 for ac_header in sys/socket.h sys/un.h
10823 do
10824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 fi
10831 ac_res=`eval echo '${'$as_ac_Header'}'`
10832 { echo "$as_me:$LINENO: result: $ac_res" >&5
10833 echo "${ECHO_T}$ac_res" >&6; }
10834 else
10835 # Is the header compilable?
10836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 #include <$ac_header>
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
10864 ac_header_compiler=yes
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_header_compiler=no
10870 fi
10871
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10875
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <$ac_header>
10886 _ACEOF
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null && {
10900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 }; then
10903 ac_header_preproc=yes
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_header_preproc=no
10909 fi
10910
10911 rm -f conftest.err conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10913 echo "${ECHO_T}$ac_header_preproc" >&6; }
10914
10915 # So? What about this header?
10916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10917 yes:no: )
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10922 ac_header_preproc=yes
10923 ;;
10924 no:yes:* )
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10937
10938 ;;
10939 esac
10940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945 eval "$as_ac_Header=\$ac_header_preproc"
10946 fi
10947 ac_res=`eval echo '${'$as_ac_Header'}'`
10948 { echo "$as_me:$LINENO: result: $ac_res" >&5
10949 echo "${ECHO_T}$ac_res" >&6; }
10950
10951 fi
10952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10953 cat >>confdefs.h <<_ACEOF
10954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10955 _ACEOF
10956
10957 else
10958 { { echo "$as_me:$LINENO: error: bailing out" >&5
10959 echo "$as_me: error: bailing out" >&2;}
10960 { (exit 1); exit 1; }; }
10961 fi
10962
10963 done
10964
10965
10966 for ac_func in socket
10967 do
10968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974 cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h. */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10982 #define $ac_func innocuous_$ac_func
10983
10984 /* System header to define __stub macros and hopefully few prototypes,
10985 which can conflict with char $ac_func (); below.
10986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10987 <limits.h> exists even on freestanding compilers. */
10988
10989 #ifdef __STDC__
10990 # include <limits.h>
10991 #else
10992 # include <assert.h>
10993 #endif
10994
10995 #undef $ac_func
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char $ac_func ();
11004 /* The GNU C library defines this for functions which it implements
11005 to always fail with ENOSYS. Some functions are actually named
11006 something starting with __ and the normal name is an alias. */
11007 #if defined __stub_$ac_func || defined __stub___$ac_func
11008 choke me
11009 #endif
11010
11011 int
11012 main ()
11013 {
11014 return $ac_func ();
11015 ;
11016 return 0;
11017 }
11018 _ACEOF
11019 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (ac_try="$ac_link"
11021 case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_link") 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } && {
11033 test -z "$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11035 } && test -s conftest$ac_exeext &&
11036 $as_test_x conftest$ac_exeext; then
11037 eval "$as_ac_var=yes"
11038 else
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 eval "$as_ac_var=no"
11043 fi
11044
11045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11046 conftest$ac_exeext conftest.$ac_ext
11047 fi
11048 ac_res=`eval echo '${'$as_ac_var'}'`
11049 { echo "$as_me:$LINENO: result: $ac_res" >&5
11050 echo "${ECHO_T}$ac_res" >&6; }
11051 if test `eval echo '${'$as_ac_var'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 else
11057 { { echo "$as_me:$LINENO: error: bailing out" >&5
11058 echo "$as_me: error: bailing out" >&2;}
11059 { (exit 1); exit 1; }; }
11060 fi
11061 done
11062
11063 fi
11064
11065 if test x$HAVE_LIBDL = xyes; then
11066
11067 for ac_header in dlfcn.h
11068 do
11069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 fi
11076 ac_res=`eval echo '${'$as_ac_Header'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078 echo "${ECHO_T}$ac_res" >&6; }
11079 else
11080 # Is the header compilable?
11081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 $ac_includes_default
11090 #include <$ac_header>
11091 _ACEOF
11092 rm -f conftest.$ac_objext
11093 if { (ac_try="$ac_compile"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_compile") 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest.$ac_objext; then
11109 ac_header_compiler=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_header_compiler=no
11115 fi
11116
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119 echo "${ECHO_T}$ac_header_compiler" >&6; }
11120
11121 # Is the header present?
11122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 #include <$ac_header>
11131 _ACEOF
11132 if { (ac_try="$ac_cpp conftest.$ac_ext"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } >/dev/null && {
11145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 }; then
11148 ac_header_preproc=yes
11149 else
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_header_preproc=no
11154 fi
11155
11156 rm -f conftest.err conftest.$ac_ext
11157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11158 echo "${ECHO_T}$ac_header_preproc" >&6; }
11159
11160 # So? What about this header?
11161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11162 yes:no: )
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11167 ac_header_preproc=yes
11168 ;;
11169 no:yes:* )
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11182
11183 ;;
11184 esac
11185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190 eval "$as_ac_Header=\$ac_header_preproc"
11191 fi
11192 ac_res=`eval echo '${'$as_ac_Header'}'`
11193 { echo "$as_me:$LINENO: result: $ac_res" >&5
11194 echo "${ECHO_T}$ac_res" >&6; }
11195
11196 fi
11197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 else
11203 { { echo "$as_me:$LINENO: error: bailing out" >&5
11204 echo "$as_me: error: bailing out" >&2;}
11205 { (exit 1); exit 1; }; }
11206 fi
11207
11208 done
11209
11210 fi
11211
11212 if test x$INTL = xyes; then
11213
11214 for ac_header in libintl.h
11215 do
11216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 fi
11223 ac_res=`eval echo '${'$as_ac_Header'}'`
11224 { echo "$as_me:$LINENO: result: $ac_res" >&5
11225 echo "${ECHO_T}$ac_res" >&6; }
11226 else
11227 # Is the header compilable?
11228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h. */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 $ac_includes_default
11237 #include <$ac_header>
11238 _ACEOF
11239 rm -f conftest.$ac_objext
11240 if { (ac_try="$ac_compile"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_compile") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest.$ac_objext; then
11256 ac_header_compiler=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_header_compiler=no
11262 fi
11263
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11266 echo "${ECHO_T}$ac_header_compiler" >&6; }
11267
11268 # Is the header present?
11269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <$ac_header>
11278 _ACEOF
11279 if { (ac_try="$ac_cpp conftest.$ac_ext"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } >/dev/null && {
11292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11293 test ! -s conftest.err
11294 }; then
11295 ac_header_preproc=yes
11296 else
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 ac_header_preproc=no
11301 fi
11302
11303 rm -f conftest.err conftest.$ac_ext
11304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305 echo "${ECHO_T}$ac_header_preproc" >&6; }
11306
11307 # So? What about this header?
11308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309 yes:no: )
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314 ac_header_preproc=yes
11315 ;;
11316 no:yes:* )
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11329
11330 ;;
11331 esac
11332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337 eval "$as_ac_Header=\$ac_header_preproc"
11338 fi
11339 ac_res=`eval echo '${'$as_ac_Header'}'`
11340 { echo "$as_me:$LINENO: result: $ac_res" >&5
11341 echo "${ECHO_T}$ac_res" >&6; }
11342
11343 fi
11344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11345 cat >>confdefs.h <<_ACEOF
11346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11347 _ACEOF
11348
11349 else
11350 { { echo "$as_me:$LINENO: error: bailing out" >&5
11351 echo "$as_me: error: bailing out" >&2;}
11352 { (exit 1); exit 1; }; }
11353 fi
11354
11355 done
11356
11357 fi
11358
11359
11360 for ac_header in libdevmapper.h
11361 do
11362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 else
11373 # Is the header compilable?
11374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 #include <$ac_header>
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && {
11399 test -z "$ac_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest.$ac_objext; then
11402 ac_header_compiler=yes
11403 else
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 ac_header_compiler=no
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412 echo "${ECHO_T}$ac_header_compiler" >&6; }
11413
11414 # Is the header present?
11415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <$ac_header>
11424 _ACEOF
11425 if { (ac_try="$ac_cpp conftest.$ac_ext"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev/null && {
11438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 }; then
11441 ac_header_preproc=yes
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_header_preproc=no
11447 fi
11448
11449 rm -f conftest.err conftest.$ac_ext
11450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11451 echo "${ECHO_T}$ac_header_preproc" >&6; }
11452
11453 # So? What about this header?
11454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11455 yes:no: )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11460 ac_header_preproc=yes
11461 ;;
11462 no:yes:* )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11475
11476 ;;
11477 esac
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483 eval "$as_ac_Header=\$ac_header_preproc"
11484 fi
11485 ac_res=`eval echo '${'$as_ac_Header'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11488
11489 fi
11490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 _ACEOF
11494
11495 else
11496 { { echo "$as_me:$LINENO: error: bailing out" >&5
11497 echo "$as_me: error: bailing out" >&2;}
11498 { (exit 1); exit 1; }; }
11499 fi
11500
11501 done
11502
11503
11504 if test x$HAVE_SELINUX = xyes; then
11505
11506 for ac_header in selinux/selinux.h
11507 do
11508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 fi
11515 ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518 else
11519 # Is the header compilable?
11520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 #include <$ac_header>
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11548 ac_header_compiler=yes
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 ac_header_compiler=no
11554 fi
11555
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558 echo "${ECHO_T}$ac_header_compiler" >&6; }
11559
11560 # Is the header present?
11561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <$ac_header>
11570 _ACEOF
11571 if { (ac_try="$ac_cpp conftest.$ac_ext"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null && {
11584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11585 test ! -s conftest.err
11586 }; then
11587 ac_header_preproc=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_header_preproc=no
11593 fi
11594
11595 rm -f conftest.err conftest.$ac_ext
11596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11597 echo "${ECHO_T}$ac_header_preproc" >&6; }
11598
11599 # So? What about this header?
11600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11601 yes:no: )
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11606 ac_header_preproc=yes
11607 ;;
11608 no:yes:* )
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11621
11622 ;;
11623 esac
11624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 eval "$as_ac_Header=\$ac_header_preproc"
11630 fi
11631 ac_res=`eval echo '${'$as_ac_Header'}'`
11632 { echo "$as_me:$LINENO: result: $ac_res" >&5
11633 echo "${ECHO_T}$ac_res" >&6; }
11634
11635 fi
11636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11639 _ACEOF
11640
11641 else
11642 { { echo "$as_me:$LINENO: error: bailing out" >&5
11643 echo "$as_me: error: bailing out" >&2;}
11644 { (exit 1); exit 1; }; }
11645 fi
11646
11647 done
11648
11649 fi
11650
11651 ################################################################################
11652 # Extract the first word of "modprobe", so it can be a program name with args.
11653 set dummy modprobe; ac_word=$2
11654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11656 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 case $MODPROBE_CMD in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11662 ;;
11663 *)
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11666 do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675 done
11676 done
11677 IFS=$as_save_IFS
11678
11679 ;;
11680 esac
11681 fi
11682 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11683 if test -n "$MODPROBE_CMD"; then
11684 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11685 echo "${ECHO_T}$MODPROBE_CMD" >&6; }
11686 else
11687 { echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6; }
11689 fi
11690
11691
11692
11693 if test x$MODPROBE_CMD != x; then
11694
11695 cat >>confdefs.h <<_ACEOF
11696 #define MODPROBE_CMD "$MODPROBE_CMD"
11697 _ACEOF
11698
11699 fi
11700
11701 ################################################################################
11702
11703
11704 if test "$BUILD_DMEVENTD" = yes; then
11705
11706 # Check whether --with-dmeventd-pidfile was given.
11707 if test "${with_dmeventd_pidfile+set}" = set; then
11708 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11709 #define DMEVENTD_PIDFILE "$withval"
11710 _ACEOF
11711
11712 else
11713 cat >>confdefs.h <<_ACEOF
11714 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11715 _ACEOF
11716
11717 fi
11718
11719 fi
11720
11721
11722
11723 if test "$BUILD_DMEVENTD" = yes; then
11724 dmeventd_prefix="$exec_prefix"
11725 if test "x$dmeventd_prefix" = "xNONE"; then
11726 dmeventd_prefix="$prefix"
11727 fi
11728 if test "x$dmeventd_prefix" = "xNONE"; then
11729 dmeventd_prefix=""
11730 fi
11731
11732 # Check whether --with-dmeventd-path was given.
11733 if test "${with_dmeventd_path+set}" = set; then
11734 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11735 #define DMEVENTD_PATH "$withval"
11736 _ACEOF
11737
11738 else
11739 cat >>confdefs.h <<_ACEOF
11740 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11741 _ACEOF
11742
11743 fi
11744
11745 fi
11746
11747 ################################################################################
11748 { echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11749 echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11750
11751 # Check whether --with-interface was given.
11752 if test "${with_interface+set}" = set; then
11753 withval=$with_interface; interface="$withval"
11754 else
11755 interface=ioctl
11756 fi
11757
11758 if [ "x$interface" != xioctl ];
11759 then
11760 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11761 echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11762 { (exit 1); exit 1; }; }
11763 fi
11764 { echo "$as_me:$LINENO: result: $interface" >&5
11765 echo "${ECHO_T}$interface" >&6; }
11766
11767 ################################################################################
11768 DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\""
11769 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
11770
11771 ################################################################################
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825 ################################################################################
11826 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h"
11827
11828 cat >confcache <<\_ACEOF
11829 # This file is a shell script that caches the results of configure
11830 # tests run on this system so they can be shared between configure
11831 # scripts and configure runs, see configure's option --config-cache.
11832 # It is not useful on other systems. If it contains results you don't
11833 # want to keep, you may remove or edit it.
11834 #
11835 # config.status only pays attention to the cache file if you give it
11836 # the --recheck option to rerun configure.
11837 #
11838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11840 # following values.
11841
11842 _ACEOF
11843
11844 # The following way of writing the cache mishandles newlines in values,
11845 # but we know of no workaround that is simple, portable, and efficient.
11846 # So, we kill variables containing newlines.
11847 # Ultrix sh set writes to stderr and can't be redirected directly,
11848 # and sets the high bit in the cache file unless we assign to the vars.
11849 (
11850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11851 eval ac_val=\$$ac_var
11852 case $ac_val in #(
11853 *${as_nl}*)
11854 case $ac_var in #(
11855 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11856 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11857 esac
11858 case $ac_var in #(
11859 _ | IFS | as_nl) ;; #(
11860 *) $as_unset $ac_var ;;
11861 esac ;;
11862 esac
11863 done
11864
11865 (set) 2>&1 |
11866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11867 *${as_nl}ac_space=\ *)
11868 # `set' does not quote correctly, so add quotes (double-quote
11869 # substitution turns \\\\ into \\, and sed turns \\ into \).
11870 sed -n \
11871 "s/'/'\\\\''/g;
11872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11873 ;; #(
11874 *)
11875 # `set' quotes correctly as required by POSIX, so do not add quotes.
11876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11877 ;;
11878 esac |
11879 sort
11880 ) |
11881 sed '
11882 /^ac_cv_env_/b end
11883 t clear
11884 :clear
11885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11886 t end
11887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11888 :end' >>confcache
11889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11890 if test -w "$cache_file"; then
11891 test "x$cache_file" != "x/dev/null" &&
11892 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11893 echo "$as_me: updating cache $cache_file" >&6;}
11894 cat confcache >$cache_file
11895 else
11896 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11897 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11898 fi
11899 fi
11900 rm -f confcache
11901
11902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11903 # Let make expand exec_prefix.
11904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11905
11906 DEFS=-DHAVE_CONFIG_H
11907
11908 ac_libobjs=
11909 ac_ltlibobjs=
11910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11911 # 1. Remove the extension, and $U if already installed.
11912 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11913 ac_i=`echo "$ac_i" | sed "$ac_script"`
11914 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11915 # will be set to the directory where LIBOBJS objects are built.
11916 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11917 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11918 done
11919 LIBOBJS=$ac_libobjs
11920
11921 LTLIBOBJS=$ac_ltlibobjs
11922
11923
11924
11925 : ${CONFIG_STATUS=./config.status}
11926 ac_clean_files_save=$ac_clean_files
11927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11930 cat >$CONFIG_STATUS <<_ACEOF
11931 #! $SHELL
11932 # Generated by $as_me.
11933 # Run this file to recreate the current configuration.
11934 # Compiler output produced by configure, useful for debugging
11935 # configure, is in config.log if it exists.
11936
11937 debug=false
11938 ac_cs_recheck=false
11939 ac_cs_silent=false
11940 SHELL=\${CONFIG_SHELL-$SHELL}
11941 _ACEOF
11942
11943 cat >>$CONFIG_STATUS <<\_ACEOF
11944 ## --------------------- ##
11945 ## M4sh Initialization. ##
11946 ## --------------------- ##
11947
11948 # Be more Bourne compatible
11949 DUALCASE=1; export DUALCASE # for MKS sh
11950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11951 emulate sh
11952 NULLCMD=:
11953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11954 # is contrary to our usage. Disable this feature.
11955 alias -g '${1+"$@"}'='"$@"'
11956 setopt NO_GLOB_SUBST
11957 else
11958 case `(set -o) 2>/dev/null` in
11959 *posix*) set -o posix ;;
11960 esac
11961
11962 fi
11963
11964
11965
11966
11967 # PATH needs CR
11968 # Avoid depending upon Character Ranges.
11969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11972 as_cr_digits='0123456789'
11973 as_cr_alnum=$as_cr_Letters$as_cr_digits
11974
11975 # The user is always right.
11976 if test "${PATH_SEPARATOR+set}" != set; then
11977 echo "#! /bin/sh" >conf$$.sh
11978 echo "exit 0" >>conf$$.sh
11979 chmod +x conf$$.sh
11980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11981 PATH_SEPARATOR=';'
11982 else
11983 PATH_SEPARATOR=:
11984 fi
11985 rm -f conf$$.sh
11986 fi
11987
11988 # Support unset when possible.
11989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11990 as_unset=unset
11991 else
11992 as_unset=false
11993 fi
11994
11995
11996 # IFS
11997 # We need space, tab and new line, in precisely that order. Quoting is
11998 # there to prevent editors from complaining about space-tab.
11999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12000 # splitting by setting IFS to empty value.)
12001 as_nl='
12002 '
12003 IFS=" "" $as_nl"
12004
12005 # Find who we are. Look in the path if we contain no directory separator.
12006 case $0 in
12007 *[\\/]* ) as_myself=$0 ;;
12008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12010 do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12014 done
12015 IFS=$as_save_IFS
12016
12017 ;;
12018 esac
12019 # We did not find ourselves, most probably we were run as `sh COMMAND'
12020 # in which case we are not to be found in the path.
12021 if test "x$as_myself" = x; then
12022 as_myself=$0
12023 fi
12024 if test ! -f "$as_myself"; then
12025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12026 { (exit 1); exit 1; }
12027 fi
12028
12029 # Work around bugs in pre-3.0 UWIN ksh.
12030 for as_var in ENV MAIL MAILPATH
12031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12032 done
12033 PS1='$ '
12034 PS2='> '
12035 PS4='+ '
12036
12037 # NLS nuisances.
12038 for as_var in \
12039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12041 LC_TELEPHONE LC_TIME
12042 do
12043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12044 eval $as_var=C; export $as_var
12045 else
12046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12047 fi
12048 done
12049
12050 # Required to use basename.
12051 if expr a : '\(a\)' >/dev/null 2>&1 &&
12052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12053 as_expr=expr
12054 else
12055 as_expr=false
12056 fi
12057
12058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12059 as_basename=basename
12060 else
12061 as_basename=false
12062 fi
12063
12064
12065 # Name of the executable.
12066 as_me=`$as_basename -- "$0" ||
12067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12068 X"$0" : 'X\(//\)$' \| \
12069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12070 echo X/"$0" |
12071 sed '/^.*\/\([^/][^/]*\)\/*$/{
12072 s//\1/
12073 q
12074 }
12075 /^X\/\(\/\/\)$/{
12076 s//\1/
12077 q
12078 }
12079 /^X\/\(\/\).*/{
12080 s//\1/
12081 q
12082 }
12083 s/.*/./; q'`
12084
12085 # CDPATH.
12086 $as_unset CDPATH
12087
12088
12089
12090 as_lineno_1=$LINENO
12091 as_lineno_2=$LINENO
12092 test "x$as_lineno_1" != "x$as_lineno_2" &&
12093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12094
12095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12096 # uniformly replaced by the line number. The first 'sed' inserts a
12097 # line-number line after each line using $LINENO; the second 'sed'
12098 # does the real work. The second script uses 'N' to pair each
12099 # line-number line with the line containing $LINENO, and appends
12100 # trailing '-' during substitution so that $LINENO is not a special
12101 # case at line end.
12102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12103 # scripts with optimization help from Paolo Bonzini. Blame Lee
12104 # E. McMahon (1931-1989) for sed's syntax. :-)
12105 sed -n '
12106 p
12107 /[$]LINENO/=
12108 ' <$as_myself |
12109 sed '
12110 s/[$]LINENO.*/&-/
12111 t lineno
12112 b
12113 :lineno
12114 N
12115 :loop
12116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12117 t loop
12118 s/-\n.*//
12119 ' >$as_me.lineno &&
12120 chmod +x "$as_me.lineno" ||
12121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12122 { (exit 1); exit 1; }; }
12123
12124 # Don't try to exec as it changes $[0], causing all sort of problems
12125 # (the dirname of $[0] is not the place where we might find the
12126 # original and so on. Autoconf is especially sensitive to this).
12127 . "./$as_me.lineno"
12128 # Exit status is that of the last command.
12129 exit
12130 }
12131
12132
12133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12134 as_dirname=dirname
12135 else
12136 as_dirname=false
12137 fi
12138
12139 ECHO_C= ECHO_N= ECHO_T=
12140 case `echo -n x` in
12141 -n*)
12142 case `echo 'x\c'` in
12143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12144 *) ECHO_C='\c';;
12145 esac;;
12146 *)
12147 ECHO_N='-n';;
12148 esac
12149
12150 if expr a : '\(a\)' >/dev/null 2>&1 &&
12151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12152 as_expr=expr
12153 else
12154 as_expr=false
12155 fi
12156
12157 rm -f conf$$ conf$$.exe conf$$.file
12158 if test -d conf$$.dir; then
12159 rm -f conf$$.dir/conf$$.file
12160 else
12161 rm -f conf$$.dir
12162 mkdir conf$$.dir
12163 fi
12164 echo >conf$$.file
12165 if ln -s conf$$.file conf$$ 2>/dev/null; then
12166 as_ln_s='ln -s'
12167 # ... but there are two gotchas:
12168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12170 # In both cases, we have to default to `cp -p'.
12171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12172 as_ln_s='cp -p'
12173 elif ln conf$$.file conf$$ 2>/dev/null; then
12174 as_ln_s=ln
12175 else
12176 as_ln_s='cp -p'
12177 fi
12178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12179 rmdir conf$$.dir 2>/dev/null
12180
12181 if mkdir -p . 2>/dev/null; then
12182 as_mkdir_p=:
12183 else
12184 test -d ./-p && rmdir ./-p
12185 as_mkdir_p=false
12186 fi
12187
12188 if test -x / >/dev/null 2>&1; then
12189 as_test_x='test -x'
12190 else
12191 if ls -dL / >/dev/null 2>&1; then
12192 as_ls_L_option=L
12193 else
12194 as_ls_L_option=
12195 fi
12196 as_test_x='
12197 eval sh -c '\''
12198 if test -d "$1"; then
12199 test -d "$1/.";
12200 else
12201 case $1 in
12202 -*)set "./$1";;
12203 esac;
12204 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12205 ???[sx]*):;;*)false;;esac;fi
12206 '\'' sh
12207 '
12208 fi
12209 as_executable_p=$as_test_x
12210
12211 # Sed expression to map a string onto a valid CPP name.
12212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12213
12214 # Sed expression to map a string onto a valid variable name.
12215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12216
12217
12218 exec 6>&1
12219
12220 # Save the log message, to keep $[0] and so on meaningful, and to
12221 # report actual input values of CONFIG_FILES etc. instead of their
12222 # values after options handling.
12223 ac_log="
12224 This file was extended by $as_me, which was
12225 generated by GNU Autoconf 2.61. Invocation command line was
12226
12227 CONFIG_FILES = $CONFIG_FILES
12228 CONFIG_HEADERS = $CONFIG_HEADERS
12229 CONFIG_LINKS = $CONFIG_LINKS
12230 CONFIG_COMMANDS = $CONFIG_COMMANDS
12231 $ $0 $@
12232
12233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12234 "
12235
12236 _ACEOF
12237
12238 cat >>$CONFIG_STATUS <<_ACEOF
12239 # Files that config.status was made for.
12240 config_files="$ac_config_files"
12241 config_headers="$ac_config_headers"
12242
12243 _ACEOF
12244
12245 cat >>$CONFIG_STATUS <<\_ACEOF
12246 ac_cs_usage="\
12247 \`$as_me' instantiates files from templates according to the
12248 current configuration.
12249
12250 Usage: $0 [OPTIONS] [FILE]...
12251
12252 -h, --help print this help, then exit
12253 -V, --version print version number and configuration settings, then exit
12254 -q, --quiet do not print progress messages
12255 -d, --debug don't remove temporary files
12256 --recheck update $as_me by reconfiguring in the same conditions
12257 --file=FILE[:TEMPLATE]
12258 instantiate the configuration file FILE
12259 --header=FILE[:TEMPLATE]
12260 instantiate the configuration header FILE
12261
12262 Configuration files:
12263 $config_files
12264
12265 Configuration headers:
12266 $config_headers
12267
12268 Report bugs to <bug-autoconf@gnu.org>."
12269
12270 _ACEOF
12271 cat >>$CONFIG_STATUS <<_ACEOF
12272 ac_cs_version="\\
12273 config.status
12274 configured by $0, generated by GNU Autoconf 2.61,
12275 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12276
12277 Copyright (C) 2006 Free Software Foundation, Inc.
12278 This config.status script is free software; the Free Software Foundation
12279 gives unlimited permission to copy, distribute and modify it."
12280
12281 ac_pwd='$ac_pwd'
12282 srcdir='$srcdir'
12283 INSTALL='$INSTALL'
12284 MKDIR_P='$MKDIR_P'
12285 _ACEOF
12286
12287 cat >>$CONFIG_STATUS <<\_ACEOF
12288 # If no file are specified by the user, then we need to provide default
12289 # value. By we need to know if files were specified by the user.
12290 ac_need_defaults=:
12291 while test $# != 0
12292 do
12293 case $1 in
12294 --*=*)
12295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12297 ac_shift=:
12298 ;;
12299 *)
12300 ac_option=$1
12301 ac_optarg=$2
12302 ac_shift=shift
12303 ;;
12304 esac
12305
12306 case $ac_option in
12307 # Handling of the options.
12308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12309 ac_cs_recheck=: ;;
12310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12311 echo "$ac_cs_version"; exit ;;
12312 --debug | --debu | --deb | --de | --d | -d )
12313 debug=: ;;
12314 --file | --fil | --fi | --f )
12315 $ac_shift
12316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12317 ac_need_defaults=false;;
12318 --header | --heade | --head | --hea )
12319 $ac_shift
12320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12321 ac_need_defaults=false;;
12322 --he | --h)
12323 # Conflict between --help and --header
12324 { echo "$as_me: error: ambiguous option: $1
12325 Try \`$0 --help' for more information." >&2
12326 { (exit 1); exit 1; }; };;
12327 --help | --hel | -h )
12328 echo "$ac_cs_usage"; exit ;;
12329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12331 ac_cs_silent=: ;;
12332
12333 # This is an error.
12334 -*) { echo "$as_me: error: unrecognized option: $1
12335 Try \`$0 --help' for more information." >&2
12336 { (exit 1); exit 1; }; } ;;
12337
12338 *) ac_config_targets="$ac_config_targets $1"
12339 ac_need_defaults=false ;;
12340
12341 esac
12342 shift
12343 done
12344
12345 ac_configure_extra_args=
12346
12347 if $ac_cs_silent; then
12348 exec 6>/dev/null
12349 ac_configure_extra_args="$ac_configure_extra_args --silent"
12350 fi
12351
12352 _ACEOF
12353 cat >>$CONFIG_STATUS <<_ACEOF
12354 if \$ac_cs_recheck; then
12355 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12356 CONFIG_SHELL=$SHELL
12357 export CONFIG_SHELL
12358 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12359 fi
12360
12361 _ACEOF
12362 cat >>$CONFIG_STATUS <<\_ACEOF
12363 exec 5>>config.log
12364 {
12365 echo
12366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12367 ## Running $as_me. ##
12368 _ASBOX
12369 echo "$ac_log"
12370 } >&5
12371
12372 _ACEOF
12373 cat >>$CONFIG_STATUS <<_ACEOF
12374 _ACEOF
12375
12376 cat >>$CONFIG_STATUS <<\_ACEOF
12377
12378 # Handling of arguments.
12379 for ac_config_target in $ac_config_targets
12380 do
12381 case $ac_config_target in
12382 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12383 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12384 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12385 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12386 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12387 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12388 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
12389 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
12390 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12391 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
12392 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12393 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12394 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12395 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12396 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12397 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12398 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12399 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
12400 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12401 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12402 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12403 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12404 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12405 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12406 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12407 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
12408
12409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12411 { (exit 1); exit 1; }; };;
12412 esac
12413 done
12414
12415
12416 # If the user did not use the arguments to specify the items to instantiate,
12417 # then the envvar interface is used. Set only those that are not.
12418 # We use the long form for the default assignment because of an extremely
12419 # bizarre bug on SunOS 4.1.3.
12420 if $ac_need_defaults; then
12421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12423 fi
12424
12425 # Have a temporary directory for convenience. Make it in the build tree
12426 # simply because there is no reason against having it here, and in addition,
12427 # creating and moving files from /tmp can sometimes cause problems.
12428 # Hook for its removal unless debugging.
12429 # Note that there is a small window in which the directory will not be cleaned:
12430 # after its creation but before its name has been assigned to `$tmp'.
12431 $debug ||
12432 {
12433 tmp=
12434 trap 'exit_status=$?
12435 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12436 ' 0
12437 trap '{ (exit 1); exit 1; }' 1 2 13 15
12438 }
12439 # Create a (secure) tmp directory for tmp files.
12440
12441 {
12442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12443 test -n "$tmp" && test -d "$tmp"
12444 } ||
12445 {
12446 tmp=./conf$$-$RANDOM
12447 (umask 077 && mkdir "$tmp")
12448 } ||
12449 {
12450 echo "$me: cannot create a temporary directory in ." >&2
12451 { (exit 1); exit 1; }
12452 }
12453
12454 #
12455 # Set up the sed scripts for CONFIG_FILES section.
12456 #
12457
12458 # No need to generate the scripts if there are no CONFIG_FILES.
12459 # This happens for instance when ./config.status config.h
12460 if test -n "$CONFIG_FILES"; then
12461
12462 _ACEOF
12463
12464
12465
12466 ac_delim='%!_!# '
12467 for ac_last_try in false false false false false :; do
12468 cat >conf$$subs.sed <<_ACEOF
12469 SHELL!$SHELL$ac_delim
12470 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12471 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12472 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12473 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12474 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12475 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12476 exec_prefix!$exec_prefix$ac_delim
12477 prefix!$prefix$ac_delim
12478 program_transform_name!$program_transform_name$ac_delim
12479 bindir!$bindir$ac_delim
12480 sbindir!$sbindir$ac_delim
12481 libexecdir!$libexecdir$ac_delim
12482 datarootdir!$datarootdir$ac_delim
12483 datadir!$datadir$ac_delim
12484 sysconfdir!$sysconfdir$ac_delim
12485 sharedstatedir!$sharedstatedir$ac_delim
12486 localstatedir!$localstatedir$ac_delim
12487 includedir!$includedir$ac_delim
12488 oldincludedir!$oldincludedir$ac_delim
12489 docdir!$docdir$ac_delim
12490 infodir!$infodir$ac_delim
12491 htmldir!$htmldir$ac_delim
12492 dvidir!$dvidir$ac_delim
12493 pdfdir!$pdfdir$ac_delim
12494 psdir!$psdir$ac_delim
12495 libdir!$libdir$ac_delim
12496 localedir!$localedir$ac_delim
12497 mandir!$mandir$ac_delim
12498 DEFS!$DEFS$ac_delim
12499 ECHO_C!$ECHO_C$ac_delim
12500 ECHO_N!$ECHO_N$ac_delim
12501 ECHO_T!$ECHO_T$ac_delim
12502 LIBS!$LIBS$ac_delim
12503 build_alias!$build_alias$ac_delim
12504 host_alias!$host_alias$ac_delim
12505 target_alias!$target_alias$ac_delim
12506 build!$build$ac_delim
12507 build_cpu!$build_cpu$ac_delim
12508 build_vendor!$build_vendor$ac_delim
12509 build_os!$build_os$ac_delim
12510 host!$host$ac_delim
12511 host_cpu!$host_cpu$ac_delim
12512 host_vendor!$host_vendor$ac_delim
12513 host_os!$host_os$ac_delim
12514 target!$target$ac_delim
12515 target_cpu!$target_cpu$ac_delim
12516 target_vendor!$target_vendor$ac_delim
12517 target_os!$target_os$ac_delim
12518 SED!$SED$ac_delim
12519 AWK!$AWK$ac_delim
12520 CC!$CC$ac_delim
12521 CFLAGS!$CFLAGS$ac_delim
12522 LDFLAGS!$LDFLAGS$ac_delim
12523 CPPFLAGS!$CPPFLAGS$ac_delim
12524 ac_ct_CC!$ac_ct_CC$ac_delim
12525 EXEEXT!$EXEEXT$ac_delim
12526 OBJEXT!$OBJEXT$ac_delim
12527 CPP!$CPP$ac_delim
12528 GREP!$GREP$ac_delim
12529 EGREP!$EGREP$ac_delim
12530 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12531 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12532 INSTALL_DATA!$INSTALL_DATA$ac_delim
12533 LN_S!$LN_S$ac_delim
12534 SET_MAKE!$SET_MAKE$ac_delim
12535 RANLIB!$RANLIB$ac_delim
12536 CFLOW_CMD!$CFLOW_CMD$ac_delim
12537 CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12538 ALLOCA!$ALLOCA$ac_delim
12539 LIBOBJS!$LIBOBJS$ac_delim
12540 POW_LIB!$POW_LIB$ac_delim
12541 LCOV!$LCOV$ac_delim
12542 GENHTML!$GENHTML$ac_delim
12543 LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12544 MSGFMT!$MSGFMT$ac_delim
12545 MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12546 BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12547 CLDFLAGS!$CLDFLAGS$ac_delim
12548 CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12549 CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12550 CLUSTER!$CLUSTER$ac_delim
12551 CLVMD!$CLVMD$ac_delim
12552 CMDLIB!$CMDLIB$ac_delim
12553 COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12554 DEBUG!$DEBUG$ac_delim
12555 DEVMAPPER!$DEVMAPPER$ac_delim
12556 DMEVENTD!$DMEVENTD$ac_delim
12557 DM_COMPAT!$DM_COMPAT$ac_delim
12558 DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12559 DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12560 DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12561 DM_IOCTLS!$DM_IOCTLS$ac_delim
12562 DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12563 FSADM!$FSADM$ac_delim
12564 GROUP!$GROUP$ac_delim
12565 HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12566 _ACEOF
12567
12568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12569 break
12570 elif $ac_last_try; then
12571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12573 { (exit 1); exit 1; }; }
12574 else
12575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12576 fi
12577 done
12578
12579 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12580 if test -n "$ac_eof"; then
12581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12582 ac_eof=`expr $ac_eof + 1`
12583 fi
12584
12585 cat >>$CONFIG_STATUS <<_ACEOF
12586 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12588 _ACEOF
12589 sed '
12590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12591 s/^/s,@/; s/!/@,|#_!!_#|/
12592 :n
12593 t n
12594 s/'"$ac_delim"'$/,g/; t
12595 s/$/\\/; p
12596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12597 ' >>$CONFIG_STATUS <conf$$subs.sed
12598 rm -f conf$$subs.sed
12599 cat >>$CONFIG_STATUS <<_ACEOF
12600 CEOF$ac_eof
12601 _ACEOF
12602
12603
12604 ac_delim='%!_!# '
12605 for ac_last_try in false false false false false :; do
12606 cat >conf$$subs.sed <<_ACEOF
12607 HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12608 HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12609 INTL!$INTL$ac_delim
12610 INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12611 JOBS!$JOBS$ac_delim
12612 LDDEPS!$LDDEPS$ac_delim
12613 LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12614 LOCALEDIR!$LOCALEDIR$ac_delim
12615 LVM1!$LVM1$ac_delim
12616 LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12617 CONFDIR!$CONFDIR$ac_delim
12618 LVM_VERSION!$LVM_VERSION$ac_delim
12619 MIRRORS!$MIRRORS$ac_delim
12620 OWNER!$OWNER$ac_delim
12621 PKGCONFIG!$PKGCONFIG$ac_delim
12622 POOL!$POOL$ac_delim
12623 SNAPSHOTS!$SNAPSHOTS$ac_delim
12624 STATICDIR!$STATICDIR$ac_delim
12625 STATIC_LINK!$STATIC_LINK$ac_delim
12626 LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12627 interface!$interface$ac_delim
12628 kerneldir!$kerneldir$ac_delim
12629 missingkernel!$missingkernel$ac_delim
12630 kernelvsn!$kernelvsn$ac_delim
12631 tmpdir!$tmpdir$ac_delim
12632 usrlibdir!$usrlibdir$ac_delim
12633 usrsbindir!$usrsbindir$ac_delim
12634 LTLIBOBJS!$LTLIBOBJS$ac_delim
12635 _ACEOF
12636
12637 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
12638 break
12639 elif $ac_last_try; then
12640 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12641 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12642 { (exit 1); exit 1; }; }
12643 else
12644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12645 fi
12646 done
12647
12648 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12649 if test -n "$ac_eof"; then
12650 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12651 ac_eof=`expr $ac_eof + 1`
12652 fi
12653
12654 cat >>$CONFIG_STATUS <<_ACEOF
12655 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12657 _ACEOF
12658 sed '
12659 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12660 s/^/s,@/; s/!/@,|#_!!_#|/
12661 :n
12662 t n
12663 s/'"$ac_delim"'$/,g/; t
12664 s/$/\\/; p
12665 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12666 ' >>$CONFIG_STATUS <conf$$subs.sed
12667 rm -f conf$$subs.sed
12668 cat >>$CONFIG_STATUS <<_ACEOF
12669 :end
12670 s/|#_!!_#|//g
12671 CEOF$ac_eof
12672 _ACEOF
12673
12674
12675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12677 # trailing colons and then remove the whole line if VPATH becomes empty
12678 # (actually we leave an empty line to preserve line numbers).
12679 if test "x$srcdir" = x.; then
12680 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12681 s/:*\$(srcdir):*/:/
12682 s/:*\${srcdir}:*/:/
12683 s/:*@srcdir@:*/:/
12684 s/^\([^=]*=[ ]*\):*/\1/
12685 s/:*$//
12686 s/^[^=]*=[ ]*$//
12687 }'
12688 fi
12689
12690 cat >>$CONFIG_STATUS <<\_ACEOF
12691 fi # test -n "$CONFIG_FILES"
12692
12693
12694 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12695 do
12696 case $ac_tag in
12697 :[FHLC]) ac_mode=$ac_tag; continue;;
12698 esac
12699 case $ac_mode$ac_tag in
12700 :[FHL]*:*);;
12701 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12702 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12703 { (exit 1); exit 1; }; };;
12704 :[FH]-) ac_tag=-:-;;
12705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12706 esac
12707 ac_save_IFS=$IFS
12708 IFS=:
12709 set x $ac_tag
12710 IFS=$ac_save_IFS
12711 shift
12712 ac_file=$1
12713 shift
12714
12715 case $ac_mode in
12716 :L) ac_source=$1;;
12717 :[FH])
12718 ac_file_inputs=
12719 for ac_f
12720 do
12721 case $ac_f in
12722 -) ac_f="$tmp/stdin";;
12723 *) # Look for the file first in the build tree, then in the source tree
12724 # (if the path is not absolute). The absolute path cannot be DOS-style,
12725 # because $ac_f cannot contain `:'.
12726 test -f "$ac_f" ||
12727 case $ac_f in
12728 [\\/$]*) false;;
12729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12730 esac ||
12731 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12732 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12733 { (exit 1); exit 1; }; };;
12734 esac
12735 ac_file_inputs="$ac_file_inputs $ac_f"
12736 done
12737
12738 # Let's still pretend it is `configure' which instantiates (i.e., don't
12739 # use $as_me), people would be surprised to read:
12740 # /* config.h. Generated by config.status. */
12741 configure_input="Generated from "`IFS=:
12742 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12743 if test x"$ac_file" != x-; then
12744 configure_input="$ac_file. $configure_input"
12745 { echo "$as_me:$LINENO: creating $ac_file" >&5
12746 echo "$as_me: creating $ac_file" >&6;}
12747 fi
12748
12749 case $ac_tag in
12750 *:-:* | *:-) cat >"$tmp/stdin";;
12751 esac
12752 ;;
12753 esac
12754
12755 ac_dir=`$as_dirname -- "$ac_file" ||
12756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12757 X"$ac_file" : 'X\(//\)[^/]' \| \
12758 X"$ac_file" : 'X\(//\)$' \| \
12759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12760 echo X"$ac_file" |
12761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12762 s//\1/
12763 q
12764 }
12765 /^X\(\/\/\)[^/].*/{
12766 s//\1/
12767 q
12768 }
12769 /^X\(\/\/\)$/{
12770 s//\1/
12771 q
12772 }
12773 /^X\(\/\).*/{
12774 s//\1/
12775 q
12776 }
12777 s/.*/./; q'`
12778 { as_dir="$ac_dir"
12779 case $as_dir in #(
12780 -*) as_dir=./$as_dir;;
12781 esac
12782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12783 as_dirs=
12784 while :; do
12785 case $as_dir in #(
12786 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12787 *) as_qdir=$as_dir;;
12788 esac
12789 as_dirs="'$as_qdir' $as_dirs"
12790 as_dir=`$as_dirname -- "$as_dir" ||
12791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12792 X"$as_dir" : 'X\(//\)[^/]' \| \
12793 X"$as_dir" : 'X\(//\)$' \| \
12794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12795 echo X"$as_dir" |
12796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12797 s//\1/
12798 q
12799 }
12800 /^X\(\/\/\)[^/].*/{
12801 s//\1/
12802 q
12803 }
12804 /^X\(\/\/\)$/{
12805 s//\1/
12806 q
12807 }
12808 /^X\(\/\).*/{
12809 s//\1/
12810 q
12811 }
12812 s/.*/./; q'`
12813 test -d "$as_dir" && break
12814 done
12815 test -z "$as_dirs" || eval "mkdir $as_dirs"
12816 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12817 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12818 { (exit 1); exit 1; }; }; }
12819 ac_builddir=.
12820
12821 case "$ac_dir" in
12822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12823 *)
12824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12825 # A ".." for each directory in $ac_dir_suffix.
12826 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12827 case $ac_top_builddir_sub in
12828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12830 esac ;;
12831 esac
12832 ac_abs_top_builddir=$ac_pwd
12833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12834 # for backward compatibility:
12835 ac_top_builddir=$ac_top_build_prefix
12836
12837 case $srcdir in
12838 .) # We are building in place.
12839 ac_srcdir=.
12840 ac_top_srcdir=$ac_top_builddir_sub
12841 ac_abs_top_srcdir=$ac_pwd ;;
12842 [\\/]* | ?:[\\/]* ) # Absolute name.
12843 ac_srcdir=$srcdir$ac_dir_suffix;
12844 ac_top_srcdir=$srcdir
12845 ac_abs_top_srcdir=$srcdir ;;
12846 *) # Relative name.
12847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12848 ac_top_srcdir=$ac_top_build_prefix$srcdir
12849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12850 esac
12851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12852
12853
12854 case $ac_mode in
12855 :F)
12856 #
12857 # CONFIG_FILE
12858 #
12859
12860 case $INSTALL in
12861 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12862 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12863 esac
12864 ac_MKDIR_P=$MKDIR_P
12865 case $MKDIR_P in
12866 [\\/$]* | ?:[\\/]* ) ;;
12867 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12868 esac
12869 _ACEOF
12870
12871 cat >>$CONFIG_STATUS <<\_ACEOF
12872 # If the template does not know about datarootdir, expand it.
12873 # FIXME: This hack should be removed a few years after 2.60.
12874 ac_datarootdir_hack=; ac_datarootdir_seen=
12875
12876 case `sed -n '/datarootdir/ {
12877 p
12878 q
12879 }
12880 /@datadir@/p
12881 /@docdir@/p
12882 /@infodir@/p
12883 /@localedir@/p
12884 /@mandir@/p
12885 ' $ac_file_inputs` in
12886 *datarootdir*) ac_datarootdir_seen=yes;;
12887 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12888 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12889 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12890 _ACEOF
12891 cat >>$CONFIG_STATUS <<_ACEOF
12892 ac_datarootdir_hack='
12893 s&@datadir@&$datadir&g
12894 s&@docdir@&$docdir&g
12895 s&@infodir@&$infodir&g
12896 s&@localedir@&$localedir&g
12897 s&@mandir@&$mandir&g
12898 s&\\\${datarootdir}&$datarootdir&g' ;;
12899 esac
12900 _ACEOF
12901
12902 # Neutralize VPATH when `$srcdir' = `.'.
12903 # Shell code in configure.ac might set extrasub.
12904 # FIXME: do we really want to maintain this feature?
12905 cat >>$CONFIG_STATUS <<_ACEOF
12906 sed "$ac_vpsub
12907 $extrasub
12908 _ACEOF
12909 cat >>$CONFIG_STATUS <<\_ACEOF
12910 :t
12911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12912 s&@configure_input@&$configure_input&;t t
12913 s&@top_builddir@&$ac_top_builddir_sub&;t t
12914 s&@srcdir@&$ac_srcdir&;t t
12915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12916 s&@top_srcdir@&$ac_top_srcdir&;t t
12917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12918 s&@builddir@&$ac_builddir&;t t
12919 s&@abs_builddir@&$ac_abs_builddir&;t t
12920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12921 s&@INSTALL@&$ac_INSTALL&;t t
12922 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12923 $ac_datarootdir_hack
12924 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12925
12926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12927 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12929 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12930 which seems to be undefined. Please make sure it is defined." >&5
12931 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12932 which seems to be undefined. Please make sure it is defined." >&2;}
12933
12934 rm -f "$tmp/stdin"
12935 case $ac_file in
12936 -) cat "$tmp/out"; rm -f "$tmp/out";;
12937 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12938 esac
12939 ;;
12940 :H)
12941 #
12942 # CONFIG_HEADER
12943 #
12944 _ACEOF
12945
12946 # Transform confdefs.h into a sed script `conftest.defines', that
12947 # substitutes the proper values into config.h.in to produce config.h.
12948 rm -f conftest.defines conftest.tail
12949 # First, append a space to every undef/define line, to ease matching.
12950 echo 's/$/ /' >conftest.defines
12951 # Then, protect against being on the right side of a sed subst, or in
12952 # an unquoted here document, in config.status. If some macros were
12953 # called several times there might be several #defines for the same
12954 # symbol, which is useless. But do not sort them, since the last
12955 # AC_DEFINE must be honored.
12956 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12957 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12958 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12959 # PARAMS is the parameter list in the macro definition--in most cases, it's
12960 # just an empty string.
12961 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12962 ac_dB='\\)[ (].*,\\1define\\2'
12963 ac_dC=' '
12964 ac_dD=' ,'
12965
12966 uniq confdefs.h |
12967 sed -n '
12968 t rset
12969 :rset
12970 s/^[ ]*#[ ]*define[ ][ ]*//
12971 t ok
12972 d
12973 :ok
12974 s/[\\&,]/\\&/g
12975 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12976 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12977 ' >>conftest.defines
12978
12979 # Remove the space that was appended to ease matching.
12980 # Then replace #undef with comments. This is necessary, for
12981 # example, in the case of _POSIX_SOURCE, which is predefined and required
12982 # on some systems where configure will not decide to define it.
12983 # (The regexp can be short, since the line contains either #define or #undef.)
12984 echo 's/ $//
12985 s,^[ #]*u.*,/* & */,' >>conftest.defines
12986
12987 # Break up conftest.defines:
12988 ac_max_sed_lines=50
12989
12990 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12991 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12992 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12993 # et cetera.
12994 ac_in='$ac_file_inputs'
12995 ac_out='"$tmp/out1"'
12996 ac_nxt='"$tmp/out2"'
12997
12998 while :
12999 do
13000 # Write a here document:
13001 cat >>$CONFIG_STATUS <<_ACEOF
13002 # First, check the format of the line:
13003 cat >"\$tmp/defines.sed" <<\\CEOF
13004 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13005 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13006 b
13007 :def
13008 _ACEOF
13009 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13010 echo 'CEOF
13011 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13012 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13013 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13014 grep . conftest.tail >/dev/null || break
13015 rm -f conftest.defines
13016 mv conftest.tail conftest.defines
13017 done
13018 rm -f conftest.defines conftest.tail
13019
13020 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13021 cat >>$CONFIG_STATUS <<\_ACEOF
13022 if test x"$ac_file" != x-; then
13023 echo "/* $configure_input */" >"$tmp/config.h"
13024 cat "$ac_result" >>"$tmp/config.h"
13025 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13026 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13027 echo "$as_me: $ac_file is unchanged" >&6;}
13028 else
13029 rm -f $ac_file
13030 mv "$tmp/config.h" $ac_file
13031 fi
13032 else
13033 echo "/* $configure_input */"
13034 cat "$ac_result"
13035 fi
13036 rm -f "$tmp/out12"
13037 ;;
13038
13039
13040 esac
13041
13042 done # for ac_tag
13043
13044
13045 { (exit 0); exit 0; }
13046 _ACEOF
13047 chmod +x $CONFIG_STATUS
13048 ac_clean_files=$ac_clean_files_save
13049
13050
13051 # configure is writing to config.log, and then calls config.status.
13052 # config.status does its own redirection, appending to config.log.
13053 # Unfortunately, on DOS this fails, as config.log is still kept open
13054 # by configure, so config.status won't be able to write to it; its
13055 # output is simply discarded. So we exec the FD to /dev/null,
13056 # effectively closing config.log, so it can be properly (re)opened and
13057 # appended to by config.status. When coming back to configure, we
13058 # need to make the FD available again.
13059 if test "$no_create" != yes; then
13060 ac_cs_success=:
13061 ac_config_status_args=
13062 test "$silent" = yes &&
13063 ac_config_status_args="$ac_config_status_args --quiet"
13064 exec 5>/dev/null
13065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13066 exec 5>>config.log
13067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13068 # would make configure fail if this is the last instruction.
13069 $ac_cs_success || { (exit 1); exit 1; }
13070 fi
13071
13072
13073 if test x$ODIRECT != xyes; then
13074 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13075 echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
13076 fi
This page took 0.70848 seconds and 6 git commands to generate.