]> sourceware.org Git - lvm2.git/blob - configure
Move tools/version.h to lib/misc/lvm-version.h.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 tmpdir
643 kernelvsn
644 missingkernel
645 kerneldir
646 interface
647 LIB_PTHREAD
648 STATIC_LINK
649 STATICDIR
650 SNAPSHOTS
651 POOL
652 PKGCONFIG
653 OWNER
654 MIRRORS
655 LVM_RELEASE_DATE
656 LVM_RELEASE
657 LVM_PATCHLEVEL
658 LVM_MINOR
659 LVM_MAJOR
660 LVM_VERSION
661 CONFDIR
662 LVM1_FALLBACK
663 LVM1
664 LOCALEDIR
665 LIB_SUFFIX
666 LDDEPS
667 JOBS
668 INTL_PACKAGE
669 INTL
670 HAVE_SELINUX
671 HAVE_REALTIME
672 HAVE_LIBDL
673 GROUP
674 FSADM
675 DM_LIB_PATCHLEVEL
676 DM_LIB_VERSION
677 DM_IOCTLS
678 DM_DEVICE_UID
679 DM_DEVICE_MODE
680 DM_DEVICE_GID
681 DM_COMPAT
682 DMEVENTD
683 DEVMAPPER
684 DEBUG
685 COPTIMISE_FLAG
686 CMDLIB
687 CLVMD
688 CLUSTER
689 CLDWHOLEARCHIVE
690 CLDNOWHOLEARCHIVE
691 CLDFLAGS
692 BUILD_DMEVENTD
693 MODPROBE_CMD
694 MSGFMT
695 LVM2CMD_LIB
696 GENHTML
697 LCOV
698 POW_LIB
699 LIBOBJS
700 ALLOCA
701 CSCOPE_CMD
702 CFLOW_CMD
703 RANLIB
704 MKDIR_P
705 SET_MAKE
706 LN_S
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 EGREP
711 GREP
712 CPP
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 AWK
721 SED
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_static_link
775 with_user
776 with_group
777 with_device_uid
778 with_device_gid
779 with_device_mode
780 enable_lvm1_fallback
781 with_lvm1
782 with_pool
783 with_cluster
784 with_snapshots
785 with_mirrors
786 enable_readline
787 enable_realtime
788 with_clvmd
789 enable_debug
790 with_optimisation
791 enable_profiling
792 enable_devmapper
793 enable_compat
794 enable_ioctl
795 enable_o_direct
796 enable_cmdlib
797 enable_pkgconfig
798 enable_fsadm
799 enable_dmeventd
800 enable_selinux
801 enable_nls
802 with_localedir
803 with_confdir
804 with_staticdir
805 with_usrlibdir
806 with_usrsbindir
807 with_dmeventd_pidfile
808 with_dmeventd_path
809 with_interface
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
929 { (exit 1); exit 1; }; }
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
956 { (exit 1); exit 1; }; }
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1172
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
1189
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1193
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1200
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1207
1208 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1209 Try \`$0 --help' for more information." >&2
1210 { (exit 1); exit 1; }; }
1211 ;;
1212
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1217 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1218 { (exit 1); exit 1; }; }
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1221
1222 *)
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 ;;
1229
1230 esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1236 { (exit 1); exit 1; }; }
1237 fi
1238
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1243 { (exit 1); exit 1; }; } ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246 fi
1247
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1253 do
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437
1438 cat <<\_ACEOF
1439
1440 Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-static_link Use this to link the tools to their libraries
1445 statically. Default is dynamic linking
1446 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1447 device-mapper is missing from the kernel
1448 --disable-readline Disable readline support
1449 --disable-realtime Disable realtime clock support
1450 --enable-debug Enable debugging
1451 --enable-profiling Gather gcov profiling data
1452 --disable-devmapper Disable LVM2 device-mapper interaction
1453 --enable-compat Enable support for old device-mapper versions
1454 --disable-driver Disable calls to device-mapper in the kernel
1455 --disable-o_direct Disable O_DIRECT
1456 --enable-cmdlib Build shared command library
1457 --enable-pkgconfig Install pkgconfig support
1458 --enable-fsadm Enable fsadm
1459 --enable-dmeventd Enable the device-mapper event daemon
1460 --disable-selinux Disable selinux support
1461 --enable-nls Enable Native Language Support
1462
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-user=USER Set the owner of installed files [USER=root]
1467 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1468 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1469 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1470 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1471 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1472 TYPE=internal
1473 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1474 TYPE=internal
1475 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1476 TYPE=internal
1477 --with-snapshots=TYPE Snapshot support: internal/shared/none
1478 TYPE=internal
1479 --with-mirrors=TYPE Mirror support: internal/shared/none
1480 TYPE=internal
1481 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
1482 TYPE=none
1483 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1484 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1485 --with-confdir=DIR Configuration files in DIR /etc
1486 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1487 --with-usrlibdir=DIR
1488 --with-usrsbindir=DIR
1489 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1490 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1491 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 configure
1569 generated by GNU Autoconf 2.63
1570
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1581
1582 It was created by $as_me, which was
1583 generated by GNU Autoconf 2.63. Invocation command line was
1584
1585 $ $0 $@
1586
1587 _ACEOF
1588 exec 5>>config.log
1589 {
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1594
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611
1612 _ASUNAME
1613
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 $as_echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1622
1623 } >&5
1624
1625 cat >&5 <<_ACEOF
1626
1627
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1631
1632 _ACEOF
1633
1634
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1645 do
1646 for ac_arg
1647 do
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
1653 *\'*)
1654 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 2)
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1662 else
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1671 ;;
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1674 fi
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 ;;
1677 esac
1678 done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1690 {
1691 echo
1692
1693 cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
1700 (
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
1716 (set) 2>&1 |
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1719 sed -n \
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
1723 *)
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ;;
1726 esac |
1727 sort
1728 )
1729 echo
1730
1731 cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 $as_echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1746
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 $as_echo "$ac_var='\''$ac_val'\''"
1761 done | sort
1762 echo
1763 fi
1764
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771 echo
1772 cat confdefs.h
1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
1776 $as_echo "$as_me: caught signal $ac_signal"
1777 $as_echo "$as_me: exit $exit_status"
1778 } >&5
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781 exit $exit_status
1782 ' 0
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1787
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1790
1791 # Predefined preprocessor variables.
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1816
1817
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer an explicitly selected file to automatically selected ones.
1820 ac_site_file1=NONE
1821 ac_site_file2=NONE
1822 if test -n "$CONFIG_SITE"; then
1823 ac_site_file1=$CONFIG_SITE
1824 elif test "x$prefix" != xNONE; then
1825 ac_site_file1=$prefix/share/config.site
1826 ac_site_file2=$prefix/etc/config.site
1827 else
1828 ac_site_file1=$ac_default_prefix/share/config.site
1829 ac_site_file2=$ac_default_prefix/etc/config.site
1830 fi
1831 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1832 do
1833 test "x$ac_site_file" = xNONE && continue
1834 if test -r "$ac_site_file"; then
1835 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1838 . "$ac_site_file"
1839 fi
1840 done
1841
1842 if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 $as_echo "$as_me: loading cache $cache_file" >&6;}
1848 case $cache_file in
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
1851 esac
1852 fi
1853 else
1854 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 $as_echo "$as_me: creating cache $cache_file" >&6;}
1856 >$cache_file
1857 fi
1858
1859 # Check that the precious variables saved in the cache have kept the same
1860 # value.
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
1867 case $ac_old_set,$ac_new_set in
1868 set,)
1869 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,set)
1873 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,);;
1877 *)
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 # differences in whitespace do not lead to failure.
1880 ac_old_val_w=`echo x $ac_old_val`
1881 ac_new_val_w=`echo x $ac_new_val`
1882 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1883 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 ac_cache_corrupted=:
1886 else
1887 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1888 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1889 eval $ac_var=\$ac_old_val
1890 fi
1891 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1892 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1893 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1894 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1895 fi;;
1896 esac
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1899 case $ac_new_val in
1900 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1902 esac
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 esac
1907 fi
1908 done
1909 if $ac_cache_corrupted; then
1910 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1917 fi
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942
1943 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1944
1945
1946 ################################################################################
1947 ac_aux_dir=
1948 for ac_dir in autoconf "$srcdir"/autoconf; do
1949 if test -f "$ac_dir/install-sh"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install-sh -c"
1952 break
1953 elif test -f "$ac_dir/install.sh"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/install.sh -c"
1956 break
1957 elif test -f "$ac_dir/shtool"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 break
1961 fi
1962 done
1963 if test -z "$ac_aux_dir"; then
1964 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1965 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1966 { (exit 1); exit 1; }; }
1967 fi
1968
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976
1977
1978
1979 ################################################################################
1980 # Make sure we can run config.sub.
1981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1982 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1983 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1984 { (exit 1); exit 1; }; }
1985
1986 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1987 $as_echo_n "checking build system type... " >&6; }
1988 if test "${ac_cv_build+set}" = set; then
1989 $as_echo_n "(cached) " >&6
1990 else
1991 ac_build_alias=$build_alias
1992 test "x$ac_build_alias" = x &&
1993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1994 test "x$ac_build_alias" = x &&
1995 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1996 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1997 { (exit 1); exit 1; }; }
1998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1999 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2000 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2001 { (exit 1); exit 1; }; }
2002
2003 fi
2004 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2005 $as_echo "$ac_cv_build" >&6; }
2006 case $ac_cv_build in
2007 *-*-*) ;;
2008 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2009 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2010 { (exit 1); exit 1; }; };;
2011 esac
2012 build=$ac_cv_build
2013 ac_save_IFS=$IFS; IFS='-'
2014 set x $ac_cv_build
2015 shift
2016 build_cpu=$1
2017 build_vendor=$2
2018 shift; shift
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2021 build_os=$*
2022 IFS=$ac_save_IFS
2023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2024
2025
2026 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2027 $as_echo_n "checking host system type... " >&6; }
2028 if test "${ac_cv_host+set}" = set; then
2029 $as_echo_n "(cached) " >&6
2030 else
2031 if test "x$host_alias" = x; then
2032 ac_cv_host=$ac_cv_build
2033 else
2034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2035 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2036 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2038 fi
2039
2040 fi
2041 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2042 $as_echo "$ac_cv_host" >&6; }
2043 case $ac_cv_host in
2044 *-*-*) ;;
2045 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2046 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2047 { (exit 1); exit 1; }; };;
2048 esac
2049 host=$ac_cv_host
2050 ac_save_IFS=$IFS; IFS='-'
2051 set x $ac_cv_host
2052 shift
2053 host_cpu=$1
2054 host_vendor=$2
2055 shift; shift
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2058 host_os=$*
2059 IFS=$ac_save_IFS
2060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2061
2062
2063 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2064 $as_echo_n "checking target system type... " >&6; }
2065 if test "${ac_cv_target+set}" = set; then
2066 $as_echo_n "(cached) " >&6
2067 else
2068 if test "x$target_alias" = x; then
2069 ac_cv_target=$ac_cv_host
2070 else
2071 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2072 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2073 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2075 fi
2076
2077 fi
2078 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2079 $as_echo "$ac_cv_target" >&6; }
2080 case $ac_cv_target in
2081 *-*-*) ;;
2082 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2083 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2084 { (exit 1); exit 1; }; };;
2085 esac
2086 target=$ac_cv_target
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_target
2089 shift
2090 target_cpu=$1
2091 target_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 target_os=$*
2096 IFS=$ac_save_IFS
2097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 # The aliases save the names the user supplied, while $host etc.
2101 # will get canonicalized.
2102 test -n "$target_alias" &&
2103 test "$program_prefix$program_suffix$program_transform_name" = \
2104 NONENONEs,x,x, &&
2105 program_prefix=${target_alias}-
2106
2107 case "$host_os" in
2108 linux*)
2109 COPTIMISE_FLAG="-O2"
2110 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2111 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2112 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2113 LDDEPS="$LDDEPS .export.sym"
2114 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2115 LIB_SUFFIX=so
2116 DEVMAPPER=yes
2117 ODIRECT=yes
2118 DM_IOCTLS=yes
2119 SELINUX=yes
2120 REALTIME=yes
2121 CLUSTER=internal
2122 FSADM=yes
2123 ;;
2124 darwin*)
2125 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2126 COPTIMISE_FLAG="-O2"
2127 CLDFLAGS="$CLDFLAGS"
2128 CLDWHOLEARCHIVE="-all_load"
2129 CLDNOWHOLEARCHIVE=
2130 LIB_SUFFIX=dylib
2131 DEVMAPPER=yes
2132 ODIRECT=no
2133 DM_IOCTLS=no
2134 SELINUX=no
2135 REALTIME=no
2136 CLUSTER=none
2137 FSADM=no
2138 ;;
2139 esac
2140
2141 ################################################################################
2142 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2143 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2144 if test "${ac_cv_path_SED+set}" = set; then
2145 $as_echo_n "(cached) " >&6
2146 else
2147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2148 for ac_i in 1 2 3 4 5 6 7; do
2149 ac_script="$ac_script$as_nl$ac_script"
2150 done
2151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2152 $as_unset ac_script || ac_script=
2153 if test -z "$SED"; then
2154 ac_path_SED_found=false
2155 # Loop through the user's path and test for each of PROGNAME-LIST
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_prog in sed gsed; do
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2164 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2165 # Check for GNU ac_path_SED and select it if it is found.
2166 # Check for GNU $ac_path_SED
2167 case `"$ac_path_SED" --version 2>&1` in
2168 *GNU*)
2169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2170 *)
2171 ac_count=0
2172 $as_echo_n 0123456789 >"conftest.in"
2173 while :
2174 do
2175 cat "conftest.in" "conftest.in" >"conftest.tmp"
2176 mv "conftest.tmp" "conftest.in"
2177 cp "conftest.in" "conftest.nl"
2178 $as_echo '' >> "conftest.nl"
2179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2181 ac_count=`expr $ac_count + 1`
2182 if test $ac_count -gt ${ac_path_SED_max-0}; then
2183 # Best one so far, save it but keep looking for a better one
2184 ac_cv_path_SED="$ac_path_SED"
2185 ac_path_SED_max=$ac_count
2186 fi
2187 # 10*(2^10) chars as input seems more than enough
2188 test $ac_count -gt 10 && break
2189 done
2190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2191 esac
2192
2193 $ac_path_SED_found && break 3
2194 done
2195 done
2196 done
2197 IFS=$as_save_IFS
2198 if test -z "$ac_cv_path_SED"; then
2199 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2200 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2201 { (exit 1); exit 1; }; }
2202 fi
2203 else
2204 ac_cv_path_SED=$SED
2205 fi
2206
2207 fi
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2209 $as_echo "$ac_cv_path_SED" >&6; }
2210 SED="$ac_cv_path_SED"
2211 rm -f conftest.sed
2212
2213 for ac_prog in gawk mawk nawk awk
2214 do
2215 # Extract the first word of "$ac_prog", so it can be a program name with args.
2216 set dummy $ac_prog; ac_word=$2
2217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if test "${ac_cv_prog_AWK+set}" = set; then
2220 $as_echo_n "(cached) " >&6
2221 else
2222 if test -n "$AWK"; then
2223 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 ac_cv_prog_AWK="$ac_prog"
2233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238 IFS=$as_save_IFS
2239
2240 fi
2241 fi
2242 AWK=$ac_cv_prog_AWK
2243 if test -n "$AWK"; then
2244 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2245 $as_echo "$AWK" >&6; }
2246 else
2247 { $as_echo "$as_me:$LINENO: result: no" >&5
2248 $as_echo "no" >&6; }
2249 fi
2250
2251
2252 test -n "$AWK" && break
2253 done
2254
2255 ac_ext=c
2256 ac_cpp='$CPP $CPPFLAGS'
2257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 $as_echo_n "checking for $ac_word... " >&6; }
2265 if test "${ac_cv_prog_CC+set}" = set; then
2266 $as_echo_n "(cached) " >&6
2267 else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282 done
2283 done
2284 IFS=$as_save_IFS
2285
2286 fi
2287 fi
2288 CC=$ac_cv_prog_CC
2289 if test -n "$CC"; then
2290 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2291 $as_echo "$CC" >&6; }
2292 else
2293 { $as_echo "$as_me:$LINENO: result: no" >&5
2294 $as_echo "no" >&6; }
2295 fi
2296
2297
2298 fi
2299 if test -z "$ac_cv_prog_CC"; then
2300 ac_ct_CC=$CC
2301 # Extract the first word of "gcc", so it can be a program name with args.
2302 set dummy gcc; ac_word=$2
2303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 $as_echo_n "checking for $ac_word... " >&6; }
2305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2306 $as_echo_n "(cached) " >&6
2307 else
2308 if test -n "$ac_ct_CC"; then
2309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_ac_ct_CC="gcc"
2319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 break 2
2321 fi
2322 done
2323 done
2324 IFS=$as_save_IFS
2325
2326 fi
2327 fi
2328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329 if test -n "$ac_ct_CC"; then
2330 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331 $as_echo "$ac_ct_CC" >&6; }
2332 else
2333 { $as_echo "$as_me:$LINENO: result: no" >&5
2334 $as_echo "no" >&6; }
2335 fi
2336
2337 if test "x$ac_ct_CC" = x; then
2338 CC=""
2339 else
2340 case $cross_compiling:$ac_tool_warned in
2341 yes:)
2342 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2344 ac_tool_warned=yes ;;
2345 esac
2346 CC=$ac_ct_CC
2347 fi
2348 else
2349 CC="$ac_cv_prog_CC"
2350 fi
2351
2352 if test -z "$CC"; then
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}cc; ac_word=$2
2356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 $as_echo_n "checking for $ac_word... " >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359 $as_echo_n "(cached) " >&6
2360 else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_CC="${ac_tool_prefix}cc"
2372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2384 $as_echo "$CC" >&6; }
2385 else
2386 { $as_echo "$as_me:$LINENO: result: no" >&5
2387 $as_echo "no" >&6; }
2388 fi
2389
2390
2391 fi
2392 fi
2393 if test -z "$CC"; then
2394 # Extract the first word of "cc", so it can be a program name with args.
2395 set dummy cc; ac_word=$2
2396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if test "${ac_cv_prog_CC+set}" = set; then
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 else
2404 ac_prog_rejected=no
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2413 ac_prog_rejected=yes
2414 continue
2415 fi
2416 ac_cv_prog_CC="cc"
2417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 if test $ac_prog_rejected = yes; then
2425 # We found a bogon in the path, so make sure we never use it.
2426 set dummy $ac_cv_prog_CC
2427 shift
2428 if test $# != 0; then
2429 # We chose a different compiler from the bogus one.
2430 # However, it has the same basename, so the bogon will be chosen
2431 # first if we set CC to just the basename; use the full file name.
2432 shift
2433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2434 fi
2435 fi
2436 fi
2437 fi
2438 CC=$ac_cv_prog_CC
2439 if test -n "$CC"; then
2440 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2441 $as_echo "$CC" >&6; }
2442 else
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448 fi
2449 if test -z "$CC"; then
2450 if test -n "$ac_tool_prefix"; then
2451 for ac_prog in cl.exe
2452 do
2453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2483 $as_echo "$CC" >&6; }
2484 else
2485 { $as_echo "$as_me:$LINENO: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489
2490 test -n "$CC" && break
2491 done
2492 fi
2493 if test -z "$CC"; then
2494 ac_ct_CC=$CC
2495 for ac_prog in cl.exe
2496 do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_CC="$ac_prog"
2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525 if test -n "$ac_ct_CC"; then
2526 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527 $as_echo "$ac_ct_CC" >&6; }
2528 else
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 test -n "$ac_ct_CC" && break
2535 done
2536
2537 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541 yes:)
2542 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2544 ac_tool_warned=yes ;;
2545 esac
2546 CC=$ac_ct_CC
2547 fi
2548 fi
2549
2550 fi
2551
2552
2553 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2556 See \`config.log' for more details." >&5
2557 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2558 See \`config.log' for more details." >&2;}
2559 { (exit 1); exit 1; }; }; }
2560
2561 # Provide some information about the compiler.
2562 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2563 set X $ac_compile
2564 ac_compiler=$2
2565 { (ac_try="$ac_compiler --version >&5"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571 $as_echo "$ac_try_echo") >&5
2572 (eval "$ac_compiler --version >&5") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2576 { (ac_try="$ac_compiler -v >&5"
2577 case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2582 $as_echo "$ac_try_echo") >&5
2583 (eval "$ac_compiler -v >&5") 2>&5
2584 ac_status=$?
2585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587 { (ac_try="$ac_compiler -V >&5"
2588 case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591 esac
2592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2593 $as_echo "$ac_try_echo") >&5
2594 (eval "$ac_compiler -V >&5") 2>&5
2595 ac_status=$?
2596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }
2598
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2605
2606 int
2607 main ()
2608 {
2609
2610 ;
2611 return 0;
2612 }
2613 _ACEOF
2614 ac_clean_files_save=$ac_clean_files
2615 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2616 # Try to create an executable without -o first, disregard a.out.
2617 # It will help us diagnose broken compilers, and finding out an intuition
2618 # of exeext.
2619 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2620 $as_echo_n "checking for C compiler default output file name... " >&6; }
2621 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2622
2623 # The possible output files:
2624 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2625
2626 ac_rmfiles=
2627 for ac_file in $ac_files
2628 do
2629 case $ac_file in
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2631 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2632 esac
2633 done
2634 rm -f $ac_rmfiles
2635
2636 if { (ac_try="$ac_link_default"
2637 case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642 $as_echo "$ac_try_echo") >&5
2643 (eval "$ac_link_default") 2>&5
2644 ac_status=$?
2645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2648 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2649 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2650 # so that the user can short-circuit this test for compilers unknown to
2651 # Autoconf.
2652 for ac_file in $ac_files ''
2653 do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2657 ;;
2658 [ab].out )
2659 # We found the default executable, but exeext='' is most
2660 # certainly right.
2661 break;;
2662 *.* )
2663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2664 then :; else
2665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2666 fi
2667 # We set ac_cv_exeext here because the later test for it is not
2668 # safe: cross compilers may not add the suffix if given an `-o'
2669 # argument, so we may need to know it at that point already.
2670 # Even if this section looks crufty: it has the advantage of
2671 # actually working.
2672 break;;
2673 * )
2674 break;;
2675 esac
2676 done
2677 test "$ac_cv_exeext" = no && ac_cv_exeext=
2678
2679 else
2680 ac_file=''
2681 fi
2682
2683 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2684 $as_echo "$ac_file" >&6; }
2685 if test -z "$ac_file"; then
2686 $as_echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2692 See \`config.log' for more details." >&5
2693 $as_echo "$as_me: error: C compiler cannot create executables
2694 See \`config.log' for more details." >&2;}
2695 { (exit 77); exit 77; }; }; }
2696 fi
2697
2698 ac_exeext=$ac_cv_exeext
2699
2700 # Check that the compiler produces executables we can run. If not, either
2701 # the compiler is broken, or we cross compile.
2702 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2703 $as_echo_n "checking whether the C compiler works... " >&6; }
2704 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2705 # If not cross compiling, check that we can run a simple program.
2706 if test "$cross_compiling" != yes; then
2707 if { ac_try='./$ac_file'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2713 $as_echo "$ac_try_echo") >&5
2714 (eval "$ac_try") 2>&5
2715 ac_status=$?
2716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 cross_compiling=no
2719 else
2720 if test "$cross_compiling" = maybe; then
2721 cross_compiling=yes
2722 else
2723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2726 If you meant to cross compile, use \`--host'.
2727 See \`config.log' for more details." >&5
2728 $as_echo "$as_me: error: cannot run C compiled programs.
2729 If you meant to cross compile, use \`--host'.
2730 See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }; }
2732 fi
2733 fi
2734 fi
2735 { $as_echo "$as_me:$LINENO: result: yes" >&5
2736 $as_echo "yes" >&6; }
2737
2738 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2739 ac_clean_files=$ac_clean_files_save
2740 # Check that the compiler produces executables we can run. If not, either
2741 # the compiler is broken, or we cross compile.
2742 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2743 $as_echo_n "checking whether we are cross compiling... " >&6; }
2744 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2745 $as_echo "$cross_compiling" >&6; }
2746
2747 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2748 $as_echo_n "checking for suffix of executables... " >&6; }
2749 if { (ac_try="$ac_link"
2750 case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753 esac
2754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2755 $as_echo "$ac_try_echo") >&5
2756 (eval "$ac_link") 2>&5
2757 ac_status=$?
2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; then
2760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2761 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2762 # work properly (i.e., refer to `conftest.exe'), while it won't with
2763 # `rm'.
2764 for ac_file in conftest.exe conftest conftest.*; do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 break;;
2770 * ) break;;
2771 esac
2772 done
2773 else
2774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2777 See \`config.log' for more details." >&5
2778 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2779 See \`config.log' for more details." >&2;}
2780 { (exit 1); exit 1; }; }; }
2781 fi
2782
2783 rm -f conftest$ac_cv_exeext
2784 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2785 $as_echo "$ac_cv_exeext" >&6; }
2786
2787 rm -f conftest.$ac_ext
2788 EXEEXT=$ac_cv_exeext
2789 ac_exeext=$EXEEXT
2790 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2791 $as_echo_n "checking for suffix of object files... " >&6; }
2792 if test "${ac_cv_objext+set}" = set; then
2793 $as_echo_n "(cached) " >&6
2794 else
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2801
2802 int
2803 main ()
2804 {
2805
2806 ;
2807 return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.o conftest.obj
2811 if { (ac_try="$ac_compile"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817 $as_echo "$ac_try_echo") >&5
2818 (eval "$ac_compile") 2>&5
2819 ac_status=$?
2820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 for ac_file in conftest.o conftest.obj conftest.*; do
2823 test -f "$ac_file" || continue;
2824 case $ac_file in
2825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2826 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2827 break;;
2828 esac
2829 done
2830 else
2831 $as_echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2837 See \`config.log' for more details." >&5
2838 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }; }
2841 fi
2842
2843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2844 fi
2845 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2846 $as_echo "$ac_cv_objext" >&6; }
2847 OBJEXT=$ac_cv_objext
2848 ac_objext=$OBJEXT
2849 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2850 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2851 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2852 $as_echo_n "(cached) " >&6
2853 else
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860
2861 int
2862 main ()
2863 {
2864 #ifndef __GNUC__
2865 choke me
2866 #endif
2867
2868 ;
2869 return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compile") 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } && {
2887 test -z "$ac_c_werror_flag" ||
2888 test ! -s conftest.err
2889 } && test -s conftest.$ac_objext; then
2890 ac_compiler_gnu=yes
2891 else
2892 $as_echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ac_compiler_gnu=no
2896 fi
2897
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2900
2901 fi
2902 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2904 if test $ac_compiler_gnu = yes; then
2905 GCC=yes
2906 else
2907 GCC=
2908 fi
2909 ac_test_CFLAGS=${CFLAGS+set}
2910 ac_save_CFLAGS=$CFLAGS
2911 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2913 if test "${ac_cv_prog_cc_g+set}" = set; then
2914 $as_echo_n "(cached) " >&6
2915 else
2916 ac_save_c_werror_flag=$ac_c_werror_flag
2917 ac_c_werror_flag=yes
2918 ac_cv_prog_cc_g=no
2919 CFLAGS="-g"
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926
2927 int
2928 main ()
2929 {
2930
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942 $as_echo "$ac_try_echo") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2953 ac_cv_prog_cc_g=yes
2954 else
2955 $as_echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 CFLAGS=""
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965
2966 int
2967 main ()
2968 {
2969
2970 ;
2971 return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_c_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 :
2993 else
2994 $as_echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ac_c_werror_flag=$ac_save_c_werror_flag
2998 CFLAGS="-g"
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005
3006 int
3007 main ()
3008 {
3009
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } && {
3029 test -z "$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3031 } && test -s conftest.$ac_objext; then
3032 ac_cv_prog_cc_g=yes
3033 else
3034 $as_echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037
3038 fi
3039
3040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 fi
3042
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 fi
3045
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 ac_c_werror_flag=$ac_save_c_werror_flag
3048 fi
3049 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3050 $as_echo "$ac_cv_prog_cc_g" >&6; }
3051 if test "$ac_test_CFLAGS" = set; then
3052 CFLAGS=$ac_save_CFLAGS
3053 elif test $ac_cv_prog_cc_g = yes; then
3054 if test "$GCC" = yes; then
3055 CFLAGS="-g -O2"
3056 else
3057 CFLAGS="-g"
3058 fi
3059 else
3060 if test "$GCC" = yes; then
3061 CFLAGS="-O2"
3062 else
3063 CFLAGS=
3064 fi
3065 fi
3066 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3068 if test "${ac_cv_prog_cc_c89+set}" = set; then
3069 $as_echo_n "(cached) " >&6
3070 else
3071 ac_cv_prog_cc_c89=no
3072 ac_save_CC=$CC
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <stdarg.h>
3080 #include <stdio.h>
3081 #include <sys/types.h>
3082 #include <sys/stat.h>
3083 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3084 struct buf { int x; };
3085 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3086 static char *e (p, i)
3087 char **p;
3088 int i;
3089 {
3090 return p[i];
3091 }
3092 static char *f (char * (*g) (char **, int), char **p, ...)
3093 {
3094 char *s;
3095 va_list v;
3096 va_start (v,p);
3097 s = g (p, va_arg (v,int));
3098 va_end (v);
3099 return s;
3100 }
3101
3102 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3103 function prototypes and stuff, but not '\xHH' hex character constants.
3104 These don't provoke an error unfortunately, instead are silently treated
3105 as 'x'. The following induces an error, until -std is added to get
3106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3107 array size at least. It's necessary to write '\x00'==0 to get something
3108 that's true only with -std. */
3109 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3110
3111 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3112 inside strings and character constants. */
3113 #define FOO(x) 'x'
3114 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3115
3116 int test (int i, double x);
3117 struct s1 {int (*f) (int a);};
3118 struct s2 {int (*f) (double a);};
3119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3120 int argc;
3121 char **argv;
3122 int
3123 main ()
3124 {
3125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3132 do
3133 CC="$ac_save_CC $ac_arg"
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_cv_prog_cc_c89=$ac_arg
3153 else
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157
3158 fi
3159
3160 rm -f core conftest.err conftest.$ac_objext
3161 test "x$ac_cv_prog_cc_c89" != "xno" && break
3162 done
3163 rm -f conftest.$ac_ext
3164 CC=$ac_save_CC
3165
3166 fi
3167 # AC_CACHE_VAL
3168 case "x$ac_cv_prog_cc_c89" in
3169 x)
3170 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3171 $as_echo "none needed" >&6; } ;;
3172 xno)
3173 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3174 $as_echo "unsupported" >&6; } ;;
3175 *)
3176 CC="$CC $ac_cv_prog_cc_c89"
3177 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3178 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3179 esac
3180
3181
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200 fi
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 $as_echo_n "(cached) " >&6
3204 else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228 Syntax error
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null && {
3244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 }; then
3247 :
3248 else
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 # Broken: fails on valid input.
3253 continue
3254 fi
3255
3256 rm -f conftest.err conftest.$ac_ext
3257
3258 # OK, works on sane cases. Now check whether nonexistent headers
3259 # can be detected and how.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <ac_nonexistent.h>
3267 _ACEOF
3268 if { (ac_try="$ac_cpp conftest.$ac_ext"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 }; then
3285 # Broken: success on invalid input.
3286 continue
3287 else
3288 $as_echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 # Passes both tests.
3292 ac_preproc_ok=:
3293 break
3294 fi
3295
3296 rm -f conftest.err conftest.$ac_ext
3297
3298 done
3299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300 rm -f conftest.err conftest.$ac_ext
3301 if $ac_preproc_ok; then
3302 break
3303 fi
3304
3305 done
3306 ac_cv_prog_CPP=$CPP
3307
3308 fi
3309 CPP=$ac_cv_prog_CPP
3310 else
3311 ac_cv_prog_CPP=$CPP
3312 fi
3313 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3314 $as_echo "$CPP" >&6; }
3315 ac_preproc_ok=false
3316 for ac_c_preproc_warn_flag in '' yes
3317 do
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #ifdef __STDC__
3331 # include <limits.h>
3332 #else
3333 # include <assert.h>
3334 #endif
3335 Syntax error
3336 _ACEOF
3337 if { (ac_try="$ac_cpp conftest.$ac_ext"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null && {
3351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 }; then
3354 :
3355 else
3356 $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 # Broken: fails on valid input.
3360 continue
3361 fi
3362
3363 rm -f conftest.err conftest.$ac_ext
3364
3365 # OK, works on sane cases. Now check whether nonexistent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3374 _ACEOF
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381 $as_echo "$ac_try_echo") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 # Broken: success on invalid input.
3393 continue
3394 else
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 # Passes both tests.
3399 ac_preproc_ok=:
3400 break
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405 done
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.$ac_ext
3408 if $ac_preproc_ok; then
3409 :
3410 else
3411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3414 See \`config.log' for more details." >&5
3415 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3416 See \`config.log' for more details." >&2;}
3417 { (exit 1); exit 1; }; }; }
3418 fi
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
3427 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3428 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3429 if test "${ac_cv_path_GREP+set}" = set; then
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test -z "$GREP"; then
3433 ac_path_GREP_found=false
3434 # Loop through the user's path and test for each of PROGNAME-LIST
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3437 do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_prog in grep ggrep; do
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3443 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3444 # Check for GNU ac_path_GREP and select it if it is found.
3445 # Check for GNU $ac_path_GREP
3446 case `"$ac_path_GREP" --version 2>&1` in
3447 *GNU*)
3448 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3449 *)
3450 ac_count=0
3451 $as_echo_n 0123456789 >"conftest.in"
3452 while :
3453 do
3454 cat "conftest.in" "conftest.in" >"conftest.tmp"
3455 mv "conftest.tmp" "conftest.in"
3456 cp "conftest.in" "conftest.nl"
3457 $as_echo 'GREP' >> "conftest.nl"
3458 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3460 ac_count=`expr $ac_count + 1`
3461 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3462 # Best one so far, save it but keep looking for a better one
3463 ac_cv_path_GREP="$ac_path_GREP"
3464 ac_path_GREP_max=$ac_count
3465 fi
3466 # 10*(2^10) chars as input seems more than enough
3467 test $ac_count -gt 10 && break
3468 done
3469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3470 esac
3471
3472 $ac_path_GREP_found && break 3
3473 done
3474 done
3475 done
3476 IFS=$as_save_IFS
3477 if test -z "$ac_cv_path_GREP"; then
3478 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3479 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3480 { (exit 1); exit 1; }; }
3481 fi
3482 else
3483 ac_cv_path_GREP=$GREP
3484 fi
3485
3486 fi
3487 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3488 $as_echo "$ac_cv_path_GREP" >&6; }
3489 GREP="$ac_cv_path_GREP"
3490
3491
3492 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3493 $as_echo_n "checking for egrep... " >&6; }
3494 if test "${ac_cv_path_EGREP+set}" = set; then
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3498 then ac_cv_path_EGREP="$GREP -E"
3499 else
3500 if test -z "$EGREP"; then
3501 ac_path_EGREP_found=false
3502 # Loop through the user's path and test for each of PROGNAME-LIST
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_prog in egrep; do
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3511 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3512 # Check for GNU ac_path_EGREP and select it if it is found.
3513 # Check for GNU $ac_path_EGREP
3514 case `"$ac_path_EGREP" --version 2>&1` in
3515 *GNU*)
3516 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3517 *)
3518 ac_count=0
3519 $as_echo_n 0123456789 >"conftest.in"
3520 while :
3521 do
3522 cat "conftest.in" "conftest.in" >"conftest.tmp"
3523 mv "conftest.tmp" "conftest.in"
3524 cp "conftest.in" "conftest.nl"
3525 $as_echo 'EGREP' >> "conftest.nl"
3526 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3528 ac_count=`expr $ac_count + 1`
3529 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3530 # Best one so far, save it but keep looking for a better one
3531 ac_cv_path_EGREP="$ac_path_EGREP"
3532 ac_path_EGREP_max=$ac_count
3533 fi
3534 # 10*(2^10) chars as input seems more than enough
3535 test $ac_count -gt 10 && break
3536 done
3537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3538 esac
3539
3540 $ac_path_EGREP_found && break 3
3541 done
3542 done
3543 done
3544 IFS=$as_save_IFS
3545 if test -z "$ac_cv_path_EGREP"; then
3546 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3547 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3548 { (exit 1); exit 1; }; }
3549 fi
3550 else
3551 ac_cv_path_EGREP=$EGREP
3552 fi
3553
3554 fi
3555 fi
3556 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3557 $as_echo "$ac_cv_path_EGREP" >&6; }
3558 EGREP="$ac_cv_path_EGREP"
3559
3560
3561 if test $ac_cv_c_compiler_gnu = yes; then
3562 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3563 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3564 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3565 $as_echo_n "(cached) " >&6
3566 else
3567 ac_pattern="Autoconf.*'x'"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <sgtty.h>
3575 Autoconf TIOCGETP
3576 _ACEOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3579 ac_cv_prog_gcc_traditional=yes
3580 else
3581 ac_cv_prog_gcc_traditional=no
3582 fi
3583 rm -f conftest*
3584
3585
3586 if test $ac_cv_prog_gcc_traditional = no; then
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <termio.h>
3594 Autoconf TCGETA
3595 _ACEOF
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3598 ac_cv_prog_gcc_traditional=yes
3599 fi
3600 rm -f conftest*
3601
3602 fi
3603 fi
3604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3605 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3606 if test $ac_cv_prog_gcc_traditional = yes; then
3607 CC="$CC -traditional"
3608 fi
3609 fi
3610
3611 # Find a good install program. We prefer a C program (faster),
3612 # so one script is as good as another. But avoid the broken or
3613 # incompatible versions:
3614 # SysV /etc/install, /usr/sbin/install
3615 # SunOS /usr/etc/install
3616 # IRIX /sbin/install
3617 # AIX /bin/install
3618 # AmigaOS /C/install, which installs bootblocks on floppy discs
3619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622 # OS/2's system install, which has a completely different semantic
3623 # ./install, which can be erroneously created by make from ./install.sh.
3624 # Reject install programs that cannot install multiple files.
3625 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3627 if test -z "$INSTALL"; then
3628 if test "${ac_cv_path_install+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 # Account for people who put trailing slashes in PATH elements.
3637 case $as_dir/ in
3638 ./ | .// | /cC/* | \
3639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3640 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3641 /usr/ucb/* ) ;;
3642 *)
3643 # OSF1 and SCO ODT 3.0 have their own names for install.
3644 # Don't use installbsd from OSF since it installs stuff as root
3645 # by default.
3646 for ac_prog in ginstall scoinst install; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3649 if test $ac_prog = install &&
3650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651 # AIX install. It has an incompatible calling convention.
3652 :
3653 elif test $ac_prog = install &&
3654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655 # program-specific install script used by HP pwplus--don't use.
3656 :
3657 else
3658 rm -rf conftest.one conftest.two conftest.dir
3659 echo one > conftest.one
3660 echo two > conftest.two
3661 mkdir conftest.dir
3662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663 test -s conftest.one && test -s conftest.two &&
3664 test -s conftest.dir/conftest.one &&
3665 test -s conftest.dir/conftest.two
3666 then
3667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668 break 3
3669 fi
3670 fi
3671 fi
3672 done
3673 done
3674 ;;
3675 esac
3676
3677 done
3678 IFS=$as_save_IFS
3679
3680 rm -rf conftest.one conftest.two conftest.dir
3681
3682 fi
3683 if test "${ac_cv_path_install+set}" = set; then
3684 INSTALL=$ac_cv_path_install
3685 else
3686 # As a last resort, use the slow shell script. Don't cache a
3687 # value for INSTALL within a source directory, because that will
3688 # break other packages using the cache if that directory is
3689 # removed, or if the value is a relative name.
3690 INSTALL=$ac_install_sh
3691 fi
3692 fi
3693 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3694 $as_echo "$INSTALL" >&6; }
3695
3696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697 # It thinks the first close brace ends the variable substitution.
3698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3705 $as_echo_n "checking whether ln -s works... " >&6; }
3706 LN_S=$as_ln_s
3707 if test "$LN_S" = "ln -s"; then
3708 { $as_echo "$as_me:$LINENO: result: yes" >&5
3709 $as_echo "yes" >&6; }
3710 else
3711 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3712 $as_echo "no, using $LN_S" >&6; }
3713 fi
3714
3715 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3717 set x ${MAKE-make}
3718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3719 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3720 $as_echo_n "(cached) " >&6
3721 else
3722 cat >conftest.make <<\_ACEOF
3723 SHELL = /bin/sh
3724 all:
3725 @echo '@@@%%%=$(MAKE)=@@@%%%'
3726 _ACEOF
3727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3729 *@@@%%%=?*=@@@%%%*)
3730 eval ac_cv_prog_make_${ac_make}_set=yes;;
3731 *)
3732 eval ac_cv_prog_make_${ac_make}_set=no;;
3733 esac
3734 rm -f conftest.make
3735 fi
3736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3737 { $as_echo "$as_me:$LINENO: result: yes" >&5
3738 $as_echo "yes" >&6; }
3739 SET_MAKE=
3740 else
3741 { $as_echo "$as_me:$LINENO: result: no" >&5
3742 $as_echo "no" >&6; }
3743 SET_MAKE="MAKE=${MAKE-make}"
3744 fi
3745
3746 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3747 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3748 if test -z "$MKDIR_P"; then
3749 if test "${ac_cv_path_mkdir+set}" = set; then
3750 $as_echo_n "(cached) " >&6
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3754 do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in mkdir gmkdir; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3760 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3761 'mkdir (GNU coreutils) '* | \
3762 'mkdir (coreutils) '* | \
3763 'mkdir (fileutils) '4.1*)
3764 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3765 break 3;;
3766 esac
3767 done
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773
3774 if test "${ac_cv_path_mkdir+set}" = set; then
3775 MKDIR_P="$ac_cv_path_mkdir -p"
3776 else
3777 # As a last resort, use the slow shell script. Don't cache a
3778 # value for MKDIR_P within a source directory, because that will
3779 # break other packages using the cache if that directory is
3780 # removed, or if the value is a relative name.
3781 test -d ./--version && rmdir ./--version
3782 MKDIR_P="$ac_install_sh -d"
3783 fi
3784 fi
3785 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3786 $as_echo "$MKDIR_P" >&6; }
3787
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_RANLIB+set}" = set; then
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$RANLIB"; then
3797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810 done
3811 done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 RANLIB=$ac_cv_prog_RANLIB
3817 if test -n "$RANLIB"; then
3818 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3819 $as_echo "$RANLIB" >&6; }
3820 else
3821 { $as_echo "$as_me:$LINENO: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$ac_cv_prog_RANLIB"; then
3828 ac_ct_RANLIB=$RANLIB
3829 # Extract the first word of "ranlib", so it can be a program name with args.
3830 set dummy ranlib; ac_word=$2
3831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$ac_ct_RANLIB"; then
3837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_ac_ct_RANLIB="ranlib"
3847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850 done
3851 done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3857 if test -n "$ac_ct_RANLIB"; then
3858 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3859 $as_echo "$ac_ct_RANLIB" >&6; }
3860 else
3861 { $as_echo "$as_me:$LINENO: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865 if test "x$ac_ct_RANLIB" = x; then
3866 RANLIB=":"
3867 else
3868 case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874 RANLIB=$ac_ct_RANLIB
3875 fi
3876 else
3877 RANLIB="$ac_cv_prog_RANLIB"
3878 fi
3879
3880 # Extract the first word of "cflow", so it can be a program name with args.
3881 set dummy cflow; ac_word=$2
3882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3885 $as_echo_n "(cached) " >&6
3886 else
3887 case $CFLOW_CMD in
3888 [\\/]* | ?:[\\/]*)
3889 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3890 ;;
3891 *)
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 ;;
3908 esac
3909 fi
3910 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3911 if test -n "$CFLOW_CMD"; then
3912 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3913 $as_echo "$CFLOW_CMD" >&6; }
3914 else
3915 { $as_echo "$as_me:$LINENO: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919
3920 # Extract the first word of "cscope", so it can be a program name with args.
3921 set dummy cscope; ac_word=$2
3922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3925 $as_echo_n "(cached) " >&6
3926 else
3927 case $CSCOPE_CMD in
3928 [\\/]* | ?:[\\/]*)
3929 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3930 ;;
3931 *)
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 ;;
3948 esac
3949 fi
3950 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3951 if test -n "$CSCOPE_CMD"; then
3952 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3953 $as_echo "$CSCOPE_CMD" >&6; }
3954 else
3955 { $as_echo "$as_me:$LINENO: result: no" >&5
3956 $as_echo "no" >&6; }
3957 fi
3958
3959
3960
3961 ################################################################################
3962
3963
3964
3965
3966
3967 ac_header_dirent=no
3968 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3969 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3970 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3971 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 #include <sys/types.h>
3982 #include <$ac_hdr>
3983
3984 int
3985 main ()
3986 {
3987 if ((DIR *) 0)
3988 return 0;
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4000 $as_echo "$ac_try_echo") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4011 eval "$as_ac_Header=yes"
4012 else
4013 $as_echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 eval "$as_ac_Header=no"
4017 fi
4018
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 fi
4021 ac_res=`eval 'as_val=${'$as_ac_Header'}
4022 $as_echo "$as_val"'`
4023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4024 $as_echo "$ac_res" >&6; }
4025 as_val=`eval 'as_val=${'$as_ac_Header'}
4026 $as_echo "$as_val"'`
4027 if test "x$as_val" = x""yes; then
4028 cat >>confdefs.h <<_ACEOF
4029 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4030 _ACEOF
4031
4032 ac_header_dirent=$ac_hdr; break
4033 fi
4034
4035 done
4036 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4037 if test $ac_header_dirent = dirent.h; then
4038 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4039 $as_echo_n "checking for library containing opendir... " >&6; }
4040 if test "${ac_cv_search_opendir+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4042 else
4043 ac_func_search_save_LIBS=$LIBS
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050
4051 /* Override any GCC internal prototype to avoid an error.
4052 Use char because int might match the return type of a GCC
4053 builtin and then its argument prototype would still apply. */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 char opendir ();
4058 int
4059 main ()
4060 {
4061 return opendir ();
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 for ac_lib in '' dir; do
4067 if test -z "$ac_lib"; then
4068 ac_res="none required"
4069 else
4070 ac_res=-l$ac_lib
4071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4072 fi
4073 rm -f conftest.$ac_objext conftest$ac_exeext
4074 if { (ac_try="$ac_link"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4080 $as_echo "$ac_try_echo") >&5
4081 (eval "$ac_link") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && {
4088 test -z "$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 } && test -s conftest$ac_exeext && {
4091 test "$cross_compiling" = yes ||
4092 $as_test_x conftest$ac_exeext
4093 }; then
4094 ac_cv_search_opendir=$ac_res
4095 else
4096 $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099
4100 fi
4101
4102 rm -rf conftest.dSYM
4103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4104 conftest$ac_exeext
4105 if test "${ac_cv_search_opendir+set}" = set; then
4106 break
4107 fi
4108 done
4109 if test "${ac_cv_search_opendir+set}" = set; then
4110 :
4111 else
4112 ac_cv_search_opendir=no
4113 fi
4114 rm conftest.$ac_ext
4115 LIBS=$ac_func_search_save_LIBS
4116 fi
4117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4118 $as_echo "$ac_cv_search_opendir" >&6; }
4119 ac_res=$ac_cv_search_opendir
4120 if test "$ac_res" != no; then
4121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4122
4123 fi
4124
4125 else
4126 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4127 $as_echo_n "checking for library containing opendir... " >&6; }
4128 if test "${ac_cv_search_opendir+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4130 else
4131 ac_func_search_save_LIBS=$LIBS
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138
4139 /* Override any GCC internal prototype to avoid an error.
4140 Use char because int might match the return type of a GCC
4141 builtin and then its argument prototype would still apply. */
4142 #ifdef __cplusplus
4143 extern "C"
4144 #endif
4145 char opendir ();
4146 int
4147 main ()
4148 {
4149 return opendir ();
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 for ac_lib in '' x; do
4155 if test -z "$ac_lib"; then
4156 ac_res="none required"
4157 else
4158 ac_res=-l$ac_lib
4159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4160 fi
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162 if { (ac_try="$ac_link"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_link") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest$ac_exeext && {
4179 test "$cross_compiling" = yes ||
4180 $as_test_x conftest$ac_exeext
4181 }; then
4182 ac_cv_search_opendir=$ac_res
4183 else
4184 $as_echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187
4188 fi
4189
4190 rm -rf conftest.dSYM
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192 conftest$ac_exeext
4193 if test "${ac_cv_search_opendir+set}" = set; then
4194 break
4195 fi
4196 done
4197 if test "${ac_cv_search_opendir+set}" = set; then
4198 :
4199 else
4200 ac_cv_search_opendir=no
4201 fi
4202 rm conftest.$ac_ext
4203 LIBS=$ac_func_search_save_LIBS
4204 fi
4205 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4206 $as_echo "$ac_cv_search_opendir" >&6; }
4207 ac_res=$ac_cv_search_opendir
4208 if test "$ac_res" != no; then
4209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4210
4211 fi
4212
4213 fi
4214
4215 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4216 $as_echo_n "checking for ANSI C header files... " >&6; }
4217 if test "${ac_cv_header_stdc+set}" = set; then
4218 $as_echo_n "(cached) " >&6
4219 else
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #include <stdlib.h>
4227 #include <stdarg.h>
4228 #include <string.h>
4229 #include <float.h>
4230
4231 int
4232 main ()
4233 {
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 rm -f conftest.$ac_objext
4240 if { (ac_try="$ac_compile"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246 $as_echo "$ac_try_echo") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest.$ac_objext; then
4257 ac_cv_header_stdc=yes
4258 else
4259 $as_echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 ac_cv_header_stdc=no
4263 fi
4264
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266
4267 if test $ac_cv_header_stdc = yes; then
4268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #include <string.h>
4276
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "memchr" >/dev/null 2>&1; then
4280 :
4281 else
4282 ac_cv_header_stdc=no
4283 fi
4284 rm -f conftest*
4285
4286 fi
4287
4288 if test $ac_cv_header_stdc = yes; then
4289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 #include <stdlib.h>
4297
4298 _ACEOF
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 $EGREP "free" >/dev/null 2>&1; then
4301 :
4302 else
4303 ac_cv_header_stdc=no
4304 fi
4305 rm -f conftest*
4306
4307 fi
4308
4309 if test $ac_cv_header_stdc = yes; then
4310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311 if test "$cross_compiling" = yes; then
4312 :
4313 else
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <ctype.h>
4321 #include <stdlib.h>
4322 #if ((' ' & 0x0FF) == 0x020)
4323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4325 #else
4326 # define ISLOWER(c) \
4327 (('a' <= (c) && (c) <= 'i') \
4328 || ('j' <= (c) && (c) <= 'r') \
4329 || ('s' <= (c) && (c) <= 'z'))
4330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4331 #endif
4332
4333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4334 int
4335 main ()
4336 {
4337 int i;
4338 for (i = 0; i < 256; i++)
4339 if (XOR (islower (i), ISLOWER (i))
4340 || toupper (i) != TOUPPER (i))
4341 return 2;
4342 return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest$ac_exeext
4346 if { (ac_try="$ac_link"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4352 $as_echo "$ac_try_echo") >&5
4353 (eval "$ac_link") 2>&5
4354 ac_status=$?
4355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360 esac
4361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4362 $as_echo "$ac_try_echo") >&5
4363 (eval "$ac_try") 2>&5
4364 ac_status=$?
4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 :
4368 else
4369 $as_echo "$as_me: program exited with status $ac_status" >&5
4370 $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ( exit $ac_status )
4374 ac_cv_header_stdc=no
4375 fi
4376 rm -rf conftest.dSYM
4377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4378 fi
4379
4380
4381 fi
4382 fi
4383 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4384 $as_echo "$ac_cv_header_stdc" >&6; }
4385 if test $ac_cv_header_stdc = yes; then
4386
4387 cat >>confdefs.h <<\_ACEOF
4388 #define STDC_HEADERS 1
4389 _ACEOF
4390
4391 fi
4392
4393 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4394 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4395 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4396 $as_echo_n "(cached) " >&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 #include <sys/types.h>
4405 #include <sys/wait.h>
4406 #ifndef WEXITSTATUS
4407 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4408 #endif
4409 #ifndef WIFEXITED
4410 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4411 #endif
4412
4413 int
4414 main ()
4415 {
4416 int s;
4417 wait (&s);
4418 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4430 $as_echo "$ac_try_echo") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } && {
4438 test -z "$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 } && test -s conftest.$ac_objext; then
4441 ac_cv_header_sys_wait_h=yes
4442 else
4443 $as_echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 ac_cv_header_sys_wait_h=no
4447 fi
4448
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 fi
4451 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4452 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4453 if test $ac_cv_header_sys_wait_h = yes; then
4454
4455 cat >>confdefs.h <<\_ACEOF
4456 #define HAVE_SYS_WAIT_H 1
4457 _ACEOF
4458
4459 fi
4460
4461 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4462 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4463 if test "${ac_cv_header_time+set}" = set; then
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 #include <sys/types.h>
4473 #include <sys/time.h>
4474 #include <time.h>
4475
4476 int
4477 main ()
4478 {
4479 if ((struct tm *) 0)
4480 return 0;
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_header_time=yes
4504 else
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_header_time=no
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4514 $as_echo "$ac_cv_header_time" >&6; }
4515 if test $ac_cv_header_time = yes; then
4516
4517 cat >>confdefs.h <<\_ACEOF
4518 #define TIME_WITH_SYS_TIME 1
4519 _ACEOF
4520
4521 fi
4522
4523
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4536 do
4537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 $as_echo_n "checking for $ac_header... " >&6; }
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4550
4551 #include <$ac_header>
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4555 case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558 esac
4559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4560 $as_echo "$ac_try_echo") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 eval "$as_ac_Header=yes"
4572 else
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 eval "$as_ac_Header=no"
4577 fi
4578
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 fi
4581 ac_res=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584 $as_echo "$ac_res" >&6; }
4585 as_val=`eval 'as_val=${'$as_ac_Header'}
4586 $as_echo "$as_val"'`
4587 if test "x$as_val" = x""yes; then
4588 cat >>confdefs.h <<_ACEOF
4589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 _ACEOF
4591
4592 fi
4593
4594 done
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4611 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4612 do
4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4616 $as_echo_n "checking for $ac_header... " >&6; }
4617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4618 $as_echo_n "(cached) " >&6
4619 fi
4620 ac_res=`eval 'as_val=${'$as_ac_Header'}
4621 $as_echo "$as_val"'`
4622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4623 $as_echo "$ac_res" >&6; }
4624 else
4625 # Is the header compilable?
4626 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4627 $as_echo_n "checking $ac_header usability... " >&6; }
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4635 #include <$ac_header>
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644 $as_echo "$ac_try_echo") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 ac_header_compiler=yes
4656 else
4657 $as_echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 ac_header_compiler=no
4661 fi
4662
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665 $as_echo "$ac_header_compiler" >&6; }
4666
4667 # Is the header present?
4668 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669 $as_echo_n "checking $ac_header presence... " >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <$ac_header>
4677 _ACEOF
4678 if { (ac_try="$ac_cpp conftest.$ac_ext"
4679 case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684 $as_echo "$ac_try_echo") >&5
4685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } >/dev/null && {
4692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 }; then
4695 ac_header_preproc=yes
4696 else
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 ac_header_preproc=no
4701 fi
4702
4703 rm -f conftest.err conftest.$ac_ext
4704 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4705 $as_echo "$ac_header_preproc" >&6; }
4706
4707 # So? What about this header?
4708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4709 yes:no: )
4710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4711 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4714 ac_header_preproc=yes
4715 ;;
4716 no:yes:* )
4717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4722 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4724 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4726 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4728 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4729
4730 ;;
4731 esac
4732 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 $as_echo_n "checking for $ac_header... " >&6; }
4734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4735 $as_echo_n "(cached) " >&6
4736 else
4737 eval "$as_ac_Header=\$ac_header_preproc"
4738 fi
4739 ac_res=`eval 'as_val=${'$as_ac_Header'}
4740 $as_echo "$as_val"'`
4741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4742 $as_echo "$ac_res" >&6; }
4743
4744 fi
4745 as_val=`eval 'as_val=${'$as_ac_Header'}
4746 $as_echo "$as_val"'`
4747 if test "x$as_val" = x""yes; then
4748 cat >>confdefs.h <<_ACEOF
4749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4750 _ACEOF
4751
4752 else
4753 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4754 $as_echo "$as_me: error: bailing out" >&2;}
4755 { (exit 1); exit 1; }; }
4756 fi
4757
4758 done
4759
4760
4761 case "$host_os" in
4762 linux*)
4763
4764
4765
4766 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4767 do
4768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4771 $as_echo_n "checking for $ac_header... " >&6; }
4772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4773 $as_echo_n "(cached) " >&6
4774 fi
4775 ac_res=`eval 'as_val=${'$as_ac_Header'}
4776 $as_echo "$as_val"'`
4777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4778 $as_echo "$ac_res" >&6; }
4779 else
4780 # Is the header compilable?
4781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4782 $as_echo_n "checking $ac_header usability... " >&6; }
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 $ac_includes_default
4790 #include <$ac_header>
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (ac_try="$ac_compile"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799 $as_echo "$ac_try_echo") >&5
4800 (eval "$ac_compile") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && {
4807 test -z "$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest.$ac_objext; then
4810 ac_header_compiler=yes
4811 else
4812 $as_echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_header_compiler=no
4816 fi
4817
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4820 $as_echo "$ac_header_compiler" >&6; }
4821
4822 # Is the header present?
4823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4824 $as_echo_n "checking $ac_header presence... " >&6; }
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <$ac_header>
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null && {
4847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 }; then
4850 ac_header_preproc=yes
4851 else
4852 $as_echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 ac_header_preproc=no
4856 fi
4857
4858 rm -f conftest.err conftest.$ac_ext
4859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4860 $as_echo "$ac_header_preproc" >&6; }
4861
4862 # So? What about this header?
4863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4864 yes:no: )
4865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4869 ac_header_preproc=yes
4870 ;;
4871 no:yes:* )
4872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4884
4885 ;;
4886 esac
4887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 $as_echo_n "checking for $ac_header... " >&6; }
4889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4890 $as_echo_n "(cached) " >&6
4891 else
4892 eval "$as_ac_Header=\$ac_header_preproc"
4893 fi
4894 ac_res=`eval 'as_val=${'$as_ac_Header'}
4895 $as_echo "$as_val"'`
4896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4897 $as_echo "$ac_res" >&6; }
4898
4899 fi
4900 as_val=`eval 'as_val=${'$as_ac_Header'}
4901 $as_echo "$as_val"'`
4902 if test "x$as_val" = x""yes; then
4903 cat >>confdefs.h <<_ACEOF
4904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4905 _ACEOF
4906
4907 else
4908 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4909 $as_echo "$as_me: error: bailing out" >&2;}
4910 { (exit 1); exit 1; }; }
4911 fi
4912
4913 done
4914 ;;
4915 darwin*)
4916
4917
4918 for ac_header in machine/endian.h sys/disk.h
4919 do
4920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4923 $as_echo_n "checking for $ac_header... " >&6; }
4924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4925 $as_echo_n "(cached) " >&6
4926 fi
4927 ac_res=`eval 'as_val=${'$as_ac_Header'}
4928 $as_echo "$as_val"'`
4929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4930 $as_echo "$ac_res" >&6; }
4931 else
4932 # Is the header compilable?
4933 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4934 $as_echo_n "checking $ac_header usability... " >&6; }
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4942 #include <$ac_header>
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (ac_try="$ac_compile"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951 $as_echo "$ac_try_echo") >&5
4952 (eval "$ac_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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4972 $as_echo "$ac_header_compiler" >&6; }
4973
4974 # Is the header present?
4975 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4976 $as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991 $as_echo "$ac_try_echo") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null && {
4999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 }; then
5002 ac_header_preproc=yes
5003 else
5004 $as_echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ac_header_preproc=no
5008 fi
5009
5010 rm -f conftest.err conftest.$ac_ext
5011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5012 $as_echo "$ac_header_preproc" >&6; }
5013
5014 # So? What about this header?
5015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5016 yes:no: )
5017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5018 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5021 ac_header_preproc=yes
5022 ;;
5023 no:yes:* )
5024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5025 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5027 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5029 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5031 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5035 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5036
5037 ;;
5038 esac
5039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5040 $as_echo_n "checking for $ac_header... " >&6; }
5041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5042 $as_echo_n "(cached) " >&6
5043 else
5044 eval "$as_ac_Header=\$ac_header_preproc"
5045 fi
5046 ac_res=`eval 'as_val=${'$as_ac_Header'}
5047 $as_echo "$as_val"'`
5048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5049 $as_echo "$ac_res" >&6; }
5050
5051 fi
5052 as_val=`eval 'as_val=${'$as_ac_Header'}
5053 $as_echo "$as_val"'`
5054 if test "x$as_val" = x""yes; then
5055 cat >>confdefs.h <<_ACEOF
5056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5057 _ACEOF
5058
5059 else
5060 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5061 $as_echo "$as_me: error: bailing out" >&2;}
5062 { (exit 1); exit 1; }; }
5063 fi
5064
5065 done
5066 ;;
5067 esac
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5086 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5087 sys/types.h unistd.h
5088 do
5089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5092 $as_echo_n "checking for $ac_header... " >&6; }
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094 $as_echo_n "(cached) " >&6
5095 fi
5096 ac_res=`eval 'as_val=${'$as_ac_Header'}
5097 $as_echo "$as_val"'`
5098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5099 $as_echo "$ac_res" >&6; }
5100 else
5101 # Is the header compilable?
5102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5103 $as_echo_n "checking $ac_header usability... " >&6; }
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5111 #include <$ac_header>
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (ac_try="$ac_compile"
5115 case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120 $as_echo "$ac_try_echo") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
5131 ac_header_compiler=yes
5132 else
5133 $as_echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ac_header_compiler=no
5137 fi
5138
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5141 $as_echo "$ac_header_compiler" >&6; }
5142
5143 # Is the header present?
5144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5145 $as_echo_n "checking $ac_header presence... " >&6; }
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 #include <$ac_header>
5153 _ACEOF
5154 if { (ac_try="$ac_cpp conftest.$ac_ext"
5155 case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160 $as_echo "$ac_try_echo") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 ac_header_preproc=yes
5172 else
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 ac_header_preproc=no
5177 fi
5178
5179 rm -f conftest.err conftest.$ac_ext
5180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5181 $as_echo "$ac_header_preproc" >&6; }
5182
5183 # So? What about this header?
5184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5185 yes:no: )
5186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5190 ac_header_preproc=yes
5191 ;;
5192 no:yes:* )
5193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5205
5206 ;;
5207 esac
5208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 $as_echo_n "checking for $ac_header... " >&6; }
5210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5211 $as_echo_n "(cached) " >&6
5212 else
5213 eval "$as_ac_Header=\$ac_header_preproc"
5214 fi
5215 ac_res=`eval 'as_val=${'$as_ac_Header'}
5216 $as_echo "$as_val"'`
5217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5218 $as_echo "$ac_res" >&6; }
5219
5220 fi
5221 as_val=`eval 'as_val=${'$as_ac_Header'}
5222 $as_echo "$as_val"'`
5223 if test "x$as_val" = x""yes; then
5224 cat >>confdefs.h <<_ACEOF
5225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 _ACEOF
5227
5228 else
5229 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5230 $as_echo "$as_me: error: bailing out" >&2;}
5231 { (exit 1); exit 1; }; }
5232 fi
5233
5234 done
5235
5236
5237
5238 for ac_header in termios.h sys/statvfs.h
5239 do
5240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 $as_echo_n "checking for $ac_header... " >&6; }
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245 $as_echo_n "(cached) " >&6
5246 fi
5247 ac_res=`eval 'as_val=${'$as_ac_Header'}
5248 $as_echo "$as_val"'`
5249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5250 $as_echo "$ac_res" >&6; }
5251 else
5252 # Is the header compilable?
5253 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5254 $as_echo_n "checking $ac_header usability... " >&6; }
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 $ac_includes_default
5262 #include <$ac_header>
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (ac_try="$ac_compile"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5271 $as_echo "$ac_try_echo") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_header_compiler=yes
5283 else
5284 $as_echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_header_compiler=no
5288 fi
5289
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292 $as_echo "$ac_header_compiler" >&6; }
5293
5294 # Is the header present?
5295 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296 $as_echo_n "checking $ac_header presence... " >&6; }
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <$ac_header>
5304 _ACEOF
5305 if { (ac_try="$ac_cpp conftest.$ac_ext"
5306 case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309 esac
5310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5311 $as_echo "$ac_try_echo") >&5
5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null && {
5319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 }; then
5322 ac_header_preproc=yes
5323 else
5324 $as_echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ac_header_preproc=no
5328 fi
5329
5330 rm -f conftest.err conftest.$ac_ext
5331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5332 $as_echo "$ac_header_preproc" >&6; }
5333
5334 # So? What about this header?
5335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336 yes:no: )
5337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5338 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5341 ac_header_preproc=yes
5342 ;;
5343 no:yes:* )
5344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5347 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5349 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5351 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5355 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356
5357 ;;
5358 esac
5359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5360 $as_echo_n "checking for $ac_header... " >&6; }
5361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5362 $as_echo_n "(cached) " >&6
5363 else
5364 eval "$as_ac_Header=\$ac_header_preproc"
5365 fi
5366 ac_res=`eval 'as_val=${'$as_ac_Header'}
5367 $as_echo "$as_val"'`
5368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5369 $as_echo "$ac_res" >&6; }
5370
5371 fi
5372 as_val=`eval 'as_val=${'$as_ac_Header'}
5373 $as_echo "$as_val"'`
5374 if test "x$as_val" = x""yes; then
5375 cat >>confdefs.h <<_ACEOF
5376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377 _ACEOF
5378
5379 fi
5380
5381 done
5382
5383
5384 ################################################################################
5385 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5386 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5387 if test "${ac_cv_c_const+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5389 else
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396
5397 int
5398 main ()
5399 {
5400 /* FIXME: Include the comments suggested by Paul. */
5401 #ifndef __cplusplus
5402 /* Ultrix mips cc rejects this. */
5403 typedef int charset[2];
5404 const charset cs;
5405 /* SunOS 4.1.1 cc rejects this. */
5406 char const *const *pcpcc;
5407 char **ppc;
5408 /* NEC SVR4.0.2 mips cc rejects this. */
5409 struct point {int x, y;};
5410 static struct point const zero = {0,0};
5411 /* AIX XL C 1.02.0.0 rejects this.
5412 It does not let you subtract one const X* pointer from another in
5413 an arm of an if-expression whose if-part is not a constant
5414 expression */
5415 const char *g = "string";
5416 pcpcc = &g + (g ? g-g : 0);
5417 /* HPUX 7.0 cc rejects these. */
5418 ++pcpcc;
5419 ppc = (char**) pcpcc;
5420 pcpcc = (char const *const *) ppc;
5421 { /* SCO 3.2v4 cc rejects this. */
5422 char *t;
5423 char const *s = 0 ? (char *) 0 : (char const *) 0;
5424
5425 *t++ = 0;
5426 if (s) return 0;
5427 }
5428 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5429 int x[] = {25, 17};
5430 const int *foo = &x[0];
5431 ++foo;
5432 }
5433 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5434 typedef const int *iptr;
5435 iptr p = 0;
5436 ++p;
5437 }
5438 { /* AIX XL C 1.02.0.0 rejects this saying
5439 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5440 struct s { int j; const int *ap[3]; };
5441 struct s *b; b->j = 5;
5442 }
5443 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5444 const int foo = 10;
5445 if (!foo) return 0;
5446 }
5447 return !cs[0] && !zero.x;
5448 #endif
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5461 $as_echo "$ac_try_echo") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 ac_cv_c_const=yes
5473 else
5474 $as_echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_cv_c_const=no
5478 fi
5479
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5483 $as_echo "$ac_cv_c_const" >&6; }
5484 if test $ac_cv_c_const = no; then
5485
5486 cat >>confdefs.h <<\_ACEOF
5487 #define const /**/
5488 _ACEOF
5489
5490 fi
5491
5492 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5493 $as_echo_n "checking for inline... " >&6; }
5494 if test "${ac_cv_c_inline+set}" = set; then
5495 $as_echo_n "(cached) " >&6
5496 else
5497 ac_cv_c_inline=no
5498 for ac_kw in inline __inline__ __inline; do
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #ifndef __cplusplus
5506 typedef int foo_t;
5507 static $ac_kw foo_t static_foo () {return 0; }
5508 $ac_kw foo_t foo () {return 0; }
5509 #endif
5510
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5519 $as_echo "$ac_try_echo") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_cv_c_inline=$ac_kw
5531 else
5532 $as_echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 test "$ac_cv_c_inline" != no && break
5540 done
5541
5542 fi
5543 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5544 $as_echo "$ac_cv_c_inline" >&6; }
5545
5546
5547 case $ac_cv_c_inline in
5548 inline | yes) ;;
5549 *)
5550 case $ac_cv_c_inline in
5551 no) ac_val=;;
5552 *) ac_val=$ac_cv_c_inline;;
5553 esac
5554 cat >>confdefs.h <<_ACEOF
5555 #ifndef __cplusplus
5556 #define inline $ac_val
5557 #endif
5558 _ACEOF
5559 ;;
5560 esac
5561
5562 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5563 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5564 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h. */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573 $ac_includes_default
5574 int
5575 main ()
5576 {
5577 static struct stat ac_aggr;
5578 if (ac_aggr.st_rdev)
5579 return 0;
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_cv_member_struct_stat_st_rdev=yes
5603 else
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 int
5615 main ()
5616 {
5617 static struct stat ac_aggr;
5618 if (sizeof ac_aggr.st_rdev)
5619 return 0;
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631 $as_echo "$ac_try_echo") >&5
5632 (eval "$ac_compile") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest.$ac_objext; then
5642 ac_cv_member_struct_stat_st_rdev=yes
5643 else
5644 $as_echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 ac_cv_member_struct_stat_st_rdev=no
5648 fi
5649
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 fi
5652
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 fi
5655 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5656 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5657 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5658
5659 cat >>confdefs.h <<_ACEOF
5660 #define HAVE_STRUCT_STAT_ST_RDEV 1
5661 _ACEOF
5662
5663
5664 fi
5665
5666 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5667 $as_echo_n "checking for off_t... " >&6; }
5668 if test "${ac_cv_type_off_t+set}" = set; then
5669 $as_echo_n "(cached) " >&6
5670 else
5671 ac_cv_type_off_t=no
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 $ac_includes_default
5679 int
5680 main ()
5681 {
5682 if (sizeof (off_t))
5683 return 0;
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5695 $as_echo "$ac_try_echo") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 $ac_includes_default
5713 int
5714 main ()
5715 {
5716 if (sizeof ((off_t)))
5717 return 0;
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (ac_try="$ac_compile"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 :
5741 else
5742 $as_echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 ac_cv_type_off_t=yes
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 else
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753
5754 fi
5755
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 fi
5758 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5759 $as_echo "$ac_cv_type_off_t" >&6; }
5760 if test "x$ac_cv_type_off_t" = x""yes; then
5761 :
5762 else
5763
5764 cat >>confdefs.h <<_ACEOF
5765 #define off_t long int
5766 _ACEOF
5767
5768 fi
5769
5770 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5771 $as_echo_n "checking for pid_t... " >&6; }
5772 if test "${ac_cv_type_pid_t+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5774 else
5775 ac_cv_type_pid_t=no
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5783 int
5784 main ()
5785 {
5786 if (sizeof (pid_t))
5787 return 0;
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5799 $as_echo "$ac_try_echo") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 $ac_includes_default
5817 int
5818 main ()
5819 {
5820 if (sizeof ((pid_t)))
5821 return 0;
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833 $as_echo "$ac_try_echo") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 :
5845 else
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_cv_type_pid_t=yes
5850 fi
5851
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 else
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5863 $as_echo "$ac_cv_type_pid_t" >&6; }
5864 if test "x$ac_cv_type_pid_t" = x""yes; then
5865 :
5866 else
5867
5868 cat >>confdefs.h <<_ACEOF
5869 #define pid_t int
5870 _ACEOF
5871
5872 fi
5873
5874 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5875 $as_echo_n "checking return type of signal handlers... " >&6; }
5876 if test "${ac_cv_type_signal+set}" = set; then
5877 $as_echo_n "(cached) " >&6
5878 else
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 #include <signal.h>
5887
5888 int
5889 main ()
5890 {
5891 return *(signal (0, 0)) (0) == 1;
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (ac_try="$ac_compile"
5898 case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901 esac
5902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903 $as_echo "$ac_try_echo") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest.$ac_objext; then
5914 ac_cv_type_signal=int
5915 else
5916 $as_echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 ac_cv_type_signal=void
5920 fi
5921
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 fi
5924 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5925 $as_echo "$ac_cv_type_signal" >&6; }
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define RETSIGTYPE $ac_cv_type_signal
5929 _ACEOF
5930
5931
5932 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5933 $as_echo_n "checking for size_t... " >&6; }
5934 if test "${ac_cv_type_size_t+set}" = set; then
5935 $as_echo_n "(cached) " >&6
5936 else
5937 ac_cv_type_size_t=no
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 $ac_includes_default
5945 int
5946 main ()
5947 {
5948 if (sizeof (size_t))
5949 return 0;
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5961 $as_echo "$ac_try_echo") >&5
5962 (eval "$ac_compile") 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest.$ac_objext; then
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5979 int
5980 main ()
5981 {
5982 if (sizeof ((size_t)))
5983 return 0;
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5990 case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995 $as_echo "$ac_try_echo") >&5
5996 (eval "$ac_compile") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest.$ac_objext; then
6006 :
6007 else
6008 $as_echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ac_cv_type_size_t=yes
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 else
6016 $as_echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019
6020 fi
6021
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6025 $as_echo "$ac_cv_type_size_t" >&6; }
6026 if test "x$ac_cv_type_size_t" = x""yes; then
6027 :
6028 else
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define size_t unsigned int
6032 _ACEOF
6033
6034 fi
6035
6036 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6037 $as_echo_n "checking for mode_t... " >&6; }
6038 if test "${ac_cv_type_mode_t+set}" = set; then
6039 $as_echo_n "(cached) " >&6
6040 else
6041 ac_cv_type_mode_t=no
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 int
6050 main ()
6051 {
6052 if (sizeof (mode_t))
6053 return 0;
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065 $as_echo "$ac_try_echo") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 $ac_includes_default
6083 int
6084 main ()
6085 {
6086 if (sizeof ((mode_t)))
6087 return 0;
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (ac_try="$ac_compile"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6099 $as_echo "$ac_try_echo") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest.$ac_objext; then
6110 :
6111 else
6112 $as_echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_cv_type_mode_t=yes
6116 fi
6117
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 else
6120 $as_echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 fi
6128 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6129 $as_echo "$ac_cv_type_mode_t" >&6; }
6130 if test "x$ac_cv_type_mode_t" = x""yes; then
6131 :
6132 else
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define mode_t int
6136 _ACEOF
6137
6138 fi
6139
6140 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6141 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6142 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 $ac_includes_default
6152 int
6153 main ()
6154 {
6155 static struct stat ac_aggr;
6156 if (ac_aggr.st_rdev)
6157 return 0;
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6164 case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167 esac
6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170 (eval "$ac_compile") 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } && {
6177 test -z "$ac_c_werror_flag" ||
6178 test ! -s conftest.err
6179 } && test -s conftest.$ac_objext; then
6180 ac_cv_member_struct_stat_st_rdev=yes
6181 else
6182 $as_echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 int
6193 main ()
6194 {
6195 static struct stat ac_aggr;
6196 if (sizeof ac_aggr.st_rdev)
6197 return 0;
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_member_struct_stat_st_rdev=yes
6221 else
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_member_struct_stat_st_rdev=no
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 fi
6230
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6234 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6235 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6236
6237 cat >>confdefs.h <<_ACEOF
6238 #define HAVE_STRUCT_STAT_ST_RDEV 1
6239 _ACEOF
6240
6241
6242 fi
6243
6244 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6245 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6246 if test "${ac_cv_struct_tm+set}" = set; then
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 #include <sys/types.h>
6256 #include <time.h>
6257
6258 int
6259 main ()
6260 {
6261 struct tm tm;
6262 int *p = &tm.tm_sec;
6263 return !p;
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext
6269 if { (ac_try="$ac_compile"
6270 case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273 esac
6274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6275 $as_echo "$ac_try_echo") >&5
6276 (eval "$ac_compile") 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && {
6283 test -z "$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 } && test -s conftest.$ac_objext; then
6286 ac_cv_struct_tm=time.h
6287 else
6288 $as_echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_struct_tm=sys/time.h
6292 fi
6293
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6297 $as_echo "$ac_cv_struct_tm" >&6; }
6298 if test $ac_cv_struct_tm = sys/time.h; then
6299
6300 cat >>confdefs.h <<\_ACEOF
6301 #define TM_IN_SYS_TIME 1
6302 _ACEOF
6303
6304 fi
6305
6306
6307 ################################################################################
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6326 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6327 uname
6328 do
6329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6331 $as_echo_n "checking for $ac_func... " >&6; }
6332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6333 $as_echo_n "(cached) " >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6343 #define $ac_func innocuous_$ac_func
6344
6345 /* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func (); below.
6347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6348 <limits.h> exists even on freestanding compilers. */
6349
6350 #ifdef __STDC__
6351 # include <limits.h>
6352 #else
6353 # include <assert.h>
6354 #endif
6355
6356 #undef $ac_func
6357
6358 /* Override any GCC internal prototype to avoid an error.
6359 Use char because int might match the return type of a GCC
6360 builtin and then its argument prototype would still apply. */
6361 #ifdef __cplusplus
6362 extern "C"
6363 #endif
6364 char $ac_func ();
6365 /* The GNU C library defines this for functions which it implements
6366 to always fail with ENOSYS. Some functions are actually named
6367 something starting with __ and the normal name is an alias. */
6368 #if defined __stub_$ac_func || defined __stub___$ac_func
6369 choke me
6370 #endif
6371
6372 int
6373 main ()
6374 {
6375 return $ac_func ();
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6387 $as_echo "$ac_try_echo") >&5
6388 (eval "$ac_link") 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && {
6395 test -z "$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6397 } && test -s conftest$ac_exeext && {
6398 test "$cross_compiling" = yes ||
6399 $as_test_x conftest$ac_exeext
6400 }; then
6401 eval "$as_ac_var=yes"
6402 else
6403 $as_echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 eval "$as_ac_var=no"
6407 fi
6408
6409 rm -rf conftest.dSYM
6410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6411 conftest$ac_exeext conftest.$ac_ext
6412 fi
6413 ac_res=`eval 'as_val=${'$as_ac_var'}
6414 $as_echo "$as_val"'`
6415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6416 $as_echo "$ac_res" >&6; }
6417 as_val=`eval 'as_val=${'$as_ac_var'}
6418 $as_echo "$as_val"'`
6419 if test "x$as_val" = x""yes; then
6420 cat >>confdefs.h <<_ACEOF
6421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 else
6425 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6426 $as_echo "$as_me: error: bailing out" >&2;}
6427 { (exit 1); exit 1; }; }
6428 fi
6429 done
6430
6431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6432 # for constant arguments. Useless!
6433 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6434 $as_echo_n "checking for working alloca.h... " >&6; }
6435 if test "${ac_cv_working_alloca_h+set}" = set; then
6436 $as_echo_n "(cached) " >&6
6437 else
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <alloca.h>
6445 int
6446 main ()
6447 {
6448 char *p = (char *) alloca (2 * sizeof (int));
6449 if (p) return 0;
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext conftest$ac_exeext
6455 if { (ac_try="$ac_link"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461 $as_echo "$ac_try_echo") >&5
6462 (eval "$ac_link") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest$ac_exeext && {
6472 test "$cross_compiling" = yes ||
6473 $as_test_x conftest$ac_exeext
6474 }; then
6475 ac_cv_working_alloca_h=yes
6476 else
6477 $as_echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480 ac_cv_working_alloca_h=no
6481 fi
6482
6483 rm -rf conftest.dSYM
6484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6485 conftest$ac_exeext conftest.$ac_ext
6486 fi
6487 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6488 $as_echo "$ac_cv_working_alloca_h" >&6; }
6489 if test $ac_cv_working_alloca_h = yes; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_ALLOCA_H 1
6493 _ACEOF
6494
6495 fi
6496
6497 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6498 $as_echo_n "checking for alloca... " >&6; }
6499 if test "${ac_cv_func_alloca_works+set}" = set; then
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #ifdef __GNUC__
6509 # define alloca __builtin_alloca
6510 #else
6511 # ifdef _MSC_VER
6512 # include <malloc.h>
6513 # define alloca _alloca
6514 # else
6515 # ifdef HAVE_ALLOCA_H
6516 # include <alloca.h>
6517 # else
6518 # ifdef _AIX
6519 #pragma alloca
6520 # else
6521 # ifndef alloca /* predefined by HP cc +Olibcalls */
6522 char *alloca ();
6523 # endif
6524 # endif
6525 # endif
6526 # endif
6527 #endif
6528
6529 int
6530 main ()
6531 {
6532 char *p = (char *) alloca (1);
6533 if (p) return 0;
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (ac_try="$ac_link"
6540 case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6545 $as_echo "$ac_try_echo") >&5
6546 (eval "$ac_link") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest$ac_exeext && {
6556 test "$cross_compiling" = yes ||
6557 $as_test_x conftest$ac_exeext
6558 }; then
6559 ac_cv_func_alloca_works=yes
6560 else
6561 $as_echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_func_alloca_works=no
6565 fi
6566
6567 rm -rf conftest.dSYM
6568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6569 conftest$ac_exeext conftest.$ac_ext
6570 fi
6571 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6572 $as_echo "$ac_cv_func_alloca_works" >&6; }
6573
6574 if test $ac_cv_func_alloca_works = yes; then
6575
6576 cat >>confdefs.h <<\_ACEOF
6577 #define HAVE_ALLOCA 1
6578 _ACEOF
6579
6580 else
6581 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6582 # that cause trouble. Some versions do not even contain alloca or
6583 # contain a buggy version. If you still want to use their alloca,
6584 # use ar to extract alloca.o from them instead of compiling alloca.c.
6585
6586 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6587
6588 cat >>confdefs.h <<\_ACEOF
6589 #define C_ALLOCA 1
6590 _ACEOF
6591
6592
6593 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6594 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6595 if test "${ac_cv_os_cray+set}" = set; then
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #if defined CRAY && ! defined CRAY2
6605 webecray
6606 #else
6607 wenotbecray
6608 #endif
6609
6610 _ACEOF
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "webecray" >/dev/null 2>&1; then
6613 ac_cv_os_cray=yes
6614 else
6615 ac_cv_os_cray=no
6616 fi
6617 rm -f conftest*
6618
6619 fi
6620 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6621 $as_echo "$ac_cv_os_cray" >&6; }
6622 if test $ac_cv_os_cray = yes; then
6623 for ac_func in _getb67 GETB67 getb67; do
6624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6626 $as_echo_n "checking for $ac_func... " >&6; }
6627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6638 #define $ac_func innocuous_$ac_func
6639
6640 /* System header to define __stub macros and hopefully few prototypes,
6641 which can conflict with char $ac_func (); below.
6642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6643 <limits.h> exists even on freestanding compilers. */
6644
6645 #ifdef __STDC__
6646 # include <limits.h>
6647 #else
6648 # include <assert.h>
6649 #endif
6650
6651 #undef $ac_func
6652
6653 /* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 char $ac_func ();
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined __stub_$ac_func || defined __stub___$ac_func
6664 choke me
6665 #endif
6666
6667 int
6668 main ()
6669 {
6670 return $ac_func ();
6671 ;
6672 return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (ac_try="$ac_link"
6677 case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6680 esac
6681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6682 $as_echo "$ac_try_echo") >&5
6683 (eval "$ac_link") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest$ac_exeext && {
6693 test "$cross_compiling" = yes ||
6694 $as_test_x conftest$ac_exeext
6695 }; then
6696 eval "$as_ac_var=yes"
6697 else
6698 $as_echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 eval "$as_ac_var=no"
6702 fi
6703
6704 rm -rf conftest.dSYM
6705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6706 conftest$ac_exeext conftest.$ac_ext
6707 fi
6708 ac_res=`eval 'as_val=${'$as_ac_var'}
6709 $as_echo "$as_val"'`
6710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6711 $as_echo "$ac_res" >&6; }
6712 as_val=`eval 'as_val=${'$as_ac_var'}
6713 $as_echo "$as_val"'`
6714 if test "x$as_val" = x""yes; then
6715
6716 cat >>confdefs.h <<_ACEOF
6717 #define CRAY_STACKSEG_END $ac_func
6718 _ACEOF
6719
6720 break
6721 fi
6722
6723 done
6724 fi
6725
6726 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6727 $as_echo_n "checking stack direction for C alloca... " >&6; }
6728 if test "${ac_cv_c_stack_direction+set}" = set; then
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test "$cross_compiling" = yes; then
6732 ac_cv_c_stack_direction=0
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 $ac_includes_default
6741 int
6742 find_stack_direction ()
6743 {
6744 static char *addr = 0;
6745 auto char dummy;
6746 if (addr == 0)
6747 {
6748 addr = &dummy;
6749 return find_stack_direction ();
6750 }
6751 else
6752 return (&dummy > addr) ? 1 : -1;
6753 }
6754
6755 int
6756 main ()
6757 {
6758 return find_stack_direction () < 0;
6759 }
6760 _ACEOF
6761 rm -f conftest$ac_exeext
6762 if { (ac_try="$ac_link"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_link") 2>&5
6770 ac_status=$?
6771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6773 { (case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776 esac
6777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6778 $as_echo "$ac_try_echo") >&5
6779 (eval "$ac_try") 2>&5
6780 ac_status=$?
6781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_c_stack_direction=1
6784 else
6785 $as_echo "$as_me: program exited with status $ac_status" >&5
6786 $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ( exit $ac_status )
6790 ac_cv_c_stack_direction=-1
6791 fi
6792 rm -rf conftest.dSYM
6793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6794 fi
6795
6796
6797 fi
6798 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6799 $as_echo "$ac_cv_c_stack_direction" >&6; }
6800
6801 cat >>confdefs.h <<_ACEOF
6802 #define STACK_DIRECTION $ac_cv_c_stack_direction
6803 _ACEOF
6804
6805
6806 fi
6807
6808 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6809 $as_echo_n "checking whether closedir returns void... " >&6; }
6810 if test "${ac_cv_func_closedir_void+set}" = set; then
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test "$cross_compiling" = yes; then
6814 ac_cv_func_closedir_void=yes
6815 else
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6823 #include <$ac_header_dirent>
6824 #ifndef __cplusplus
6825 int closedir ();
6826 #endif
6827
6828 int
6829 main ()
6830 {
6831 return closedir (opendir (".")) != 0;
6832 ;
6833 return 0;
6834 }
6835 _ACEOF
6836 rm -f conftest$ac_exeext
6837 if { (ac_try="$ac_link"
6838 case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841 esac
6842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6843 $as_echo "$ac_try_echo") >&5
6844 (eval "$ac_link") 2>&5
6845 ac_status=$?
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6848 { (case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853 $as_echo "$ac_try_echo") >&5
6854 (eval "$ac_try") 2>&5
6855 ac_status=$?
6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 ac_cv_func_closedir_void=no
6859 else
6860 $as_echo "$as_me: program exited with status $ac_status" >&5
6861 $as_echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 ( exit $ac_status )
6865 ac_cv_func_closedir_void=yes
6866 fi
6867 rm -rf conftest.dSYM
6868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6869 fi
6870
6871
6872 fi
6873 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6874 $as_echo "$ac_cv_func_closedir_void" >&6; }
6875 if test $ac_cv_func_closedir_void = yes; then
6876
6877 cat >>confdefs.h <<\_ACEOF
6878 #define CLOSEDIR_VOID 1
6879 _ACEOF
6880
6881 fi
6882
6883
6884 for ac_header in vfork.h
6885 do
6886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6888 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6889 $as_echo_n "checking for $ac_header... " >&6; }
6890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6891 $as_echo_n "(cached) " >&6
6892 fi
6893 ac_res=`eval 'as_val=${'$as_ac_Header'}
6894 $as_echo "$as_val"'`
6895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6896 $as_echo "$ac_res" >&6; }
6897 else
6898 # Is the header compilable?
6899 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6900 $as_echo_n "checking $ac_header usability... " >&6; }
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 $ac_includes_default
6908 #include <$ac_header>
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6912 case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6917 $as_echo "$ac_try_echo") >&5
6918 (eval "$ac_compile") 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.$ac_objext; then
6928 ac_header_compiler=yes
6929 else
6930 $as_echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 ac_header_compiler=no
6934 fi
6935
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6938 $as_echo "$ac_header_compiler" >&6; }
6939
6940 # Is the header present?
6941 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6942 $as_echo_n "checking $ac_header presence... " >&6; }
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <$ac_header>
6950 _ACEOF
6951 if { (ac_try="$ac_cpp conftest.$ac_ext"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } >/dev/null && {
6965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 }; then
6968 ac_header_preproc=yes
6969 else
6970 $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ac_header_preproc=no
6974 fi
6975
6976 rm -f conftest.err conftest.$ac_ext
6977 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978 $as_echo "$ac_header_preproc" >&6; }
6979
6980 # So? What about this header?
6981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6982 yes:no: )
6983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6986 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6987 ac_header_preproc=yes
6988 ;;
6989 no:yes:* )
6990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6991 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6993 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6995 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6997 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7001 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7002
7003 ;;
7004 esac
7005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7006 $as_echo_n "checking for $ac_header... " >&6; }
7007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7008 $as_echo_n "(cached) " >&6
7009 else
7010 eval "$as_ac_Header=\$ac_header_preproc"
7011 fi
7012 ac_res=`eval 'as_val=${'$as_ac_Header'}
7013 $as_echo "$as_val"'`
7014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7015 $as_echo "$ac_res" >&6; }
7016
7017 fi
7018 as_val=`eval 'as_val=${'$as_ac_Header'}
7019 $as_echo "$as_val"'`
7020 if test "x$as_val" = x""yes; then
7021 cat >>confdefs.h <<_ACEOF
7022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7023 _ACEOF
7024
7025 fi
7026
7027 done
7028
7029
7030
7031 for ac_func in fork vfork
7032 do
7033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7035 $as_echo_n "checking for $ac_func... " >&6; }
7036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7047 #define $ac_func innocuous_$ac_func
7048
7049 /* System header to define __stub macros and hopefully few prototypes,
7050 which can conflict with char $ac_func (); below.
7051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 <limits.h> exists even on freestanding compilers. */
7053
7054 #ifdef __STDC__
7055 # include <limits.h>
7056 #else
7057 # include <assert.h>
7058 #endif
7059
7060 #undef $ac_func
7061
7062 /* Override any GCC internal prototype to avoid an error.
7063 Use char because int might match the return type of a GCC
7064 builtin and then its argument prototype would still apply. */
7065 #ifdef __cplusplus
7066 extern "C"
7067 #endif
7068 char $ac_func ();
7069 /* The GNU C library defines this for functions which it implements
7070 to always fail with ENOSYS. Some functions are actually named
7071 something starting with __ and the normal name is an alias. */
7072 #if defined __stub_$ac_func || defined __stub___$ac_func
7073 choke me
7074 #endif
7075
7076 int
7077 main ()
7078 {
7079 return $ac_func ();
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext conftest$ac_exeext
7085 if { (ac_try="$ac_link"
7086 case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7091 $as_echo "$ac_try_echo") >&5
7092 (eval "$ac_link") 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } && {
7099 test -z "$ac_c_werror_flag" ||
7100 test ! -s conftest.err
7101 } && test -s conftest$ac_exeext && {
7102 test "$cross_compiling" = yes ||
7103 $as_test_x conftest$ac_exeext
7104 }; then
7105 eval "$as_ac_var=yes"
7106 else
7107 $as_echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 eval "$as_ac_var=no"
7111 fi
7112
7113 rm -rf conftest.dSYM
7114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7115 conftest$ac_exeext conftest.$ac_ext
7116 fi
7117 ac_res=`eval 'as_val=${'$as_ac_var'}
7118 $as_echo "$as_val"'`
7119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7120 $as_echo "$ac_res" >&6; }
7121 as_val=`eval 'as_val=${'$as_ac_var'}
7122 $as_echo "$as_val"'`
7123 if test "x$as_val" = x""yes; then
7124 cat >>confdefs.h <<_ACEOF
7125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7126 _ACEOF
7127
7128 fi
7129 done
7130
7131 if test "x$ac_cv_func_fork" = xyes; then
7132 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7133 $as_echo_n "checking for working fork... " >&6; }
7134 if test "${ac_cv_func_fork_works+set}" = set; then
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test "$cross_compiling" = yes; then
7138 ac_cv_func_fork_works=cross
7139 else
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 int
7148 main ()
7149 {
7150
7151 /* By Ruediger Kuhlmann. */
7152 return fork () < 0;
7153
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest$ac_exeext
7159 if { (ac_try="$ac_link"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165 $as_echo "$ac_try_echo") >&5
7166 (eval "$ac_link") 2>&5
7167 ac_status=$?
7168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7170 { (case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173 esac
7174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7175 $as_echo "$ac_try_echo") >&5
7176 (eval "$ac_try") 2>&5
7177 ac_status=$?
7178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_cv_func_fork_works=yes
7181 else
7182 $as_echo "$as_me: program exited with status $ac_status" >&5
7183 $as_echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ( exit $ac_status )
7187 ac_cv_func_fork_works=no
7188 fi
7189 rm -rf conftest.dSYM
7190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7191 fi
7192
7193
7194 fi
7195 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7196 $as_echo "$ac_cv_func_fork_works" >&6; }
7197
7198 else
7199 ac_cv_func_fork_works=$ac_cv_func_fork
7200 fi
7201 if test "x$ac_cv_func_fork_works" = xcross; then
7202 case $host in
7203 *-*-amigaos* | *-*-msdosdjgpp*)
7204 # Override, as these systems have only a dummy fork() stub
7205 ac_cv_func_fork_works=no
7206 ;;
7207 *)
7208 ac_cv_func_fork_works=yes
7209 ;;
7210 esac
7211 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7212 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7213 fi
7214 ac_cv_func_vfork_works=$ac_cv_func_vfork
7215 if test "x$ac_cv_func_vfork" = xyes; then
7216 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7217 $as_echo_n "checking for working vfork... " >&6; }
7218 if test "${ac_cv_func_vfork_works+set}" = set; then
7219 $as_echo_n "(cached) " >&6
7220 else
7221 if test "$cross_compiling" = yes; then
7222 ac_cv_func_vfork_works=cross
7223 else
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 /* Thanks to Paul Eggert for this test. */
7231 $ac_includes_default
7232 #include <sys/wait.h>
7233 #ifdef HAVE_VFORK_H
7234 # include <vfork.h>
7235 #endif
7236 /* On some sparc systems, changes by the child to local and incoming
7237 argument registers are propagated back to the parent. The compiler
7238 is told about this with #include <vfork.h>, but some compilers
7239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7240 static variable whose address is put into a register that is
7241 clobbered by the vfork. */
7242 static void
7243 #ifdef __cplusplus
7244 sparc_address_test (int arg)
7245 # else
7246 sparc_address_test (arg) int arg;
7247 #endif
7248 {
7249 static pid_t child;
7250 if (!child) {
7251 child = vfork ();
7252 if (child < 0) {
7253 perror ("vfork");
7254 _exit(2);
7255 }
7256 if (!child) {
7257 arg = getpid();
7258 write(-1, "", 0);
7259 _exit (arg);
7260 }
7261 }
7262 }
7263
7264 int
7265 main ()
7266 {
7267 pid_t parent = getpid ();
7268 pid_t child;
7269
7270 sparc_address_test (0);
7271
7272 child = vfork ();
7273
7274 if (child == 0) {
7275 /* Here is another test for sparc vfork register problems. This
7276 test uses lots of local variables, at least as many local
7277 variables as main has allocated so far including compiler
7278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7280 reuse the register of parent for one of the local variables,
7281 since it will think that parent can't possibly be used any more
7282 in this routine. Assigning to the local variable will thus
7283 munge parent in the parent process. */
7284 pid_t
7285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7287 /* Convince the compiler that p..p7 are live; otherwise, it might
7288 use the same hardware register for all 8 local variables. */
7289 if (p != p1 || p != p2 || p != p3 || p != p4
7290 || p != p5 || p != p6 || p != p7)
7291 _exit(1);
7292
7293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7294 from child file descriptors. If the child closes a descriptor
7295 before it execs or exits, this munges the parent's descriptor
7296 as well. Test for this by closing stdout in the child. */
7297 _exit(close(fileno(stdout)) != 0);
7298 } else {
7299 int status;
7300 struct stat st;
7301
7302 while (wait(&status) != child)
7303 ;
7304 return (
7305 /* Was there some problem with vforking? */
7306 child < 0
7307
7308 /* Did the child fail? (This shouldn't happen.) */
7309 || status
7310
7311 /* Did the vfork/compiler bug occur? */
7312 || parent != getpid()
7313
7314 /* Did the file descriptor bug occur? */
7315 || fstat(fileno(stdout), &st) != 0
7316 );
7317 }
7318 }
7319 _ACEOF
7320 rm -f conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7322 case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325 esac
7326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7327 $as_echo "$ac_try_echo") >&5
7328 (eval "$ac_link") 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7332 { (case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7337 $as_echo "$ac_try_echo") >&5
7338 (eval "$ac_try") 2>&5
7339 ac_status=$?
7340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_cv_func_vfork_works=yes
7343 else
7344 $as_echo "$as_me: program exited with status $ac_status" >&5
7345 $as_echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ( exit $ac_status )
7349 ac_cv_func_vfork_works=no
7350 fi
7351 rm -rf conftest.dSYM
7352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7353 fi
7354
7355
7356 fi
7357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7358 $as_echo "$ac_cv_func_vfork_works" >&6; }
7359
7360 fi;
7361 if test "x$ac_cv_func_fork_works" = xcross; then
7362 ac_cv_func_vfork_works=$ac_cv_func_vfork
7363 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7364 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7365 fi
7366
7367 if test "x$ac_cv_func_vfork_works" = xyes; then
7368
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_WORKING_VFORK 1
7371 _ACEOF
7372
7373 else
7374
7375 cat >>confdefs.h <<\_ACEOF
7376 #define vfork fork
7377 _ACEOF
7378
7379 fi
7380 if test "x$ac_cv_func_fork_works" = xyes; then
7381
7382 cat >>confdefs.h <<\_ACEOF
7383 #define HAVE_WORKING_FORK 1
7384 _ACEOF
7385
7386 fi
7387
7388 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7389 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7390 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7391 $as_echo_n "(cached) " >&6
7392 else
7393 rm -f conftest.sym conftest.file
7394 echo >conftest.file
7395 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7396 if test "$cross_compiling" = yes; then
7397 ac_cv_func_lstat_dereferences_slashed_symlink=no
7398 else
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 $ac_includes_default
7406 int
7407 main ()
7408 {
7409 struct stat sbuf;
7410 /* Linux will dereference the symlink and fail.
7411 That is better in the sense that it means we will not
7412 have to compile and use the lstat wrapper. */
7413 return lstat ("conftest.sym/", &sbuf) == 0;
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest$ac_exeext
7419 if { (ac_try="$ac_link"
7420 case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7425 $as_echo "$ac_try_echo") >&5
7426 (eval "$ac_link") 2>&5
7427 ac_status=$?
7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7430 { (case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435 $as_echo "$ac_try_echo") >&5
7436 (eval "$ac_try") 2>&5
7437 ac_status=$?
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7441 else
7442 $as_echo "$as_me: program exited with status $ac_status" >&5
7443 $as_echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446 ( exit $ac_status )
7447 ac_cv_func_lstat_dereferences_slashed_symlink=no
7448 fi
7449 rm -rf conftest.dSYM
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451 fi
7452
7453
7454 else
7455 # If the `ln -s' command failed, then we probably don't even
7456 # have an lstat function.
7457 ac_cv_func_lstat_dereferences_slashed_symlink=no
7458 fi
7459 rm -f conftest.sym conftest.file
7460
7461 fi
7462 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7463 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7464
7465 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7469 _ACEOF
7470
7471
7472 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7473 case " $LIBOBJS " in
7474 *" lstat.$ac_objext "* ) ;;
7475 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7476 ;;
7477 esac
7478
7479 fi
7480
7481 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7482 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7483 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7485 else
7486 if test "$cross_compiling" = yes; then
7487 ac_cv_func_lstat_empty_string_bug=yes
7488 else
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 int
7497 main ()
7498 {
7499 struct stat sbuf;
7500 return lstat ("", &sbuf) == 0;
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest$ac_exeext
7506 if { (ac_try="$ac_link"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512 $as_echo "$ac_try_echo") >&5
7513 (eval "$ac_link") 2>&5
7514 ac_status=$?
7515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7517 { (case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520 esac
7521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522 $as_echo "$ac_try_echo") >&5
7523 (eval "$ac_try") 2>&5
7524 ac_status=$?
7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_cv_func_lstat_empty_string_bug=no
7528 else
7529 $as_echo "$as_me: program exited with status $ac_status" >&5
7530 $as_echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 ( exit $ac_status )
7534 ac_cv_func_lstat_empty_string_bug=yes
7535 fi
7536 rm -rf conftest.dSYM
7537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7538 fi
7539
7540
7541 fi
7542 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7543 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7544 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7545 case " $LIBOBJS " in
7546 *" lstat.$ac_objext "* ) ;;
7547 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7548 ;;
7549 esac
7550
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7554 _ACEOF
7555
7556 fi
7557
7558
7559 for ac_header in stdlib.h
7560 do
7561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 $as_echo_n "checking for $ac_header... " >&6; }
7565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566 $as_echo_n "(cached) " >&6
7567 fi
7568 ac_res=`eval 'as_val=${'$as_ac_Header'}
7569 $as_echo "$as_val"'`
7570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7571 $as_echo "$ac_res" >&6; }
7572 else
7573 # Is the header compilable?
7574 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7575 $as_echo_n "checking $ac_header usability... " >&6; }
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 #include <$ac_header>
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590 esac
7591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7592 $as_echo "$ac_try_echo") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
7603 ac_header_compiler=yes
7604 else
7605 $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608 ac_header_compiler=no
7609 fi
7610
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7613 $as_echo "$ac_header_compiler" >&6; }
7614
7615 # Is the header present?
7616 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7617 $as_echo_n "checking $ac_header presence... " >&6; }
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 #include <$ac_header>
7625 _ACEOF
7626 if { (ac_try="$ac_cpp conftest.$ac_ext"
7627 case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630 esac
7631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7632 $as_echo "$ac_try_echo") >&5
7633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } >/dev/null && {
7640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 }; then
7643 ac_header_preproc=yes
7644 else
7645 $as_echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_header_preproc=no
7649 fi
7650
7651 rm -f conftest.err conftest.$ac_ext
7652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7653 $as_echo "$ac_header_preproc" >&6; }
7654
7655 # So? What about this header?
7656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7657 yes:no: )
7658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7659 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7662 ac_header_preproc=yes
7663 ;;
7664 no:yes:* )
7665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7666 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7668 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7670 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7672 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7676 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7677
7678 ;;
7679 esac
7680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7681 $as_echo_n "checking for $ac_header... " >&6; }
7682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7683 $as_echo_n "(cached) " >&6
7684 else
7685 eval "$as_ac_Header=\$ac_header_preproc"
7686 fi
7687 ac_res=`eval 'as_val=${'$as_ac_Header'}
7688 $as_echo "$as_val"'`
7689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7690 $as_echo "$ac_res" >&6; }
7691
7692 fi
7693 as_val=`eval 'as_val=${'$as_ac_Header'}
7694 $as_echo "$as_val"'`
7695 if test "x$as_val" = x""yes; then
7696 cat >>confdefs.h <<_ACEOF
7697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 _ACEOF
7699
7700 fi
7701
7702 done
7703
7704 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7705 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7706 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7707 $as_echo_n "(cached) " >&6
7708 else
7709 if test "$cross_compiling" = yes; then
7710 ac_cv_func_malloc_0_nonnull=no
7711 else
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7719 # include <stdlib.h>
7720 #else
7721 char *malloc ();
7722 #endif
7723
7724 int
7725 main ()
7726 {
7727 return ! malloc (0);
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7734 case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737 esac
7738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739 $as_echo "$ac_try_echo") >&5
7740 (eval "$ac_link") 2>&5
7741 ac_status=$?
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747 esac
7748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7749 $as_echo "$ac_try_echo") >&5
7750 (eval "$ac_try") 2>&5
7751 ac_status=$?
7752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7754 ac_cv_func_malloc_0_nonnull=yes
7755 else
7756 $as_echo "$as_me: program exited with status $ac_status" >&5
7757 $as_echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 ( exit $ac_status )
7761 ac_cv_func_malloc_0_nonnull=no
7762 fi
7763 rm -rf conftest.dSYM
7764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7765 fi
7766
7767
7768 fi
7769 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7770 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7771 if test $ac_cv_func_malloc_0_nonnull = yes; then
7772
7773 cat >>confdefs.h <<\_ACEOF
7774 #define HAVE_MALLOC 1
7775 _ACEOF
7776
7777 else
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_MALLOC 0
7780 _ACEOF
7781
7782 case " $LIBOBJS " in
7783 *" malloc.$ac_objext "* ) ;;
7784 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7785 ;;
7786 esac
7787
7788
7789 cat >>confdefs.h <<\_ACEOF
7790 #define malloc rpl_malloc
7791 _ACEOF
7792
7793 fi
7794
7795
7796
7797 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7798 $as_echo_n "checking for working memcmp... " >&6; }
7799 if test "${ac_cv_func_memcmp_working+set}" = set; then
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test "$cross_compiling" = yes; then
7803 ac_cv_func_memcmp_working=no
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7812 int
7813 main ()
7814 {
7815
7816 /* Some versions of memcmp are not 8-bit clean. */
7817 char c0 = '\100', c1 = '\200', c2 = '\201';
7818 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7819 return 1;
7820
7821 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7822 or more and with at least one buffer not starting on a 4-byte boundary.
7823 William Lewis provided this test program. */
7824 {
7825 char foo[21];
7826 char bar[21];
7827 int i;
7828 for (i = 0; i < 4; i++)
7829 {
7830 char *a = foo + i;
7831 char *b = bar + i;
7832 strcpy (a, "--------01111111");
7833 strcpy (b, "--------10000000");
7834 if (memcmp (a, b, 16) >= 0)
7835 return 1;
7836 }
7837 return 0;
7838 }
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest$ac_exeext
7845 if { (ac_try="$ac_link"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_link") 2>&5
7853 ac_status=$?
7854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862 (eval "$ac_try") 2>&5
7863 ac_status=$?
7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_func_memcmp_working=yes
7867 else
7868 $as_echo "$as_me: program exited with status $ac_status" >&5
7869 $as_echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872 ( exit $ac_status )
7873 ac_cv_func_memcmp_working=no
7874 fi
7875 rm -rf conftest.dSYM
7876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7877 fi
7878
7879
7880 fi
7881 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7882 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7883 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7884 *" memcmp.$ac_objext "* ) ;;
7885 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7886 ;;
7887 esac
7888
7889
7890
7891
7892 for ac_header in stdlib.h unistd.h
7893 do
7894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7897 $as_echo_n "checking for $ac_header... " >&6; }
7898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7899 $as_echo_n "(cached) " >&6
7900 fi
7901 ac_res=`eval 'as_val=${'$as_ac_Header'}
7902 $as_echo "$as_val"'`
7903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7904 $as_echo "$ac_res" >&6; }
7905 else
7906 # Is the header compilable?
7907 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7908 $as_echo_n "checking $ac_header usability... " >&6; }
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 #include <$ac_header>
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (ac_try="$ac_compile"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925 $as_echo "$ac_try_echo") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_header_compiler=yes
7937 else
7938 $as_echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941 ac_header_compiler=no
7942 fi
7943
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7946 $as_echo "$ac_header_compiler" >&6; }
7947
7948 # Is the header present?
7949 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7950 $as_echo_n "checking $ac_header presence... " >&6; }
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 #include <$ac_header>
7958 _ACEOF
7959 if { (ac_try="$ac_cpp conftest.$ac_ext"
7960 case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963 esac
7964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7965 $as_echo "$ac_try_echo") >&5
7966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } >/dev/null && {
7973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 }; then
7976 ac_header_preproc=yes
7977 else
7978 $as_echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_header_preproc=no
7982 fi
7983
7984 rm -f conftest.err conftest.$ac_ext
7985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986 $as_echo "$ac_header_preproc" >&6; }
7987
7988 # So? What about this header?
7989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7990 yes:no: )
7991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7992 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7994 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7995 ac_header_preproc=yes
7996 ;;
7997 no:yes:* )
7998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7999 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8001 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8003 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8005 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8009 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8010
8011 ;;
8012 esac
8013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 $as_echo_n "checking for $ac_header... " >&6; }
8015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8016 $as_echo_n "(cached) " >&6
8017 else
8018 eval "$as_ac_Header=\$ac_header_preproc"
8019 fi
8020 ac_res=`eval 'as_val=${'$as_ac_Header'}
8021 $as_echo "$as_val"'`
8022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8023 $as_echo "$ac_res" >&6; }
8024
8025 fi
8026 as_val=`eval 'as_val=${'$as_ac_Header'}
8027 $as_echo "$as_val"'`
8028 if test "x$as_val" = x""yes; then
8029 cat >>confdefs.h <<_ACEOF
8030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8031 _ACEOF
8032
8033 fi
8034
8035 done
8036
8037
8038 for ac_func in getpagesize
8039 do
8040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8042 $as_echo_n "checking for $ac_func... " >&6; }
8043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8044 $as_echo_n "(cached) " >&6
8045 else
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8054 #define $ac_func innocuous_$ac_func
8055
8056 /* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char $ac_func (); below.
8058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8059 <limits.h> exists even on freestanding compilers. */
8060
8061 #ifdef __STDC__
8062 # include <limits.h>
8063 #else
8064 # include <assert.h>
8065 #endif
8066
8067 #undef $ac_func
8068
8069 /* Override any GCC internal prototype to avoid an error.
8070 Use char because int might match the return type of a GCC
8071 builtin and then its argument prototype would still apply. */
8072 #ifdef __cplusplus
8073 extern "C"
8074 #endif
8075 char $ac_func ();
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined __stub_$ac_func || defined __stub___$ac_func
8080 choke me
8081 #endif
8082
8083 int
8084 main ()
8085 {
8086 return $ac_func ();
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (ac_try="$ac_link"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8098 $as_echo "$ac_try_echo") >&5
8099 (eval "$ac_link") 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest$ac_exeext && {
8109 test "$cross_compiling" = yes ||
8110 $as_test_x conftest$ac_exeext
8111 }; then
8112 eval "$as_ac_var=yes"
8113 else
8114 $as_echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117 eval "$as_ac_var=no"
8118 fi
8119
8120 rm -rf conftest.dSYM
8121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8122 conftest$ac_exeext conftest.$ac_ext
8123 fi
8124 ac_res=`eval 'as_val=${'$as_ac_var'}
8125 $as_echo "$as_val"'`
8126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8127 $as_echo "$ac_res" >&6; }
8128 as_val=`eval 'as_val=${'$as_ac_var'}
8129 $as_echo "$as_val"'`
8130 if test "x$as_val" = x""yes; then
8131 cat >>confdefs.h <<_ACEOF
8132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8133 _ACEOF
8134
8135 fi
8136 done
8137
8138 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8139 $as_echo_n "checking for working mmap... " >&6; }
8140 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8141 $as_echo_n "(cached) " >&6
8142 else
8143 if test "$cross_compiling" = yes; then
8144 ac_cv_func_mmap_fixed_mapped=no
8145 else
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 /* malloc might have been renamed as rpl_malloc. */
8154 #undef malloc
8155
8156 /* Thanks to Mike Haertel and Jim Avera for this test.
8157 Here is a matrix of mmap possibilities:
8158 mmap private not fixed
8159 mmap private fixed at somewhere currently unmapped
8160 mmap private fixed at somewhere already mapped
8161 mmap shared not fixed
8162 mmap shared fixed at somewhere currently unmapped
8163 mmap shared fixed at somewhere already mapped
8164 For private mappings, we should verify that changes cannot be read()
8165 back from the file, nor mmap's back from the file at a different
8166 address. (There have been systems where private was not correctly
8167 implemented like the infamous i386 svr4.0, and systems where the
8168 VM page cache was not coherent with the file system buffer cache
8169 like early versions of FreeBSD and possibly contemporary NetBSD.)
8170 For shared mappings, we should conversely verify that changes get
8171 propagated back to all the places they're supposed to be.
8172
8173 Grep wants private fixed already mapped.
8174 The main things grep needs to know about mmap are:
8175 * does it exist and is it safe to write into the mmap'd area
8176 * how to use it (BSD variants) */
8177
8178 #include <fcntl.h>
8179 #include <sys/mman.h>
8180
8181 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8182 char *malloc ();
8183 #endif
8184
8185 /* This mess was copied from the GNU getpagesize.h. */
8186 #ifndef HAVE_GETPAGESIZE
8187 /* Assume that all systems that can run configure have sys/param.h. */
8188 # ifndef HAVE_SYS_PARAM_H
8189 # define HAVE_SYS_PARAM_H 1
8190 # endif
8191
8192 # ifdef _SC_PAGESIZE
8193 # define getpagesize() sysconf(_SC_PAGESIZE)
8194 # else /* no _SC_PAGESIZE */
8195 # ifdef HAVE_SYS_PARAM_H
8196 # include <sys/param.h>
8197 # ifdef EXEC_PAGESIZE
8198 # define getpagesize() EXEC_PAGESIZE
8199 # else /* no EXEC_PAGESIZE */
8200 # ifdef NBPG
8201 # define getpagesize() NBPG * CLSIZE
8202 # ifndef CLSIZE
8203 # define CLSIZE 1
8204 # endif /* no CLSIZE */
8205 # else /* no NBPG */
8206 # ifdef NBPC
8207 # define getpagesize() NBPC
8208 # else /* no NBPC */
8209 # ifdef PAGESIZE
8210 # define getpagesize() PAGESIZE
8211 # endif /* PAGESIZE */
8212 # endif /* no NBPC */
8213 # endif /* no NBPG */
8214 # endif /* no EXEC_PAGESIZE */
8215 # else /* no HAVE_SYS_PARAM_H */
8216 # define getpagesize() 8192 /* punt totally */
8217 # endif /* no HAVE_SYS_PARAM_H */
8218 # endif /* no _SC_PAGESIZE */
8219
8220 #endif /* no HAVE_GETPAGESIZE */
8221
8222 int
8223 main ()
8224 {
8225 char *data, *data2, *data3;
8226 int i, pagesize;
8227 int fd;
8228
8229 pagesize = getpagesize ();
8230
8231 /* First, make a file with some known garbage in it. */
8232 data = (char *) malloc (pagesize);
8233 if (!data)
8234 return 1;
8235 for (i = 0; i < pagesize; ++i)
8236 *(data + i) = rand ();
8237 umask (0);
8238 fd = creat ("conftest.mmap", 0600);
8239 if (fd < 0)
8240 return 1;
8241 if (write (fd, data, pagesize) != pagesize)
8242 return 1;
8243 close (fd);
8244
8245 /* Next, try to mmap the file at a fixed address which already has
8246 something else allocated at it. If we can, also make sure that
8247 we see the same garbage. */
8248 fd = open ("conftest.mmap", O_RDWR);
8249 if (fd < 0)
8250 return 1;
8251 data2 = (char *) malloc (2 * pagesize);
8252 if (!data2)
8253 return 1;
8254 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8257 return 1;
8258 for (i = 0; i < pagesize; ++i)
8259 if (*(data + i) != *(data2 + i))
8260 return 1;
8261
8262 /* Finally, make sure that changes to the mapped area do not
8263 percolate back to the file as seen by read(). (This is a bug on
8264 some variants of i386 svr4.0.) */
8265 for (i = 0; i < pagesize; ++i)
8266 *(data2 + i) = *(data2 + i) + 1;
8267 data3 = (char *) malloc (pagesize);
8268 if (!data3)
8269 return 1;
8270 if (read (fd, data3, pagesize) != pagesize)
8271 return 1;
8272 for (i = 0; i < pagesize; ++i)
8273 if (*(data + i) != *(data3 + i))
8274 return 1;
8275 close (fd);
8276 return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest$ac_exeext
8280 if { (ac_try="$ac_link"
8281 case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284 esac
8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286 $as_echo "$ac_try_echo") >&5
8287 (eval "$ac_link") 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_try") 2>&5
8298 ac_status=$?
8299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_func_mmap_fixed_mapped=yes
8302 else
8303 $as_echo "$as_me: program exited with status $ac_status" >&5
8304 $as_echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ( exit $ac_status )
8308 ac_cv_func_mmap_fixed_mapped=no
8309 fi
8310 rm -rf conftest.dSYM
8311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8312 fi
8313
8314
8315 fi
8316 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8317 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8318 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_MMAP 1
8322 _ACEOF
8323
8324 fi
8325 rm -f conftest.mmap
8326
8327 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8328 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8329 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test "$cross_compiling" = yes; then
8333 ac_cv_func_stat_empty_string_bug=yes
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 int
8343 main ()
8344 {
8345 struct stat sbuf;
8346 return stat ("", &sbuf) == 0;
8347 ;
8348 return 0;
8349 }
8350 _ACEOF
8351 rm -f conftest$ac_exeext
8352 if { (ac_try="$ac_link"
8353 case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356 esac
8357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8358 $as_echo "$ac_try_echo") >&5
8359 (eval "$ac_link") 2>&5
8360 ac_status=$?
8361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8368 $as_echo "$ac_try_echo") >&5
8369 (eval "$ac_try") 2>&5
8370 ac_status=$?
8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_cv_func_stat_empty_string_bug=no
8374 else
8375 $as_echo "$as_me: program exited with status $ac_status" >&5
8376 $as_echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ( exit $ac_status )
8380 ac_cv_func_stat_empty_string_bug=yes
8381 fi
8382 rm -rf conftest.dSYM
8383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8384 fi
8385
8386
8387 fi
8388 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8389 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8390 if test $ac_cv_func_stat_empty_string_bug = yes; then
8391 case " $LIBOBJS " in
8392 *" stat.$ac_objext "* ) ;;
8393 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8394 ;;
8395 esac
8396
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define HAVE_STAT_EMPTY_STRING_BUG 1
8400 _ACEOF
8401
8402 fi
8403
8404 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8405 $as_echo_n "checking for working strtod... " >&6; }
8406 if test "${ac_cv_func_strtod+set}" = set; then
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test "$cross_compiling" = yes; then
8410 ac_cv_func_strtod=no
8411 else
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418
8419 $ac_includes_default
8420 #ifndef strtod
8421 double strtod ();
8422 #endif
8423 int
8424 main()
8425 {
8426 {
8427 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8428 char *string = " +69";
8429 char *term;
8430 double value;
8431 value = strtod (string, &term);
8432 if (value != 69 || term != (string + 4))
8433 return 1;
8434 }
8435
8436 {
8437 /* Under Solaris 2.4, strtod returns the wrong value for the
8438 terminating character under some conditions. */
8439 char *string = "NaN";
8440 char *term;
8441 strtod (string, &term);
8442 if (term != string && *(term - 1) == 0)
8443 return 1;
8444 }
8445 return 0;
8446 }
8447
8448 _ACEOF
8449 rm -f conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456 $as_echo "$ac_try_echo") >&5
8457 (eval "$ac_link") 2>&5
8458 ac_status=$?
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466 $as_echo "$ac_try_echo") >&5
8467 (eval "$ac_try") 2>&5
8468 ac_status=$?
8469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_cv_func_strtod=yes
8472 else
8473 $as_echo "$as_me: program exited with status $ac_status" >&5
8474 $as_echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ( exit $ac_status )
8478 ac_cv_func_strtod=no
8479 fi
8480 rm -rf conftest.dSYM
8481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8482 fi
8483
8484
8485 fi
8486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8487 $as_echo "$ac_cv_func_strtod" >&6; }
8488 if test $ac_cv_func_strtod = no; then
8489 case " $LIBOBJS " in
8490 *" strtod.$ac_objext "* ) ;;
8491 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8492 ;;
8493 esac
8494
8495 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8496 $as_echo_n "checking for pow... " >&6; }
8497 if test "${ac_cv_func_pow+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8499 else
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8508 #define pow innocuous_pow
8509
8510 /* System header to define __stub macros and hopefully few prototypes,
8511 which can conflict with char pow (); below.
8512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8513 <limits.h> exists even on freestanding compilers. */
8514
8515 #ifdef __STDC__
8516 # include <limits.h>
8517 #else
8518 # include <assert.h>
8519 #endif
8520
8521 #undef pow
8522
8523 /* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 char pow ();
8530 /* The GNU C library defines this for functions which it implements
8531 to always fail with ENOSYS. Some functions are actually named
8532 something starting with __ and the normal name is an alias. */
8533 #if defined __stub_pow || defined __stub___pow
8534 choke me
8535 #endif
8536
8537 int
8538 main ()
8539 {
8540 return pow ();
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552 $as_echo "$ac_try_echo") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext && {
8563 test "$cross_compiling" = yes ||
8564 $as_test_x conftest$ac_exeext
8565 }; then
8566 ac_cv_func_pow=yes
8567 else
8568 $as_echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_func_pow=no
8572 fi
8573
8574 rm -rf conftest.dSYM
8575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8576 conftest$ac_exeext conftest.$ac_ext
8577 fi
8578 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8579 $as_echo "$ac_cv_func_pow" >&6; }
8580
8581 if test $ac_cv_func_pow = no; then
8582 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8583 $as_echo_n "checking for pow in -lm... " >&6; }
8584 if test "${ac_cv_lib_m_pow+set}" = set; then
8585 $as_echo_n "(cached) " >&6
8586 else
8587 ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-lm $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595
8596 /* Override any GCC internal prototype to avoid an error.
8597 Use char because int might match the return type of a GCC
8598 builtin and then its argument prototype would still apply. */
8599 #ifdef __cplusplus
8600 extern "C"
8601 #endif
8602 char pow ();
8603 int
8604 main ()
8605 {
8606 return pow ();
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8613 case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618 $as_echo "$ac_try_echo") >&5
8619 (eval "$ac_link") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest$ac_exeext && {
8629 test "$cross_compiling" = yes ||
8630 $as_test_x conftest$ac_exeext
8631 }; then
8632 ac_cv_lib_m_pow=yes
8633 else
8634 $as_echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_cv_lib_m_pow=no
8638 fi
8639
8640 rm -rf conftest.dSYM
8641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8642 conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8644 fi
8645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8646 $as_echo "$ac_cv_lib_m_pow" >&6; }
8647 if test "x$ac_cv_lib_m_pow" = x""yes; then
8648 POW_LIB=-lm
8649 else
8650 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8651 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8652 fi
8653
8654 fi
8655
8656 fi
8657
8658
8659 for ac_func in vprintf
8660 do
8661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8662 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8663 $as_echo_n "checking for $ac_func... " >&6; }
8664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h. */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8675 #define $ac_func innocuous_$ac_func
8676
8677 /* System header to define __stub macros and hopefully few prototypes,
8678 which can conflict with char $ac_func (); below.
8679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8680 <limits.h> exists even on freestanding compilers. */
8681
8682 #ifdef __STDC__
8683 # include <limits.h>
8684 #else
8685 # include <assert.h>
8686 #endif
8687
8688 #undef $ac_func
8689
8690 /* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 char $ac_func ();
8697 /* The GNU C library defines this for functions which it implements
8698 to always fail with ENOSYS. Some functions are actually named
8699 something starting with __ and the normal name is an alias. */
8700 #if defined __stub_$ac_func || defined __stub___$ac_func
8701 choke me
8702 #endif
8703
8704 int
8705 main ()
8706 {
8707 return $ac_func ();
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8714 case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717 esac
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720 (eval "$ac_link") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest$ac_exeext && {
8730 test "$cross_compiling" = yes ||
8731 $as_test_x conftest$ac_exeext
8732 }; then
8733 eval "$as_ac_var=yes"
8734 else
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 eval "$as_ac_var=no"
8739 fi
8740
8741 rm -rf conftest.dSYM
8742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743 conftest$ac_exeext conftest.$ac_ext
8744 fi
8745 ac_res=`eval 'as_val=${'$as_ac_var'}
8746 $as_echo "$as_val"'`
8747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8748 $as_echo "$ac_res" >&6; }
8749 as_val=`eval 'as_val=${'$as_ac_var'}
8750 $as_echo "$as_val"'`
8751 if test "x$as_val" = x""yes; then
8752 cat >>confdefs.h <<_ACEOF
8753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8754 _ACEOF
8755
8756 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8757 $as_echo_n "checking for _doprnt... " >&6; }
8758 if test "${ac_cv_func__doprnt+set}" = set; then
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8769 #define _doprnt innocuous__doprnt
8770
8771 /* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char _doprnt (); below.
8773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 <limits.h> exists even on freestanding compilers. */
8775
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8781
8782 #undef _doprnt
8783
8784 /* Override any GCC internal prototype to avoid an error.
8785 Use char because int might match the return type of a GCC
8786 builtin and then its argument prototype would still apply. */
8787 #ifdef __cplusplus
8788 extern "C"
8789 #endif
8790 char _doprnt ();
8791 /* The GNU C library defines this for functions which it implements
8792 to always fail with ENOSYS. Some functions are actually named
8793 something starting with __ and the normal name is an alias. */
8794 #if defined __stub__doprnt || defined __stub____doprnt
8795 choke me
8796 #endif
8797
8798 int
8799 main ()
8800 {
8801 return _doprnt ();
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (ac_try="$ac_link"
8808 case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811 esac
8812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8813 $as_echo "$ac_try_echo") >&5
8814 (eval "$ac_link") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest$ac_exeext && {
8824 test "$cross_compiling" = yes ||
8825 $as_test_x conftest$ac_exeext
8826 }; then
8827 ac_cv_func__doprnt=yes
8828 else
8829 $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832 ac_cv_func__doprnt=no
8833 fi
8834
8835 rm -rf conftest.dSYM
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837 conftest$ac_exeext conftest.$ac_ext
8838 fi
8839 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8840 $as_echo "$ac_cv_func__doprnt" >&6; }
8841 if test "x$ac_cv_func__doprnt" = x""yes; then
8842
8843 cat >>confdefs.h <<\_ACEOF
8844 #define HAVE_DOPRNT 1
8845 _ACEOF
8846
8847 fi
8848
8849 fi
8850 done
8851
8852
8853
8854 ################################################################################
8855 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8856 $as_echo_n "checking whether to use static linking... " >&6; }
8857 # Check whether --enable-static_link was given.
8858 if test "${enable_static_link+set}" = set; then
8859 enableval=$enable_static_link; STATIC_LINK=$enableval
8860 else
8861 STATIC_LINK=no
8862 fi
8863
8864 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8865 $as_echo "$STATIC_LINK" >&6; }
8866
8867 ################################################################################
8868
8869
8870 ################################################################################
8871 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8872 $as_echo_n "checking file owner... " >&6; }
8873 OWNER="root"
8874
8875
8876 # Check whether --with-user was given.
8877 if test "${with_user+set}" = set; then
8878 withval=$with_user; OWNER="$withval"
8879 fi
8880
8881 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8882 $as_echo "$OWNER" >&6; }
8883
8884 if test x$OWNER != x; then
8885 OWNER="-o $OWNER"
8886 fi
8887
8888 ################################################################################
8889 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8890 $as_echo_n "checking group owner... " >&6; }
8891 GROUP="root"
8892
8893 # Check whether --with-group was given.
8894 if test "${with_group+set}" = set; then
8895 withval=$with_group; GROUP="$withval"
8896 fi
8897
8898 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8899 $as_echo "$GROUP" >&6; }
8900
8901 if test x$GROUP != x; then
8902 GROUP="-g $GROUP"
8903 fi
8904
8905 ################################################################################
8906 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
8907 $as_echo_n "checking device node uid... " >&6; }
8908
8909
8910 # Check whether --with-device-uid was given.
8911 if test "${with_device_uid+set}" = set; then
8912 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8913 else
8914 DM_DEVICE_UID="0"
8915 fi
8916
8917 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8918 $as_echo "$DM_DEVICE_UID" >&6; }
8919
8920 ################################################################################
8921 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
8922 $as_echo_n "checking device node gid... " >&6; }
8923
8924
8925 # Check whether --with-device-gid was given.
8926 if test "${with_device_gid+set}" = set; then
8927 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8928 else
8929 DM_DEVICE_GID="0"
8930 fi
8931
8932 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8933 $as_echo "$DM_DEVICE_GID" >&6; }
8934
8935 ################################################################################
8936 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
8937 $as_echo_n "checking device node mode... " >&6; }
8938
8939
8940 # Check whether --with-device-mode was given.
8941 if test "${with_device_mode+set}" = set; then
8942 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8943 else
8944 DM_DEVICE_MODE="0600"
8945 fi
8946
8947 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8948 $as_echo "$DM_DEVICE_MODE" >&6; }
8949
8950 ################################################################################
8951 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8952 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
8953 # Check whether --enable-lvm1_fallback was given.
8954 if test "${enable_lvm1_fallback+set}" = set; then
8955 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8956 else
8957 LVM1_FALLBACK=no
8958 fi
8959
8960 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8961 $as_echo "$LVM1_FALLBACK" >&6; }
8962
8963 if test x$LVM1_FALLBACK = xyes; then
8964
8965 cat >>confdefs.h <<\_ACEOF
8966 #define LVM1_FALLBACK 1
8967 _ACEOF
8968
8969 fi
8970
8971 ################################################################################
8972 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8973 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
8974
8975 # Check whether --with-lvm1 was given.
8976 if test "${with_lvm1+set}" = set; then
8977 withval=$with_lvm1; LVM1="$withval"
8978 else
8979 LVM1="internal"
8980 fi
8981
8982 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
8983 $as_echo "$LVM1" >&6; }
8984
8985 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8986 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
8987 " >&5
8988 $as_echo "$as_me: error: --with-lvm1 parameter invalid
8989 " >&2;}
8990 { (exit 1); exit 1; }; }
8991 fi;
8992
8993 if test x$LVM1 = xinternal; then
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define LVM1_INTERNAL 1
8997 _ACEOF
8998
8999 fi
9000
9001 ################################################################################
9002 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9003 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9004
9005 # Check whether --with-pool was given.
9006 if test "${with_pool+set}" = set; then
9007 withval=$with_pool; POOL="$withval"
9008 else
9009 POOL="internal"
9010 fi
9011
9012 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9013 $as_echo "$POOL" >&6; }
9014
9015 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9016 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9017 " >&5
9018 $as_echo "$as_me: error: --with-pool parameter invalid
9019 " >&2;}
9020 { (exit 1); exit 1; }; }
9021 fi;
9022
9023 if test x$POOL = xinternal; then
9024
9025 cat >>confdefs.h <<\_ACEOF
9026 #define POOL_INTERNAL 1
9027 _ACEOF
9028
9029 fi
9030
9031 ################################################################################
9032 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9033 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9034
9035 # Check whether --with-cluster was given.
9036 if test "${with_cluster+set}" = set; then
9037 withval=$with_cluster; CLUSTER="$withval"
9038 fi
9039
9040 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9041 $as_echo "$CLUSTER" >&6; }
9042
9043 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9044 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9045 " >&5
9046 $as_echo "$as_me: error: --with-cluster parameter invalid
9047 " >&2;}
9048 { (exit 1); exit 1; }; }
9049 fi;
9050
9051 if test x$CLUSTER = xinternal; then
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define CLUSTER_LOCKING_INTERNAL 1
9055 _ACEOF
9056
9057 fi
9058
9059 ################################################################################
9060 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9061 $as_echo_n "checking whether to include snapshots... " >&6; }
9062
9063 # Check whether --with-snapshots was given.
9064 if test "${with_snapshots+set}" = set; then
9065 withval=$with_snapshots; SNAPSHOTS="$withval"
9066 else
9067 SNAPSHOTS="internal"
9068 fi
9069
9070 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9071 $as_echo "$SNAPSHOTS" >&6; }
9072
9073 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9074 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9075 " >&5
9076 $as_echo "$as_me: error: --with-snapshots parameter invalid
9077 " >&2;}
9078 { (exit 1); exit 1; }; }
9079 fi;
9080
9081 if test x$SNAPSHOTS = xinternal; then
9082
9083 cat >>confdefs.h <<\_ACEOF
9084 #define SNAPSHOT_INTERNAL 1
9085 _ACEOF
9086
9087 fi
9088
9089 ################################################################################
9090 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9091 $as_echo_n "checking whether to include mirrors... " >&6; }
9092
9093 # Check whether --with-mirrors was given.
9094 if test "${with_mirrors+set}" = set; then
9095 withval=$with_mirrors; MIRRORS="$withval"
9096 else
9097 MIRRORS="internal"
9098 fi
9099
9100 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9101 $as_echo "$MIRRORS" >&6; }
9102
9103 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9104 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9105 " >&5
9106 $as_echo "$as_me: error: --with-mirrors parameter invalid
9107 " >&2;}
9108 { (exit 1); exit 1; }; }
9109 fi;
9110
9111 if test x$MIRRORS = xinternal; then
9112
9113 cat >>confdefs.h <<\_ACEOF
9114 #define MIRRORED_INTERNAL 1
9115 _ACEOF
9116
9117 fi
9118
9119 ################################################################################
9120 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9121 $as_echo_n "checking whether to enable readline... " >&6; }
9122 # Check whether --enable-readline was given.
9123 if test "${enable_readline+set}" = set; then
9124 enableval=$enable_readline; READLINE=$enableval
9125 else
9126 READLINE=maybe
9127 fi
9128
9129 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9130 $as_echo "$READLINE" >&6; }
9131
9132 ################################################################################
9133 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9134 $as_echo_n "checking whether to enable realtime support... " >&6; }
9135 # Check whether --enable-realtime was given.
9136 if test "${enable_realtime+set}" = set; then
9137 enableval=$enable_realtime; REALTIME=$enableval
9138 fi
9139
9140 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9141 $as_echo "$REALTIME" >&6; }
9142
9143 ################################################################################
9144 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9145 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9146
9147 # Check whether --with-clvmd was given.
9148 if test "${with_clvmd+set}" = set; then
9149 withval=$with_clvmd; CLVMD="$withval"
9150 else
9151 CLVMD="none"
9152 fi
9153
9154 if test x$CLVMD = xyes; then
9155 CLVMD=all
9156 fi
9157 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9158 $as_echo "$CLVMD" >&6; }
9159
9160 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9161 CLUSTER=internal
9162 fi
9163
9164 ################################################################################
9165 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9166 $as_echo_n "checking whether to enable debugging... " >&6; }
9167 # Check whether --enable-debug was given.
9168 if test "${enable_debug+set}" = set; then
9169 enableval=$enable_debug; DEBUG=$enableval
9170 else
9171 DEBUG=no
9172 fi
9173
9174 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9175 $as_echo "$DEBUG" >&6; }
9176
9177 if test x$DEBUG = xyes; then
9178 COPTIMISE_FLAG=
9179 else
9180 CSCOPE_CMD=
9181 fi
9182
9183 ################################################################################
9184 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9185 $as_echo_n "checking for C optimisation flag... " >&6; }
9186
9187 # Check whether --with-optimisation was given.
9188 if test "${with_optimisation+set}" = set; then
9189 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9190 fi
9191
9192 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9193 $as_echo "$COPTIMISE_FLAG" >&6; }
9194
9195 ################################################################################
9196 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9197 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
9198 # Check whether --enable-profiling was given.
9199 if test "${enable_profiling+set}" = set; then
9200 enableval=$enable_profiling; PROFILING=$enableval
9201 else
9202 PROFILING=no
9203 fi
9204
9205 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9206 $as_echo "$PROFILING" >&6; }
9207
9208 if test "x$PROFILING" = xyes; then
9209 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9210 # Extract the first word of "lcov", so it can be a program name with args.
9211 set dummy lcov; ac_word=$2
9212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if test "${ac_cv_path_LCOV+set}" = set; then
9215 $as_echo_n "(cached) " >&6
9216 else
9217 case $LCOV in
9218 [\\/]* | ?:[\\/]*)
9219 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9220 ;;
9221 *)
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9224 do
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 break 2
9232 fi
9233 done
9234 done
9235 IFS=$as_save_IFS
9236
9237 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
9238 ;;
9239 esac
9240 fi
9241 LCOV=$ac_cv_path_LCOV
9242 if test -n "$LCOV"; then
9243 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9244 $as_echo "$LCOV" >&6; }
9245 else
9246 { $as_echo "$as_me:$LINENO: result: no" >&5
9247 $as_echo "no" >&6; }
9248 fi
9249
9250
9251 # Extract the first word of "genhtml", so it can be a program name with args.
9252 set dummy genhtml; ac_word=$2
9253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if test "${ac_cv_path_GENHTML+set}" = set; then
9256 $as_echo_n "(cached) " >&6
9257 else
9258 case $GENHTML in
9259 [\\/]* | ?:[\\/]*)
9260 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9261 ;;
9262 *)
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264 for as_dir in $PATH
9265 do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9270 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 break 2
9273 fi
9274 done
9275 done
9276 IFS=$as_save_IFS
9277
9278 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
9279 ;;
9280 esac
9281 fi
9282 GENHTML=$ac_cv_path_GENHTML
9283 if test -n "$GENHTML"; then
9284 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9285 $as_echo "$GENHTML" >&6; }
9286 else
9287 { $as_echo "$as_me:$LINENO: result: no" >&5
9288 $as_echo "no" >&6; }
9289 fi
9290
9291
9292 if test "$LCOV" = no -o "$GENHTML" = no ; then
9293 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9294 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9295 { (exit 1); exit 1; }; }
9296 fi
9297 fi
9298
9299 ################################################################################
9300 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9301 $as_echo_n "checking whether to use device-mapper... " >&6; }
9302 # Check whether --enable-devmapper was given.
9303 if test "${enable_devmapper+set}" = set; then
9304 enableval=$enable_devmapper; DEVMAPPER=$enableval
9305 fi
9306
9307 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9308 $as_echo "$DEVMAPPER" >&6; }
9309
9310 if test x$DEVMAPPER = xyes; then
9311
9312 cat >>confdefs.h <<\_ACEOF
9313 #define DEVMAPPER_SUPPORT 1
9314 _ACEOF
9315
9316 fi
9317
9318 ################################################################################
9319 # Check whether --enable-compat was given.
9320 if test "${enable_compat+set}" = set; then
9321 enableval=$enable_compat; DM_COMPAT=$enableval
9322 else
9323 DM_COMPAT=no
9324 fi
9325
9326
9327 ################################################################################
9328 # Check whether --enable-ioctl was given.
9329 if test "${enable_ioctl+set}" = set; then
9330 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9331 fi
9332
9333
9334 ################################################################################
9335 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9336 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9337 # Check whether --enable-o_direct was given.
9338 if test "${enable_o_direct+set}" = set; then
9339 enableval=$enable_o_direct; ODIRECT=$enableval
9340 fi
9341
9342 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9343 $as_echo "$ODIRECT" >&6; }
9344
9345 if test x$ODIRECT = xyes; then
9346
9347 cat >>confdefs.h <<\_ACEOF
9348 #define O_DIRECT_SUPPORT 1
9349 _ACEOF
9350
9351 fi
9352
9353 ################################################################################
9354 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9355 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9356 # Check whether --enable-cmdlib was given.
9357 if test "${enable_cmdlib+set}" = set; then
9358 enableval=$enable_cmdlib; CMDLIB=$enableval
9359 else
9360 CMDLIB=no
9361 fi
9362
9363 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9364 $as_echo "$CMDLIB" >&6; }
9365
9366 test x$CMDLIB = xyes \
9367 && LVM2CMD_LIB=-llvm2cmd \
9368 || LVM2CMD_LIB=
9369
9370 ################################################################################
9371 # Check whether --enable-pkgconfig was given.
9372 if test "${enable_pkgconfig+set}" = set; then
9373 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9374 else
9375 PKGCONFIG=no
9376 fi
9377
9378
9379 ################################################################################
9380 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9381 $as_echo_n "checking whether to install fsadm... " >&6; }
9382 # Check whether --enable-fsadm was given.
9383 if test "${enable_fsadm+set}" = set; then
9384 enableval=$enable_fsadm; FSADM=$enableval
9385 fi
9386
9387 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9388 $as_echo "$FSADM" >&6; }
9389
9390 ################################################################################
9391 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9392 $as_echo_n "checking whether to use dmeventd... " >&6; }
9393 # Check whether --enable-dmeventd was given.
9394 if test "${enable_dmeventd+set}" = set; then
9395 enableval=$enable_dmeventd; DMEVENTD=$enableval
9396 fi
9397
9398 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9399 $as_echo "$DMEVENTD" >&6; }
9400
9401 BUILD_DMEVENTD=$DMEVENTD
9402
9403 if test x$DMEVENTD = xyes; then
9404 if test x$MIRRORS != xinternal; then
9405 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
9406 " >&5
9407 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
9408 " >&2;}
9409 { (exit 1); exit 1; }; }
9410 fi
9411 if test x$CMDLIB = xno; then
9412 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9413 " >&5
9414 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9415 " >&2;}
9416 { (exit 1); exit 1; }; }
9417 fi
9418 fi
9419
9420 if test x$DMEVENTD = xyes; then
9421
9422 cat >>confdefs.h <<\_ACEOF
9423 #define DMEVENTD 1
9424 _ACEOF
9425
9426 fi
9427
9428 ################################################################################
9429
9430 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9431 $as_echo_n "checking for getline in -lc... " >&6; }
9432 if test "${ac_cv_lib_c_getline+set}" = set; then
9433 $as_echo_n "(cached) " >&6
9434 else
9435 ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-lc $LIBS"
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h. */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9443
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char getline ();
9451 int
9452 main ()
9453 {
9454 return getline ();
9455 ;
9456 return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464 esac
9465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9466 $as_echo "$ac_try_echo") >&5
9467 (eval "$ac_link") 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } && {
9474 test -z "$ac_c_werror_flag" ||
9475 test ! -s conftest.err
9476 } && test -s conftest$ac_exeext && {
9477 test "$cross_compiling" = yes ||
9478 $as_test_x conftest$ac_exeext
9479 }; then
9480 ac_cv_lib_c_getline=yes
9481 else
9482 $as_echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_lib_c_getline=no
9486 fi
9487
9488 rm -rf conftest.dSYM
9489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490 conftest$ac_exeext conftest.$ac_ext
9491 LIBS=$ac_check_lib_save_LIBS
9492 fi
9493 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9494 $as_echo "$ac_cv_lib_c_getline" >&6; }
9495 if test "x$ac_cv_lib_c_getline" = x""yes; then
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_GETLINE 1
9499 _ACEOF
9500
9501 fi
9502
9503
9504 ################################################################################
9505
9506 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9507 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9508 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9509 $as_echo_n "(cached) " >&6
9510 else
9511 ac_check_lib_save_LIBS=$LIBS
9512 LIBS="-lc $LIBS"
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519
9520 /* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9523 #ifdef __cplusplus
9524 extern "C"
9525 #endif
9526 char canonicalize_file_name ();
9527 int
9528 main ()
9529 {
9530 return canonicalize_file_name ();
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543 (eval "$ac_link") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest$ac_exeext && {
9553 test "$cross_compiling" = yes ||
9554 $as_test_x conftest$ac_exeext
9555 }; then
9556 ac_cv_lib_c_canonicalize_file_name=yes
9557 else
9558 $as_echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_lib_c_canonicalize_file_name=no
9562 fi
9563
9564 rm -rf conftest.dSYM
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9567 LIBS=$ac_check_lib_save_LIBS
9568 fi
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9570 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9571 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
9572
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_CANONICALIZE_FILE_NAME 1
9575 _ACEOF
9576
9577 fi
9578
9579
9580 ################################################################################
9581 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9582 then exec_prefix="";
9583 fi;
9584
9585 ################################################################################
9586 if test x$READLINE != xno; then
9587 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9588 $as_echo_n "checking for library containing tgetent... " >&6; }
9589 if test "${ac_cv_search_tgetent+set}" = set; then
9590 $as_echo_n "(cached) " >&6
9591 else
9592 ac_func_search_save_LIBS=$LIBS
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char tgetent ();
9607 int
9608 main ()
9609 {
9610 return tgetent ();
9611 ;
9612 return 0;
9613 }
9614 _ACEOF
9615 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9616 if test -z "$ac_lib"; then
9617 ac_res="none required"
9618 else
9619 ac_res=-l$ac_lib
9620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9621 fi
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (ac_try="$ac_link"
9624 case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627 esac
9628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9629 $as_echo "$ac_try_echo") >&5
9630 (eval "$ac_link") 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest$ac_exeext && {
9640 test "$cross_compiling" = yes ||
9641 $as_test_x conftest$ac_exeext
9642 }; then
9643 ac_cv_search_tgetent=$ac_res
9644 else
9645 $as_echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648
9649 fi
9650
9651 rm -rf conftest.dSYM
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext
9654 if test "${ac_cv_search_tgetent+set}" = set; then
9655 break
9656 fi
9657 done
9658 if test "${ac_cv_search_tgetent+set}" = set; then
9659 :
9660 else
9661 ac_cv_search_tgetent=no
9662 fi
9663 rm conftest.$ac_ext
9664 LIBS=$ac_func_search_save_LIBS
9665 fi
9666 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9667 $as_echo "$ac_cv_search_tgetent" >&6; }
9668 ac_res=$ac_cv_search_tgetent
9669 if test "$ac_res" != no; then
9670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9671 tg_found=yes
9672 else
9673 tg_found=no
9674 fi
9675
9676 test x$READLINE:$tg_found = xyes:no &&
9677 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
9678 --enable-readline option (which is enabled by default). Either disable readline
9679 support with --disable-readline or download and install termcap from:
9680 ftp.gnu.org/gnu/termcap
9681 Note: if you are using precompiled packages you will also need the development
9682 package as well (which may be called termcap-devel or something similar).
9683 Note: (n)curses also seems to work as a substitute for termcap. This was
9684 not found either - but you could try installing that as well.
9685 " >&5
9686 $as_echo "$as_me: error: termcap could not be found which is required for the
9687 --enable-readline option (which is enabled by default). Either disable readline
9688 support with --disable-readline or download and install termcap from:
9689 ftp.gnu.org/gnu/termcap
9690 Note: if you are using precompiled packages you will also need the development
9691 package as well (which may be called termcap-devel or something similar).
9692 Note: (n)curses also seems to work as a substitute for termcap. This was
9693 not found either - but you could try installing that as well.
9694 " >&2;}
9695 { (exit 1); exit 1; }; }
9696 fi
9697
9698 ################################################################################
9699 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9700 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9701 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9702 $as_echo_n "(cached) " >&6
9703 else
9704 ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-ldl $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char dlopen ();
9720 int
9721 main ()
9722 {
9723 return dlopen ();
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733 esac
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_link") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest$ac_exeext && {
9746 test "$cross_compiling" = yes ||
9747 $as_test_x conftest$ac_exeext
9748 }; then
9749 ac_cv_lib_dl_dlopen=yes
9750 else
9751 $as_echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 ac_cv_lib_dl_dlopen=no
9755 fi
9756
9757 rm -rf conftest.dSYM
9758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9759 conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9761 fi
9762 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9764 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9765 HAVE_LIBDL=yes
9766 else
9767 HAVE_LIBDL=no
9768 fi
9769
9770
9771 if [ "x$HAVE_LIBDL" = xyes ]; then
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_LIBDL 1
9775 _ACEOF
9776
9777 LIBS="-ldl $LIBS"
9778 else
9779 HAVE_LIBDL=no
9780 fi
9781
9782 ################################################################################
9783 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9784 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9785 \) -a "x$STATIC_LINK" = xyes ];
9786 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
9787 " >&5
9788 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
9789 " >&2;}
9790 { (exit 1); exit 1; }; }
9791 fi
9792
9793 ################################################################################
9794 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9795 $as_echo_n "checking whether to enable selinux support... " >&6; }
9796 # Check whether --enable-selinux was given.
9797 if test "${enable_selinux+set}" = set; then
9798 enableval=$enable_selinux; SELINUX=$enableval
9799 fi
9800
9801 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
9802 $as_echo "$SELINUX" >&6; }
9803
9804 ################################################################################
9805 if test x$SELINUX = xyes; then
9806 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9807 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9808 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9810 else
9811 ac_check_lib_save_LIBS=$LIBS
9812 LIBS="-lsepol $LIBS"
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h. */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char sepol_check_context ();
9827 int
9828 main ()
9829 {
9830 return sepol_check_context ();
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_link") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest$ac_exeext && {
9853 test "$cross_compiling" = yes ||
9854 $as_test_x conftest$ac_exeext
9855 }; then
9856 ac_cv_lib_sepol_sepol_check_context=yes
9857 else
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_cv_lib_sepol_sepol_check_context=no
9862 fi
9863
9864 rm -rf conftest.dSYM
9865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9868 fi
9869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9870 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9871 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
9872 HAVE_SEPOL=yes
9873 else
9874 HAVE_SEPOL=no
9875 fi
9876
9877
9878 if test x$HAVE_SEPOL = xyes; then
9879
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_SEPOL 1
9882 _ACEOF
9883
9884 LIBS="-lsepol $LIBS"
9885 fi
9886
9887 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9888 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9889 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
9890 $as_echo_n "(cached) " >&6
9891 else
9892 ac_check_lib_save_LIBS=$LIBS
9893 LIBS="-lselinux $LIBS"
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900
9901 /* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 char is_selinux_enabled ();
9908 int
9909 main ()
9910 {
9911 return is_selinux_enabled ();
9912 ;
9913 return 0;
9914 }
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9918 case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9923 $as_echo "$ac_try_echo") >&5
9924 (eval "$ac_link") 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest$ac_exeext && {
9934 test "$cross_compiling" = yes ||
9935 $as_test_x conftest$ac_exeext
9936 }; then
9937 ac_cv_lib_selinux_is_selinux_enabled=yes
9938 else
9939 $as_echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_selinux_is_selinux_enabled=no
9943 fi
9944
9945 rm -rf conftest.dSYM
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9951 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9952 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
9953 HAVE_SELINUX=yes
9954 else
9955 HAVE_SELINUX=no
9956 fi
9957
9958
9959 if test x$HAVE_SELINUX = xyes; then
9960
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_SELINUX 1
9963 _ACEOF
9964
9965 LIBS="-lselinux $LIBS"
9966 else
9967 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9968 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9969 fi
9970
9971 # With --enable-static_link and selinux enabled, linking
9972 # fails on at least Debian unstable due to unsatisfied references
9973 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9974 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9975 lvm_saved_libs=$LIBS
9976 LIBS="$LIBS -static"
9977 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9978 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
9979 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9980 $as_echo_n "(cached) " >&6
9981 else
9982 ac_func_search_save_LIBS=$LIBS
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char pthread_mutex_lock ();
9997 int
9998 main ()
9999 {
10000 return pthread_mutex_lock ();
10001 ;
10002 return 0;
10003 }
10004 _ACEOF
10005 for ac_lib in '' pthread; do
10006 if test -z "$ac_lib"; then
10007 ac_res="none required"
10008 else
10009 ac_res=-l$ac_lib
10010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10011 fi
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017 esac
10018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10019 $as_echo "$ac_try_echo") >&5
10020 (eval "$ac_link") 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
10025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest$ac_exeext && {
10030 test "$cross_compiling" = yes ||
10031 $as_test_x conftest$ac_exeext
10032 }; then
10033 ac_cv_search_pthread_mutex_lock=$ac_res
10034 else
10035 $as_echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038
10039 fi
10040
10041 rm -rf conftest.dSYM
10042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10043 conftest$ac_exeext
10044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10045 break
10046 fi
10047 done
10048 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10049 :
10050 else
10051 ac_cv_search_pthread_mutex_lock=no
10052 fi
10053 rm conftest.$ac_ext
10054 LIBS=$ac_func_search_save_LIBS
10055 fi
10056 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10057 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10058 ac_res=$ac_cv_search_pthread_mutex_lock
10059 if test "$ac_res" != no; then
10060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10061 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10062 LIB_PTHREAD=-lpthread
10063 fi
10064
10065 LIBS=$lvm_saved_libs
10066 fi
10067 fi
10068
10069 ################################################################################
10070 if test x$REALTIME = xyes; then
10071 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10072 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10073 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
10074 $as_echo_n "(cached) " >&6
10075 else
10076 ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-lrt $LIBS"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char clock_gettime ();
10092 int
10093 main ()
10094 {
10095 return clock_gettime ();
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105 esac
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108 (eval "$ac_link") 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest$ac_exeext && {
10118 test "$cross_compiling" = yes ||
10119 $as_test_x conftest$ac_exeext
10120 }; then
10121 ac_cv_lib_rt_clock_gettime=yes
10122 else
10123 $as_echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126 ac_cv_lib_rt_clock_gettime=no
10127 fi
10128
10129 rm -rf conftest.dSYM
10130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10133 fi
10134 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10135 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10136 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
10137 HAVE_REALTIME=yes
10138 else
10139 HAVE_REALTIME=no
10140 fi
10141
10142
10143 if test x$HAVE_REALTIME = xyes; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_REALTIME 1
10147 _ACEOF
10148
10149 LIBS="-lrt $LIBS"
10150 else
10151 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10152 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
10153 fi
10154 fi
10155
10156 ################################################################################
10157
10158 for ac_header in getopt.h
10159 do
10160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10163 $as_echo_n "checking for $ac_header... " >&6; }
10164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10165 $as_echo_n "(cached) " >&6
10166 fi
10167 ac_res=`eval 'as_val=${'$as_ac_Header'}
10168 $as_echo "$as_val"'`
10169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10170 $as_echo "$ac_res" >&6; }
10171 else
10172 # Is the header compilable?
10173 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10174 $as_echo_n "checking $ac_header usability... " >&6; }
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 $ac_includes_default
10182 #include <$ac_header>
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189 esac
10190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10191 $as_echo "$ac_try_echo") >&5
10192 (eval "$ac_compile") 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest.$ac_objext; then
10202 ac_header_compiler=yes
10203 else
10204 $as_echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_header_compiler=no
10208 fi
10209
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10212 $as_echo "$ac_header_compiler" >&6; }
10213
10214 # Is the header present?
10215 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10216 $as_echo_n "checking $ac_header presence... " >&6; }
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h. */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 #include <$ac_header>
10224 _ACEOF
10225 if { (ac_try="$ac_cpp conftest.$ac_ext"
10226 case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229 esac
10230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10231 $as_echo "$ac_try_echo") >&5
10232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } >/dev/null && {
10239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 }; then
10242 ac_header_preproc=yes
10243 else
10244 $as_echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10246
10247 ac_header_preproc=no
10248 fi
10249
10250 rm -f conftest.err conftest.$ac_ext
10251 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10252 $as_echo "$ac_header_preproc" >&6; }
10253
10254 # So? What about this header?
10255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10256 yes:no: )
10257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10258 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10261 ac_header_preproc=yes
10262 ;;
10263 no:yes:* )
10264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10265 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10267 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10269 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10276
10277 ;;
10278 esac
10279 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10280 $as_echo_n "checking for $ac_header... " >&6; }
10281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10282 $as_echo_n "(cached) " >&6
10283 else
10284 eval "$as_ac_Header=\$ac_header_preproc"
10285 fi
10286 ac_res=`eval 'as_val=${'$as_ac_Header'}
10287 $as_echo "$as_val"'`
10288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10289 $as_echo "$ac_res" >&6; }
10290
10291 fi
10292 as_val=`eval 'as_val=${'$as_ac_Header'}
10293 $as_echo "$as_val"'`
10294 if test "x$as_val" = x""yes; then
10295 cat >>confdefs.h <<_ACEOF
10296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10297 _ACEOF
10298
10299 cat >>confdefs.h <<\_ACEOF
10300 #define HAVE_GETOPTLONG 1
10301 _ACEOF
10302
10303 fi
10304
10305 done
10306
10307
10308 ################################################################################
10309 if test x$READLINE != xno; then
10310 rl_found=yes
10311
10312 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10313 $as_echo_n "checking for readline in -lreadline... " >&6; }
10314 if test "${ac_cv_lib_readline_readline+set}" = set; then
10315 $as_echo_n "(cached) " >&6
10316 else
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lreadline $LIBS"
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325
10326 /* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char readline ();
10333 int
10334 main ()
10335 {
10336 return readline ();
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (ac_try="$ac_link"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346 esac
10347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348 $as_echo "$ac_try_echo") >&5
10349 (eval "$ac_link") 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && {
10356 test -z "$ac_c_werror_flag" ||
10357 test ! -s conftest.err
10358 } && test -s conftest$ac_exeext && {
10359 test "$cross_compiling" = yes ||
10360 $as_test_x conftest$ac_exeext
10361 }; then
10362 ac_cv_lib_readline_readline=yes
10363 else
10364 $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 ac_cv_lib_readline_readline=no
10368 fi
10369
10370 rm -rf conftest.dSYM
10371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10376 $as_echo "$ac_cv_lib_readline_readline" >&6; }
10377 if test "x$ac_cv_lib_readline_readline" = x""yes; then
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_LIBREADLINE 1
10380 _ACEOF
10381
10382 LIBS="-lreadline $LIBS"
10383
10384 else
10385 rl_found=no
10386 fi
10387
10388 test x$READLINE:$rl_found = xyes:no &&
10389 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
10390 --enable-readline option (which is enabled by default). Either disable readline
10391 support with --disable-readline or download and install readline from:
10392 ftp.gnu.org/gnu/readline
10393 Note: if you are using precompiled packages you will also need the development
10394 package as well (which may be called readline-devel or something similar).
10395 " >&5
10396 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
10397 --enable-readline option (which is enabled by default). Either disable readline
10398 support with --disable-readline or download and install readline from:
10399 ftp.gnu.org/gnu/readline
10400 Note: if you are using precompiled packages you will also need the development
10401 package as well (which may be called readline-devel or something similar).
10402 " >&2;}
10403 { (exit 1); exit 1; }; }
10404 if test $rl_found = yes; then
10405
10406 for ac_func in rl_completion_matches
10407 do
10408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10409 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10410 $as_echo_n "checking for $ac_func... " >&6; }
10411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10412 $as_echo_n "(cached) " >&6
10413 else
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10422 #define $ac_func innocuous_$ac_func
10423
10424 /* System header to define __stub macros and hopefully few prototypes,
10425 which can conflict with char $ac_func (); below.
10426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10427 <limits.h> exists even on freestanding compilers. */
10428
10429 #ifdef __STDC__
10430 # include <limits.h>
10431 #else
10432 # include <assert.h>
10433 #endif
10434
10435 #undef $ac_func
10436
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char $ac_func ();
10444 /* The GNU C library defines this for functions which it implements
10445 to always fail with ENOSYS. Some functions are actually named
10446 something starting with __ and the normal name is an alias. */
10447 #if defined __stub_$ac_func || defined __stub___$ac_func
10448 choke me
10449 #endif
10450
10451 int
10452 main ()
10453 {
10454 return $ac_func ();
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.$ac_objext conftest$ac_exeext
10460 if { (ac_try="$ac_link"
10461 case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10464 esac
10465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10466 $as_echo "$ac_try_echo") >&5
10467 (eval "$ac_link") 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest$ac_exeext && {
10477 test "$cross_compiling" = yes ||
10478 $as_test_x conftest$ac_exeext
10479 }; then
10480 eval "$as_ac_var=yes"
10481 else
10482 $as_echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485 eval "$as_ac_var=no"
10486 fi
10487
10488 rm -rf conftest.dSYM
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 fi
10492 ac_res=`eval 'as_val=${'$as_ac_var'}
10493 $as_echo "$as_val"'`
10494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10495 $as_echo "$ac_res" >&6; }
10496 as_val=`eval 'as_val=${'$as_ac_var'}
10497 $as_echo "$as_val"'`
10498 if test "x$as_val" = x""yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10501 _ACEOF
10502
10503 fi
10504 done
10505
10506
10507 cat >>confdefs.h <<\_ACEOF
10508 #define READLINE_SUPPORT 1
10509 _ACEOF
10510
10511 fi
10512 fi
10513
10514 ################################################################################
10515 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10516 $as_echo_n "checking whether to enable internationalisation... " >&6; }
10517 # Check whether --enable-nls was given.
10518 if test "${enable_nls+set}" = set; then
10519 enableval=$enable_nls; INTL=$enableval
10520 else
10521 INTL=no
10522 fi
10523
10524 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
10525 $as_echo "$INTL" >&6; }
10526
10527 if test x$INTL = xyes; then
10528 # FIXME - Move this - can be device-mapper too
10529 INTL_PACKAGE="lvm2"
10530 # Extract the first word of "msgfmt", so it can be a program name with args.
10531 set dummy msgfmt; ac_word=$2
10532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if test "${ac_cv_path_MSGFMT+set}" = set; then
10535 $as_echo_n "(cached) " >&6
10536 else
10537 case $MSGFMT in
10538 [\\/]* | ?:[\\/]*)
10539 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10540 ;;
10541 *)
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10544 do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10552 fi
10553 done
10554 done
10555 IFS=$as_save_IFS
10556
10557 ;;
10558 esac
10559 fi
10560 MSGFMT=$ac_cv_path_MSGFMT
10561 if test -n "$MSGFMT"; then
10562 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10563 $as_echo "$MSGFMT" >&6; }
10564 else
10565 { $as_echo "$as_me:$LINENO: result: no" >&5
10566 $as_echo "no" >&6; }
10567 fi
10568
10569
10570 if [ "x$MSGFMT" == x ];
10571 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10572 " >&5
10573 $as_echo "$as_me: error: msgfmt not found in path $PATH
10574 " >&2;}
10575 { (exit 1); exit 1; }; }
10576 fi;
10577
10578
10579 # Check whether --with-localedir was given.
10580 if test "${with_localedir+set}" = set; then
10581 withval=$with_localedir; LOCALEDIR="$withval"
10582 else
10583 LOCALEDIR='${prefix}/share/locale'
10584 fi
10585
10586 fi
10587
10588 ################################################################################
10589
10590 # Check whether --with-confdir was given.
10591 if test "${with_confdir+set}" = set; then
10592 withval=$with_confdir; CONFDIR="$withval"
10593 else
10594 CONFDIR='/etc'
10595 fi
10596
10597
10598
10599 # Check whether --with-staticdir was given.
10600 if test "${with_staticdir+set}" = set; then
10601 withval=$with_staticdir; STATICDIR="$withval"
10602 else
10603 STATICDIR='${exec_prefix}/sbin'
10604 fi
10605
10606
10607
10608 # Check whether --with-usrlibdir was given.
10609 if test "${with_usrlibdir+set}" = set; then
10610 withval=$with_usrlibdir; usrlibdir="$withval"
10611 else
10612 usrlibdir='${prefix}/lib'
10613 fi
10614
10615
10616
10617 # Check whether --with-usrsbindir was given.
10618 if test "${with_usrsbindir+set}" = set; then
10619 withval=$with_usrsbindir; usrsbindir="$withval"
10620 else
10621 usrsbindir='${prefix}/sbin'
10622 fi
10623
10624
10625 ################################################################################
10626 if test x$READLINE = xyes; then
10627
10628
10629 for ac_header in readline/readline.h readline/history.h
10630 do
10631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10634 $as_echo_n "checking for $ac_header... " >&6; }
10635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10636 $as_echo_n "(cached) " >&6
10637 fi
10638 ac_res=`eval 'as_val=${'$as_ac_Header'}
10639 $as_echo "$as_val"'`
10640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10641 $as_echo "$ac_res" >&6; }
10642 else
10643 # Is the header compilable?
10644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 $as_echo_n "checking $ac_header usability... " >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 $ac_includes_default
10653 #include <$ac_header>
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660 esac
10661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663 (eval "$ac_compile") 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest.$ac_objext; then
10673 ac_header_compiler=yes
10674 else
10675 $as_echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_header_compiler=no
10679 fi
10680
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683 $as_echo "$ac_header_compiler" >&6; }
10684
10685 # Is the header present?
10686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687 $as_echo_n "checking $ac_header presence... " >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <$ac_header>
10695 _ACEOF
10696 if { (ac_try="$ac_cpp conftest.$ac_ext"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10702 $as_echo "$ac_try_echo") >&5
10703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null && {
10710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 }; then
10713 ac_header_preproc=yes
10714 else
10715 $as_echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 ac_header_preproc=no
10719 fi
10720
10721 rm -f conftest.err conftest.$ac_ext
10722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10723 $as_echo "$ac_header_preproc" >&6; }
10724
10725 # So? What about this header?
10726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10727 yes:no: )
10728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10732 ac_header_preproc=yes
10733 ;;
10734 no:yes:* )
10735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10747
10748 ;;
10749 esac
10750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10751 $as_echo_n "checking for $ac_header... " >&6; }
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753 $as_echo_n "(cached) " >&6
10754 else
10755 eval "$as_ac_Header=\$ac_header_preproc"
10756 fi
10757 ac_res=`eval 'as_val=${'$as_ac_Header'}
10758 $as_echo "$as_val"'`
10759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10760 $as_echo "$ac_res" >&6; }
10761
10762 fi
10763 as_val=`eval 'as_val=${'$as_ac_Header'}
10764 $as_echo "$as_val"'`
10765 if test "x$as_val" = x""yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768 _ACEOF
10769
10770 else
10771 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10772 $as_echo "$as_me: error: bailing out" >&2;}
10773 { (exit 1); exit 1; }; }
10774 fi
10775
10776 done
10777
10778 fi
10779
10780 if test x$CLVMD != xnone; then
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 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
10792 do
10793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10796 $as_echo_n "checking for $ac_header... " >&6; }
10797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10798 $as_echo_n "(cached) " >&6
10799 fi
10800 ac_res=`eval 'as_val=${'$as_ac_Header'}
10801 $as_echo "$as_val"'`
10802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10803 $as_echo "$ac_res" >&6; }
10804 else
10805 # Is the header compilable?
10806 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10807 $as_echo_n "checking $ac_header usability... " >&6; }
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 $ac_includes_default
10815 #include <$ac_header>
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (ac_try="$ac_compile"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10824 $as_echo "$ac_try_echo") >&5
10825 (eval "$ac_compile") 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.$ac_objext; then
10835 ac_header_compiler=yes
10836 else
10837 $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840 ac_header_compiler=no
10841 fi
10842
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 $as_echo "$ac_header_compiler" >&6; }
10846
10847 # Is the header present?
10848 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10849 $as_echo_n "checking $ac_header presence... " >&6; }
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <$ac_header>
10857 _ACEOF
10858 if { (ac_try="$ac_cpp conftest.$ac_ext"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } >/dev/null && {
10872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 }; then
10875 ac_header_preproc=yes
10876 else
10877 $as_echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_header_preproc=no
10881 fi
10882
10883 rm -f conftest.err conftest.$ac_ext
10884 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10885 $as_echo "$ac_header_preproc" >&6; }
10886
10887 # So? What about this header?
10888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10889 yes:no: )
10890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10891 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10894 ac_header_preproc=yes
10895 ;;
10896 no:yes:* )
10897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10898 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10900 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10902 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10904 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10908 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10909
10910 ;;
10911 esac
10912 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10913 $as_echo_n "checking for $ac_header... " >&6; }
10914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 $as_echo_n "(cached) " >&6
10916 else
10917 eval "$as_ac_Header=\$ac_header_preproc"
10918 fi
10919 ac_res=`eval 'as_val=${'$as_ac_Header'}
10920 $as_echo "$as_val"'`
10921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10922 $as_echo "$ac_res" >&6; }
10923
10924 fi
10925 as_val=`eval 'as_val=${'$as_ac_Header'}
10926 $as_echo "$as_val"'`
10927 if test "x$as_val" = x""yes; then
10928 cat >>confdefs.h <<_ACEOF
10929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930 _ACEOF
10931
10932 else
10933 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10934 $as_echo "$as_me: error: bailing out" >&2;}
10935 { (exit 1); exit 1; }; }
10936 fi
10937
10938 done
10939
10940
10941
10942
10943
10944
10945 for ac_func in dup2 getmntent memmove select socket
10946 do
10947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10949 $as_echo_n "checking for $ac_func... " >&6; }
10950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10951 $as_echo_n "(cached) " >&6
10952 else
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10961 #define $ac_func innocuous_$ac_func
10962
10963 /* System header to define __stub macros and hopefully few prototypes,
10964 which can conflict with char $ac_func (); below.
10965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966 <limits.h> exists even on freestanding compilers. */
10967
10968 #ifdef __STDC__
10969 # include <limits.h>
10970 #else
10971 # include <assert.h>
10972 #endif
10973
10974 #undef $ac_func
10975
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char $ac_func ();
10983 /* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
10986 #if defined __stub_$ac_func || defined __stub___$ac_func
10987 choke me
10988 #endif
10989
10990 int
10991 main ()
10992 {
10993 return $ac_func ();
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (ac_try="$ac_link"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11005 $as_echo "$ac_try_echo") >&5
11006 (eval "$ac_link") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } && {
11013 test -z "$ac_c_werror_flag" ||
11014 test ! -s conftest.err
11015 } && test -s conftest$ac_exeext && {
11016 test "$cross_compiling" = yes ||
11017 $as_test_x conftest$ac_exeext
11018 }; then
11019 eval "$as_ac_var=yes"
11020 else
11021 $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 eval "$as_ac_var=no"
11025 fi
11026
11027 rm -rf conftest.dSYM
11028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11029 conftest$ac_exeext conftest.$ac_ext
11030 fi
11031 ac_res=`eval 'as_val=${'$as_ac_var'}
11032 $as_echo "$as_val"'`
11033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11034 $as_echo "$ac_res" >&6; }
11035 as_val=`eval 'as_val=${'$as_ac_var'}
11036 $as_echo "$as_val"'`
11037 if test "x$as_val" = x""yes; then
11038 cat >>confdefs.h <<_ACEOF
11039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040 _ACEOF
11041
11042 else
11043 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11044 $as_echo "$as_me: error: bailing out" >&2;}
11045 { (exit 1); exit 1; }; }
11046 fi
11047 done
11048
11049 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11050 # -lseq on Dynix/PTX, -lgen on Unixware.
11051 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11052 $as_echo_n "checking for library containing getmntent... " >&6; }
11053 if test "${ac_cv_search_getmntent+set}" = set; then
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_func_search_save_LIBS=$LIBS
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char getmntent ();
11071 int
11072 main ()
11073 {
11074 return getmntent ();
11075 ;
11076 return 0;
11077 }
11078 _ACEOF
11079 for ac_lib in '' sun seq gen; do
11080 if test -z "$ac_lib"; then
11081 ac_res="none required"
11082 else
11083 ac_res=-l$ac_lib
11084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11085 fi
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (ac_try="$ac_link"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11093 $as_echo "$ac_try_echo") >&5
11094 (eval "$ac_link") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext && {
11104 test "$cross_compiling" = yes ||
11105 $as_test_x conftest$ac_exeext
11106 }; then
11107 ac_cv_search_getmntent=$ac_res
11108 else
11109 $as_echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112
11113 fi
11114
11115 rm -rf conftest.dSYM
11116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11117 conftest$ac_exeext
11118 if test "${ac_cv_search_getmntent+set}" = set; then
11119 break
11120 fi
11121 done
11122 if test "${ac_cv_search_getmntent+set}" = set; then
11123 :
11124 else
11125 ac_cv_search_getmntent=no
11126 fi
11127 rm conftest.$ac_ext
11128 LIBS=$ac_func_search_save_LIBS
11129 fi
11130 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11131 $as_echo "$ac_cv_search_getmntent" >&6; }
11132 ac_res=$ac_cv_search_getmntent
11133 if test "$ac_res" != no; then
11134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11135 ac_cv_func_getmntent=yes
11136
11137 cat >>confdefs.h <<\_ACEOF
11138 #define HAVE_GETMNTENT 1
11139 _ACEOF
11140
11141 else
11142 ac_cv_func_getmntent=no
11143 fi
11144
11145
11146 # AC_FUNC_REALLOC
11147
11148
11149 for ac_header in sys/select.h sys/socket.h
11150 do
11151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 $as_echo_n "checking for $ac_header... " >&6; }
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 $as_echo_n "(cached) " >&6
11157 fi
11158 ac_res=`eval 'as_val=${'$as_ac_Header'}
11159 $as_echo "$as_val"'`
11160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11161 $as_echo "$ac_res" >&6; }
11162 else
11163 # Is the header compilable?
11164 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11165 $as_echo_n "checking $ac_header usability... " >&6; }
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h. */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11172 $ac_includes_default
11173 #include <$ac_header>
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (ac_try="$ac_compile"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11182 $as_echo "$ac_try_echo") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest.$ac_objext; then
11193 ac_header_compiler=yes
11194 else
11195 $as_echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11197
11198 ac_header_compiler=no
11199 fi
11200
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 $as_echo "$ac_header_compiler" >&6; }
11204
11205 # Is the header present?
11206 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11207 $as_echo_n "checking $ac_header presence... " >&6; }
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <$ac_header>
11215 _ACEOF
11216 if { (ac_try="$ac_cpp conftest.$ac_ext"
11217 case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220 esac
11221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222 $as_echo "$ac_try_echo") >&5
11223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } >/dev/null && {
11230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11231 test ! -s conftest.err
11232 }; then
11233 ac_header_preproc=yes
11234 else
11235 $as_echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_header_preproc=no
11239 fi
11240
11241 rm -f conftest.err conftest.$ac_ext
11242 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 $as_echo "$ac_header_preproc" >&6; }
11244
11245 # So? What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247 yes:no: )
11248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11249 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11251 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11252 ac_header_preproc=yes
11253 ;;
11254 no:yes:* )
11255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11256 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11258 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11260 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11262 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11264 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11266 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11267
11268 ;;
11269 esac
11270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 $as_echo_n "checking for $ac_header... " >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 $as_echo_n "(cached) " >&6
11274 else
11275 eval "$as_ac_Header=\$ac_header_preproc"
11276 fi
11277 ac_res=`eval 'as_val=${'$as_ac_Header'}
11278 $as_echo "$as_val"'`
11279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11280 $as_echo "$ac_res" >&6; }
11281
11282 fi
11283 as_val=`eval 'as_val=${'$as_ac_Header'}
11284 $as_echo "$as_val"'`
11285 if test "x$as_val" = x""yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288 _ACEOF
11289
11290 fi
11291
11292 done
11293
11294 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11295 $as_echo_n "checking types of arguments for select... " >&6; }
11296 if test "${ac_cv_func_select_args+set}" = set; then
11297 $as_echo_n "(cached) " >&6
11298 else
11299 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11300 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11301 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #ifdef HAVE_SYS_SELECT_H
11310 # include <sys/select.h>
11311 #endif
11312 #ifdef HAVE_SYS_SOCKET_H
11313 # include <sys/socket.h>
11314 #endif
11315
11316 int
11317 main ()
11318 {
11319 extern int select ($ac_arg1,
11320 $ac_arg234, $ac_arg234, $ac_arg234,
11321 $ac_arg5);
11322 ;
11323 return 0;
11324 }
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331 esac
11332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333 $as_echo "$ac_try_echo") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
11344 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11345 else
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349
11350 fi
11351
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 done
11354 done
11355 done
11356 # Provide a safe default value.
11357 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11358
11359 fi
11360 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11361 $as_echo "$ac_cv_func_select_args" >&6; }
11362 ac_save_IFS=$IFS; IFS=','
11363 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11364 IFS=$ac_save_IFS
11365 shift
11366
11367 cat >>confdefs.h <<_ACEOF
11368 #define SELECT_TYPE_ARG1 $1
11369 _ACEOF
11370
11371
11372 cat >>confdefs.h <<_ACEOF
11373 #define SELECT_TYPE_ARG234 ($2)
11374 _ACEOF
11375
11376
11377 cat >>confdefs.h <<_ACEOF
11378 #define SELECT_TYPE_ARG5 ($3)
11379 _ACEOF
11380
11381 rm -f conftest*
11382
11383 fi
11384
11385 if test x$CLUSTER != xnone; then
11386
11387
11388 for ac_header in sys/socket.h sys/un.h
11389 do
11390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11393 $as_echo_n "checking for $ac_header... " >&6; }
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 $as_echo_n "(cached) " >&6
11396 fi
11397 ac_res=`eval 'as_val=${'$as_ac_Header'}
11398 $as_echo "$as_val"'`
11399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11400 $as_echo "$ac_res" >&6; }
11401 else
11402 # Is the header compilable?
11403 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11404 $as_echo_n "checking $ac_header usability... " >&6; }
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h. */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 #include <$ac_header>
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (ac_try="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421 $as_echo "$ac_try_echo") >&5
11422 (eval "$ac_compile") 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest.$ac_objext; then
11432 ac_header_compiler=yes
11433 else
11434 $as_echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11436
11437 ac_header_compiler=no
11438 fi
11439
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11442 $as_echo "$ac_header_compiler" >&6; }
11443
11444 # Is the header present?
11445 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11446 $as_echo_n "checking $ac_header presence... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <$ac_header>
11454 _ACEOF
11455 if { (ac_try="$ac_cpp conftest.$ac_ext"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459 esac
11460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461 $as_echo "$ac_try_echo") >&5
11462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } >/dev/null && {
11469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 }; then
11472 ac_header_preproc=yes
11473 else
11474 $as_echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 ac_header_preproc=no
11478 fi
11479
11480 rm -f conftest.err conftest.$ac_ext
11481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11482 $as_echo "$ac_header_preproc" >&6; }
11483
11484 # So? What about this header?
11485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11486 yes:no: )
11487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11488 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11491 ac_header_preproc=yes
11492 ;;
11493 no:yes:* )
11494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11495 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11497 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11499 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11501 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11503 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11505 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11506
11507 ;;
11508 esac
11509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11510 $as_echo_n "checking for $ac_header... " >&6; }
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 $as_echo_n "(cached) " >&6
11513 else
11514 eval "$as_ac_Header=\$ac_header_preproc"
11515 fi
11516 ac_res=`eval 'as_val=${'$as_ac_Header'}
11517 $as_echo "$as_val"'`
11518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11519 $as_echo "$ac_res" >&6; }
11520
11521 fi
11522 as_val=`eval 'as_val=${'$as_ac_Header'}
11523 $as_echo "$as_val"'`
11524 if test "x$as_val" = x""yes; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11527 _ACEOF
11528
11529 else
11530 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11531 $as_echo "$as_me: error: bailing out" >&2;}
11532 { (exit 1); exit 1; }; }
11533 fi
11534
11535 done
11536
11537
11538 for ac_func in socket
11539 do
11540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 $as_echo_n "checking for $ac_func... " >&6; }
11543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11544 $as_echo_n "(cached) " >&6
11545 else
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h. */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11554 #define $ac_func innocuous_$ac_func
11555
11556 /* System header to define __stub macros and hopefully few prototypes,
11557 which can conflict with char $ac_func (); below.
11558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11559 <limits.h> exists even on freestanding compilers. */
11560
11561 #ifdef __STDC__
11562 # include <limits.h>
11563 #else
11564 # include <assert.h>
11565 #endif
11566
11567 #undef $ac_func
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char $ac_func ();
11576 /* The GNU C library defines this for functions which it implements
11577 to always fail with ENOSYS. Some functions are actually named
11578 something starting with __ and the normal name is an alias. */
11579 #if defined __stub_$ac_func || defined __stub___$ac_func
11580 choke me
11581 #endif
11582
11583 int
11584 main ()
11585 {
11586 return $ac_func ();
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11598 $as_echo "$ac_try_echo") >&5
11599 (eval "$ac_link") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 } && test -s conftest$ac_exeext && {
11609 test "$cross_compiling" = yes ||
11610 $as_test_x conftest$ac_exeext
11611 }; then
11612 eval "$as_ac_var=yes"
11613 else
11614 $as_echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 eval "$as_ac_var=no"
11618 fi
11619
11620 rm -rf conftest.dSYM
11621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11622 conftest$ac_exeext conftest.$ac_ext
11623 fi
11624 ac_res=`eval 'as_val=${'$as_ac_var'}
11625 $as_echo "$as_val"'`
11626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11627 $as_echo "$ac_res" >&6; }
11628 as_val=`eval 'as_val=${'$as_ac_var'}
11629 $as_echo "$as_val"'`
11630 if test "x$as_val" = x""yes; then
11631 cat >>confdefs.h <<_ACEOF
11632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11633 _ACEOF
11634
11635 else
11636 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11637 $as_echo "$as_me: error: bailing out" >&2;}
11638 { (exit 1); exit 1; }; }
11639 fi
11640 done
11641
11642 fi
11643
11644 if test x$HAVE_LIBDL = xyes; then
11645
11646 for ac_header in dlfcn.h
11647 do
11648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11651 $as_echo_n "checking for $ac_header... " >&6; }
11652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653 $as_echo_n "(cached) " >&6
11654 fi
11655 ac_res=`eval 'as_val=${'$as_ac_Header'}
11656 $as_echo "$as_val"'`
11657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11658 $as_echo "$ac_res" >&6; }
11659 else
11660 # Is the header compilable?
11661 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11662 $as_echo_n "checking $ac_header usability... " >&6; }
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 $ac_includes_default
11670 #include <$ac_header>
11671 _ACEOF
11672 rm -f conftest.$ac_objext
11673 if { (ac_try="$ac_compile"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677 esac
11678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11679 $as_echo "$ac_try_echo") >&5
11680 (eval "$ac_compile") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest.$ac_objext; then
11690 ac_header_compiler=yes
11691 else
11692 $as_echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_header_compiler=no
11696 fi
11697
11698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11700 $as_echo "$ac_header_compiler" >&6; }
11701
11702 # Is the header present?
11703 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11704 $as_echo_n "checking $ac_header presence... " >&6; }
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h. */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 #include <$ac_header>
11712 _ACEOF
11713 if { (ac_try="$ac_cpp conftest.$ac_ext"
11714 case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719 $as_echo "$ac_try_echo") >&5
11720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } >/dev/null && {
11727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 }; then
11730 ac_header_preproc=yes
11731 else
11732 $as_echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_header_preproc=no
11736 fi
11737
11738 rm -f conftest.err conftest.$ac_ext
11739 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11740 $as_echo "$ac_header_preproc" >&6; }
11741
11742 # So? What about this header?
11743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11744 yes:no: )
11745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11746 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11748 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11749 ac_header_preproc=yes
11750 ;;
11751 no:yes:* )
11752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11753 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11755 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11757 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11759 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11763 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11764
11765 ;;
11766 esac
11767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 $as_echo_n "checking for $ac_header... " >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 $as_echo_n "(cached) " >&6
11771 else
11772 eval "$as_ac_Header=\$ac_header_preproc"
11773 fi
11774 ac_res=`eval 'as_val=${'$as_ac_Header'}
11775 $as_echo "$as_val"'`
11776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11777 $as_echo "$ac_res" >&6; }
11778
11779 fi
11780 as_val=`eval 'as_val=${'$as_ac_Header'}
11781 $as_echo "$as_val"'`
11782 if test "x$as_val" = x""yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11785 _ACEOF
11786
11787 else
11788 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11789 $as_echo "$as_me: error: bailing out" >&2;}
11790 { (exit 1); exit 1; }; }
11791 fi
11792
11793 done
11794
11795 fi
11796
11797 if test x$INTL = xyes; then
11798
11799 for ac_header in libintl.h
11800 do
11801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11804 $as_echo_n "checking for $ac_header... " >&6; }
11805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11806 $as_echo_n "(cached) " >&6
11807 fi
11808 ac_res=`eval 'as_val=${'$as_ac_Header'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11812 else
11813 # Is the header compilable?
11814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815 $as_echo_n "checking $ac_header usability... " >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 #include <$ac_header>
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (ac_try="$ac_compile"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830 esac
11831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832 $as_echo "$ac_try_echo") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest.$ac_objext; then
11843 ac_header_compiler=yes
11844 else
11845 $as_echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_header_compiler=no
11849 fi
11850
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11853 $as_echo "$ac_header_compiler" >&6; }
11854
11855 # Is the header present?
11856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11857 $as_echo_n "checking $ac_header presence... " >&6; }
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 #include <$ac_header>
11865 _ACEOF
11866 if { (ac_try="$ac_cpp conftest.$ac_ext"
11867 case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870 esac
11871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11872 $as_echo "$ac_try_echo") >&5
11873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } >/dev/null && {
11880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11882 }; then
11883 ac_header_preproc=yes
11884 else
11885 $as_echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 ac_header_preproc=no
11889 fi
11890
11891 rm -f conftest.err conftest.$ac_ext
11892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11893 $as_echo "$ac_header_preproc" >&6; }
11894
11895 # So? What about this header?
11896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11897 yes:no: )
11898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11902 ac_header_preproc=yes
11903 ;;
11904 no:yes:* )
11905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11917
11918 ;;
11919 esac
11920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 $as_echo_n "checking for $ac_header... " >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923 $as_echo_n "(cached) " >&6
11924 else
11925 eval "$as_ac_Header=\$ac_header_preproc"
11926 fi
11927 ac_res=`eval 'as_val=${'$as_ac_Header'}
11928 $as_echo "$as_val"'`
11929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11930 $as_echo "$ac_res" >&6; }
11931
11932 fi
11933 as_val=`eval 'as_val=${'$as_ac_Header'}
11934 $as_echo "$as_val"'`
11935 if test "x$as_val" = x""yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 _ACEOF
11939
11940 else
11941 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11942 $as_echo "$as_me: error: bailing out" >&2;}
11943 { (exit 1); exit 1; }; }
11944 fi
11945
11946 done
11947
11948 fi
11949
11950 if test x$HAVE_SELINUX = xyes; then
11951
11952 for ac_header in selinux/selinux.h
11953 do
11954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11957 $as_echo_n "checking for $ac_header... " >&6; }
11958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11959 $as_echo_n "(cached) " >&6
11960 fi
11961 ac_res=`eval 'as_val=${'$as_ac_Header'}
11962 $as_echo "$as_val"'`
11963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11964 $as_echo "$ac_res" >&6; }
11965 else
11966 # Is the header compilable?
11967 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11968 $as_echo_n "checking $ac_header usability... " >&6; }
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11976 #include <$ac_header>
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983 esac
11984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11985 $as_echo "$ac_try_echo") >&5
11986 (eval "$ac_compile") 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } && {
11993 test -z "$ac_c_werror_flag" ||
11994 test ! -s conftest.err
11995 } && test -s conftest.$ac_objext; then
11996 ac_header_compiler=yes
11997 else
11998 $as_echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_header_compiler=no
12002 fi
12003
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12006 $as_echo "$ac_header_compiler" >&6; }
12007
12008 # Is the header present?
12009 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12010 $as_echo_n "checking $ac_header presence... " >&6; }
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 #include <$ac_header>
12018 _ACEOF
12019 if { (ac_try="$ac_cpp conftest.$ac_ext"
12020 case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023 esac
12024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12025 $as_echo "$ac_try_echo") >&5
12026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } >/dev/null && {
12033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12034 test ! -s conftest.err
12035 }; then
12036 ac_header_preproc=yes
12037 else
12038 $as_echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_header_preproc=no
12042 fi
12043
12044 rm -f conftest.err conftest.$ac_ext
12045 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12046 $as_echo "$ac_header_preproc" >&6; }
12047
12048 # So? What about this header?
12049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12050 yes:no: )
12051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12052 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12055 ac_header_preproc=yes
12056 ;;
12057 no:yes:* )
12058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12059 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12061 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12063 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12065 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12069 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12070
12071 ;;
12072 esac
12073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12074 $as_echo_n "checking for $ac_header... " >&6; }
12075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076 $as_echo_n "(cached) " >&6
12077 else
12078 eval "$as_ac_Header=\$ac_header_preproc"
12079 fi
12080 ac_res=`eval 'as_val=${'$as_ac_Header'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083 $as_echo "$ac_res" >&6; }
12084
12085 fi
12086 as_val=`eval 'as_val=${'$as_ac_Header'}
12087 $as_echo "$as_val"'`
12088 if test "x$as_val" = x""yes; then
12089 cat >>confdefs.h <<_ACEOF
12090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12091 _ACEOF
12092
12093 else
12094 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12095 $as_echo "$as_me: error: bailing out" >&2;}
12096 { (exit 1); exit 1; }; }
12097 fi
12098
12099 done
12100
12101 fi
12102
12103 ################################################################################
12104 # Extract the first word of "modprobe", so it can be a program name with args.
12105 set dummy modprobe; ac_word=$2
12106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
12109 $as_echo_n "(cached) " >&6
12110 else
12111 case $MODPROBE_CMD in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12114 ;;
12115 *)
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12126 fi
12127 done
12128 done
12129 IFS=$as_save_IFS
12130
12131 ;;
12132 esac
12133 fi
12134 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
12135 if test -n "$MODPROBE_CMD"; then
12136 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12137 $as_echo "$MODPROBE_CMD" >&6; }
12138 else
12139 { $as_echo "$as_me:$LINENO: result: no" >&5
12140 $as_echo "no" >&6; }
12141 fi
12142
12143
12144
12145 if test x$MODPROBE_CMD != x; then
12146
12147 cat >>confdefs.h <<_ACEOF
12148 #define MODPROBE_CMD "$MODPROBE_CMD"
12149 _ACEOF
12150
12151 fi
12152
12153 ################################################################################
12154
12155
12156 if test "$BUILD_DMEVENTD" = yes; then
12157
12158 # Check whether --with-dmeventd-pidfile was given.
12159 if test "${with_dmeventd_pidfile+set}" = set; then
12160 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12161 #define DMEVENTD_PIDFILE "$withval"
12162 _ACEOF
12163
12164 else
12165 cat >>confdefs.h <<_ACEOF
12166 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12167 _ACEOF
12168
12169 fi
12170
12171 fi
12172
12173
12174
12175 if test "$BUILD_DMEVENTD" = yes; then
12176 dmeventd_prefix="$exec_prefix"
12177 if test "x$dmeventd_prefix" = "xNONE"; then
12178 dmeventd_prefix="$prefix"
12179 fi
12180 if test "x$dmeventd_prefix" = "xNONE"; then
12181 dmeventd_prefix=""
12182 fi
12183
12184 # Check whether --with-dmeventd-path was given.
12185 if test "${with_dmeventd_path+set}" = set; then
12186 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12187 #define DMEVENTD_PATH "$withval"
12188 _ACEOF
12189
12190 else
12191 cat >>confdefs.h <<_ACEOF
12192 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12193 _ACEOF
12194
12195 fi
12196
12197 fi
12198
12199 ################################################################################
12200 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12201 $as_echo_n "checking for kernel interface choice... " >&6; }
12202
12203 # Check whether --with-interface was given.
12204 if test "${with_interface+set}" = set; then
12205 withval=$with_interface; interface="$withval"
12206 else
12207 interface=ioctl
12208 fi
12209
12210 if [ "x$interface" != xioctl ];
12211 then
12212 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12213 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
12214 { (exit 1); exit 1; }; }
12215 fi
12216 { $as_echo "$as_me:$LINENO: result: $interface" >&5
12217 $as_echo "$interface" >&6; }
12218
12219 ################################################################################
12220 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
12221
12222 cat >>confdefs.h <<_ACEOF
12223 #define DM_LIB_VERSION $DM_LIB_VERSION
12224 _ACEOF
12225
12226
12227 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
12228
12229 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
12230
12231 VER=`cat VERSION`
12232 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\""
12233 VER=`echo "$VER" | $AWK '{print $1}'`
12234 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12235 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12236 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12237 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12238 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'`
12239
12240 ################################################################################
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300 ################################################################################
12301 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/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
12302
12303 cat >confcache <<\_ACEOF
12304 # This file is a shell script that caches the results of configure
12305 # tests run on this system so they can be shared between configure
12306 # scripts and configure runs, see configure's option --config-cache.
12307 # It is not useful on other systems. If it contains results you don't
12308 # want to keep, you may remove or edit it.
12309 #
12310 # config.status only pays attention to the cache file if you give it
12311 # the --recheck option to rerun configure.
12312 #
12313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12315 # following values.
12316
12317 _ACEOF
12318
12319 # The following way of writing the cache mishandles newlines in values,
12320 # but we know of no workaround that is simple, portable, and efficient.
12321 # So, we kill variables containing newlines.
12322 # Ultrix sh set writes to stderr and can't be redirected directly,
12323 # and sets the high bit in the cache file unless we assign to the vars.
12324 (
12325 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12326 eval ac_val=\$$ac_var
12327 case $ac_val in #(
12328 *${as_nl}*)
12329 case $ac_var in #(
12330 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12332 esac
12333 case $ac_var in #(
12334 _ | IFS | as_nl) ;; #(
12335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12336 *) $as_unset $ac_var ;;
12337 esac ;;
12338 esac
12339 done
12340
12341 (set) 2>&1 |
12342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12343 *${as_nl}ac_space=\ *)
12344 # `set' does not quote correctly, so add quotes (double-quote
12345 # substitution turns \\\\ into \\, and sed turns \\ into \).
12346 sed -n \
12347 "s/'/'\\\\''/g;
12348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12349 ;; #(
12350 *)
12351 # `set' quotes correctly as required by POSIX, so do not add quotes.
12352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12353 ;;
12354 esac |
12355 sort
12356 ) |
12357 sed '
12358 /^ac_cv_env_/b end
12359 t clear
12360 :clear
12361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12362 t end
12363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12364 :end' >>confcache
12365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12366 if test -w "$cache_file"; then
12367 test "x$cache_file" != "x/dev/null" &&
12368 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12369 $as_echo "$as_me: updating cache $cache_file" >&6;}
12370 cat confcache >$cache_file
12371 else
12372 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12373 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12374 fi
12375 fi
12376 rm -f confcache
12377
12378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12379 # Let make expand exec_prefix.
12380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12381
12382 DEFS=-DHAVE_CONFIG_H
12383
12384 ac_libobjs=
12385 ac_ltlibobjs=
12386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12387 # 1. Remove the extension, and $U if already installed.
12388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12389 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12391 # will be set to the directory where LIBOBJS objects are built.
12392 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12393 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12394 done
12395 LIBOBJS=$ac_libobjs
12396
12397 LTLIBOBJS=$ac_ltlibobjs
12398
12399
12400
12401 : ${CONFIG_STATUS=./config.status}
12402 ac_write_fail=0
12403 ac_clean_files_save=$ac_clean_files
12404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12405 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12407 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12408 #! $SHELL
12409 # Generated by $as_me.
12410 # Run this file to recreate the current configuration.
12411 # Compiler output produced by configure, useful for debugging
12412 # configure, is in config.log if it exists.
12413
12414 debug=false
12415 ac_cs_recheck=false
12416 ac_cs_silent=false
12417 SHELL=\${CONFIG_SHELL-$SHELL}
12418 _ACEOF
12419
12420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12421 ## --------------------- ##
12422 ## M4sh Initialization. ##
12423 ## --------------------- ##
12424
12425 # Be more Bourne compatible
12426 DUALCASE=1; export DUALCASE # for MKS sh
12427 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12428 emulate sh
12429 NULLCMD=:
12430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12431 # is contrary to our usage. Disable this feature.
12432 alias -g '${1+"$@"}'='"$@"'
12433 setopt NO_GLOB_SUBST
12434 else
12435 case `(set -o) 2>/dev/null` in
12436 *posix*) set -o posix ;;
12437 esac
12438
12439 fi
12440
12441
12442
12443
12444 # PATH needs CR
12445 # Avoid depending upon Character Ranges.
12446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12449 as_cr_digits='0123456789'
12450 as_cr_alnum=$as_cr_Letters$as_cr_digits
12451
12452 as_nl='
12453 '
12454 export as_nl
12455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12456 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12459 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12460 as_echo='printf %s\n'
12461 as_echo_n='printf %s'
12462 else
12463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12465 as_echo_n='/usr/ucb/echo -n'
12466 else
12467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12468 as_echo_n_body='eval
12469 arg=$1;
12470 case $arg in
12471 *"$as_nl"*)
12472 expr "X$arg" : "X\\(.*\\)$as_nl";
12473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12474 esac;
12475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12476 '
12477 export as_echo_n_body
12478 as_echo_n='sh -c $as_echo_n_body as_echo'
12479 fi
12480 export as_echo_body
12481 as_echo='sh -c $as_echo_body as_echo'
12482 fi
12483
12484 # The user is always right.
12485 if test "${PATH_SEPARATOR+set}" != set; then
12486 PATH_SEPARATOR=:
12487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12489 PATH_SEPARATOR=';'
12490 }
12491 fi
12492
12493 # Support unset when possible.
12494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12495 as_unset=unset
12496 else
12497 as_unset=false
12498 fi
12499
12500
12501 # IFS
12502 # We need space, tab and new line, in precisely that order. Quoting is
12503 # there to prevent editors from complaining about space-tab.
12504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12505 # splitting by setting IFS to empty value.)
12506 IFS=" "" $as_nl"
12507
12508 # Find who we are. Look in the path if we contain no directory separator.
12509 case $0 in
12510 *[\\/]* ) as_myself=$0 ;;
12511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12517 done
12518 IFS=$as_save_IFS
12519
12520 ;;
12521 esac
12522 # We did not find ourselves, most probably we were run as `sh COMMAND'
12523 # in which case we are not to be found in the path.
12524 if test "x$as_myself" = x; then
12525 as_myself=$0
12526 fi
12527 if test ! -f "$as_myself"; then
12528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12529 { (exit 1); exit 1; }
12530 fi
12531
12532 # Work around bugs in pre-3.0 UWIN ksh.
12533 for as_var in ENV MAIL MAILPATH
12534 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12535 done
12536 PS1='$ '
12537 PS2='> '
12538 PS4='+ '
12539
12540 # NLS nuisances.
12541 LC_ALL=C
12542 export LC_ALL
12543 LANGUAGE=C
12544 export LANGUAGE
12545
12546 # Required to use basename.
12547 if expr a : '\(a\)' >/dev/null 2>&1 &&
12548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12549 as_expr=expr
12550 else
12551 as_expr=false
12552 fi
12553
12554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12555 as_basename=basename
12556 else
12557 as_basename=false
12558 fi
12559
12560
12561 # Name of the executable.
12562 as_me=`$as_basename -- "$0" ||
12563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12564 X"$0" : 'X\(//\)$' \| \
12565 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12566 $as_echo X/"$0" |
12567 sed '/^.*\/\([^/][^/]*\)\/*$/{
12568 s//\1/
12569 q
12570 }
12571 /^X\/\(\/\/\)$/{
12572 s//\1/
12573 q
12574 }
12575 /^X\/\(\/\).*/{
12576 s//\1/
12577 q
12578 }
12579 s/.*/./; q'`
12580
12581 # CDPATH.
12582 $as_unset CDPATH
12583
12584
12585
12586 as_lineno_1=$LINENO
12587 as_lineno_2=$LINENO
12588 test "x$as_lineno_1" != "x$as_lineno_2" &&
12589 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12590
12591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12592 # uniformly replaced by the line number. The first 'sed' inserts a
12593 # line-number line after each line using $LINENO; the second 'sed'
12594 # does the real work. The second script uses 'N' to pair each
12595 # line-number line with the line containing $LINENO, and appends
12596 # trailing '-' during substitution so that $LINENO is not a special
12597 # case at line end.
12598 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12599 # scripts with optimization help from Paolo Bonzini. Blame Lee
12600 # E. McMahon (1931-1989) for sed's syntax. :-)
12601 sed -n '
12602 p
12603 /[$]LINENO/=
12604 ' <$as_myself |
12605 sed '
12606 s/[$]LINENO.*/&-/
12607 t lineno
12608 b
12609 :lineno
12610 N
12611 :loop
12612 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12613 t loop
12614 s/-\n.*//
12615 ' >$as_me.lineno &&
12616 chmod +x "$as_me.lineno" ||
12617 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12618 { (exit 1); exit 1; }; }
12619
12620 # Don't try to exec as it changes $[0], causing all sort of problems
12621 # (the dirname of $[0] is not the place where we might find the
12622 # original and so on. Autoconf is especially sensitive to this).
12623 . "./$as_me.lineno"
12624 # Exit status is that of the last command.
12625 exit
12626 }
12627
12628
12629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12630 as_dirname=dirname
12631 else
12632 as_dirname=false
12633 fi
12634
12635 ECHO_C= ECHO_N= ECHO_T=
12636 case `echo -n x` in
12637 -n*)
12638 case `echo 'x\c'` in
12639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12640 *) ECHO_C='\c';;
12641 esac;;
12642 *)
12643 ECHO_N='-n';;
12644 esac
12645 if expr a : '\(a\)' >/dev/null 2>&1 &&
12646 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12647 as_expr=expr
12648 else
12649 as_expr=false
12650 fi
12651
12652 rm -f conf$$ conf$$.exe conf$$.file
12653 if test -d conf$$.dir; then
12654 rm -f conf$$.dir/conf$$.file
12655 else
12656 rm -f conf$$.dir
12657 mkdir conf$$.dir 2>/dev/null
12658 fi
12659 if (echo >conf$$.file) 2>/dev/null; then
12660 if ln -s conf$$.file conf$$ 2>/dev/null; then
12661 as_ln_s='ln -s'
12662 # ... but there are two gotchas:
12663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12665 # In both cases, we have to default to `cp -p'.
12666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12667 as_ln_s='cp -p'
12668 elif ln conf$$.file conf$$ 2>/dev/null; then
12669 as_ln_s=ln
12670 else
12671 as_ln_s='cp -p'
12672 fi
12673 else
12674 as_ln_s='cp -p'
12675 fi
12676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12677 rmdir conf$$.dir 2>/dev/null
12678
12679 if mkdir -p . 2>/dev/null; then
12680 as_mkdir_p=:
12681 else
12682 test -d ./-p && rmdir ./-p
12683 as_mkdir_p=false
12684 fi
12685
12686 if test -x / >/dev/null 2>&1; then
12687 as_test_x='test -x'
12688 else
12689 if ls -dL / >/dev/null 2>&1; then
12690 as_ls_L_option=L
12691 else
12692 as_ls_L_option=
12693 fi
12694 as_test_x='
12695 eval sh -c '\''
12696 if test -d "$1"; then
12697 test -d "$1/.";
12698 else
12699 case $1 in
12700 -*)set "./$1";;
12701 esac;
12702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12703 ???[sx]*):;;*)false;;esac;fi
12704 '\'' sh
12705 '
12706 fi
12707 as_executable_p=$as_test_x
12708
12709 # Sed expression to map a string onto a valid CPP name.
12710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12711
12712 # Sed expression to map a string onto a valid variable name.
12713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12714
12715
12716 exec 6>&1
12717
12718 # Save the log message, to keep $[0] and so on meaningful, and to
12719 # report actual input values of CONFIG_FILES etc. instead of their
12720 # values after options handling.
12721 ac_log="
12722 This file was extended by $as_me, which was
12723 generated by GNU Autoconf 2.63. Invocation command line was
12724
12725 CONFIG_FILES = $CONFIG_FILES
12726 CONFIG_HEADERS = $CONFIG_HEADERS
12727 CONFIG_LINKS = $CONFIG_LINKS
12728 CONFIG_COMMANDS = $CONFIG_COMMANDS
12729 $ $0 $@
12730
12731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12732 "
12733
12734 _ACEOF
12735
12736 case $ac_config_files in *"
12737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12738 esac
12739
12740 case $ac_config_headers in *"
12741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12742 esac
12743
12744
12745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746 # Files that config.status was made for.
12747 config_files="$ac_config_files"
12748 config_headers="$ac_config_headers"
12749
12750 _ACEOF
12751
12752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12753 ac_cs_usage="\
12754 \`$as_me' instantiates files from templates according to the
12755 current configuration.
12756
12757 Usage: $0 [OPTION]... [FILE]...
12758
12759 -h, --help print this help, then exit
12760 -V, --version print version number and configuration settings, then exit
12761 -q, --quiet, --silent
12762 do not print progress messages
12763 -d, --debug don't remove temporary files
12764 --recheck update $as_me by reconfiguring in the same conditions
12765 --file=FILE[:TEMPLATE]
12766 instantiate the configuration file FILE
12767 --header=FILE[:TEMPLATE]
12768 instantiate the configuration header FILE
12769
12770 Configuration files:
12771 $config_files
12772
12773 Configuration headers:
12774 $config_headers
12775
12776 Report bugs to <bug-autoconf@gnu.org>."
12777
12778 _ACEOF
12779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780 ac_cs_version="\\
12781 config.status
12782 configured by $0, generated by GNU Autoconf 2.63,
12783 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12784
12785 Copyright (C) 2008 Free Software Foundation, Inc.
12786 This config.status script is free software; the Free Software Foundation
12787 gives unlimited permission to copy, distribute and modify it."
12788
12789 ac_pwd='$ac_pwd'
12790 srcdir='$srcdir'
12791 INSTALL='$INSTALL'
12792 MKDIR_P='$MKDIR_P'
12793 AWK='$AWK'
12794 test -n "\$AWK" || AWK=awk
12795 _ACEOF
12796
12797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798 # The default lists apply if the user does not specify any file.
12799 ac_need_defaults=:
12800 while test $# != 0
12801 do
12802 case $1 in
12803 --*=*)
12804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12806 ac_shift=:
12807 ;;
12808 *)
12809 ac_option=$1
12810 ac_optarg=$2
12811 ac_shift=shift
12812 ;;
12813 esac
12814
12815 case $ac_option in
12816 # Handling of the options.
12817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12818 ac_cs_recheck=: ;;
12819 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12820 $as_echo "$ac_cs_version"; exit ;;
12821 --debug | --debu | --deb | --de | --d | -d )
12822 debug=: ;;
12823 --file | --fil | --fi | --f )
12824 $ac_shift
12825 case $ac_optarg in
12826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12827 esac
12828 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12829 ac_need_defaults=false;;
12830 --header | --heade | --head | --hea )
12831 $ac_shift
12832 case $ac_optarg in
12833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12834 esac
12835 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12836 ac_need_defaults=false;;
12837 --he | --h)
12838 # Conflict between --help and --header
12839 { $as_echo "$as_me: error: ambiguous option: $1
12840 Try \`$0 --help' for more information." >&2
12841 { (exit 1); exit 1; }; };;
12842 --help | --hel | -h )
12843 $as_echo "$ac_cs_usage"; exit ;;
12844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12846 ac_cs_silent=: ;;
12847
12848 # This is an error.
12849 -*) { $as_echo "$as_me: error: unrecognized option: $1
12850 Try \`$0 --help' for more information." >&2
12851 { (exit 1); exit 1; }; } ;;
12852
12853 *) ac_config_targets="$ac_config_targets $1"
12854 ac_need_defaults=false ;;
12855
12856 esac
12857 shift
12858 done
12859
12860 ac_configure_extra_args=
12861
12862 if $ac_cs_silent; then
12863 exec 6>/dev/null
12864 ac_configure_extra_args="$ac_configure_extra_args --silent"
12865 fi
12866
12867 _ACEOF
12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12869 if \$ac_cs_recheck; then
12870 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12871 shift
12872 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12873 CONFIG_SHELL='$SHELL'
12874 export CONFIG_SHELL
12875 exec "\$@"
12876 fi
12877
12878 _ACEOF
12879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12880 exec 5>>config.log
12881 {
12882 echo
12883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12884 ## Running $as_me. ##
12885 _ASBOX
12886 $as_echo "$ac_log"
12887 } >&5
12888
12889 _ACEOF
12890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891 _ACEOF
12892
12893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12894
12895 # Handling of arguments.
12896 for ac_config_target in $ac_config_targets
12897 do
12898 case $ac_config_target in
12899 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12901 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12902 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12903 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12904 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12905 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
12906 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
12907 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12908 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
12909 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12910 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12911 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12912 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12913 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12914 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12915 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12916 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
12917 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
12918 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12919 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12921 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12922 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
12923 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12924 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12925 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
12926 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12927
12928 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12929 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12930 { (exit 1); exit 1; }; };;
12931 esac
12932 done
12933
12934
12935 # If the user did not use the arguments to specify the items to instantiate,
12936 # then the envvar interface is used. Set only those that are not.
12937 # We use the long form for the default assignment because of an extremely
12938 # bizarre bug on SunOS 4.1.3.
12939 if $ac_need_defaults; then
12940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12942 fi
12943
12944 # Have a temporary directory for convenience. Make it in the build tree
12945 # simply because there is no reason against having it here, and in addition,
12946 # creating and moving files from /tmp can sometimes cause problems.
12947 # Hook for its removal unless debugging.
12948 # Note that there is a small window in which the directory will not be cleaned:
12949 # after its creation but before its name has been assigned to `$tmp'.
12950 $debug ||
12951 {
12952 tmp=
12953 trap 'exit_status=$?
12954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12955 ' 0
12956 trap '{ (exit 1); exit 1; }' 1 2 13 15
12957 }
12958 # Create a (secure) tmp directory for tmp files.
12959
12960 {
12961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12962 test -n "$tmp" && test -d "$tmp"
12963 } ||
12964 {
12965 tmp=./conf$$-$RANDOM
12966 (umask 077 && mkdir "$tmp")
12967 } ||
12968 {
12969 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12970 { (exit 1); exit 1; }
12971 }
12972
12973 # Set up the scripts for CONFIG_FILES section.
12974 # No need to generate them if there are no CONFIG_FILES.
12975 # This happens for instance with `./config.status config.h'.
12976 if test -n "$CONFIG_FILES"; then
12977
12978
12979 ac_cr=' '
12980 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12981 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12982 ac_cs_awk_cr='\\r'
12983 else
12984 ac_cs_awk_cr=$ac_cr
12985 fi
12986
12987 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12988 _ACEOF
12989
12990
12991 {
12992 echo "cat >conf$$subs.awk <<_ACEOF" &&
12993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12994 echo "_ACEOF"
12995 } >conf$$subs.sh ||
12996 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12997 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12998 { (exit 1); exit 1; }; }
12999 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13000 ac_delim='%!_!# '
13001 for ac_last_try in false false false false false :; do
13002 . ./conf$$subs.sh ||
13003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13004 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13005 { (exit 1); exit 1; }; }
13006
13007 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13008 if test $ac_delim_n = $ac_delim_num; then
13009 break
13010 elif $ac_last_try; then
13011 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13012 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13013 { (exit 1); exit 1; }; }
13014 else
13015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13016 fi
13017 done
13018 rm -f conf$$subs.sh
13019
13020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13022 _ACEOF
13023 sed -n '
13024 h
13025 s/^/S["/; s/!.*/"]=/
13026 p
13027 g
13028 s/^[^!]*!//
13029 :repl
13030 t repl
13031 s/'"$ac_delim"'$//
13032 t delim
13033 :nl
13034 h
13035 s/\(.\{148\}\).*/\1/
13036 t more1
13037 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13038 p
13039 n
13040 b repl
13041 :more1
13042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13043 p
13044 g
13045 s/.\{148\}//
13046 t nl
13047 :delim
13048 h
13049 s/\(.\{148\}\).*/\1/
13050 t more2
13051 s/["\\]/\\&/g; s/^/"/; s/$/"/
13052 p
13053 b
13054 :more2
13055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13056 p
13057 g
13058 s/.\{148\}//
13059 t delim
13060 ' <conf$$subs.awk | sed '
13061 /^[^""]/{
13062 N
13063 s/\n//
13064 }
13065 ' >>$CONFIG_STATUS || ac_write_fail=1
13066 rm -f conf$$subs.awk
13067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13068 _ACAWK
13069 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13070 for (key in S) S_is_set[key] = 1
13071 FS = "\a"
13072
13073 }
13074 {
13075 line = $ 0
13076 nfields = split(line, field, "@")
13077 substed = 0
13078 len = length(field[1])
13079 for (i = 2; i < nfields; i++) {
13080 key = field[i]
13081 keylen = length(key)
13082 if (S_is_set[key]) {
13083 value = S[key]
13084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13085 len += length(value) + length(field[++i])
13086 substed = 1
13087 } else
13088 len += 1 + keylen
13089 }
13090
13091 print line
13092 }
13093
13094 _ACAWK
13095 _ACEOF
13096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13097 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13099 else
13100 cat
13101 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13102 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13103 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13104 { (exit 1); exit 1; }; }
13105 _ACEOF
13106
13107 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13108 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13109 # trailing colons and then remove the whole line if VPATH becomes empty
13110 # (actually we leave an empty line to preserve line numbers).
13111 if test "x$srcdir" = x.; then
13112 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13113 s/:*\$(srcdir):*/:/
13114 s/:*\${srcdir}:*/:/
13115 s/:*@srcdir@:*/:/
13116 s/^\([^=]*=[ ]*\):*/\1/
13117 s/:*$//
13118 s/^[^=]*=[ ]*$//
13119 }'
13120 fi
13121
13122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13123 fi # test -n "$CONFIG_FILES"
13124
13125 # Set up the scripts for CONFIG_HEADERS section.
13126 # No need to generate them if there are no CONFIG_HEADERS.
13127 # This happens for instance with `./config.status Makefile'.
13128 if test -n "$CONFIG_HEADERS"; then
13129 cat >"$tmp/defines.awk" <<\_ACAWK ||
13130 BEGIN {
13131 _ACEOF
13132
13133 # Transform confdefs.h into an awk script `defines.awk', embedded as
13134 # here-document in config.status, that substitutes the proper values into
13135 # config.h.in to produce config.h.
13136
13137 # Create a delimiter string that does not exist in confdefs.h, to ease
13138 # handling of long lines.
13139 ac_delim='%!_!# '
13140 for ac_last_try in false false :; do
13141 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13142 if test -z "$ac_t"; then
13143 break
13144 elif $ac_last_try; then
13145 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13146 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13147 { (exit 1); exit 1; }; }
13148 else
13149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13150 fi
13151 done
13152
13153 # For the awk script, D is an array of macro values keyed by name,
13154 # likewise P contains macro parameters if any. Preserve backslash
13155 # newline sequences.
13156
13157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13158 sed -n '
13159 s/.\{148\}/&'"$ac_delim"'/g
13160 t rset
13161 :rset
13162 s/^[ ]*#[ ]*define[ ][ ]*/ /
13163 t def
13164 d
13165 :def
13166 s/\\$//
13167 t bsnl
13168 s/["\\]/\\&/g
13169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13170 D["\1"]=" \3"/p
13171 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13172 d
13173 :bsnl
13174 s/["\\]/\\&/g
13175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13176 D["\1"]=" \3\\\\\\n"\\/p
13177 t cont
13178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13179 t cont
13180 d
13181 :cont
13182 n
13183 s/.\{148\}/&'"$ac_delim"'/g
13184 t clear
13185 :clear
13186 s/\\$//
13187 t bsnlc
13188 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13189 d
13190 :bsnlc
13191 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13192 b cont
13193 ' <confdefs.h | sed '
13194 s/'"$ac_delim"'/"\\\
13195 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13196
13197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198 for (key in D) D_is_set[key] = 1
13199 FS = "\a"
13200 }
13201 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13202 line = \$ 0
13203 split(line, arg, " ")
13204 if (arg[1] == "#") {
13205 defundef = arg[2]
13206 mac1 = arg[3]
13207 } else {
13208 defundef = substr(arg[1], 2)
13209 mac1 = arg[2]
13210 }
13211 split(mac1, mac2, "(") #)
13212 macro = mac2[1]
13213 prefix = substr(line, 1, index(line, defundef) - 1)
13214 if (D_is_set[macro]) {
13215 # Preserve the white space surrounding the "#".
13216 print prefix "define", macro P[macro] D[macro]
13217 next
13218 } else {
13219 # Replace #undef with comments. This is necessary, for example,
13220 # in the case of _POSIX_SOURCE, which is predefined and required
13221 # on some systems where configure will not decide to define it.
13222 if (defundef == "undef") {
13223 print "/*", prefix defundef, macro, "*/"
13224 next
13225 }
13226 }
13227 }
13228 { print }
13229 _ACAWK
13230 _ACEOF
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13233 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13234 { (exit 1); exit 1; }; }
13235 fi # test -n "$CONFIG_HEADERS"
13236
13237
13238 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13239 shift
13240 for ac_tag
13241 do
13242 case $ac_tag in
13243 :[FHLC]) ac_mode=$ac_tag; continue;;
13244 esac
13245 case $ac_mode$ac_tag in
13246 :[FHL]*:*);;
13247 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13248 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13249 { (exit 1); exit 1; }; };;
13250 :[FH]-) ac_tag=-:-;;
13251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13252 esac
13253 ac_save_IFS=$IFS
13254 IFS=:
13255 set x $ac_tag
13256 IFS=$ac_save_IFS
13257 shift
13258 ac_file=$1
13259 shift
13260
13261 case $ac_mode in
13262 :L) ac_source=$1;;
13263 :[FH])
13264 ac_file_inputs=
13265 for ac_f
13266 do
13267 case $ac_f in
13268 -) ac_f="$tmp/stdin";;
13269 *) # Look for the file first in the build tree, then in the source tree
13270 # (if the path is not absolute). The absolute path cannot be DOS-style,
13271 # because $ac_f cannot contain `:'.
13272 test -f "$ac_f" ||
13273 case $ac_f in
13274 [\\/$]*) false;;
13275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13276 esac ||
13277 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13278 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13279 { (exit 1); exit 1; }; };;
13280 esac
13281 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13282 ac_file_inputs="$ac_file_inputs '$ac_f'"
13283 done
13284
13285 # Let's still pretend it is `configure' which instantiates (i.e., don't
13286 # use $as_me), people would be surprised to read:
13287 # /* config.h. Generated by config.status. */
13288 configure_input='Generated from '`
13289 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13290 `' by configure.'
13291 if test x"$ac_file" != x-; then
13292 configure_input="$ac_file. $configure_input"
13293 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13294 $as_echo "$as_me: creating $ac_file" >&6;}
13295 fi
13296 # Neutralize special characters interpreted by sed in replacement strings.
13297 case $configure_input in #(
13298 *\&* | *\|* | *\\* )
13299 ac_sed_conf_input=`$as_echo "$configure_input" |
13300 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13301 *) ac_sed_conf_input=$configure_input;;
13302 esac
13303
13304 case $ac_tag in
13305 *:-:* | *:-) cat >"$tmp/stdin" \
13306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13308 { (exit 1); exit 1; }; } ;;
13309 esac
13310 ;;
13311 esac
13312
13313 ac_dir=`$as_dirname -- "$ac_file" ||
13314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13315 X"$ac_file" : 'X\(//\)[^/]' \| \
13316 X"$ac_file" : 'X\(//\)$' \| \
13317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13318 $as_echo X"$ac_file" |
13319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13320 s//\1/
13321 q
13322 }
13323 /^X\(\/\/\)[^/].*/{
13324 s//\1/
13325 q
13326 }
13327 /^X\(\/\/\)$/{
13328 s//\1/
13329 q
13330 }
13331 /^X\(\/\).*/{
13332 s//\1/
13333 q
13334 }
13335 s/.*/./; q'`
13336 { as_dir="$ac_dir"
13337 case $as_dir in #(
13338 -*) as_dir=./$as_dir;;
13339 esac
13340 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13341 as_dirs=
13342 while :; do
13343 case $as_dir in #(
13344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13345 *) as_qdir=$as_dir;;
13346 esac
13347 as_dirs="'$as_qdir' $as_dirs"
13348 as_dir=`$as_dirname -- "$as_dir" ||
13349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13350 X"$as_dir" : 'X\(//\)[^/]' \| \
13351 X"$as_dir" : 'X\(//\)$' \| \
13352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13353 $as_echo X"$as_dir" |
13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13355 s//\1/
13356 q
13357 }
13358 /^X\(\/\/\)[^/].*/{
13359 s//\1/
13360 q
13361 }
13362 /^X\(\/\/\)$/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\).*/{
13367 s//\1/
13368 q
13369 }
13370 s/.*/./; q'`
13371 test -d "$as_dir" && break
13372 done
13373 test -z "$as_dirs" || eval "mkdir $as_dirs"
13374 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13375 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13376 { (exit 1); exit 1; }; }; }
13377 ac_builddir=.
13378
13379 case "$ac_dir" in
13380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13381 *)
13382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13383 # A ".." for each directory in $ac_dir_suffix.
13384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13385 case $ac_top_builddir_sub in
13386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13388 esac ;;
13389 esac
13390 ac_abs_top_builddir=$ac_pwd
13391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13392 # for backward compatibility:
13393 ac_top_builddir=$ac_top_build_prefix
13394
13395 case $srcdir in
13396 .) # We are building in place.
13397 ac_srcdir=.
13398 ac_top_srcdir=$ac_top_builddir_sub
13399 ac_abs_top_srcdir=$ac_pwd ;;
13400 [\\/]* | ?:[\\/]* ) # Absolute name.
13401 ac_srcdir=$srcdir$ac_dir_suffix;
13402 ac_top_srcdir=$srcdir
13403 ac_abs_top_srcdir=$srcdir ;;
13404 *) # Relative name.
13405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13406 ac_top_srcdir=$ac_top_build_prefix$srcdir
13407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13408 esac
13409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13410
13411
13412 case $ac_mode in
13413 :F)
13414 #
13415 # CONFIG_FILE
13416 #
13417
13418 case $INSTALL in
13419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13421 esac
13422 ac_MKDIR_P=$MKDIR_P
13423 case $MKDIR_P in
13424 [\\/$]* | ?:[\\/]* ) ;;
13425 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13426 esac
13427 _ACEOF
13428
13429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13430 # If the template does not know about datarootdir, expand it.
13431 # FIXME: This hack should be removed a few years after 2.60.
13432 ac_datarootdir_hack=; ac_datarootdir_seen=
13433
13434 ac_sed_dataroot='
13435 /datarootdir/ {
13436 p
13437 q
13438 }
13439 /@datadir@/p
13440 /@docdir@/p
13441 /@infodir@/p
13442 /@localedir@/p
13443 /@mandir@/p
13444 '
13445 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13446 *datarootdir*) ac_datarootdir_seen=yes;;
13447 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13448 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13449 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13450 _ACEOF
13451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13452 ac_datarootdir_hack='
13453 s&@datadir@&$datadir&g
13454 s&@docdir@&$docdir&g
13455 s&@infodir@&$infodir&g
13456 s&@localedir@&$localedir&g
13457 s&@mandir@&$mandir&g
13458 s&\\\${datarootdir}&$datarootdir&g' ;;
13459 esac
13460 _ACEOF
13461
13462 # Neutralize VPATH when `$srcdir' = `.'.
13463 # Shell code in configure.ac might set extrasub.
13464 # FIXME: do we really want to maintain this feature?
13465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466 ac_sed_extra="$ac_vpsub
13467 $extrasub
13468 _ACEOF
13469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13470 :t
13471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13472 s|@configure_input@|$ac_sed_conf_input|;t t
13473 s&@top_builddir@&$ac_top_builddir_sub&;t t
13474 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13475 s&@srcdir@&$ac_srcdir&;t t
13476 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13477 s&@top_srcdir@&$ac_top_srcdir&;t t
13478 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13479 s&@builddir@&$ac_builddir&;t t
13480 s&@abs_builddir@&$ac_abs_builddir&;t t
13481 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13482 s&@INSTALL@&$ac_INSTALL&;t t
13483 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13484 $ac_datarootdir_hack
13485 "
13486 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13487 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13488 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13489 { (exit 1); exit 1; }; }
13490
13491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13494 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13495 which seems to be undefined. Please make sure it is defined." >&5
13496 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13497 which seems to be undefined. Please make sure it is defined." >&2;}
13498
13499 rm -f "$tmp/stdin"
13500 case $ac_file in
13501 -) cat "$tmp/out" && rm -f "$tmp/out";;
13502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13503 esac \
13504 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13505 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13506 { (exit 1); exit 1; }; }
13507 ;;
13508 :H)
13509 #
13510 # CONFIG_HEADER
13511 #
13512 if test x"$ac_file" != x-; then
13513 {
13514 $as_echo "/* $configure_input */" \
13515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13516 } >"$tmp/config.h" \
13517 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13518 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13519 { (exit 1); exit 1; }; }
13520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13521 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13522 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13523 else
13524 rm -f "$ac_file"
13525 mv "$tmp/config.h" "$ac_file" \
13526 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13527 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13528 { (exit 1); exit 1; }; }
13529 fi
13530 else
13531 $as_echo "/* $configure_input */" \
13532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13533 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13534 $as_echo "$as_me: error: could not create -" >&2;}
13535 { (exit 1); exit 1; }; }
13536 fi
13537 ;;
13538
13539
13540 esac
13541
13542 done # for ac_tag
13543
13544
13545 { (exit 0); exit 0; }
13546 _ACEOF
13547 chmod +x $CONFIG_STATUS
13548 ac_clean_files=$ac_clean_files_save
13549
13550 test $ac_write_fail = 0 ||
13551 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13552 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13553 { (exit 1); exit 1; }; }
13554
13555
13556 # configure is writing to config.log, and then calls config.status.
13557 # config.status does its own redirection, appending to config.log.
13558 # Unfortunately, on DOS this fails, as config.log is still kept open
13559 # by configure, so config.status won't be able to write to it; its
13560 # output is simply discarded. So we exec the FD to /dev/null,
13561 # effectively closing config.log, so it can be properly (re)opened and
13562 # appended to by config.status. When coming back to configure, we
13563 # need to make the FD available again.
13564 if test "$no_create" != yes; then
13565 ac_cs_success=:
13566 ac_config_status_args=
13567 test "$silent" = yes &&
13568 ac_config_status_args="$ac_config_status_args --quiet"
13569 exec 5>/dev/null
13570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13571 exec 5>>config.log
13572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13573 # would make configure fail if this is the last instruction.
13574 $ac_cs_success || { (exit 1); exit 1; }
13575 fi
13576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13577 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13578 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13579 fi
13580
13581
13582 if test x$ODIRECT != xyes; then
13583 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13584 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
13585 fi
This page took 0.733753 seconds and 6 git commands to generate.