2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
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
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
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
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
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
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.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
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'"
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'"
574 exec 7<&0 </dev/null 6>&1
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`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
698 DEFAULT_DATA_ALIGNMENT
700 DEFAULT_BACKUP_SUBDIR
701 DEFAULT_ARCHIVE_SUBDIR
811 program_transform_name
823 enable_option_checking
843 with_cmirrord_pidfile
871 with_dmeventd_pidfile
874 with_default_system_dir
875 with_default_archive_subdir
876 with_default_backup_subdir
877 with_default_cache_subdir
878 with_default_locking_dir
879 with_default_data_alignment
882 ac_precious_vars='build_alias
916 # Initialize some variables set by options.
918 ac_init_version=false
919 ac_unrecognized_opts=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
930 program_transform_name=s,x,x,
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1006 -datadir | --datadir | --datadi | --datad)
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1282 eval with_$ac_useropt=no ;;
1285 # Obsolete; use --with-x.
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1337 { (exit 1); exit 1; }; } ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435 { (exit 1); exit 1; }; }
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1440 { (exit 1); exit 1; }; }
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 # Report the --help message.
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1466 \`configure' configures this package to adapt to many kinds of systems.
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1473 Defaults for the options are specified in brackets.
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1497 For better control, use the options below.
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1530 if test -n "$ac_init_help"; then
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-static_link use this to link the tools to their libraries
1539 statically (default is dynamic linking
1540 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1541 device-mapper is missing from the kernel
1542 --disable-readline disable readline support
1543 --enable-realtime enable realtime clock support
1544 --enable-ocf enable Open Cluster Framework (OCF) compliant
1546 --enable-cmirrord enable the cluster mirror log daemon
1547 --enable-debug enable debugging
1548 --enable-profiling gather gcov profiling data
1549 --enable-testing enable testing targets in the makefile
1550 --enable-valgrind-pool enable valgrind awareness of pools
1551 --disable-devmapper disable LVM2 device-mapper interaction
1552 --enable-udev_sync enable synchronisation with udev processing
1553 --enable-udev_rules install rule files needed for udev synchronisation
1554 --enable-compat enable support for old device-mapper versions
1555 --enable-units-compat enable output compatibility with old versions that
1556 that do not use KiB-style unit suffixes
1557 --disable-driver disable calls to device-mapper in the kernel
1558 --disable-o_direct disable O_DIRECT
1559 --enable-applib build application library
1560 --enable-cmdlib build shared command library
1561 --enable-pkgconfig install pkgconfig support
1562 --enable-write_install install user writable files
1563 --disable-fsadm disable fsadm
1564 --enable-dmeventd enable the device-mapper event daemon
1565 --disable-selinux disable selinux support
1566 --enable-nls enable Native Language Support
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-user=USER set the owner of installed files [USER=]
1572 --with-group=GROUP set the group owner of installed files [GROUP=]
1573 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1574 --with-device-gid=GID set the group used for new device nodes [GID=0]
1575 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
1576 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1578 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1580 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1582 --with-snapshots=TYPE snapshot support: internal/shared/none
1584 --with-mirrors=TYPE mirror support: internal/shared/none
1586 --with-replicators=TYPE replicator support: internal/shared/none
1588 --with-clvmd=TYPE build cluster LVM Daemon
1589 The following cluster manager combinations are valid:
1590 * cman,gulm (RHEL4 or equivalent)
1591 * cman (RHEL5 or equivalent)
1592 * cman,corosync,openais (or selection of them)
1593 * singlenode (localhost only)
1595 * none (disable build)
1597 --with-clvmd-pidfile=PATH
1598 clvmd pidfile [/var/run/clvmd.pid]
1599 --with-cmirrord-pidfile=PATH
1600 cmirrord pidfile [/var/run/cmirrord.pid]
1601 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1602 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1603 --with-confdir=DIR configuration files in DIR [/etc]
1604 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1605 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1606 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1607 --with-udev-prefix=UPREFIX
1608 install udev rule files in UPREFIX [EPREFIX]
1609 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1610 --with-dmeventd-pidfile=PATH
1611 dmeventd pidfile [/var/run/dmeventd.pid]
1612 --with-dmeventd-path=PATH
1613 dmeventd path [EPREFIX/sbin/dmeventd]
1614 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1615 --with-default-system-dir=DIR
1616 default LVM system directory [/etc/lvm]
1617 --with-default-archive-subdir=SUBDIR
1618 default metadata archive subdir [archive]
1619 --with-default-backup-subdir=SUBDIR
1620 default metadata backup subdir [backup]
1621 --with-default-cache-subdir=SUBDIR
1622 default metadata cache subdir [cache]
1623 --with-default-locking-dir=DIR
1624 default locking directory [/var/lock/lvm]
1625 --with-default-data-alignment=NUM
1626 set the default data alignment in MiB [1]
1627 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1638 PKG_CONFIG path to pkg-config utility
1639 PKGCONFIGINIT_CFLAGS
1640 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1642 linker flags for PKGCONFIGINIT, overriding pkg-config
1643 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1644 CCS_LIBS linker flags for CCS, overriding pkg-config
1645 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1646 GULM_LIBS linker flags for GULM, overriding pkg-config
1647 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1648 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1650 C compiler flags for COROSYNC, overriding pkg-config
1652 linker flags for COROSYNC, overriding pkg-config
1654 C compiler flags for QUORUM, overriding pkg-config
1655 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1657 C compiler flags for SALCK, overriding pkg-config
1658 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1660 C compiler flags for CONFDB, overriding pkg-config
1661 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1662 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1663 CPG_LIBS linker flags for CPG, overriding pkg-config
1664 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1665 DLM_LIBS linker flags for DLM, overriding pkg-config
1667 C compiler flags for SACKPT, overriding pkg-config
1668 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1670 Use these variables to override the choices made by `configure' or to help
1671 it to find libraries and programs with nonstandard names/locations.
1677 if test "$ac_init_help" = "recursive"; then
1678 # If there are subdirs, report their specific --help.
1679 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680 test -d "$ac_dir" ||
1681 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689 # A ".." for each directory in $ac_dir_suffix.
1690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691 case $ac_top_builddir_sub in
1692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696 ac_abs_top_builddir=$ac_pwd
1697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698 # for backward compatibility:
1699 ac_top_builddir=$ac_top_build_prefix
1702 .) # We are building in place.
1704 ac_top_srcdir=$ac_top_builddir_sub
1705 ac_abs_top_srcdir=$ac_pwd ;;
1706 [\\/]* | ?:[\\/]* ) # Absolute name.
1707 ac_srcdir=$srcdir$ac_dir_suffix;
1708 ac_top_srcdir=$srcdir
1709 ac_abs_top_srcdir=$srcdir ;;
1711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712 ac_top_srcdir=$ac_top_build_prefix$srcdir
1713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1717 cd "$ac_dir" || { ac_status=$?; continue; }
1718 # Check for guested configure.
1719 if test -f "$ac_srcdir/configure.gnu"; then
1721 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722 elif test -f "$ac_srcdir/configure"; then
1724 $SHELL "$ac_srcdir/configure" --help=recursive
1726 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1728 cd "$ac_pwd" || { ac_status=$?; break; }
1732 test -n "$ac_init_help" && exit $ac_status
1733 if $ac_init_version; then
1736 generated by GNU Autoconf 2.63
1738 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1739 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1740 This configure script is free software; the Free Software Foundation
1741 gives unlimited permission to copy, distribute and modify it.
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1749 It was created by $as_me, which was
1750 generated by GNU Autoconf 2.63. Invocation command line was
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 $as_echo "PATH: $as_dir"
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1810 ac_must_keep_next=false
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1826 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1839 -* ) ac_must_keep_next=true ;;
1842 ac_configure_args="$ac_configure_args '$ac_arg'"
1847 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1848 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log. We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1861 ## ---------------- ##
1862 ## Cache variables. ##
1863 ## ---------------- ##
1866 # The following way of writing the cache mishandles newlines in values,
1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869 eval ac_val=\$$ac_var
1873 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1877 _ | IFS | as_nl) ;; #(
1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879 *) $as_unset $ac_var ;;
1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885 *${as_nl}ac_space=\ *)
1887 "s/'\''/'\''\\\\'\'''\''/g;
1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 ## ----------------- ##
1900 ## Output variables. ##
1901 ## ----------------- ##
1904 for ac_var in $ac_subst_vars
1906 eval ac_val=\$$ac_var
1908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1910 $as_echo "$ac_var='\''$ac_val'\''"
1914 if test -n "$ac_subst_files"; then
1916 ## ------------------- ##
1917 ## File substitutions. ##
1918 ## ------------------- ##
1921 for ac_var in $ac_subst_files
1923 eval ac_val=\$$ac_var
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927 $as_echo "$ac_var='\''$ac_val'\''"
1932 if test -s confdefs.h; then
1942 test "$ac_signal" != 0 &&
1943 $as_echo "$as_me: caught signal $ac_signal"
1944 $as_echo "$as_me: exit $exit_status"
1946 rm -f core *.core core.conftest.* &&
1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1950 for ac_signal in 1 2 13 15; do
1951 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1956 rm -f -r conftest* confdefs.h
1958 # Predefined preprocessor variables.
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_NAME "$PACKAGE_NAME"
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_STRING "$PACKAGE_STRING"
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1985 # Let the site file select an alternate cache file if it wants to.
1986 # Prefer an explicitly selected file to automatically selected ones.
1989 if test -n "$CONFIG_SITE"; then
1990 ac_site_file1=$CONFIG_SITE
1991 elif test "x$prefix" != xNONE; then
1992 ac_site_file1=$prefix/share/config.site
1993 ac_site_file2=$prefix/etc/config.site
1995 ac_site_file1=$ac_default_prefix/share/config.site
1996 ac_site_file2=$ac_default_prefix/etc/config.site
1998 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2000 test "x$ac_site_file" = xNONE && continue
2001 if test -r "$ac_site_file"; then
2002 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2003 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2004 sed 's/^/| /' "$ac_site_file" >&5
2009 if test -r "$cache_file"; then
2010 # Some versions of bash will fail to source /dev/null (special
2011 # files actually), so we avoid doing that.
2012 if test -f "$cache_file"; then
2013 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2014 $as_echo "$as_me: loading cache $cache_file" >&6;}
2016 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2017 *) . "./$cache_file";;
2021 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2022 $as_echo "$as_me: creating cache $cache_file" >&6;}
2026 # Check that the precious variables saved in the cache have kept the same
2028 ac_cache_corrupted=false
2029 for ac_var in $ac_precious_vars; do
2030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2031 eval ac_new_set=\$ac_env_${ac_var}_set
2032 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2033 eval ac_new_val=\$ac_env_${ac_var}_value
2034 case $ac_old_set,$ac_new_set in
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2040 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2041 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2042 ac_cache_corrupted=: ;;
2045 if test "x$ac_old_val" != "x$ac_new_val"; then
2046 # differences in whitespace do not lead to failure.
2047 ac_old_val_w=`echo x $ac_old_val`
2048 ac_new_val_w=`echo x $ac_new_val`
2049 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2050 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2051 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2052 ac_cache_corrupted=:
2054 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2055 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2056 eval $ac_var=\$ac_old_val
2058 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2059 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2060 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2061 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2064 # Pass precious variables to config.status.
2065 if test "$ac_new_set" = set; then
2067 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 *) ac_arg=$ac_var=$ac_new_val ;;
2070 case " $ac_configure_args " in
2071 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2072 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2076 if $ac_cache_corrupted; then
2077 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2080 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2081 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2082 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2083 { (exit 1); exit 1; }; }
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2113 ################################################################################
2115 for ac_dir in autoconf "$srcdir"/autoconf; do
2116 if test -f "$ac_dir/install-sh"; then
2118 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 elif test -f "$ac_dir/install.sh"; then
2122 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 elif test -f "$ac_dir/shtool"; then
2126 ac_install_sh="$ac_aux_dir/shtool install -c"
2130 if test -z "$ac_aux_dir"; then
2131 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2132 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2133 { (exit 1); exit 1; }; }
2136 # These three variables are undocumented and unsupported,
2137 # and are intended to be withdrawn in a future Autoconf release.
2138 # They can cause serious problems if a builder's source tree is in a directory
2139 # whose full name contains unusual characters.
2140 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2141 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2142 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2146 ################################################################################
2147 # Make sure we can run config.sub.
2148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2149 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2151 { (exit 1); exit 1; }; }
2153 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2154 $as_echo_n "checking build system type... " >&6; }
2155 if test "${ac_cv_build+set}" = set; then
2156 $as_echo_n "(cached) " >&6
2158 ac_build_alias=$build_alias
2159 test "x$ac_build_alias" = x &&
2160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161 test "x$ac_build_alias" = x &&
2162 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164 { (exit 1); exit 1; }; }
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2171 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 $as_echo "$ac_cv_build" >&6; }
2173 case $ac_cv_build in
2175 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2177 { (exit 1); exit 1; }; };;
2180 ac_save_IFS=$IFS; IFS='-'
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2194 $as_echo_n "checking host system type... " >&6; }
2195 if test "${ac_cv_host+set}" = set; then
2196 $as_echo_n "(cached) " >&6
2198 if test "x$host_alias" = x; then
2199 ac_cv_host=$ac_cv_build
2201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2202 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2204 { (exit 1); exit 1; }; }
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 $as_echo "$ac_cv_host" >&6; }
2212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2214 { (exit 1); exit 1; }; };;
2217 ac_save_IFS=$IFS; IFS='-'
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2230 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2231 $as_echo_n "checking target system type... " >&6; }
2232 if test "${ac_cv_target+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2235 if test "x$target_alias" = x; then
2236 ac_cv_target=$ac_cv_host
2238 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2239 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2241 { (exit 1); exit 1; }; }
2245 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2251 { (exit 1); exit 1; }; };;
2253 target=$ac_cv_target
2254 ac_save_IFS=$IFS; IFS='-'
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2264 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2267 # The aliases save the names the user supplied, while $host etc.
2268 # will get canonicalized.
2269 test -n "$target_alias" &&
2270 test "$program_prefix$program_suffix$program_transform_name" = \
2272 program_prefix=${target_alias}-
2277 COPTIMISE_FLAG="-O2"
2278 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2279 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2280 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2281 LDDEPS="$LDDEPS .export.sym"
2282 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2292 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2293 COPTIMISE_FLAG="-O2"
2294 CLDFLAGS="$CLDFLAGS"
2295 CLDWHOLEARCHIVE="-all_load"
2307 ################################################################################
2308 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2309 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2310 if test "${ac_cv_path_SED+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2314 for ac_i in 1 2 3 4 5 6 7; do
2315 ac_script="$ac_script$as_nl$ac_script"
2317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2318 $as_unset ac_script || ac_script=
2319 if test -z "$SED"; then
2320 ac_path_SED_found=false
2321 # Loop through the user's path and test for each of PROGNAME-LIST
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_prog in sed gsed; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2330 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2331 # Check for GNU ac_path_SED and select it if it is found.
2332 # Check for GNU $ac_path_SED
2333 case `"$ac_path_SED" --version 2>&1` in
2335 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2338 $as_echo_n 0123456789 >"conftest.in"
2341 cat "conftest.in" "conftest.in" >"conftest.tmp"
2342 mv "conftest.tmp" "conftest.in"
2343 cp "conftest.in" "conftest.nl"
2344 $as_echo '' >> "conftest.nl"
2345 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2347 ac_count=`expr $ac_count + 1`
2348 if test $ac_count -gt ${ac_path_SED_max-0}; then
2349 # Best one so far, save it but keep looking for a better one
2350 ac_cv_path_SED="$ac_path_SED"
2351 ac_path_SED_max=$ac_count
2353 # 10*(2^10) chars as input seems more than enough
2354 test $ac_count -gt 10 && break
2356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2359 $ac_path_SED_found && break 3
2364 if test -z "$ac_cv_path_SED"; then
2365 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2366 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2367 { (exit 1); exit 1; }; }
2374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2375 $as_echo "$ac_cv_path_SED" >&6; }
2376 SED="$ac_cv_path_SED"
2379 for ac_prog in gawk mawk nawk awk
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if test "${ac_cv_prog_AWK+set}" = set; then
2386 $as_echo_n "(cached) " >&6
2388 if test -n "$AWK"; then
2389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_AWK="$ac_prog"
2399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$AWK"; then
2410 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2411 $as_echo "$AWK" >&6; }
2413 { $as_echo "$as_me:$LINENO: result: no" >&5
2414 $as_echo "no" >&6; }
2418 test -n "$AWK" && break
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 $as_echo_n "(cached) " >&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test -n "$CC"; then
2456 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2457 $as_echo "$CC" >&6; }
2459 { $as_echo "$as_me:$LINENO: result: no" >&5
2460 $as_echo "no" >&6; }
2465 if test -z "$ac_cv_prog_CC"; then
2467 # Extract the first word of "gcc", so it can be a program name with args.
2468 set dummy gcc; ac_word=$2
2469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472 $as_echo_n "(cached) " >&6
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_ac_ct_CC="gcc"
2485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 $as_echo "$ac_ct_CC" >&6; }
2499 { $as_echo "$as_me:$LINENO: result: no" >&5
2500 $as_echo "no" >&6; }
2503 if test "x$ac_ct_CC" = x; then
2506 case $cross_compiling:$ac_tool_warned in
2508 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$CC"; then
2549 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553 $as_echo "no" >&6; }
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2609 { $as_echo "$as_me:$LINENO: result: no" >&5
2610 $as_echo "no" >&6; }
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2651 { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2656 test -n "$CC" && break
2659 if test -z "$CC"; then
2661 for ac_prog in cl.exe
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696 $as_echo "no" >&6; }
2700 test -n "$ac_ct_CC" && break
2703 if test "x$ac_ct_CC" = x; then
2706 case $cross_compiling:$ac_tool_warned in
2708 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2719 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2722 See \`config.log' for more details." >&5
2723 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&2;}
2725 { (exit 1); exit 1; }; }; }
2727 # Provide some information about the compiler.
2728 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 { (ac_try="$ac_compiler --version >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2748 $as_echo "$ac_try_echo") >&5
2749 (eval "$ac_compiler -v >&5") 2>&5
2751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753 { (ac_try="$ac_compiler -V >&5"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2759 $as_echo "$ac_try_echo") >&5
2760 (eval "$ac_compiler -V >&5") 2>&5
2762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2765 cat >conftest.$ac_ext <<_ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2780 ac_clean_files_save=$ac_clean_files
2781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2782 # Try to create an executable without -o first, disregard a.out.
2783 # It will help us diagnose broken compilers, and finding out an intuition
2785 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2786 $as_echo_n "checking for C compiler default output file name... " >&6; }
2787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2789 # The possible output files:
2790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2793 for ac_file in $ac_files
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802 if { (ac_try="$ac_link_default"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
2809 (eval "$ac_link_default") 2>&5
2811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; then
2813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2816 # so that the user can short-circuit this test for compilers unknown to
2818 for ac_file in $ac_files ''
2820 test -f "$ac_file" || continue
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2825 # We found the default executable, but exeext='' is most
2829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 # We set ac_cv_exeext here because the later test for it is not
2834 # safe: cross compilers may not add the suffix if given an `-o'
2835 # argument, so we may need to know it at that point already.
2836 # Even if this section looks crufty: it has the advantage of
2843 test "$ac_cv_exeext" = no && ac_cv_exeext=
2849 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2850 $as_echo "$ac_file" >&6; }
2851 if test -z "$ac_file"; then
2852 $as_echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2855 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 $as_echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }; }
2864 ac_exeext=$ac_cv_exeext
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 $as_echo_n "checking whether the C compiler works... " >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_try") 2>&5
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2886 if test "$cross_compiling" = maybe; then
2889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&5
2894 $as_echo "$as_me: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }; }
2901 { $as_echo "$as_me:$LINENO: result: yes" >&5
2902 $as_echo "yes" >&6; }
2904 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2905 ac_clean_files=$ac_clean_files_save
2906 # Check that the compiler produces executables we can run. If not, either
2907 # the compiler is broken, or we cross compile.
2908 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2909 $as_echo_n "checking whether we are cross compiling... " >&6; }
2910 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2911 $as_echo "$cross_compiling" >&6; }
2913 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2914 $as_echo_n "checking for suffix of executables... " >&6; }
2915 if { (ac_try="$ac_link"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2921 $as_echo "$ac_try_echo") >&5
2922 (eval "$ac_link") 2>&5
2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928 # work properly (i.e., refer to `conftest.exe'), while it won't with
2930 for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }; }
2949 rm -f conftest$ac_cv_exeext
2950 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 $as_echo "$ac_cv_exeext" >&6; }
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2956 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 $as_echo_n "checking for suffix of object files... " >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2983 $as_echo "$ac_try_echo") >&5
2984 (eval "$ac_compile") 2>&5
2986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 $as_echo "$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3015 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 $as_echo_n "(cached) " >&6
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3070 if test $ac_compiler_gnu = yes; then
3075 ac_test_CFLAGS=${CFLAGS+set}
3076 ac_save_CFLAGS=$CFLAGS
3077 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3079 if test "${ac_cv_prog_cc_g+set}" = set; then
3080 $as_echo_n "(cached) " >&6
3082 ac_save_c_werror_flag=$ac_c_werror_flag
3083 ac_c_werror_flag=yes
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108 $as_echo "$ac_try_echo") >&5
3109 (eval "$ac_compile") 2>conftest.er1
3111 grep -v '^ *+' conftest.er1 >conftest.err
3113 cat conftest.err >&5
3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } && {
3116 test -z "$ac_c_werror_flag" ||
3117 test ! -s conftest.err
3118 } && test -s conftest.$ac_objext; then
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187 $as_echo "$ac_try_echo") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216 $as_echo "$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3226 if test "$GCC" = yes; then
3232 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3237 ac_cv_prog_cc_c89=no
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3247 #include <sys/types.h>
3248 #include <sys/stat.h>
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3263 s = g (p, va_arg (v,int));
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
3271 as 'x'. The following induces an error, until -std is added to get
3272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
3274 that's true only with -std. */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307 $as_echo "$ac_try_echo") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 ac_cv_prog_cc_c89=$ac_arg
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 rm -f conftest.$ac_ext
3334 case "x$ac_cv_prog_cc_c89" in
3336 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3337 $as_echo "none needed" >&6; } ;;
3339 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3340 $as_echo "unsupported" >&6; } ;;
3342 CC="$CC $ac_cv_prog_cc_c89"
3343 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3362 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3363 # On Suns, sometimes $CPP names a directory.
3364 if test -n "$CPP" && test -d "$CPP"; then
3367 if test -z "$CPP"; then
3368 if test "${ac_cv_prog_CPP+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3371 # Double quotes because CPP needs to be expanded
3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375 for ac_c_preproc_warn_flag in '' yes
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380 # <limits.h> exists even on freestanding compilers.
3381 # On the NeXT, cc -E runs the code through the compiler's parser,
3382 # not just through cpp. "Syntax error" is here to catch this case.
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3390 # include <limits.h>
3392 # include <assert.h>
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null && {
3410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null && {
3448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3451 # Broken: success on invalid input.
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 # Passes both tests.
3462 rm -f conftest.err conftest.$ac_ext
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then
3479 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3480 $as_echo "$CPP" >&6; }
3482 for ac_c_preproc_warn_flag in '' yes
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3497 # include <limits.h>
3499 # include <assert.h>
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509 $as_echo "$ac_try_echo") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Broken: fails on valid input.
3529 rm -f conftest.err conftest.$ac_ext
3531 # OK, works on sane cases. Now check whether nonexistent headers
3532 # can be detected and how.
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <ac_nonexistent.h>
3541 if { (ac_try="$ac_cpp conftest.$ac_ext"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547 $as_echo "$ac_try_echo") >&5
3548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } >/dev/null && {
3555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3558 # Broken: success on invalid input.
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 # Passes both tests.
3569 rm -f conftest.err conftest.$ac_ext
3572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573 rm -f conftest.err conftest.$ac_ext
3574 if $ac_preproc_ok; then
3577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3580 See \`config.log' for more details." >&5
3581 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }; }
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3594 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3595 if test "${ac_cv_path_GREP+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3598 if test -z "$GREP"; then
3599 ac_path_GREP_found=false
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605 test -z "$as_dir" && as_dir=.
3606 for ac_prog in grep ggrep; do
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3609 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3610 # Check for GNU ac_path_GREP and select it if it is found.
3611 # Check for GNU $ac_path_GREP
3612 case `"$ac_path_GREP" --version 2>&1` in
3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3617 $as_echo_n 0123456789 >"conftest.in"
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
3623 $as_echo 'GREP' >> "conftest.nl"
3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 ac_count=`expr $ac_count + 1`
3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_GREP="$ac_path_GREP"
3630 ac_path_GREP_max=$ac_count
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3638 $ac_path_GREP_found && break 3
3643 if test -z "$ac_cv_path_GREP"; then
3644 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646 { (exit 1); exit 1; }; }
3649 ac_cv_path_GREP=$GREP
3653 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3654 $as_echo "$ac_cv_path_GREP" >&6; }
3655 GREP="$ac_cv_path_GREP"
3658 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3659 $as_echo_n "checking for egrep... " >&6; }
3660 if test "${ac_cv_path_EGREP+set}" = set; then
3661 $as_echo_n "(cached) " >&6
3663 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3664 then ac_cv_path_EGREP="$GREP -E"
3666 if test -z "$EGREP"; then
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3685 $as_echo_n 0123456789 >"conftest.in"
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 $as_echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 $ac_path_EGREP_found && break 3
3711 if test -z "$ac_cv_path_EGREP"; then
3712 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714 { (exit 1); exit 1; }; }
3717 ac_cv_path_EGREP=$EGREP
3722 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3723 $as_echo "$ac_cv_path_EGREP" >&6; }
3724 EGREP="$ac_cv_path_EGREP"
3727 if test $ac_cv_c_compiler_gnu = yes; then
3728 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3729 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3730 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3731 $as_echo_n "(cached) " >&6
3733 ac_pattern="Autoconf.*'x'"
3734 cat >conftest.$ac_ext <<_ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3745 ac_cv_prog_gcc_traditional=yes
3747 ac_cv_prog_gcc_traditional=no
3752 if test $ac_cv_prog_gcc_traditional = no; then
3753 cat >conftest.$ac_ext <<_ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3764 ac_cv_prog_gcc_traditional=yes
3770 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3771 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3772 if test $ac_cv_prog_gcc_traditional = yes; then
3773 CC="$CC -traditional"
3777 # Find a good install program. We prefer a C program (faster),
3778 # so one script is as good as another. But avoid the broken or
3779 # incompatible versions:
3780 # SysV /etc/install, /usr/sbin/install
3781 # SunOS /usr/etc/install
3782 # IRIX /sbin/install
3784 # AmigaOS /C/install, which installs bootblocks on floppy discs
3785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3788 # OS/2's system install, which has a completely different semantic
3789 # ./install, which can be erroneously created by make from ./install.sh.
3790 # Reject install programs that cannot install multiple files.
3791 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 $as_echo_n "(cached) " >&6
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3804 ./ | .// | /cC/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3809 # OSF1 and SCO ODT 3.0 have their own names for install.
3810 # Don't use installbsd from OSF since it installs stuff as root
3812 for ac_prog in ginstall scoinst install; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3815 if test $ac_prog = install &&
3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # AIX install. It has an incompatible calling convention.
3819 elif test $ac_prog = install &&
3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # program-specific install script used by HP pwplus--don't use.
3824 rm -rf conftest.one conftest.two conftest.dir
3825 echo one > conftest.one
3826 echo two > conftest.two
3828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3829 test -s conftest.one && test -s conftest.two &&
3830 test -s conftest.dir/conftest.one &&
3831 test -s conftest.dir/conftest.two
3833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3846 rm -rf conftest.one conftest.two conftest.dir
3849 if test "${ac_cv_path_install+set}" = set; then
3850 INSTALL=$ac_cv_path_install
3852 # As a last resort, use the slow shell script. Don't cache a
3853 # value for INSTALL within a source directory, because that will
3854 # break other packages using the cache if that directory is
3855 # removed, or if the value is a relative name.
3856 INSTALL=$ac_install_sh
3859 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3860 $as_echo "$INSTALL" >&6; }
3862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3863 # It thinks the first close brace ends the variable substitution.
3864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3870 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3871 $as_echo_n "checking whether ln -s works... " >&6; }
3873 if test "$LN_S" = "ln -s"; then
3874 { $as_echo "$as_me:$LINENO: result: yes" >&5
3875 $as_echo "yes" >&6; }
3877 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3878 $as_echo "no, using $LN_S" >&6; }
3881 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3882 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3884 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3885 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3886 $as_echo_n "(cached) " >&6
3888 cat >conftest.make <<\_ACEOF
3891 @echo '@@@%%%=$(MAKE)=@@@%%%'
3893 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3894 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3896 eval ac_cv_prog_make_${ac_make}_set=yes;;
3898 eval ac_cv_prog_make_${ac_make}_set=no;;
3902 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3903 { $as_echo "$as_me:$LINENO: result: yes" >&5
3904 $as_echo "yes" >&6; }
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908 $as_echo "no" >&6; }
3909 SET_MAKE="MAKE=${MAKE-make}"
3912 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3913 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3914 if test -z "$MKDIR_P"; then
3915 if test "${ac_cv_path_mkdir+set}" = set; then
3916 $as_echo_n "(cached) " >&6
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in mkdir gmkdir; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3927 'mkdir (GNU coreutils) '* | \
3928 'mkdir (coreutils) '* | \
3929 'mkdir (fileutils) '4.1*)
3930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3940 if test "${ac_cv_path_mkdir+set}" = set; then
3941 MKDIR_P="$ac_cv_path_mkdir -p"
3943 # As a last resort, use the slow shell script. Don't cache a
3944 # value for MKDIR_P within a source directory, because that will
3945 # break other packages using the cache if that directory is
3946 # removed, or if the value is a relative name.
3947 test -d ./--version && rmdir ./--version
3948 MKDIR_P="$ac_install_sh -d"
3951 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3952 $as_echo "$MKDIR_P" >&6; }
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_RANLIB+set}" = set; then
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$RANLIB"; then
3963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 RANLIB=$ac_cv_prog_RANLIB
3983 if test -n "$RANLIB"; then
3984 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3985 $as_echo "$RANLIB" >&6; }
3987 { $as_echo "$as_me:$LINENO: result: no" >&5
3988 $as_echo "no" >&6; }
3993 if test -z "$ac_cv_prog_RANLIB"; then
3994 ac_ct_RANLIB=$RANLIB
3995 # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; ac_word=$2
3997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$ac_ct_RANLIB"; then
4003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_ac_ct_RANLIB="ranlib"
4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025 $as_echo "$ac_ct_RANLIB" >&6; }
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028 $as_echo "no" >&6; }
4031 if test "x$ac_ct_RANLIB" = x; then
4034 case $cross_compiling:$ac_tool_warned in
4036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4040 RANLIB=$ac_ct_RANLIB
4043 RANLIB="$ac_cv_prog_RANLIB"
4046 # Extract the first word of "cflow", so it can be a program name with args.
4047 set dummy cflow; ac_word=$2
4048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
4051 $as_echo_n "(cached) " >&6
4055 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4077 if test -n "$CFLOW_CMD"; then
4078 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4079 $as_echo "$CFLOW_CMD" >&6; }
4081 { $as_echo "$as_me:$LINENO: result: no" >&5
4082 $as_echo "no" >&6; }
4086 # Extract the first word of "cscope", so it can be a program name with args.
4087 set dummy cscope; ac_word=$2
4088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4091 $as_echo_n "(cached) " >&6
4095 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4117 if test -n "$CSCOPE_CMD"; then
4118 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4119 $as_echo "$CSCOPE_CMD" >&6; }
4121 { $as_echo "$as_me:$LINENO: result: no" >&5
4122 $as_echo "no" >&6; }
4127 ################################################################################
4134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4135 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4136 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4137 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4139 $as_echo_n "(cached) " >&6
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4177 eval "$as_ac_Header=yes"
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 eval "$as_ac_Header=no"
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_res=`eval 'as_val=${'$as_ac_Header'}
4188 $as_echo "$as_val"'`
4189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4190 $as_echo "$ac_res" >&6; }
4191 as_val=`eval 'as_val=${'$as_ac_Header'}
4192 $as_echo "$as_val"'`
4193 if test "x$as_val" = x""yes; then
4194 cat >>confdefs.h <<_ACEOF
4195 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4198 ac_header_dirent=$ac_hdr; break
4202 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4203 if test $ac_header_dirent = dirent.h; then
4204 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4205 $as_echo_n "checking for library containing opendir... " >&6; }
4206 if test "${ac_cv_search_opendir+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4209 ac_func_search_save_LIBS=$LIBS
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4217 /* Override any GCC internal prototype to avoid an error.
4218 Use char because int might match the return type of a GCC
4219 builtin and then its argument prototype would still apply. */
4232 for ac_lib in '' dir; do
4233 if test -z "$ac_lib"; then
4234 ac_res="none required"
4237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (ac_try="$ac_link"
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246 $as_echo "$ac_try_echo") >&5
4247 (eval "$ac_link") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
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_exeext && {
4257 test "$cross_compiling" = yes ||
4258 $as_test_x conftest$ac_exeext
4260 ac_cv_search_opendir=$ac_res
4262 $as_echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4268 rm -rf conftest.dSYM
4269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4271 if test "${ac_cv_search_opendir+set}" = set; then
4275 if test "${ac_cv_search_opendir+set}" = set; then
4278 ac_cv_search_opendir=no
4281 LIBS=$ac_func_search_save_LIBS
4283 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4284 $as_echo "$ac_cv_search_opendir" >&6; }
4285 ac_res=$ac_cv_search_opendir
4286 if test "$ac_res" != no; then
4287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4292 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4293 $as_echo_n "checking for library containing opendir... " >&6; }
4294 if test "${ac_cv_search_opendir+set}" = set; then
4295 $as_echo_n "(cached) " >&6
4297 ac_func_search_save_LIBS=$LIBS
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4305 /* Override any GCC internal prototype to avoid an error.
4306 Use char because int might match the return type of a GCC
4307 builtin and then its argument prototype would still apply. */
4320 for ac_lib in '' x; do
4321 if test -z "$ac_lib"; then
4322 ac_res="none required"
4325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4334 $as_echo "$ac_try_echo") >&5
4335 (eval "$ac_link") 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && {
4342 test -z "$ac_c_werror_flag" ||
4343 test ! -s conftest.err
4344 } && test -s conftest$ac_exeext && {
4345 test "$cross_compiling" = yes ||
4346 $as_test_x conftest$ac_exeext
4348 ac_cv_search_opendir=$ac_res
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4356 rm -rf conftest.dSYM
4357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4359 if test "${ac_cv_search_opendir+set}" = set; then
4363 if test "${ac_cv_search_opendir+set}" = set; then
4366 ac_cv_search_opendir=no
4369 LIBS=$ac_func_search_save_LIBS
4371 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4372 $as_echo "$ac_cv_search_opendir" >&6; }
4373 ac_res=$ac_cv_search_opendir
4374 if test "$ac_res" != no; then
4375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4381 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4382 $as_echo_n "checking for ANSI C header files... " >&6; }
4383 if test "${ac_cv_header_stdc+set}" = set; then
4384 $as_echo_n "(cached) " >&6
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4405 rm -f conftest.$ac_objext
4406 if { (ac_try="$ac_compile"
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4412 $as_echo "$ac_try_echo") >&5
4413 (eval "$ac_compile") 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } && {
4420 test -z "$ac_c_werror_flag" ||
4421 test ! -s conftest.err
4422 } && test -s conftest.$ac_objext; then
4423 ac_cv_header_stdc=yes
4425 $as_echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 ac_cv_header_stdc=no
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 if test $ac_cv_header_stdc = yes; then
4434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 $EGREP "memchr" >/dev/null 2>&1; then
4448 ac_cv_header_stdc=no
4454 if test $ac_cv_header_stdc = yes; then
4455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "free" >/dev/null 2>&1; then
4469 ac_cv_header_stdc=no
4475 if test $ac_cv_header_stdc = yes; then
4476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4477 if test "$cross_compiling" = yes; then
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4488 #if ((' ' & 0x0FF) == 0x020)
4489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4492 # define ISLOWER(c) \
4493 (('a' <= (c) && (c) <= 'i') \
4494 || ('j' <= (c) && (c) <= 'r') \
4495 || ('s' <= (c) && (c) <= 'z'))
4496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4504 for (i = 0; i < 256; i++)
4505 if (XOR (islower (i), ISLOWER (i))
4506 || toupper (i) != TOUPPER (i))
4511 rm -f conftest$ac_exeext
4512 if { (ac_try="$ac_link"
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4518 $as_echo "$ac_try_echo") >&5
4519 (eval "$ac_link") 2>&5
4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4528 $as_echo "$ac_try_echo") >&5
4529 (eval "$ac_try") 2>&5
4531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4535 $as_echo "$as_me: program exited with status $ac_status" >&5
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4540 ac_cv_header_stdc=no
4542 rm -rf conftest.dSYM
4543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4550 $as_echo "$ac_cv_header_stdc" >&6; }
4551 if test $ac_cv_header_stdc = yes; then
4553 cat >>confdefs.h <<\_ACEOF
4554 #define STDC_HEADERS 1
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4574 $as_echo_n "checking for $ac_header... " >&6; }
4575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4576 $as_echo_n "(cached) " >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4586 #include <$ac_header>
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4595 $as_echo "$ac_try_echo") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1 >conftest.err
4600 cat conftest.err >&5
4601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4606 eval "$as_ac_Header=yes"
4608 $as_echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 eval "$as_ac_Header=no"
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_res=`eval 'as_val=${'$as_ac_Header'}
4617 $as_echo "$as_val"'`
4618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4619 $as_echo "$ac_res" >&6; }
4620 as_val=`eval 'as_val=${'$as_ac_Header'}
4621 $as_echo "$as_val"'`
4622 if test "x$as_val" = x""yes; then
4623 cat >>confdefs.h <<_ACEOF
4624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4632 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4633 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4634 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4647 return makedev(0, 0);
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_link") 2>conftest.er1
4662 grep -v '^ *+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest$ac_exeext && {
4670 test "$cross_compiling" = yes ||
4671 $as_test_x conftest$ac_exeext
4673 ac_cv_header_sys_types_h_makedev=yes
4675 $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_cv_header_sys_types_h_makedev=no
4681 rm -rf conftest.dSYM
4682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4683 conftest$ac_exeext conftest.$ac_ext
4686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4687 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4689 if test $ac_cv_header_sys_types_h_makedev = no; then
4690 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4691 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4692 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4693 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4694 $as_echo_n "(cached) " >&6
4696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4697 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4699 # Is the header compilable?
4700 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4701 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4709 #include <sys/mkdev.h>
4711 rm -f conftest.$ac_objext
4712 if { (ac_try="$ac_compile"
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4718 $as_echo "$ac_try_echo") >&5
4719 (eval "$ac_compile") 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && {
4726 test -z "$ac_c_werror_flag" ||
4727 test ! -s conftest.err
4728 } && test -s conftest.$ac_objext; then
4729 ac_header_compiler=yes
4731 $as_echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 ac_header_compiler=no
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739 $as_echo "$ac_header_compiler" >&6; }
4741 # Is the header present?
4742 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4743 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <sys/mkdev.h>
4752 if { (ac_try="$ac_cpp conftest.$ac_ext"
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4758 $as_echo "$ac_try_echo") >&5
4759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null && {
4766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4769 ac_header_preproc=yes
4771 $as_echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4774 ac_header_preproc=no
4777 rm -f conftest.err conftest.$ac_ext
4778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779 $as_echo "$ac_header_preproc" >&6; }
4781 # So? What about this header?
4782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4785 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4787 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
4788 ac_header_preproc=yes
4791 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4792 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4794 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4796 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4798 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4800 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4801 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4802 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
4806 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4807 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4808 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4811 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4814 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4817 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4819 cat >>confdefs.h <<\_ACEOF
4820 #define MAJOR_IN_MKDEV 1
4827 if test $ac_cv_header_sys_mkdev_h = no; then
4828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4829 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4830 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4831 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4835 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4837 # Is the header compilable?
4838 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4839 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 $ac_includes_default
4847 #include <sys/sysmacros.h>
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_compile") 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
4867 ac_header_compiler=yes
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_header_compiler=no
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 $as_echo "$ac_header_compiler" >&6; }
4879 # Is the header present?
4880 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4881 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888 #include <sys/sysmacros.h>
4890 if { (ac_try="$ac_cpp conftest.$ac_ext"
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev/null && {
4904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4907 ac_header_preproc=yes
4909 $as_echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ac_header_preproc=no
4915 rm -f conftest.err conftest.$ac_ext
4916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 $as_echo "$ac_header_preproc" >&6; }
4919 # So? What about this header?
4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4923 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4925 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
4926 ac_header_preproc=yes
4929 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4930 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4931 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4932 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4933 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4934 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4935 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4936 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4937 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4938 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4939 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4940 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
4944 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4945 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4946 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4947 $as_echo_n "(cached) " >&6
4949 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4951 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4952 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4955 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4957 cat >>confdefs.h <<\_ACEOF
4958 #define MAJOR_IN_SYSMACROS 1
4967 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4968 $as_echo_n "checking for ANSI C header files... " >&6; }
4969 if test "${ac_cv_header_stdc+set}" = set; then
4970 $as_echo_n "(cached) " >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998 $as_echo "$ac_try_echo") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 ac_cv_header_stdc=yes
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 ac_cv_header_stdc=no
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 if test $ac_cv_header_stdc = yes; then
5020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5021 cat >conftest.$ac_ext <<_ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then
5034 ac_cv_header_stdc=no
5040 if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "free" >/dev/null 2>&1; then
5055 ac_cv_header_stdc=no
5061 if test $ac_cv_header_stdc = yes; then
5062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5063 if test "$cross_compiling" = yes; then
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 #if ((' ' & 0x0FF) == 0x020)
5075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5078 # define ISLOWER(c) \
5079 (('a' <= (c) && (c) <= 'i') \
5080 || ('j' <= (c) && (c) <= 'r') \
5081 || ('s' <= (c) && (c) <= 'z'))
5082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5090 for (i = 0; i < 256; i++)
5091 if (XOR (islower (i), ISLOWER (i))
5092 || toupper (i) != TOUPPER (i))
5097 rm -f conftest$ac_exeext
5098 if { (ac_try="$ac_link"
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105 (eval "$ac_link") 2>&5
5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5109 { (case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5114 $as_echo "$ac_try_echo") >&5
5115 (eval "$ac_try") 2>&5
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5121 $as_echo "$as_me: program exited with status $ac_status" >&5
5122 $as_echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5126 ac_cv_header_stdc=no
5128 rm -rf conftest.dSYM
5129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5136 $as_echo "$ac_cv_header_stdc" >&6; }
5137 if test $ac_cv_header_stdc = yes; then
5139 cat >>confdefs.h <<\_ACEOF
5140 #define STDC_HEADERS 1
5145 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5146 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5147 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5148 $as_echo_n "(cached) " >&6
5150 cat >conftest.$ac_ext <<_ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #include <sys/types.h>
5157 #include <sys/wait.h>
5159 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5162 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5175 rm -f conftest.$ac_objext
5176 if { (ac_try="$ac_compile"
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5182 $as_echo "$ac_try_echo") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5193 ac_cv_header_sys_wait_h=yes
5195 $as_echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_header_sys_wait_h=no
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5204 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5205 if test $ac_cv_header_sys_wait_h = yes; then
5207 cat >>confdefs.h <<\_ACEOF
5208 #define HAVE_SYS_WAIT_H 1
5213 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5214 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5215 if test "${ac_cv_header_time+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <sys/types.h>
5225 #include <sys/time.h>
5231 if ((struct tm *) 0)
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5244 $as_echo "$ac_try_echo") >&5
5245 (eval "$ac_compile") 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest.$ac_objext; then
5255 ac_cv_header_time=yes
5257 $as_echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 ac_cv_header_time=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5266 $as_echo "$ac_cv_header_time" >&6; }
5267 if test $ac_cv_header_time = yes; then
5269 cat >>confdefs.h <<\_ACEOF
5270 #define TIME_WITH_SYS_TIME 1
5290 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5291 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5297 $as_echo_n "checking for $ac_header... " >&6; }
5298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299 $as_echo_n "(cached) " >&6
5301 ac_res=`eval 'as_val=${'$as_ac_Header'}
5302 $as_echo "$as_val"'`
5303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5304 $as_echo "$ac_res" >&6; }
5306 # Is the header compilable?
5307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308 $as_echo_n "checking $ac_header usability... " >&6; }
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 $ac_includes_default
5316 #include <$ac_header>
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325 $as_echo "$ac_try_echo") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
5336 ac_header_compiler=yes
5338 $as_echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 ac_header_compiler=no
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5346 $as_echo "$ac_header_compiler" >&6; }
5348 # Is the header present?
5349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5350 $as_echo_n "checking $ac_header presence... " >&6; }
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #include <$ac_header>
5359 if { (ac_try="$ac_cpp conftest.$ac_ext"
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5368 grep -v '^ *+' conftest.er1 >conftest.err
5370 cat conftest.err >&5
5371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null && {
5373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5376 ac_header_preproc=yes
5378 $as_echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_header_preproc=no
5384 rm -f conftest.err conftest.$ac_ext
5385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5386 $as_echo "$ac_header_preproc" >&6; }
5388 # So? What about this header?
5389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5395 ac_header_preproc=yes
5398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5401 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5405 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 $as_echo_n "checking for $ac_header... " >&6; }
5415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416 $as_echo_n "(cached) " >&6
5418 eval "$as_ac_Header=\$ac_header_preproc"
5420 ac_res=`eval 'as_val=${'$as_ac_Header'}
5421 $as_echo "$as_val"'`
5422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5423 $as_echo "$ac_res" >&6; }
5426 as_val=`eval 'as_val=${'$as_ac_Header'}
5427 $as_echo "$as_val"'`
5428 if test "x$as_val" = x""yes; then
5429 cat >>confdefs.h <<_ACEOF
5430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5435 $as_echo "$as_me: error: bailing out" >&2;}
5436 { (exit 1); exit 1; }; }
5447 for ac_header in asm/byteorder.h linux/fs.h malloc.h
5449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5452 $as_echo_n "checking for $ac_header... " >&6; }
5453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5454 $as_echo_n "(cached) " >&6
5456 ac_res=`eval 'as_val=${'$as_ac_Header'}
5457 $as_echo "$as_val"'`
5458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5459 $as_echo "$ac_res" >&6; }
5461 # Is the header compilable?
5462 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5463 $as_echo_n "checking $ac_header usability... " >&6; }
5464 cat >conftest.$ac_ext <<_ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5471 #include <$ac_header>
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480 $as_echo "$ac_try_echo") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5483 grep -v '^ *+' conftest.er1 >conftest.err
5485 cat conftest.err >&5
5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_header_compiler=yes
5493 $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_compiler=no
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501 $as_echo "$ac_header_compiler" >&6; }
5503 # Is the header present?
5504 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505 $as_echo_n "checking $ac_header presence... " >&6; }
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <$ac_header>
5514 if { (ac_try="$ac_cpp conftest.$ac_ext"
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520 $as_echo "$ac_try_echo") >&5
5521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null && {
5528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5531 ac_header_preproc=yes
5533 $as_echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_header_preproc=no
5539 rm -f conftest.err conftest.$ac_ext
5540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5541 $as_echo "$ac_header_preproc" >&6; }
5543 # So? What about this header?
5544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5547 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5550 ac_header_preproc=yes
5553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5554 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5556 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5558 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5560 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5564 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5569 $as_echo_n "checking for $ac_header... " >&6; }
5570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5571 $as_echo_n "(cached) " >&6
5573 eval "$as_ac_Header=\$ac_header_preproc"
5575 ac_res=`eval 'as_val=${'$as_ac_Header'}
5576 $as_echo "$as_val"'`
5577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5578 $as_echo "$ac_res" >&6; }
5581 as_val=`eval 'as_val=${'$as_ac_Header'}
5582 $as_echo "$as_val"'`
5583 if test "x$as_val" = x""yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5589 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5590 $as_echo "$as_me: error: bailing out" >&2;}
5591 { (exit 1); exit 1; }; }
5599 for ac_header in machine/endian.h sys/disk.h
5601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 $as_echo_n "checking for $ac_header... " >&6; }
5605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5606 $as_echo_n "(cached) " >&6
5608 ac_res=`eval 'as_val=${'$as_ac_Header'}
5609 $as_echo "$as_val"'`
5610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5611 $as_echo "$ac_res" >&6; }
5613 # Is the header compilable?
5614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5615 $as_echo_n "checking $ac_header usability... " >&6; }
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 $ac_includes_default
5623 #include <$ac_header>
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_header_compiler=yes
5645 $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_header_compiler=no
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5653 $as_echo "$ac_header_compiler" >&6; }
5655 # Is the header present?
5656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5657 $as_echo_n "checking $ac_header presence... " >&6; }
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <$ac_header>
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672 $as_echo "$ac_try_echo") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null && {
5680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5683 ac_header_preproc=yes
5685 $as_echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 ac_header_preproc=no
5691 rm -f conftest.err conftest.$ac_ext
5692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5693 $as_echo "$ac_header_preproc" >&6; }
5695 # So? What about this header?
5696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5702 ac_header_preproc=yes
5705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5721 $as_echo_n "checking for $ac_header... " >&6; }
5722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5723 $as_echo_n "(cached) " >&6
5725 eval "$as_ac_Header=\$ac_header_preproc"
5727 ac_res=`eval 'as_val=${'$as_ac_Header'}
5728 $as_echo "$as_val"'`
5729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5730 $as_echo "$ac_res" >&6; }
5733 as_val=`eval 'as_val=${'$as_ac_Header'}
5734 $as_echo "$as_val"'`
5735 if test "x$as_val" = x""yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5741 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5742 $as_echo "$as_me: error: bailing out" >&2;}
5743 { (exit 1); exit 1; }; }
5766 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5767 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5768 sys/types.h unistd.h
5770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 $as_echo_n "checking for $ac_header... " >&6; }
5774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5775 $as_echo_n "(cached) " >&6
5777 ac_res=`eval 'as_val=${'$as_ac_Header'}
5778 $as_echo "$as_val"'`
5779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5780 $as_echo "$ac_res" >&6; }
5782 # Is the header compilable?
5783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5784 $as_echo_n "checking $ac_header usability... " >&6; }
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 #include <$ac_header>
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5801 $as_echo "$ac_try_echo") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 ac_header_compiler=yes
5814 $as_echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 ac_header_compiler=no
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5822 $as_echo "$ac_header_compiler" >&6; }
5824 # Is the header present?
5825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5826 $as_echo_n "checking $ac_header presence... " >&6; }
5827 cat >conftest.$ac_ext <<_ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <$ac_header>
5835 if { (ac_try="$ac_cpp conftest.$ac_ext"
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } >/dev/null && {
5849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5852 ac_header_preproc=yes
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 ac_header_preproc=no
5860 rm -f conftest.err conftest.$ac_ext
5861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5862 $as_echo "$ac_header_preproc" >&6; }
5864 # So? What about this header?
5865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5871 ac_header_preproc=yes
5874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 $as_echo_n "checking for $ac_header... " >&6; }
5891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5892 $as_echo_n "(cached) " >&6
5894 eval "$as_ac_Header=\$ac_header_preproc"
5896 ac_res=`eval 'as_val=${'$as_ac_Header'}
5897 $as_echo "$as_val"'`
5898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5899 $as_echo "$ac_res" >&6; }
5902 as_val=`eval 'as_val=${'$as_ac_Header'}
5903 $as_echo "$as_val"'`
5904 if test "x$as_val" = x""yes; then
5905 cat >>confdefs.h <<_ACEOF
5906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5910 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5911 $as_echo "$as_me: error: bailing out" >&2;}
5912 { (exit 1); exit 1; }; }
5919 for ac_header in termios.h sys/statvfs.h
5921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 $as_echo_n "checking for $ac_header... " >&6; }
5925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 $as_echo_n "(cached) " >&6
5928 ac_res=`eval 'as_val=${'$as_ac_Header'}
5929 $as_echo "$as_val"'`
5930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5931 $as_echo "$ac_res" >&6; }
5933 # Is the header compilable?
5934 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5935 $as_echo_n "checking $ac_header usability... " >&6; }
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 #include <$ac_header>
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952 $as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_header_compiler=yes
5965 $as_echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_header_compiler=no
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5973 $as_echo "$ac_header_compiler" >&6; }
5975 # Is the header present?
5976 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5977 $as_echo_n "checking $ac_header presence... " >&6; }
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <$ac_header>
5986 if { (ac_try="$ac_cpp conftest.$ac_ext"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992 $as_echo "$ac_try_echo") >&5
5993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5995 grep -v '^ *+' conftest.er1 >conftest.err
5997 cat conftest.err >&5
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null && {
6000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6003 ac_header_preproc=yes
6005 $as_echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_header_preproc=no
6011 rm -f conftest.err conftest.$ac_ext
6012 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6013 $as_echo "$ac_header_preproc" >&6; }
6015 # So? What about this header?
6016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6019 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6022 ac_header_preproc=yes
6025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6026 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6028 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6030 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6032 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6036 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 $as_echo_n "checking for $ac_header... " >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043 $as_echo_n "(cached) " >&6
6045 eval "$as_ac_Header=\$ac_header_preproc"
6047 ac_res=`eval 'as_val=${'$as_ac_Header'}
6048 $as_echo "$as_val"'`
6049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6050 $as_echo "$ac_res" >&6; }
6053 as_val=`eval 'as_val=${'$as_ac_Header'}
6054 $as_echo "$as_val"'`
6055 if test "x$as_val" = x""yes; then
6056 cat >>confdefs.h <<_ACEOF
6057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6065 ################################################################################
6066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6068 if test "${ac_cv_c_const+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6081 /* FIXME: Include the comments suggested by Paul. */
6083 /* Ultrix mips cc rejects this. */
6084 typedef int charset[2];
6086 /* SunOS 4.1.1 cc rejects this. */
6087 char const *const *pcpcc;
6089 /* NEC SVR4.0.2 mips cc rejects this. */
6090 struct point {int x, y;};
6091 static struct point const zero = {0,0};
6092 /* AIX XL C 1.02.0.0 rejects this.
6093 It does not let you subtract one const X* pointer from another in
6094 an arm of an if-expression whose if-part is not a constant
6096 const char *g = "string";
6097 pcpcc = &g + (g ? g-g : 0);
6098 /* HPUX 7.0 cc rejects these. */
6100 ppc = (char**) pcpcc;
6101 pcpcc = (char const *const *) ppc;
6102 { /* SCO 3.2v4 cc rejects this. */
6104 char const *s = 0 ? (char *) 0 : (char const *) 0;
6109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6111 const int *foo = &x[0];
6114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6115 typedef const int *iptr;
6119 { /* AIX XL C 1.02.0.0 rejects this saying
6120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6121 struct s { int j; const int *ap[3]; };
6122 struct s *b; b->j = 5;
6124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6128 return !cs[0] && !zero.x;
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142 $as_echo "$ac_try_echo") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6155 $as_echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6164 $as_echo "$ac_cv_c_const" >&6; }
6165 if test $ac_cv_c_const = no; then
6167 cat >>confdefs.h <<\_ACEOF
6173 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6174 $as_echo_n "checking for inline... " >&6; }
6175 if test "${ac_cv_c_inline+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6179 for ac_kw in inline __inline__ __inline; do
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6188 static $ac_kw foo_t static_foo () {return 0; }
6189 $ac_kw foo_t foo () {return 0; }
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1 >conftest.err
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_cv_c_inline=$ac_kw
6213 $as_echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 test "$ac_cv_c_inline" != no && break
6224 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6225 $as_echo "$ac_cv_c_inline" >&6; }
6228 case $ac_cv_c_inline in
6231 case $ac_cv_c_inline in
6233 *) ac_val=$ac_cv_c_inline;;
6235 cat >>confdefs.h <<_ACEOF
6237 #define inline $ac_val
6243 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6244 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6245 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6246 $as_echo_n "(cached) " >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 $ac_includes_default
6258 static struct stat ac_aggr;
6259 if (ac_aggr.st_rdev)
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272 $as_echo "$ac_try_echo") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6275 grep -v '^ *+' conftest.er1 >conftest.err
6277 cat conftest.err >&5
6278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 ac_cv_member_struct_stat_st_rdev=yes
6285 $as_echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6298 static struct stat ac_aggr;
6299 if (sizeof ac_aggr.st_rdev)
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6312 $as_echo "$ac_try_echo") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6315 grep -v '^ *+' conftest.er1 >conftest.err
6317 cat conftest.err >&5
6318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_cv_member_struct_stat_st_rdev=yes
6325 $as_echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_cv_member_struct_stat_st_rdev=no
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6337 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6338 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_STRUCT_STAT_ST_RDEV 1
6347 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
6348 $as_echo_n "checking for off_t... " >&6; }
6349 if test "${ac_cv_type_off_t+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 $ac_includes_default
6369 rm -f conftest.$ac_objext
6370 if { (ac_try="$ac_compile"
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6376 $as_echo "$ac_try_echo") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6379 grep -v '^ *+' conftest.er1 >conftest.err
6381 cat conftest.err >&5
6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && {
6384 test -z "$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 } && test -s conftest.$ac_objext; then
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6397 if (sizeof ((off_t)))
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6410 $as_echo "$ac_try_echo") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_cv_type_off_t=yes
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 $as_echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6440 $as_echo "$ac_cv_type_off_t" >&6; }
6441 if test "x$ac_cv_type_off_t" = x""yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define off_t long int
6451 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6452 $as_echo_n "checking for pid_t... " >&6; }
6453 if test "${ac_cv_type_pid_t+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 $ac_includes_default
6501 if (sizeof ((pid_t)))
6507 rm -f conftest.$ac_objext
6508 if { (ac_try="$ac_compile"
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6514 $as_echo "$ac_try_echo") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6517 grep -v '^ *+' conftest.er1 >conftest.err
6519 cat conftest.err >&5
6520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6527 $as_echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_type_pid_t=yes
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 $as_echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6544 $as_echo "$ac_cv_type_pid_t" >&6; }
6545 if test "x$ac_cv_type_pid_t" = x""yes; then
6549 cat >>confdefs.h <<_ACEOF
6555 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6556 $as_echo_n "checking return type of signal handlers... " >&6; }
6557 if test "${ac_cv_type_signal+set}" = set; then
6558 $as_echo_n "(cached) " >&6
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <sys/types.h>
6572 return *(signal (0, 0)) (0) == 1;
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.$ac_objext; then
6595 ac_cv_type_signal=int
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_cv_type_signal=void
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606 $as_echo "$ac_cv_type_signal" >&6; }
6608 cat >>confdefs.h <<_ACEOF
6609 #define RETSIGTYPE $ac_cv_type_signal
6613 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6614 $as_echo_n "checking for size_t... " >&6; }
6615 if test "${ac_cv_type_size_t+set}" = set; then
6616 $as_echo_n "(cached) " >&6
6618 ac_cv_type_size_t=no
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 $ac_includes_default
6629 if (sizeof (size_t))
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6645 grep -v '^ *+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 cat >conftest.$ac_ext <<_ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 $ac_includes_default
6663 if (sizeof ((size_t)))
6669 rm -f conftest.$ac_objext
6670 if { (ac_try="$ac_compile"
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6676 $as_echo "$ac_try_echo") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6689 $as_echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_cv_type_size_t=yes
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 $as_echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6706 $as_echo "$ac_cv_type_size_t" >&6; }
6707 if test "x$ac_cv_type_size_t" = x""yes; then
6711 cat >>confdefs.h <<_ACEOF
6712 #define size_t unsigned int
6717 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6718 $as_echo_n "checking for mode_t... " >&6; }
6719 if test "${ac_cv_type_mode_t+set}" = set; then
6720 $as_echo_n "(cached) " >&6
6722 ac_cv_type_mode_t=no
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 $ac_includes_default
6733 if (sizeof (mode_t))
6739 rm -f conftest.$ac_objext
6740 if { (ac_try="$ac_compile"
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6746 $as_echo "$ac_try_echo") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6767 if (sizeof ((mode_t)))
6773 rm -f conftest.$ac_objext
6774 if { (ac_try="$ac_compile"
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6780 $as_echo "$ac_try_echo") >&5
6781 (eval "$ac_compile") 2>conftest.er1
6783 grep -v '^ *+' conftest.er1 >conftest.err
6785 cat conftest.err >&5
6786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest.$ac_objext; then
6793 $as_echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_cv_type_mode_t=yes
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 $as_echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6810 $as_echo "$ac_cv_type_mode_t" >&6; }
6811 if test "x$ac_cv_type_mode_t" = x""yes; then
6815 cat >>confdefs.h <<_ACEOF
6822 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6823 $as_echo_n "checking for int8_t... " >&6; }
6824 if test "${ac_cv_c_int8_t+set}" = set; then
6825 $as_echo_n "(cached) " >&6
6828 for ac_type in 'int8_t' 'int' 'long int' \
6829 'long long int' 'short int' 'signed char'; do
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 $ac_includes_default
6840 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6847 rm -f conftest.$ac_objext
6848 if { (ac_try="$ac_compile"
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855 (eval "$ac_compile") 2>conftest.er1
6857 grep -v '^ *+' conftest.er1 >conftest.err
6859 cat conftest.err >&5
6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest.$ac_objext; then
6865 cat >conftest.$ac_ext <<_ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 $ac_includes_default
6875 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6876 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6907 int8_t) ac_cv_c_int8_t=yes ;;
6908 *) ac_cv_c_int8_t=$ac_type ;;
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 test "$ac_cv_c_int8_t" != no && break
6925 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6926 $as_echo "$ac_cv_c_int8_t" >&6; }
6927 case $ac_cv_c_int8_t in #(
6931 cat >>confdefs.h <<_ACEOF
6932 #define int8_t $ac_cv_c_int8_t
6938 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6939 $as_echo_n "checking for int16_t... " >&6; }
6940 if test "${ac_cv_c_int16_t+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6944 for ac_type in 'int16_t' 'int' 'long int' \
6945 'long long int' 'short int' 'signed char'; do
6946 cat >conftest.$ac_ext <<_ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6956 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6963 rm -f conftest.$ac_objext
6964 if { (ac_try="$ac_compile"
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6991 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6992 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6999 rm -f conftest.$ac_objext
7000 if { (ac_try="$ac_compile"
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7019 $as_echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7023 int16_t) ac_cv_c_int16_t=yes ;;
7024 *) ac_cv_c_int16_t=$ac_type ;;
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 $as_echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 test "$ac_cv_c_int16_t" != no && break
7041 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7042 $as_echo "$ac_cv_c_int16_t" >&6; }
7043 case $ac_cv_c_int16_t in #(
7047 cat >>confdefs.h <<_ACEOF
7048 #define int16_t $ac_cv_c_int16_t
7054 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7055 $as_echo_n "checking for int32_t... " >&6; }
7056 if test "${ac_cv_c_int32_t+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7060 for ac_type in 'int32_t' 'int' 'long int' \
7061 'long long int' 'short int' 'signed char'; do
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 $ac_includes_default
7072 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7086 $as_echo "$ac_try_echo") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 $ac_includes_default
7107 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7108 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122 $as_echo "$ac_try_echo") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7125 grep -v '^ *+' conftest.er1 >conftest.err
7127 cat conftest.err >&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7139 int32_t) ac_cv_c_int32_t=yes ;;
7140 *) ac_cv_c_int32_t=$ac_type ;;
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 test "$ac_cv_c_int32_t" != no && break
7157 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7158 $as_echo "$ac_cv_c_int32_t" >&6; }
7159 case $ac_cv_c_int32_t in #(
7163 cat >>confdefs.h <<_ACEOF
7164 #define int32_t $ac_cv_c_int32_t
7170 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7171 $as_echo_n "checking for int64_t... " >&6; }
7172 if test "${ac_cv_c_int64_t+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7176 for ac_type in 'int64_t' 'int' 'long int' \
7177 'long long int' 'short int' 'signed char'; do
7178 cat >conftest.$ac_ext <<_ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7188 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202 $as_echo "$ac_try_echo") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 $ac_includes_default
7223 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7224 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7231 rm -f conftest.$ac_objext
7232 if { (ac_try="$ac_compile"
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238 $as_echo "$ac_try_echo") >&5
7239 (eval "$ac_compile") 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } && {
7246 test -z "$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 } && test -s conftest.$ac_objext; then
7251 $as_echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7255 int64_t) ac_cv_c_int64_t=yes ;;
7256 *) ac_cv_c_int64_t=$ac_type ;;
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 test "$ac_cv_c_int64_t" != no && break
7273 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7274 $as_echo "$ac_cv_c_int64_t" >&6; }
7275 case $ac_cv_c_int64_t in #(
7279 cat >>confdefs.h <<_ACEOF
7280 #define int64_t $ac_cv_c_int64_t
7285 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7286 $as_echo_n "checking for ssize_t... " >&6; }
7287 if test "${ac_cv_type_ssize_t+set}" = set; then
7288 $as_echo_n "(cached) " >&6
7290 ac_cv_type_ssize_t=no
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7301 if (sizeof (ssize_t))
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314 $as_echo "$ac_try_echo") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 $ac_includes_default
7335 if (sizeof ((ssize_t)))
7341 rm -f conftest.$ac_objext
7342 if { (ac_try="$ac_compile"
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7348 $as_echo "$ac_try_echo") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7361 $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ac_cv_type_ssize_t=yes
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7378 $as_echo "$ac_cv_type_ssize_t" >&6; }
7379 if test "x$ac_cv_type_ssize_t" = x""yes; then
7383 cat >>confdefs.h <<_ACEOF
7389 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7390 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7391 if test "${ac_cv_type_uid_t+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "uid_t" >/dev/null 2>&1; then
7405 ac_cv_type_uid_t=yes
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7413 $as_echo "$ac_cv_type_uid_t" >&6; }
7414 if test $ac_cv_type_uid_t = no; then
7416 cat >>confdefs.h <<\_ACEOF
7421 cat >>confdefs.h <<\_ACEOF
7428 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7429 $as_echo_n "checking for uint8_t... " >&6; }
7430 if test "${ac_cv_c_uint8_t+set}" = set; then
7431 $as_echo_n "(cached) " >&6
7434 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7436 cat >conftest.$ac_ext <<_ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7446 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7472 uint8_t) ac_cv_c_uint8_t=yes ;;
7473 *) ac_cv_c_uint8_t=$ac_type ;;
7477 $as_echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 test "$ac_cv_c_uint8_t" != no && break
7487 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7488 $as_echo "$ac_cv_c_uint8_t" >&6; }
7489 case $ac_cv_c_uint8_t in #(
7493 cat >>confdefs.h <<\_ACEOF
7498 cat >>confdefs.h <<_ACEOF
7499 #define uint8_t $ac_cv_c_uint8_t
7505 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7506 $as_echo_n "checking for uint16_t... " >&6; }
7507 if test "${ac_cv_c_uint16_t+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7511 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7523 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537 $as_echo "$ac_try_echo") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7549 uint16_t) ac_cv_c_uint16_t=yes ;;
7550 *) ac_cv_c_uint16_t=$ac_type ;;
7554 $as_echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 test "$ac_cv_c_uint16_t" != no && break
7564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7565 $as_echo "$ac_cv_c_uint16_t" >&6; }
7566 case $ac_cv_c_uint16_t in #(
7571 cat >>confdefs.h <<_ACEOF
7572 #define uint16_t $ac_cv_c_uint16_t
7578 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7579 $as_echo_n "checking for uint32_t... " >&6; }
7580 if test "${ac_cv_c_uint32_t+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7584 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7585 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 $ac_includes_default
7596 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7622 uint32_t) ac_cv_c_uint32_t=yes ;;
7623 *) ac_cv_c_uint32_t=$ac_type ;;
7627 $as_echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 test "$ac_cv_c_uint32_t" != no && break
7637 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7638 $as_echo "$ac_cv_c_uint32_t" >&6; }
7639 case $ac_cv_c_uint32_t in #(
7643 cat >>confdefs.h <<\_ACEOF
7648 cat >>confdefs.h <<_ACEOF
7649 #define uint32_t $ac_cv_c_uint32_t
7655 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7656 $as_echo_n "checking for uint64_t... " >&6; }
7657 if test "${ac_cv_c_uint64_t+set}" = set; then
7658 $as_echo_n "(cached) " >&6
7661 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7662 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7673 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7680 rm -f conftest.$ac_objext
7681 if { (ac_try="$ac_compile"
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7687 $as_echo "$ac_try_echo") >&5
7688 (eval "$ac_compile") 2>conftest.er1
7690 grep -v '^ *+' conftest.er1 >conftest.err
7692 cat conftest.err >&5
7693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } && {
7695 test -z "$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 } && test -s conftest.$ac_objext; then
7699 uint64_t) ac_cv_c_uint64_t=yes ;;
7700 *) ac_cv_c_uint64_t=$ac_type ;;
7704 $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 test "$ac_cv_c_uint64_t" != no && break
7714 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7715 $as_echo "$ac_cv_c_uint64_t" >&6; }
7716 case $ac_cv_c_uint64_t in #(
7720 cat >>confdefs.h <<\_ACEOF
7725 cat >>confdefs.h <<_ACEOF
7726 #define uint64_t $ac_cv_c_uint64_t
7731 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7732 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
7733 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7734 $as_echo_n "(cached) " >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7746 static struct stat ac_aggr;
7747 if (ac_aggr.st_rdev)
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 ac_cv_member_struct_stat_st_rdev=yes
7773 $as_echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 $ac_includes_default
7786 static struct stat ac_aggr;
7787 if (sizeof ac_aggr.st_rdev)
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800 $as_echo "$ac_try_echo") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7811 ac_cv_member_struct_stat_st_rdev=yes
7813 $as_echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 ac_cv_member_struct_stat_st_rdev=no
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7825 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7826 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
7828 cat >>confdefs.h <<_ACEOF
7829 #define HAVE_STRUCT_STAT_ST_RDEV 1
7835 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7836 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7837 if test "${ac_cv_struct_tm+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <sys/types.h>
7853 int *p = &tm.tm_sec;
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7866 $as_echo "$ac_try_echo") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_struct_tm=time.h
7879 $as_echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_cv_struct_tm=sys/time.h
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7888 $as_echo "$ac_cv_struct_tm" >&6; }
7889 if test $ac_cv_struct_tm = sys/time.h; then
7891 cat >>confdefs.h <<\_ACEOF
7892 #define TM_IN_SYS_TIME 1
7898 ################################################################################
7923 for ac_func in ftruncate gethostname getpagesize \
7924 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
7925 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
7926 strstr strtol strtoul uname
7928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7929 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7930 $as_echo_n "checking for $ac_func... " >&6; }
7931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7932 $as_echo_n "(cached) " >&6
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7942 #define $ac_func innocuous_$ac_func
7944 /* System header to define __stub macros and hopefully few prototypes,
7945 which can conflict with char $ac_func (); below.
7946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7947 <limits.h> exists even on freestanding compilers. */
7950 # include <limits.h>
7952 # include <assert.h>
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7964 /* The GNU C library defines this for functions which it implements
7965 to always fail with ENOSYS. Some functions are actually named
7966 something starting with __ and the normal name is an alias. */
7967 #if defined __stub_$ac_func || defined __stub___$ac_func
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (ac_try="$ac_link"
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7986 $as_echo "$ac_try_echo") >&5
7987 (eval "$ac_link") 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest$ac_exeext && {
7997 test "$cross_compiling" = yes ||
7998 $as_test_x conftest$ac_exeext
8000 eval "$as_ac_var=yes"
8002 $as_echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 eval "$as_ac_var=no"
8008 rm -rf conftest.dSYM
8009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010 conftest$ac_exeext conftest.$ac_ext
8012 ac_res=`eval 'as_val=${'$as_ac_var'}
8013 $as_echo "$as_val"'`
8014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8015 $as_echo "$ac_res" >&6; }
8016 as_val=`eval 'as_val=${'$as_ac_var'}
8017 $as_echo "$as_val"'`
8018 if test "x$as_val" = x""yes; then
8019 cat >>confdefs.h <<_ACEOF
8020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8024 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8025 $as_echo "$as_me: error: bailing out" >&2;}
8026 { (exit 1); exit 1; }; }
8031 for ac_func in siginterrupt
8033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8035 $as_echo_n "checking for $ac_func... " >&6; }
8036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8037 $as_echo_n "(cached) " >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8047 #define $ac_func innocuous_$ac_func
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func (); below.
8051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8052 <limits.h> exists even on freestanding compilers. */
8055 # include <limits.h>
8057 # include <assert.h>
8062 /* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined __stub_$ac_func || defined __stub___$ac_func
8084 rm -f conftest.$ac_objext conftest$ac_exeext
8085 if { (ac_try="$ac_link"
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8091 $as_echo "$ac_try_echo") >&5
8092 (eval "$ac_link") 2>conftest.er1
8094 grep -v '^ *+' conftest.er1 >conftest.err
8096 cat conftest.err >&5
8097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest$ac_exeext && {
8102 test "$cross_compiling" = yes ||
8103 $as_test_x conftest$ac_exeext
8105 eval "$as_ac_var=yes"
8107 $as_echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 eval "$as_ac_var=no"
8113 rm -rf conftest.dSYM
8114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8115 conftest$ac_exeext conftest.$ac_ext
8117 ac_res=`eval 'as_val=${'$as_ac_var'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120 $as_echo "$ac_res" >&6; }
8121 as_val=`eval 'as_val=${'$as_ac_var'}
8122 $as_echo "$as_val"'`
8123 if test "x$as_val" = x""yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8131 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8132 # for constant arguments. Useless!
8133 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8134 $as_echo_n "checking for working alloca.h... " >&6; }
8135 if test "${ac_cv_working_alloca_h+set}" = set; then
8136 $as_echo_n "(cached) " >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8148 char *p = (char *) alloca (2 * sizeof (int));
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162 (eval "$ac_link") 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && {
8169 test -z "$ac_c_werror_flag" ||
8170 test ! -s conftest.err
8171 } && test -s conftest$ac_exeext && {
8172 test "$cross_compiling" = yes ||
8173 $as_test_x conftest$ac_exeext
8175 ac_cv_working_alloca_h=yes
8177 $as_echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_cv_working_alloca_h=no
8183 rm -rf conftest.dSYM
8184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8187 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8188 $as_echo "$ac_cv_working_alloca_h" >&6; }
8189 if test $ac_cv_working_alloca_h = yes; then
8191 cat >>confdefs.h <<\_ACEOF
8192 #define HAVE_ALLOCA_H 1
8197 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8198 $as_echo_n "checking for alloca... " >&6; }
8199 if test "${ac_cv_func_alloca_works+set}" = set; then
8200 $as_echo_n "(cached) " >&6
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8209 # define alloca __builtin_alloca
8212 # include <malloc.h>
8213 # define alloca _alloca
8215 # ifdef HAVE_ALLOCA_H
8216 # include <alloca.h>
8221 # ifndef alloca /* predefined by HP cc +Olibcalls */
8232 char *p = (char *) alloca (1);
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (ac_try="$ac_link"
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8245 $as_echo "$ac_try_echo") >&5
8246 (eval "$ac_link") 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest$ac_exeext && {
8256 test "$cross_compiling" = yes ||
8257 $as_test_x conftest$ac_exeext
8259 ac_cv_func_alloca_works=yes
8261 $as_echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 ac_cv_func_alloca_works=no
8267 rm -rf conftest.dSYM
8268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8269 conftest$ac_exeext conftest.$ac_ext
8271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8272 $as_echo "$ac_cv_func_alloca_works" >&6; }
8274 if test $ac_cv_func_alloca_works = yes; then
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_ALLOCA 1
8281 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8282 # that cause trouble. Some versions do not even contain alloca or
8283 # contain a buggy version. If you still want to use their alloca,
8284 # use ar to extract alloca.o from them instead of compiling alloca.c.
8286 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8288 cat >>confdefs.h <<\_ACEOF
8293 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8294 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8295 if test "${ac_cv_os_cray+set}" = set; then
8296 $as_echo_n "(cached) " >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #if defined CRAY && ! defined CRAY2
8311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8312 $EGREP "webecray" >/dev/null 2>&1; then
8320 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8321 $as_echo "$ac_cv_os_cray" >&6; }
8322 if test $ac_cv_os_cray = yes; then
8323 for ac_func in _getb67 GETB67 getb67; do
8324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8326 $as_echo_n "checking for $ac_func... " >&6; }
8327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8328 $as_echo_n "(cached) " >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define $ac_func innocuous_$ac_func
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8346 # include <limits.h>
8348 # include <assert.h>
8353 /* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
8360 /* The GNU C library defines this for functions which it implements
8361 to always fail with ENOSYS. Some functions are actually named
8362 something starting with __ and the normal name is an alias. */
8363 #if defined __stub_$ac_func || defined __stub___$ac_func
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382 $as_echo "$ac_try_echo") >&5
8383 (eval "$ac_link") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest$ac_exeext && {
8393 test "$cross_compiling" = yes ||
8394 $as_test_x conftest$ac_exeext
8396 eval "$as_ac_var=yes"
8398 $as_echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 eval "$as_ac_var=no"
8404 rm -rf conftest.dSYM
8405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8406 conftest$ac_exeext conftest.$ac_ext
8408 ac_res=`eval 'as_val=${'$as_ac_var'}
8409 $as_echo "$as_val"'`
8410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8411 $as_echo "$ac_res" >&6; }
8412 as_val=`eval 'as_val=${'$as_ac_var'}
8413 $as_echo "$as_val"'`
8414 if test "x$as_val" = x""yes; then
8416 cat >>confdefs.h <<_ACEOF
8417 #define CRAY_STACKSEG_END $ac_func
8426 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8427 $as_echo_n "checking stack direction for C alloca... " >&6; }
8428 if test "${ac_cv_c_stack_direction+set}" = set; then
8429 $as_echo_n "(cached) " >&6
8431 if test "$cross_compiling" = yes; then
8432 ac_cv_c_stack_direction=0
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8442 find_stack_direction ()
8444 static char *addr = 0;
8449 return find_stack_direction ();
8452 return (&dummy > addr) ? 1 : -1;
8458 return find_stack_direction () < 0;
8461 rm -f conftest$ac_exeext
8462 if { (ac_try="$ac_link"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469 (eval "$ac_link") 2>&5
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473 { (case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_try") 2>&5
8481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_c_stack_direction=1
8485 $as_echo "$as_me: program exited with status $ac_status" >&5
8486 $as_echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_c_stack_direction=-1
8492 rm -rf conftest.dSYM
8493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8499 $as_echo "$ac_cv_c_stack_direction" >&6; }
8501 cat >>confdefs.h <<_ACEOF
8502 #define STACK_DIRECTION $ac_cv_c_stack_direction
8508 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8509 $as_echo_n "checking whether closedir returns void... " >&6; }
8510 if test "${ac_cv_func_closedir_void+set}" = set; then
8511 $as_echo_n "(cached) " >&6
8513 if test "$cross_compiling" = yes; then
8514 ac_cv_func_closedir_void=yes
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #include <$ac_header_dirent>
8531 return closedir (opendir (".")) != 0;
8536 rm -f conftest$ac_exeext
8537 if { (ac_try="$ac_link"
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8543 $as_echo "$ac_try_echo") >&5
8544 (eval "$ac_link") 2>&5
8546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8548 { (case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553 $as_echo "$ac_try_echo") >&5
8554 (eval "$ac_try") 2>&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_func_closedir_void=no
8560 $as_echo "$as_me: program exited with status $ac_status" >&5
8561 $as_echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_func_closedir_void=yes
8567 rm -rf conftest.dSYM
8568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8574 $as_echo "$ac_cv_func_closedir_void" >&6; }
8575 if test $ac_cv_func_closedir_void = yes; then
8577 cat >>confdefs.h <<\_ACEOF
8578 #define CLOSEDIR_VOID 1
8584 for ac_header in unistd.h
8586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8589 $as_echo_n "checking for $ac_header... " >&6; }
8590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591 $as_echo_n "(cached) " >&6
8593 ac_res=`eval 'as_val=${'$as_ac_Header'}
8594 $as_echo "$as_val"'`
8595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8596 $as_echo "$ac_res" >&6; }
8598 # Is the header compilable?
8599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600 $as_echo_n "checking $ac_header usability... " >&6; }
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 #include <$ac_header>
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617 $as_echo "$ac_try_echo") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8628 ac_header_compiler=yes
8630 $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_header_compiler=no
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638 $as_echo "$ac_header_compiler" >&6; }
8640 # Is the header present?
8641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642 $as_echo_n "checking $ac_header presence... " >&6; }
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <$ac_header>
8651 if { (ac_try="$ac_cpp conftest.$ac_ext"
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8657 $as_echo "$ac_try_echo") >&5
8658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } >/dev/null && {
8665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8668 ac_header_preproc=yes
8670 $as_echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_header_preproc=no
8676 rm -f conftest.err conftest.$ac_ext
8677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 $as_echo "$ac_header_preproc" >&6; }
8680 # So? What about this header?
8681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8687 ac_header_preproc=yes
8690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 $as_echo_n "checking for $ac_header... " >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 $as_echo_n "(cached) " >&6
8710 eval "$as_ac_Header=\$ac_header_preproc"
8712 ac_res=`eval 'as_val=${'$as_ac_Header'}
8713 $as_echo "$as_val"'`
8714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8715 $as_echo "$ac_res" >&6; }
8718 as_val=`eval 'as_val=${'$as_ac_Header'}
8719 $as_echo "$as_val"'`
8720 if test "x$as_val" = x""yes; then
8721 cat >>confdefs.h <<_ACEOF
8722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8729 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
8730 $as_echo_n "checking for working chown... " >&6; }
8731 if test "${ac_cv_func_chown_works+set}" = set; then
8732 $as_echo_n "(cached) " >&6
8734 if test "$cross_compiling" = yes; then
8735 ac_cv_func_chown_works=no
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8749 char *f = "conftest.chown";
8750 struct stat before, after;
8752 if (creat (f, 0600) < 0)
8754 if (stat (f, &before) < 0)
8756 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8758 if (stat (f, &after) < 0)
8760 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8766 rm -f conftest$ac_exeext
8767 if { (ac_try="$ac_link"
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_link") 2>&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8778 { (case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8783 $as_echo "$ac_try_echo") >&5
8784 (eval "$ac_try") 2>&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_func_chown_works=yes
8790 $as_echo "$as_me: program exited with status $ac_status" >&5
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8795 ac_cv_func_chown_works=no
8797 rm -rf conftest.dSYM
8798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8802 rm -f conftest.chown
8805 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8806 $as_echo "$ac_cv_func_chown_works" >&6; }
8807 if test $ac_cv_func_chown_works = yes; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_CHOWN 1
8816 for ac_header in vfork.h
8818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8821 $as_echo_n "checking for $ac_header... " >&6; }
8822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8823 $as_echo_n "(cached) " >&6
8825 ac_res=`eval 'as_val=${'$as_ac_Header'}
8826 $as_echo "$as_val"'`
8827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8828 $as_echo "$ac_res" >&6; }
8830 # Is the header compilable?
8831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8832 $as_echo_n "checking $ac_header usability... " >&6; }
8833 cat >conftest.$ac_ext <<_ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8840 #include <$ac_header>
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_compile") 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest.$ac_objext; then
8860 ac_header_compiler=yes
8862 $as_echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_header_compiler=no
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8870 $as_echo "$ac_header_compiler" >&6; }
8872 # Is the header present?
8873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8874 $as_echo_n "checking $ac_header presence... " >&6; }
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 #include <$ac_header>
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8892 grep -v '^ *+' conftest.er1 >conftest.err
8894 cat conftest.err >&5
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } >/dev/null && {
8897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8898 test ! -s conftest.err
8900 ac_header_preproc=yes
8902 $as_echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_header_preproc=no
8908 rm -f conftest.err conftest.$ac_ext
8909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8910 $as_echo "$ac_header_preproc" >&6; }
8912 # So? What about this header?
8913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8919 ac_header_preproc=yes
8922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8925 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8929 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 $as_echo_n "checking for $ac_header... " >&6; }
8939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 $as_echo_n "(cached) " >&6
8942 eval "$as_ac_Header=\$ac_header_preproc"
8944 ac_res=`eval 'as_val=${'$as_ac_Header'}
8945 $as_echo "$as_val"'`
8946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8947 $as_echo "$ac_res" >&6; }
8950 as_val=`eval 'as_val=${'$as_ac_Header'}
8951 $as_echo "$as_val"'`
8952 if test "x$as_val" = x""yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8963 for ac_func in fork vfork
8965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8966 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8967 $as_echo_n "checking for $ac_func... " >&6; }
8968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8969 $as_echo_n "(cached) " >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8979 #define $ac_func innocuous_$ac_func
8981 /* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char $ac_func (); below.
8983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8984 <limits.h> exists even on freestanding compilers. */
8987 # include <limits.h>
8989 # include <assert.h>
8994 /* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
9001 /* The GNU C library defines this for functions which it implements
9002 to always fail with ENOSYS. Some functions are actually named
9003 something starting with __ and the normal name is an alias. */
9004 #if defined __stub_$ac_func || defined __stub___$ac_func
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (ac_try="$ac_link"
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9023 $as_echo "$ac_try_echo") >&5
9024 (eval "$ac_link") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest$ac_exeext && {
9034 test "$cross_compiling" = yes ||
9035 $as_test_x conftest$ac_exeext
9037 eval "$as_ac_var=yes"
9039 $as_echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 eval "$as_ac_var=no"
9045 rm -rf conftest.dSYM
9046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9047 conftest$ac_exeext conftest.$ac_ext
9049 ac_res=`eval 'as_val=${'$as_ac_var'}
9050 $as_echo "$as_val"'`
9051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9052 $as_echo "$ac_res" >&6; }
9053 as_val=`eval 'as_val=${'$as_ac_var'}
9054 $as_echo "$as_val"'`
9055 if test "x$as_val" = x""yes; then
9056 cat >>confdefs.h <<_ACEOF
9057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9063 if test "x$ac_cv_func_fork" = xyes; then
9064 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9065 $as_echo_n "checking for working fork... " >&6; }
9066 if test "${ac_cv_func_fork_works+set}" = set; then
9067 $as_echo_n "(cached) " >&6
9069 if test "$cross_compiling" = yes; then
9070 ac_cv_func_fork_works=cross
9072 cat >conftest.$ac_ext <<_ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 $ac_includes_default
9083 /* By Ruediger Kuhlmann. */
9090 rm -f conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9097 $as_echo "$ac_try_echo") >&5
9098 (eval "$ac_link") 2>&5
9100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9102 { (case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9107 $as_echo "$ac_try_echo") >&5
9108 (eval "$ac_try") 2>&5
9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_func_fork_works=yes
9114 $as_echo "$as_me: program exited with status $ac_status" >&5
9115 $as_echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_cv_func_fork_works=no
9121 rm -rf conftest.dSYM
9122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9127 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9128 $as_echo "$ac_cv_func_fork_works" >&6; }
9131 ac_cv_func_fork_works=$ac_cv_func_fork
9133 if test "x$ac_cv_func_fork_works" = xcross; then
9135 *-*-amigaos* | *-*-msdosdjgpp*)
9136 # Override, as these systems have only a dummy fork() stub
9137 ac_cv_func_fork_works=no
9140 ac_cv_func_fork_works=yes
9143 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9144 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9146 ac_cv_func_vfork_works=$ac_cv_func_vfork
9147 if test "x$ac_cv_func_vfork" = xyes; then
9148 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9149 $as_echo_n "checking for working vfork... " >&6; }
9150 if test "${ac_cv_func_vfork_works+set}" = set; then
9151 $as_echo_n "(cached) " >&6
9153 if test "$cross_compiling" = yes; then
9154 ac_cv_func_vfork_works=cross
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162 /* Thanks to Paul Eggert for this test. */
9163 $ac_includes_default
9164 #include <sys/wait.h>
9168 /* On some sparc systems, changes by the child to local and incoming
9169 argument registers are propagated back to the parent. The compiler
9170 is told about this with #include <vfork.h>, but some compilers
9171 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9172 static variable whose address is put into a register that is
9173 clobbered by the vfork. */
9176 sparc_address_test (int arg)
9178 sparc_address_test (arg) int arg;
9199 pid_t parent = getpid ();
9202 sparc_address_test (0);
9207 /* Here is another test for sparc vfork register problems. This
9208 test uses lots of local variables, at least as many local
9209 variables as main has allocated so far including compiler
9210 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9211 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9212 reuse the register of parent for one of the local variables,
9213 since it will think that parent can't possibly be used any more
9214 in this routine. Assigning to the local variable will thus
9215 munge parent in the parent process. */
9217 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9218 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9219 /* Convince the compiler that p..p7 are live; otherwise, it might
9220 use the same hardware register for all 8 local variables. */
9221 if (p != p1 || p != p2 || p != p3 || p != p4
9222 || p != p5 || p != p6 || p != p7)
9225 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9226 from child file descriptors. If the child closes a descriptor
9227 before it execs or exits, this munges the parent's descriptor
9228 as well. Test for this by closing stdout in the child. */
9229 _exit(close(fileno(stdout)) != 0);
9234 while (wait(&status) != child)
9237 /* Was there some problem with vforking? */
9240 /* Did the child fail? (This shouldn't happen.) */
9243 /* Did the vfork/compiler bug occur? */
9244 || parent != getpid()
9246 /* Did the file descriptor bug occur? */
9247 || fstat(fileno(stdout), &st) != 0
9252 rm -f conftest$ac_exeext
9253 if { (ac_try="$ac_link"
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9259 $as_echo "$ac_try_echo") >&5
9260 (eval "$ac_link") 2>&5
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9264 { (case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9269 $as_echo "$ac_try_echo") >&5
9270 (eval "$ac_try") 2>&5
9272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_func_vfork_works=yes
9276 $as_echo "$as_me: program exited with status $ac_status" >&5
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9281 ac_cv_func_vfork_works=no
9283 rm -rf conftest.dSYM
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9290 $as_echo "$ac_cv_func_vfork_works" >&6; }
9293 if test "x$ac_cv_func_fork_works" = xcross; then
9294 ac_cv_func_vfork_works=$ac_cv_func_vfork
9295 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9296 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9299 if test "x$ac_cv_func_vfork_works" = xyes; then
9301 cat >>confdefs.h <<\_ACEOF
9302 #define HAVE_WORKING_VFORK 1
9307 cat >>confdefs.h <<\_ACEOF
9312 if test "x$ac_cv_func_fork_works" = xyes; then
9314 cat >>confdefs.h <<\_ACEOF
9315 #define HAVE_WORKING_FORK 1
9320 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9321 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
9322 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9323 $as_echo_n "(cached) " >&6
9325 rm -f conftest.sym conftest.file
9327 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9328 if test "$cross_compiling" = yes; then
9329 ac_cv_func_lstat_dereferences_slashed_symlink=no
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9342 /* Linux will dereference the symlink and fail.
9343 That is better in the sense that it means we will not
9344 have to compile and use the lstat wrapper. */
9345 return lstat ("conftest.sym/", &sbuf) == 0;
9350 rm -f conftest$ac_exeext
9351 if { (ac_try="$ac_link"
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9357 $as_echo "$ac_try_echo") >&5
9358 (eval "$ac_link") 2>&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9367 $as_echo "$ac_try_echo") >&5
9368 (eval "$ac_try") 2>&5
9370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9374 $as_echo "$as_me: program exited with status $ac_status" >&5
9375 $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_cv_func_lstat_dereferences_slashed_symlink=no
9381 rm -rf conftest.dSYM
9382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9387 # If the `ln -s' command failed, then we probably don't even
9388 # have an lstat function.
9389 ac_cv_func_lstat_dereferences_slashed_symlink=no
9391 rm -f conftest.sym conftest.file
9394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9395 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9397 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9399 cat >>confdefs.h <<_ACEOF
9400 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9404 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9405 case " $LIBOBJS " in
9406 *" lstat.$ac_objext "* ) ;;
9407 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9413 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9414 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
9415 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
9416 $as_echo_n "(cached) " >&6
9418 if test "$cross_compiling" = yes; then
9419 ac_cv_func_lstat_empty_string_bug=yes
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9432 return lstat ("", &sbuf) == 0;
9437 rm -f conftest$ac_exeext
9438 if { (ac_try="$ac_link"
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9444 $as_echo "$ac_try_echo") >&5
9445 (eval "$ac_link") 2>&5
9447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454 $as_echo "$ac_try_echo") >&5
9455 (eval "$ac_try") 2>&5
9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_cv_func_lstat_empty_string_bug=no
9461 $as_echo "$as_me: program exited with status $ac_status" >&5
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9466 ac_cv_func_lstat_empty_string_bug=yes
9468 rm -rf conftest.dSYM
9469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9474 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9475 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
9476 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9477 case " $LIBOBJS " in
9478 *" lstat.$ac_objext "* ) ;;
9479 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9491 for ac_header in stdlib.h
9493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 $as_echo_n "checking for $ac_header... " >&6; }
9497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9498 $as_echo_n "(cached) " >&6
9500 ac_res=`eval 'as_val=${'$as_ac_Header'}
9501 $as_echo "$as_val"'`
9502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9503 $as_echo "$ac_res" >&6; }
9505 # Is the header compilable?
9506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507 $as_echo_n "checking $ac_header usability... " >&6; }
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <$ac_header>
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9524 $as_echo "$ac_try_echo") >&5
9525 (eval "$ac_compile") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
9535 ac_header_compiler=yes
9537 $as_echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_header_compiler=no
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9545 $as_echo "$ac_header_compiler" >&6; }
9547 # Is the header present?
9548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9549 $as_echo_n "checking $ac_header presence... " >&6; }
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <$ac_header>
9558 if { (ac_try="$ac_cpp conftest.$ac_ext"
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9564 $as_echo "$ac_try_echo") >&5
9565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } >/dev/null && {
9572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9575 ac_header_preproc=yes
9577 $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_header_preproc=no
9583 rm -f conftest.err conftest.$ac_ext
9584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585 $as_echo "$ac_header_preproc" >&6; }
9587 # So? What about this header?
9588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594 ac_header_preproc=yes
9597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9600 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9604 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9613 $as_echo_n "checking for $ac_header... " >&6; }
9614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9615 $as_echo_n "(cached) " >&6
9617 eval "$as_ac_Header=\$ac_header_preproc"
9619 ac_res=`eval 'as_val=${'$as_ac_Header'}
9620 $as_echo "$as_val"'`
9621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9622 $as_echo "$ac_res" >&6; }
9625 as_val=`eval 'as_val=${'$as_ac_Header'}
9626 $as_echo "$as_val"'`
9627 if test "x$as_val" = x""yes; then
9628 cat >>confdefs.h <<_ACEOF
9629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9636 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9637 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9638 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9639 $as_echo_n "(cached) " >&6
9641 if test "$cross_compiling" = yes; then
9642 ac_cv_func_malloc_0_nonnull=no
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9651 # include <stdlib.h>
9659 return ! malloc (0);
9664 rm -f conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9671 $as_echo "$ac_try_echo") >&5
9672 (eval "$ac_link") 2>&5
9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9681 $as_echo "$ac_try_echo") >&5
9682 (eval "$ac_try") 2>&5
9684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_func_malloc_0_nonnull=yes
9688 $as_echo "$as_me: program exited with status $ac_status" >&5
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_cv_func_malloc_0_nonnull=no
9695 rm -rf conftest.dSYM
9696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9701 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9702 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9703 if test $ac_cv_func_malloc_0_nonnull = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_MALLOC 1
9710 cat >>confdefs.h <<\_ACEOF
9711 #define HAVE_MALLOC 0
9714 case " $LIBOBJS " in
9715 *" malloc.$ac_objext "* ) ;;
9716 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9721 cat >>confdefs.h <<\_ACEOF
9722 #define malloc rpl_malloc
9729 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9730 $as_echo_n "checking for working memcmp... " >&6; }
9731 if test "${ac_cv_func_memcmp_working+set}" = set; then
9732 $as_echo_n "(cached) " >&6
9734 if test "$cross_compiling" = yes; then
9735 ac_cv_func_memcmp_working=no
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9748 /* Some versions of memcmp are not 8-bit clean. */
9749 char c0 = '\100', c1 = '\200', c2 = '\201';
9750 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9753 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9754 or more and with at least one buffer not starting on a 4-byte boundary.
9755 William Lewis provided this test program. */
9760 for (i = 0; i < 4; i++)
9764 strcpy (a, "--------01111111");
9765 strcpy (b, "--------10000000");
9766 if (memcmp (a, b, 16) >= 0)
9776 rm -f conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783 $as_echo "$ac_try_echo") >&5
9784 (eval "$ac_link") 2>&5
9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_try") 2>&5
9796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_memcmp_working=yes
9800 $as_echo "$as_me: program exited with status $ac_status" >&5
9801 $as_echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9805 ac_cv_func_memcmp_working=no
9807 rm -rf conftest.dSYM
9808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9813 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9814 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9815 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9816 *" memcmp.$ac_objext "* ) ;;
9817 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9824 for ac_header in stdlib.h unistd.h
9826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9829 $as_echo_n "checking for $ac_header... " >&6; }
9830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9831 $as_echo_n "(cached) " >&6
9833 ac_res=`eval 'as_val=${'$as_ac_Header'}
9834 $as_echo "$as_val"'`
9835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9836 $as_echo "$ac_res" >&6; }
9838 # Is the header compilable?
9839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9840 $as_echo_n "checking $ac_header usability... " >&6; }
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9848 #include <$ac_header>
9850 rm -f conftest.$ac_objext
9851 if { (ac_try="$ac_compile"
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9857 $as_echo "$ac_try_echo") >&5
9858 (eval "$ac_compile") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest.$ac_objext; then
9868 ac_header_compiler=yes
9870 $as_echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_header_compiler=no
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 $as_echo "$ac_header_compiler" >&6; }
9880 # Is the header present?
9881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882 $as_echo_n "checking $ac_header presence... " >&6; }
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <$ac_header>
9891 if { (ac_try="$ac_cpp conftest.$ac_ext"
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9897 $as_echo "$ac_try_echo") >&5
9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9900 grep -v '^ *+' conftest.er1 >conftest.err
9902 cat conftest.err >&5
9903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } >/dev/null && {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9908 ac_header_preproc=yes
9910 $as_echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 $as_echo "$ac_header_preproc" >&6; }
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9946 $as_echo_n "checking for $ac_header... " >&6; }
9947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 $as_echo_n "(cached) " >&6
9950 eval "$as_ac_Header=\$ac_header_preproc"
9952 ac_res=`eval 'as_val=${'$as_ac_Header'}
9953 $as_echo "$as_val"'`
9954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9955 $as_echo "$ac_res" >&6; }
9958 as_val=`eval 'as_val=${'$as_ac_Header'}
9959 $as_echo "$as_val"'`
9960 if test "x$as_val" = x""yes; then
9961 cat >>confdefs.h <<_ACEOF
9962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9970 for ac_func in getpagesize
9972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9974 $as_echo_n "checking for $ac_func... " >&6; }
9975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9976 $as_echo_n "(cached) " >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986 #define $ac_func innocuous_$ac_func
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9994 # include <limits.h>
9996 # include <assert.h>
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined __stub_$ac_func || defined __stub___$ac_func
10018 return $ac_func ();
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10030 $as_echo "$ac_try_echo") >&5
10031 (eval "$ac_link") 2>conftest.er1
10033 grep -v '^ *+' conftest.er1 >conftest.err
10035 cat conftest.err >&5
10036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 } && test -s conftest$ac_exeext && {
10041 test "$cross_compiling" = yes ||
10042 $as_test_x conftest$ac_exeext
10044 eval "$as_ac_var=yes"
10046 $as_echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 eval "$as_ac_var=no"
10052 rm -rf conftest.dSYM
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 conftest$ac_exeext conftest.$ac_ext
10056 ac_res=`eval 'as_val=${'$as_ac_var'}
10057 $as_echo "$as_val"'`
10058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10059 $as_echo "$ac_res" >&6; }
10060 as_val=`eval 'as_val=${'$as_ac_var'}
10061 $as_echo "$as_val"'`
10062 if test "x$as_val" = x""yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10070 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10071 $as_echo_n "checking for working mmap... " >&6; }
10072 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10073 $as_echo_n "(cached) " >&6
10075 if test "$cross_compiling" = yes; then
10076 ac_cv_func_mmap_fixed_mapped=no
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 /* malloc might have been renamed as rpl_malloc. */
10088 /* Thanks to Mike Haertel and Jim Avera for this test.
10089 Here is a matrix of mmap possibilities:
10090 mmap private not fixed
10091 mmap private fixed at somewhere currently unmapped
10092 mmap private fixed at somewhere already mapped
10093 mmap shared not fixed
10094 mmap shared fixed at somewhere currently unmapped
10095 mmap shared fixed at somewhere already mapped
10096 For private mappings, we should verify that changes cannot be read()
10097 back from the file, nor mmap's back from the file at a different
10098 address. (There have been systems where private was not correctly
10099 implemented like the infamous i386 svr4.0, and systems where the
10100 VM page cache was not coherent with the file system buffer cache
10101 like early versions of FreeBSD and possibly contemporary NetBSD.)
10102 For shared mappings, we should conversely verify that changes get
10103 propagated back to all the places they're supposed to be.
10105 Grep wants private fixed already mapped.
10106 The main things grep needs to know about mmap are:
10107 * does it exist and is it safe to write into the mmap'd area
10108 * how to use it (BSD variants) */
10111 #include <sys/mman.h>
10113 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10117 /* This mess was copied from the GNU getpagesize.h. */
10118 #ifndef HAVE_GETPAGESIZE
10119 /* Assume that all systems that can run configure have sys/param.h. */
10120 # ifndef HAVE_SYS_PARAM_H
10121 # define HAVE_SYS_PARAM_H 1
10124 # ifdef _SC_PAGESIZE
10125 # define getpagesize() sysconf(_SC_PAGESIZE)
10126 # else /* no _SC_PAGESIZE */
10127 # ifdef HAVE_SYS_PARAM_H
10128 # include <sys/param.h>
10129 # ifdef EXEC_PAGESIZE
10130 # define getpagesize() EXEC_PAGESIZE
10131 # else /* no EXEC_PAGESIZE */
10133 # define getpagesize() NBPG * CLSIZE
10136 # endif /* no CLSIZE */
10137 # else /* no NBPG */
10139 # define getpagesize() NBPC
10140 # else /* no NBPC */
10142 # define getpagesize() PAGESIZE
10143 # endif /* PAGESIZE */
10144 # endif /* no NBPC */
10145 # endif /* no NBPG */
10146 # endif /* no EXEC_PAGESIZE */
10147 # else /* no HAVE_SYS_PARAM_H */
10148 # define getpagesize() 8192 /* punt totally */
10149 # endif /* no HAVE_SYS_PARAM_H */
10150 # endif /* no _SC_PAGESIZE */
10152 #endif /* no HAVE_GETPAGESIZE */
10157 char *data, *data2, *data3;
10161 pagesize = getpagesize ();
10163 /* First, make a file with some known garbage in it. */
10164 data = (char *) malloc (pagesize);
10167 for (i = 0; i < pagesize; ++i)
10168 *(data + i) = rand ();
10170 fd = creat ("conftest.mmap", 0600);
10173 if (write (fd, data, pagesize) != pagesize)
10177 /* Next, try to mmap the file at a fixed address which already has
10178 something else allocated at it. If we can, also make sure that
10179 we see the same garbage. */
10180 fd = open ("conftest.mmap", O_RDWR);
10183 data2 = (char *) malloc (2 * pagesize);
10186 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10190 for (i = 0; i < pagesize; ++i)
10191 if (*(data + i) != *(data2 + i))
10194 /* Finally, make sure that changes to the mapped area do not
10195 percolate back to the file as seen by read(). (This is a bug on
10196 some variants of i386 svr4.0.) */
10197 for (i = 0; i < pagesize; ++i)
10198 *(data2 + i) = *(data2 + i) + 1;
10199 data3 = (char *) malloc (pagesize);
10202 if (read (fd, data3, pagesize) != pagesize)
10204 for (i = 0; i < pagesize; ++i)
10205 if (*(data + i) != *(data3 + i))
10211 rm -f conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10218 $as_echo "$ac_try_echo") >&5
10219 (eval "$ac_link") 2>&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229 (eval "$ac_try") 2>&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_cv_func_mmap_fixed_mapped=yes
10235 $as_echo "$as_me: program exited with status $ac_status" >&5
10236 $as_echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 ( exit $ac_status )
10240 ac_cv_func_mmap_fixed_mapped=no
10242 rm -rf conftest.dSYM
10243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10248 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10249 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_MMAP 1
10257 rm -f conftest.mmap
10260 for ac_header in stdlib.h
10262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10265 $as_echo_n "checking for $ac_header... " >&6; }
10266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10267 $as_echo_n "(cached) " >&6
10269 ac_res=`eval 'as_val=${'$as_ac_Header'}
10270 $as_echo "$as_val"'`
10271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10272 $as_echo "$ac_res" >&6; }
10274 # Is the header compilable?
10275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10276 $as_echo_n "checking $ac_header usability... " >&6; }
10277 cat >conftest.$ac_ext <<_ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 $ac_includes_default
10284 #include <$ac_header>
10286 rm -f conftest.$ac_objext
10287 if { (ac_try="$ac_compile"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.$ac_objext; then
10304 ac_header_compiler=yes
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_header_compiler=no
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 $as_echo "$ac_header_compiler" >&6; }
10316 # Is the header present?
10317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10318 $as_echo_n "checking $ac_header presence... " >&6; }
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <$ac_header>
10327 if { (ac_try="$ac_cpp conftest.$ac_ext"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333 $as_echo "$ac_try_echo") >&5
10334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null && {
10341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10344 ac_header_preproc=yes
10346 $as_echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_header_preproc=no
10352 rm -f conftest.err conftest.$ac_ext
10353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354 $as_echo "$ac_header_preproc" >&6; }
10356 # So? What about this header?
10357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10373 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10381 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10382 $as_echo_n "checking for $ac_header... " >&6; }
10383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10384 $as_echo_n "(cached) " >&6
10386 eval "$as_ac_Header=\$ac_header_preproc"
10388 ac_res=`eval 'as_val=${'$as_ac_Header'}
10389 $as_echo "$as_val"'`
10390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10391 $as_echo "$ac_res" >&6; }
10394 as_val=`eval 'as_val=${'$as_ac_Header'}
10395 $as_echo "$as_val"'`
10396 if test "x$as_val" = x""yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10405 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10406 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10407 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10408 $as_echo_n "(cached) " >&6
10410 if test "$cross_compiling" = yes; then
10411 ac_cv_func_realloc_0_nonnull=no
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10420 # include <stdlib.h>
10428 return ! realloc (0, 0);
10433 rm -f conftest$ac_exeext
10434 if { (ac_try="$ac_link"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10440 $as_echo "$ac_try_echo") >&5
10441 (eval "$ac_link") 2>&5
10443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_try") 2>&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_func_realloc_0_nonnull=yes
10457 $as_echo "$as_me: program exited with status $ac_status" >&5
10458 $as_echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ( exit $ac_status )
10462 ac_cv_func_realloc_0_nonnull=no
10464 rm -rf conftest.dSYM
10465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10470 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10471 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10472 if test $ac_cv_func_realloc_0_nonnull = yes; then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_REALLOC 1
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_REALLOC 0
10483 case " $LIBOBJS " in
10484 *" realloc.$ac_objext "* ) ;;
10485 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10490 cat >>confdefs.h <<\_ACEOF
10491 #define realloc rpl_realloc
10498 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10499 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10500 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
10501 $as_echo_n "(cached) " >&6
10503 if test "$cross_compiling" = yes; then
10504 ac_cv_func_stat_empty_string_bug=yes
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 $ac_includes_default
10517 return stat ("", &sbuf) == 0;
10522 rm -f conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529 $as_echo "$ac_try_echo") >&5
10530 (eval "$ac_link") 2>&5
10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10539 $as_echo "$ac_try_echo") >&5
10540 (eval "$ac_try") 2>&5
10542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_func_stat_empty_string_bug=no
10546 $as_echo "$as_me: program exited with status $ac_status" >&5
10547 $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ( exit $ac_status )
10551 ac_cv_func_stat_empty_string_bug=yes
10553 rm -rf conftest.dSYM
10554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10559 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10560 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10561 if test $ac_cv_func_stat_empty_string_bug = yes; then
10562 case " $LIBOBJS " in
10563 *" stat.$ac_objext "* ) ;;
10564 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_STAT_EMPTY_STRING_BUG 1
10575 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10576 $as_echo_n "checking for working strtod... " >&6; }
10577 if test "${ac_cv_func_strtod+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10580 if test "$cross_compiling" = yes; then
10581 ac_cv_func_strtod=no
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10590 $ac_includes_default
10598 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10599 char *string = " +69";
10602 value = strtod (string, &term);
10603 if (value != 69 || term != (string + 4))
10608 /* Under Solaris 2.4, strtod returns the wrong value for the
10609 terminating character under some conditions. */
10610 char *string = "NaN";
10612 strtod (string, &term);
10613 if (term != string && *(term - 1) == 0)
10620 rm -f conftest$ac_exeext
10621 if { (ac_try="$ac_link"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627 $as_echo "$ac_try_echo") >&5
10628 (eval "$ac_link") 2>&5
10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10632 { (case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10637 $as_echo "$ac_try_echo") >&5
10638 (eval "$ac_try") 2>&5
10640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_func_strtod=yes
10644 $as_echo "$as_me: program exited with status $ac_status" >&5
10645 $as_echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 ( exit $ac_status )
10649 ac_cv_func_strtod=no
10651 rm -rf conftest.dSYM
10652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10657 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10658 $as_echo "$ac_cv_func_strtod" >&6; }
10659 if test $ac_cv_func_strtod = no; then
10660 case " $LIBOBJS " in
10661 *" strtod.$ac_objext "* ) ;;
10662 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10666 { $as_echo "$as_me:$LINENO: checking for pow" >&5
10667 $as_echo_n "checking for pow... " >&6; }
10668 if test "${ac_cv_func_pow+set}" = set; then
10669 $as_echo_n "(cached) " >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10679 #define pow innocuous_pow
10681 /* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char pow (); below.
10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 <limits.h> exists even on freestanding compilers. */
10687 # include <limits.h>
10689 # include <assert.h>
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10701 /* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
10704 #if defined __stub_pow || defined __stub___pow
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10723 $as_echo "$ac_try_echo") >&5
10724 (eval "$ac_link") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest$ac_exeext && {
10734 test "$cross_compiling" = yes ||
10735 $as_test_x conftest$ac_exeext
10739 $as_echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10745 rm -rf conftest.dSYM
10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747 conftest$ac_exeext conftest.$ac_ext
10749 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10750 $as_echo "$ac_cv_func_pow" >&6; }
10752 if test $ac_cv_func_pow = no; then
10753 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10754 $as_echo_n "checking for pow in -lm... " >&6; }
10755 if test "${ac_cv_lib_m_pow+set}" = set; then
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS=$LIBS
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10767 /* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10803 ac_cv_lib_m_pow=yes
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10817 $as_echo "$ac_cv_lib_m_pow" >&6; }
10818 if test "x$ac_cv_lib_m_pow" = x""yes; then
10821 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10822 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10830 for ac_func in vprintf
10832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10833 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10834 $as_echo_n "checking for $ac_func... " >&6; }
10835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10836 $as_echo_n "(cached) " >&6
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10846 #define $ac_func innocuous_$ac_func
10848 /* System header to define __stub macros and hopefully few prototypes,
10849 which can conflict with char $ac_func (); below.
10850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10851 <limits.h> exists even on freestanding compilers. */
10854 # include <limits.h>
10856 # include <assert.h>
10861 /* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10868 /* The GNU C library defines this for functions which it implements
10869 to always fail with ENOSYS. Some functions are actually named
10870 something starting with __ and the normal name is an alias. */
10871 #if defined __stub_$ac_func || defined __stub___$ac_func
10878 return $ac_func ();
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890 $as_echo "$ac_try_echo") >&5
10891 (eval "$ac_link") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest$ac_exeext && {
10901 test "$cross_compiling" = yes ||
10902 $as_test_x conftest$ac_exeext
10904 eval "$as_ac_var=yes"
10906 $as_echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 eval "$as_ac_var=no"
10912 rm -rf conftest.dSYM
10913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
10916 ac_res=`eval 'as_val=${'$as_ac_var'}
10917 $as_echo "$as_val"'`
10918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10919 $as_echo "$ac_res" >&6; }
10920 as_val=`eval 'as_val=${'$as_ac_var'}
10921 $as_echo "$as_val"'`
10922 if test "x$as_val" = x""yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10928 $as_echo_n "checking for _doprnt... " >&6; }
10929 if test "${ac_cv_func__doprnt+set}" = set; then
10930 $as_echo_n "(cached) " >&6
10932 cat >conftest.$ac_ext <<_ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10940 #define _doprnt innocuous__doprnt
10942 /* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char _doprnt (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10948 # include <limits.h>
10950 # include <assert.h>
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10962 /* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965 #if defined __stub__doprnt || defined __stub____doprnt
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10998 ac_cv_func__doprnt=yes
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_func__doprnt=no
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11011 $as_echo "$ac_cv_func__doprnt" >&6; }
11012 if test "x$ac_cv_func__doprnt" = x""yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_DOPRNT 1
11025 ################################################################################
11026 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11027 $as_echo_n "checking whether to use static linking... " >&6; }
11028 # Check whether --enable-static_link was given.
11029 if test "${enable_static_link+set}" = set; then
11030 enableval=$enable_static_link; STATIC_LINK=$enableval
11035 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11036 $as_echo "$STATIC_LINK" >&6; }
11038 ################################################################################
11041 ################################################################################
11042 { $as_echo "$as_me:$LINENO: checking file owner" >&5
11043 $as_echo_n "checking file owner... " >&6; }
11045 # Check whether --with-user was given.
11046 if test "${with_user+set}" = set; then
11047 withval=$with_user; OWNER=$withval
11050 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11051 $as_echo "$OWNER" >&6; }
11053 if test x$OWNER != x; then
11054 INSTALL="$INSTALL -o $OWNER"
11057 ################################################################################
11058 { $as_echo "$as_me:$LINENO: checking group owner" >&5
11059 $as_echo_n "checking group owner... " >&6; }
11061 # Check whether --with-group was given.
11062 if test "${with_group+set}" = set; then
11063 withval=$with_group; GROUP=$withval
11066 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11067 $as_echo "$GROUP" >&6; }
11069 if test x$GROUP != x; then
11070 INSTALL="$INSTALL -g $GROUP"
11073 ################################################################################
11074 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
11075 $as_echo_n "checking device node uid... " >&6; }
11078 # Check whether --with-device-uid was given.
11079 if test "${with_device_uid+set}" = set; then
11080 withval=$with_device_uid; DM_DEVICE_UID=$withval
11085 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11086 $as_echo "$DM_DEVICE_UID" >&6; }
11088 ################################################################################
11089 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
11090 $as_echo_n "checking device node gid... " >&6; }
11093 # Check whether --with-device-gid was given.
11094 if test "${with_device_gid+set}" = set; then
11095 withval=$with_device_gid; DM_DEVICE_GID=$withval
11100 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11101 $as_echo "$DM_DEVICE_GID" >&6; }
11103 ################################################################################
11104 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
11105 $as_echo_n "checking device node mode... " >&6; }
11108 # Check whether --with-device-mode was given.
11109 if test "${with_device_mode+set}" = set; then
11110 withval=$with_device_mode; DM_DEVICE_MODE=$withval
11112 DM_DEVICE_MODE=0600
11115 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11116 $as_echo "$DM_DEVICE_MODE" >&6; }
11118 ################################################################################
11119 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11120 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
11121 # Check whether --enable-lvm1_fallback was given.
11122 if test "${enable_lvm1_fallback+set}" = set; then
11123 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11128 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11129 $as_echo "$LVM1_FALLBACK" >&6; }
11131 if test x$LVM1_FALLBACK = xyes; then
11133 cat >>confdefs.h <<\_ACEOF
11134 #define LVM1_FALLBACK 1
11139 ################################################################################
11140 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11141 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
11143 # Check whether --with-lvm1 was given.
11144 if test "${with_lvm1+set}" = set; then
11145 withval=$with_lvm1; LVM1=$withval
11150 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11151 $as_echo "$LVM1" >&6; }
11153 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
11154 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
11156 $as_echo "$as_me: error: --with-lvm1 parameter invalid
11158 { (exit 1); exit 1; }; }
11161 if test x$LVM1 = xinternal; then
11163 cat >>confdefs.h <<\_ACEOF
11164 #define LVM1_INTERNAL 1
11169 ################################################################################
11170 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11171 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
11173 # Check whether --with-pool was given.
11174 if test "${with_pool+set}" = set; then
11175 withval=$with_pool; POOL=$withval
11180 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
11181 $as_echo "$POOL" >&6; }
11183 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
11184 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
11186 $as_echo "$as_me: error: --with-pool parameter invalid
11188 { (exit 1); exit 1; }; }
11191 if test x$POOL = xinternal; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define POOL_INTERNAL 1
11199 ################################################################################
11200 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11201 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
11203 # Check whether --with-cluster was given.
11204 if test "${with_cluster+set}" = set; then
11205 withval=$with_cluster; CLUSTER=$withval
11208 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11209 $as_echo "$CLUSTER" >&6; }
11211 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
11212 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
11214 $as_echo "$as_me: error: --with-cluster parameter invalid
11216 { (exit 1); exit 1; }; }
11219 if test x$CLUSTER = xinternal; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define CLUSTER_LOCKING_INTERNAL 1
11227 ################################################################################
11228 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11229 $as_echo_n "checking whether to include snapshots... " >&6; }
11231 # Check whether --with-snapshots was given.
11232 if test "${with_snapshots+set}" = set; then
11233 withval=$with_snapshots; SNAPSHOTS=$withval
11238 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11239 $as_echo "$SNAPSHOTS" >&6; }
11241 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
11242 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
11244 $as_echo "$as_me: error: --with-snapshots parameter invalid
11246 { (exit 1); exit 1; }; }
11249 if test x$SNAPSHOTS = xinternal; then
11251 cat >>confdefs.h <<\_ACEOF
11252 #define SNAPSHOT_INTERNAL 1
11257 ################################################################################
11258 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11259 $as_echo_n "checking whether to include mirrors... " >&6; }
11261 # Check whether --with-mirrors was given.
11262 if test "${with_mirrors+set}" = set; then
11263 withval=$with_mirrors; MIRRORS=$withval
11268 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11269 $as_echo "$MIRRORS" >&6; }
11271 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
11272 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
11274 $as_echo "$as_me: error: --with-mirrors parameter invalid
11276 { (exit 1); exit 1; }; }
11279 if test x$MIRRORS = xinternal; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define MIRRORED_INTERNAL 1
11287 ################################################################################
11288 { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11289 $as_echo_n "checking whether to include replicators... " >&6; }
11291 # Check whether --with-replicators was given.
11292 if test "${with_replicators+set}" = set; then
11293 withval=$with_replicators; REPLICATORS=$withval
11298 { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11299 $as_echo "$REPLICATORS" >&6; }
11301 case "$REPLICATORS" in
11304 cat >>confdefs.h <<\_ACEOF
11305 #define REPLICATOR_INTERNAL 1
11308 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11309 $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11310 { (exit 1); exit 1; }; } ;;
11313 ################################################################################
11314 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11315 $as_echo_n "checking whether to enable readline... " >&6; }
11316 # Check whether --enable-readline was given.
11317 if test "${enable_readline+set}" = set; then
11318 enableval=$enable_readline; READLINE=$enableval
11323 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11324 $as_echo "$READLINE" >&6; }
11326 ################################################################################
11327 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11328 $as_echo_n "checking whether to enable realtime support... " >&6; }
11329 # Check whether --enable-realtime was given.
11330 if test "${enable_realtime+set}" = set; then
11331 enableval=$enable_realtime; REALTIME=$enableval
11334 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11335 $as_echo "$REALTIME" >&6; }
11337 ################################################################################
11338 { $as_echo "$as_me:$LINENO: checking whether to enable OCF resource agents" >&5
11339 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
11340 # Check whether --enable-ocf was given.
11341 if test "${enable_ocf+set}" = set; then
11342 enableval=$enable_ocf; OCF=$enableval
11347 { $as_echo "$as_me:$LINENO: result: $OCF" >&5
11348 $as_echo "$OCF" >&6; }
11350 ################################################################################
11351 pkg_config_init() {
11354 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11355 if test -n "$ac_tool_prefix"; then
11356 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11357 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11361 $as_echo_n "(cached) " >&6
11363 case $PKG_CONFIG in
11365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11387 if test -n "$PKG_CONFIG"; then
11388 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11389 $as_echo "$PKG_CONFIG" >&6; }
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392 $as_echo "no" >&6; }
11397 if test -z "$ac_cv_path_PKG_CONFIG"; then
11398 ac_pt_PKG_CONFIG=$PKG_CONFIG
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400 set dummy pkg-config; ac_word=$2
11401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11406 case $ac_pt_PKG_CONFIG in
11408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11430 if test -n "$ac_pt_PKG_CONFIG"; then
11431 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11432 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11434 { $as_echo "$as_me:$LINENO: result: no" >&5
11435 $as_echo "no" >&6; }
11438 if test "x$ac_pt_PKG_CONFIG" = x; then
11441 case $cross_compiling:$ac_tool_warned in
11443 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11445 ac_tool_warned=yes ;;
11447 PKG_CONFIG=$ac_pt_PKG_CONFIG
11450 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11454 if test -n "$PKG_CONFIG"; then
11455 _pkg_min_version=0.9.0
11456 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11457 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11458 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11459 { $as_echo "$as_me:$LINENO: result: yes" >&5
11460 $as_echo "yes" >&6; }
11462 { $as_echo "$as_me:$LINENO: result: no" >&5
11463 $as_echo "no" >&6; }
11470 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11471 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
11473 if test -n "$PKGCONFIGINIT_CFLAGS"; then
11474 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
11475 elif test -n "$PKG_CONFIG"; then
11476 if test -n "$PKG_CONFIG" && \
11477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11478 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; then
11482 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
11489 if test -n "$PKGCONFIGINIT_LIBS"; then
11490 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
11491 elif test -n "$PKG_CONFIG"; then
11492 if test -n "$PKG_CONFIG" && \
11493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11494 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; then
11498 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
11508 if test $pkg_failed = yes; then
11510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11511 _pkg_short_errors_supported=yes
11513 _pkg_short_errors_supported=no
11515 if test $_pkg_short_errors_supported = yes; then
11516 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
11518 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
11520 # Put the nasty error message in config.log where it belongs
11521 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
11523 { $as_echo "$as_me:$LINENO: result: no" >&5
11524 $as_echo "no" >&6; }
11525 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11526 $as_echo "pkg-config initialized" >&6; }
11527 elif test $pkg_failed = untried; then
11528 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11529 $as_echo "pkg-config initialized" >&6; }
11531 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11532 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534 $as_echo "yes" >&6; }
11540 ################################################################################
11541 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11542 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11544 # Check whether --with-clvmd was given.
11545 if test "${with_clvmd+set}" = set; then
11546 withval=$with_clvmd; CLVMD=$withval
11551 if test x$CLVMD = xyes; then
11554 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11555 $as_echo "$CLVMD" >&6; }
11557 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11561 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11566 CLVMD_NEEDS_QDISKD=no
11568 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11570 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
11571 CLVMD_NEEDS_QDISKD=yes
11573 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11575 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
11576 CLVMD_NEEDS_QDISKD=yes
11578 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11580 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
11582 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11584 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
11586 if test x$CLVMD_NEEDS_QDISKD != xno; then
11587 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
11590 if test x$BUILDGULM = xyes; then
11591 if test x$BUILDCOROSYNC = xyes || \
11592 test x$BUILDOPENAIS = xyes; then
11593 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11594 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11595 { (exit 1); exit 1; }; }
11604 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11605 $as_echo "$as_me: error: bailing out" >&2;}
11606 { (exit 1); exit 1; }; }
11609 if test x$CLVMD = xall; then
11610 bailout=soft_bailout
11616 bailout=hard_bailout
11619 check_lib_no_libs() {
11620 lib_no_libs_arg1=$1
11622 lib_no_libs_arg2=$1
11624 lib_no_libs_args=$@
11626 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11627 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11628 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11629 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11630 $as_echo_n "(cached) " >&6
11632 ac_check_lib_save_LIBS=$LIBS
11633 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11647 char $lib_no_libs_arg2 ();
11651 return $lib_no_libs_arg2 ();
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (ac_try="$ac_link"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663 $as_echo "$ac_try_echo") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext && {
11674 test "$cross_compiling" = yes ||
11675 $as_test_x conftest$ac_exeext
11677 eval "$as_ac_Lib=yes"
11679 $as_echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 eval "$as_ac_Lib=no"
11685 rm -rf conftest.dSYM
11686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11690 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11691 $as_echo "$as_val"'`
11692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11693 $as_echo "$ac_res" >&6; }
11694 as_val=`eval 'as_val=${'$as_ac_Lib'}
11695 $as_echo "$as_val"'`
11696 if test "x$as_val" = x""yes; then
11697 cat >>confdefs.h <<_ACEOF
11698 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11701 LIBS="-l$lib_no_libs_arg1 $LIBS"
11707 LIBS=$ac_check_lib_save_LIBS
11710 if test x$BUILDGULM = xyes; then
11713 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
11714 $as_echo_n "checking for CCS... " >&6; }
11716 if test -n "$CCS_CFLAGS"; then
11717 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
11718 elif test -n "$PKG_CONFIG"; then
11719 if test -n "$PKG_CONFIG" && \
11720 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11721 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; then
11725 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
11732 if test -n "$CCS_LIBS"; then
11733 pkg_cv_CCS_LIBS="$CCS_LIBS"
11734 elif test -n "$PKG_CONFIG"; then
11735 if test -n "$PKG_CONFIG" && \
11736 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11737 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; then
11741 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
11751 if test $pkg_failed = yes; then
11753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11754 _pkg_short_errors_supported=yes
11756 _pkg_short_errors_supported=no
11758 if test $_pkg_short_errors_supported = yes; then
11759 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
11761 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
11763 # Put the nasty error message in config.log where it belongs
11764 echo "$CCS_PKG_ERRORS" >&5
11766 { $as_echo "$as_me:$LINENO: result: no" >&5
11767 $as_echo "no" >&6; }
11770 for ac_header in ccs.h
11772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 $as_echo_n "checking for $ac_header... " >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 $as_echo_n "(cached) " >&6
11779 ac_res=`eval 'as_val=${'$as_ac_Header'}
11780 $as_echo "$as_val"'`
11781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11782 $as_echo "$ac_res" >&6; }
11784 # Is the header compilable?
11785 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11786 $as_echo_n "checking $ac_header usability... " >&6; }
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11794 #include <$ac_header>
11796 rm -f conftest.$ac_objext
11797 if { (ac_try="$ac_compile"
11798 case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11803 $as_echo "$ac_try_echo") >&5
11804 (eval "$ac_compile") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest.$ac_objext; then
11814 ac_header_compiler=yes
11816 $as_echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ac_header_compiler=no
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 $as_echo "$ac_header_compiler" >&6; }
11826 # Is the header present?
11827 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 $as_echo_n "checking $ac_header presence... " >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <$ac_header>
11837 if { (ac_try="$ac_cpp conftest.$ac_ext"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11846 grep -v '^ *+' conftest.er1 >conftest.err
11848 cat conftest.err >&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } >/dev/null && {
11851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11854 ac_header_preproc=yes
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_header_preproc=no
11862 rm -f conftest.err conftest.$ac_ext
11863 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11864 $as_echo "$ac_header_preproc" >&6; }
11866 # So? What about this header?
11867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11873 ac_header_preproc=yes
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11877 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11879 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11881 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11887 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11892 $as_echo_n "checking for $ac_header... " >&6; }
11893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11894 $as_echo_n "(cached) " >&6
11896 eval "$as_ac_Header=\$ac_header_preproc"
11898 ac_res=`eval 'as_val=${'$as_ac_Header'}
11899 $as_echo "$as_val"'`
11900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11901 $as_echo "$ac_res" >&6; }
11904 as_val=`eval 'as_val=${'$as_ac_Header'}
11905 $as_echo "$as_val"'`
11906 if test "x$as_val" = x""yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917 check_lib_no_libs ccs ccs_connect
11918 if test $NOTFOUND = 0; then
11919 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11920 $as_echo "no pkg for libccs, using -lccs" >&6; }
11924 elif test $pkg_failed = untried; then
11927 for ac_header in ccs.h
11929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11932 $as_echo_n "checking for $ac_header... " >&6; }
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 $as_echo_n "(cached) " >&6
11936 ac_res=`eval 'as_val=${'$as_ac_Header'}
11937 $as_echo "$as_val"'`
11938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11939 $as_echo "$ac_res" >&6; }
11941 # Is the header compilable?
11942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11943 $as_echo_n "checking $ac_header usability... " >&6; }
11944 cat >conftest.$ac_ext <<_ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 $ac_includes_default
11951 #include <$ac_header>
11953 rm -f conftest.$ac_objext
11954 if { (ac_try="$ac_compile"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960 $as_echo "$ac_try_echo") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_header_compiler=yes
11973 $as_echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_header_compiler=no
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 $as_echo "$ac_header_compiler" >&6; }
11983 # Is the header present?
11984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 $as_echo_n "checking $ac_header presence... " >&6; }
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 #include <$ac_header>
11994 if { (ac_try="$ac_cpp conftest.$ac_ext"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } >/dev/null && {
12008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12011 ac_header_preproc=yes
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_header_preproc=no
12019 rm -f conftest.err conftest.$ac_ext
12020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 $as_echo "$ac_header_preproc" >&6; }
12023 # So? What about this header?
12024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12030 ac_header_preproc=yes
12033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12036 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12040 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12049 $as_echo_n "checking for $ac_header... " >&6; }
12050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051 $as_echo_n "(cached) " >&6
12053 eval "$as_ac_Header=\$ac_header_preproc"
12055 ac_res=`eval 'as_val=${'$as_ac_Header'}
12056 $as_echo "$as_val"'`
12057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12058 $as_echo "$ac_res" >&6; }
12061 as_val=`eval 'as_val=${'$as_ac_Header'}
12062 $as_echo "$as_val"'`
12063 if test "x$as_val" = x""yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12074 check_lib_no_libs ccs ccs_connect
12075 if test $NOTFOUND = 0; then
12076 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12077 $as_echo "no pkg for libccs, using -lccs" >&6; }
12082 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12083 CCS_LIBS=$pkg_cv_CCS_LIBS
12084 { $as_echo "$as_me:$LINENO: result: yes" >&5
12085 $as_echo "yes" >&6; }
12090 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
12091 $as_echo_n "checking for GULM... " >&6; }
12093 if test -n "$GULM_CFLAGS"; then
12094 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12095 elif test -n "$PKG_CONFIG"; then
12096 if test -n "$PKG_CONFIG" && \
12097 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12098 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; then
12102 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12109 if test -n "$GULM_LIBS"; then
12110 pkg_cv_GULM_LIBS="$GULM_LIBS"
12111 elif test -n "$PKG_CONFIG"; then
12112 if test -n "$PKG_CONFIG" && \
12113 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12114 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; then
12118 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12128 if test $pkg_failed = yes; then
12130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12131 _pkg_short_errors_supported=yes
12133 _pkg_short_errors_supported=no
12135 if test $_pkg_short_errors_supported = yes; then
12136 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12138 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12140 # Put the nasty error message in config.log where it belongs
12141 echo "$GULM_PKG_ERRORS" >&5
12143 { $as_echo "$as_me:$LINENO: result: no" >&5
12144 $as_echo "no" >&6; }
12147 for ac_header in libgulm.h
12149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 $as_echo_n "checking for $ac_header... " >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 $as_echo_n "(cached) " >&6
12156 ac_res=`eval 'as_val=${'$as_ac_Header'}
12157 $as_echo "$as_val"'`
12158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12159 $as_echo "$ac_res" >&6; }
12161 # Is the header compilable?
12162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12163 $as_echo_n "checking $ac_header usability... " >&6; }
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 $ac_includes_default
12171 #include <$ac_header>
12173 rm -f conftest.$ac_objext
12174 if { (ac_try="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180 $as_echo "$ac_try_echo") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_header_compiler=yes
12193 $as_echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_header_compiler=no
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12201 $as_echo "$ac_header_compiler" >&6; }
12203 # Is the header present?
12204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12205 $as_echo_n "checking $ac_header presence... " >&6; }
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 #include <$ac_header>
12214 if { (ac_try="$ac_cpp conftest.$ac_ext"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null && {
12228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12231 ac_header_preproc=yes
12233 $as_echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_header_preproc=no
12239 rm -f conftest.err conftest.$ac_ext
12240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241 $as_echo "$ac_header_preproc" >&6; }
12243 # So? What about this header?
12244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12250 ac_header_preproc=yes
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12269 $as_echo_n "checking for $ac_header... " >&6; }
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 $as_echo_n "(cached) " >&6
12273 eval "$as_ac_Header=\$ac_header_preproc"
12275 ac_res=`eval 'as_val=${'$as_ac_Header'}
12276 $as_echo "$as_val"'`
12277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12278 $as_echo "$ac_res" >&6; }
12281 as_val=`eval 'as_val=${'$as_ac_Header'}
12282 $as_echo "$as_val"'`
12283 if test "x$as_val" = x""yes; then
12284 cat >>confdefs.h <<_ACEOF
12285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12294 check_lib_no_libs gulm lg_core_login
12295 if test $NOTFOUND = 0; then
12296 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12297 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12301 elif test $pkg_failed = untried; then
12304 for ac_header in libgulm.h
12306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 $as_echo_n "checking for $ac_header... " >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 $as_echo_n "(cached) " >&6
12313 ac_res=`eval 'as_val=${'$as_ac_Header'}
12314 $as_echo "$as_val"'`
12315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12316 $as_echo "$ac_res" >&6; }
12318 # Is the header compilable?
12319 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12320 $as_echo_n "checking $ac_header usability... " >&6; }
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 $ac_includes_default
12328 #include <$ac_header>
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337 $as_echo "$ac_try_echo") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 ac_header_compiler=yes
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_header_compiler=no
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12358 $as_echo "$ac_header_compiler" >&6; }
12360 # Is the header present?
12361 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12362 $as_echo_n "checking $ac_header presence... " >&6; }
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 #include <$ac_header>
12371 if { (ac_try="$ac_cpp conftest.$ac_ext"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12377 $as_echo "$ac_try_echo") >&5
12378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } >/dev/null && {
12385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12388 ac_header_preproc=yes
12390 $as_echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_header_preproc=no
12396 rm -f conftest.err conftest.$ac_ext
12397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12398 $as_echo "$ac_header_preproc" >&6; }
12400 # So? What about this header?
12401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12407 ac_header_preproc=yes
12410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12411 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12413 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12415 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12417 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12421 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12425 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12426 $as_echo_n "checking for $ac_header... " >&6; }
12427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12428 $as_echo_n "(cached) " >&6
12430 eval "$as_ac_Header=\$ac_header_preproc"
12432 ac_res=`eval 'as_val=${'$as_ac_Header'}
12433 $as_echo "$as_val"'`
12434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12435 $as_echo "$ac_res" >&6; }
12438 as_val=`eval 'as_val=${'$as_ac_Header'}
12439 $as_echo "$as_val"'`
12440 if test "x$as_val" = x""yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12451 check_lib_no_libs gulm lg_core_login
12452 if test $NOTFOUND = 0; then
12453 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12454 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12459 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12460 GULM_LIBS=$pkg_cv_GULM_LIBS
12461 { $as_echo "$as_me:$LINENO: result: yes" >&5
12462 $as_echo "yes" >&6; }
12467 if test x$BUILDCMAN = xyes; then
12470 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12471 $as_echo_n "checking for CMAN... " >&6; }
12473 if test -n "$CMAN_CFLAGS"; then
12474 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12475 elif test -n "$PKG_CONFIG"; then
12476 if test -n "$PKG_CONFIG" && \
12477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12478 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; then
12482 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12489 if test -n "$CMAN_LIBS"; then
12490 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12491 elif test -n "$PKG_CONFIG"; then
12492 if test -n "$PKG_CONFIG" && \
12493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12494 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; then
12498 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12508 if test $pkg_failed = yes; then
12510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12511 _pkg_short_errors_supported=yes
12513 _pkg_short_errors_supported=no
12515 if test $_pkg_short_errors_supported = yes; then
12516 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12518 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12520 # Put the nasty error message in config.log where it belongs
12521 echo "$CMAN_PKG_ERRORS" >&5
12523 { $as_echo "$as_me:$LINENO: result: no" >&5
12524 $as_echo "no" >&6; }
12527 for ac_header in libcman.h
12529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12532 $as_echo_n "checking for $ac_header... " >&6; }
12533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 $as_echo_n "(cached) " >&6
12536 ac_res=`eval 'as_val=${'$as_ac_Header'}
12537 $as_echo "$as_val"'`
12538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12539 $as_echo "$ac_res" >&6; }
12541 # Is the header compilable?
12542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12543 $as_echo_n "checking $ac_header usability... " >&6; }
12544 cat >conftest.$ac_ext <<_ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_includes_default
12551 #include <$ac_header>
12553 rm -f conftest.$ac_objext
12554 if { (ac_try="$ac_compile"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12560 $as_echo "$ac_try_echo") >&5
12561 (eval "$ac_compile") 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest.$ac_objext; then
12571 ac_header_compiler=yes
12573 $as_echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_header_compiler=no
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12581 $as_echo "$ac_header_compiler" >&6; }
12583 # Is the header present?
12584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12585 $as_echo_n "checking $ac_header presence... " >&6; }
12586 cat >conftest.$ac_ext <<_ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 #include <$ac_header>
12594 if { (ac_try="$ac_cpp conftest.$ac_ext"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12600 $as_echo "$ac_try_echo") >&5
12601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } >/dev/null && {
12608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12611 ac_header_preproc=yes
12613 $as_echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_header_preproc=no
12619 rm -f conftest.err conftest.$ac_ext
12620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621 $as_echo "$ac_header_preproc" >&6; }
12623 # So? What about this header?
12624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12630 ac_header_preproc=yes
12633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12636 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12640 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12649 $as_echo_n "checking for $ac_header... " >&6; }
12650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12651 $as_echo_n "(cached) " >&6
12653 eval "$as_ac_Header=\$ac_header_preproc"
12655 ac_res=`eval 'as_val=${'$as_ac_Header'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12661 as_val=`eval 'as_val=${'$as_ac_Header'}
12662 $as_echo "$as_val"'`
12663 if test "x$as_val" = x""yes; then
12664 cat >>confdefs.h <<_ACEOF
12665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12674 check_lib_no_libs cman cman_init
12675 if test $NOTFOUND = 0; then
12676 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12677 $as_echo "no pkg for libcman, using -lcman" >&6; }
12681 elif test $pkg_failed = untried; then
12684 for ac_header in libcman.h
12686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12689 $as_echo_n "checking for $ac_header... " >&6; }
12690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12691 $as_echo_n "(cached) " >&6
12693 ac_res=`eval 'as_val=${'$as_ac_Header'}
12694 $as_echo "$as_val"'`
12695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12696 $as_echo "$ac_res" >&6; }
12698 # Is the header compilable?
12699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12700 $as_echo_n "checking $ac_header usability... " >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 #include <$ac_header>
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717 $as_echo "$ac_try_echo") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 ac_header_compiler=yes
12730 $as_echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_header_compiler=no
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738 $as_echo "$ac_header_compiler" >&6; }
12740 # Is the header present?
12741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12742 $as_echo_n "checking $ac_header presence... " >&6; }
12743 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749 #include <$ac_header>
12751 if { (ac_try="$ac_cpp conftest.$ac_ext"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } >/dev/null && {
12765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12768 ac_header_preproc=yes
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 ac_header_preproc=no
12776 rm -f conftest.err conftest.$ac_ext
12777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12778 $as_echo "$ac_header_preproc" >&6; }
12780 # So? What about this header?
12781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12787 ac_header_preproc=yes
12790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12793 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12797 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 $as_echo_n "checking for $ac_header... " >&6; }
12807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808 $as_echo_n "(cached) " >&6
12810 eval "$as_ac_Header=\$ac_header_preproc"
12812 ac_res=`eval 'as_val=${'$as_ac_Header'}
12813 $as_echo "$as_val"'`
12814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12815 $as_echo "$ac_res" >&6; }
12818 as_val=`eval 'as_val=${'$as_ac_Header'}
12819 $as_echo "$as_val"'`
12820 if test "x$as_val" = x""yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12831 check_lib_no_libs cman cman_init
12832 if test $NOTFOUND = 0; then
12833 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12834 $as_echo "no pkg for libcman, using -lcman" >&6; }
12839 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12840 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12841 { $as_echo "$as_me:$LINENO: result: yes" >&5
12842 $as_echo "yes" >&6; }
12849 if test x$BUILDCOROSYNC = xyes || \
12850 test x$BUILDOPENAIS = xyes; then
12853 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12854 $as_echo_n "checking for COROSYNC... " >&6; }
12856 if test -n "$COROSYNC_CFLAGS"; then
12857 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12858 elif test -n "$PKG_CONFIG"; then
12859 if test -n "$PKG_CONFIG" && \
12860 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12861 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; then
12865 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12872 if test -n "$COROSYNC_LIBS"; then
12873 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12874 elif test -n "$PKG_CONFIG"; then
12875 if test -n "$PKG_CONFIG" && \
12876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12877 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; then
12881 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12891 if test $pkg_failed = yes; then
12893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12894 _pkg_short_errors_supported=yes
12896 _pkg_short_errors_supported=no
12898 if test $_pkg_short_errors_supported = yes; then
12899 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12901 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12903 # Put the nasty error message in config.log where it belongs
12904 echo "$COROSYNC_PKG_ERRORS" >&5
12906 { $as_echo "$as_me:$LINENO: result: no" >&5
12907 $as_echo "no" >&6; }
12909 elif test $pkg_failed = untried; then
12912 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12913 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12914 { $as_echo "$as_me:$LINENO: result: yes" >&5
12915 $as_echo "yes" >&6; }
12921 if test x$BUILDCOROSYNC = xyes; then
12924 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12925 $as_echo_n "checking for QUORUM... " >&6; }
12927 if test -n "$QUORUM_CFLAGS"; then
12928 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12929 elif test -n "$PKG_CONFIG"; then
12930 if test -n "$PKG_CONFIG" && \
12931 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12932 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; then
12936 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12943 if test -n "$QUORUM_LIBS"; then
12944 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
12945 elif test -n "$PKG_CONFIG"; then
12946 if test -n "$PKG_CONFIG" && \
12947 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12948 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
12962 if test $pkg_failed = yes; then
12964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12965 _pkg_short_errors_supported=yes
12967 _pkg_short_errors_supported=no
12969 if test $_pkg_short_errors_supported = yes; then
12970 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
12972 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
12974 # Put the nasty error message in config.log where it belongs
12975 echo "$QUORUM_PKG_ERRORS" >&5
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978 $as_echo "no" >&6; }
12980 elif test $pkg_failed = untried; then
12983 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
12984 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
12985 { $as_echo "$as_me:$LINENO: result: yes" >&5
12986 $as_echo "yes" >&6; }
12993 if test x$BUILDOPENAIS = xyes; then
12996 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
12997 $as_echo_n "checking for SALCK... " >&6; }
12999 if test -n "$SALCK_CFLAGS"; then
13000 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13001 elif test -n "$PKG_CONFIG"; then
13002 if test -n "$PKG_CONFIG" && \
13003 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13004 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; then
13008 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13015 if test -n "$SALCK_LIBS"; then
13016 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13017 elif test -n "$PKG_CONFIG"; then
13018 if test -n "$PKG_CONFIG" && \
13019 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13020 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; then
13024 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13034 if test $pkg_failed = yes; then
13036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13037 _pkg_short_errors_supported=yes
13039 _pkg_short_errors_supported=no
13041 if test $_pkg_short_errors_supported = yes; then
13042 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13044 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13046 # Put the nasty error message in config.log where it belongs
13047 echo "$SALCK_PKG_ERRORS" >&5
13049 { $as_echo "$as_me:$LINENO: result: no" >&5
13050 $as_echo "no" >&6; }
13052 elif test $pkg_failed = untried; then
13055 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13056 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13057 { $as_echo "$as_me:$LINENO: result: yes" >&5
13058 $as_echo "yes" >&6; }
13066 if test x$CHECKCONFDB = xyes; then
13069 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13070 $as_echo_n "checking for CONFDB... " >&6; }
13072 if test -n "$CONFDB_CFLAGS"; then
13073 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13074 elif test -n "$PKG_CONFIG"; then
13075 if test -n "$PKG_CONFIG" && \
13076 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13077 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; then
13081 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13088 if test -n "$CONFDB_LIBS"; then
13089 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13090 elif test -n "$PKG_CONFIG"; then
13091 if test -n "$PKG_CONFIG" && \
13092 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13093 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; then
13097 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13107 if test $pkg_failed = yes; then
13109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13110 _pkg_short_errors_supported=yes
13112 _pkg_short_errors_supported=no
13114 if test $_pkg_short_errors_supported = yes; then
13115 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13117 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13119 # Put the nasty error message in config.log where it belongs
13120 echo "$CONFDB_PKG_ERRORS" >&5
13122 { $as_echo "$as_me:$LINENO: result: no" >&5
13123 $as_echo "no" >&6; }
13125 elif test $pkg_failed = untried; then
13128 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13129 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13130 { $as_echo "$as_me:$LINENO: result: yes" >&5
13131 $as_echo "yes" >&6; }
13136 for ac_header in corosync/confdb.h
13138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13141 $as_echo_n "checking for $ac_header... " >&6; }
13142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13143 $as_echo_n "(cached) " >&6
13145 ac_res=`eval 'as_val=${'$as_ac_Header'}
13146 $as_echo "$as_val"'`
13147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13148 $as_echo "$ac_res" >&6; }
13150 # Is the header compilable?
13151 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13152 $as_echo_n "checking $ac_header usability... " >&6; }
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13160 #include <$ac_header>
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_compile") 2>conftest.er1
13172 grep -v '^ *+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
13180 ac_header_compiler=yes
13182 $as_echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ac_header_compiler=no
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13190 $as_echo "$ac_header_compiler" >&6; }
13192 # Is the header present?
13193 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13194 $as_echo_n "checking $ac_header presence... " >&6; }
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 #include <$ac_header>
13203 if { (ac_try="$ac_cpp conftest.$ac_ext"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209 $as_echo "$ac_try_echo") >&5
13210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null && {
13217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13220 ac_header_preproc=yes
13222 $as_echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 ac_header_preproc=no
13228 rm -f conftest.err conftest.$ac_ext
13229 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13230 $as_echo "$ac_header_preproc" >&6; }
13232 # So? What about this header?
13233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13236 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13239 ac_header_preproc=yes
13242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13243 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13245 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13247 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13249 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13251 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13253 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13258 $as_echo_n "checking for $ac_header... " >&6; }
13259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13260 $as_echo_n "(cached) " >&6
13262 eval "$as_ac_Header=\$ac_header_preproc"
13264 ac_res=`eval 'as_val=${'$as_ac_Header'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13267 $as_echo "$ac_res" >&6; }
13270 as_val=`eval 'as_val=${'$as_ac_Header'}
13271 $as_echo "$as_val"'`
13272 if test "x$as_val" = x""yes; then
13273 cat >>confdefs.h <<_ACEOF
13274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13284 if test x$HAVE_CONFDB != xyes && \
13285 test x$HAVE_CONFDB_H = xyes; then
13286 check_lib_no_libs confdb confdb_initialize
13287 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13288 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
13289 CONFDB_LIBS="-lconfdb"
13293 if test x$BUILDCOROSYNC = xyes && \
13294 test x$HAVE_CONFDB != xyes &&
13295 test x$CLVMD != xall; then
13296 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13297 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13298 { (exit 1); exit 1; }; }
13302 if test x$CHECKCPG = xyes; then
13305 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
13306 $as_echo_n "checking for CPG... " >&6; }
13308 if test -n "$CPG_CFLAGS"; then
13309 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13310 elif test -n "$PKG_CONFIG"; then
13311 if test -n "$PKG_CONFIG" && \
13312 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13313 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; then
13317 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13324 if test -n "$CPG_LIBS"; then
13325 pkg_cv_CPG_LIBS="$CPG_LIBS"
13326 elif test -n "$PKG_CONFIG"; then
13327 if test -n "$PKG_CONFIG" && \
13328 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13329 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; then
13333 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13343 if test $pkg_failed = yes; then
13345 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13346 _pkg_short_errors_supported=yes
13348 _pkg_short_errors_supported=no
13350 if test $_pkg_short_errors_supported = yes; then
13351 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13353 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13355 # Put the nasty error message in config.log where it belongs
13356 echo "$CPG_PKG_ERRORS" >&5
13358 { $as_echo "$as_me:$LINENO: result: no" >&5
13359 $as_echo "no" >&6; }
13361 elif test $pkg_failed = untried; then
13364 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13365 CPG_LIBS=$pkg_cv_CPG_LIBS
13366 { $as_echo "$as_me:$LINENO: result: yes" >&5
13367 $as_echo "yes" >&6; }
13372 if test x$CHECKDLM = xyes; then
13375 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
13376 $as_echo_n "checking for DLM... " >&6; }
13378 if test -n "$DLM_CFLAGS"; then
13379 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13380 elif test -n "$PKG_CONFIG"; then
13381 if test -n "$PKG_CONFIG" && \
13382 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13383 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; then
13387 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13394 if test -n "$DLM_LIBS"; then
13395 pkg_cv_DLM_LIBS="$DLM_LIBS"
13396 elif test -n "$PKG_CONFIG"; then
13397 if test -n "$PKG_CONFIG" && \
13398 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13399 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; then
13403 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13413 if test $pkg_failed = yes; then
13415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13416 _pkg_short_errors_supported=yes
13418 _pkg_short_errors_supported=no
13420 if test $_pkg_short_errors_supported = yes; then
13421 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13423 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13425 # Put the nasty error message in config.log where it belongs
13426 echo "$DLM_PKG_ERRORS" >&5
13428 { $as_echo "$as_me:$LINENO: result: no" >&5
13429 $as_echo "no" >&6; }
13432 for ac_header in libdlm.h
13434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 $as_echo_n "checking for $ac_header... " >&6; }
13438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13439 $as_echo_n "(cached) " >&6
13441 ac_res=`eval 'as_val=${'$as_ac_Header'}
13442 $as_echo "$as_val"'`
13443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13444 $as_echo "$ac_res" >&6; }
13446 # Is the header compilable?
13447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13448 $as_echo_n "checking $ac_header usability... " >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 $ac_includes_default
13456 #include <$ac_header>
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13465 $as_echo "$ac_try_echo") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13468 grep -v '^ *+' conftest.er1 >conftest.err
13470 cat conftest.err >&5
13471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest.$ac_objext; then
13476 ac_header_compiler=yes
13478 $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_header_compiler=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 $as_echo "$ac_header_compiler" >&6; }
13488 # Is the header present?
13489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490 $as_echo_n "checking $ac_header presence... " >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <$ac_header>
13499 if { (ac_try="$ac_cpp conftest.$ac_ext"
13500 case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13505 $as_echo "$ac_try_echo") >&5
13506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev/null && {
13513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13514 test ! -s conftest.err
13516 ac_header_preproc=yes
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ac_header_preproc=no
13524 rm -f conftest.err conftest.$ac_ext
13525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 $as_echo "$ac_header_preproc" >&6; }
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
13538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13554 $as_echo_n "checking for $ac_header... " >&6; }
13555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13556 $as_echo_n "(cached) " >&6
13558 eval "$as_ac_Header=\$ac_header_preproc"
13560 ac_res=`eval 'as_val=${'$as_ac_Header'}
13561 $as_echo "$as_val"'`
13562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13563 $as_echo "$ac_res" >&6; }
13566 as_val=`eval 'as_val=${'$as_ac_Header'}
13567 $as_echo "$as_val"'`
13568 if test "x$as_val" = x""yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13579 check_lib_no_libs dlm dlm_lock -lpthread
13580 if test $NOTFOUND = 0; then
13581 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13582 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13583 DLM_LIBS="-ldlm -lpthread"
13586 elif test $pkg_failed = untried; then
13589 for ac_header in libdlm.h
13591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13594 $as_echo_n "checking for $ac_header... " >&6; }
13595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13596 $as_echo_n "(cached) " >&6
13598 ac_res=`eval 'as_val=${'$as_ac_Header'}
13599 $as_echo "$as_val"'`
13600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13601 $as_echo "$ac_res" >&6; }
13603 # Is the header compilable?
13604 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13605 $as_echo_n "checking $ac_header usability... " >&6; }
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 $ac_includes_default
13613 #include <$ac_header>
13615 rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622 $as_echo "$ac_try_echo") >&5
13623 (eval "$ac_compile") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1 >conftest.err
13627 cat conftest.err >&5
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest.$ac_objext; then
13633 ac_header_compiler=yes
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_header_compiler=no
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13643 $as_echo "$ac_header_compiler" >&6; }
13645 # Is the header present?
13646 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13647 $as_echo_n "checking $ac_header presence... " >&6; }
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 #include <$ac_header>
13656 if { (ac_try="$ac_cpp conftest.$ac_ext"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662 $as_echo "$ac_try_echo") >&5
13663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13665 grep -v '^ *+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } >/dev/null && {
13670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13673 ac_header_preproc=yes
13675 $as_echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 ac_header_preproc=no
13681 rm -f conftest.err conftest.$ac_ext
13682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13683 $as_echo "$ac_header_preproc" >&6; }
13685 # So? What about this header?
13686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13689 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13692 ac_header_preproc=yes
13695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13696 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13698 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13700 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13702 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13706 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13711 $as_echo_n "checking for $ac_header... " >&6; }
13712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713 $as_echo_n "(cached) " >&6
13715 eval "$as_ac_Header=\$ac_header_preproc"
13717 ac_res=`eval 'as_val=${'$as_ac_Header'}
13718 $as_echo "$as_val"'`
13719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720 $as_echo "$ac_res" >&6; }
13723 as_val=`eval 'as_val=${'$as_ac_Header'}
13724 $as_echo "$as_val"'`
13725 if test "x$as_val" = x""yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13736 check_lib_no_libs dlm dlm_lock -lpthread
13737 if test $NOTFOUND = 0; then
13738 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13739 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13740 DLM_LIBS="-ldlm -lpthread"
13744 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13745 DLM_LIBS=$pkg_cv_DLM_LIBS
13746 { $as_echo "$as_me:$LINENO: result: yes" >&5
13747 $as_echo "yes" >&6; }
13752 if test x$CLVMD = xall; then
13755 CLVMD_NEEDS_QDISKD=no
13756 if test x$HAVE_CCS = xyes && \
13757 test x$HAVE_GULM = xyes; then
13758 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13759 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
13760 CLVMD="$CLVMD,gulm"
13761 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
13762 CLVMD_NEEDS_QDISKD=yes
13764 if test x$HAVE_CMAN = xyes && \
13765 test x$HAVE_DLM = xyes; then
13766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13767 $as_echo "Enabling clvmd cman cluster manager" >&6; }
13768 CLVMD="$CLVMD,cman"
13769 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
13770 CLVMD_NEEDS_QDISKD=yes
13772 if test x$HAVE_COROSYNC = xyes && \
13773 test x$HAVE_QUORUM = xyes && \
13774 test x$HAVE_CPG = xyes && \
13775 test x$HAVE_DLM = xyes && \
13776 test x$HAVE_CONFDB = xyes; then
13777 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13778 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
13779 CLVMD="$CLVMD,corosync"
13780 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
13782 if test x$HAVE_COROSYNC = xyes && \
13783 test x$HAVE_CPG = xyes && \
13784 test x$HAVE_SALCK = xyes; then
13785 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13786 $as_echo "Enabling clvmd openais cluster manager" >&6; }
13787 CLVMD="$CLVMD,openais"
13788 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
13790 if test x$CLVMD_NEEDS_QDISKD != xno; then
13791 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
13793 if test x$CLVMD = xnone; then
13794 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13795 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
13799 ################################################################################
13800 if test "x$CLVMD" != xnone; then
13802 # Check whether --with-clvmd-pidfile was given.
13803 if test "${with_clvmd_pidfile+set}" = set; then
13804 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13806 CLVMD_PIDFILE="/var/run/clvmd.pid"
13810 cat >>confdefs.h <<_ACEOF
13811 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13816 ################################################################################
13817 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13818 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13819 # Check whether --enable-cmirrord was given.
13820 if test "${enable_cmirrord+set}" = set; then
13821 enableval=$enable_cmirrord; CMIRRORD=$enableval
13826 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13827 $as_echo "$CMIRRORD" >&6; }
13829 BUILD_CMIRRORD=$CMIRRORD
13831 ################################################################################
13832 if test "x$BUILD_CMIRRORD" = xyes; then
13834 # Check whether --with-cmirrord-pidfile was given.
13835 if test "${with_cmirrord_pidfile+set}" = set; then
13836 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
13838 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
13842 cat >>confdefs.h <<_ACEOF
13843 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13848 ################################################################################
13849 if [ "x$BUILD_CMIRRORD" = xyes ]; then
13850 if test x$PKGCONFIG_INIT != x1; then
13855 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13856 $as_echo_n "checking for SACKPT... " >&6; }
13858 if test -n "$SACKPT_CFLAGS"; then
13859 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13860 elif test -n "$PKG_CONFIG"; then
13861 if test -n "$PKG_CONFIG" && \
13862 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13863 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; then
13867 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13874 if test -n "$SACKPT_LIBS"; then
13875 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13876 elif test -n "$PKG_CONFIG"; then
13877 if test -n "$PKG_CONFIG" && \
13878 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13879 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; then
13883 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13893 if test $pkg_failed = yes; then
13895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13896 _pkg_short_errors_supported=yes
13898 _pkg_short_errors_supported=no
13900 if test $_pkg_short_errors_supported = yes; then
13901 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13903 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13905 # Put the nasty error message in config.log where it belongs
13906 echo "$SACKPT_PKG_ERRORS" >&5
13908 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13912 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13913 installed software in a non-standard prefix.
13915 Alternatively, you may set the environment variables SACKPT_CFLAGS
13916 and SACKPT_LIBS to avoid the need to call pkg-config.
13917 See the pkg-config man page for more details.
13919 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13924 installed software in a non-standard prefix.
13926 Alternatively, you may set the environment variables SACKPT_CFLAGS
13927 and SACKPT_LIBS to avoid the need to call pkg-config.
13928 See the pkg-config man page for more details.
13930 { (exit 1); exit 1; }; }
13931 elif test $pkg_failed = untried; then
13932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13934 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13935 is in your PATH or set the PKG_CONFIG environment variable to the full
13936 path to pkg-config.
13938 Alternatively, you may set the environment variables SACKPT_CFLAGS
13939 and SACKPT_LIBS to avoid the need to call pkg-config.
13940 See the pkg-config man page for more details.
13942 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13943 See \`config.log' for more details." >&5
13944 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13945 is in your PATH or set the PKG_CONFIG environment variable to the full
13946 path to pkg-config.
13948 Alternatively, you may set the environment variables SACKPT_CFLAGS
13949 and SACKPT_LIBS to avoid the need to call pkg-config.
13950 See the pkg-config man page for more details.
13952 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13953 See \`config.log' for more details." >&2;}
13954 { (exit 1); exit 1; }; }; }
13956 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
13957 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
13958 { $as_echo "$as_me:$LINENO: result: yes" >&5
13959 $as_echo "yes" >&6; }
13962 if test x$HAVE_CPG != xyes; then
13965 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
13966 $as_echo_n "checking for CPG... " >&6; }
13968 if test -n "$CPG_CFLAGS"; then
13969 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13970 elif test -n "$PKG_CONFIG"; then
13971 if test -n "$PKG_CONFIG" && \
13972 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13973 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; then
13977 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13984 if test -n "$CPG_LIBS"; then
13985 pkg_cv_CPG_LIBS="$CPG_LIBS"
13986 elif test -n "$PKG_CONFIG"; then
13987 if test -n "$PKG_CONFIG" && \
13988 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13989 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; then
13993 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14003 if test $pkg_failed = yes; then
14005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14006 _pkg_short_errors_supported=yes
14008 _pkg_short_errors_supported=no
14010 if test $_pkg_short_errors_supported = yes; then
14011 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14013 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14015 # Put the nasty error message in config.log where it belongs
14016 echo "$CPG_PKG_ERRORS" >&5
14018 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14022 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14023 installed software in a non-standard prefix.
14025 Alternatively, you may set the environment variables CPG_CFLAGS
14026 and CPG_LIBS to avoid the need to call pkg-config.
14027 See the pkg-config man page for more details.
14029 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
14033 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14034 installed software in a non-standard prefix.
14036 Alternatively, you may set the environment variables CPG_CFLAGS
14037 and CPG_LIBS to avoid the need to call pkg-config.
14038 See the pkg-config man page for more details.
14040 { (exit 1); exit 1; }; }
14041 elif test $pkg_failed = untried; then
14042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14044 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14045 is in your PATH or set the PKG_CONFIG environment variable to the full
14046 path to pkg-config.
14048 Alternatively, you may set the environment variables CPG_CFLAGS
14049 and CPG_LIBS to avoid the need to call pkg-config.
14050 See the pkg-config man page for more details.
14052 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14053 See \`config.log' for more details." >&5
14054 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14055 is in your PATH or set the PKG_CONFIG environment variable to the full
14056 path to pkg-config.
14058 Alternatively, you may set the environment variables CPG_CFLAGS
14059 and CPG_LIBS to avoid the need to call pkg-config.
14060 See the pkg-config man page for more details.
14062 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14063 See \`config.log' for more details." >&2;}
14064 { (exit 1); exit 1; }; }; }
14066 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14067 CPG_LIBS=$pkg_cv_CPG_LIBS
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5
14069 $as_echo "yes" >&6; }
14075 ################################################################################
14076 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14077 $as_echo_n "checking whether to enable debugging... " >&6; }
14078 # Check whether --enable-debug was given.
14079 if test "${enable_debug+set}" = set; then
14080 enableval=$enable_debug; DEBUG=$enableval
14085 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14086 $as_echo "$DEBUG" >&6; }
14088 if test x$DEBUG = xyes; then
14094 ################################################################################
14095 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14096 $as_echo_n "checking for C optimisation flag... " >&6; }
14098 # Check whether --with-optimisation was given.
14099 if test "${with_optimisation+set}" = set; then
14100 withval=$with_optimisation; COPTIMISE_FLAG=$withval
14103 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14104 $as_echo "$COPTIMISE_FLAG" >&6; }
14106 ################################################################################
14107 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14108 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14109 # Check whether --enable-profiling was given.
14110 if test "${enable_profiling+set}" = set; then
14111 enableval=$enable_profiling; PROFILING=$enableval
14116 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14117 $as_echo "$PROFILING" >&6; }
14119 if test "x$PROFILING" = xyes; then
14120 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14121 # Extract the first word of "lcov", so it can be a program name with args.
14122 set dummy lcov; ac_word=$2
14123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if test "${ac_cv_path_LCOV+set}" = set; then
14126 $as_echo_n "(cached) " >&6
14130 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
14141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 LCOV=$ac_cv_path_LCOV
14152 if test -n "$LCOV"; then
14153 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14154 $as_echo "$LCOV" >&6; }
14156 { $as_echo "$as_me:$LINENO: result: no" >&5
14157 $as_echo "no" >&6; }
14161 # Extract the first word of "genhtml", so it can be a program name with args.
14162 set dummy genhtml; ac_word=$2
14163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if test "${ac_cv_path_GENHTML+set}" = set; then
14166 $as_echo_n "(cached) " >&6
14170 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14180 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
14181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 GENHTML=$ac_cv_path_GENHTML
14192 if test -n "$GENHTML"; then
14193 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14194 $as_echo "$GENHTML" >&6; }
14196 { $as_echo "$as_me:$LINENO: result: no" >&5
14197 $as_echo "no" >&6; }
14201 if test -z "$LCOV" -o -z "$GENHTML"; then
14202 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14203 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
14204 { (exit 1); exit 1; }; }
14206 # Extract the first word of "genpng", so it can be a program name with args.
14207 set dummy genpng; ac_word=$2
14208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if test "${ac_cv_path_GENPNG+set}" = set; then
14211 $as_echo_n "(cached) " >&6
14215 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 GENPNG=$ac_cv_path_GENPNG
14237 if test -n "$GENPNG"; then
14238 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14239 $as_echo "$GENPNG" >&6; }
14241 { $as_echo "$as_me:$LINENO: result: no" >&5
14242 $as_echo "no" >&6; }
14246 if test -n "$GENPNG"; then
14247 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14248 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14249 if $GENPNG --help > /dev/null 2>&1 ; then
14250 { $as_echo "$as_me:$LINENO: result: ok" >&5
14251 $as_echo "ok" >&6; }
14252 GENHTML="$GENHTML --frames"
14254 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14255 $as_echo "not supported" >&6; }
14256 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14257 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14263 ################################################################################
14264 { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14265 $as_echo_n "checking whether to enable unit testing... " >&6; }
14266 # Check whether --enable-testing was given.
14267 if test "${enable_testing+set}" = set; then
14268 enableval=$enable_testing; TESTING=$enableval
14273 { $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14274 $as_echo "$TESTING" >&6; }
14276 if test "$TESTING" = yes; then
14277 # Extract the first word of "ruby1.9", so it can be a program name with args.
14278 set dummy ruby1.9; ac_word=$2
14279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if test "${ac_cv_path_RUBY19+set}" = set; then
14282 $as_echo_n "(cached) " >&6
14286 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 RUBY19=$ac_cv_path_RUBY19
14308 if test -n "$RUBY19"; then
14309 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14310 $as_echo "$RUBY19" >&6; }
14312 { $as_echo "$as_me:$LINENO: result: no" >&5
14313 $as_echo "no" >&6; }
14317 # Extract the first word of "valgrind", so it can be a program name with args.
14318 set dummy valgrind; ac_word=$2
14319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if test "${ac_cv_path_VALGRIND+set}" = set; then
14322 $as_echo_n "(cached) " >&6
14326 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14336 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14347 VALGRIND=$ac_cv_path_VALGRIND
14348 if test -n "$VALGRIND"; then
14349 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14350 $as_echo "$VALGRIND" >&6; }
14352 { $as_echo "$as_me:$LINENO: result: no" >&5
14353 $as_echo "no" >&6; }
14357 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14358 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14359 $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14360 { (exit 1); exit 1; }; }
14364 ################################################################################
14365 { $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14366 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14367 # Check whether --enable-valgrind_pool was given.
14368 if test "${enable_valgrind_pool+set}" = set; then
14369 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14374 { $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14375 $as_echo "$VALGRIND_POOL" >&6; }
14377 if test "$VALGRIND_POOL" = yes; then
14379 for ac_header in valgrind/memcheck.h
14381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14384 $as_echo_n "checking for $ac_header... " >&6; }
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386 $as_echo_n "(cached) " >&6
14388 ac_res=`eval 'as_val=${'$as_ac_Header'}
14389 $as_echo "$as_val"'`
14390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14391 $as_echo "$ac_res" >&6; }
14393 # Is the header compilable?
14394 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14395 $as_echo_n "checking $ac_header usability... " >&6; }
14396 cat >conftest.$ac_ext <<_ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 $ac_includes_default
14403 #include <$ac_header>
14405 rm -f conftest.$ac_objext
14406 if { (ac_try="$ac_compile"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14412 $as_echo "$ac_try_echo") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.$ac_objext; then
14423 ac_header_compiler=yes
14425 $as_echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_header_compiler=no
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433 $as_echo "$ac_header_compiler" >&6; }
14435 # Is the header present?
14436 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437 $as_echo_n "checking $ac_header presence... " >&6; }
14438 cat >conftest.$ac_ext <<_ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 #include <$ac_header>
14446 if { (ac_try="$ac_cpp conftest.$ac_ext"
14447 case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14452 $as_echo "$ac_try_echo") >&5
14453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } >/dev/null && {
14460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14463 ac_header_preproc=yes
14465 $as_echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_header_preproc=no
14471 rm -f conftest.err conftest.$ac_ext
14472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 $as_echo "$ac_header_preproc" >&6; }
14475 # So? What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14488 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14492 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14501 $as_echo_n "checking for $ac_header... " >&6; }
14502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14503 $as_echo_n "(cached) " >&6
14505 eval "$as_ac_Header=\$ac_header_preproc"
14507 ac_res=`eval 'as_val=${'$as_ac_Header'}
14508 $as_echo "$as_val"'`
14509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14510 $as_echo "$ac_res" >&6; }
14513 as_val=`eval 'as_val=${'$as_ac_Header'}
14514 $as_echo "$as_val"'`
14515 if test "x$as_val" = x""yes; then
14516 cat >>confdefs.h <<_ACEOF
14517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14521 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14522 $as_echo "$as_me: error: bailing out" >&2;}
14523 { (exit 1); exit 1; }; }
14529 cat >>confdefs.h <<\_ACEOF
14530 #define VALGRIND_POOL 1
14535 ################################################################################
14536 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14537 $as_echo_n "checking whether to use device-mapper... " >&6; }
14538 # Check whether --enable-devmapper was given.
14539 if test "${enable_devmapper+set}" = set; then
14540 enableval=$enable_devmapper; DEVMAPPER=$enableval
14543 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14544 $as_echo "$DEVMAPPER" >&6; }
14546 if test x$DEVMAPPER = xyes; then
14548 cat >>confdefs.h <<\_ACEOF
14549 #define DEVMAPPER_SUPPORT 1
14554 ################################################################################
14555 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14556 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14557 # Check whether --enable-udev_sync was given.
14558 if test "${enable_udev_sync+set}" = set; then
14559 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14564 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14565 $as_echo "$UDEV_SYNC" >&6; }
14567 if test x$UDEV_SYNC = xyes; then
14568 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14569 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14570 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14571 $as_echo_n "(cached) " >&6
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-ludev $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14588 char udev_queue_get_udev_is_active ();
14592 return udev_queue_get_udev_is_active ();
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14604 $as_echo "$ac_try_echo") >&5
14605 (eval "$ac_link") 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest$ac_exeext && {
14615 test "$cross_compiling" = yes ||
14616 $as_test_x conftest$ac_exeext
14618 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14620 $as_echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14626 rm -rf conftest.dSYM
14627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628 conftest$ac_exeext conftest.$ac_ext
14629 LIBS=$ac_check_lib_save_LIBS
14631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14632 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14633 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
14634 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
14636 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14637 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14638 { (exit 1); exit 1; }; }
14642 cat >>confdefs.h <<\_ACEOF
14643 #define UDEV_SYNC_SUPPORT 1
14648 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14649 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14650 # Check whether --enable-udev_rules was given.
14651 if test "${enable_udev_rules+set}" = set; then
14652 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14654 UDEV_RULES=$UDEV_SYNC
14657 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14658 $as_echo "$UDEV_RULES" >&6; }
14660 ################################################################################
14661 # Check whether --enable-compat was given.
14662 if test "${enable_compat+set}" = set; then
14663 enableval=$enable_compat; DM_COMPAT=$enableval
14669 ################################################################################
14670 # Check whether --enable-units-compat was given.
14671 if test "${enable_units_compat+set}" = set; then
14672 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14678 if test x$UNITS_COMPAT = xyes; then
14680 cat >>confdefs.h <<\_ACEOF
14681 #define DEFAULT_SI_UNIT_CONSISTENCY 0
14686 ################################################################################
14687 # Check whether --enable-ioctl was given.
14688 if test "${enable_ioctl+set}" = set; then
14689 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14693 ################################################################################
14694 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14695 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
14696 # Check whether --enable-o_direct was given.
14697 if test "${enable_o_direct+set}" = set; then
14698 enableval=$enable_o_direct; ODIRECT=$enableval
14701 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14702 $as_echo "$ODIRECT" >&6; }
14704 if test x$ODIRECT = xyes; then
14706 cat >>confdefs.h <<\_ACEOF
14707 #define O_DIRECT_SUPPORT 1
14712 ################################################################################
14713 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14714 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14715 # Check whether --enable-applib was given.
14716 if test "${enable_applib+set}" = set; then
14717 enableval=$enable_applib; APPLIB=$enableval
14722 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14723 $as_echo "$APPLIB" >&6; }
14725 test x$APPLIB = xyes \
14726 && LVM2APP_LIB=-llvm2app \
14729 ################################################################################
14730 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14731 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
14732 # Check whether --enable-cmdlib was given.
14733 if test "${enable_cmdlib+set}" = set; then
14734 enableval=$enable_cmdlib; CMDLIB=$enableval
14739 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14740 $as_echo "$CMDLIB" >&6; }
14742 test x$CMDLIB = xyes \
14743 && LVM2CMD_LIB=-llvm2cmd \
14746 ################################################################################
14747 # Check whether --enable-pkgconfig was given.
14748 if test "${enable_pkgconfig+set}" = set; then
14749 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14755 ################################################################################
14756 # Check whether --enable-write_install was given.
14757 if test "${enable_write_install+set}" = set; then
14758 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14764 ################################################################################
14765 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14766 $as_echo_n "checking whether to install fsadm... " >&6; }
14767 # Check whether --enable-fsadm was given.
14768 if test "${enable_fsadm+set}" = set; then
14769 enableval=$enable_fsadm; FSADM=$enableval
14772 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14773 $as_echo "$FSADM" >&6; }
14775 ################################################################################
14776 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14777 $as_echo_n "checking whether to use dmeventd... " >&6; }
14778 # Check whether --enable-dmeventd was given.
14779 if test "${enable_dmeventd+set}" = set; then
14780 enableval=$enable_dmeventd; DMEVENTD=$enableval
14783 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14784 $as_echo "$DMEVENTD" >&6; }
14786 BUILD_DMEVENTD=$DMEVENTD
14788 if test x$DMEVENTD = xyes; then
14789 if test x$MIRRORS != xinternal; then
14790 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
14792 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
14794 { (exit 1); exit 1; }; }
14796 if test x$CMDLIB = xno; then
14797 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14799 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14801 { (exit 1); exit 1; }; }
14805 if test x$DMEVENTD = xyes; then
14807 cat >>confdefs.h <<\_ACEOF
14813 ################################################################################
14815 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14816 $as_echo_n "checking for getline in -lc... " >&6; }
14817 if test "${ac_cv_lib_c_getline+set}" = set; then
14818 $as_echo_n "(cached) " >&6
14820 ac_check_lib_save_LIBS=$LIBS
14822 cat >conftest.$ac_ext <<_ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14829 /* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14851 $as_echo "$ac_try_echo") >&5
14852 (eval "$ac_link") 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } && {
14859 test -z "$ac_c_werror_flag" ||
14860 test ! -s conftest.err
14861 } && test -s conftest$ac_exeext && {
14862 test "$cross_compiling" = yes ||
14863 $as_test_x conftest$ac_exeext
14865 ac_cv_lib_c_getline=yes
14867 $as_echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ac_cv_lib_c_getline=no
14873 rm -rf conftest.dSYM
14874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14879 $as_echo "$ac_cv_lib_c_getline" >&6; }
14880 if test "x$ac_cv_lib_c_getline" = x""yes; then
14882 cat >>confdefs.h <<\_ACEOF
14883 #define HAVE_GETLINE 1
14889 ################################################################################
14891 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14892 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
14893 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
14894 $as_echo_n "(cached) " >&6
14896 ac_check_lib_save_LIBS=$LIBS
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14911 char canonicalize_file_name ();
14915 return canonicalize_file_name ();
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (ac_try="$ac_link"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14927 $as_echo "$ac_try_echo") >&5
14928 (eval "$ac_link") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1 >conftest.err
14932 cat conftest.err >&5
14933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest$ac_exeext && {
14938 test "$cross_compiling" = yes ||
14939 $as_test_x conftest$ac_exeext
14941 ac_cv_lib_c_canonicalize_file_name=yes
14943 $as_echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_c_canonicalize_file_name=no
14949 rm -rf conftest.dSYM
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LIBS=$ac_check_lib_save_LIBS
14954 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14955 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14956 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
14958 cat >>confdefs.h <<\_ACEOF
14959 #define HAVE_CANONICALIZE_FILE_NAME 1
14965 ################################################################################
14966 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14967 then exec_prefix="";
14970 ################################################################################
14971 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14972 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14973 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14974 $as_echo_n "(cached) " >&6
14976 ac_check_lib_save_LIBS=$LIBS
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007 $as_echo "$ac_try_echo") >&5
15008 (eval "$ac_link") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext && {
15018 test "$cross_compiling" = yes ||
15019 $as_test_x conftest$ac_exeext
15021 ac_cv_lib_dl_dlopen=yes
15023 $as_echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 ac_cv_lib_dl_dlopen=no
15029 rm -rf conftest.dSYM
15030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15031 conftest$ac_exeext conftest.$ac_ext
15032 LIBS=$ac_check_lib_save_LIBS
15034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15035 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15036 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_LIBDL 1
15052 ################################################################################
15053 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15054 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15055 \) -a "x$STATIC_LINK" = xyes ];
15056 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
15058 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
15060 { (exit 1); exit 1; }; }
15063 ################################################################################
15064 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15065 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15066 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15067 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15068 $as_echo_n "(cached) " >&6
15070 ac_check_lib_save_LIBS=$LIBS
15071 LIBS="-lpthread $LIBS"
15072 cat >conftest.$ac_ext <<_ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15079 /* Override any GCC internal prototype to avoid an error.
15080 Use char because int might match the return type of a GCC
15081 builtin and then its argument prototype would still apply. */
15085 char pthread_mutex_lock ();
15089 return pthread_mutex_lock ();
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (ac_try="$ac_link"
15096 case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15101 $as_echo "$ac_try_echo") >&5
15102 (eval "$ac_link") 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && {
15109 test -z "$ac_c_werror_flag" ||
15110 test ! -s conftest.err
15111 } && test -s conftest$ac_exeext && {
15112 test "$cross_compiling" = yes ||
15113 $as_test_x conftest$ac_exeext
15115 ac_cv_lib_pthread_pthread_mutex_lock=yes
15117 $as_echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 ac_cv_lib_pthread_pthread_mutex_lock=no
15123 rm -rf conftest.dSYM
15124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15125 conftest$ac_exeext conftest.$ac_ext
15126 LIBS=$ac_check_lib_save_LIBS
15128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15129 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15130 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15131 PTHREAD_LIBS="-lpthread"
15138 ################################################################################
15139 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15140 $as_echo_n "checking whether to enable selinux support... " >&6; }
15141 # Check whether --enable-selinux was given.
15142 if test "${enable_selinux+set}" = set; then
15143 enableval=$enable_selinux; SELINUX=$enableval
15146 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15147 $as_echo "$SELINUX" >&6; }
15149 ################################################################################
15150 if test x$SELINUX = xyes; then
15151 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15152 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
15153 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
15154 $as_echo_n "(cached) " >&6
15156 ac_check_lib_save_LIBS=$LIBS
15157 LIBS="-lsepol $LIBS"
15158 cat >conftest.$ac_ext <<_ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15165 /* Override any GCC internal prototype to avoid an error.
15166 Use char because int might match the return type of a GCC
15167 builtin and then its argument prototype would still apply. */
15171 char sepol_check_context ();
15175 return sepol_check_context ();
15180 rm -f conftest.$ac_objext conftest$ac_exeext
15181 if { (ac_try="$ac_link"
15182 case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187 $as_echo "$ac_try_echo") >&5
15188 (eval "$ac_link") 2>conftest.er1
15190 grep -v '^ *+' conftest.er1 >conftest.err
15192 cat conftest.err >&5
15193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
15197 } && test -s conftest$ac_exeext && {
15198 test "$cross_compiling" = yes ||
15199 $as_test_x conftest$ac_exeext
15201 ac_cv_lib_sepol_sepol_check_context=yes
15203 $as_echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_cv_lib_sepol_sepol_check_context=no
15209 rm -rf conftest.dSYM
15210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211 conftest$ac_exeext conftest.$ac_ext
15212 LIBS=$ac_check_lib_save_LIBS
15214 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15215 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15216 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
15219 cat >>confdefs.h <<\_ACEOF
15220 #define HAVE_SEPOL 1
15223 SELINUX_LIBS="-lsepol"
15227 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15228 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15229 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15230 $as_echo_n "(cached) " >&6
15232 ac_check_lib_save_LIBS=$LIBS
15233 LIBS="-lselinux $LIBS"
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15241 /* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
15247 char is_selinux_enabled ();
15251 return is_selinux_enabled ();
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (ac_try="$ac_link"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_link") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest$ac_exeext && {
15274 test "$cross_compiling" = yes ||
15275 $as_test_x conftest$ac_exeext
15277 ac_cv_lib_selinux_is_selinux_enabled=yes
15279 $as_echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_cv_lib_selinux_is_selinux_enabled=no
15285 rm -rf conftest.dSYM
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15288 LIBS=$ac_check_lib_save_LIBS
15290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15291 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15292 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15295 for ac_header in selinux/selinux.h
15297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15300 $as_echo_n "checking for $ac_header... " >&6; }
15301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302 $as_echo_n "(cached) " >&6
15304 ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307 $as_echo "$ac_res" >&6; }
15309 # Is the header compilable?
15310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15311 $as_echo_n "checking $ac_header usability... " >&6; }
15312 cat >conftest.$ac_ext <<_ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 $ac_includes_default
15319 #include <$ac_header>
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328 $as_echo "$ac_try_echo") >&5
15329 (eval "$ac_compile") 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest.$ac_objext; then
15339 ac_header_compiler=yes
15341 $as_echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_header_compiler=no
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 $as_echo "$ac_header_compiler" >&6; }
15351 # Is the header present?
15352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 $as_echo_n "checking $ac_header presence... " >&6; }
15354 cat >conftest.$ac_ext <<_ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <$ac_header>
15362 if { (ac_try="$ac_cpp conftest.$ac_ext"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368 $as_echo "$ac_try_echo") >&5
15369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } >/dev/null && {
15376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15379 ac_header_preproc=yes
15381 $as_echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_header_preproc=no
15387 rm -f conftest.err conftest.$ac_ext
15388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 $as_echo "$ac_header_preproc" >&6; }
15391 # So? What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15416 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 $as_echo_n "checking for $ac_header... " >&6; }
15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 $as_echo_n "(cached) " >&6
15421 eval "$as_ac_Header=\$ac_header_preproc"
15423 ac_res=`eval 'as_val=${'$as_ac_Header'}
15424 $as_echo "$as_val"'`
15425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15426 $as_echo "$ac_res" >&6; }
15429 as_val=`eval 'as_val=${'$as_ac_Header'}
15430 $as_echo "$as_val"'`
15431 if test "x$as_val" = x""yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443 for ac_header in selinux/label.h
15445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 $as_echo_n "checking for $ac_header... " >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 $as_echo_n "(cached) " >&6
15452 ac_res=`eval 'as_val=${'$as_ac_Header'}
15453 $as_echo "$as_val"'`
15454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15455 $as_echo "$ac_res" >&6; }
15457 # Is the header compilable?
15458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15459 $as_echo_n "checking $ac_header usability... " >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 $ac_includes_default
15467 #include <$ac_header>
15469 rm -f conftest.$ac_objext
15470 if { (ac_try="$ac_compile"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15476 $as_echo "$ac_try_echo") >&5
15477 (eval "$ac_compile") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest.$ac_objext; then
15487 ac_header_compiler=yes
15489 $as_echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15492 ac_header_compiler=no
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15497 $as_echo "$ac_header_compiler" >&6; }
15499 # Is the header present?
15500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15501 $as_echo_n "checking $ac_header presence... " >&6; }
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <$ac_header>
15510 if { (ac_try="$ac_cpp conftest.$ac_ext"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15516 $as_echo "$ac_try_echo") >&5
15517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev/null && {
15524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15527 ac_header_preproc=yes
15529 $as_echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_preproc=no
15535 rm -f conftest.err conftest.$ac_ext
15536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537 $as_echo "$ac_header_preproc" >&6; }
15539 # So? What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546 ac_header_preproc=yes
15549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15552 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15556 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 $as_echo_n "checking for $ac_header... " >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 $as_echo_n "(cached) " >&6
15569 eval "$as_ac_Header=\$ac_header_preproc"
15571 ac_res=`eval 'as_val=${'$as_ac_Header'}
15572 $as_echo "$as_val"'`
15573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15574 $as_echo "$ac_res" >&6; }
15577 as_val=`eval 'as_val=${'$as_ac_Header'}
15578 $as_echo "$as_val"'`
15579 if test "x$as_val" = x""yes; then
15580 cat >>confdefs.h <<_ACEOF
15581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_SELINUX 1
15593 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
15594 SELINUX_PC="libselinux"
15598 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15599 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15607 ################################################################################
15608 if test x$REALTIME = xyes; then
15609 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15610 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15611 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
15612 $as_echo_n "(cached) " >&6
15614 ac_check_lib_save_LIBS=$LIBS
15616 cat >conftest.$ac_ext <<_ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15623 /* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply. */
15629 char clock_gettime ();
15633 return clock_gettime ();
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (ac_try="$ac_link"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15645 $as_echo "$ac_try_echo") >&5
15646 (eval "$ac_link") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_c_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest$ac_exeext && {
15656 test "$cross_compiling" = yes ||
15657 $as_test_x conftest$ac_exeext
15659 ac_cv_lib_rt_clock_gettime=yes
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_cv_lib_rt_clock_gettime=no
15667 rm -rf conftest.dSYM
15668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15672 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15673 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15674 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
15681 if test x$HAVE_REALTIME = xyes; then
15683 cat >>confdefs.h <<\_ACEOF
15684 #define HAVE_REALTIME 1
15689 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15690 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
15694 ################################################################################
15696 for ac_header in getopt.h
15698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15700 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15701 $as_echo_n "checking for $ac_header... " >&6; }
15702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15703 $as_echo_n "(cached) " >&6
15705 ac_res=`eval 'as_val=${'$as_ac_Header'}
15706 $as_echo "$as_val"'`
15707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15708 $as_echo "$ac_res" >&6; }
15710 # Is the header compilable?
15711 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15712 $as_echo_n "checking $ac_header usability... " >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15720 #include <$ac_header>
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15729 $as_echo "$ac_try_echo") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest.$ac_objext; then
15740 ac_header_compiler=yes
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_header_compiler=no
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 $as_echo "$ac_header_compiler" >&6; }
15752 # Is the header present?
15753 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15754 $as_echo_n "checking $ac_header presence... " >&6; }
15755 cat >conftest.$ac_ext <<_ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <$ac_header>
15763 if { (ac_try="$ac_cpp conftest.$ac_ext"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15780 ac_header_preproc=yes
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 $as_echo "$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15798 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15803 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15805 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15807 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15809 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15813 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 $as_echo_n "checking for $ac_header... " >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 $as_echo_n "(cached) " >&6
15822 eval "$as_ac_Header=\$ac_header_preproc"
15824 ac_res=`eval 'as_val=${'$as_ac_Header'}
15825 $as_echo "$as_val"'`
15826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15827 $as_echo "$ac_res" >&6; }
15830 as_val=`eval 'as_val=${'$as_ac_Header'}
15831 $as_echo "$as_val"'`
15832 if test "x$as_val" = x""yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_GETOPTLONG 1
15846 ################################################################################
15847 if test x$READLINE != xno; then
15848 lvm_saved_libs=$LIBS
15849 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15850 $as_echo_n "checking for library containing tgetent... " >&6; }
15851 if test "${ac_cv_search_tgetent+set}" = set; then
15852 $as_echo_n "(cached) " >&6
15854 ac_func_search_save_LIBS=$LIBS
15855 cat >conftest.$ac_ext <<_ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15862 /* Override any GCC internal prototype to avoid an error.
15863 Use char because int might match the return type of a GCC
15864 builtin and then its argument prototype would still apply. */
15877 for ac_lib in '' tinfo ncurses curses termcap termlib; do
15878 if test -z "$ac_lib"; then
15879 ac_res="none required"
15882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15891 $as_echo "$ac_try_echo") >&5
15892 (eval "$ac_link") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest$ac_exeext && {
15902 test "$cross_compiling" = yes ||
15903 $as_test_x conftest$ac_exeext
15905 ac_cv_search_tgetent=$ac_res
15907 $as_echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15913 rm -rf conftest.dSYM
15914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15916 if test "${ac_cv_search_tgetent+set}" = set; then
15920 if test "${ac_cv_search_tgetent+set}" = set; then
15923 ac_cv_search_tgetent=no
15925 rm conftest.$ac_ext
15926 LIBS=$ac_func_search_save_LIBS
15928 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15929 $as_echo "$ac_cv_search_tgetent" >&6; }
15930 ac_res=$ac_cv_search_tgetent
15931 if test "$ac_res" != no; then
15932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15933 READLINE_LIBS=$ac_cv_search_tgetent
15936 if test "$READLINE" = yes; then
15937 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15938 --enable-readline option (which is enabled by default). Either disable readline
15939 support with --disable-readline or download and install termcap from:
15940 ftp.gnu.org/gnu/termcap
15941 Note: if you are using precompiled packages you will also need the development
15942 package as well (which may be called termcap-devel or something similar).
15943 Note: (n)curses also seems to work as a substitute for termcap. This was
15944 not found either - but you could try installing that as well." >&5
15945 $as_echo "$as_me: error: termcap could not be found which is required for the
15946 --enable-readline option (which is enabled by default). Either disable readline
15947 support with --disable-readline or download and install termcap from:
15948 ftp.gnu.org/gnu/termcap
15949 Note: if you are using precompiled packages you will also need the development
15950 package as well (which may be called termcap-devel or something similar).
15951 Note: (n)curses also seems to work as a substitute for termcap. This was
15952 not found either - but you could try installing that as well." >&2;}
15953 { (exit 1); exit 1; }; }
15957 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
15958 $as_echo_n "checking for readline in -lreadline... " >&6; }
15959 if test "${ac_cv_lib_readline_readline+set}" = set; then
15960 $as_echo_n "(cached) " >&6
15962 ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lreadline $LIBS"
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15971 /* Override any GCC internal prototype to avoid an error.
15972 Use char because int might match the return type of a GCC
15973 builtin and then its argument prototype would still apply. */
15981 return readline ();
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (ac_try="$ac_link"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15993 $as_echo "$ac_try_echo") >&5
15994 (eval "$ac_link") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && {
16001 test -z "$ac_c_werror_flag" ||
16002 test ! -s conftest.err
16003 } && test -s conftest$ac_exeext && {
16004 test "$cross_compiling" = yes ||
16005 $as_test_x conftest$ac_exeext
16007 ac_cv_lib_readline_readline=yes
16009 $as_echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_cv_lib_readline_readline=no
16015 rm -rf conftest.dSYM
16016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
16021 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16022 if test "x$ac_cv_lib_readline_readline" = x""yes; then
16025 cat >>confdefs.h <<\_ACEOF
16026 #define READLINE_SUPPORT 1
16029 LIBS=$lvm_saved_libs
16030 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
16031 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
16032 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
16033 $as_echo_n "(cached) " >&6
16035 ac_check_lib_save_LIBS=$LIBS
16036 LIBS="-lreadline $LIBS"
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16050 char rl_line_buffer ();
16054 return rl_line_buffer ();
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (ac_try="$ac_link"
16061 case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16066 $as_echo "$ac_try_echo") >&5
16067 (eval "$ac_link") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext && {
16077 test "$cross_compiling" = yes ||
16078 $as_test_x conftest$ac_exeext
16080 ac_cv_lib_readline_rl_line_buffer=yes
16082 $as_echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_cv_lib_readline_rl_line_buffer=no
16088 rm -rf conftest.dSYM
16089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16090 conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
16094 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
16095 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
16096 READLINE_LIBS="-lreadline"
16099 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
16100 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
16101 READLINE_LIBS="-lreadline $READLINE_LIBS"
16108 if test "$READLINE" = yes; then
16109 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
16110 --enable-readline option (which is enabled by default). Either disable readline
16111 support with --disable-readline or download and install readline from:
16112 ftp.gnu.org/gnu/readline
16113 Note: if you are using precompiled packages you will also need the development
16114 package as well (which may be called readline-devel or something similar)." >&5
16115 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
16116 --enable-readline option (which is enabled by default). Either disable readline
16117 support with --disable-readline or download and install readline from:
16118 ftp.gnu.org/gnu/readline
16119 Note: if you are using precompiled packages you will also need the development
16120 package as well (which may be called readline-devel or something similar)." >&2;}
16121 { (exit 1); exit 1; }; }
16125 LIBS="$READLINE_LIBS $lvm_saved_libs"
16127 for ac_func in rl_completion_matches
16129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 $as_echo_n "checking for $ac_func... " >&6; }
16132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16133 $as_echo_n "(cached) " >&6
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16143 #define $ac_func innocuous_$ac_func
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char $ac_func (); below.
16147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16148 <limits.h> exists even on freestanding compilers. */
16151 # include <limits.h>
16153 # include <assert.h>
16158 /* Override any GCC internal prototype to avoid an error.
16159 Use char because int might match the return type of a GCC
16160 builtin and then its argument prototype would still apply. */
16165 /* The GNU C library defines this for functions which it implements
16166 to always fail with ENOSYS. Some functions are actually named
16167 something starting with __ and the normal name is an alias. */
16168 #if defined __stub_$ac_func || defined __stub___$ac_func
16175 return $ac_func ();
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16187 $as_echo "$ac_try_echo") >&5
16188 (eval "$ac_link") 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && {
16195 test -z "$ac_c_werror_flag" ||
16196 test ! -s conftest.err
16197 } && test -s conftest$ac_exeext && {
16198 test "$cross_compiling" = yes ||
16199 $as_test_x conftest$ac_exeext
16201 eval "$as_ac_var=yes"
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 eval "$as_ac_var=no"
16209 rm -rf conftest.dSYM
16210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16211 conftest$ac_exeext conftest.$ac_ext
16213 ac_res=`eval 'as_val=${'$as_ac_var'}
16214 $as_echo "$as_val"'`
16215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16216 $as_echo "$ac_res" >&6; }
16217 as_val=`eval 'as_val=${'$as_ac_var'}
16218 $as_echo "$as_val"'`
16219 if test "x$as_val" = x""yes; then
16220 cat >>confdefs.h <<_ACEOF
16221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16227 LIBS=$lvm_saved_libs
16230 ################################################################################
16231 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16232 $as_echo_n "checking whether to enable internationalisation... " >&6; }
16233 # Check whether --enable-nls was given.
16234 if test "${enable_nls+set}" = set; then
16235 enableval=$enable_nls; INTL=$enableval
16240 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
16241 $as_echo "$INTL" >&6; }
16243 if test x$INTL = xyes; then
16244 # FIXME - Move this - can be device-mapper too
16245 INTL_PACKAGE="lvm2"
16246 # Extract the first word of "msgfmt", so it can be a program name with args.
16247 set dummy msgfmt; ac_word=$2
16248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16249 $as_echo_n "checking for $ac_word... " >&6; }
16250 if test "${ac_cv_path_MSGFMT+set}" = set; then
16251 $as_echo_n "(cached) " >&6
16255 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH
16262 test -z "$as_dir" && as_dir=.
16263 for ac_exec_ext in '' $ac_executable_extensions; do
16264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16265 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16276 MSGFMT=$ac_cv_path_MSGFMT
16277 if test -n "$MSGFMT"; then
16278 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16279 $as_echo "$MSGFMT" >&6; }
16281 { $as_echo "$as_me:$LINENO: result: no" >&5
16282 $as_echo "no" >&6; }
16286 if [ "x$MSGFMT" == x ];
16287 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
16289 $as_echo "$as_me: error: msgfmt not found in path $PATH
16291 { (exit 1); exit 1; }; }
16295 # Check whether --with-localedir was given.
16296 if test "${with_localedir+set}" = set; then
16297 withval=$with_localedir; LOCALEDIR=$withval
16299 LOCALEDIR='${prefix}/share/locale'
16304 ################################################################################
16306 # Check whether --with-confdir was given.
16307 if test "${with_confdir+set}" = set; then
16308 withval=$with_confdir; CONFDIR=$withval
16315 # Check whether --with-staticdir was given.
16316 if test "${with_staticdir+set}" = set; then
16317 withval=$with_staticdir; STATICDIR=$withval
16319 STATICDIR='${exec_prefix}/sbin'
16324 # Check whether --with-usrlibdir was given.
16325 if test "${with_usrlibdir+set}" = set; then
16326 withval=$with_usrlibdir; usrlibdir=$withval
16328 usrlibdir='${prefix}/lib'
16333 # Check whether --with-usrsbindir was given.
16334 if test "${with_usrsbindir+set}" = set; then
16335 withval=$with_usrsbindir; usrsbindir=$withval
16337 usrsbindir='${prefix}/sbin'
16341 ################################################################################
16343 # Check whether --with-udev_prefix was given.
16344 if test "${with_udev_prefix+set}" = set; then
16345 withval=$with_udev_prefix; udev_prefix=$withval
16347 udev_prefix='${exec_prefix}'
16352 # Check whether --with-udevdir was given.
16353 if test "${with_udevdir+set}" = set; then
16354 withval=$with_udevdir; udevdir=$withval
16356 udevdir='${udev_prefix}/lib/udev/rules.d'
16360 ################################################################################
16361 if test x$READLINE = xyes; then
16364 for ac_header in readline/readline.h readline/history.h
16366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16369 $as_echo_n "checking for $ac_header... " >&6; }
16370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16371 $as_echo_n "(cached) " >&6
16373 ac_res=`eval 'as_val=${'$as_ac_Header'}
16374 $as_echo "$as_val"'`
16375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16376 $as_echo "$ac_res" >&6; }
16378 # Is the header compilable?
16379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380 $as_echo_n "checking $ac_header usability... " >&6; }
16381 cat >conftest.$ac_ext <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $ac_includes_default
16388 #include <$ac_header>
16390 rm -f conftest.$ac_objext
16391 if { (ac_try="$ac_compile"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16397 $as_echo "$ac_try_echo") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest.$ac_objext; then
16408 ac_header_compiler=yes
16410 $as_echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 ac_header_compiler=no
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16418 $as_echo "$ac_header_compiler" >&6; }
16420 # Is the header present?
16421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16422 $as_echo_n "checking $ac_header presence... " >&6; }
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 #include <$ac_header>
16431 if { (ac_try="$ac_cpp conftest.$ac_ext"
16432 case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16437 $as_echo "$ac_try_echo") >&5
16438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16440 grep -v '^ *+' conftest.er1 >conftest.err
16442 cat conftest.err >&5
16443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } >/dev/null && {
16445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16446 test ! -s conftest.err
16448 ac_header_preproc=yes
16450 $as_echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ac_header_preproc=no
16456 rm -f conftest.err conftest.$ac_ext
16457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 $as_echo "$ac_header_preproc" >&6; }
16460 # So? What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467 ac_header_preproc=yes
16470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16473 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16477 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16486 $as_echo_n "checking for $ac_header... " >&6; }
16487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16488 $as_echo_n "(cached) " >&6
16490 eval "$as_ac_Header=\$ac_header_preproc"
16492 ac_res=`eval 'as_val=${'$as_ac_Header'}
16493 $as_echo "$as_val"'`
16494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16495 $as_echo "$ac_res" >&6; }
16498 as_val=`eval 'as_val=${'$as_ac_Header'}
16499 $as_echo "$as_val"'`
16500 if test "x$as_val" = x""yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16506 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16507 $as_echo "$as_me: error: bailing out" >&2;}
16508 { (exit 1); exit 1; }; }
16515 if test x$CLVMD != xnone; then
16526 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
16528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16531 $as_echo_n "checking for $ac_header... " >&6; }
16532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16533 $as_echo_n "(cached) " >&6
16535 ac_res=`eval 'as_val=${'$as_ac_Header'}
16536 $as_echo "$as_val"'`
16537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16538 $as_echo "$ac_res" >&6; }
16540 # Is the header compilable?
16541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16542 $as_echo_n "checking $ac_header usability... " >&6; }
16543 cat >conftest.$ac_ext <<_ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 $ac_includes_default
16550 #include <$ac_header>
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16559 $as_echo "$ac_try_echo") >&5
16560 (eval "$ac_compile") 2>conftest.er1
16562 grep -v '^ *+' conftest.er1 >conftest.err
16564 cat conftest.err >&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest.$ac_objext; then
16570 ac_header_compiler=yes
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_header_compiler=no
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16580 $as_echo "$ac_header_compiler" >&6; }
16582 # Is the header present?
16583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16584 $as_echo_n "checking $ac_header presence... " >&6; }
16585 cat >conftest.$ac_ext <<_ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #include <$ac_header>
16593 if { (ac_try="$ac_cpp conftest.$ac_ext"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } >/dev/null && {
16607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16610 ac_header_preproc=yes
16612 $as_echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_header_preproc=no
16618 rm -f conftest.err conftest.$ac_ext
16619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16620 $as_echo "$ac_header_preproc" >&6; }
16622 # So? What about this header?
16623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16629 ac_header_preproc=yes
16632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16648 $as_echo_n "checking for $ac_header... " >&6; }
16649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16650 $as_echo_n "(cached) " >&6
16652 eval "$as_ac_Header=\$ac_header_preproc"
16654 ac_res=`eval 'as_val=${'$as_ac_Header'}
16655 $as_echo "$as_val"'`
16656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16657 $as_echo "$ac_res" >&6; }
16660 as_val=`eval 'as_val=${'$as_ac_Header'}
16661 $as_echo "$as_val"'`
16662 if test "x$as_val" = x""yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16668 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16669 $as_echo "$as_me: error: bailing out" >&2;}
16670 { (exit 1); exit 1; }; }
16680 for ac_func in dup2 getmntent memmove select socket
16682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16683 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16684 $as_echo_n "checking for $ac_func... " >&6; }
16685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16686 $as_echo_n "(cached) " >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16696 #define $ac_func innocuous_$ac_func
16698 /* System header to define __stub macros and hopefully few prototypes,
16699 which can conflict with char $ac_func (); below.
16700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16701 <limits.h> exists even on freestanding compilers. */
16704 # include <limits.h>
16706 # include <assert.h>
16711 /* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16718 /* The GNU C library defines this for functions which it implements
16719 to always fail with ENOSYS. Some functions are actually named
16720 something starting with __ and the normal name is an alias. */
16721 #if defined __stub_$ac_func || defined __stub___$ac_func
16728 return $ac_func ();
16733 rm -f conftest.$ac_objext conftest$ac_exeext
16734 if { (ac_try="$ac_link"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16740 $as_echo "$ac_try_echo") >&5
16741 (eval "$ac_link") 2>conftest.er1
16743 grep -v '^ *+' conftest.er1 >conftest.err
16745 cat conftest.err >&5
16746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } && {
16748 test -z "$ac_c_werror_flag" ||
16749 test ! -s conftest.err
16750 } && test -s conftest$ac_exeext && {
16751 test "$cross_compiling" = yes ||
16752 $as_test_x conftest$ac_exeext
16754 eval "$as_ac_var=yes"
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 eval "$as_ac_var=no"
16762 rm -rf conftest.dSYM
16763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16764 conftest$ac_exeext conftest.$ac_ext
16766 ac_res=`eval 'as_val=${'$as_ac_var'}
16767 $as_echo "$as_val"'`
16768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16769 $as_echo "$ac_res" >&6; }
16770 as_val=`eval 'as_val=${'$as_ac_var'}
16771 $as_echo "$as_val"'`
16772 if test "x$as_val" = x""yes; then
16773 cat >>confdefs.h <<_ACEOF
16774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16778 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16779 $as_echo "$as_me: error: bailing out" >&2;}
16780 { (exit 1); exit 1; }; }
16784 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16785 # -lseq on Dynix/PTX, -lgen on Unixware.
16786 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16787 $as_echo_n "checking for library containing getmntent... " >&6; }
16788 if test "${ac_cv_search_getmntent+set}" = set; then
16789 $as_echo_n "(cached) " >&6
16791 ac_func_search_save_LIBS=$LIBS
16792 cat >conftest.$ac_ext <<_ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16809 return getmntent ();
16814 for ac_lib in '' sun seq gen; do
16815 if test -z "$ac_lib"; then
16816 ac_res="none required"
16819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16828 $as_echo "$ac_try_echo") >&5
16829 (eval "$ac_link") 2>conftest.er1
16831 grep -v '^ *+' conftest.er1 >conftest.err
16833 cat conftest.err >&5
16834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } && {
16836 test -z "$ac_c_werror_flag" ||
16837 test ! -s conftest.err
16838 } && test -s conftest$ac_exeext && {
16839 test "$cross_compiling" = yes ||
16840 $as_test_x conftest$ac_exeext
16842 ac_cv_search_getmntent=$ac_res
16844 $as_echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16850 rm -rf conftest.dSYM
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16853 if test "${ac_cv_search_getmntent+set}" = set; then
16857 if test "${ac_cv_search_getmntent+set}" = set; then
16860 ac_cv_search_getmntent=no
16862 rm conftest.$ac_ext
16863 LIBS=$ac_func_search_save_LIBS
16865 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16866 $as_echo "$ac_cv_search_getmntent" >&6; }
16867 ac_res=$ac_cv_search_getmntent
16868 if test "$ac_res" != no; then
16869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16870 ac_cv_func_getmntent=yes
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_GETMNTENT 1
16877 ac_cv_func_getmntent=no
16883 for ac_header in sys/select.h sys/socket.h
16885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16888 $as_echo_n "checking for $ac_header... " >&6; }
16889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16890 $as_echo_n "(cached) " >&6
16892 ac_res=`eval 'as_val=${'$as_ac_Header'}
16893 $as_echo "$as_val"'`
16894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16895 $as_echo "$ac_res" >&6; }
16897 # Is the header compilable?
16898 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 $as_echo_n "checking $ac_header usability... " >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16907 #include <$ac_header>
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16916 $as_echo "$ac_try_echo") >&5
16917 (eval "$ac_compile") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest.$ac_objext; then
16927 ac_header_compiler=yes
16929 $as_echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_header_compiler=no
16935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16937 $as_echo "$ac_header_compiler" >&6; }
16939 # Is the header present?
16940 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16941 $as_echo_n "checking $ac_header presence... " >&6; }
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <$ac_header>
16950 if { (ac_try="$ac_cpp conftest.$ac_ext"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } >/dev/null && {
16964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16967 ac_header_preproc=yes
16969 $as_echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_preproc=no
16975 rm -f conftest.err conftest.$ac_ext
16976 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16977 $as_echo "$ac_header_preproc" >&6; }
16979 # So? What about this header?
16980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16983 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16986 ac_header_preproc=yes
16989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16990 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16992 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16994 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16996 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17000 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17005 $as_echo_n "checking for $ac_header... " >&6; }
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 $as_echo_n "(cached) " >&6
17009 eval "$as_ac_Header=\$ac_header_preproc"
17011 ac_res=`eval 'as_val=${'$as_ac_Header'}
17012 $as_echo "$as_val"'`
17013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17014 $as_echo "$ac_res" >&6; }
17017 as_val=`eval 'as_val=${'$as_ac_Header'}
17018 $as_echo "$as_val"'`
17019 if test "x$as_val" = x""yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
17029 $as_echo_n "checking types of arguments for select... " >&6; }
17030 if test "${ac_cv_func_select_args+set}" = set; then
17031 $as_echo_n "(cached) " >&6
17033 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
17034 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
17035 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 $ac_includes_default
17043 #ifdef HAVE_SYS_SELECT_H
17044 # include <sys/select.h>
17046 #ifdef HAVE_SYS_SOCKET_H
17047 # include <sys/socket.h>
17053 extern int select ($ac_arg1,
17054 $ac_arg234, $ac_arg234, $ac_arg234,
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17067 $as_echo "$ac_try_echo") >&5
17068 (eval "$ac_compile") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest.$ac_objext; then
17078 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
17080 $as_echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090 # Provide a safe default value.
17091 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
17094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
17095 $as_echo "$ac_cv_func_select_args" >&6; }
17096 ac_save_IFS=$IFS; IFS=','
17097 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17101 cat >>confdefs.h <<_ACEOF
17102 #define SELECT_TYPE_ARG1 $1
17106 cat >>confdefs.h <<_ACEOF
17107 #define SELECT_TYPE_ARG234 ($2)
17111 cat >>confdefs.h <<_ACEOF
17112 #define SELECT_TYPE_ARG5 ($3)
17119 if test x$CLUSTER != xnone; then
17122 for ac_header in sys/socket.h sys/un.h
17124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17127 $as_echo_n "checking for $ac_header... " >&6; }
17128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 $as_echo_n "(cached) " >&6
17131 ac_res=`eval 'as_val=${'$as_ac_Header'}
17132 $as_echo "$as_val"'`
17133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17134 $as_echo "$ac_res" >&6; }
17136 # Is the header compilable?
17137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17138 $as_echo_n "checking $ac_header usability... " >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 $ac_includes_default
17146 #include <$ac_header>
17148 rm -f conftest.$ac_objext
17149 if { (ac_try="$ac_compile"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17155 $as_echo "$ac_try_echo") >&5
17156 (eval "$ac_compile") 2>conftest.er1
17158 grep -v '^ *+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest.$ac_objext; then
17166 ac_header_compiler=yes
17168 $as_echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 ac_header_compiler=no
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17176 $as_echo "$ac_header_compiler" >&6; }
17178 # Is the header present?
17179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17180 $as_echo_n "checking $ac_header presence... " >&6; }
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <$ac_header>
17189 if { (ac_try="$ac_cpp conftest.$ac_ext"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } >/dev/null && {
17203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17206 ac_header_preproc=yes
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ac_header_preproc=no
17214 rm -f conftest.err conftest.$ac_ext
17215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17216 $as_echo "$ac_header_preproc" >&6; }
17218 # So? What about this header?
17219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17225 ac_header_preproc=yes
17228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17244 $as_echo_n "checking for $ac_header... " >&6; }
17245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17246 $as_echo_n "(cached) " >&6
17248 eval "$as_ac_Header=\$ac_header_preproc"
17250 ac_res=`eval 'as_val=${'$as_ac_Header'}
17251 $as_echo "$as_val"'`
17252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17253 $as_echo "$ac_res" >&6; }
17256 as_val=`eval 'as_val=${'$as_ac_Header'}
17257 $as_echo "$as_val"'`
17258 if test "x$as_val" = x""yes; then
17259 cat >>confdefs.h <<_ACEOF
17260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17264 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17265 $as_echo "$as_me: error: bailing out" >&2;}
17266 { (exit 1); exit 1; }; }
17272 for ac_func in socket
17274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17276 $as_echo_n "checking for $ac_func... " >&6; }
17277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17278 $as_echo_n "(cached) " >&6
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17288 #define $ac_func innocuous_$ac_func
17290 /* System header to define __stub macros and hopefully few prototypes,
17291 which can conflict with char $ac_func (); below.
17292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293 <limits.h> exists even on freestanding compilers. */
17296 # include <limits.h>
17298 # include <assert.h>
17303 /* Override any GCC internal prototype to avoid an error.
17304 Use char because int might match the return type of a GCC
17305 builtin and then its argument prototype would still apply. */
17310 /* The GNU C library defines this for functions which it implements
17311 to always fail with ENOSYS. Some functions are actually named
17312 something starting with __ and the normal name is an alias. */
17313 #if defined __stub_$ac_func || defined __stub___$ac_func
17320 return $ac_func ();
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333 (eval "$ac_link") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext && {
17343 test "$cross_compiling" = yes ||
17344 $as_test_x conftest$ac_exeext
17346 eval "$as_ac_var=yes"
17348 $as_echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 eval "$as_ac_var=no"
17354 rm -rf conftest.dSYM
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17358 ac_res=`eval 'as_val=${'$as_ac_var'}
17359 $as_echo "$as_val"'`
17360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17361 $as_echo "$ac_res" >&6; }
17362 as_val=`eval 'as_val=${'$as_ac_var'}
17363 $as_echo "$as_val"'`
17364 if test "x$as_val" = x""yes; then
17365 cat >>confdefs.h <<_ACEOF
17366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17370 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17371 $as_echo "$as_me: error: bailing out" >&2;}
17372 { (exit 1); exit 1; }; }
17378 if test x$DMEVENTD = xyes; then
17380 for ac_header in arpa/inet.h
17382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17385 $as_echo_n "checking for $ac_header... " >&6; }
17386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17387 $as_echo_n "(cached) " >&6
17389 ac_res=`eval 'as_val=${'$as_ac_Header'}
17390 $as_echo "$as_val"'`
17391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17392 $as_echo "$ac_res" >&6; }
17394 # Is the header compilable?
17395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17396 $as_echo_n "checking $ac_header usability... " >&6; }
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 $ac_includes_default
17404 #include <$ac_header>
17406 rm -f conftest.$ac_objext
17407 if { (ac_try="$ac_compile"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17413 $as_echo "$ac_try_echo") >&5
17414 (eval "$ac_compile") 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest.$ac_objext; then
17424 ac_header_compiler=yes
17426 $as_echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 ac_header_compiler=no
17432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17434 $as_echo "$ac_header_compiler" >&6; }
17436 # Is the header present?
17437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17438 $as_echo_n "checking $ac_header presence... " >&6; }
17439 cat >conftest.$ac_ext <<_ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 #include <$ac_header>
17447 if { (ac_try="$ac_cpp conftest.$ac_ext"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } >/dev/null && {
17461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17464 ac_header_preproc=yes
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_header_preproc=no
17472 rm -f conftest.err conftest.$ac_ext
17473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17474 $as_echo "$ac_header_preproc" >&6; }
17476 # So? What about this header?
17477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17483 ac_header_preproc=yes
17486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17489 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17493 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17502 $as_echo_n "checking for $ac_header... " >&6; }
17503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17504 $as_echo_n "(cached) " >&6
17506 eval "$as_ac_Header=\$ac_header_preproc"
17508 ac_res=`eval 'as_val=${'$as_ac_Header'}
17509 $as_echo "$as_val"'`
17510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17511 $as_echo "$ac_res" >&6; }
17514 as_val=`eval 'as_val=${'$as_ac_Header'}
17515 $as_echo "$as_val"'`
17516 if test "x$as_val" = x""yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17522 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17523 $as_echo "$as_me: error: bailing out" >&2;}
17524 { (exit 1); exit 1; }; }
17531 if test x$HAVE_LIBDL = xyes; then
17533 for ac_header in dlfcn.h
17535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17538 $as_echo_n "checking for $ac_header... " >&6; }
17539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17540 $as_echo_n "(cached) " >&6
17542 ac_res=`eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'`
17544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17545 $as_echo "$ac_res" >&6; }
17547 # Is the header compilable?
17548 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17549 $as_echo_n "checking $ac_header usability... " >&6; }
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 $ac_includes_default
17557 #include <$ac_header>
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17566 $as_echo "$ac_try_echo") >&5
17567 (eval "$ac_compile") 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest.$ac_objext; then
17577 ac_header_compiler=yes
17579 $as_echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_header_compiler=no
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17587 $as_echo "$ac_header_compiler" >&6; }
17589 # Is the header present?
17590 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17591 $as_echo_n "checking $ac_header presence... " >&6; }
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <$ac_header>
17600 if { (ac_try="$ac_cpp conftest.$ac_ext"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17606 $as_echo "$ac_try_echo") >&5
17607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } >/dev/null && {
17614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17615 test ! -s conftest.err
17617 ac_header_preproc=yes
17619 $as_echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ac_header_preproc=no
17625 rm -f conftest.err conftest.$ac_ext
17626 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17627 $as_echo "$ac_header_preproc" >&6; }
17629 # So? What about this header?
17630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17633 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17636 ac_header_preproc=yes
17639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17640 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17642 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17644 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17646 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17650 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17655 $as_echo_n "checking for $ac_header... " >&6; }
17656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17657 $as_echo_n "(cached) " >&6
17659 eval "$as_ac_Header=\$ac_header_preproc"
17661 ac_res=`eval 'as_val=${'$as_ac_Header'}
17662 $as_echo "$as_val"'`
17663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17664 $as_echo "$ac_res" >&6; }
17667 as_val=`eval 'as_val=${'$as_ac_Header'}
17668 $as_echo "$as_val"'`
17669 if test "x$as_val" = x""yes; then
17670 cat >>confdefs.h <<_ACEOF
17671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17675 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17676 $as_echo "$as_me: error: bailing out" >&2;}
17677 { (exit 1); exit 1; }; }
17684 if test x$INTL = xyes; then
17686 for ac_header in libintl.h
17688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17691 $as_echo_n "checking for $ac_header... " >&6; }
17692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17693 $as_echo_n "(cached) " >&6
17695 ac_res=`eval 'as_val=${'$as_ac_Header'}
17696 $as_echo "$as_val"'`
17697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17698 $as_echo "$ac_res" >&6; }
17700 # Is the header compilable?
17701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17702 $as_echo_n "checking $ac_header usability... " >&6; }
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 $ac_includes_default
17710 #include <$ac_header>
17712 rm -f conftest.$ac_objext
17713 if { (ac_try="$ac_compile"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17719 $as_echo "$ac_try_echo") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest.$ac_objext; then
17730 ac_header_compiler=yes
17732 $as_echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_header_compiler=no
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17740 $as_echo "$ac_header_compiler" >&6; }
17742 # Is the header present?
17743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17744 $as_echo_n "checking $ac_header presence... " >&6; }
17745 cat >conftest.$ac_ext <<_ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751 #include <$ac_header>
17753 if { (ac_try="$ac_cpp conftest.$ac_ext"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17759 $as_echo "$ac_try_echo") >&5
17760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } >/dev/null && {
17767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17768 test ! -s conftest.err
17770 ac_header_preproc=yes
17772 $as_echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_header_preproc=no
17778 rm -f conftest.err conftest.$ac_ext
17779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17780 $as_echo "$ac_header_preproc" >&6; }
17782 # So? What about this header?
17783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17789 ac_header_preproc=yes
17792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17795 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17799 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17808 $as_echo_n "checking for $ac_header... " >&6; }
17809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17810 $as_echo_n "(cached) " >&6
17812 eval "$as_ac_Header=\$ac_header_preproc"
17814 ac_res=`eval 'as_val=${'$as_ac_Header'}
17815 $as_echo "$as_val"'`
17816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17817 $as_echo "$ac_res" >&6; }
17820 as_val=`eval 'as_val=${'$as_ac_Header'}
17821 $as_echo "$as_val"'`
17822 if test "x$as_val" = x""yes; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17828 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17829 $as_echo "$as_me: error: bailing out" >&2;}
17830 { (exit 1); exit 1; }; }
17837 if test x$UDEV_SYNC = xyes; then
17840 for ac_header in sys/ipc.h sys/sem.h
17842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17845 $as_echo_n "checking for $ac_header... " >&6; }
17846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17847 $as_echo_n "(cached) " >&6
17849 ac_res=`eval 'as_val=${'$as_ac_Header'}
17850 $as_echo "$as_val"'`
17851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17852 $as_echo "$ac_res" >&6; }
17854 # Is the header compilable?
17855 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17856 $as_echo_n "checking $ac_header usability... " >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17864 #include <$ac_header>
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17873 $as_echo "$ac_try_echo") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 ac_header_compiler=yes
17886 $as_echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_header_compiler=no
17892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17894 $as_echo "$ac_header_compiler" >&6; }
17896 # Is the header present?
17897 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17898 $as_echo_n "checking $ac_header presence... " >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <$ac_header>
17907 if { (ac_try="$ac_cpp conftest.$ac_ext"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17924 ac_header_preproc=yes
17926 $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_header_preproc=no
17932 rm -f conftest.err conftest.$ac_ext
17933 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17934 $as_echo "$ac_header_preproc" >&6; }
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17940 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17943 ac_header_preproc=yes
17946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17947 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17949 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17951 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17953 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17957 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 $as_echo_n "checking for $ac_header... " >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 $as_echo_n "(cached) " >&6
17966 eval "$as_ac_Header=\$ac_header_preproc"
17968 ac_res=`eval 'as_val=${'$as_ac_Header'}
17969 $as_echo "$as_val"'`
17970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17971 $as_echo "$ac_res" >&6; }
17974 as_val=`eval 'as_val=${'$as_ac_Header'}
17975 $as_echo "$as_val"'`
17976 if test "x$as_val" = x""yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17982 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17983 $as_echo "$as_me: error: bailing out" >&2;}
17984 { (exit 1); exit 1; }; }
17991 ################################################################################
17992 # Extract the first word of "modprobe", so it can be a program name with args.
17993 set dummy modprobe; ac_word=$2
17994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17995 $as_echo_n "checking for $ac_word... " >&6; }
17996 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
17997 $as_echo_n "(cached) " >&6
17999 case $MODPROBE_CMD in
18001 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
18004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18005 for as_dir in $PATH
18008 test -z "$as_dir" && as_dir=.
18009 for ac_exec_ext in '' $ac_executable_extensions; do
18010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18011 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
18012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18022 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
18023 if test -n "$MODPROBE_CMD"; then
18024 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
18025 $as_echo "$MODPROBE_CMD" >&6; }
18027 { $as_echo "$as_me:$LINENO: result: no" >&5
18028 $as_echo "no" >&6; }
18033 if test x$MODPROBE_CMD != x; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define MODPROBE_CMD "$MODPROBE_CMD"
18042 lvm_exec_prefix=$exec_prefix
18043 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
18044 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
18046 cat >>confdefs.h <<_ACEOF
18047 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
18051 if test "$CLVMD" != none; then
18052 clvmd_prefix=$ac_default_prefix
18053 test "$prefix" != NONE && clvmd_prefix=$prefix
18055 cat >>confdefs.h <<_ACEOF
18056 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
18061 ################################################################################
18062 if test "$BUILD_DMEVENTD" = yes; then
18064 # Check whether --with-dmeventd-pidfile was given.
18065 if test "${with_dmeventd_pidfile+set}" = set; then
18066 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
18068 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
18072 cat >>confdefs.h <<_ACEOF
18073 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
18078 if test "$BUILD_DMEVENTD" = yes; then
18080 # Check whether --with-dmeventd-path was given.
18081 if test "${with_dmeventd_path+set}" = set; then
18082 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
18084 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
18088 cat >>confdefs.h <<_ACEOF
18089 #define DMEVENTD_PATH "$DMEVENTD_PATH"
18097 # Check whether --with-default-run-dir was given.
18098 if test "${with_default_run_dir+set}" = set; then
18099 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
18101 DEFAULT_RUN_DIR="/var/run/lvm"
18104 cat >>confdefs.h <<_ACEOF
18105 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
18109 ################################################################################
18111 # Check whether --with-default-system-dir was given.
18112 if test "${with_default_system_dir+set}" = set; then
18113 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
18115 DEFAULT_SYS_DIR="/etc/lvm"
18119 cat >>confdefs.h <<_ACEOF
18120 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
18125 # Check whether --with-default-archive-subdir was given.
18126 if test "${with_default_archive_subdir+set}" = set; then
18127 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
18129 DEFAULT_ARCHIVE_SUBDIR=archive
18133 cat >>confdefs.h <<_ACEOF
18134 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
18139 # Check whether --with-default-backup-subdir was given.
18140 if test "${with_default_backup_subdir+set}" = set; then
18141 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
18143 DEFAULT_BACKUP_SUBDIR=backup
18147 cat >>confdefs.h <<_ACEOF
18148 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18153 # Check whether --with-default-cache-subdir was given.
18154 if test "${with_default_cache_subdir+set}" = set; then
18155 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
18157 DEFAULT_CACHE_SUBDIR=cache
18161 cat >>confdefs.h <<_ACEOF
18162 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18167 # Check whether --with-default-locking-dir was given.
18168 if test "${with_default_locking_dir+set}" = set; then
18169 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
18171 DEFAULT_LOCK_DIR="/var/lock/lvm"
18175 cat >>confdefs.h <<_ACEOF
18176 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18180 ################################################################################
18182 # Check whether --with-default-data-alignment was given.
18183 if test "${with_default_data_alignment+set}" = set; then
18184 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
18186 DEFAULT_DATA_ALIGNMENT=1
18190 cat >>confdefs.h <<_ACEOF
18191 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
18195 ################################################################################
18196 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18197 $as_echo_n "checking for kernel interface choice... " >&6; }
18199 # Check whether --with-interface was given.
18200 if test "${with_interface+set}" = set; then
18201 withval=$with_interface; interface=$withval
18206 if [ "x$interface" != xioctl ];
18208 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18209 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
18210 { (exit 1); exit 1; }; }
18212 { $as_echo "$as_me:$LINENO: result: $interface" >&5
18213 $as_echo "$interface" >&6; }
18215 ################################################################################
18216 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
18218 cat >>confdefs.h <<_ACEOF
18219 #define DM_LIB_VERSION $DM_LIB_VERSION
18223 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
18225 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
18227 VER=`cat "$srcdir"/VERSION`
18228 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
18229 VER=`echo "$VER" | $AWK '{print $1}'`
18230 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18231 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18232 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18233 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
18234 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18235 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
18237 ################################################################################
18339 ################################################################################
18340 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
18342 cat >confcache <<\_ACEOF
18343 # This file is a shell script that caches the results of configure
18344 # tests run on this system so they can be shared between configure
18345 # scripts and configure runs, see configure's option --config-cache.
18346 # It is not useful on other systems. If it contains results you don't
18347 # want to keep, you may remove or edit it.
18349 # config.status only pays attention to the cache file if you give it
18350 # the --recheck option to rerun configure.
18352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18354 # following values.
18358 # The following way of writing the cache mishandles newlines in values,
18359 # but we know of no workaround that is simple, portable, and efficient.
18360 # So, we kill variables containing newlines.
18361 # Ultrix sh set writes to stderr and can't be redirected directly,
18362 # and sets the high bit in the cache file unless we assign to the vars.
18364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18365 eval ac_val=\$$ac_var
18369 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18370 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18373 _ | IFS | as_nl) ;; #(
18374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18375 *) $as_unset $ac_var ;;
18381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18382 *${as_nl}ac_space=\ *)
18383 # `set' does not quote correctly, so add quotes (double-quote
18384 # substitution turns \\\\ into \\, and sed turns \\ into \).
18387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18390 # `set' quotes correctly as required by POSIX, so do not add quotes.
18391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18404 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18405 if test -w "$cache_file"; then
18406 test "x$cache_file" != "x/dev/null" &&
18407 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18408 $as_echo "$as_me: updating cache $cache_file" >&6;}
18409 cat confcache >$cache_file
18411 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18412 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18418 # Let make expand exec_prefix.
18419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18421 DEFS=-DHAVE_CONFIG_H
18425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18426 # 1. Remove the extension, and $U if already installed.
18427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18430 # will be set to the directory where LIBOBJS objects are built.
18431 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18432 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18434 LIBOBJS=$ac_libobjs
18436 LTLIBOBJS=$ac_ltlibobjs
18440 : ${CONFIG_STATUS=./config.status}
18442 ac_clean_files_save=$ac_clean_files
18443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18444 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18445 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18446 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18448 # Generated by $as_me.
18449 # Run this file to recreate the current configuration.
18450 # Compiler output produced by configure, useful for debugging
18451 # configure, is in config.log if it exists.
18454 ac_cs_recheck=false
18456 SHELL=\${CONFIG_SHELL-$SHELL}
18459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18460 ## --------------------- ##
18461 ## M4sh Initialization. ##
18462 ## --------------------- ##
18464 # Be more Bourne compatible
18465 DUALCASE=1; export DUALCASE # for MKS sh
18466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18469 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18470 # is contrary to our usage. Disable this feature.
18471 alias -g '${1+"$@"}'='"$@"'
18472 setopt NO_GLOB_SUBST
18474 case `(set -o) 2>/dev/null` in
18475 *posix*) set -o posix ;;
18484 # Avoid depending upon Character Ranges.
18485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18488 as_cr_digits='0123456789'
18489 as_cr_alnum=$as_cr_Letters$as_cr_digits
18494 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18495 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18498 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18499 as_echo='printf %s\n'
18500 as_echo_n='printf %s'
18502 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18503 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18504 as_echo_n='/usr/ucb/echo -n'
18506 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18507 as_echo_n_body='eval
18511 expr "X$arg" : "X\\(.*\\)$as_nl";
18512 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18514 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18516 export as_echo_n_body
18517 as_echo_n='sh -c $as_echo_n_body as_echo'
18519 export as_echo_body
18520 as_echo='sh -c $as_echo_body as_echo'
18523 # The user is always right.
18524 if test "${PATH_SEPARATOR+set}" != set; then
18526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18532 # Support unset when possible.
18533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18541 # We need space, tab and new line, in precisely that order. Quoting is
18542 # there to prevent editors from complaining about space-tab.
18543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18544 # splitting by setting IFS to empty value.)
18547 # Find who we are. Look in the path if we contain no directory separator.
18549 *[\\/]* ) as_myself=$0 ;;
18550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18551 for as_dir in $PATH
18554 test -z "$as_dir" && as_dir=.
18555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18561 # We did not find ourselves, most probably we were run as `sh COMMAND'
18562 # in which case we are not to be found in the path.
18563 if test "x$as_myself" = x; then
18566 if test ! -f "$as_myself"; then
18567 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18568 { (exit 1); exit 1; }
18571 # Work around bugs in pre-3.0 UWIN ksh.
18572 for as_var in ENV MAIL MAILPATH
18573 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18585 # Required to use basename.
18586 if expr a : '\(a\)' >/dev/null 2>&1 &&
18587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18594 as_basename=basename
18600 # Name of the executable.
18601 as_me=`$as_basename -- "$0" ||
18602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18603 X"$0" : 'X\(//\)$' \| \
18604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18606 sed '/^.*\/\([^/][^/]*\)\/*$/{
18625 as_lineno_1=$LINENO
18626 as_lineno_2=$LINENO
18627 test "x$as_lineno_1" != "x$as_lineno_2" &&
18628 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18631 # uniformly replaced by the line number. The first 'sed' inserts a
18632 # line-number line after each line using $LINENO; the second 'sed'
18633 # does the real work. The second script uses 'N' to pair each
18634 # line-number line with the line containing $LINENO, and appends
18635 # trailing '-' during substitution so that $LINENO is not a special
18636 # case at line end.
18637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18638 # scripts with optimization help from Paolo Bonzini. Blame Lee
18639 # E. McMahon (1931-1989) for sed's syntax. :-)
18651 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18654 ' >$as_me.lineno &&
18655 chmod +x "$as_me.lineno" ||
18656 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18657 { (exit 1); exit 1; }; }
18659 # Don't try to exec as it changes $[0], causing all sort of problems
18660 # (the dirname of $[0] is not the place where we might find the
18661 # original and so on. Autoconf is especially sensitive to this).
18662 . "./$as_me.lineno"
18663 # Exit status is that of the last command.
18668 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18674 ECHO_C= ECHO_N= ECHO_T=
18675 case `echo -n x` in
18677 case `echo 'x\c'` in
18678 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18684 if expr a : '\(a\)' >/dev/null 2>&1 &&
18685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18691 rm -f conf$$ conf$$.exe conf$$.file
18692 if test -d conf$$.dir; then
18693 rm -f conf$$.dir/conf$$.file
18696 mkdir conf$$.dir 2>/dev/null
18698 if (echo >conf$$.file) 2>/dev/null; then
18699 if ln -s conf$$.file conf$$ 2>/dev/null; then
18701 # ... but there are two gotchas:
18702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18704 # In both cases, we have to default to `cp -p'.
18705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18707 elif ln conf$$.file conf$$ 2>/dev/null; then
18715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18716 rmdir conf$$.dir 2>/dev/null
18718 if mkdir -p . 2>/dev/null; then
18721 test -d ./-p && rmdir ./-p
18725 if test -x / >/dev/null 2>&1; then
18726 as_test_x='test -x'
18728 if ls -dL / >/dev/null 2>&1; then
18735 if test -d "$1"; then
18741 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18742 ???[sx]*):;;*)false;;esac;fi
18746 as_executable_p=$as_test_x
18748 # Sed expression to map a string onto a valid CPP name.
18749 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18751 # Sed expression to map a string onto a valid variable name.
18752 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18757 # Save the log message, to keep $[0] and so on meaningful, and to
18758 # report actual input values of CONFIG_FILES etc. instead of their
18759 # values after options handling.
18761 This file was extended by $as_me, which was
18762 generated by GNU Autoconf 2.63. Invocation command line was
18764 CONFIG_FILES = $CONFIG_FILES
18765 CONFIG_HEADERS = $CONFIG_HEADERS
18766 CONFIG_LINKS = $CONFIG_LINKS
18767 CONFIG_COMMANDS = $CONFIG_COMMANDS
18770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18775 case $ac_config_files in *"
18776 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18779 case $ac_config_headers in *"
18780 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18785 # Files that config.status was made for.
18786 config_files="$ac_config_files"
18787 config_headers="$ac_config_headers"
18791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18793 \`$as_me' instantiates files from templates according to the
18794 current configuration.
18796 Usage: $0 [OPTION]... [FILE]...
18798 -h, --help print this help, then exit
18799 -V, --version print version number and configuration settings, then exit
18800 -q, --quiet, --silent
18801 do not print progress messages
18802 -d, --debug don't remove temporary files
18803 --recheck update $as_me by reconfiguring in the same conditions
18804 --file=FILE[:TEMPLATE]
18805 instantiate the configuration file FILE
18806 --header=FILE[:TEMPLATE]
18807 instantiate the configuration header FILE
18809 Configuration files:
18812 Configuration headers:
18815 Report bugs to <bug-autoconf@gnu.org>."
18818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18821 configured by $0, generated by GNU Autoconf 2.63,
18822 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18824 Copyright (C) 2008 Free Software Foundation, Inc.
18825 This config.status script is free software; the Free Software Foundation
18826 gives unlimited permission to copy, distribute and modify it."
18833 test -n "\$AWK" || AWK=awk
18836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18837 # The default lists apply if the user does not specify any file.
18843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18855 # Handling of the options.
18856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18859 $as_echo "$ac_cs_version"; exit ;;
18860 --debug | --debu | --deb | --de | --d | -d )
18862 --file | --fil | --fi | --f )
18865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18867 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18868 ac_need_defaults=false;;
18869 --header | --heade | --head | --hea )
18872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18874 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18875 ac_need_defaults=false;;
18877 # Conflict between --help and --header
18878 { $as_echo "$as_me: error: ambiguous option: $1
18879 Try \`$0 --help' for more information." >&2
18880 { (exit 1); exit 1; }; };;
18881 --help | --hel | -h )
18882 $as_echo "$ac_cs_usage"; exit ;;
18883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18887 # This is an error.
18888 -*) { $as_echo "$as_me: error: unrecognized option: $1
18889 Try \`$0 --help' for more information." >&2
18890 { (exit 1); exit 1; }; } ;;
18892 *) ac_config_targets="$ac_config_targets $1"
18893 ac_need_defaults=false ;;
18899 ac_configure_extra_args=
18901 if $ac_cs_silent; then
18903 ac_configure_extra_args="$ac_configure_extra_args --silent"
18907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18908 if \$ac_cs_recheck; then
18909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18912 CONFIG_SHELL='$SHELL'
18913 export CONFIG_SHELL
18918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18923 ## Running $as_me. ##
18929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18934 # Handling of arguments.
18935 for ac_config_target in $ac_config_targets
18937 case $ac_config_target in
18938 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18940 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18941 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18942 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
18943 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
18944 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18945 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
18946 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
18947 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
18948 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18949 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
18950 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18951 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
18952 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
18953 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18954 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18955 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18956 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18957 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18958 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
18959 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
18960 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
18961 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
18962 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18963 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
18964 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
18965 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
18966 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18967 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
18968 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
18969 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
18970 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
18971 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18972 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18973 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
18974 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18975 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
18976 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18977 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
18978 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
18980 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18981 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18982 { (exit 1); exit 1; }; };;
18987 # If the user did not use the arguments to specify the items to instantiate,
18988 # then the envvar interface is used. Set only those that are not.
18989 # We use the long form for the default assignment because of an extremely
18990 # bizarre bug on SunOS 4.1.3.
18991 if $ac_need_defaults; then
18992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18996 # Have a temporary directory for convenience. Make it in the build tree
18997 # simply because there is no reason against having it here, and in addition,
18998 # creating and moving files from /tmp can sometimes cause problems.
18999 # Hook for its removal unless debugging.
19000 # Note that there is a small window in which the directory will not be cleaned:
19001 # after its creation but before its name has been assigned to `$tmp'.
19005 trap 'exit_status=$?
19006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19008 trap '{ (exit 1); exit 1; }' 1 2 13 15
19010 # Create a (secure) tmp directory for tmp files.
19013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19014 test -n "$tmp" && test -d "$tmp"
19017 tmp=./conf$$-$RANDOM
19018 (umask 077 && mkdir "$tmp")
19021 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19022 { (exit 1); exit 1; }
19025 # Set up the scripts for CONFIG_FILES section.
19026 # No need to generate them if there are no CONFIG_FILES.
19027 # This happens for instance with `./config.status config.h'.
19028 if test -n "$CONFIG_FILES"; then
19032 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19033 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19036 ac_cs_awk_cr=$ac_cr
19039 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19044 echo "cat >conf$$subs.awk <<_ACEOF" &&
19045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19047 } >conf$$subs.sh ||
19048 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19049 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19050 { (exit 1); exit 1; }; }
19051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19053 for ac_last_try in false false false false false :; do
19054 . ./conf$$subs.sh ||
19055 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19056 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19057 { (exit 1); exit 1; }; }
19059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19060 if test $ac_delim_n = $ac_delim_num; then
19062 elif $ac_last_try; then
19063 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19064 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19065 { (exit 1); exit 1; }; }
19067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19070 rm -f conf$$subs.sh
19072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19077 s/^/S["/; s/!.*/"]=/
19087 s/\(.\{148\}\).*/\1/
19089 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19101 s/\(.\{148\}\).*/\1/
19103 s/["\\]/\\&/g; s/^/"/; s/$/"/
19107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19112 ' <conf$$subs.awk | sed '
19117 ' >>$CONFIG_STATUS || ac_write_fail=1
19118 rm -f conf$$subs.awk
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19121 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19122 for (key in S) S_is_set[key] = 1
19128 nfields = split(line, field, "@")
19130 len = length(field[1])
19131 for (i = 2; i < nfields; i++) {
19133 keylen = length(key)
19134 if (S_is_set[key]) {
19136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19137 len += length(value) + length(field[++i])
19148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19149 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19153 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19154 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19155 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19156 { (exit 1); exit 1; }; }
19159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19161 # trailing colons and then remove the whole line if VPATH becomes empty
19162 # (actually we leave an empty line to preserve line numbers).
19163 if test "x$srcdir" = x.; then
19164 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19165 s/:*\$(srcdir):*/:/
19166 s/:*\${srcdir}:*/:/
19168 s/^\([^=]*=[ ]*\):*/\1/
19174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19175 fi # test -n "$CONFIG_FILES"
19177 # Set up the scripts for CONFIG_HEADERS section.
19178 # No need to generate them if there are no CONFIG_HEADERS.
19179 # This happens for instance with `./config.status Makefile'.
19180 if test -n "$CONFIG_HEADERS"; then
19181 cat >"$tmp/defines.awk" <<\_ACAWK ||
19185 # Transform confdefs.h into an awk script `defines.awk', embedded as
19186 # here-document in config.status, that substitutes the proper values into
19187 # config.h.in to produce config.h.
19189 # Create a delimiter string that does not exist in confdefs.h, to ease
19190 # handling of long lines.
19192 for ac_last_try in false false :; do
19193 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19194 if test -z "$ac_t"; then
19196 elif $ac_last_try; then
19197 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19198 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19199 { (exit 1); exit 1; }; }
19201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19205 # For the awk script, D is an array of macro values keyed by name,
19206 # likewise P contains macro parameters if any. Preserve backslash
19207 # newline sequences.
19209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19211 s/.\{148\}/&'"$ac_delim"'/g
19214 s/^[ ]*#[ ]*define[ ][ ]*/ /
19221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19228 D["\1"]=" \3\\\\\\n"\\/p
19230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19235 s/.\{148\}/&'"$ac_delim"'/g
19240 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19243 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19245 ' <confdefs.h | sed '
19246 s/'"$ac_delim"'/"\\\
19247 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19250 for (key in D) D_is_set[key] = 1
19253 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19255 split(line, arg, " ")
19256 if (arg[1] == "#") {
19260 defundef = substr(arg[1], 2)
19263 split(mac1, mac2, "(") #)
19265 prefix = substr(line, 1, index(line, defundef) - 1)
19266 if (D_is_set[macro]) {
19267 # Preserve the white space surrounding the "#".
19268 print prefix "define", macro P[macro] D[macro]
19271 # Replace #undef with comments. This is necessary, for example,
19272 # in the case of _POSIX_SOURCE, which is predefined and required
19273 # on some systems where configure will not decide to define it.
19274 if (defundef == "undef") {
19275 print "/*", prefix defundef, macro, "*/"
19283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19284 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19285 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19286 { (exit 1); exit 1; }; }
19287 fi # test -n "$CONFIG_HEADERS"
19290 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19295 :[FHLC]) ac_mode=$ac_tag; continue;;
19297 case $ac_mode$ac_tag in
19299 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19300 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19301 { (exit 1); exit 1; }; };;
19302 :[FH]-) ac_tag=-:-;;
19303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19320 -) ac_f="$tmp/stdin";;
19321 *) # Look for the file first in the build tree, then in the source tree
19322 # (if the path is not absolute). The absolute path cannot be DOS-style,
19323 # because $ac_f cannot contain `:'.
19327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19329 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19330 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19331 { (exit 1); exit 1; }; };;
19333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19334 ac_file_inputs="$ac_file_inputs '$ac_f'"
19337 # Let's still pretend it is `configure' which instantiates (i.e., don't
19338 # use $as_me), people would be surprised to read:
19339 # /* config.h. Generated by config.status. */
19340 configure_input='Generated from '`
19341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19343 if test x"$ac_file" != x-; then
19344 configure_input="$ac_file. $configure_input"
19345 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19346 $as_echo "$as_me: creating $ac_file" >&6;}
19348 # Neutralize special characters interpreted by sed in replacement strings.
19349 case $configure_input in #(
19350 *\&* | *\|* | *\\* )
19351 ac_sed_conf_input=`$as_echo "$configure_input" |
19352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19353 *) ac_sed_conf_input=$configure_input;;
19357 *:-:* | *:-) cat >"$tmp/stdin" \
19358 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19360 { (exit 1); exit 1; }; } ;;
19365 ac_dir=`$as_dirname -- "$ac_file" ||
19366 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19367 X"$ac_file" : 'X\(//\)[^/]' \| \
19368 X"$ac_file" : 'X\(//\)$' \| \
19369 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19370 $as_echo X"$ac_file" |
19371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19375 /^X\(\/\/\)[^/].*/{
19390 -*) as_dir=./$as_dir;;
19392 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19396 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19397 *) as_qdir=$as_dir;;
19399 as_dirs="'$as_qdir' $as_dirs"
19400 as_dir=`$as_dirname -- "$as_dir" ||
19401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19402 X"$as_dir" : 'X\(//\)[^/]' \| \
19403 X"$as_dir" : 'X\(//\)$' \| \
19404 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19405 $as_echo X"$as_dir" |
19406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19410 /^X\(\/\/\)[^/].*/{
19423 test -d "$as_dir" && break
19425 test -z "$as_dirs" || eval "mkdir $as_dirs"
19426 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19427 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19428 { (exit 1); exit 1; }; }; }
19432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19435 # A ".." for each directory in $ac_dir_suffix.
19436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19437 case $ac_top_builddir_sub in
19438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19442 ac_abs_top_builddir=$ac_pwd
19443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19444 # for backward compatibility:
19445 ac_top_builddir=$ac_top_build_prefix
19448 .) # We are building in place.
19450 ac_top_srcdir=$ac_top_builddir_sub
19451 ac_abs_top_srcdir=$ac_pwd ;;
19452 [\\/]* | ?:[\\/]* ) # Absolute name.
19453 ac_srcdir=$srcdir$ac_dir_suffix;
19454 ac_top_srcdir=$srcdir
19455 ac_abs_top_srcdir=$srcdir ;;
19456 *) # Relative name.
19457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19458 ac_top_srcdir=$ac_top_build_prefix$srcdir
19459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19474 ac_MKDIR_P=$MKDIR_P
19476 [\\/$]* | ?:[\\/]* ) ;;
19477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19482 # If the template does not know about datarootdir, expand it.
19483 # FIXME: This hack should be removed a few years after 2.60.
19484 ac_datarootdir_hack=; ac_datarootdir_seen=
19497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19498 *datarootdir*) ac_datarootdir_seen=yes;;
19499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19500 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19504 ac_datarootdir_hack='
19505 s&@datadir@&$datadir&g
19506 s&@docdir@&$docdir&g
19507 s&@infodir@&$infodir&g
19508 s&@localedir@&$localedir&g
19509 s&@mandir@&$mandir&g
19510 s&\\\${datarootdir}&$datarootdir&g' ;;
19514 # Neutralize VPATH when `$srcdir' = `.'.
19515 # Shell code in configure.ac might set extrasub.
19516 # FIXME: do we really want to maintain this feature?
19517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19518 ac_sed_extra="$ac_vpsub
19521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19524 s|@configure_input@|$ac_sed_conf_input|;t t
19525 s&@top_builddir@&$ac_top_builddir_sub&;t t
19526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19527 s&@srcdir@&$ac_srcdir&;t t
19528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19529 s&@top_srcdir@&$ac_top_srcdir&;t t
19530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19531 s&@builddir@&$ac_builddir&;t t
19532 s&@abs_builddir@&$ac_abs_builddir&;t t
19533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19534 s&@INSTALL@&$ac_INSTALL&;t t
19535 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19536 $ac_datarootdir_hack
19538 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19539 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19540 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19541 { (exit 1); exit 1; }; }
19543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19546 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19547 which seems to be undefined. Please make sure it is defined." >&5
19548 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19549 which seems to be undefined. Please make sure it is defined." >&2;}
19553 -) cat "$tmp/out" && rm -f "$tmp/out";;
19554 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19557 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19558 { (exit 1); exit 1; }; }
19564 if test x"$ac_file" != x-; then
19566 $as_echo "/* $configure_input */" \
19567 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19568 } >"$tmp/config.h" \
19569 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19570 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19571 { (exit 1); exit 1; }; }
19572 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19573 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19574 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19577 mv "$tmp/config.h" "$ac_file" \
19578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19579 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19580 { (exit 1); exit 1; }; }
19583 $as_echo "/* $configure_input */" \
19584 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19585 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19586 $as_echo "$as_me: error: could not create -" >&2;}
19587 { (exit 1); exit 1; }; }
19597 { (exit 0); exit 0; }
19599 chmod +x $CONFIG_STATUS
19600 ac_clean_files=$ac_clean_files_save
19602 test $ac_write_fail = 0 ||
19603 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19604 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19605 { (exit 1); exit 1; }; }
19608 # configure is writing to config.log, and then calls config.status.
19609 # config.status does its own redirection, appending to config.log.
19610 # Unfortunately, on DOS this fails, as config.log is still kept open
19611 # by configure, so config.status won't be able to write to it; its
19612 # output is simply discarded. So we exec the FD to /dev/null,
19613 # effectively closing config.log, so it can be properly (re)opened and
19614 # appended to by config.status. When coming back to configure, we
19615 # need to make the FD available again.
19616 if test "$no_create" != yes; then
19618 ac_config_status_args=
19619 test "$silent" = yes &&
19620 ac_config_status_args="$ac_config_status_args --quiet"
19622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19625 # would make configure fail if this is the last instruction.
19626 $ac_cs_success || { (exit 1); exit 1; }
19628 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19629 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19630 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19634 if test x$ODIRECT != xyes; then
19635 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19636 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}