2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_default_prefix
=/usr
596 ac_subst_vars
='LTLIBOBJS
611 UDEV_HAS_BUILTIN_BLKID
612 UDEV_RULE_EXEC_DETECTION
666 DEFAULT_DATA_ALIGNMENT
668 DEFAULT_BACKUP_SUBDIR
669 DEFAULT_ARCHIVE_SUBDIR
784 program_transform_name
797 enable_option_checking
805 with_default_name_mangling
821 with_default_dm_run_dir
826 with_cmirrord_pidfile
837 enable_udev_rule_exec_detection
857 with_systemdsystemunitdir
859 with_dmeventd_pidfile
861 with_default_system_dir
862 with_default_archive_subdir
863 with_default_backup_subdir
864 with_default_cache_subdir
865 with_default_locking_dir
866 with_default_data_alignment
869 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 includedir
='${prefix}/include'
944 oldincludedir
='/usr/include'
945 docdir
='${datarootdir}/doc/${PACKAGE}'
946 infodir
='${datarootdir}/info'
951 libdir
='${exec_prefix}/lib'
952 localedir
='${datarootdir}/locale'
953 mandir
='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\
$ac_option
967 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
977 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
979 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
982 -build |
--build |
--buil |
--bui |
--bu)
983 ac_prev
=build_alias
;;
984 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
985 build_alias
=$ac_optarg ;;
987 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
988 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
989 ac_prev
=cache_file
;;
990 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
991 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
992 cache_file
=$ac_optarg ;;
995 cache_file
=config.cache
;;
997 -datadir |
--datadir |
--datadi |
--datad)
999 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1000 datadir
=$ac_optarg ;;
1002 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1003 |
--dataroo |
--dataro |
--datar)
1004 ac_prev
=datarootdir
;;
1005 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1006 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1007 datarootdir
=$ac_optarg ;;
1009 -disable-* |
--disable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=no
;;
1025 -docdir |
--docdir |
--docdi |
--doc |
--do)
1027 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1028 docdir
=$ac_optarg ;;
1030 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1032 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1033 dvidir
=$ac_optarg ;;
1035 -enable-* |
--enable-*)
1036 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1039 as_fn_error $?
"invalid feature name: $ac_useropt"
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=\
$ac_optarg ;;
1051 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1052 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1053 |
--exec |
--exe |
--ex)
1054 ac_prev
=exec_prefix
;;
1055 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1056 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1057 |
--exec=* |
--exe=* |
--ex=*)
1058 exec_prefix
=$ac_optarg ;;
1060 -gas |
--gas |
--ga |
--g)
1061 # Obsolete; use --with-gas.
1064 -help |
--help |
--hel |
--he |
-h)
1065 ac_init_help
=long
;;
1066 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1067 ac_init_help
=recursive
;;
1068 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1069 ac_init_help
=short
;;
1071 -host |
--host |
--hos |
--ho)
1072 ac_prev
=host_alias
;;
1073 -host=* |
--host=* |
--hos=* |
--ho=*)
1074 host_alias
=$ac_optarg ;;
1076 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1078 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1080 htmldir
=$ac_optarg ;;
1082 -includedir |
--includedir |
--includedi |
--included |
--include \
1083 |
--includ |
--inclu |
--incl |
--inc)
1084 ac_prev
=includedir
;;
1085 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1086 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1087 includedir
=$ac_optarg ;;
1089 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1091 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1092 infodir
=$ac_optarg ;;
1094 -libdir |
--libdir |
--libdi |
--libd)
1096 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1097 libdir
=$ac_optarg ;;
1099 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1100 |
--libexe |
--libex |
--libe)
1101 ac_prev
=libexecdir
;;
1102 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1103 |
--libexe=* |
--libex=* |
--libe=*)
1104 libexecdir
=$ac_optarg ;;
1106 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1107 ac_prev
=localedir
;;
1108 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1109 localedir
=$ac_optarg ;;
1111 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1112 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1113 ac_prev
=localstatedir
;;
1114 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1115 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1116 localstatedir
=$ac_optarg ;;
1118 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1120 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1121 mandir
=$ac_optarg ;;
1123 -nfp |
--nfp |
--nf)
1124 # Obsolete; use --without-fp.
1127 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1128 |
--no-cr |
--no-c |
-n)
1131 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1132 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1135 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1136 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1137 |
--oldin |
--oldi |
--old |
--ol |
--o)
1138 ac_prev
=oldincludedir
;;
1139 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1140 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1141 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1142 oldincludedir
=$ac_optarg ;;
1144 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1146 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1147 prefix
=$ac_optarg ;;
1149 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1150 |
--program-pre |
--program-pr |
--program-p)
1151 ac_prev
=program_prefix
;;
1152 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1153 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1154 program_prefix
=$ac_optarg ;;
1156 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1157 |
--program-suf |
--program-su |
--program-s)
1158 ac_prev
=program_suffix
;;
1159 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1160 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1161 program_suffix
=$ac_optarg ;;
1163 -program-transform-name |
--program-transform-name \
1164 |
--program-transform-nam |
--program-transform-na \
1165 |
--program-transform-n |
--program-transform- \
1166 |
--program-transform |
--program-transfor \
1167 |
--program-transfo |
--program-transf \
1168 |
--program-trans |
--program-tran \
1169 |
--progr-tra |
--program-tr |
--program-t)
1170 ac_prev
=program_transform_name
;;
1171 -program-transform-name=* |
--program-transform-name=* \
1172 |
--program-transform-nam=* |
--program-transform-na=* \
1173 |
--program-transform-n=* |
--program-transform-=* \
1174 |
--program-transform=* |
--program-transfor=* \
1175 |
--program-transfo=* |
--program-transf=* \
1176 |
--program-trans=* |
--program-tran=* \
1177 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1178 program_transform_name
=$ac_optarg ;;
1180 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1182 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1183 pdfdir
=$ac_optarg ;;
1185 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1187 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1191 |
-silent |
--silent |
--silen |
--sile |
--sil)
1194 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1196 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1198 sbindir
=$ac_optarg ;;
1200 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1201 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1202 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1204 ac_prev
=sharedstatedir
;;
1205 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1206 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1207 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1209 sharedstatedir
=$ac_optarg ;;
1211 -site |
--site |
--sit)
1213 -site=* |
--site=* |
--sit=*)
1216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1219 srcdir
=$ac_optarg ;;
1221 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1222 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1223 ac_prev
=sysconfdir
;;
1224 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1225 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1226 sysconfdir
=$ac_optarg ;;
1228 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1229 ac_prev
=target_alias
;;
1230 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1231 target_alias
=$ac_optarg ;;
1233 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1236 -version |
--version |
--versio |
--versi |
--vers |
-V)
1237 ac_init_version
=: ;;
1240 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid package name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval with_
$ac_useropt=\
$ac_optarg ;;
1255 -without-* |
--without-*)
1256 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1259 as_fn_error $?
"invalid package name: $ac_useropt"
1260 ac_useropt_orig
=$ac_useropt
1261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep
=', ';;
1269 eval with_
$ac_useropt=no
;;
1272 # Obsolete; use --with-x.
1275 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1276 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1277 ac_prev
=x_includes
;;
1278 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1279 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1280 x_includes
=$ac_optarg ;;
1282 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1283 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1284 ac_prev
=x_libraries
;;
1285 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1286 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1287 x_libraries
=$ac_optarg ;;
1289 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1294 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1298 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1300 eval $ac_envvar=\
$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1314 if test -n "$ac_prev"; then
1315 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $?
"missing argument to $ac_option"
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1322 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 # Check all directory arguments for consistency.
1328 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val
=\$
$ac_var
1334 # Remove trailing slashes.
1337 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\
$ac_val;;
1340 # Be sure to have absolute directory names.
1342 [\\/$
]* | ?
:[\\/]* ) continue;;
1343 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1345 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target
=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x
; then
1357 if test "x$build_alias" = x
; then
1358 cross_compiling
=maybe
1359 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used" >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1369 test "$silent" = yes && exec 6>/dev
/null
1372 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di
=`ls -di .` &&
1374 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $?
"working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $?
"pwd does not report name of working directory"
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted
=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir
=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted
=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1416 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1418 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1430 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 for ac_var
in $ac_precious_vars; do
1433 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1435 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1446 \`configure' configures this package to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1504 --build=BUILD configure
for building on BUILD
[guessed
]
1505 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1506 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1510 if test -n "$ac_init_help"; then
1515 --disable-option-checking ignore unrecognized
--enable/--with options
1516 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1517 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1518 --enable-static_link use this to link the tools to their libraries
1519 statically
(default is dynamic linking
1520 --enable-lvm1_fallback use this to fall back and use LVM1 binaries
if
1521 device-mapper is missing from the kernel
1522 --disable-readline disable readline support
1523 --enable-realtime enable realtime
clock support
1524 --enable-ocf enable Open Cluster Framework
(OCF
) compliant
1526 --enable-cmirrord enable the cluster mirror log daemon
1527 --enable-debug enable debugging
1528 --enable-profiling gather gcov profiling data
1529 --enable-testing enable testing targets
in the makefile
1530 --enable-valgrind-pool enable valgrind awareness of pools
1531 --disable-devmapper disable LVM2 device-mapper interaction
1532 --enable-lvmetad enable the LVM Metadata Daemon
1533 --enable-udev_sync enable synchronisation with udev processing
1534 --enable-udev_rules install rule files needed
for udev synchronisation
1535 --enable-udev-rule-exec-detection
1536 enable executable path detection
in udev rules
1537 --enable-compat enable support
for old device-mapper versions
1538 --enable-units-compat enable output compatibility with old versions that
1539 that
do not use KiB-style unit suffixes
1540 --disable-driver disable calls to device-mapper
in the kernel
1541 --disable-o_direct disable O_DIRECT
1542 --enable-applib build application library
1543 --enable-cmdlib build shared
command library
1544 --enable-pkgconfig install pkgconfig support
1545 --enable-write_install install user writable files
1546 --disable-fsadm disable fsadm
1547 --enable-dmeventd enable the device-mapper event daemon
1548 --disable-selinux disable selinux support
1549 --enable-nls enable Native Language Support
1552 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1553 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1554 --with-user=USER
set the owner of installed files
[[USER
=]]
1555 --with-group=GROUP
set the group owner of installed files
[[GROUP
=]]
1556 --with-device-uid=UID
set the owner used
for new device nodes
[[UID
=0]]
1557 --with-device-gid=GID
set the group used
for new device nodes
[[GID
=0]]
1558 --with-device-mode=MODE
set the mode used
for new device nodes
[[MODE
=0600]]
1559 --with-device-nodes-on=ON
1560 create nodes on resume or create
[[ON
=resume
]]
1561 --with-default-name-mangling=MANGLING
1562 default name mangling
: auto
/none
/hex
1564 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1566 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1568 --with-cluster=TYPE cluster LVM locking support
: internal
/shared
/none
1570 --with-snapshots=TYPE snapshot support
: internal
/shared
/none
1572 --with-mirrors=TYPE mirror support
: internal
/shared
/none
1574 --with-raid=TYPE mirror support
: internal
/shared
/none
1576 --with-replicators=TYPE replicator support
: internal
/shared
/none
1578 --with-thin=TYPE thin provisioning support
: internal
/shared
/none
1580 --with-thin-check=PATH thin_check tool
: [[autodetect
]]
1581 --with-ocfdir=DIR
install OCF files
in DIR
1582 [[PREFIX
/lib
/ocf
/resource.d
/lvm2
]]
1583 --with-default-pid-dir=PID_DIR
1584 Default directory to keep PID files
in.
[[/var
/run
]]
1585 --with-default-dm-run-dir=DM_RUN_DIR
1586 Default DM run directory.
[[/var
/run
]]
1587 --with-default-run-dir=RUN_DIR
1588 Default LVM run directory.
[[/var
/run
/lvm
]]
1589 --with-clvmd=TYPE build cluster LVM Daemon
1590 The following cluster manager combinations are valid
:
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
[[PID_DIR
/clvmd.pid
]]
1599 --with-cmirrord-pidfile=PATH
1600 cmirrord pidfile
[[PID_DIR
/cmirrord.pid
]]
1601 --with-optimisation=OPT C optimisation flag
[[OPT
=-O2]]
1602 --with-lvmetad-pidfile=PATH
1603 lvmetad pidfile
[[PID_DIR
/lvmetad.pid
]]
1604 --with-localedir=DIR translation files
in DIR
[[PREFIX
/share
/locale
]]
1605 --with-confdir=DIR configuration files
in DIR
[[/etc
]]
1606 --with-staticdir=DIR static binaries
in DIR
[[EPREFIX
/sbin
]]
1607 --with-usrlibdir=DIR usrlib
in DIR
[[PREFIX
/lib
]]
1608 --with-usrsbindir=DIR usrsbin executables
in DIR
[[PREFIX
/sbin
]]
1609 --with-udev-prefix=UPREFIX
1610 install udev rule files
in UPREFIX
[[EPREFIX
]]
1611 --with-udevdir=DIR udev rules
in DIR
[[UPREFIX
/lib
/udev
/rules.d
]]
1612 --with-systemdsystemunitdir=DIR
1613 systemd service files
in DIR
1614 --with-tmpfilesdir=DIR
install configuration files
for management of
1615 volatile files and directories
in DIR
1616 [[PREFIX
/lib
/tmpfiles.d
]]
1617 --with-dmeventd-pidfile=PATH
1618 dmeventd pidfile
[[PID_DIR
/dmeventd.pid
]]
1619 --with-dmeventd-path=PATH
1620 dmeventd path
[[EPREFIX
/sbin
/dmeventd
]]
1621 --with-default-system-dir=DIR
1622 default LVM system directory
[[/etc
/lvm
]]
1623 --with-default-archive-subdir=SUBDIR
1624 default metadata archive subdir
[[archive
]]
1625 --with-default-backup-subdir=SUBDIR
1626 default metadata backup subdir
[[backup
]]
1627 --with-default-cache-subdir=SUBDIR
1628 default metadata cache subdir
[[cache
]]
1629 --with-default-locking-dir=DIR
1630 default locking directory
[[/var
/lock
/lvm
]]
1631 --with-default-data-alignment=NUM
1632 set the default data alignment
in MiB
[[1]]
1633 --with-interface=IFACE choose kernel interface
(ioctl
) [[ioctl
]]
1635 Some influential environment variables
:
1636 CC C compiler
command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1639 nonstandard directory
<lib dir
>
1640 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1641 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1642 you have headers
in a nonstandard directory
<include dir
>
1644 PKG_CONFIG path to pkg-config utility
1646 directories to add to pkg-config
's search path
1648 path overriding pkg-config's built-in search path
1649 PKGCONFIGINIT_CFLAGS
1650 C compiler flags
for PKGCONFIGINIT
, overriding pkg-config
1652 linker flags
for PKGCONFIGINIT
, overriding pkg-config
1653 CMAN_CFLAGS C compiler flags
for CMAN
, overriding pkg-config
1654 CMAN_LIBS linker flags
for CMAN
, overriding pkg-config
1656 C compiler flags
for COROSYNC
, overriding pkg-config
1658 linker flags
for COROSYNC
, overriding pkg-config
1660 C compiler flags
for QUORUM
, overriding pkg-config
1661 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1663 C compiler flags
for SALCK
, overriding pkg-config
1664 SALCK_LIBS linker flags
for SALCK
, overriding pkg-config
1666 C compiler flags
for CONFDB
, overriding pkg-config
1667 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1668 CMAP_CFLAGS C compiler flags
for CMAP
, overriding pkg-config
1669 CMAP_LIBS linker flags
for CMAP
, overriding pkg-config
1670 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1671 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1672 DLM_CFLAGS C compiler flags
for DLM
, overriding pkg-config
1673 DLM_LIBS linker flags
for DLM
, overriding pkg-config
1675 C compiler flags
for SACKPT
, overriding pkg-config
1676 SACKPT_LIBS linker flags
for SACKPT
, overriding pkg-config
1678 C compiler flags
for CUNIT
, overriding pkg-config
1679 CUNIT_LIBS linker flags
for CUNIT
, overriding pkg-config
1680 UDEV_CFLAGS C compiler flags
for UDEV
, overriding pkg-config
1681 UDEV_LIBS linker flags
for UDEV
, overriding pkg-config
1683 Use these variables to override the choices made by
`configure' or to help
1684 it to find libraries and programs with nonstandard names/locations.
1686 Report bugs to the package provider.
1691 if test "$ac_init_help" = "recursive"; then
1692 # If there are subdirs, report their specific --help.
1693 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1694 test -d "$ac_dir" ||
1695 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1703 # A ".." for each directory in $ac_dir_suffix.
1704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1705 case $ac_top_builddir_sub in
1706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 ac_abs_top_builddir=$ac_pwd
1711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1712 # for backward compatibility:
1713 ac_top_builddir=$ac_top_build_prefix
1716 .) # We are building in place.
1718 ac_top_srcdir=$ac_top_builddir_sub
1719 ac_abs_top_srcdir=$ac_pwd ;;
1720 [\\/]* | ?:[\\/]* ) # Absolute name.
1721 ac_srcdir=$srcdir$ac_dir_suffix;
1722 ac_top_srcdir=$srcdir
1723 ac_abs_top_srcdir=$srcdir ;;
1725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1726 ac_top_srcdir=$ac_top_build_prefix$srcdir
1727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731 cd "$ac_dir" || { ac_status=$?; continue; }
1732 # Check for guested configure.
1733 if test -f "$ac_srcdir/configure.gnu"; then
1735 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1736 elif test -f "$ac_srcdir/configure"; then
1738 $SHELL "$ac_srcdir/configure" --help=recursive
1740 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742 cd "$ac_pwd" || { ac_status=$?; break; }
1746 test -n "$ac_init_help" && exit $ac_status
1747 if $ac_init_version; then
1750 generated by GNU Autoconf 2.66
1752 Copyright (C) 2010 Free Software Foundation, Inc.
1753 This configure script is free software; the Free Software Foundation
1754 gives unlimited permission to copy, distribute and modify it.
1759 ## ------------------------ ##
1760 ## Autoconf initialization. ##
1761 ## ------------------------ ##
1763 # ac_fn_c_try_compile LINENO
1764 # --------------------------
1765 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext
1770 if { { ac_try="$ac_compile"
1772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1773 *) ac_try_echo
=$ac_try;;
1775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_compile") 2>conftest.err
1779 if test -s conftest.err
; then
1780 grep -v '^ *+' conftest.err
>conftest.er1
1781 cat conftest.er1
>&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest.
$ac_objext; then :
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.
$ac_ext >&5
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1797 as_fn_set_status
$ac_retval
1799 } # ac_fn_c_try_compile
1801 # ac_fn_c_try_cpp LINENO
1802 # ----------------------
1803 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1807 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } >/dev/null && {
1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 as_fn_set_status $ac_retval
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1848 *) ac_try_echo
=$ac_try;;
1850 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1854 if test -s conftest.err
; then
1855 grep -v '^ *+' conftest.err
>conftest.er1
1856 cat conftest.er1
>&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest
$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest
$ac_exeext
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.
$ac_ext >&5
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1880 as_fn_set_status
$ac_retval
1882 } # ac_fn_c_try_link
1884 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1885 # -------------------------------------------------------
1886 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1887 # the include files in INCLUDES and setting the cache variable VAR
1889 ac_fn_c_check_header_mongrel
()
1891 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1892 if eval "test \"\${$3+set}\"" = set; then :
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval "test \"\${$3+set}\"" = set; then :
1896 $as_echo_n "(cached) " >&6
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1902 # Is the header compilable?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1904 $as_echo_n "checking $2 usability... " >&6; }
1905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1910 if ac_fn_c_try_compile
"$LINENO"; then :
1911 ac_header_compiler
=yes
1913 ac_header_compiler
=no
1915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1917 $as_echo "$ac_header_compiler" >&6; }
1919 # Is the header present?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1921 $as_echo_n "checking $2 presence... " >&6; }
1922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1926 if ac_fn_c_try_cpp
"$LINENO"; then :
1927 ac_header_preproc
=yes
1929 ac_header_preproc
=no
1931 rm -f conftest.err conftest.
$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1933 $as_echo "$ac_header_preproc" >&6; }
1935 # So? What about this header?
1936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1939 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1945 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1947 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1949 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1951 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval "test \"\${$3+set}\"" = set; then :
1959 $as_echo_n "(cached) " >&6
1961 eval "$3=\$ac_header_compiler"
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1969 } # ac_fn_c_check_header_mongrel
1971 # ac_fn_c_try_run LINENO
1972 # ----------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974 # that executables *can* be run.
1977 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1978 if { { ac_try
="$ac_link"
1980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>&5
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989 { { case "(($ac_try" in
1990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1991 *) ac_try_echo
=$ac_try;;
1993 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_try") 2>&5
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; }; }; then :
2001 $as_echo "$as_me: program exited with status $ac_status" >&5
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.
$ac_ext >&5
2005 ac_retval
=$ac_status
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2009 as_fn_set_status
$ac_retval
2013 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists and can be compiled using the include files in
2016 # INCLUDES, setting the cache variable VAR accordingly.
2017 ac_fn_c_check_header_compile
()
2019 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval "test \"\${$3+set}\"" = set; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2042 } # ac_fn_c_check_header_compile
2044 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2045 # ----------------------------------------------------
2046 # Tries to find if the field MEMBER exists in type AGGR, after including
2047 # INCLUDES, setting cache variable VAR accordingly.
2048 ac_fn_c_check_member
()
2050 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2052 $as_echo_n "checking for $2.$3... " >&6; }
2053 if eval "test \"\${$4+set}\"" = set; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2079 if (sizeof ac_aggr.$3)
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2099 } # ac_fn_c_check_member
2101 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2102 # -------------------------------------------
2103 # Tests whether TYPE exists after having included INCLUDES, setting cache
2104 # variable VAR accordingly.
2105 ac_fn_c_check_type
()
2107 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval "test \"\${$3+set}\"" = set; then :
2111 $as_echo_n "(cached) " >&6
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2126 if ac_fn_c_try_compile
"$LINENO"; then :
2127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2153 } # ac_fn_c_check_type
2155 # ac_fn_c_find_intX_t LINENO BITS VAR
2156 # -----------------------------------
2157 # Finds a signed integer type with width BITS, setting cache variable VAR
2159 ac_fn_c_find_intX_t
()
2161 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2163 $as_echo_n "checking for int$2_t... " >&6; }
2164 if eval "test \"\${$3+set}\"" = set; then :
2165 $as_echo_n "(cached) " >&6
2168 # Order is important - never check a type that is potentially smaller
2169 # than half of the expected target width.
2170 for ac_type
in int
$2_t 'int' 'long int' \
2171 'long long int' 'short int' 'signed char'; do
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $ac_includes_default
2175 enum { N = $2 / 2 - 1 };
2179 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2186 if ac_fn_c_try_compile
"$LINENO"; then :
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 $ac_includes_default
2190 enum { N = $2 / 2 - 1 };
2194 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2195 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2202 if ac_fn_c_try_compile
"$LINENO"; then :
2209 eval "$3=\$ac_type" ;;
2212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 if eval test \"x\$
"$3"\" = x
"no"; then :
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2227 } # ac_fn_c_find_intX_t
2229 # ac_fn_c_find_uintX_t LINENO BITS VAR
2230 # ------------------------------------
2231 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2233 ac_fn_c_find_uintX_t
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2237 $as_echo_n "checking for uint$2_t... " >&6; }
2238 if eval "test \"\${$3+set}\"" = set; then :
2239 $as_echo_n "(cached) " >&6
2242 # Order is important - never check a type that is potentially smaller
2243 # than half of the expected target width.
2244 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2245 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 $ac_includes_default
2252 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2259 if ac_fn_c_try_compile
"$LINENO"; then :
2264 eval "$3=\$ac_type" ;;
2267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2268 if eval test \"x\$
"$3"\" = x
"no"; then :
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2280 } # ac_fn_c_find_uintX_t
2282 # ac_fn_c_check_func LINENO FUNC VAR
2283 # ----------------------------------
2284 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2285 ac_fn_c_check_func
()
2287 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if eval "test \"\${$3+set}\"" = set; then :
2291 $as_echo_n "(cached) " >&6
2293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2297 #define $2 innocuous_$2
2299 /* System header to define __stub macros and hopefully few prototypes,
2300 which can conflict with char $2 (); below.
2301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2302 <limits.h> exists even on freestanding compilers. */
2305 # include <limits.h>
2307 # include <assert.h>
2312 /* Override any GCC internal prototype to avoid an error.
2313 Use char because int might match the return type of a GCC
2314 builtin and then its argument prototype would still apply. */
2319 /* The GNU C library defines this for functions which it implements
2320 to always fail with ENOSYS. Some functions are actually named
2321 something starting with __ and the normal name is an alias. */
2322 #if defined __stub_$2 || defined __stub___$2
2334 if ac_fn_c_try_link
"$LINENO"; then :
2339 rm -f core conftest.err conftest.
$ac_objext \
2340 conftest
$ac_exeext conftest.
$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2347 } # ac_fn_c_check_func
2348 cat >config.log
<<_ACEOF
2349 This file contains any messages produced by compilers while
2350 running configure, to aid debugging if configure makes a mistake.
2352 It was created by $as_me, which was
2353 generated by GNU Autoconf 2.66. Invocation command line was
2365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2374 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2375 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2377 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2378 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2379 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2380 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir
=.
2389 $as_echo "PATH: $as_dir"
2405 # Keep a trace of the command line.
2406 # Strip out --no-create and --no-recursion so they do not pile up.
2407 # Strip out --silent because we don't want to record it for future runs.
2408 # Also quote any args containing shell meta-characters.
2409 # Make two passes to allow for proper duplicate-argument suppression.
2413 ac_must_keep_next
=false
2419 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2420 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2421 |
-silent |
--silent |
--silen |
--sile |
--sil)
2424 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2429 as_fn_append ac_configure_args1
" '$ac_arg'"
2430 if test $ac_must_keep_next = true
; then
2431 ac_must_keep_next
=false
# Got value, back to normal.
2434 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2435 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2436 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2437 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2438 case "$ac_configure_args0 " in
2439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442 -* ) ac_must_keep_next
=true
;;
2445 as_fn_append ac_configure_args
" '$ac_arg'"
2450 { ac_configure_args0
=; unset ac_configure_args0
;}
2451 { ac_configure_args1
=; unset ac_configure_args1
;}
2453 # When interrupted or exit'd, cleanup temporary files, and complete
2454 # config.log. We remove comments because anyway the quotes in there
2455 # would cause problems or look ugly.
2456 # WARNING: Use '\'' to represent an apostrophe within the trap.
2457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2458 trap 'exit_status=$?
2459 # Save into config.log some information that might help in debugging.
2463 $as_echo "## ---------------- ##
2464 ## Cache variables. ##
2465 ## ---------------- ##"
2467 # The following way of writing the cache mishandles newlines in values,
2469 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2470 eval ac_val=\$$ac_var
2474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2478 _ | IFS | as_nl) ;; #(
2479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2480 *) { eval $ac_var=; unset $ac_var;} ;;
2485 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486 *${as_nl}ac_space=\ *)
2488 "s/'\''/'\''\\\\'\'''\''/g;
2489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2499 $as_echo "## ----------------- ##
2500 ## Output variables. ##
2501 ## ----------------- ##"
2503 for ac_var in $ac_subst_vars
2505 eval ac_val=\$$ac_var
2507 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 $as_echo "$ac_var='\''$ac_val'\''"
2513 if test -n "$ac_subst_files"; then
2514 $as_echo "## ------------------- ##
2515 ## File substitutions. ##
2516 ## ------------------- ##"
2518 for ac_var
in $ac_subst_files
2520 eval ac_val
=\$
$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2529 if test -s confdefs.h; then
2530 $as_echo "## ----------- ##
2537 test "$ac_signal" != 0 &&
2538 $as_echo "$as_me: caught signal $ac_signal"
2539 $as_echo "$as_me: exit $exit_status"
2541 rm -f core *.core core.conftest.* &&
2542 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2545 for ac_signal
in 1 2 13 15; do
2546 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2551 rm -f -r conftest
* confdefs.h
2553 $as_echo "/* confdefs.h */" > confdefs.h
2555 # Predefined preprocessor variables.
2557 cat >>confdefs.h
<<_ACEOF
2558 #define PACKAGE_NAME "$PACKAGE_NAME"
2561 cat >>confdefs.h
<<_ACEOF
2562 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2565 cat >>confdefs.h
<<_ACEOF
2566 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2569 cat >>confdefs.h
<<_ACEOF
2570 #define PACKAGE_STRING "$PACKAGE_STRING"
2573 cat >>confdefs.h
<<_ACEOF
2574 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2577 cat >>confdefs.h
<<_ACEOF
2578 #define PACKAGE_URL "$PACKAGE_URL"
2582 # Let the site file select an alternate cache file if it wants to.
2583 # Prefer an explicitly selected file to automatically selected ones.
2586 if test -n "$CONFIG_SITE"; then
2587 # We do not want a PATH search for config.site.
2588 case $CONFIG_SITE in #((
2589 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2590 */*) ac_site_file1
=$CONFIG_SITE;;
2591 *) ac_site_file1
=.
/$CONFIG_SITE;;
2593 elif test "x$prefix" != xNONE
; then
2594 ac_site_file1
=$prefix/share
/config.site
2595 ac_site_file2
=$prefix/etc
/config.site
2597 ac_site_file1
=$ac_default_prefix/share
/config.site
2598 ac_site_file2
=$ac_default_prefix/etc
/config.site
2600 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2602 test "x$ac_site_file" = xNONE
&& continue
2603 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2605 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2606 sed 's/^/| /' "$ac_site_file" >&5
2608 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 as_fn_error $?
"failed to load site script $ac_site_file
2611 See \`config.log' for more details" "$LINENO" 5; }
2615 if test -r "$cache_file"; then
2616 # Some versions of bash will fail to source /dev/null (special files
2617 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2618 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2620 $as_echo "$as_me: loading cache $cache_file" >&6;}
2622 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2623 *) .
"./$cache_file";;
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2628 $as_echo "$as_me: creating cache $cache_file" >&6;}
2632 as_fn_append ac_header_list
" stdlib.h"
2633 as_fn_append ac_header_list
" unistd.h"
2634 as_fn_append ac_header_list
" sys/param.h"
2635 # Check that the precious variables saved in the cache have kept the same
2637 ac_cache_corrupted
=false
2638 for ac_var
in $ac_precious_vars; do
2639 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2640 eval ac_new_set
=\
$ac_env_${ac_var}_set
2641 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2642 eval ac_new_val
=\
$ac_env_${ac_var}_value
2643 case $ac_old_set,$ac_new_set in
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2647 ac_cache_corrupted
=: ;;
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2651 ac_cache_corrupted
=: ;;
2654 if test "x$ac_old_val" != "x$ac_new_val"; then
2655 # differences in whitespace do not lead to failure.
2656 ac_old_val_w
=`echo x $ac_old_val`
2657 ac_new_val_w
=`echo x $ac_new_val`
2658 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2660 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2661 ac_cache_corrupted
=:
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2664 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2665 eval $ac_var=\
$ac_old_val
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2668 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2670 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2673 # Pass precious variables to config.status.
2674 if test "$ac_new_set" = set; then
2676 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2677 *) ac_arg
=$ac_var=$ac_new_val ;;
2679 case " $ac_configure_args " in
2680 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2681 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2685 if $ac_cache_corrupted; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2689 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2690 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2692 ## -------------------- ##
2693 ## Main body of script. ##
2694 ## -------------------- ##
2697 ac_cpp
='$CPP $CPPFLAGS'
2698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2704 ac_config_headers
="$ac_config_headers lib/misc/configure.h"
2707 ################################################################################
2709 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2710 if test -f "$ac_dir/install-sh"; then
2712 ac_install_sh
="$ac_aux_dir/install-sh -c"
2714 elif test -f "$ac_dir/install.sh"; then
2716 ac_install_sh
="$ac_aux_dir/install.sh -c"
2718 elif test -f "$ac_dir/shtool"; then
2720 ac_install_sh
="$ac_aux_dir/shtool install -c"
2724 if test -z "$ac_aux_dir"; then
2725 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2728 # These three variables are undocumented and unsupported,
2729 # and are intended to be withdrawn in a future Autoconf release.
2730 # They can cause serious problems if a builder's source tree is in a directory
2731 # whose full name contains unusual characters.
2732 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2733 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2734 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2738 ################################################################################
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2741 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if test "${ac_cv_build+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias
=$build_alias
2749 test "x$ac_build_alias" = x
&&
2750 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x
&&
2752 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS
=$IFS; IFS
='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if test "${ac_cv_host+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x
; then
2783 ac_cv_host
=$ac_cv_build
2785 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2797 ac_save_IFS
=$IFS; IFS
='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if test "${ac_cv_target+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2815 if test "x$target_alias" = x
; then
2816 ac_cv_target
=$ac_cv_host
2818 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2827 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2829 target
=$ac_cv_target
2830 ac_save_IFS
=$IFS; IFS
='-'
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2840 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2848 program_prefix
=${target_alias}-
2853 COPTIMISE_FLAG
="-O2"
2854 CLDFLAGS
="$CLDFLAGS -Wl,--version-script,.export.sym"
2855 ELDFLAGS
="-Wl,--export-dynamic"
2856 # FIXME Generate list and use --dynamic-list=.dlopen.sym
2857 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
2858 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
2859 LDDEPS
="$LDDEPS .export.sym"
2870 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
2871 COPTIMISE_FLAG
="-O2"
2872 CLDFLAGS
="$CLDFLAGS"
2874 CLDWHOLEARCHIVE
="-all_load"
2886 ################################################################################
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2889 if test "${ac_cv_path_SED+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2892 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2893 for ac_i
in 1 2 3 4 5 6 7; do
2894 ac_script
="$ac_script$as_nl$ac_script"
2896 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2897 { ac_script
=; unset ac_script
;}
2898 if test -z "$SED"; then
2899 ac_path_SED_found
=false
2900 # Loop through the user's path and test for each of PROGNAME-LIST
2901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir
=.
2906 for ac_prog
in sed gsed
; do
2907 for ac_exec_ext
in '' $ac_executable_extensions; do
2908 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2909 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
2910 # Check for GNU ac_path_SED and select it if it is found.
2911 # Check for GNU $ac_path_SED
2912 case `"$ac_path_SED" --version 2>&1` in
2914 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2917 $as_echo_n 0123456789 >"conftest.in"
2920 cat "conftest.in" "conftest.in" >"conftest.tmp"
2921 mv "conftest.tmp" "conftest.in"
2922 cp "conftest.in" "conftest.nl"
2923 $as_echo '' >> "conftest.nl"
2924 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2925 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2926 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2927 if test $ac_count -gt ${ac_path_SED_max-0}; then
2928 # Best one so far, save it but keep looking for a better one
2929 ac_cv_path_SED
="$ac_path_SED"
2930 ac_path_SED_max
=$ac_count
2932 # 10*(2^10) chars as input seems more than enough
2933 test $ac_count -gt 10 && break
2935 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2938 $ac_path_SED_found && break 3
2943 if test -z "$ac_cv_path_SED"; then
2944 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2952 $as_echo "$ac_cv_path_SED" >&6; }
2953 SED
="$ac_cv_path_SED"
2956 for ac_prog
in gawk mawk nawk
awk
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy
$ac_prog; ac_word
=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if test "${ac_cv_prog_AWK+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$AWK"; then
2966 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir
=.
2973 for ac_exec_ext
in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_AWK
="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 if test -n "$AWK"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2988 $as_echo "$AWK" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$AWK" && break
2999 ac_cpp
='$CPP $CPPFLAGS'
3000 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_CC+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC
="$CC" # Let the user override the test.
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3042 if test -z "$ac_cv_prog_CC"; then
3044 # Extract the first word of "gcc", so it can be a program name with args.
3045 set dummy gcc
; ac_word
=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir
=.
3059 for ac_exec_ext
in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_ac_ct_CC
="gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074 $as_echo "$ac_ct_CC" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3080 if test "x$ac_ct_CC" = x
; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned
=yes ;;
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC
="$CC" # Let the user override the test.
3107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir
=.
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3136 if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138 set dummy cc
; ac_word
=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected
=yes
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy
$ac_cv_prog_CC
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3176 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog
in cl.exe
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC
="$CC" # Let the user override the test.
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3233 test -n "$CC" && break
3236 if test -z "$CC"; then
3238 for ac_prog
in cl.exe
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy
$ac_prog; ac_word
=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir
=.
3255 for ac_exec_ext
in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_ac_ct_CC
="$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270 $as_echo "$ac_ct_CC" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3277 test -n "$ac_ct_CC" && break
3280 if test "x$ac_ct_CC" = x
; then
3283 case $cross_compiling:$ac_tool_warned in
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned
=yes ;;
3296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $?
"no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details" "$LINENO" 5; }
3301 # Provide some information about the compiler.
3302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3305 for ac_option
in --version -v -V -qversion; do
3306 { { ac_try
="$ac_compiler $ac_option >&5"
3308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315 if test -s conftest.err; then
3317 ... rest of stderr output deleted ...
3318 10q' conftest.err >conftest.er1
3319 cat conftest.er1 >&5
3321 rm -f conftest.er1 conftest.err
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3337 ac_clean_files_save=$ac_clean_files
3338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3339 # Try to create an executable without -o first, disregard a.out.
3340 # It will help us diagnose broken compilers, and finding out an intuition
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3346 # The possible output files:
3347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3350 for ac_file in $ac_files
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3359 if { { ac_try="$ac_link_default"
3361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3362 *) ac_try_echo
=$ac_try;;
3364 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link_default") 2>&5
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3373 # so that the user can short-circuit this test for compilers unknown to
3375 for ac_file
in $ac_files ''
3377 test -f "$ac_file" ||
continue
3379 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3382 # We found the default executable, but exeext='' is most
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3388 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3400 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3405 if test -z "$ac_file"; then :
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.
$ac_ext >&5
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error
77 "C compiler cannot create executables
3414 See \`config.log' for more details" "$LINENO" 5; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3422 $as_echo "$ac_file" >&6; }
3423 ac_exeext
=$ac_cv_exeext
3425 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3426 ac_clean_files
=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428 $as_echo_n "checking for suffix of executables... " >&6; }
3429 if { { ac_try
="$ac_link"
3431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3441 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3442 # work properly (i.e., refer to `conftest.exe'), while it won't with
3444 for ac_file
in conftest.exe conftest conftest.
*; do
3445 test -f "$ac_file" ||
continue
3447 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3448 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details" "$LINENO" 5; }
3459 rm -f conftest conftest
$ac_cv_exeext
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461 $as_echo "$ac_cv_exeext" >&6; }
3463 rm -f conftest.
$ac_ext
3464 EXEEXT
=$ac_cv_exeext
3466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3472 FILE *f = fopen ("conftest.out", "w");
3473 return ferror (f) || fclose (f) != 0;
3479 ac_clean_files
="$ac_clean_files conftest.out"
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3483 $as_echo_n "checking whether we are cross compiling... " >&6; }
3484 if test "$cross_compiling" != yes; then
3485 { { ac_try
="$ac_link"
3487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link") 2>&5
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 if { ac_try='./conftest$ac_cv_exeext'
3497 { { case "(($ac_try" in
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_try") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; }; then
3509 if test "$cross_compiling" = maybe
; then
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $?
"cannot run C compiled programs.
3515 If you meant to cross compile, use \`--host'.
3516 See \`config.log' for more details" "$LINENO" 5; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3521 $as_echo "$cross_compiling" >&6; }
3523 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3524 ac_clean_files
=$ac_clean_files_save
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3526 $as_echo_n "checking for suffix of object files... " >&6; }
3527 if test "${ac_cv_objext+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 rm -f conftest.o conftest.obj
3542 if { { ac_try
="$ac_compile"
3544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compile") 2>&5
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 for ac_file in conftest.o conftest.obj conftest.*; do
3554 test -f "$ac_file" || continue;
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3568 See \
`config.log' for more details" "$LINENO" 5; }
3570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3573 $as_echo "$ac_cv_objext" >&6; }
3574 OBJEXT=$ac_cv_objext
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3578 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3595 if ac_fn_c_try_compile "$LINENO"; then :
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3606 if test $ac_compiler_gnu = yes; then
3611 ac_test_CFLAGS=${CFLAGS+set}
3612 ac_save_CFLAGS=$CFLAGS
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3615 if test "${ac_cv_prog_cc_g+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 ac_save_c_werror_flag=$ac_c_werror_flag
3619 ac_c_werror_flag=yes
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3633 if ac_fn_c_try_compile "$LINENO"; then :
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"; then :
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3675 $as_echo "$ac_cv_prog_cc_g" >&6; }
3676 if test "$ac_test_CFLAGS" = set; then
3677 CFLAGS=$ac_save_CFLAGS
3678 elif test $ac_cv_prog_cc_g = yes; then
3679 if test "$GCC" = yes; then
3685 if test "$GCC" = yes; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3693 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_cv_prog_cc_c89=no
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 #include <sys/types.h>
3703 #include <sys/stat.h>
3704 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3705 struct buf { int x; };
3706 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3707 static char *e (p, i)
3713 static char *f (char * (*g) (char **, int), char **p, ...)
3718 s = g (p, va_arg (v,int));
3723 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3724 function prototypes and stuff, but not '\xHH' hex character constants.
3725 These don't provoke an error unfortunately, instead are silently treated
3726 as 'x'. The following induces an error, until -std is added to get
3727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3728 array size at least. It's necessary to write '\x00'==0 to get something
3729 that's true only with -std. */
3730 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3732 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3733 inside strings and character constants. */
3735 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3737 int test (int i, double x);
3738 struct s1 {int (*f) (int a);};
3739 struct s2 {int (*f) (double a);};
3740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3746 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3754 CC="$ac_save_CC $ac_arg"
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_prog_cc_c89=$ac_arg
3758 rm -f core conftest.err conftest.$ac_objext
3759 test "x$ac_cv_prog_cc_c89" != "xno" && break
3761 rm -f conftest.$ac_ext
3766 case "x$ac_cv_prog_cc_c89" in
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3769 $as_echo "none needed" >&6; } ;;
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3772 $as_echo "unsupported" >&6; } ;;
3774 CC="$CC $ac_cv_prog_cc_c89"
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3776 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778 if test "x$ac_cv_prog_cc_c89" != xno; then :
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3796 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3801 if test -z "$CPP"; then
3802 if test "${ac_cv_prog_CPP+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3805 # Double quotes because CPP needs to be expanded
3806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3809 for ac_c_preproc_warn_flag in '' yes
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3820 # include <limits.h>
3822 # include <assert.h>
3826 if ac_fn_c_try_cpp "$LINENO"; then :
3829 # Broken: fails on valid input.
3832 rm -f conftest.err conftest.$ac_ext
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if ac_fn_c_try_cpp "$LINENO"; then :
3841 # Broken: success on invalid input.
3844 # Passes both tests.
3848 rm -f conftest.err conftest.$ac_ext
3851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852 rm -f conftest.err conftest.
$ac_ext
3853 if $ac_preproc_ok; then :
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3866 $as_echo "$CPP" >&6; }
3868 for ac_c_preproc_warn_flag
in '' yes
3870 # Use a header file that comes with gcc, so configuring glibc
3871 # with a fresh cross-compiler works.
3872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873 # <limits.h> exists even on freestanding compilers.
3874 # On the NeXT, cc -E runs the code through the compiler's parser,
3875 # not just through cpp. "Syntax error" is here to catch this case.
3876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3879 # include <limits.h>
3881 # include <assert.h>
3885 if ac_fn_c_try_cpp
"$LINENO"; then :
3888 # Broken: fails on valid input.
3891 rm -f conftest.err conftest.
$ac_ext
3893 # OK, works on sane cases. Now check whether nonexistent headers
3894 # can be detected and how.
3895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <ac_nonexistent.h>
3899 if ac_fn_c_try_cpp
"$LINENO"; then :
3900 # Broken: success on invalid input.
3903 # Passes both tests.
3907 rm -f conftest.err conftest.
$ac_ext
3910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911 rm -f conftest.err conftest.
$ac_ext
3912 if $ac_preproc_ok; then :
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3918 See \`config.log' for more details" "$LINENO" 5; }
3922 ac_cpp
='$CPP $CPPFLAGS'
3923 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3930 if test "${ac_cv_path_GREP+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3933 if test -z "$GREP"; then
3934 ac_path_GREP_found
=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_prog
in grep ggrep
; do
3942 for ac_exec_ext
in '' $ac_executable_extensions; do
3943 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3949 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3952 $as_echo_n 0123456789 >"conftest.in"
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 $as_echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3960 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3961 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP
="$ac_path_GREP"
3965 ac_path_GREP_max
=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3970 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3973 $ac_path_GREP_found && break 3
3978 if test -z "$ac_cv_path_GREP"; then
3979 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3982 ac_cv_path_GREP
=$GREP
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3987 $as_echo "$ac_cv_path_GREP" >&6; }
3988 GREP
="$ac_cv_path_GREP"
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3992 $as_echo_n "checking for egrep... " >&6; }
3993 if test "${ac_cv_path_EGREP+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3997 then ac_cv_path_EGREP
="$GREP -E"
3999 if test -z "$EGREP"; then
4000 ac_path_EGREP_found
=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4003 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4006 test -z "$as_dir" && as_dir
=.
4007 for ac_prog
in egrep; do
4008 for ac_exec_ext
in '' $ac_executable_extensions; do
4009 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4011 # Check for GNU ac_path_EGREP and select it if it is found.
4012 # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4015 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4018 $as_echo_n 0123456789 >"conftest.in"
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'EGREP' >> "conftest.nl"
4025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4026 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4027 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_EGREP
="$ac_path_EGREP"
4031 ac_path_EGREP_max
=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4036 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4039 $ac_path_EGREP_found && break 3
4044 if test -z "$ac_cv_path_EGREP"; then
4045 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4048 ac_cv_path_EGREP
=$EGREP
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4054 $as_echo "$ac_cv_path_EGREP" >&6; }
4055 EGREP
="$ac_cv_path_EGREP"
4058 if test $ac_cv_c_compiler_gnu = yes; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4060 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4061 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4062 $as_echo_n "(cached) " >&6
4064 ac_pattern
="Autoconf.*'x'"
4065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4072 ac_cv_prog_gcc_traditional
=yes
4074 ac_cv_prog_gcc_traditional
=no
4079 if test $ac_cv_prog_gcc_traditional = no
; then
4080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4087 ac_cv_prog_gcc_traditional
=yes
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4094 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4095 if test $ac_cv_prog_gcc_traditional = yes; then
4096 CC
="$CC -traditional"
4100 # Find a good install program. We prefer a C program (faster),
4101 # so one script is as good as another. But avoid the broken or
4102 # incompatible versions:
4103 # SysV /etc/install, /usr/sbin/install
4104 # SunOS /usr/etc/install
4105 # IRIX /sbin/install
4107 # AmigaOS /C/install, which installs bootblocks on floppy discs
4108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4111 # OS/2's system install, which has a completely different semantic
4112 # ./install, which can be erroneously created by make from ./install.sh.
4113 # Reject install programs that cannot install multiple files.
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4115 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4116 if test -z "$INSTALL"; then
4117 if test "${ac_cv_path_install+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir
=.
4125 # Account for people who put trailing slashes in PATH elements.
4126 case $as_dir/ in #((
4127 .
/ | .
// |
/[cC
]/* | \
4128 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4129 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4132 # OSF1 and SCO ODT 3.0 have their own names for install.
4133 # Don't use installbsd from OSF since it installs stuff as root
4135 for ac_prog
in ginstall scoinst
install; do
4136 for ac_exec_ext
in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4138 if test $ac_prog = install &&
4139 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4140 # AIX install. It has an incompatible calling convention.
4142 elif test $ac_prog = install &&
4143 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4144 # program-specific install script used by HP pwplus--don't use.
4147 rm -rf conftest.one conftest.two conftest.dir
4148 echo one
> conftest.one
4149 echo two
> conftest.two
4151 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4152 test -s conftest.one
&& test -s conftest.two
&&
4153 test -s conftest.dir
/conftest.one
&&
4154 test -s conftest.dir
/conftest.two
4156 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4169 rm -rf conftest.one conftest.two conftest.dir
4172 if test "${ac_cv_path_install+set}" = set; then
4173 INSTALL
=$ac_cv_path_install
4175 # As a last resort, use the slow shell script. Don't cache a
4176 # value for INSTALL within a source directory, because that will
4177 # break other packages using the cache if that directory is
4178 # removed, or if the value is a relative name.
4179 INSTALL
=$ac_install_sh
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4183 $as_echo "$INSTALL" >&6; }
4185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4186 # It thinks the first close brace ends the variable substitution.
4187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4191 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4194 $as_echo_n "checking whether ln -s works... " >&6; }
4196 if test "$LN_S" = "ln -s"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198 $as_echo "yes" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4201 $as_echo "no, using $LN_S" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4207 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4208 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4209 $as_echo_n "(cached) " >&6
4211 cat >conftest.
make <<\_ACEOF
4214 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4219 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4221 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4225 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4227 $as_echo "yes" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 SET_MAKE
="MAKE=${MAKE-make}"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4236 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4237 if test -z "$MKDIR_P"; then
4238 if test "${ac_cv_path_mkdir+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4242 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4245 test -z "$as_dir" && as_dir
=.
4246 for ac_prog
in mkdir gmkdir
; do
4247 for ac_exec_ext
in '' $ac_executable_extensions; do
4248 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4249 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4250 'mkdir (GNU coreutils) '* | \
4251 'mkdir (coreutils) '* | \
4252 'mkdir (fileutils) '4.1*)
4253 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4263 test -d .
/--version && rmdir .
/--version
4264 if test "${ac_cv_path_mkdir+set}" = set; then
4265 MKDIR_P
="$ac_cv_path_mkdir -p"
4267 # As a last resort, use the slow shell script. Don't cache a
4268 # value for MKDIR_P within a source directory, because that will
4269 # break other packages using the cache if that directory is
4270 # removed, or if the value is a relative name.
4271 MKDIR_P
="$ac_install_sh -d"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4275 $as_echo "$MKDIR_P" >&6; }
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4279 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4285 if test -n "$RANLIB"; then
4286 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir
=.
4293 for ac_exec_ext
in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 RANLIB
=$ac_cv_prog_RANLIB
4306 if test -n "$RANLIB"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4308 $as_echo "$RANLIB" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$ac_cv_prog_RANLIB"; then
4317 ac_ct_RANLIB
=$RANLIB
4318 # Extract the first word of "ranlib", so it can be a program name with args.
4319 set dummy ranlib
; ac_word
=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$ac_ct_RANLIB"; then
4326 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir
=.
4333 for ac_exec_ext
in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4346 if test -n "$ac_ct_RANLIB"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4348 $as_echo "$ac_ct_RANLIB" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 if test "x$ac_ct_RANLIB" = x
; then
4357 case $cross_compiling:$ac_tool_warned in
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned
=yes ;;
4363 RANLIB
=$ac_ct_RANLIB
4366 RANLIB
="$ac_cv_prog_RANLIB"
4369 # Extract the first word of "cflow", so it can be a program name with args.
4370 set dummy cflow
; ac_word
=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4378 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
4381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4385 test -z "$as_dir" && as_dir
=.
4386 for ac_exec_ext
in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
4400 if test -n "$CFLOW_CMD"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4402 $as_echo "$CFLOW_CMD" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4409 # Extract the first word of "cscope", so it can be a program name with args.
4410 set dummy cscope
; ac_word
=$2
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 $as_echo_n "checking for $ac_word... " >&6; }
4413 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4418 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
4421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir
=.
4426 for ac_exec_ext
in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
4440 if test -n "$CSCOPE_CMD"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4442 $as_echo "$CSCOPE_CMD" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4450 ################################################################################
4452 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4453 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4455 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4456 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <sys/types.h>
4473 if ac_fn_c_try_compile
"$LINENO"; then :
4474 eval "$as_ac_Header=yes"
4476 eval "$as_ac_Header=no"
4478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4480 eval ac_res
=\$
$as_ac_Header
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4482 $as_echo "$ac_res" >&6; }
4483 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4484 cat >>confdefs.h
<<_ACEOF
4485 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4488 ac_header_dirent
=$ac_hdr; break
4492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4493 if test $ac_header_dirent = dirent.h
; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4495 $as_echo_n "checking for library containing opendir... " >&6; }
4496 if test "${ac_cv_search_opendir+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4499 ac_func_search_save_LIBS
=$LIBS
4500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4503 /* Override any GCC internal prototype to avoid an error.
4504 Use char because int might match the return type of a GCC
4505 builtin and then its argument prototype would still apply. */
4518 for ac_lib
in '' dir
; do
4519 if test -z "$ac_lib"; then
4520 ac_res
="none required"
4523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4525 if ac_fn_c_try_link
"$LINENO"; then :
4526 ac_cv_search_opendir
=$ac_res
4528 rm -f core conftest.err conftest.
$ac_objext \
4530 if test "${ac_cv_search_opendir+set}" = set; then :
4534 if test "${ac_cv_search_opendir+set}" = set; then :
4537 ac_cv_search_opendir
=no
4540 LIBS
=$ac_func_search_save_LIBS
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4543 $as_echo "$ac_cv_search_opendir" >&6; }
4544 ac_res
=$ac_cv_search_opendir
4545 if test "$ac_res" != no
; then :
4546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4552 $as_echo_n "checking for library containing opendir... " >&6; }
4553 if test "${ac_cv_search_opendir+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 ac_func_search_save_LIBS
=$LIBS
4557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4560 /* Override any GCC internal prototype to avoid an error.
4561 Use char because int might match the return type of a GCC
4562 builtin and then its argument prototype would still apply. */
4575 for ac_lib
in '' x
; do
4576 if test -z "$ac_lib"; then
4577 ac_res
="none required"
4580 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4582 if ac_fn_c_try_link
"$LINENO"; then :
4583 ac_cv_search_opendir
=$ac_res
4585 rm -f core conftest.err conftest.
$ac_objext \
4587 if test "${ac_cv_search_opendir+set}" = set; then :
4591 if test "${ac_cv_search_opendir+set}" = set; then :
4594 ac_cv_search_opendir
=no
4597 LIBS
=$ac_func_search_save_LIBS
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4600 $as_echo "$ac_cv_search_opendir" >&6; }
4601 ac_res
=$ac_cv_search_opendir
4602 if test "$ac_res" != no
; then :
4603 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4610 $as_echo_n "checking for ANSI C header files... " >&6; }
4611 if test "${ac_cv_header_stdc+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4629 if ac_fn_c_try_compile
"$LINENO"; then :
4630 ac_cv_header_stdc
=yes
4632 ac_cv_header_stdc
=no
4634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4636 if test $ac_cv_header_stdc = yes; then
4637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644 $EGREP "memchr" >/dev
/null
2>&1; then :
4647 ac_cv_header_stdc
=no
4653 if test $ac_cv_header_stdc = yes; then
4654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "free" >/dev
/null
2>&1; then :
4664 ac_cv_header_stdc
=no
4670 if test $ac_cv_header_stdc = yes; then
4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672 if test "$cross_compiling" = yes; then :
4675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4679 #if ((' ' & 0x0FF) == 0x020)
4680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683 # define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
4685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4702 if ac_fn_c_try_run
"$LINENO"; then :
4705 ac_cv_header_stdc
=no
4707 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4708 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4714 $as_echo "$ac_cv_header_stdc" >&6; }
4715 if test $ac_cv_header_stdc = yes; then
4717 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4722 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4723 inttypes.h stdint.h unistd.h
4725 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4728 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4729 cat >>confdefs.h
<<_ACEOF
4730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4739 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4740 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <sys/types.h>
4749 return makedev(0, 0);
4754 if ac_fn_c_try_link
"$LINENO"; then :
4755 ac_cv_header_sys_types_h_makedev
=yes
4757 ac_cv_header_sys_types_h_makedev
=no
4759 rm -f core conftest.err conftest.
$ac_objext \
4760 conftest
$ac_exeext conftest.
$ac_ext
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4764 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4766 if test $ac_cv_header_sys_types_h_makedev = no
; then
4767 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4768 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
4770 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4776 if test $ac_cv_header_sys_mkdev_h = no
; then
4777 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4778 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
4780 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4789 $as_echo_n "checking for ANSI C header files... " >&6; }
4790 if test "${ac_cv_header_stdc+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4808 if ac_fn_c_try_compile
"$LINENO"; then :
4809 ac_cv_header_stdc
=yes
4811 ac_cv_header_stdc
=no
4813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4815 if test $ac_cv_header_stdc = yes; then
4816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4823 $EGREP "memchr" >/dev
/null
2>&1; then :
4826 ac_cv_header_stdc
=no
4832 if test $ac_cv_header_stdc = yes; then
4833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 $EGREP "free" >/dev
/null
2>&1; then :
4843 ac_cv_header_stdc
=no
4849 if test $ac_cv_header_stdc = yes; then
4850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4851 if test "$cross_compiling" = yes; then :
4854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4858 #if ((' ' & 0x0FF) == 0x020)
4859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862 # define ISLOWER(c) \
4863 (('a' <= (c) && (c) <= 'i') \
4864 || ('j' <= (c) && (c) <= 'r') \
4865 || ('s' <= (c) && (c) <= 'z'))
4866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4874 for (i = 0; i < 256; i++)
4875 if (XOR (islower (i), ISLOWER (i))
4876 || toupper (i) != TOUPPER (i))
4881 if ac_fn_c_try_run
"$LINENO"; then :
4884 ac_cv_header_stdc
=no
4886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4893 $as_echo "$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4896 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4901 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4902 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <sys/types.h>
4908 #include <sys/wait.h>
4910 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4913 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4921 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4926 if ac_fn_c_try_compile
"$LINENO"; then :
4927 ac_cv_header_sys_wait_h
=yes
4929 ac_cv_header_sys_wait_h
=no
4931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4934 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4935 if test $ac_cv_header_sys_wait_h = yes; then
4937 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4942 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4943 if test "${ac_cv_header_time+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4949 #include <sys/time.h>
4955 if ((struct tm *) 0)
4961 if ac_fn_c_try_compile
"$LINENO"; then :
4962 ac_cv_header_time
=yes
4964 ac_cv_header_time
=no
4966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4969 $as_echo "$ac_cv_header_time" >&6; }
4970 if test $ac_cv_header_time = yes; then
4972 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4977 for ac_header
in locale.h stddef.h syslog.h sys
/file.h sys
/time.h assert.h \
4978 langinfo.h libgen.h signal.h sys
/mman.h sys
/resource.h sys
/utsname.h \
4981 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4983 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4984 cat >>confdefs.h
<<_ACEOF
4985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4989 as_fn_error $?
"bailing out" "$LINENO" 5
4997 for ac_header
in asm
/byteorder.h linux
/fs.h malloc.h
4999 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5000 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5001 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5002 cat >>confdefs.h
<<_ACEOF
5003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 as_fn_error $?
"bailing out" "$LINENO" 5
5013 for ac_header
in machine
/endian.h sys
/disk.h
5015 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5017 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5018 cat >>confdefs.h
<<_ACEOF
5019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023 as_fn_error $?
"bailing out" "$LINENO" 5
5030 for ac_header
in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5031 stdarg.h stdio.h stdlib.h string.h sys
/ioctl.h sys
/param.h sys
/stat.h \
5032 sys
/types.h unistd.h
5034 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5035 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5036 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5037 cat >>confdefs.h
<<_ACEOF
5038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 as_fn_error $?
"bailing out" "$LINENO" 5
5047 for ac_header
in termios.h sys
/statvfs.h
5049 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5051 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5052 cat >>confdefs.h
<<_ACEOF
5053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5061 ################################################################################
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5063 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5064 if test "${ac_cv_c_const+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5073 /* FIXME: Include the comments suggested by Paul. */
5075 /* Ultrix mips cc rejects this. */
5076 typedef int charset[2];
5078 /* SunOS 4.1.1 cc rejects this. */
5079 char const *const *pcpcc;
5081 /* NEC SVR4.0.2 mips cc rejects this. */
5082 struct point {int x, y;};
5083 static struct point const zero = {0,0};
5084 /* AIX XL C 1.02.0.0 rejects this.
5085 It does not let you subtract one const X* pointer from another in
5086 an arm of an if-expression whose if-part is not a constant
5088 const char *g = "string";
5089 pcpcc = &g + (g ? g-g : 0);
5090 /* HPUX 7.0 cc rejects these. */
5092 ppc = (char**) pcpcc;
5093 pcpcc = (char const *const *) ppc;
5094 { /* SCO 3.2v4 cc rejects this. */
5096 char const *s = 0 ? (char *) 0 : (char const *) 0;
5101 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5103 const int *foo = &x[0];
5106 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5107 typedef const int *iptr;
5111 { /* AIX XL C 1.02.0.0 rejects this saying
5112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5113 struct s { int j; const int *ap[3]; };
5114 struct s *b; b->j = 5;
5116 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5120 return !cs[0] && !zero.x;
5127 if ac_fn_c_try_compile
"$LINENO"; then :
5132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5135 $as_echo "$ac_cv_c_const" >&6; }
5136 if test $ac_cv_c_const = no
; then
5138 $as_echo "#define const /**/" >>confdefs.h
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5143 $as_echo_n "checking for inline... " >&6; }
5144 if test "${ac_cv_c_inline+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5148 for ac_kw
in inline __inline__ __inline
; do
5149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5153 static $ac_kw foo_t static_foo () {return 0; }
5154 $ac_kw foo_t foo () {return 0; }
5158 if ac_fn_c_try_compile
"$LINENO"; then :
5159 ac_cv_c_inline
=$ac_kw
5161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5162 test "$ac_cv_c_inline" != no
&& break
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5167 $as_echo "$ac_cv_c_inline" >&6; }
5169 case $ac_cv_c_inline in
5172 case $ac_cv_c_inline in
5174 *) ac_val
=$ac_cv_c_inline;;
5176 cat >>confdefs.h
<<_ACEOF
5178 #define inline $ac_val
5184 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5185 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5187 cat >>confdefs.h
<<_ACEOF
5188 #define HAVE_STRUCT_STAT_ST_RDEV 1
5194 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5195 if test "x$ac_cv_type_off_t" = x
""yes; then :
5199 cat >>confdefs.h
<<_ACEOF
5200 #define off_t long int
5205 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5206 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5210 cat >>confdefs.h
<<_ACEOF
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5217 $as_echo_n "checking return type of signal handlers... " >&6; }
5218 if test "${ac_cv_type_signal+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 #include <sys/types.h>
5229 return *(signal (0, 0)) (0) == 1;
5234 if ac_fn_c_try_compile
"$LINENO"; then :
5235 ac_cv_type_signal
=int
5237 ac_cv_type_signal
=void
5239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5242 $as_echo "$ac_cv_type_signal" >&6; }
5244 cat >>confdefs.h
<<_ACEOF
5245 #define RETSIGTYPE $ac_cv_type_signal
5249 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5250 if test "x$ac_cv_type_size_t" = x
""yes; then :
5254 cat >>confdefs.h
<<_ACEOF
5255 #define size_t unsigned int
5260 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5261 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5265 cat >>confdefs.h
<<_ACEOF
5271 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5272 case $ac_cv_c_int8_t in #(
5276 cat >>confdefs.h
<<_ACEOF
5277 #define int8_t $ac_cv_c_int8_t
5282 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5283 case $ac_cv_c_int16_t in #(
5287 cat >>confdefs.h
<<_ACEOF
5288 #define int16_t $ac_cv_c_int16_t
5293 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5294 case $ac_cv_c_int32_t in #(
5298 cat >>confdefs.h
<<_ACEOF
5299 #define int32_t $ac_cv_c_int32_t
5304 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5305 case $ac_cv_c_int64_t in #(
5309 cat >>confdefs.h
<<_ACEOF
5310 #define int64_t $ac_cv_c_int64_t
5315 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5316 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5320 cat >>confdefs.h
<<_ACEOF
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5327 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5328 if test "${ac_cv_type_uid_t+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <sys/types.h>
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "uid_t" >/dev
/null
2>&1; then :
5338 ac_cv_type_uid_t
=yes
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5346 $as_echo "$ac_cv_type_uid_t" >&6; }
5347 if test $ac_cv_type_uid_t = no
; then
5349 $as_echo "#define uid_t int" >>confdefs.h
5352 $as_echo "#define gid_t int" >>confdefs.h
5356 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5357 case $ac_cv_c_uint8_t in #(
5361 $as_echo "#define _UINT8_T 1" >>confdefs.h
5364 cat >>confdefs.h
<<_ACEOF
5365 #define uint8_t $ac_cv_c_uint8_t
5370 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5371 case $ac_cv_c_uint16_t in #(
5376 cat >>confdefs.h
<<_ACEOF
5377 #define uint16_t $ac_cv_c_uint16_t
5382 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5383 case $ac_cv_c_uint32_t in #(
5387 $as_echo "#define _UINT32_T 1" >>confdefs.h
5390 cat >>confdefs.h
<<_ACEOF
5391 #define uint32_t $ac_cv_c_uint32_t
5396 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5397 case $ac_cv_c_uint64_t in #(
5401 $as_echo "#define _UINT64_T 1" >>confdefs.h
5404 cat >>confdefs.h
<<_ACEOF
5405 #define uint64_t $ac_cv_c_uint64_t
5410 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5411 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5413 cat >>confdefs.h
<<_ACEOF
5414 #define HAVE_STRUCT_STAT_ST_RDEV 1
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5421 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5422 if test "${ac_cv_struct_tm+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <sys/types.h>
5434 int *p = &tm.tm_sec;
5440 if ac_fn_c_try_compile
"$LINENO"; then :
5441 ac_cv_struct_tm
=time.h
5443 ac_cv_struct_tm
=sys
/time.h
5445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5448 $as_echo "$ac_cv_struct_tm" >&6; }
5449 if test $ac_cv_struct_tm = sys
/time.h
; then
5451 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5456 ################################################################################
5457 for ac_func
in ftruncate gethostname getpagesize \
5458 gettimeofday memset mkdir
mkfifo rmdir munmap nl_langinfo setenv setlocale \
5459 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5460 strstr strtol strtoul uname
5462 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5463 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5464 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5465 cat >>confdefs.h
<<_ACEOF
5466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5470 as_fn_error $?
"bailing out" "$LINENO" 5
5474 for ac_func
in siginterrupt
5476 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5477 if test "x$ac_cv_func_siginterrupt" = x
""yes; then :
5478 cat >>confdefs.h
<<_ACEOF
5479 #define HAVE_SIGINTERRUPT 1
5485 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5486 # for constant arguments. Useless!
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5488 $as_echo_n "checking for working alloca.h... " >&6; }
5489 if test "${ac_cv_working_alloca_h+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5498 char *p = (char *) alloca (2 * sizeof (int));
5504 if ac_fn_c_try_link
"$LINENO"; then :
5505 ac_cv_working_alloca_h
=yes
5507 ac_cv_working_alloca_h
=no
5509 rm -f core conftest.err conftest.
$ac_objext \
5510 conftest
$ac_exeext conftest.
$ac_ext
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5513 $as_echo "$ac_cv_working_alloca_h" >&6; }
5514 if test $ac_cv_working_alloca_h = yes; then
5516 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5521 $as_echo_n "checking for alloca... " >&6; }
5522 if test "${ac_cv_func_alloca_works+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5528 # define alloca __builtin_alloca
5531 # include <malloc.h>
5532 # define alloca _alloca
5534 # ifdef HAVE_ALLOCA_H
5535 # include <alloca.h>
5540 # ifndef alloca /* predefined by HP cc +Olibcalls */
5551 char *p = (char *) alloca (1);
5557 if ac_fn_c_try_link
"$LINENO"; then :
5558 ac_cv_func_alloca_works
=yes
5560 ac_cv_func_alloca_works
=no
5562 rm -f core conftest.err conftest.
$ac_objext \
5563 conftest
$ac_exeext conftest.
$ac_ext
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5566 $as_echo "$ac_cv_func_alloca_works" >&6; }
5568 if test $ac_cv_func_alloca_works = yes; then
5570 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5573 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5574 # that cause trouble. Some versions do not even contain alloca or
5575 # contain a buggy version. If you still want to use their alloca,
5576 # use ar to extract alloca.o from them instead of compiling alloca.c.
5578 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5580 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5584 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5585 if test "${ac_cv_os_cray+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #if defined CRAY && ! defined CRAY2
5597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "webecray" >/dev
/null
2>&1; then :
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5607 $as_echo "$ac_cv_os_cray" >&6; }
5608 if test $ac_cv_os_cray = yes; then
5609 for ac_func
in _getb67 GETB67 getb67
; do
5610 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5611 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5612 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5614 cat >>confdefs.h
<<_ACEOF
5615 #define CRAY_STACKSEG_END $ac_func
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5625 $as_echo_n "checking stack direction for C alloca... " >&6; }
5626 if test "${ac_cv_c_stack_direction+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5629 if test "$cross_compiling" = yes; then :
5630 ac_cv_c_stack_direction
=0
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 $ac_includes_default
5636 find_stack_direction ()
5638 static char *addr = 0;
5643 return find_stack_direction ();
5646 return (&dummy > addr) ? 1 : -1;
5652 return find_stack_direction () < 0;
5655 if ac_fn_c_try_run
"$LINENO"; then :
5656 ac_cv_c_stack_direction
=1
5658 ac_cv_c_stack_direction
=-1
5660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5666 $as_echo "$ac_cv_c_stack_direction" >&6; }
5667 cat >>confdefs.h
<<_ACEOF
5668 #define STACK_DIRECTION $ac_cv_c_stack_direction
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5675 $as_echo_n "checking whether closedir returns void... " >&6; }
5676 if test "${ac_cv_func_closedir_void+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5679 if test "$cross_compiling" = yes; then :
5680 ac_cv_func_closedir_void
=yes
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 #include <$ac_header_dirent>
5693 return closedir (opendir (".")) != 0;
5698 if ac_fn_c_try_run
"$LINENO"; then :
5699 ac_cv_func_closedir_void
=no
5701 ac_cv_func_closedir_void
=yes
5703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5709 $as_echo "$ac_cv_func_closedir_void" >&6; }
5710 if test $ac_cv_func_closedir_void = yes; then
5712 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5716 for ac_header
in unistd.h
5718 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5719 if test "x$ac_cv_header_unistd_h" = x
""yes; then :
5720 cat >>confdefs.h
<<_ACEOF
5721 #define HAVE_UNISTD_H 1
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5729 $as_echo_n "checking for working chown... " >&6; }
5730 if test "${ac_cv_func_chown_works+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 if test "$cross_compiling" = yes; then :
5734 ac_cv_func_chown_works
=no
5736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 $ac_includes_default
5744 char *f = "conftest.chown";
5745 struct stat before, after;
5747 if (creat (f, 0600) < 0)
5749 if (stat (f, &before) < 0)
5751 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5753 if (stat (f, &after) < 0)
5755 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5761 if ac_fn_c_try_run
"$LINENO"; then :
5762 ac_cv_func_chown_works
=yes
5764 ac_cv_func_chown_works
=no
5766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5770 rm -f conftest.chown
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5774 $as_echo "$ac_cv_func_chown_works" >&6; }
5775 if test $ac_cv_func_chown_works = yes; then
5777 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5781 for ac_header
in vfork.h
5783 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5784 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5785 cat >>confdefs.h
<<_ACEOF
5786 #define HAVE_VFORK_H 1
5793 for ac_func
in fork vfork
5795 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5796 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5797 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5798 cat >>confdefs.h
<<_ACEOF
5799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5805 if test "x$ac_cv_func_fork" = xyes
; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5807 $as_echo_n "checking for working fork... " >&6; }
5808 if test "${ac_cv_func_fork_works+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5811 if test "$cross_compiling" = yes; then :
5812 ac_cv_func_fork_works
=cross
5814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 $ac_includes_default
5821 /* By Ruediger Kuhlmann. */
5828 if ac_fn_c_try_run
"$LINENO"; then :
5829 ac_cv_func_fork_works
=yes
5831 ac_cv_func_fork_works
=no
5833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5839 $as_echo "$ac_cv_func_fork_works" >&6; }
5842 ac_cv_func_fork_works
=$ac_cv_func_fork
5844 if test "x$ac_cv_func_fork_works" = xcross
; then
5846 *-*-amigaos* |
*-*-msdosdjgpp*)
5847 # Override, as these systems have only a dummy fork() stub
5848 ac_cv_func_fork_works
=no
5851 ac_cv_func_fork_works
=yes
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5855 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5857 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5858 if test "x$ac_cv_func_vfork" = xyes
; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5860 $as_echo_n "checking for working vfork... " >&6; }
5861 if test "${ac_cv_func_vfork_works+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if test "$cross_compiling" = yes; then :
5865 ac_cv_func_vfork_works
=cross
5867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 /* Thanks to Paul Eggert for this test. */
5870 $ac_includes_default
5871 #include <sys/wait.h>
5875 /* On some sparc systems, changes by the child to local and incoming
5876 argument registers are propagated back to the parent. The compiler
5877 is told about this with #include <vfork.h>, but some compilers
5878 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5879 static variable whose address is put into a register that is
5880 clobbered by the vfork. */
5883 sparc_address_test (int arg)
5885 sparc_address_test (arg) int arg;
5906 pid_t parent = getpid ();
5909 sparc_address_test (0);
5914 /* Here is another test for sparc vfork register problems. This
5915 test uses lots of local variables, at least as many local
5916 variables as main has allocated so far including compiler
5917 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5918 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5919 reuse the register of parent for one of the local variables,
5920 since it will think that parent can't possibly be used any more
5921 in this routine. Assigning to the local variable will thus
5922 munge parent in the parent process. */
5924 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5925 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5926 /* Convince the compiler that p..p7 are live; otherwise, it might
5927 use the same hardware register for all 8 local variables. */
5928 if (p != p1 || p != p2 || p != p3 || p != p4
5929 || p != p5 || p != p6 || p != p7)
5932 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5933 from child file descriptors. If the child closes a descriptor
5934 before it execs or exits, this munges the parent's descriptor
5935 as well. Test for this by closing stdout in the child. */
5936 _exit(close(fileno(stdout)) != 0);
5941 while (wait(&status) != child)
5944 /* Was there some problem with vforking? */
5947 /* Did the child fail? (This shouldn't happen.) */
5950 /* Did the vfork/compiler bug occur? */
5951 || parent != getpid()
5953 /* Did the file descriptor bug occur? */
5954 || fstat(fileno(stdout), &st) != 0
5959 if ac_fn_c_try_run
"$LINENO"; then :
5960 ac_cv_func_vfork_works
=yes
5962 ac_cv_func_vfork_works
=no
5964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5970 $as_echo "$ac_cv_func_vfork_works" >&6; }
5973 if test "x$ac_cv_func_fork_works" = xcross
; then
5974 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5976 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5979 if test "x$ac_cv_func_vfork_works" = xyes
; then
5981 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5985 $as_echo "#define vfork fork" >>confdefs.h
5988 if test "x$ac_cv_func_fork_works" = xyes
; then
5990 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5995 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5996 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5999 rm -f conftest.sym conftest.
file
6001 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
6002 if test "$cross_compiling" = yes; then :
6003 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007 $ac_includes_default
6012 /* Linux will dereference the symlink and fail, as required by POSIX.
6013 That is better in the sense that it means we will not
6014 have to compile and use the lstat wrapper. */
6015 return lstat ("conftest.sym/", &sbuf) == 0;
6020 if ac_fn_c_try_run
"$LINENO"; then :
6021 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
6023 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6030 # If the `ln -s' command failed, then we probably don't even
6031 # have an lstat function.
6032 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6034 rm -f conftest.sym conftest.
file
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6038 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6040 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6042 cat >>confdefs.h
<<_ACEOF
6043 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6047 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
6048 case " $LIBOBJS " in
6049 *" lstat.$ac_objext "* ) ;;
6050 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6057 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6058 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6061 if test "$cross_compiling" = yes; then :
6062 ac_cv_func_lstat_empty_string_bug
=yes
6064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 $ac_includes_default
6071 return lstat ("", &sbuf) == 0;
6076 if ac_fn_c_try_run
"$LINENO"; then :
6077 ac_cv_func_lstat_empty_string_bug
=no
6079 ac_cv_func_lstat_empty_string_bug
=yes
6081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6087 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6088 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6089 case " $LIBOBJS " in
6090 *" lstat.$ac_objext "* ) ;;
6091 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6096 cat >>confdefs.h
<<_ACEOF
6097 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6102 for ac_header
in stdlib.h
6104 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6105 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6106 cat >>confdefs.h
<<_ACEOF
6107 #define HAVE_STDLIB_H 1
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6115 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6116 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6119 if test "$cross_compiling" = yes; then :
6120 ac_cv_func_malloc_0_nonnull
=no
6122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6125 # include <stdlib.h>
6133 return ! malloc (0);
6138 if ac_fn_c_try_run
"$LINENO"; then :
6139 ac_cv_func_malloc_0_nonnull
=yes
6141 ac_cv_func_malloc_0_nonnull
=no
6143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6149 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6150 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6152 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6155 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6157 case " $LIBOBJS " in
6158 *" malloc.$ac_objext "* ) ;;
6159 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6164 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6170 $as_echo_n "checking for working memcmp... " >&6; }
6171 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 if test "$cross_compiling" = yes; then :
6175 ac_cv_func_memcmp_working
=no
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 $ac_includes_default
6184 /* Some versions of memcmp are not 8-bit clean. */
6185 char c0 = '\100', c1 = '\200', c2 = '\201';
6186 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6189 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6190 or more and with at least one buffer not starting on a 4-byte boundary.
6191 William Lewis provided this test program. */
6196 for (i = 0; i < 4; i++)
6200 strcpy (a, "--------01111111");
6201 strcpy (b, "--------10000000");
6202 if (memcmp (a, b, 16) >= 0)
6212 if ac_fn_c_try_run
"$LINENO"; then :
6213 ac_cv_func_memcmp_working
=yes
6215 ac_cv_func_memcmp_working
=no
6217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6223 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6224 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6225 *" memcmp.$ac_objext "* ) ;;
6226 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6234 for ac_header
in $ac_header_list
6236 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6237 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6239 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6240 cat >>confdefs.h
<<_ACEOF
6241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6255 for ac_func
in getpagesize
6257 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6258 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6259 cat >>confdefs.h
<<_ACEOF
6260 #define HAVE_GETPAGESIZE 1
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6267 $as_echo_n "checking for working mmap... " >&6; }
6268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 if test "$cross_compiling" = yes; then :
6272 ac_cv_func_mmap_fixed_mapped
=no
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 $ac_includes_default
6277 /* malloc might have been renamed as rpl_malloc. */
6280 /* Thanks to Mike Haertel and Jim Avera for this test.
6281 Here is a matrix of mmap possibilities:
6282 mmap private not fixed
6283 mmap private fixed at somewhere currently unmapped
6284 mmap private fixed at somewhere already mapped
6285 mmap shared not fixed
6286 mmap shared fixed at somewhere currently unmapped
6287 mmap shared fixed at somewhere already mapped
6288 For private mappings, we should verify that changes cannot be read()
6289 back from the file, nor mmap's back from the file at a different
6290 address. (There have been systems where private was not correctly
6291 implemented like the infamous i386 svr4.0, and systems where the
6292 VM page cache was not coherent with the file system buffer cache
6293 like early versions of FreeBSD and possibly contemporary NetBSD.)
6294 For shared mappings, we should conversely verify that changes get
6295 propagated back to all the places they're supposed to be.
6297 Grep wants private fixed already mapped.
6298 The main things grep needs to know about mmap are:
6299 * does it exist and is it safe to write into the mmap'd area
6300 * how to use it (BSD variants) */
6303 #include <sys/mman.h>
6305 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6309 /* This mess was copied from the GNU getpagesize.h. */
6310 #ifndef HAVE_GETPAGESIZE
6311 # ifdef _SC_PAGESIZE
6312 # define getpagesize() sysconf(_SC_PAGESIZE)
6313 # else /* no _SC_PAGESIZE */
6314 # ifdef HAVE_SYS_PARAM_H
6315 # include <sys/param.h>
6316 # ifdef EXEC_PAGESIZE
6317 # define getpagesize() EXEC_PAGESIZE
6318 # else /* no EXEC_PAGESIZE */
6320 # define getpagesize() NBPG * CLSIZE
6323 # endif /* no CLSIZE */
6324 # else /* no NBPG */
6326 # define getpagesize() NBPC
6327 # else /* no NBPC */
6329 # define getpagesize() PAGESIZE
6330 # endif /* PAGESIZE */
6331 # endif /* no NBPC */
6332 # endif /* no NBPG */
6333 # endif /* no EXEC_PAGESIZE */
6334 # else /* no HAVE_SYS_PARAM_H */
6335 # define getpagesize() 8192 /* punt totally */
6336 # endif /* no HAVE_SYS_PARAM_H */
6337 # endif /* no _SC_PAGESIZE */
6339 #endif /* no HAVE_GETPAGESIZE */
6344 char *data, *data2, *data3;
6349 pagesize = getpagesize ();
6351 /* First, make a file with some known garbage in it. */
6352 data = (char *) malloc (pagesize);
6355 for (i = 0; i < pagesize; ++i)
6356 *(data + i) = rand ();
6358 fd = creat ("conftest.mmap", 0600);
6361 if (write (fd, data, pagesize) != pagesize)
6365 /* Next, check that the tail of a page is zero-filled. File must have
6366 non-zero length, otherwise we risk SIGBUS for entire page. */
6367 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6371 if (write (fd2, cdata2, 1) != 1)
6373 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6374 if (data2 == MAP_FAILED)
6376 for (i = 0; i < pagesize; ++i)
6380 if (munmap (data2, pagesize))
6383 /* Next, try to mmap the file at a fixed address which already has
6384 something else allocated at it. If we can, also make sure that
6385 we see the same garbage. */
6386 fd = open ("conftest.mmap", O_RDWR);
6389 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6390 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6392 for (i = 0; i < pagesize; ++i)
6393 if (*(data + i) != *(data2 + i))
6396 /* Finally, make sure that changes to the mapped area do not
6397 percolate back to the file as seen by read(). (This is a bug on
6398 some variants of i386 svr4.0.) */
6399 for (i = 0; i < pagesize; ++i)
6400 *(data2 + i) = *(data2 + i) + 1;
6401 data3 = (char *) malloc (pagesize);
6404 if (read (fd, data3, pagesize) != pagesize)
6406 for (i = 0; i < pagesize; ++i)
6407 if (*(data + i) != *(data3 + i))
6413 if ac_fn_c_try_run
"$LINENO"; then :
6414 ac_cv_func_mmap_fixed_mapped
=yes
6416 ac_cv_func_mmap_fixed_mapped
=no
6418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6424 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6425 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6427 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6430 rm -f conftest.mmap conftest.txt
6432 for ac_header
in stdlib.h
6434 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6435 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6436 cat >>confdefs.h
<<_ACEOF
6437 #define HAVE_STDLIB_H 1
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6445 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6446 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6449 if test "$cross_compiling" = yes; then :
6450 ac_cv_func_realloc_0_nonnull
=no
6452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6455 # include <stdlib.h>
6463 return ! realloc (0, 0);
6468 if ac_fn_c_try_run
"$LINENO"; then :
6469 ac_cv_func_realloc_0_nonnull
=yes
6471 ac_cv_func_realloc_0_nonnull
=no
6473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6479 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6480 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6482 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6485 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6487 case " $LIBOBJS " in
6488 *" realloc.$ac_objext "* ) ;;
6489 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6494 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6500 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6501 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 if test "$cross_compiling" = yes; then :
6505 ac_cv_func_stat_empty_string_bug
=yes
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 $ac_includes_default
6514 return stat ("", &sbuf) == 0;
6519 if ac_fn_c_try_run
"$LINENO"; then :
6520 ac_cv_func_stat_empty_string_bug
=no
6522 ac_cv_func_stat_empty_string_bug
=yes
6524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6530 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6531 if test $ac_cv_func_stat_empty_string_bug = yes; then
6532 case " $LIBOBJS " in
6533 *" stat.$ac_objext "* ) ;;
6534 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
6539 cat >>confdefs.h
<<_ACEOF
6540 #define HAVE_STAT_EMPTY_STRING_BUG 1
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6546 $as_echo_n "checking for working strtod... " >&6; }
6547 if test "${ac_cv_func_strtod+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 if test "$cross_compiling" = yes; then :
6551 ac_cv_func_strtod
=no
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 $ac_includes_default
6564 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6565 char *string = " +69";
6568 value = strtod (string, &term);
6569 if (value != 69 || term != (string + 4))
6574 /* Under Solaris 2.4, strtod returns the wrong value for the
6575 terminating character under some conditions. */
6576 char *string = "NaN";
6578 strtod (string, &term);
6579 if (term != string && *(term - 1) == 0)
6586 if ac_fn_c_try_run
"$LINENO"; then :
6587 ac_cv_func_strtod
=yes
6589 ac_cv_func_strtod
=no
6591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6597 $as_echo "$ac_cv_func_strtod" >&6; }
6598 if test $ac_cv_func_strtod = no
; then
6599 case " $LIBOBJS " in
6600 *" strtod.$ac_objext "* ) ;;
6601 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
6605 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
6606 if test "x$ac_cv_func_pow" = x
""yes; then :
6610 if test $ac_cv_func_pow = no
; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6612 $as_echo_n "checking for pow in -lm... " >&6; }
6613 if test "${ac_cv_lib_m_pow+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6616 ac_check_lib_save_LIBS
=$LIBS
6618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6621 /* Override any GCC internal prototype to avoid an error.
6622 Use char because int might match the return type of a GCC
6623 builtin and then its argument prototype would still apply. */
6636 if ac_fn_c_try_link
"$LINENO"; then :
6641 rm -f core conftest.err conftest.
$ac_objext \
6642 conftest
$ac_exeext conftest.
$ac_ext
6643 LIBS
=$ac_check_lib_save_LIBS
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6646 $as_echo "$ac_cv_lib_m_pow" >&6; }
6647 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6651 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6658 for ac_func
in vprintf
6660 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6661 if test "x$ac_cv_func_vprintf" = x
""yes; then :
6662 cat >>confdefs.h
<<_ACEOF
6663 #define HAVE_VPRINTF 1
6666 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6667 if test "x$ac_cv_func__doprnt" = x
""yes; then :
6669 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6678 ################################################################################
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6680 $as_echo_n "checking whether to use static linking... " >&6; }
6681 # Check whether --enable-static_link was given.
6682 if test "${enable_static_link+set}" = set; then :
6683 enableval
=$enable_static_link; STATIC_LINK
=$enableval
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6689 $as_echo "$STATIC_LINK" >&6; }
6691 ################################################################################
6694 ################################################################################
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6696 $as_echo_n "checking file owner... " >&6; }
6698 # Check whether --with-user was given.
6699 if test "${with_user+set}" = set; then :
6700 withval
=$with_user; OWNER
=$withval
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6704 $as_echo "$OWNER" >&6; }
6706 if test x
$OWNER != x
; then
6707 INSTALL
="$INSTALL -o $OWNER"
6710 ################################################################################
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6712 $as_echo_n "checking group owner... " >&6; }
6714 # Check whether --with-group was given.
6715 if test "${with_group+set}" = set; then :
6716 withval
=$with_group; GROUP
=$withval
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6720 $as_echo "$GROUP" >&6; }
6722 if test x
$GROUP != x
; then
6723 INSTALL
="$INSTALL -g $GROUP"
6726 ################################################################################
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6728 $as_echo_n "checking device node uid... " >&6; }
6731 # Check whether --with-device-uid was given.
6732 if test "${with_device_uid+set}" = set; then :
6733 withval
=$with_device_uid; DM_DEVICE_UID
=$withval
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6739 $as_echo "$DM_DEVICE_UID" >&6; }
6741 ################################################################################
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6743 $as_echo_n "checking device node gid... " >&6; }
6746 # Check whether --with-device-gid was given.
6747 if test "${with_device_gid+set}" = set; then :
6748 withval
=$with_device_gid; DM_DEVICE_GID
=$withval
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6754 $as_echo "$DM_DEVICE_GID" >&6; }
6756 ################################################################################
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6758 $as_echo_n "checking device node mode... " >&6; }
6761 # Check whether --with-device-mode was given.
6762 if test "${with_device_mode+set}" = set; then :
6763 withval
=$with_device_mode; DM_DEVICE_MODE
=$withval
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6769 $as_echo "$DM_DEVICE_MODE" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6772 $as_echo_n "checking when to create device nodes... " >&6; }
6774 # Check whether --with-device-nodes-on was given.
6775 if test "${with_device_nodes_on+set}" = set; then :
6776 withval
=$with_device_nodes_on; ADD_NODE
=$withval
6782 resume
) add_on
=DM_ADD_NODE_ON_RESUME
;;
6783 create
) add_on
=DM_ADD_NODE_ON_CREATE
;;
6784 *) as_fn_error $?
"--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6787 $as_echo "on $ADD_NODE" >&6; }
6789 cat >>confdefs.h
<<_ACEOF
6790 #define DEFAULT_DM_ADD_NODE $add_on
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6795 $as_echo_n "checking default name mangling... " >&6; }
6797 # Check whether --with-default-name-mangling was given.
6798 if test "${with_default_name_mangling+set}" = set; then :
6799 withval
=$with_default_name_mangling; MANGLING
=$withval
6805 auto
) mangling
=DM_STRING_MANGLING_AUTO
;;
6806 disabled
) mangling
=DM_STRING_MANGLING_NONE
;;
6807 hex
) mangling
=DM_STRING_MANGLING_HEX
;;
6808 *) as_fn_error $?
"--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6811 $as_echo "$MANGLING" >&6; }
6813 cat >>confdefs.h
<<_ACEOF
6814 #define DEFAULT_DM_NAME_MANGLING $mangling
6818 ################################################################################
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6820 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6821 # Check whether --enable-lvm1_fallback was given.
6822 if test "${enable_lvm1_fallback+set}" = set; then :
6823 enableval
=$enable_lvm1_fallback; LVM1_FALLBACK
=$enableval
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6829 $as_echo "$LVM1_FALLBACK" >&6; }
6831 if test x
$LVM1_FALLBACK = xyes
; then
6833 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6837 ################################################################################
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6839 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6841 # Check whether --with-lvm1 was given.
6842 if test "${with_lvm1+set}" = set; then :
6843 withval
=$with_lvm1; LVM1
=$withval
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6849 $as_echo "$LVM1" >&6; }
6851 if [ "x$LVM1" != xnone
-a "x$LVM1" != xinternal
-a "x$LVM1" != xshared
];
6852 then as_fn_error $?
"--with-lvm1 parameter invalid
6856 if test x
$LVM1 = xinternal
; then
6858 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6862 ################################################################################
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6864 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6866 # Check whether --with-pool was given.
6867 if test "${with_pool+set}" = set; then :
6868 withval
=$with_pool; POOL
=$withval
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6874 $as_echo "$POOL" >&6; }
6876 if [ "x$POOL" != xnone
-a "x$POOL" != xinternal
-a "x$POOL" != xshared
];
6877 then as_fn_error $?
"--with-pool parameter invalid
6881 if test x
$POOL = xinternal
; then
6883 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6887 ################################################################################
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6889 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6891 # Check whether --with-cluster was given.
6892 if test "${with_cluster+set}" = set; then :
6893 withval
=$with_cluster; CLUSTER
=$withval
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6897 $as_echo "$CLUSTER" >&6; }
6899 if [ "x$CLUSTER" != xnone
-a "x$CLUSTER" != xinternal
-a "x$CLUSTER" != xshared
];
6900 then as_fn_error $?
"--with-cluster parameter invalid
6904 if test x
$CLUSTER = xinternal
; then
6906 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6910 ################################################################################
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6912 $as_echo_n "checking whether to include snapshots... " >&6; }
6914 # Check whether --with-snapshots was given.
6915 if test "${with_snapshots+set}" = set; then :
6916 withval
=$with_snapshots; SNAPSHOTS
=$withval
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6922 $as_echo "$SNAPSHOTS" >&6; }
6924 if [ "x$SNAPSHOTS" != xnone
-a "x$SNAPSHOTS" != xinternal
-a "x$SNAPSHOTS" != xshared
];
6925 then as_fn_error $?
"--with-snapshots parameter invalid
6929 if test x
$SNAPSHOTS = xinternal
; then
6931 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6935 ################################################################################
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6937 $as_echo_n "checking whether to include mirrors... " >&6; }
6939 # Check whether --with-mirrors was given.
6940 if test "${with_mirrors+set}" = set; then :
6941 withval
=$with_mirrors; MIRRORS
=$withval
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6947 $as_echo "$MIRRORS" >&6; }
6949 if [ "x$MIRRORS" != xnone
-a "x$MIRRORS" != xinternal
-a "x$MIRRORS" != xshared
];
6950 then as_fn_error $?
"--with-mirrors parameter invalid
6954 if test x
$MIRRORS = xinternal
; then
6956 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6960 ################################################################################
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6962 $as_echo_n "checking whether to include raid... " >&6; }
6964 # Check whether --with-raid was given.
6965 if test "${with_raid+set}" = set; then :
6966 withval
=$with_raid; RAID
=$withval
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6972 $as_echo "$RAID" >&6; }
6974 if [ "x$RAID" != xnone
-a "x$RAID" != xinternal
-a "x$RAID" != xshared
];
6975 then as_fn_error $?
"--with-raid parameter invalid
6979 if test x
$RAID = xinternal
; then
6981 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6985 ################################################################################
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6987 $as_echo_n "checking whether to include replicators... " >&6; }
6989 # Check whether --with-replicators was given.
6990 if test "${with_replicators+set}" = set; then :
6991 withval
=$with_replicators; REPLICATORS
=$withval
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6997 $as_echo "$REPLICATORS" >&6; }
6999 case "$REPLICATORS" in
7002 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
7004 *) as_fn_error $?
"--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
7007 ################################################################################
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
7009 $as_echo_n "checking whether to include thin provisioning... " >&6; }
7011 # Check whether --with-thin was given.
7012 if test "${with_thin+set}" = set; then :
7013 withval
=$with_thin; THIN
=$withval
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
7019 $as_echo "$THIN" >&6; }
7024 $as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7026 *) as_fn_error $?
"--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7032 # Check whether --with-thin-check was given.
7033 if test "${with_thin_check+set}" = set; then :
7034 withval
=$with_thin_check; THIN_CHECK_CMD
=$withval
7036 THIN_CHECK_CMD
="autodetect"
7039 # Empty means a config way to ignore thin checking
7040 if test "$THIN_CHECK_CMD" = "autodetect"; then
7041 # Extract the first word of "thin_check", so it can be a program name with args.
7042 set dummy thin_check
; ac_word
=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7048 case $THIN_CHECK_CMD in
7050 ac_cv_path_THIN_CHECK_CMD
="$THIN_CHECK_CMD" # Let the user override the test with a path.
7053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir
=.
7058 for ac_exec_ext
in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_THIN_CHECK_CMD
="$as_dir/$ac_word$ac_exec_ext"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 THIN_CHECK_CMD
=$ac_cv_path_THIN_CHECK_CMD
7072 if test -n "$THIN_CHECK_CMD"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
7074 $as_echo "$THIN_CHECK_CMD" >&6; }
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7081 test -z "$THIN_CHECK_CMD" && as_fn_error $?
"thin_check not found in path $PATH" "$LINENO" 5
7087 cat >>confdefs.h
<<_ACEOF
7088 #define THIN_CHECK_CMD "$THIN_CHECK_CMD"
7093 ################################################################################
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7095 $as_echo_n "checking whether to enable readline... " >&6; }
7096 # Check whether --enable-readline was given.
7097 if test "${enable_readline+set}" = set; then :
7098 enableval
=$enable_readline; READLINE
=$enableval
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7104 $as_echo "$READLINE" >&6; }
7106 ################################################################################
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7108 $as_echo_n "checking whether to enable realtime support... " >&6; }
7109 # Check whether --enable-realtime was given.
7110 if test "${enable_realtime+set}" = set; then :
7111 enableval
=$enable_realtime; REALTIME
=$enableval
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7115 $as_echo "$REALTIME" >&6; }
7117 ################################################################################
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7119 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7120 # Check whether --enable-ocf was given.
7121 if test "${enable_ocf+set}" = set; then :
7122 enableval
=$enable_ocf; OCF
=$enableval
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7128 $as_echo "$OCF" >&6; }
7130 # Check whether --with-ocfdir was given.
7131 if test "${with_ocfdir+set}" = set; then :
7132 withval
=$with_ocfdir; OCFDIR
=$withval
7134 OCFDIR
='${prefix}/lib/ocf/resource.d/lvm2'
7138 ################################################################################
7146 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7149 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7157 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir
=.
7165 for ac_exec_ext
in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7179 if test -n "$PKG_CONFIG"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7181 $as_echo "$PKG_CONFIG" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7189 if test -z "$ac_cv_path_PKG_CONFIG"; then
7190 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7191 # Extract the first word of "pkg-config", so it can be a program name with args.
7192 set dummy pkg-config
; ac_word
=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7198 case $ac_pt_PKG_CONFIG in
7200 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir
=.
7208 for ac_exec_ext
in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7222 if test -n "$ac_pt_PKG_CONFIG"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7224 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7230 if test "x$ac_pt_PKG_CONFIG" = x
; then
7233 case $cross_compiling:$ac_tool_warned in
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237 ac_tool_warned
=yes ;;
7239 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7242 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7246 if test -n "$PKG_CONFIG"; then
7247 _pkg_min_version
=0.9.0
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7249 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7250 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7252 $as_echo "yes" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7262 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7264 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7265 pkg_cv_PKGCONFIGINIT_CFLAGS
="$PKGCONFIGINIT_CFLAGS"
7266 elif test -n "$PKG_CONFIG"; then
7267 if test -n "$PKG_CONFIG" && \
7268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7269 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 pkg_cv_PKGCONFIGINIT_CFLAGS
=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7280 if test -n "$PKGCONFIGINIT_LIBS"; then
7281 pkg_cv_PKGCONFIGINIT_LIBS
="$PKGCONFIGINIT_LIBS"
7282 elif test -n "$PKG_CONFIG"; then
7283 if test -n "$PKG_CONFIG" && \
7284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7285 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; }; then
7289 pkg_cv_PKGCONFIGINIT_LIBS
=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7299 if test $pkg_failed = yes; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7304 _pkg_short_errors_supported
=yes
7306 _pkg_short_errors_supported
=no
7308 if test $_pkg_short_errors_supported = yes; then
7309 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7311 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7313 # Put the nasty error message in config.log where it belongs
7314 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7317 $as_echo "pkg-config initialized" >&6; }
7318 elif test $pkg_failed = untried
; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7322 $as_echo "pkg-config initialized" >&6; }
7324 PKGCONFIGINIT_CFLAGS
=$pkg_cv_PKGCONFIGINIT_CFLAGS
7325 PKGCONFIGINIT_LIBS
=$pkg_cv_PKGCONFIGINIT_LIBS
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7333 ################################################################################
7336 # Check whether --with-default-pid-dir was given.
7337 if test "${with_default_pid_dir+set}" = set; then :
7338 withval
=$with_default_pid_dir; DEFAULT_PID_DIR
="$withval"
7340 DEFAULT_PID_DIR
="/var/run"
7344 cat >>confdefs.h
<<_ACEOF
7345 #define DEFAULT_PID_DIR "$DEFAULT_PID_DIR"
7351 # Check whether --with-default-dm-run-dir was given.
7352 if test "${with_default_dm_run_dir+set}" = set; then :
7353 withval
=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR
="$withval"
7355 DEFAULT_DM_RUN_DIR
="/var/run"
7359 cat >>confdefs.h
<<_ACEOF
7360 #define DEFAULT_DM_RUN_DIR "$DEFAULT_DM_RUN_DIR"
7366 # Check whether --with-default-run-dir was given.
7367 if test "${with_default_run_dir+set}" = set; then :
7368 withval
=$with_default_run_dir; DEFAULT_RUN_DIR
="$withval"
7370 DEFAULT_RUN_DIR
="/var/run/lvm"
7374 cat >>confdefs.h
<<_ACEOF
7375 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
7379 ################################################################################
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7381 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7383 # Check whether --with-clvmd was given.
7384 if test "${with_clvmd+set}" = set; then :
7385 withval
=$with_clvmd; CLVMD
=$withval
7390 if test x
$CLVMD = xyes
; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7394 $as_echo "$CLVMD" >&6; }
7396 if test x
$CLVMD != xnone
&& test x
$CLUSTER = xnone
; then
7400 if test x
$CLVMD != xnone
&& test x
$PKGCONFIG_INIT != x1
; then
7405 CLVMD_NEEDS_QDISKD
=no
7407 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7408 as_fn_error $?
"Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7410 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7412 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7413 CLVMD_NEEDS_QDISKD
=yes
7415 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7417 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7419 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7421 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7423 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7424 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7432 as_fn_error $?
"bailing out" "$LINENO" 5
7435 if test x
$CLVMD = xall
; then
7436 bailout
=soft_bailout
7441 bailout
=hard_bailout
7444 check_lib_no_libs
() {
7450 as_ac_Lib
=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7452 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7453 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7454 $as_echo_n "(cached) " >&6
7456 ac_check_lib_save_LIBS
=$LIBS
7457 LIBS
="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7461 /* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7467 char $lib_no_libs_arg2 ();
7471 return $lib_no_libs_arg2 ();
7476 if ac_fn_c_try_link
"$LINENO"; then :
7477 eval "$as_ac_Lib=yes"
7479 eval "$as_ac_Lib=no"
7481 rm -f core conftest.err conftest.
$ac_objext \
7482 conftest
$ac_exeext conftest.
$ac_ext
7483 LIBS
=$ac_check_lib_save_LIBS
7485 eval ac_res
=\$
$as_ac_Lib
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7487 $as_echo "$ac_res" >&6; }
7488 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
7489 cat >>confdefs.h
<<_ACEOF
7490 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7493 LIBS
="-l$lib_no_libs_arg1 $LIBS"
7499 LIBS
=$ac_check_lib_save_LIBS
7502 if test x
$BUILDCMAN = xyes
; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7506 $as_echo_n "checking for CMAN... " >&6; }
7508 if test -n "$CMAN_CFLAGS"; then
7509 pkg_cv_CMAN_CFLAGS
="$CMAN_CFLAGS"
7510 elif test -n "$PKG_CONFIG"; then
7511 if test -n "$PKG_CONFIG" && \
7512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7513 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 pkg_cv_CMAN_CFLAGS
=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7524 if test -n "$CMAN_LIBS"; then
7525 pkg_cv_CMAN_LIBS
="$CMAN_LIBS"
7526 elif test -n "$PKG_CONFIG"; then
7527 if test -n "$PKG_CONFIG" && \
7528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7529 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 pkg_cv_CMAN_LIBS
=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7543 if test $pkg_failed = yes; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7548 _pkg_short_errors_supported
=yes
7550 _pkg_short_errors_supported
=no
7552 if test $_pkg_short_errors_supported = yes; then
7553 CMAN_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7555 CMAN_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7557 # Put the nasty error message in config.log where it belongs
7558 echo "$CMAN_PKG_ERRORS" >&5
7561 for ac_header
in libcman.h
7563 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7564 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7565 cat >>confdefs.h
<<_ACEOF
7566 #define HAVE_LIBCMAN_H 1
7575 check_lib_no_libs cman cman_init
7576 if test $NOTFOUND = 0; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7578 $as_echo "no pkg for libcman, using -lcman" >&6; }
7582 elif test $pkg_failed = untried
; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7586 for ac_header
in libcman.h
7588 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7589 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7590 cat >>confdefs.h
<<_ACEOF
7591 #define HAVE_LIBCMAN_H 1
7600 check_lib_no_libs cman cman_init
7601 if test $NOTFOUND = 0; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7603 $as_echo "no pkg for libcman, using -lcman" >&6; }
7608 CMAN_CFLAGS
=$pkg_cv_CMAN_CFLAGS
7609 CMAN_LIBS
=$pkg_cv_CMAN_LIBS
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611 $as_echo "yes" >&6; }
7618 if test x
$BUILDCOROSYNC = xyes || \
7619 test x
$BUILDOPENAIS = xyes
; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7623 $as_echo_n "checking for COROSYNC... " >&6; }
7625 if test -n "$COROSYNC_CFLAGS"; then
7626 pkg_cv_COROSYNC_CFLAGS
="$COROSYNC_CFLAGS"
7627 elif test -n "$PKG_CONFIG"; then
7628 if test -n "$PKG_CONFIG" && \
7629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7630 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 pkg_cv_COROSYNC_CFLAGS
=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7641 if test -n "$COROSYNC_LIBS"; then
7642 pkg_cv_COROSYNC_LIBS
="$COROSYNC_LIBS"
7643 elif test -n "$PKG_CONFIG"; then
7644 if test -n "$PKG_CONFIG" && \
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7646 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 pkg_cv_COROSYNC_LIBS
=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7660 if test $pkg_failed = yes; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7664 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7665 _pkg_short_errors_supported
=yes
7667 _pkg_short_errors_supported
=no
7669 if test $_pkg_short_errors_supported = yes; then
7670 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7672 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7674 # Put the nasty error message in config.log where it belongs
7675 echo "$COROSYNC_PKG_ERRORS" >&5
7678 elif test $pkg_failed = untried
; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7683 COROSYNC_CFLAGS
=$pkg_cv_COROSYNC_CFLAGS
7684 COROSYNC_LIBS
=$pkg_cv_COROSYNC_LIBS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686 $as_echo "yes" >&6; }
7693 if test x
$BUILDCOROSYNC = xyes
; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7697 $as_echo_n "checking for QUORUM... " >&6; }
7699 if test -n "$QUORUM_CFLAGS"; then
7700 pkg_cv_QUORUM_CFLAGS
="$QUORUM_CFLAGS"
7701 elif test -n "$PKG_CONFIG"; then
7702 if test -n "$PKG_CONFIG" && \
7703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7704 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 pkg_cv_QUORUM_CFLAGS
=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7715 if test -n "$QUORUM_LIBS"; then
7716 pkg_cv_QUORUM_LIBS
="$QUORUM_LIBS"
7717 elif test -n "$PKG_CONFIG"; then
7718 if test -n "$PKG_CONFIG" && \
7719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7720 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 pkg_cv_QUORUM_LIBS
=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7734 if test $pkg_failed = yes; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7739 _pkg_short_errors_supported
=yes
7741 _pkg_short_errors_supported
=no
7743 if test $_pkg_short_errors_supported = yes; then
7744 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7746 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7748 # Put the nasty error message in config.log where it belongs
7749 echo "$QUORUM_PKG_ERRORS" >&5
7752 elif test $pkg_failed = untried
; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7757 QUORUM_CFLAGS
=$pkg_cv_QUORUM_CFLAGS
7758 QUORUM_LIBS
=$pkg_cv_QUORUM_LIBS
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760 $as_echo "yes" >&6; }
7767 if test x
$BUILDOPENAIS = xyes
; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7771 $as_echo_n "checking for SALCK... " >&6; }
7773 if test -n "$SALCK_CFLAGS"; then
7774 pkg_cv_SALCK_CFLAGS
="$SALCK_CFLAGS"
7775 elif test -n "$PKG_CONFIG"; then
7776 if test -n "$PKG_CONFIG" && \
7777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7778 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 pkg_cv_SALCK_CFLAGS
=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7789 if test -n "$SALCK_LIBS"; then
7790 pkg_cv_SALCK_LIBS
="$SALCK_LIBS"
7791 elif test -n "$PKG_CONFIG"; then
7792 if test -n "$PKG_CONFIG" && \
7793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7794 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797 test $ac_status = 0; }; then
7798 pkg_cv_SALCK_LIBS
=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7808 if test $pkg_failed = yes; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7813 _pkg_short_errors_supported
=yes
7815 _pkg_short_errors_supported
=no
7817 if test $_pkg_short_errors_supported = yes; then
7818 SALCK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7820 SALCK_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7822 # Put the nasty error message in config.log where it belongs
7823 echo "$SALCK_PKG_ERRORS" >&5
7826 elif test $pkg_failed = untried
; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7831 SALCK_CFLAGS
=$pkg_cv_SALCK_CFLAGS
7832 SALCK_LIBS
=$pkg_cv_SALCK_LIBS
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7834 $as_echo "yes" >&6; }
7842 if test x
$CHECKCONFDB = xyes
; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7846 $as_echo_n "checking for CONFDB... " >&6; }
7848 if test -n "$CONFDB_CFLAGS"; then
7849 pkg_cv_CONFDB_CFLAGS
="$CONFDB_CFLAGS"
7850 elif test -n "$PKG_CONFIG"; then
7851 if test -n "$PKG_CONFIG" && \
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7853 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; }; then
7857 pkg_cv_CONFDB_CFLAGS
=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7864 if test -n "$CONFDB_LIBS"; then
7865 pkg_cv_CONFDB_LIBS
="$CONFDB_LIBS"
7866 elif test -n "$PKG_CONFIG"; then
7867 if test -n "$PKG_CONFIG" && \
7868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7869 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 pkg_cv_CONFDB_LIBS
=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7883 if test $pkg_failed = yes; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7888 _pkg_short_errors_supported
=yes
7890 _pkg_short_errors_supported
=no
7892 if test $_pkg_short_errors_supported = yes; then
7893 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7895 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7897 # Put the nasty error message in config.log where it belongs
7898 echo "$CONFDB_PKG_ERRORS" >&5
7901 elif test $pkg_failed = untried
; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7906 CONFDB_CFLAGS
=$pkg_cv_CONFDB_CFLAGS
7907 CONFDB_LIBS
=$pkg_cv_CONFDB_LIBS
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909 $as_echo "yes" >&6; }
7913 for ac_header
in corosync
/confdb.h
7915 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7916 if test "x$ac_cv_header_corosync_confdb_h" = x
""yes; then :
7917 cat >>confdefs.h
<<_ACEOF
7918 #define HAVE_COROSYNC_CONFDB_H 1
7928 if test x
$HAVE_CONFDB != xyes
&& \
7929 test x
$HAVE_CONFDB_H = xyes
; then
7930 check_lib_no_libs confdb confdb_initialize
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7932 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7933 CONFDB_LIBS
="-lconfdb"
7939 if test x
$CHECKCMAP = xyes
; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7943 $as_echo_n "checking for CMAP... " >&6; }
7945 if test -n "$CMAP_CFLAGS"; then
7946 pkg_cv_CMAP_CFLAGS
="$CMAP_CFLAGS"
7947 elif test -n "$PKG_CONFIG"; then
7948 if test -n "$PKG_CONFIG" && \
7949 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7950 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953 test $ac_status = 0; }; then
7954 pkg_cv_CMAP_CFLAGS
=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7961 if test -n "$CMAP_LIBS"; then
7962 pkg_cv_CMAP_LIBS
="$CMAP_LIBS"
7963 elif test -n "$PKG_CONFIG"; then
7964 if test -n "$PKG_CONFIG" && \
7965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7966 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 pkg_cv_CMAP_LIBS
=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7980 if test $pkg_failed = yes; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7985 _pkg_short_errors_supported
=yes
7987 _pkg_short_errors_supported
=no
7989 if test $_pkg_short_errors_supported = yes; then
7990 CMAP_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7992 CMAP_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7994 # Put the nasty error message in config.log where it belongs
7995 echo "$CMAP_PKG_ERRORS" >&5
7998 elif test $pkg_failed = untried
; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8003 CMAP_CFLAGS
=$pkg_cv_CMAP_CFLAGS
8004 CMAP_LIBS
=$pkg_cv_CMAP_LIBS
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006 $as_echo "yes" >&6; }
8010 for ac_header
in corosync
/cmap.h
8012 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
8013 if test "x$ac_cv_header_corosync_cmap_h" = x
""yes; then :
8014 cat >>confdefs.h
<<_ACEOF
8015 #define HAVE_COROSYNC_CMAP_H 1
8025 if test x
$HAVE_CMAP != xyes
&& \
8026 test x
$HAVE_CMAP_H = xyes
; then
8027 check_lib_no_libs cmap cmap_initialize
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
8029 $as_echo "no pkg for cmap, using -lcmap" >&6; }
8035 if test x
$BUILDCOROSYNC = xyes
; then
8036 if test x
$HAVE_CMAP != xyes
&& \
8037 test x
$HAVE_CONFDB != xyes
&& \
8038 test x
$CLVMD != xall
; then
8039 as_fn_error $?
"bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
8043 if test x
$CHECKCPG = xyes
; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8047 $as_echo_n "checking for CPG... " >&6; }
8049 if test -n "$CPG_CFLAGS"; then
8050 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8051 elif test -n "$PKG_CONFIG"; then
8052 if test -n "$PKG_CONFIG" && \
8053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8054 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; }; then
8058 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8065 if test -n "$CPG_LIBS"; then
8066 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8067 elif test -n "$PKG_CONFIG"; then
8068 if test -n "$PKG_CONFIG" && \
8069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8070 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073 test $ac_status = 0; }; then
8074 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8084 if test $pkg_failed = yes; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8088 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8089 _pkg_short_errors_supported
=yes
8091 _pkg_short_errors_supported
=no
8093 if test $_pkg_short_errors_supported = yes; then
8094 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8096 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8098 # Put the nasty error message in config.log where it belongs
8099 echo "$CPG_PKG_ERRORS" >&5
8102 elif test $pkg_failed = untried
; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8107 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8108 CPG_LIBS
=$pkg_cv_CPG_LIBS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110 $as_echo "yes" >&6; }
8115 if test x
$CHECKDLM = xyes
; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8119 $as_echo_n "checking for DLM... " >&6; }
8121 if test -n "$DLM_CFLAGS"; then
8122 pkg_cv_DLM_CFLAGS
="$DLM_CFLAGS"
8123 elif test -n "$PKG_CONFIG"; then
8124 if test -n "$PKG_CONFIG" && \
8125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8126 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8129 test $ac_status = 0; }; then
8130 pkg_cv_DLM_CFLAGS
=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8137 if test -n "$DLM_LIBS"; then
8138 pkg_cv_DLM_LIBS
="$DLM_LIBS"
8139 elif test -n "$PKG_CONFIG"; then
8140 if test -n "$PKG_CONFIG" && \
8141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8142 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8145 test $ac_status = 0; }; then
8146 pkg_cv_DLM_LIBS
=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8156 if test $pkg_failed = yes; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8160 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8161 _pkg_short_errors_supported
=yes
8163 _pkg_short_errors_supported
=no
8165 if test $_pkg_short_errors_supported = yes; then
8166 DLM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8168 DLM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8170 # Put the nasty error message in config.log where it belongs
8171 echo "$DLM_PKG_ERRORS" >&5
8174 for ac_header
in libdlm.h
8176 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8177 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8178 cat >>confdefs.h
<<_ACEOF
8179 #define HAVE_LIBDLM_H 1
8188 check_lib_no_libs dlm dlm_lock
-lpthread
8189 if test $NOTFOUND = 0; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8191 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8192 DLM_LIBS
="-ldlm -lpthread"
8195 elif test $pkg_failed = untried
; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8199 for ac_header
in libdlm.h
8201 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8202 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8203 cat >>confdefs.h
<<_ACEOF
8204 #define HAVE_LIBDLM_H 1
8213 check_lib_no_libs dlm dlm_lock
-lpthread
8214 if test $NOTFOUND = 0; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8216 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8217 DLM_LIBS
="-ldlm -lpthread"
8221 DLM_CFLAGS
=$pkg_cv_DLM_CFLAGS
8222 DLM_LIBS
=$pkg_cv_DLM_LIBS
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8224 $as_echo "yes" >&6; }
8229 if test x
$CLVMD = xall
; then
8232 CLVMD_NEEDS_QDISKD
=no
8233 if test x
$HAVE_CMAN = xyes
&& \
8234 test x
$HAVE_DLM = xyes
; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8236 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8238 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
8239 CLVMD_NEEDS_QDISKD
=yes
8241 if test x
$HAVE_COROSYNC = xyes
&& \
8242 test x
$HAVE_QUORUM = xyes
&& \
8243 test x
$HAVE_CPG = xyes
&& \
8244 test x
$HAVE_DLM = xyes
; then
8245 if test x
$HAVE_CONFDB = xyes ||
test x
$HAVE_CMAP = xyes
; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8247 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8248 CLVMD
="$CLVMD,corosync"
8249 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
8252 if test x
$HAVE_COROSYNC = xyes
&& \
8253 test x
$HAVE_CPG = xyes
&& \
8254 test x
$HAVE_SALCK = xyes
; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8256 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8257 CLVMD
="$CLVMD,openais"
8258 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
8260 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
8261 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
8263 if test x
$CLVMD = xnone
; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8265 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8269 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8270 if test x
$HAVE_CMAP = xyes
; then
8271 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS dlm"
8275 ################################################################################
8276 if test "x$CLVMD" != xnone
; then
8278 # Check whether --with-clvmd-pidfile was given.
8279 if test "${with_clvmd_pidfile+set}" = set; then :
8280 withval
=$with_clvmd_pidfile; CLVMD_PIDFILE
=$withval
8282 CLVMD_PIDFILE
="$DEFAULT_PID_DIR/clvmd.pid"
8286 cat >>confdefs.h
<<_ACEOF
8287 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8292 ################################################################################
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8294 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8295 # Check whether --enable-cmirrord was given.
8296 if test "${enable_cmirrord+set}" = set; then :
8297 enableval
=$enable_cmirrord; CMIRRORD
=$enableval
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8303 $as_echo "$CMIRRORD" >&6; }
8305 BUILD_CMIRRORD
=$CMIRRORD
8307 ################################################################################
8308 if test "x$BUILD_CMIRRORD" = xyes
; then
8310 # Check whether --with-cmirrord-pidfile was given.
8311 if test "${with_cmirrord_pidfile+set}" = set; then :
8312 withval
=$with_cmirrord_pidfile; CMIRRORD_PIDFILE
=$withval
8314 CMIRRORD_PIDFILE
="$DEFAULT_PID_DIR/cmirrord.pid"
8318 cat >>confdefs.h
<<_ACEOF
8319 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8324 ################################################################################
8325 if [ "x$BUILD_CMIRRORD" = xyes
]; then
8326 if test x
$PKGCONFIG_INIT != x1
; then
8331 $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8336 $as_echo_n "checking for SACKPT... " >&6; }
8338 if test -n "$SACKPT_CFLAGS"; then
8339 pkg_cv_SACKPT_CFLAGS
="$SACKPT_CFLAGS"
8340 elif test -n "$PKG_CONFIG"; then
8341 if test -n "$PKG_CONFIG" && \
8342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8343 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8346 test $ac_status = 0; }; then
8347 pkg_cv_SACKPT_CFLAGS
=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8354 if test -n "$SACKPT_LIBS"; then
8355 pkg_cv_SACKPT_LIBS
="$SACKPT_LIBS"
8356 elif test -n "$PKG_CONFIG"; then
8357 if test -n "$PKG_CONFIG" && \
8358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8359 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8362 test $ac_status = 0; }; then
8363 pkg_cv_SACKPT_LIBS
=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8373 if test $pkg_failed = yes; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8377 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8378 _pkg_short_errors_supported
=yes
8380 _pkg_short_errors_supported
=no
8382 if test $_pkg_short_errors_supported = yes; then
8383 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8385 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8387 # Put the nasty error message in config.log where it belongs
8388 echo "$SACKPT_PKG_ERRORS" >&5
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8391 $as_echo "no libSaCkpt, compiling without it" >&6; }
8393 $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
8395 elif test $pkg_failed = untried
; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8399 $as_echo "no libSaCkpt, compiling without it" >&6; }
8401 $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
8404 SACKPT_CFLAGS
=$pkg_cv_SACKPT_CFLAGS
8405 SACKPT_LIBS
=$pkg_cv_SACKPT_LIBS
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8407 $as_echo "yes" >&6; }
8411 if test x
$HAVE_CPG != xyes
; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8415 $as_echo_n "checking for CPG... " >&6; }
8417 if test -n "$CPG_CFLAGS"; then
8418 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8419 elif test -n "$PKG_CONFIG"; then
8420 if test -n "$PKG_CONFIG" && \
8421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8422 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8425 test $ac_status = 0; }; then
8426 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8433 if test -n "$CPG_LIBS"; then
8434 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8435 elif test -n "$PKG_CONFIG"; then
8436 if test -n "$PKG_CONFIG" && \
8437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8438 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8441 test $ac_status = 0; }; then
8442 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8452 if test $pkg_failed = yes; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8457 _pkg_short_errors_supported
=yes
8459 _pkg_short_errors_supported
=no
8461 if test $_pkg_short_errors_supported = yes; then
8462 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8464 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8466 # Put the nasty error message in config.log where it belongs
8467 echo "$CPG_PKG_ERRORS" >&5
8469 as_fn_error $?
"Package requirements (libcpg) were not met:
8473 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8474 installed software in a non-standard prefix.
8476 Alternatively, you may set the environment variables CPG_CFLAGS
8477 and CPG_LIBS to avoid the need to call pkg-config.
8478 See the pkg-config man page for more details." "$LINENO" 5
8480 elif test $pkg_failed = untried
; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8485 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8486 is in your PATH or set the PKG_CONFIG environment variable to the full
8489 Alternatively, you may set the environment variables CPG_CFLAGS
8490 and CPG_LIBS to avoid the need to call pkg-config.
8491 See the pkg-config man page for more details.
8493 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8494 See \`config.log' for more details" "$LINENO" 5; }
8497 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8498 CPG_LIBS
=$pkg_cv_CPG_LIBS
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8500 $as_echo "yes" >&6; }
8506 ################################################################################
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8508 $as_echo_n "checking whether to enable debugging... " >&6; }
8509 # Check whether --enable-debug was given.
8510 if test "${enable_debug+set}" = set; then :
8511 enableval
=$enable_debug; DEBUG
=$enableval
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8517 $as_echo "$DEBUG" >&6; }
8519 if test x
$DEBUG = xyes
; then
8525 ################################################################################
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8527 $as_echo_n "checking for C optimisation flag... " >&6; }
8529 # Check whether --with-optimisation was given.
8530 if test "${with_optimisation+set}" = set; then :
8531 withval
=$with_optimisation; COPTIMISE_FLAG
=$withval
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8535 $as_echo "$COPTIMISE_FLAG" >&6; }
8537 ################################################################################
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8539 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8540 # Check whether --enable-profiling was given.
8541 if test "${enable_profiling+set}" = set; then :
8542 enableval
=$enable_profiling; PROFILING
=$enableval
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8548 $as_echo "$PROFILING" >&6; }
8550 if test "x$PROFILING" = xyes
; then
8551 COPTIMISE_FLAG
="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8552 # Extract the first word of "lcov", so it can be a program name with args.
8553 set dummy lcov
; ac_word
=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_path_LCOV+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8561 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
8564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8568 test -z "$as_dir" && as_dir
=.
8569 for ac_exec_ext
in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 LCOV
=$ac_cv_path_LCOV
8583 if test -n "$LCOV"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8585 $as_echo "$LCOV" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8592 # Extract the first word of "genhtml", so it can be a program name with args.
8593 set dummy genhtml
; ac_word
=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_path_GENHTML+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8601 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
8604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir
=.
8609 for ac_exec_ext
in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 GENHTML
=$ac_cv_path_GENHTML
8623 if test -n "$GENHTML"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8625 $as_echo "$GENHTML" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8632 if test -z "$LCOV" -o -z "$GENHTML"; then
8633 as_fn_error $?
"lcov and genhtml are required for profiling" "$LINENO" 5
8635 # Extract the first word of "genpng", so it can be a program name with args.
8636 set dummy genpng
; ac_word
=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_path_GENPNG+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8644 ac_cv_path_GENPNG
="$GENPNG" # Let the user override the test with a path.
8647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir
=.
8652 for ac_exec_ext
in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_GENPNG
="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 GENPNG
=$ac_cv_path_GENPNG
8666 if test -n "$GENPNG"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8668 $as_echo "$GENPNG" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8675 if test -n "$GENPNG"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8677 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8678 if $GENPNG --help > /dev
/null
2>&1 ; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8680 $as_echo "ok" >&6; }
8681 GENHTML
="$GENHTML --frames"
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8684 $as_echo "not supported" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8686 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8692 ################################################################################
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8694 $as_echo_n "checking whether to enable unit testing... " >&6; }
8695 # Check whether --enable-testing was given.
8696 if test "${enable_testing+set}" = set; then :
8697 enableval
=$enable_testing; TESTING
=$enableval
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8703 $as_echo "$TESTING" >&6; }
8705 if test "$TESTING" = yes; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8709 $as_echo_n "checking for CUNIT... " >&6; }
8711 if test -n "$CUNIT_CFLAGS"; then
8712 pkg_cv_CUNIT_CFLAGS
="$CUNIT_CFLAGS"
8713 elif test -n "$PKG_CONFIG"; then
8714 if test -n "$PKG_CONFIG" && \
8715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8716 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8719 test $ac_status = 0; }; then
8720 pkg_cv_CUNIT_CFLAGS
=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8727 if test -n "$CUNIT_LIBS"; then
8728 pkg_cv_CUNIT_LIBS
="$CUNIT_LIBS"
8729 elif test -n "$PKG_CONFIG"; then
8730 if test -n "$PKG_CONFIG" && \
8731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8732 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735 test $ac_status = 0; }; then
8736 pkg_cv_CUNIT_LIBS
=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
8746 if test $pkg_failed = yes; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8751 _pkg_short_errors_supported
=yes
8753 _pkg_short_errors_supported
=no
8755 if test $_pkg_short_errors_supported = yes; then
8756 CUNIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8758 CUNIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8760 # Put the nasty error message in config.log where it belongs
8761 echo "$CUNIT_PKG_ERRORS" >&5
8763 as_fn_error $?
"Package requirements (cunit >= 2.0) were not met:
8767 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8768 installed software in a non-standard prefix.
8770 Alternatively, you may set the environment variables CUNIT_CFLAGS
8771 and CUNIT_LIBS to avoid the need to call pkg-config.
8772 See the pkg-config man page for more details." "$LINENO" 5
8774 elif test $pkg_failed = untried
; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8779 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8780 is in your PATH or set the PKG_CONFIG environment variable to the full
8783 Alternatively, you may set the environment variables CUNIT_CFLAGS
8784 and CUNIT_LIBS to avoid the need to call pkg-config.
8785 See the pkg-config man page for more details.
8787 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8788 See \`config.log' for more details" "$LINENO" 5; }
8791 CUNIT_CFLAGS
=$pkg_cv_CUNIT_CFLAGS
8792 CUNIT_LIBS
=$pkg_cv_CUNIT_LIBS
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8794 $as_echo "yes" >&6; }
8799 ################################################################################
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8801 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8802 # Check whether --enable-valgrind_pool was given.
8803 if test "${enable_valgrind_pool+set}" = set; then :
8804 enableval
=$enable_valgrind_pool; VALGRIND_POOL
=$enableval
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8810 $as_echo "$VALGRIND_POOL" >&6; }
8812 if test "$VALGRIND_POOL" = yes; then
8813 for ac_header
in valgrind
/memcheck.h
8815 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8816 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
8817 cat >>confdefs.h
<<_ACEOF
8818 #define HAVE_VALGRIND_MEMCHECK_H 1
8822 as_fn_error $?
"bailing out" "$LINENO" 5
8828 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8832 ################################################################################
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8834 $as_echo_n "checking whether to use device-mapper... " >&6; }
8835 # Check whether --enable-devmapper was given.
8836 if test "${enable_devmapper+set}" = set; then :
8837 enableval
=$enable_devmapper; DEVMAPPER
=$enableval
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8841 $as_echo "$DEVMAPPER" >&6; }
8843 if test x
$DEVMAPPER = xyes
; then
8845 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8849 ################################################################################
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8851 $as_echo_n "checking whether to build LVMetaD... " >&6; }
8852 # Check whether --enable-lvmetad was given.
8853 if test "${enable_lvmetad+set}" = set; then :
8854 enableval
=$enable_lvmetad; LVMETAD
=$enableval
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8858 $as_echo "$LVMETAD" >&6; }
8860 BUILD_LVMETAD
=$LVMETAD
8862 if test x
$BUILD_LVMETAD = xyes
; then
8864 $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h
8868 # Check whether --with-lvmetad-pidfile was given.
8869 if test "${with_lvmetad_pidfile+set}" = set; then :
8870 withval
=$with_lvmetad_pidfile; LVMETAD_PIDFILE
=$withval
8872 LVMETAD_PIDFILE
="$DEFAULT_PID_DIR/lvmetad.pid"
8876 cat >>confdefs.h
<<_ACEOF
8877 #define LVMETAD_PIDFILE "$LVMETAD_PIDFILE"
8882 ################################################################################
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8884 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8885 # Check whether --enable-udev_sync was given.
8886 if test "${enable_udev_sync+set}" = set; then :
8887 enableval
=$enable_udev_sync; UDEV_SYNC
=$enableval
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8893 $as_echo "$UDEV_SYNC" >&6; }
8895 if test x
$UDEV_SYNC = xyes
; then
8896 if test x
$PKGCONFIG_INIT != x1
; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8902 $as_echo_n "checking for UDEV... " >&6; }
8904 if test -n "$UDEV_CFLAGS"; then
8905 pkg_cv_UDEV_CFLAGS
="$UDEV_CFLAGS"
8906 elif test -n "$PKG_CONFIG"; then
8907 if test -n "$PKG_CONFIG" && \
8908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8909 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912 test $ac_status = 0; }; then
8913 pkg_cv_UDEV_CFLAGS
=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8920 if test -n "$UDEV_LIBS"; then
8921 pkg_cv_UDEV_LIBS
="$UDEV_LIBS"
8922 elif test -n "$PKG_CONFIG"; then
8923 if test -n "$PKG_CONFIG" && \
8924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8925 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928 test $ac_status = 0; }; then
8929 pkg_cv_UDEV_LIBS
=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8939 if test $pkg_failed = yes; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8944 _pkg_short_errors_supported
=yes
8946 _pkg_short_errors_supported
=no
8948 if test $_pkg_short_errors_supported = yes; then
8949 UDEV_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8951 UDEV_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8953 # Put the nasty error message in config.log where it belongs
8954 echo "$UDEV_PKG_ERRORS" >&5
8956 as_fn_error $?
"Package requirements (libudev >= 143) were not met:
8960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8961 installed software in a non-standard prefix.
8963 Alternatively, you may set the environment variables UDEV_CFLAGS
8964 and UDEV_LIBS to avoid the need to call pkg-config.
8965 See the pkg-config man page for more details." "$LINENO" 5
8967 elif test $pkg_failed = untried
; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8972 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8973 is in your PATH or set the PKG_CONFIG environment variable to the full
8976 Alternatively, you may set the environment variables UDEV_CFLAGS
8977 and UDEV_LIBS to avoid the need to call pkg-config.
8978 See the pkg-config man page for more details.
8980 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8981 See \`config.log' for more details" "$LINENO" 5; }
8984 UDEV_CFLAGS
=$pkg_cv_UDEV_CFLAGS
8985 UDEV_LIBS
=$pkg_cv_UDEV_LIBS
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8987 $as_echo "yes" >&6; }
8991 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8996 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8997 # Check whether --enable-udev_rules was given.
8998 if test "${enable_udev_rules+set}" = set; then :
8999 enableval
=$enable_udev_rules; UDEV_RULES
=$enableval
9001 UDEV_RULES
=$UDEV_SYNC
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
9005 $as_echo "$UDEV_RULES" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
9008 $as_echo_n "checking whether to enable executable path detection in udev rules... " >&6; }
9009 # Check whether --enable-udev_rule_exec_detection was given.
9010 if test "${enable_udev_rule_exec_detection+set}" = set; then :
9011 enableval
=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION
=$enableval
9013 UDEV_RULE_EXEC_DETECTION
=no
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
9017 $as_echo "$UDEV_RULE_EXEC_DETECTION" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
9020 $as_echo_n "checking whether udev supports built-in blkid... " >&6; }
9021 test x
$PKGCONFIG_INIT != x1
&& pkg_config_init
9022 if $
($PKG_CONFIG --atleast-version=176 libudev
); then
9023 UDEV_HAS_BUILTIN_BLKID
=yes
9025 UDEV_HAS_BUILTIN_BLKID
=no
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
9028 $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
9030 ################################################################################
9031 # Check whether --enable-compat was given.
9032 if test "${enable_compat+set}" = set; then :
9033 enableval
=$enable_compat; DM_COMPAT
=$enableval
9039 if test x
$DM_COMPAT = xyes
; then
9040 as_fn_error $?
"--enable-compat is not currently supported.
9041 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
9042 ioctl protocol is supported.
9046 ################################################################################
9047 # Check whether --enable-units-compat was given.
9048 if test "${enable_units_compat+set}" = set; then :
9049 enableval
=$enable_units_compat; UNITS_COMPAT
=$enableval
9055 if test x
$UNITS_COMPAT = xyes
; then
9057 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
9061 ################################################################################
9062 # Check whether --enable-ioctl was given.
9063 if test "${enable_ioctl+set}" = set; then :
9064 enableval
=$enable_ioctl; DM_IOCTLS
=$enableval
9068 ################################################################################
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
9070 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9071 # Check whether --enable-o_direct was given.
9072 if test "${enable_o_direct+set}" = set; then :
9073 enableval
=$enable_o_direct; ODIRECT
=$enableval
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
9077 $as_echo "$ODIRECT" >&6; }
9079 if test x
$ODIRECT = xyes
; then
9081 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
9085 ################################################################################
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
9087 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9088 # Check whether --enable-applib was given.
9089 if test "${enable_applib+set}" = set; then :
9090 enableval
=$enable_applib; APPLIB
=$enableval
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
9096 $as_echo "$APPLIB" >&6; }
9098 test x
$APPLIB = xyes \
9099 && LVM2APP_LIB
=-llvm2app \
9102 ################################################################################
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
9104 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9105 # Check whether --enable-cmdlib was given.
9106 if test "${enable_cmdlib+set}" = set; then :
9107 enableval
=$enable_cmdlib; CMDLIB
=$enableval
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
9113 $as_echo "$CMDLIB" >&6; }
9115 test x
$CMDLIB = xyes \
9116 && LVM2CMD_LIB
=-llvm2cmd \
9119 ################################################################################
9120 # Check whether --enable-pkgconfig was given.
9121 if test "${enable_pkgconfig+set}" = set; then :
9122 enableval
=$enable_pkgconfig; PKGCONFIG
=$enableval
9128 ################################################################################
9129 # Check whether --enable-write_install was given.
9130 if test "${enable_write_install+set}" = set; then :
9131 enableval
=$enable_write_install; WRITE_INSTALL
=$enableval
9137 ################################################################################
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9139 $as_echo_n "checking whether to install fsadm... " >&6; }
9140 # Check whether --enable-fsadm was given.
9141 if test "${enable_fsadm+set}" = set; then :
9142 enableval
=$enable_fsadm; FSADM
=$enableval
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9146 $as_echo "$FSADM" >&6; }
9148 ################################################################################
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9150 $as_echo_n "checking whether to use dmeventd... " >&6; }
9151 # Check whether --enable-dmeventd was given.
9152 if test "${enable_dmeventd+set}" = set; then :
9153 enableval
=$enable_dmeventd; DMEVENTD
=$enableval
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9157 $as_echo "$DMEVENTD" >&6; }
9159 BUILD_DMEVENTD
=$DMEVENTD
9161 if test x
$DMEVENTD = xyes
; then
9162 if test x
$MIRRORS != xinternal
; then
9163 as_fn_error $?
"--enable-dmeventd currently requires --with-mirrors=internal
9166 if test x
$CMDLIB = xno
; then
9167 as_fn_error $?
"--enable-dmeventd requires --enable-cmdlib to be used as well
9172 if test x
$DMEVENTD = xyes
; then
9174 $as_echo "#define DMEVENTD 1" >>confdefs.h
9178 ################################################################################
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9181 $as_echo_n "checking for getline in -lc... " >&6; }
9182 if test "${ac_cv_lib_c_getline+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9185 ac_check_lib_save_LIBS
=$LIBS
9187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9205 if ac_fn_c_try_link
"$LINENO"; then :
9206 ac_cv_lib_c_getline
=yes
9208 ac_cv_lib_c_getline
=no
9210 rm -f core conftest.err conftest.
$ac_objext \
9211 conftest
$ac_exeext conftest.
$ac_ext
9212 LIBS
=$ac_check_lib_save_LIBS
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9215 $as_echo "$ac_cv_lib_c_getline" >&6; }
9216 if test "x$ac_cv_lib_c_getline" = x
""yes; then :
9218 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9223 ################################################################################
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9226 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9227 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9230 ac_check_lib_save_LIBS
=$LIBS
9232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9241 char canonicalize_file_name ();
9245 return canonicalize_file_name ();
9250 if ac_fn_c_try_link
"$LINENO"; then :
9251 ac_cv_lib_c_canonicalize_file_name
=yes
9253 ac_cv_lib_c_canonicalize_file_name
=no
9255 rm -f core conftest.err conftest.
$ac_objext \
9256 conftest
$ac_exeext conftest.
$ac_ext
9257 LIBS
=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9260 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9261 if test "x$ac_cv_lib_c_canonicalize_file_name" = x
""yes; then :
9263 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9268 ################################################################################
9269 if [ "x$exec_prefix" = xNONE
-a "x$prefix" = xNONE
];
9270 then exec_prefix
="";
9273 ################################################################################
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9276 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9279 ac_check_lib_save_LIBS
=$LIBS
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9299 if ac_fn_c_try_link
"$LINENO"; then :
9300 ac_cv_lib_dl_dlopen
=yes
9302 ac_cv_lib_dl_dlopen
=no
9304 rm -f core conftest.err conftest.
$ac_objext \
9305 conftest
$ac_exeext conftest.
$ac_ext
9306 LIBS
=$ac_check_lib_save_LIBS
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9309 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9310 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9313 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9324 ################################################################################
9325 if [ \
( "x$LVM1" = xshared
-o "x$POOL" = xshared
-o "x$CLUSTER" = xshared \
9326 -o "x$SNAPSHOTS" = xshared
-o "x$MIRRORS" = xshared \
9327 -o "x$RAID" = xshared \
9328 \
) -a "x$STATIC_LINK" = xyes
];
9329 then as_fn_error $?
"Features cannot be 'shared' when building statically
9333 ################################################################################
9334 if [ "$DMEVENTD" = yes -o "$CLVMD" != none
] ; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9336 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9337 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9340 ac_check_lib_save_LIBS
=$LIBS
9341 LIBS
="-lpthread $LIBS"
9342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9351 char pthread_mutex_lock ();
9355 return pthread_mutex_lock ();
9360 if ac_fn_c_try_link
"$LINENO"; then :
9361 ac_cv_lib_pthread_pthread_mutex_lock
=yes
9363 ac_cv_lib_pthread_pthread_mutex_lock
=no
9365 rm -f core conftest.err conftest.
$ac_objext \
9366 conftest
$ac_exeext conftest.
$ac_ext
9367 LIBS
=$ac_check_lib_save_LIBS
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9370 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9371 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x
""yes; then :
9372 PTHREAD_LIBS
="-lpthread"
9379 ################################################################################
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9381 $as_echo_n "checking whether to enable selinux support... " >&6; }
9382 # Check whether --enable-selinux was given.
9383 if test "${enable_selinux+set}" = set; then :
9384 enableval
=$enable_selinux; SELINUX
=$enableval
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9388 $as_echo "$SELINUX" >&6; }
9390 ################################################################################
9391 if test x
$SELINUX = xyes
; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9393 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9394 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9397 ac_check_lib_save_LIBS
=$LIBS
9398 LIBS
="-lsepol $LIBS"
9399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9402 /* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
9408 char sepol_check_context ();
9412 return sepol_check_context ();
9417 if ac_fn_c_try_link
"$LINENO"; then :
9418 ac_cv_lib_sepol_sepol_check_context
=yes
9420 ac_cv_lib_sepol_sepol_check_context
=no
9422 rm -f core conftest.err conftest.
$ac_objext \
9423 conftest
$ac_exeext conftest.
$ac_ext
9424 LIBS
=$ac_check_lib_save_LIBS
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9427 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9428 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then :
9431 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9433 SELINUX_LIBS
="-lsepol"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9438 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9439 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9442 ac_check_lib_save_LIBS
=$LIBS
9443 LIBS
="-lselinux $LIBS"
9444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9453 char is_selinux_enabled ();
9457 return is_selinux_enabled ();
9462 if ac_fn_c_try_link
"$LINENO"; then :
9463 ac_cv_lib_selinux_is_selinux_enabled
=yes
9465 ac_cv_lib_selinux_is_selinux_enabled
=no
9467 rm -f core conftest.err conftest.
$ac_objext \
9468 conftest
$ac_exeext conftest.
$ac_ext
9469 LIBS
=$ac_check_lib_save_LIBS
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9472 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9473 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
9475 for ac_header
in selinux
/selinux.h
9477 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9478 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
9479 cat >>confdefs.h
<<_ACEOF
9480 #define HAVE_SELINUX_SELINUX_H 1
9489 for ac_header
in selinux
/label.h
9491 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9492 if test "x$ac_cv_header_selinux_label_h" = x
""yes; then :
9493 cat >>confdefs.h
<<_ACEOF
9494 #define HAVE_SELINUX_LABEL_H 1
9502 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9504 SELINUX_LIBS
="-lselinux $SELINUX_LIBS"
9505 SELINUX_PC
="libselinux"
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9510 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9518 ################################################################################
9519 if test x
$REALTIME = xyes
; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9521 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9522 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9525 ac_check_lib_save_LIBS
=$LIBS
9527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9530 /* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9536 char clock_gettime ();
9540 return clock_gettime ();
9545 if ac_fn_c_try_link
"$LINENO"; then :
9546 ac_cv_lib_rt_clock_gettime
=yes
9548 ac_cv_lib_rt_clock_gettime
=no
9550 rm -f core conftest.err conftest.
$ac_objext \
9551 conftest
$ac_exeext conftest.
$ac_ext
9552 LIBS
=$ac_check_lib_save_LIBS
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9555 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9556 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
9563 if test x
$HAVE_REALTIME = xyes
; then
9565 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9570 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9574 ################################################################################
9575 for ac_header
in getopt.h
9577 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9578 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9579 cat >>confdefs.h
<<_ACEOF
9580 #define HAVE_GETOPT_H 1
9583 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9590 ################################################################################
9591 if test x
$READLINE != xno
; then
9592 lvm_saved_libs
=$LIBS
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9594 $as_echo_n "checking for library containing tgetent... " >&6; }
9595 if test "${ac_cv_search_tgetent+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9598 ac_func_search_save_LIBS
=$LIBS
9599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9617 for ac_lib
in '' tinfo ncurses curses termcap termlib
; do
9618 if test -z "$ac_lib"; then
9619 ac_res
="none required"
9622 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9624 if ac_fn_c_try_link
"$LINENO"; then :
9625 ac_cv_search_tgetent
=$ac_res
9627 rm -f core conftest.err conftest.
$ac_objext \
9629 if test "${ac_cv_search_tgetent+set}" = set; then :
9633 if test "${ac_cv_search_tgetent+set}" = set; then :
9636 ac_cv_search_tgetent
=no
9639 LIBS
=$ac_func_search_save_LIBS
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9642 $as_echo "$ac_cv_search_tgetent" >&6; }
9643 ac_res
=$ac_cv_search_tgetent
9644 if test "$ac_res" != no
; then :
9645 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9646 READLINE_LIBS
=$ac_cv_search_tgetent
9649 if test "$READLINE" = yes; then
9650 as_fn_error $?
"termcap could not be found which is required for the
9651 --enable-readline option (which is enabled by default). Either disable readline
9652 support with --disable-readline or download and install termcap from:
9653 ftp.gnu.org/gnu/termcap
9654 Note: if you are using precompiled packages you will also need the development
9655 package as well (which may be called termcap-devel or something similar).
9656 Note: (n)curses also seems to work as a substitute for termcap. This was
9657 not found either - but you could try installing that as well." "$LINENO" 5
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9662 $as_echo_n "checking for readline in -lreadline... " >&6; }
9663 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9666 ac_check_lib_save_LIBS
=$LIBS
9667 LIBS
="-lreadline $LIBS"
9668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9671 /* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9686 if ac_fn_c_try_link
"$LINENO"; then :
9687 ac_cv_lib_readline_readline
=yes
9689 ac_cv_lib_readline_readline
=no
9691 rm -f core conftest.err conftest.
$ac_objext \
9692 conftest
$ac_exeext conftest.
$ac_ext
9693 LIBS
=$ac_check_lib_save_LIBS
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9696 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9697 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
9700 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9702 LIBS
=$lvm_saved_libs
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9704 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9705 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9708 ac_check_lib_save_LIBS
=$LIBS
9709 LIBS
="-lreadline $LIBS"
9710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9719 char rl_line_buffer ();
9723 return rl_line_buffer ();
9728 if ac_fn_c_try_link
"$LINENO"; then :
9729 ac_cv_lib_readline_rl_line_buffer
=yes
9731 ac_cv_lib_readline_rl_line_buffer
=no
9733 rm -f core conftest.err conftest.
$ac_objext \
9734 conftest
$ac_exeext conftest.
$ac_ext
9735 LIBS
=$ac_check_lib_save_LIBS
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9738 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9739 if test "x$ac_cv_lib_readline_rl_line_buffer" = x
""yes; then :
9740 READLINE_LIBS
="-lreadline"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9744 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9745 READLINE_LIBS
="-lreadline $READLINE_LIBS"
9752 if test "$READLINE" = yes; then
9753 as_fn_error $?
"GNU Readline could not be found which is required for the
9754 --enable-readline option (which is enabled by default). Either disable readline
9755 support with --disable-readline or download and install readline from:
9756 ftp.gnu.org/gnu/readline
9757 Note: if you are using precompiled packages you will also need the development
9758 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9762 LIBS
="$READLINE_LIBS $lvm_saved_libs"
9763 for ac_func
in rl_completion_matches
9765 ac_fn_c_check_func
"$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9766 if test "x$ac_cv_func_rl_completion_matches" = x
""yes; then :
9767 cat >>confdefs.h
<<_ACEOF
9768 #define HAVE_RL_COMPLETION_MATCHES 1
9774 LIBS
=$lvm_saved_libs
9777 ################################################################################
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9779 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9780 # Check whether --enable-nls was given.
9781 if test "${enable_nls+set}" = set; then :
9782 enableval
=$enable_nls; INTL
=$enableval
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9788 $as_echo "$INTL" >&6; }
9790 if test x
$INTL = xyes
; then
9791 # FIXME - Move this - can be device-mapper too
9793 # Extract the first word of "msgfmt", so it can be a program name with args.
9794 set dummy msgfmt
; ac_word
=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9802 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
9805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9809 test -z "$as_dir" && as_dir
=.
9810 for ac_exec_ext
in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 MSGFMT
=$ac_cv_path_MSGFMT
9824 if test -n "$MSGFMT"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9826 $as_echo "$MSGFMT" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9833 if [ "x$MSGFMT" == x
];
9834 then as_fn_error $?
"msgfmt not found in path $PATH
9839 # Check whether --with-localedir was given.
9840 if test "${with_localedir+set}" = set; then :
9841 withval
=$with_localedir; LOCALEDIR
=$withval
9843 LOCALEDIR
='${prefix}/share/locale'
9848 ################################################################################
9850 # Check whether --with-confdir was given.
9851 if test "${with_confdir+set}" = set; then :
9852 withval
=$with_confdir; CONFDIR
=$withval
9859 # Check whether --with-staticdir was given.
9860 if test "${with_staticdir+set}" = set; then :
9861 withval
=$with_staticdir; STATICDIR
=$withval
9863 STATICDIR
='${exec_prefix}/sbin'
9868 # Check whether --with-usrlibdir was given.
9869 if test "${with_usrlibdir+set}" = set; then :
9870 withval
=$with_usrlibdir; usrlibdir
=$withval
9872 usrlibdir
='${prefix}/lib'
9877 # Check whether --with-usrsbindir was given.
9878 if test "${with_usrsbindir+set}" = set; then :
9879 withval
=$with_usrsbindir; usrsbindir
=$withval
9881 usrsbindir
='${prefix}/sbin'
9885 ################################################################################
9887 # Check whether --with-udev_prefix was given.
9888 if test "${with_udev_prefix+set}" = set; then :
9889 withval
=$with_udev_prefix; udev_prefix
=$withval
9891 udev_prefix
='${exec_prefix}'
9896 # Check whether --with-udevdir was given.
9897 if test "${with_udevdir+set}" = set; then :
9898 withval
=$with_udevdir; udevdir
=$withval
9900 udevdir
='${udev_prefix}/lib/udev/rules.d'
9904 ################################################################################
9906 # Check whether --with-systemdsystemunitdir was given.
9907 if test "${with_systemdsystemunitdir+set}" = set; then :
9908 withval
=$with_systemdsystemunitdir; systemdsystemunitdir
=$withval
9910 test x
$PKGCONFIG_INIT != x1
&& pkg_config_init
9911 pkg_systemdsystemunitdir
=$
($PKG_CONFIG --variable=systemdsystemunitdir systemd
)
9915 if test -n "$pkg_systemdsystemunitdir"; then
9916 systemdsystemunitdir
=$pkg_systemdsystemunitdir;
9919 if test -z "$systemdsystemunitdir"; then
9920 systemdsystemunitdir
='/lib/systemd/system';
9922 ################################################################################
9924 # Check whether --with-tmpfilesdir was given.
9925 if test "${with_tmpfilesdir+set}" = set; then :
9926 withval
=$with_tmpfilesdir; tmpfilesdir
=$withval
9928 tmpfilesdir
='${prefix}/lib/tmpfiles.d'
9931 ################################################################################
9932 if test x
$READLINE = xyes
; then
9933 for ac_header
in readline
/readline.h readline
/history.h
9935 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9936 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9937 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9938 cat >>confdefs.h
<<_ACEOF
9939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 as_fn_error $?
"bailing out" "$LINENO" 5
9950 if test x
$CLVMD != xnone
; then
9951 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
9953 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9954 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9955 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9956 cat >>confdefs.h
<<_ACEOF
9957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961 as_fn_error $?
"bailing out" "$LINENO" 5
9966 for ac_func
in dup2 getmntent memmove
select socket
9968 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9969 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9970 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9971 cat >>confdefs.h
<<_ACEOF
9972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9976 as_fn_error $?
"bailing out" "$LINENO" 5
9980 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9981 # -lseq on Dynix/PTX, -lgen on Unixware.
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9983 $as_echo_n "checking for library containing getmntent... " >&6; }
9984 if test "${ac_cv_search_getmntent+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9987 ac_func_search_save_LIBS
=$LIBS
9988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
10001 return getmntent ();
10006 for ac_lib
in '' sun
seq gen
; do
10007 if test -z "$ac_lib"; then
10008 ac_res
="none required"
10011 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10013 if ac_fn_c_try_link
"$LINENO"; then :
10014 ac_cv_search_getmntent
=$ac_res
10016 rm -f core conftest.err conftest.
$ac_objext \
10018 if test "${ac_cv_search_getmntent+set}" = set; then :
10022 if test "${ac_cv_search_getmntent+set}" = set; then :
10025 ac_cv_search_getmntent
=no
10027 rm conftest.
$ac_ext
10028 LIBS
=$ac_func_search_save_LIBS
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10031 $as_echo "$ac_cv_search_getmntent" >&6; }
10032 ac_res
=$ac_cv_search_getmntent
10033 if test "$ac_res" != no
; then :
10034 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10035 ac_cv_func_getmntent
=yes
10037 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10040 ac_cv_func_getmntent
=no
10044 for ac_header
in sys
/select.h sys
/socket.h
10046 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10047 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10048 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10049 cat >>confdefs.h
<<_ACEOF
10050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10058 $as_echo_n "checking types of arguments for select... " >&6; }
10059 if test "${ac_cv_func_select_args+set}" = set; then :
10060 $as_echo_n "(cached) " >&6
10062 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
10063 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10064 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
10065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067 $ac_includes_default
10068 #ifdef HAVE_SYS_SELECT_H
10069 # include <sys/select.h>
10071 #ifdef HAVE_SYS_SOCKET_H
10072 # include <sys/socket.h>
10078 extern int select ($ac_arg1,
10079 $ac_arg234, $ac_arg234, $ac_arg234,
10085 if ac_fn_c_try_compile
"$LINENO"; then :
10086 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10092 # Provide a safe default value.
10093 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10097 $as_echo "$ac_cv_func_select_args" >&6; }
10098 ac_save_IFS
=$IFS; IFS
=','
10099 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10103 cat >>confdefs.h
<<_ACEOF
10104 #define SELECT_TYPE_ARG1 $1
10108 cat >>confdefs.h
<<_ACEOF
10109 #define SELECT_TYPE_ARG234 ($2)
10113 cat >>confdefs.h
<<_ACEOF
10114 #define SELECT_TYPE_ARG5 ($3)
10121 if test x
$CLUSTER != xnone
; then
10122 for ac_header
in sys
/socket.h sys
/un.h
10124 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10125 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10126 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10127 cat >>confdefs.h
<<_ACEOF
10128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10132 as_fn_error $?
"bailing out" "$LINENO" 5
10137 for ac_func
in socket
10139 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
10140 if test "x$ac_cv_func_socket" = x
""yes; then :
10141 cat >>confdefs.h
<<_ACEOF
10142 #define HAVE_SOCKET 1
10146 as_fn_error $?
"bailing out" "$LINENO" 5
10152 if test x
$DMEVENTD = xyes
; then
10153 for ac_header
in arpa
/inet.h
10155 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10156 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
10157 cat >>confdefs.h
<<_ACEOF
10158 #define HAVE_ARPA_INET_H 1
10162 as_fn_error $?
"bailing out" "$LINENO" 5
10169 if test x
$HAVE_LIBDL = xyes
; then
10170 for ac_header
in dlfcn.h
10172 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10173 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
10174 cat >>confdefs.h
<<_ACEOF
10175 #define HAVE_DLFCN_H 1
10179 as_fn_error $?
"bailing out" "$LINENO" 5
10186 if test x
$INTL = xyes
; then
10187 for ac_header
in libintl.h
10189 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10190 if test "x$ac_cv_header_libintl_h" = x
""yes; then :
10191 cat >>confdefs.h
<<_ACEOF
10192 #define HAVE_LIBINTL_H 1
10196 as_fn_error $?
"bailing out" "$LINENO" 5
10203 if test x
$UDEV_SYNC = xyes
; then
10204 for ac_header
in sys
/ipc.h sys
/sem.h
10206 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10207 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10208 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10209 cat >>confdefs.h
<<_ACEOF
10210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10214 as_fn_error $?
"bailing out" "$LINENO" 5
10221 ################################################################################
10222 # Extract the first word of "modprobe", so it can be a program name with args.
10223 set dummy modprobe
; ac_word
=$2
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225 $as_echo_n "checking for $ac_word... " >&6; }
10226 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10229 case $MODPROBE_CMD in
10231 ac_cv_path_MODPROBE_CMD
="$MODPROBE_CMD" # Let the user override the test with a path.
10234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10235 for as_dir
in $PATH
10238 test -z "$as_dir" && as_dir
=.
10239 for ac_exec_ext
in '' $ac_executable_extensions; do
10240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10241 ac_cv_path_MODPROBE_CMD
="$as_dir/$ac_word$ac_exec_ext"
10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 MODPROBE_CMD
=$ac_cv_path_MODPROBE_CMD
10253 if test -n "$MODPROBE_CMD"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10255 $as_echo "$MODPROBE_CMD" >&6; }
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10263 if test x
$MODPROBE_CMD != x
; then
10265 cat >>confdefs.h
<<_ACEOF
10266 #define MODPROBE_CMD "$MODPROBE_CMD"
10272 lvm_exec_prefix
=$exec_prefix
10273 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$prefix
10274 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$ac_default_prefix
10275 LVM_PATH
="$lvm_exec_prefix/sbin/lvm"
10277 cat >>confdefs.h
<<_ACEOF
10278 #define LVM_PATH "$LVM_PATH"
10282 if test "$CLVMD" != none
; then
10283 clvmd_prefix
=$ac_default_prefix
10284 CLVMD_PATH
="$clvmd_prefix/sbin/clvmd"
10285 test "$prefix" != NONE
&& clvmd_prefix
=$prefix
10287 cat >>confdefs.h
<<_ACEOF
10288 #define CLVMD_PATH "$CLVMD_PATH"
10293 ################################################################################
10294 if test "$BUILD_DMEVENTD" = yes; then
10296 # Check whether --with-dmeventd-pidfile was given.
10297 if test "${with_dmeventd_pidfile+set}" = set; then :
10298 withval
=$with_dmeventd_pidfile; DMEVENTD_PIDFILE
=$withval
10300 DMEVENTD_PIDFILE
="$DEFAULT_PID_DIR/dmeventd.pid"
10304 cat >>confdefs.h
<<_ACEOF
10305 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10310 if test "$BUILD_DMEVENTD" = yes; then
10312 # Check whether --with-dmeventd-path was given.
10313 if test "${with_dmeventd_path+set}" = set; then :
10314 withval
=$with_dmeventd_path; DMEVENTD_PATH
=$withval
10316 DMEVENTD_PATH
="$lvm_exec_prefix/sbin/dmeventd"
10320 cat >>confdefs.h
<<_ACEOF
10321 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10326 ################################################################################
10328 # Check whether --with-default-system-dir was given.
10329 if test "${with_default_system_dir+set}" = set; then :
10330 withval
=$with_default_system_dir; DEFAULT_SYS_DIR
=$withval
10332 DEFAULT_SYS_DIR
="/etc/lvm"
10336 cat >>confdefs.h
<<_ACEOF
10337 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10342 # Check whether --with-default-archive-subdir was given.
10343 if test "${with_default_archive_subdir+set}" = set; then :
10344 withval
=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR
=$withval
10346 DEFAULT_ARCHIVE_SUBDIR
=archive
10350 cat >>confdefs.h
<<_ACEOF
10351 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10356 # Check whether --with-default-backup-subdir was given.
10357 if test "${with_default_backup_subdir+set}" = set; then :
10358 withval
=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR
=$withval
10360 DEFAULT_BACKUP_SUBDIR
=backup
10364 cat >>confdefs.h
<<_ACEOF
10365 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10370 # Check whether --with-default-cache-subdir was given.
10371 if test "${with_default_cache_subdir+set}" = set; then :
10372 withval
=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR
=$withval
10374 DEFAULT_CACHE_SUBDIR
=cache
10378 cat >>confdefs.h
<<_ACEOF
10379 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10384 # Check whether --with-default-locking-dir was given.
10385 if test "${with_default_locking_dir+set}" = set; then :
10386 withval
=$with_default_locking_dir; DEFAULT_LOCK_DIR
=$withval
10388 DEFAULT_LOCK_DIR
="/var/lock/lvm"
10392 cat >>confdefs.h
<<_ACEOF
10393 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10397 ################################################################################
10399 # Check whether --with-default-data-alignment was given.
10400 if test "${with_default_data_alignment+set}" = set; then :
10401 withval
=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT
=$withval
10403 DEFAULT_DATA_ALIGNMENT
=1
10407 cat >>confdefs.h
<<_ACEOF
10408 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10412 ################################################################################
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10414 $as_echo_n "checking for kernel interface choice... " >&6; }
10416 # Check whether --with-interface was given.
10417 if test "${with_interface+set}" = set; then :
10418 withval
=$with_interface; interface
=$withval
10423 if [ "x$interface" != xioctl
];
10425 as_fn_error $?
"--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10428 $as_echo "$interface" >&6; }
10430 ################################################################################
10431 DM_LIB_VERSION
="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10433 cat >>confdefs.h
<<_ACEOF
10434 #define DM_LIB_VERSION $DM_LIB_VERSION
10438 DM_LIB_PATCHLEVEL
=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10440 LVM_VERSION
="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10442 VER
=`cat "$srcdir"/VERSION`
10443 LVM_RELEASE_DATE
="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10444 VER
=`echo "$VER" | $AWK '{print $1}'`
10445 LVM_RELEASE
="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10446 VER
=`echo "$VER" | $AWK -F '-' '{print $1}'`
10447 LVM_MAJOR
=`echo "$VER" | $AWK -F '.' '{print $1}'`
10448 LVM_MINOR
=`echo "$VER" | $AWK -F '.' '{print $2}'`
10449 LVM_PATCHLEVEL
=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10450 LVM_LIBAPI
=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10452 ################################################################################
10569 ################################################################################
10570 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/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/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/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/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_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10572 cat >confcache
<<\_ACEOF
10573 # This file is a shell script that caches the results of configure
10574 # tests run on this system so they can be shared between configure
10575 # scripts and configure runs, see configure's option --config-cache.
10576 # It is not useful on other systems. If it contains results you don't
10577 # want to keep, you may remove or edit it.
10579 # config.status only pays attention to the cache file if you give it
10580 # the --recheck option to rerun configure.
10582 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10583 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10584 # following values.
10588 # The following way of writing the cache mishandles newlines in values,
10589 # but we know of no workaround that is simple, portable, and efficient.
10590 # So, we kill variables containing newlines.
10591 # Ultrix sh set writes to stderr and can't be redirected directly,
10592 # and sets the high bit in the cache file unless we assign to the vars.
10594 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10595 eval ac_val
=\$
$ac_var
10599 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10603 _ | IFS | as_nl
) ;; #(
10604 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10605 *) { eval $ac_var=; unset $ac_var;} ;;
10611 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10612 *${as_nl}ac_space
=\
*)
10613 # `set' does not quote correctly, so add quotes: double-quote
10614 # substitution turns \\\\ into \\, and sed turns \\ into \.
10617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10620 # `set' quotes correctly as required by POSIX, so do not add quotes.
10621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10634 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10635 if test -w "$cache_file"; then
10636 test "x$cache_file" != "x/dev/null" &&
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10638 $as_echo "$as_me: updating cache $cache_file" >&6;}
10639 cat confcache
>$cache_file
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10642 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10647 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10648 # Let make expand exec_prefix.
10649 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10651 DEFS
=-DHAVE_CONFIG_H
10656 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10657 # 1. Remove the extension, and $U if already installed.
10658 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10659 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10660 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10661 # will be set to the directory where LIBOBJS objects are built.
10662 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10663 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10665 LIBOBJS
=$ac_libobjs
10667 LTLIBOBJS
=$ac_ltlibobjs
10671 : ${CONFIG_STATUS=./config.status}
10673 ac_clean_files_save
=$ac_clean_files
10674 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10676 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10678 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10680 # Generated by $as_me.
10681 # Run this file to recreate the current configuration.
10682 # Compiler output produced by configure, useful for debugging
10683 # configure, is in config.log if it exists.
10686 ac_cs_recheck=false
10689 SHELL=\${CONFIG_SHELL-$SHELL}
10692 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10693 ## -------------------- ##
10694 ## M4sh Initialization. ##
10695 ## -------------------- ##
10697 # Be more Bourne compatible
10698 DUALCASE
=1; export DUALCASE
# for MKS sh
10699 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10702 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10703 # is contrary to our usage. Disable this feature.
10704 alias -g '${1+"$@"}'='"$@"'
10705 setopt NO_GLOB_SUBST
10707 case `(set -o) 2>/dev/null` in #(
10719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10720 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10723 # Prefer a ksh shell builtin over an external printf program on Solaris,
10724 # but without wasting forks for bash or zsh.
10725 if test -z "$BASH_VERSION$ZSH_VERSION" \
10726 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10727 as_echo='print
-r --'
10728 as_echo_n='print
-rn --'
10729 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10730 as_echo='printf %s
\n'
10731 as_echo_n='printf %s
'
10733 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10734 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10735 as_echo_n='/usr
/ucb
/echo -n'
10737 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10738 as_echo_n_body='eval
10742 expr "X$arg" : "X\\(.*\\)$as_nl";
10743 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10745 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10747 export as_echo_n_body
10748 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10750 export as_echo_body
10751 as_echo='sh
-c $as_echo_body as_echo
'
10754 # The user is always right.
10755 if test "${PATH_SEPARATOR+set}" != set; then
10757 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10758 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10765 # We need space, tab and new line, in precisely that order. Quoting is
10766 # there to prevent editors from complaining about space-tab.
10767 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10768 # splitting by setting IFS to empty value.)
10771 # Find who we are. Look in the path if we contain no directory separator.
10773 *[\\/]* ) as_myself=$0 ;;
10774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10778 test -z "$as_dir" && as_dir=.
10779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10785 # We did not find ourselves, most probably we were run as `sh COMMAND'
10786 # in which case we are not to be found in the path.
10787 if test "x$as_myself" = x
; then
10790 if test ! -f "$as_myself"; then
10791 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10795 # Unset variables that we do not need and which cause bugs (e.g. in
10796 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10797 # suppresses any "Segmentation fault" message there. '((' could
10798 # trigger a bug in pdksh 5.2.14.
10799 for as_var
in BASH_ENV ENV MAIL MAILPATH
10800 do eval test x\
${$as_var+set} = xset \
10801 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10814 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10817 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10818 # ----------------------------------------
10819 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10820 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10821 # script with STATUS, using 1 if that was 0.
10824 as_status
=$1; test $as_status -eq 0 && as_status
=1
10826 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10829 $as_echo "$as_me: error: $2" >&2
10830 as_fn_exit
$as_status
10834 # as_fn_set_status STATUS
10835 # -----------------------
10836 # Set $? to STATUS, without forking.
10837 as_fn_set_status
()
10840 } # as_fn_set_status
10842 # as_fn_exit STATUS
10843 # -----------------
10844 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10848 as_fn_set_status
$1
10854 # Portably unset VAR.
10857 { eval $1=; unset $1;}
10859 as_unset
=as_fn_unset
10860 # as_fn_append VAR VALUE
10861 # ----------------------
10862 # Append the text in VALUE to the end of the definition contained in VAR. Take
10863 # advantage of any shell optimizations that allow amortized linear growth over
10864 # repeated appends, instead of the typical quadratic growth present in naive
10866 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10867 eval 'as_fn_append ()
10878 # as_fn_arith ARG...
10879 # ------------------
10880 # Perform arithmetic evaluation on the ARGs, and store the result in the
10881 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10882 # must be portable across $(()) and expr.
10883 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10884 eval 'as_fn_arith ()
10891 as_val
=`expr "$@" || test $? -eq 1`
10896 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10897 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10903 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10904 as_basename
=basename
10909 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10915 as_me
=`$as_basename -- "$0" ||
10916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10917 X"$0" : 'X\(//\)$' \| \
10918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10920 sed '/^.*\/\([^/][^/]*\)\/*$/{
10934 # Avoid depending upon Character Ranges.
10935 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10936 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10937 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10938 as_cr_digits
='0123456789'
10939 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10941 ECHO_C
= ECHO_N
= ECHO_T
=
10942 case `echo -n x` in #(((((
10944 case `echo 'xy\c'` in
10945 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10947 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10954 rm -f conf$$ conf$$.exe conf$$.
file
10955 if test -d conf$$.dir
; then
10956 rm -f conf$$.dir
/conf$$.
file
10959 mkdir conf$$.dir
2>/dev
/null
10961 if (echo >conf$$.
file) 2>/dev
/null
; then
10962 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10964 # ... but there are two gotchas:
10965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10967 # In both cases, we have to default to `cp -p'.
10968 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10970 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10978 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10979 rmdir conf$$.dir
2>/dev
/null
10984 # Create "$as_dir" as a directory, including parents if necessary.
10989 -*) as_dir
=.
/$as_dir;;
10991 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10995 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10996 *) as_qdir
=$as_dir;;
10998 as_dirs
="'$as_qdir' $as_dirs"
10999 as_dir
=`$as_dirname -- "$as_dir" ||
11000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11001 X"$as_dir" : 'X\(//\)[^/]' \| \
11002 X"$as_dir" : 'X\(//\)$' \| \
11003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11004 $as_echo X"$as_dir" |
11005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11009 /^X\(\/\/\)[^/].*/{
11022 test -d "$as_dir" && break
11024 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11025 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11029 if mkdir
-p .
2>/dev
/null
; then
11030 as_mkdir_p
='mkdir -p "$as_dir"'
11032 test -d .
/-p && rmdir .
/-p
11036 if test -x / >/dev
/null
2>&1; then
11037 as_test_x
='test -x'
11039 if ls -dL / >/dev
/null
2>&1; then
11046 if test -d "$1"; then
11052 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11053 ???[sx]*):;;*)false;;esac;fi
11057 as_executable_p
=$as_test_x
11059 # Sed expression to map a string onto a valid CPP name.
11060 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11062 # Sed expression to map a string onto a valid variable name.
11063 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11067 ## ----------------------------------- ##
11068 ## Main body of $CONFIG_STATUS script. ##
11069 ## ----------------------------------- ##
11071 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11074 # Save the log message, to keep $0 and so on meaningful, and to
11075 # report actual input values of CONFIG_FILES etc. instead of their
11076 # values after options handling.
11078 This file was extended by $as_me, which was
11079 generated by GNU Autoconf 2.66. Invocation command line was
11081 CONFIG_FILES = $CONFIG_FILES
11082 CONFIG_HEADERS = $CONFIG_HEADERS
11083 CONFIG_LINKS = $CONFIG_LINKS
11084 CONFIG_COMMANDS = $CONFIG_COMMANDS
11087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11092 case $ac_config_files in *"
11093 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11096 case $ac_config_headers in *"
11097 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11102 # Files that config.status was made for.
11103 config_files="$ac_config_files"
11104 config_headers="$ac_config_headers"
11108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11110 \`$as_me' instantiates files and other configuration actions
11111 from templates according to the current configuration. Unless the files
11112 and actions are specified as TAGs, all are instantiated by default.
11114 Usage: $0 [OPTION]... [TAG]...
11116 -h, --help print this help, then exit
11117 -V, --version print version number and configuration settings, then exit
11118 --config print configuration, then exit
11119 -q, --quiet, --silent
11120 do not print progress messages
11121 -d, --debug don't remove temporary files
11122 --recheck update $as_me by reconfiguring in the same conditions
11123 --file=FILE[:TEMPLATE]
11124 instantiate the configuration file FILE
11125 --header=FILE[:TEMPLATE]
11126 instantiate the configuration header FILE
11128 Configuration files:
11131 Configuration headers:
11134 Report bugs to the package provider."
11137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11138 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11141 configured by $0, generated by GNU Autoconf 2.66,
11142 with options \\"\$ac_cs_config\\"
11144 Copyright (C) 2010 Free Software Foundation, Inc.
11145 This config.status script is free software; the Free Software Foundation
11146 gives unlimited permission to copy, distribute and modify it."
11153 test -n "\$AWK" || AWK=awk
11156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11157 # The default lists apply if the user does not specify any file.
11163 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11164 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11175 # Handling of the options.
11176 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11178 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11179 $as_echo "$ac_cs_version"; exit ;;
11180 --config |
--confi |
--conf |
--con |
--co |
--c )
11181 $as_echo "$ac_cs_config"; exit ;;
11182 --debug |
--debu |
--deb |
--de |
--d |
-d )
11184 --file |
--fil |
--fi |
--f )
11187 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11189 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11190 ac_need_defaults
=false
;;
11191 --header |
--heade |
--head |
--hea )
11194 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11196 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11197 ac_need_defaults
=false
;;
11199 # Conflict between --help and --header
11200 as_fn_error $?
"ambiguous option: \`$1'
11201 Try \`$0 --help' for more information.";;
11202 --help |
--hel |
-h )
11203 $as_echo "$ac_cs_usage"; exit ;;
11204 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11205 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11208 # This is an error.
11209 -*) as_fn_error $?
"unrecognized option: \`$1'
11210 Try \`$0 --help' for more information." ;;
11212 *) as_fn_append ac_config_targets
" $1"
11213 ac_need_defaults
=false
;;
11219 ac_configure_extra_args
=
11221 if $ac_cs_silent; then
11223 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11228 if \$ac_cs_recheck; then
11229 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11232 CONFIG_SHELL='$SHELL'
11233 export CONFIG_SHELL
11238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11243 ## Running $as_me. ##
11249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11254 # Handling of arguments.
11255 for ac_config_target
in $ac_config_targets
11257 case $ac_config_target in
11258 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
11259 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11260 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
11261 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
11262 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11263 "daemons/cmirrord/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11264 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11265 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11266 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11267 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11268 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
11269 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11270 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11271 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
11272 "daemons/lvmetad/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
11273 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
11274 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
11275 "include/.symlinks") CONFIG_FILES
="$CONFIG_FILES include/.symlinks" ;;
11276 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
11277 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
11278 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
11279 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
11280 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
11281 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
11282 "lib/replicator/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/replicator/Makefile" ;;
11283 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11284 "lib/raid/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/raid/Makefile" ;;
11285 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
11286 "lib/thin/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/thin/Makefile" ;;
11287 "libdaemon/Makefile") CONFIG_FILES
="$CONFIG_FILES libdaemon/Makefile" ;;
11288 "libdaemon/client/Makefile") CONFIG_FILES
="$CONFIG_FILES libdaemon/client/Makefile" ;;
11289 "libdaemon/server/Makefile") CONFIG_FILES
="$CONFIG_FILES libdaemon/server/Makefile" ;;
11290 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
11291 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11292 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
11293 "liblvm/liblvm2app.pc") CONFIG_FILES
="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11294 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
11295 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
11296 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11297 "scripts/cmirrord_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11298 "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
11299 "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
11300 "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
11301 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11302 "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES
="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
11303 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11304 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11305 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
11306 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
11307 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
11308 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
11309 "test/unit/Makefile") CONFIG_FILES
="$CONFIG_FILES test/unit/Makefile" ;;
11310 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
11311 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
11312 "unit-tests/datastruct/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11313 "unit-tests/regex/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11314 "unit-tests/mm/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11316 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11321 # If the user did not use the arguments to specify the items to instantiate,
11322 # then the envvar interface is used. Set only those that are not.
11323 # We use the long form for the default assignment because of an extremely
11324 # bizarre bug on SunOS 4.1.3.
11325 if $ac_need_defaults; then
11326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11330 # Have a temporary directory for convenience. Make it in the build tree
11331 # simply because there is no reason against having it here, and in addition,
11332 # creating and moving files from /tmp can sometimes cause problems.
11333 # Hook for its removal unless debugging.
11334 # Note that there is a small window in which the directory will not be cleaned:
11335 # after its creation but before its name has been assigned to `$tmp'.
11339 trap 'exit_status=$?
11340 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11342 trap 'as_fn_exit 1' 1 2 13 15
11344 # Create a (secure) tmp directory for tmp files.
11347 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11348 test -n "$tmp" && test -d "$tmp"
11351 tmp
=.
/conf$$
-$RANDOM
11352 (umask 077 && mkdir
"$tmp")
11353 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11355 # Set up the scripts for CONFIG_FILES section.
11356 # No need to generate them if there are no CONFIG_FILES.
11357 # This happens for instance with `./config.status config.h'.
11358 if test -n "$CONFIG_FILES"; then
11361 ac_cr
=`echo X | tr X '\015'`
11362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11363 # But we know of no other shell where ac_cr would be empty at this
11364 # point, so we can use a bashism as a fallback.
11365 if test "x$ac_cr" = x
; then
11366 eval ac_cr
=\$
\'\\r
\'
11368 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11372 ac_cs_awk_cr
=$ac_cr
11375 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11380 echo "cat >conf$$subs.awk <<_ACEOF" &&
11381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11383 } >conf$$subs.sh ||
11384 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11387 for ac_last_try in false false false false false :; do
11388 . ./conf$$subs.sh ||
11389 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11391 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11392 if test $ac_delim_n = $ac_delim_num; then
11394 elif $ac_last_try; then
11395 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11397 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11400 rm -f conf$$subs.sh
11402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11403 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
11407 s/^/S["/; s
/!.
*/"]=/
11417 s/\(.\{148\}\)..*/\1/
11419 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11424 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11431 s/\(.\{148\}\)..*/\1/
11433 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11437 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11442 ' <conf$$subs.awk | sed '
11447 ' >>$CONFIG_STATUS || ac_write_fail=1
11448 rm -f conf$$subs.awk
11449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11451 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
11452 for (key in S) S_is_set[key] = 1
11458 nfields = split(line, field, "@
")
11460 len = length(field[1])
11461 for (i = 2; i < nfields; i++) {
11463 keylen = length(key)
11464 if (S_is_set[key]) {
11466 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11467 len += length(value) + length(field[++i])
11478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11479 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11480 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11483 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
11484 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11487 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11488 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11489 # trailing colons and then remove the whole line if VPATH becomes empty
11490 # (actually we leave an empty line to preserve line numbers).
11491 if test "x
$srcdir" = x.; then
11492 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11511 fi # test -n "$CONFIG_FILES"
11513 # Set up the scripts for CONFIG_HEADERS section.
11514 # No need to generate them if there are no CONFIG_HEADERS.
11515 # This happens for instance with `./config.status Makefile'.
11516 if test -n "$CONFIG_HEADERS"; then
11517 cat >"$tmp/defines.
awk" <<\_ACAWK ||
11521 # Transform confdefs.h into an awk script `defines.awk', embedded as
11522 # here-document in config.status, that substitutes the proper values into
11523 # config.h.in to produce config.h.
11525 # Create a delimiter string that does not exist in confdefs.h, to ease
11526 # handling of long lines.
11528 for ac_last_try in false false :; do
11529 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
11530 if test -z "$ac_t"; then
11532 elif $ac_last_try; then
11533 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11535 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11539 # For the awk script, D is an array of macro values keyed by name,
11540 # likewise P contains macro parameters if any. Preserve backslash
11541 # newline sequences.
11543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11545 s/.\{148\}/&'"$ac_delim"'/g
11548 s/^[ ]*#[ ]*define[ ][ ]*/ /
11555 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11557 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11562 D["\
1"]=" \
3\\\\\\n
"\\/p
11564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11569 s/.\{148\}/&'"$ac_delim"'/g
11574 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11577 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11579 ' <confdefs.h | sed '
11580 s/'"$ac_delim"'/"\\\
11581 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 for (key in D) D_is_set[key] = 1
11587 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11589 split(line, arg, " ")
11590 if (arg[1] == "#") {
11594 defundef
= substr
(arg
[1], 2)
11597 split(mac1
, mac2
, "(") #)
11599 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11600 if (D_is_set
[macro
]) {
11601 # Preserve the white space surrounding the "#".
11602 print prefix
"define", macro P
[macro
] D
[macro
]
11605 # Replace #undef with comments. This is necessary, for example,
11606 # in the case of _POSIX_SOURCE, which is predefined and required
11607 # on some systems where configure will not decide to define it.
11608 if (defundef
== "undef") {
11609 print
"/*", prefix defundef
, macro
, "*/"
11617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11618 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11619 fi # test -n "$CONFIG_HEADERS"
11622 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11627 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11629 case $ac_mode$ac_tag in
11631 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11632 :[FH
]-) ac_tag
=-:-;;
11633 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11650 -) ac_f
="$tmp/stdin";;
11651 *) # Look for the file first in the build tree, then in the source tree
11652 # (if the path is not absolute). The absolute path cannot be DOS-style,
11653 # because $ac_f cannot contain `:'.
11657 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11659 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11661 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11662 as_fn_append ac_file_inputs
" '$ac_f'"
11665 # Let's still pretend it is `configure' which instantiates (i.e., don't
11666 # use $as_me), people would be surprised to read:
11667 # /* config.h. Generated by config.status. */
11668 configure_input
='Generated from '`
11669 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11671 if test x
"$ac_file" != x-
; then
11672 configure_input
="$ac_file. $configure_input"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11674 $as_echo "$as_me: creating $ac_file" >&6;}
11676 # Neutralize special characters interpreted by sed in replacement strings.
11677 case $configure_input in #(
11678 *\
&* |
*\|
* |
*\\* )
11679 ac_sed_conf_input
=`$as_echo "$configure_input" |
11680 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11681 *) ac_sed_conf_input
=$configure_input;;
11685 *:-:* |
*:-) cat >"$tmp/stdin" \
11686 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11691 ac_dir
=`$as_dirname -- "$ac_file" ||
11692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11693 X"$ac_file" : 'X\(//\)[^/]' \| \
11694 X"$ac_file" : 'X\(//\)$' \| \
11695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11696 $as_echo X"$ac_file" |
11697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11701 /^X\(\/\/\)[^/].*/{
11714 as_dir
="$ac_dir"; as_fn_mkdir_p
11718 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11720 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11721 # A ".." for each directory in $ac_dir_suffix.
11722 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11723 case $ac_top_builddir_sub in
11724 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11725 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11728 ac_abs_top_builddir
=$ac_pwd
11729 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11730 # for backward compatibility:
11731 ac_top_builddir
=$ac_top_build_prefix
11734 .
) # We are building in place.
11736 ac_top_srcdir
=$ac_top_builddir_sub
11737 ac_abs_top_srcdir
=$ac_pwd ;;
11738 [\\/]* | ?
:[\\/]* ) # Absolute name.
11739 ac_srcdir
=$srcdir$ac_dir_suffix;
11740 ac_top_srcdir
=$srcdir
11741 ac_abs_top_srcdir
=$srcdir ;;
11742 *) # Relative name.
11743 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11744 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11745 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11747 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11757 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11758 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11760 ac_MKDIR_P
=$MKDIR_P
11762 [\\/$
]* | ?
:[\\/]* ) ;;
11763 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11768 # If the template does not know about datarootdir, expand it.
11769 # FIXME: This hack should be removed a few years after 2.60.
11770 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11782 *datarootdir
*) ac_datarootdir_seen
=yes;;
11783 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11785 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11788 ac_datarootdir_hack='
11789 s&@datadir@&$datadir&g
11790 s&@docdir@&$docdir&g
11791 s&@infodir@&$infodir&g
11792 s&@localedir@&$localedir&g
11793 s&@mandir@&$mandir&g
11794 s&\\\${datarootdir}&$datarootdir&g' ;;
11798 # Neutralize VPATH when `$srcdir' = `.'.
11799 # Shell code in configure.ac might set extrasub.
11800 # FIXME: do we really want to maintain this feature?
11801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11802 ac_sed_extra="$ac_vpsub
11805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11807 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11808 s|@configure_input@|
$ac_sed_conf_input|
;t t
11809 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11810 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11811 s
&@srcdir@
&$ac_srcdir&;t t
11812 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11813 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11814 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11815 s
&@builddir@
&$ac_builddir&;t t
11816 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11817 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11818 s
&@INSTALL@
&$ac_INSTALL&;t t
11819 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11820 $ac_datarootdir_hack
11822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
11823 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11826 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11829 which seems to be undefined. Please make sure it is defined" >&5
11830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11831 which seems to be undefined. Please make sure it is defined" >&2;}
11835 -) cat "$tmp/out" && rm -f "$tmp/out";;
11836 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11844 if test x"$ac_file" != x-; then
11846 $as_echo "/* $configure_input */" \
11847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11848 } >"$tmp/config.h" \
11849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11850 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11852 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11855 mv "$tmp/config.h" "$ac_file" \
11856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11859 $as_echo "/* $configure_input */" \
11860 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11861 || as_fn_error $? "could not create -" "$LINENO" 5
11873 ac_clean_files=$ac_clean_files_save
11875 test $ac_write_fail = 0 ||
11876 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11879 # configure is writing to config.log, and then calls config.status.
11880 # config.status does its own redirection, appending to config.log.
11881 # Unfortunately, on DOS this fails, as config.log is still kept open
11882 # by configure, so config.status won't be able to
write to it
; its
11883 # output is simply discarded. So we exec the FD to /dev/null,
11884 # effectively closing config.log, so it can be properly (re)opened and
11885 # appended to by config.status. When coming back to configure, we
11886 # need to make the FD available again.
11887 if test "$no_create" != yes; then
11889 ac_config_status_args
=
11890 test "$silent" = yes &&
11891 ac_config_status_args
="$ac_config_status_args --quiet"
11893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11896 # would make configure fail if this is the last instruction.
11897 $ac_cs_success || as_fn_exit
1
11899 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11901 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11905 if test x
$ODIRECT != xyes
; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11907 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}