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
609 UDEV_HAS_BUILTIN_BLKID
662 DEFAULT_DATA_ALIGNMENT
664 DEFAULT_BACKUP_SUBDIR
665 DEFAULT_ARCHIVE_SUBDIR
779 program_transform_name
792 enable_option_checking
800 with_default_name_mangling
817 with_cmirrord_pidfile
846 with_systemdsystemunitdir
847 with_dmeventd_pidfile
850 with_default_system_dir
851 with_default_archive_subdir
852 with_default_backup_subdir
853 with_default_cache_subdir
854 with_default_locking_dir
855 with_default_data_alignment
858 ac_precious_vars
='build_alias
896 # Initialize some variables set by options.
898 ac_init_version
=false
899 ac_unrecognized_opts
=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
910 program_transform_name
=s
,x
,x
,
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir
='${exec_prefix}/bin'
925 sbindir
='${exec_prefix}/sbin'
926 libexecdir
='${exec_prefix}/libexec'
927 datarootdir
='${prefix}/share'
928 datadir
='${datarootdir}'
929 sysconfdir
='${prefix}/etc'
930 sharedstatedir
='${prefix}/com'
931 localstatedir
='${prefix}/var'
932 includedir
='${prefix}/include'
933 oldincludedir
='/usr/include'
934 docdir
='${datarootdir}/doc/${PACKAGE}'
935 infodir
='${datarootdir}/info'
940 libdir
='${exec_prefix}/lib'
941 localedir
='${datarootdir}/locale'
942 mandir
='${datarootdir}/man'
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\
$ac_option
956 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
968 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
971 -build |
--build |
--buil |
--bui |
--bu)
972 ac_prev
=build_alias
;;
973 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
974 build_alias
=$ac_optarg ;;
976 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
977 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
978 ac_prev
=cache_file
;;
979 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
980 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
981 cache_file
=$ac_optarg ;;
984 cache_file
=config.cache
;;
986 -datadir |
--datadir |
--datadi |
--datad)
988 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
989 datadir
=$ac_optarg ;;
991 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
992 |
--dataroo |
--dataro |
--datar)
993 ac_prev
=datarootdir
;;
994 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
995 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
996 datarootdir
=$ac_optarg ;;
998 -disable-* |
--disable-*)
999 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1002 as_fn_error $?
"invalid feature name: $ac_useropt"
1003 ac_useropt_orig
=$ac_useropt
1004 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_
$ac_useropt"
1009 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep
=', ';;
1012 eval enable_
$ac_useropt=no
;;
1014 -docdir |
--docdir |
--docdi |
--doc |
--do)
1016 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1017 docdir
=$ac_optarg ;;
1019 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1021 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1022 dvidir
=$ac_optarg ;;
1024 -enable-* |
--enable-*)
1025 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid feature name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_
$ac_useropt"
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval enable_
$ac_useropt=\
$ac_optarg ;;
1040 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1041 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1042 |
--exec |
--exe |
--ex)
1043 ac_prev
=exec_prefix
;;
1044 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1045 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1046 |
--exec=* |
--exe=* |
--ex=*)
1047 exec_prefix
=$ac_optarg ;;
1049 -gas |
--gas |
--ga |
--g)
1050 # Obsolete; use --with-gas.
1053 -help |
--help |
--hel |
--he |
-h)
1054 ac_init_help
=long
;;
1055 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1056 ac_init_help
=recursive
;;
1057 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1058 ac_init_help
=short
;;
1060 -host |
--host |
--hos |
--ho)
1061 ac_prev
=host_alias
;;
1062 -host=* |
--host=* |
--hos=* |
--ho=*)
1063 host_alias
=$ac_optarg ;;
1065 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1067 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1069 htmldir
=$ac_optarg ;;
1071 -includedir |
--includedir |
--includedi |
--included |
--include \
1072 |
--includ |
--inclu |
--incl |
--inc)
1073 ac_prev
=includedir
;;
1074 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1075 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1076 includedir
=$ac_optarg ;;
1078 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1080 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1081 infodir
=$ac_optarg ;;
1083 -libdir |
--libdir |
--libdi |
--libd)
1085 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1086 libdir
=$ac_optarg ;;
1088 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1089 |
--libexe |
--libex |
--libe)
1090 ac_prev
=libexecdir
;;
1091 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1092 |
--libexe=* |
--libex=* |
--libe=*)
1093 libexecdir
=$ac_optarg ;;
1095 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1096 ac_prev
=localedir
;;
1097 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1098 localedir
=$ac_optarg ;;
1100 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1101 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1102 ac_prev
=localstatedir
;;
1103 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1104 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1105 localstatedir
=$ac_optarg ;;
1107 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1109 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1110 mandir
=$ac_optarg ;;
1112 -nfp |
--nfp |
--nf)
1113 # Obsolete; use --without-fp.
1116 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1117 |
--no-cr |
--no-c |
-n)
1120 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1121 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1124 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1125 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1126 |
--oldin |
--oldi |
--old |
--ol |
--o)
1127 ac_prev
=oldincludedir
;;
1128 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1129 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1130 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1131 oldincludedir
=$ac_optarg ;;
1133 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1135 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1136 prefix
=$ac_optarg ;;
1138 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1139 |
--program-pre |
--program-pr |
--program-p)
1140 ac_prev
=program_prefix
;;
1141 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1142 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1143 program_prefix
=$ac_optarg ;;
1145 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1146 |
--program-suf |
--program-su |
--program-s)
1147 ac_prev
=program_suffix
;;
1148 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1149 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1150 program_suffix
=$ac_optarg ;;
1152 -program-transform-name |
--program-transform-name \
1153 |
--program-transform-nam |
--program-transform-na \
1154 |
--program-transform-n |
--program-transform- \
1155 |
--program-transform |
--program-transfor \
1156 |
--program-transfo |
--program-transf \
1157 |
--program-trans |
--program-tran \
1158 |
--progr-tra |
--program-tr |
--program-t)
1159 ac_prev
=program_transform_name
;;
1160 -program-transform-name=* |
--program-transform-name=* \
1161 |
--program-transform-nam=* |
--program-transform-na=* \
1162 |
--program-transform-n=* |
--program-transform-=* \
1163 |
--program-transform=* |
--program-transfor=* \
1164 |
--program-transfo=* |
--program-transf=* \
1165 |
--program-trans=* |
--program-tran=* \
1166 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1167 program_transform_name
=$ac_optarg ;;
1169 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1171 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1172 pdfdir
=$ac_optarg ;;
1174 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1176 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1179 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1180 |
-silent |
--silent |
--silen |
--sile |
--sil)
1183 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1185 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1187 sbindir
=$ac_optarg ;;
1189 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1190 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1191 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1193 ac_prev
=sharedstatedir
;;
1194 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1195 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1196 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1198 sharedstatedir
=$ac_optarg ;;
1200 -site |
--site |
--sit)
1202 -site=* |
--site=* |
--sit=*)
1205 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1207 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1208 srcdir
=$ac_optarg ;;
1210 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1211 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1212 ac_prev
=sysconfdir
;;
1213 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1214 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1215 sysconfdir
=$ac_optarg ;;
1217 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1218 ac_prev
=target_alias
;;
1219 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1220 target_alias
=$ac_optarg ;;
1222 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1225 -version |
--version |
--versio |
--versi |
--vers |
-V)
1226 ac_init_version
=: ;;
1229 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1232 as_fn_error $?
"invalid package name: $ac_useropt"
1233 ac_useropt_orig
=$ac_useropt
1234 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep
=', ';;
1242 eval with_
$ac_useropt=\
$ac_optarg ;;
1244 -without-* |
--without-*)
1245 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1248 as_fn_error $?
"invalid package name: $ac_useropt"
1249 ac_useropt_orig
=$ac_useropt
1250 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep
=', ';;
1258 eval with_
$ac_useropt=no
;;
1261 # Obsolete; use --with-x.
1264 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1265 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1266 ac_prev
=x_includes
;;
1267 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1268 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1269 x_includes
=$ac_optarg ;;
1271 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1272 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1273 ac_prev
=x_libraries
;;
1274 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1275 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1276 x_libraries
=$ac_optarg ;;
1278 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1283 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1287 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\
$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 if test -n "$ac_prev"; then
1304 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $?
"missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val
=\$
$ac_var
1323 # Remove trailing slashes.
1326 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\
$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$
]* | ?
:[\\/]* ) continue;;
1332 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1334 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target
=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x
; then
1346 if test "x$build_alias" = x
; then
1347 cross_compiling
=maybe
1348 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used" >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1358 test "$silent" = yes && exec 6>/dev
/null
1361 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di
=`ls -di .` &&
1363 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $?
"working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $?
"pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted
=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir
=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted
=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1405 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var
in $ac_precious_vars; do
1422 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1424 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures this package to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --build=BUILD configure
for building on BUILD
[guessed
]
1494 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1495 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1499 if test -n "$ac_init_help"; then
1504 --disable-option-checking ignore unrecognized
--enable/--with options
1505 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1506 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1507 --enable-static_link use this to link the tools to their libraries
1508 statically
(default is dynamic linking
1509 --enable-lvm1_fallback use this to fall back and use LVM1 binaries
if
1510 device-mapper is missing from the kernel
1511 --disable-readline disable readline support
1512 --enable-realtime enable realtime
clock support
1513 --enable-ocf enable Open Cluster Framework
(OCF
) compliant
1515 --enable-cmirrord enable the cluster mirror log daemon
1516 --enable-debug enable debugging
1517 --enable-profiling gather gcov profiling data
1518 --enable-testing enable testing targets
in the makefile
1519 --enable-valgrind-pool enable valgrind awareness of pools
1520 --disable-devmapper disable LVM2 device-mapper interaction
1521 --enable-lvmetad enable the LVM Metadata Daemon
1522 --enable-udev_sync enable synchronisation with udev processing
1523 --enable-udev_rules install rule files needed
for udev synchronisation
1524 --enable-compat enable support
for old device-mapper versions
1525 --enable-units-compat enable output compatibility with old versions that
1526 that
do not use KiB-style unit suffixes
1527 --disable-driver disable calls to device-mapper
in the kernel
1528 --disable-o_direct disable O_DIRECT
1529 --enable-applib build application library
1530 --enable-cmdlib build shared
command library
1531 --enable-pkgconfig install pkgconfig support
1532 --enable-write_install install user writable files
1533 --disable-fsadm disable fsadm
1534 --enable-dmeventd enable the device-mapper event daemon
1535 --disable-selinux disable selinux support
1536 --enable-nls enable Native Language Support
1539 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1540 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1541 --with-user=USER
set the owner of installed files
[[USER
=]]
1542 --with-group=GROUP
set the group owner of installed files
[[GROUP
=]]
1543 --with-device-uid=UID
set the owner used
for new device nodes
[[UID
=0]]
1544 --with-device-gid=GID
set the group used
for new device nodes
[[GID
=0]]
1545 --with-device-mode=MODE
set the mode used
for new device nodes
[[MODE
=0600]]
1546 --with-device-nodes-on=ON
1547 create nodes on resume or create
[[ON
=resume
]]
1548 --with-default-name-mangling=MANGLING
1549 default name mangling
: auto
/none
/hex
1551 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1553 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1555 --with-cluster=TYPE cluster LVM locking support
: internal
/shared
/none
1557 --with-snapshots=TYPE snapshot support
: internal
/shared
/none
1559 --with-mirrors=TYPE mirror support
: internal
/shared
/none
1561 --with-raid=TYPE mirror support
: internal
/shared
/none
1563 --with-replicators=TYPE replicator support
: internal
/shared
/none
1565 --with-thin=TYPE thin provisioning support
: internal
/shared
/none
1567 --with-ocfdir=DIR
install OCF files
in DIR
1568 [[PREFIX
/lib
/ocf
/resource.d
/lvm2
]]
1569 --with-clvmd=TYPE build cluster LVM Daemon
1570 The following cluster manager combinations are valid
:
1571 * cman
(RHEL5 or equivalent
)
1572 * cman
,corosync
,openais
(or selection of them
)
1573 * singlenode
(localhost only
)
1575 * none
(disable build
)
1577 --with-clvmd-pidfile=PATH
1578 clvmd pidfile
[[/var
/run
/clvmd.pid
]]
1579 --with-cmirrord-pidfile=PATH
1580 cmirrord pidfile
[[/var
/run
/cmirrord.pid
]]
1581 --with-optimisation=OPT C optimisation flag
[[OPT
=-O2]]
1582 --with-localedir=DIR translation files
in DIR
[[PREFIX
/share
/locale
]]
1583 --with-confdir=DIR configuration files
in DIR
[[/etc
]]
1584 --with-staticdir=DIR static binaries
in DIR
[[EPREFIX
/sbin
]]
1585 --with-usrlibdir=DIR usrlib
in DIR
[[PREFIX
/lib
]]
1586 --with-usrsbindir=DIR usrsbin executables
in DIR
[[PREFIX
/sbin
]]
1587 --with-udev-prefix=UPREFIX
1588 install udev rule files
in UPREFIX
[[EPREFIX
]]
1589 --with-udevdir=DIR udev rules
in DIR
[[UPREFIX
/lib
/udev
/rules.d
]]
1590 --with-systemdsystemunitdir=DIR
1591 systemd service files
in DIR
1592 --with-dmeventd-pidfile=PATH
1593 dmeventd pidfile
[[/var
/run
/dmeventd.pid
]]
1594 --with-dmeventd-path=PATH
1595 dmeventd path
[[EPREFIX
/sbin
/dmeventd
]]
1596 --with-default-run-dir=DIR Default run directory
[/var
/run
/lvm
]
1597 --with-default-system-dir=DIR
1598 default LVM system directory
[[/etc
/lvm
]]
1599 --with-default-archive-subdir=SUBDIR
1600 default metadata archive subdir
[[archive
]]
1601 --with-default-backup-subdir=SUBDIR
1602 default metadata backup subdir
[[backup
]]
1603 --with-default-cache-subdir=SUBDIR
1604 default metadata cache subdir
[[cache
]]
1605 --with-default-locking-dir=DIR
1606 default locking directory
[[/var
/lock
/lvm
]]
1607 --with-default-data-alignment=NUM
1608 set the default data alignment
in MiB
[[1]]
1609 --with-interface=IFACE choose kernel interface
(ioctl
) [[ioctl
]]
1611 Some influential environment variables
:
1612 CC C compiler
command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1615 nonstandard directory
<lib dir
>
1616 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1617 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1618 you have headers
in a nonstandard directory
<include dir
>
1620 PKG_CONFIG path to pkg-config utility
1622 directories to add to pkg-config
's search path
1624 path overriding pkg-config's built-in search path
1625 PKGCONFIGINIT_CFLAGS
1626 C compiler flags
for PKGCONFIGINIT
, overriding pkg-config
1628 linker flags
for PKGCONFIGINIT
, overriding pkg-config
1629 CMAN_CFLAGS C compiler flags
for CMAN
, overriding pkg-config
1630 CMAN_LIBS linker flags
for CMAN
, overriding pkg-config
1632 C compiler flags
for COROSYNC
, overriding pkg-config
1634 linker flags
for COROSYNC
, overriding pkg-config
1636 C compiler flags
for QUORUM
, overriding pkg-config
1637 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1639 C compiler flags
for SALCK
, overriding pkg-config
1640 SALCK_LIBS linker flags
for SALCK
, overriding pkg-config
1642 C compiler flags
for CONFDB
, overriding pkg-config
1643 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1644 CMAP_CFLAGS C compiler flags
for CMAP
, overriding pkg-config
1645 CMAP_LIBS linker flags
for CMAP
, overriding pkg-config
1646 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1647 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1648 DLM_CFLAGS C compiler flags
for DLM
, overriding pkg-config
1649 DLM_LIBS linker flags
for DLM
, overriding pkg-config
1651 C compiler flags
for SACKPT
, overriding pkg-config
1652 SACKPT_LIBS linker flags
for SACKPT
, overriding pkg-config
1654 C compiler flags
for CUNIT
, overriding pkg-config
1655 CUNIT_LIBS linker flags
for CUNIT
, overriding pkg-config
1656 UDEV_CFLAGS C compiler flags
for UDEV
, overriding pkg-config
1657 UDEV_LIBS linker flags
for UDEV
, overriding pkg-config
1659 Use these variables to override the choices made by
`configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1662 Report bugs to the package provider.
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" ||
1671 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1679 # A ".." for each directory in $ac_dir_suffix.
1680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1681 case $ac_top_builddir_sub in
1682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686 ac_abs_top_builddir=$ac_pwd
1687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir=$ac_top_build_prefix
1692 .) # We are building in place.
1694 ac_top_srcdir=$ac_top_builddir_sub
1695 ac_abs_top_srcdir=$ac_pwd ;;
1696 [\\/]* | ?:[\\/]* ) # Absolute name.
1697 ac_srcdir=$srcdir$ac_dir_suffix;
1698 ac_top_srcdir=$srcdir
1699 ac_abs_top_srcdir=$srcdir ;;
1701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702 ac_top_srcdir=$ac_top_build_prefix$srcdir
1703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707 cd "$ac_dir" || { ac_status=$?; continue; }
1708 # Check for guested configure.
1709 if test -f "$ac_srcdir/configure.gnu"; then
1711 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712 elif test -f "$ac_srcdir/configure"; then
1714 $SHELL "$ac_srcdir/configure" --help=recursive
1716 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718 cd "$ac_pwd" || { ac_status=$?; break; }
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1726 generated by GNU Autoconf 2.66
1728 Copyright (C) 2010 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1735 ## ------------------------ ##
1736 ## Autoconf initialization. ##
1737 ## ------------------------ ##
1739 # ac_fn_c_try_compile LINENO
1740 # --------------------------
1741 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_compile ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext
1746 if { { ac_try="$ac_compile"
1748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1749 *) ac_try_echo
=$ac_try;;
1751 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_compile") 2>conftest.err
1755 if test -s conftest.err
; then
1756 grep -v '^ *+' conftest.err
>conftest.er1
1757 cat conftest.er1
>&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest.
$ac_objext; then :
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.
$ac_ext >&5
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1773 as_fn_set_status
$ac_retval
1775 } # ac_fn_c_try_compile
1777 # ac_fn_c_try_cpp LINENO
1778 # ----------------------
1779 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1783 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } >/dev/null && {
1799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 as_fn_set_status $ac_retval
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1824 *) ac_try_echo
=$ac_try;;
1826 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1830 if test -s conftest.err
; then
1831 grep -v '^ *+' conftest.err
>conftest.er1
1832 cat conftest.er1
>&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest
$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 $as_test_x conftest
$ac_exeext
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.
$ac_ext >&5
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1856 as_fn_set_status
$ac_retval
1858 } # ac_fn_c_try_link
1860 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1863 # the include files in INCLUDES and setting the cache variable VAR
1865 ac_fn_c_check_header_mongrel
()
1867 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1868 if eval "test \"\${$3+set}\"" = set; then :
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval "test \"\${$3+set}\"" = set; then :
1872 $as_echo_n "(cached) " >&6
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 # Is the header compilable?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1880 $as_echo_n "checking $2 usability... " >&6; }
1881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1886 if ac_fn_c_try_compile
"$LINENO"; then :
1887 ac_header_compiler
=yes
1889 ac_header_compiler
=no
1891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1893 $as_echo "$ac_header_compiler" >&6; }
1895 # Is the header present?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1897 $as_echo_n "checking $2 presence... " >&6; }
1898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1902 if ac_fn_c_try_cpp
"$LINENO"; then :
1903 ac_header_preproc
=yes
1905 ac_header_preproc
=no
1907 rm -f conftest.err conftest.
$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1909 $as_echo "$ac_header_preproc" >&6; }
1911 # So? What about this header?
1912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1915 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1921 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1923 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1925 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1927 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval "test \"\${$3+set}\"" = set; then :
1935 $as_echo_n "(cached) " >&6
1937 eval "$3=\$ac_header_compiler"
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1945 } # ac_fn_c_check_header_mongrel
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1953 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1954 if { { ac_try
="$ac_link"
1956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>&5
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965 { { case "(($ac_try" in
1966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1967 *) ac_try_echo
=$ac_try;;
1969 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_try") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; }; }; then :
1977 $as_echo "$as_me: program exited with status $ac_status" >&5
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.
$ac_ext >&5
1981 ac_retval
=$ac_status
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1985 as_fn_set_status
$ac_retval
1989 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists and can be compiled using the include files in
1992 # INCLUDES, setting the cache variable VAR accordingly.
1993 ac_fn_c_check_header_compile
()
1995 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval "test \"\${$3+set}\"" = set; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_c_try_compile
"$LINENO"; then :
2011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2018 } # ac_fn_c_check_header_compile
2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021 # ----------------------------------------------------
2022 # Tries to find if the field MEMBER exists in type AGGR, after including
2023 # INCLUDES, setting cache variable VAR accordingly.
2024 ac_fn_c_check_member
()
2026 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028 $as_echo_n "checking for $2.$3... " >&6; }
2029 if eval "test \"\${$4+set}\"" = set; then :
2030 $as_echo_n "(cached) " >&6
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2045 if ac_fn_c_try_compile
"$LINENO"; then :
2048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2055 if (sizeof ac_aggr.$3)
2061 if ac_fn_c_try_compile
"$LINENO"; then :
2066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2075 } # ac_fn_c_check_member
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type
()
2083 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval "test \"\${$3+set}\"" = set; then :
2087 $as_echo_n "(cached) " >&6
2090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2115 if ac_fn_c_try_compile
"$LINENO"; then :
2120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2129 } # ac_fn_c_check_type
2131 # ac_fn_c_find_intX_t LINENO BITS VAR
2132 # -----------------------------------
2133 # Finds a signed integer type with width BITS, setting cache variable VAR
2135 ac_fn_c_find_intX_t
()
2137 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2139 $as_echo_n "checking for int$2_t... " >&6; }
2140 if eval "test \"\${$3+set}\"" = set; then :
2141 $as_echo_n "(cached) " >&6
2144 # Order is important - never check a type that is potentially smaller
2145 # than half of the expected target width.
2146 for ac_type
in int
$2_t 'int' 'long int' \
2147 'long long int' 'short int' 'signed char'; do
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $ac_includes_default
2151 enum { N = $2 / 2 - 1 };
2155 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2162 if ac_fn_c_try_compile
"$LINENO"; then :
2163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $ac_includes_default
2166 enum { N = $2 / 2 - 1 };
2170 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2171 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2178 if ac_fn_c_try_compile
"$LINENO"; then :
2185 eval "$3=\$ac_type" ;;
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 if eval test \"x\$
"$3"\" = x
"no"; then :
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2203 } # ac_fn_c_find_intX_t
2205 # ac_fn_c_find_uintX_t LINENO BITS VAR
2206 # ------------------------------------
2207 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2209 ac_fn_c_find_uintX_t
()
2211 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2213 $as_echo_n "checking for uint$2_t... " >&6; }
2214 if eval "test \"\${$3+set}\"" = set; then :
2215 $as_echo_n "(cached) " >&6
2218 # Order is important - never check a type that is potentially smaller
2219 # than half of the expected target width.
2220 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2221 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $ac_includes_default
2228 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2235 if ac_fn_c_try_compile
"$LINENO"; then :
2240 eval "$3=\$ac_type" ;;
2243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2244 if eval test \"x\$
"$3"\" = x
"no"; then :
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2256 } # ac_fn_c_find_uintX_t
2258 # ac_fn_c_check_func LINENO FUNC VAR
2259 # ----------------------------------
2260 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2261 ac_fn_c_check_func
()
2263 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval "test \"\${$3+set}\"" = set; then :
2267 $as_echo_n "(cached) " >&6
2269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2273 #define $2 innocuous_$2
2275 /* System header to define __stub macros and hopefully few prototypes,
2276 which can conflict with char $2 (); below.
2277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2278 <limits.h> exists even on freestanding compilers. */
2281 # include <limits.h>
2283 # include <assert.h>
2288 /* Override any GCC internal prototype to avoid an error.
2289 Use char because int might match the return type of a GCC
2290 builtin and then its argument prototype would still apply. */
2295 /* The GNU C library defines this for functions which it implements
2296 to always fail with ENOSYS. Some functions are actually named
2297 something starting with __ and the normal name is an alias. */
2298 #if defined __stub_$2 || defined __stub___$2
2310 if ac_fn_c_try_link
"$LINENO"; then :
2315 rm -f core conftest.err conftest.
$ac_objext \
2316 conftest
$ac_exeext conftest.
$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2323 } # ac_fn_c_check_func
2324 cat >config.log
<<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2328 It was created by $as_me, which was
2329 generated by GNU Autoconf 2.66. Invocation command line was
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir
=.
2365 $as_echo "PATH: $as_dir"
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2389 ac_must_keep_next
=false
2395 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2396 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2397 |
-silent |
--silent |
--silen |
--sile |
--sil)
2400 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2405 as_fn_append ac_configure_args1
" '$ac_arg'"
2406 if test $ac_must_keep_next = true
; then
2407 ac_must_keep_next
=false
# Got value, back to normal.
2410 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2411 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2412 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2413 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2418 -* ) ac_must_keep_next
=true
;;
2421 as_fn_append ac_configure_args
" '$ac_arg'"
2426 { ac_configure_args0
=; unset ac_configure_args0
;}
2427 { ac_configure_args1
=; unset ac_configure_args1
;}
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log. We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2439 $as_echo "## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##"
2443 # The following way of writing the cache mishandles newlines in values,
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2475 $as_echo "## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##"
2479 for ac_var in $ac_subst_vars
2481 eval ac_val=\$$ac_var
2483 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485 $as_echo "$ac_var='\''$ac_val'\''"
2489 if test -n "$ac_subst_files"; then
2490 $as_echo "## ------------------- ##
2491 ## File substitutions. ##
2492 ## ------------------- ##"
2494 for ac_var
in $ac_subst_files
2496 eval ac_val
=\$
$ac_var
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 $as_echo "$ac_var='\''$ac_val'\''"
2505 if test -s confdefs.h; then
2506 $as_echo "## ----------- ##
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2521 for ac_signal
in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest
* confdefs.h
2529 $as_echo "/* confdefs.h */" > confdefs.h
2531 # Predefined preprocessor variables.
2533 cat >>confdefs.h
<<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2537 cat >>confdefs.h
<<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2541 cat >>confdefs.h
<<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2545 cat >>confdefs.h
<<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2549 cat >>confdefs.h
<<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2553 cat >>confdefs.h
<<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2562 if test -n "$CONFIG_SITE"; then
2563 # We do not want a PATH search for config.site.
2564 case $CONFIG_SITE in #((
2565 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2566 */*) ac_site_file1
=$CONFIG_SITE;;
2567 *) ac_site_file1
=.
/$CONFIG_SITE;;
2569 elif test "x$prefix" != xNONE
; then
2570 ac_site_file1
=$prefix/share
/config.site
2571 ac_site_file2
=$prefix/etc
/config.site
2573 ac_site_file1
=$ac_default_prefix/share
/config.site
2574 ac_site_file2
=$ac_default_prefix/etc
/config.site
2576 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2578 test "x$ac_site_file" = xNONE
&& continue
2579 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2584 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $?
"failed to load site script $ac_site_file
2587 See \`config.log' for more details" "$LINENO" 5; }
2591 if test -r "$cache_file"; then
2592 # Some versions of bash will fail to source /dev/null (special files
2593 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2594 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2596 $as_echo "$as_me: loading cache $cache_file" >&6;}
2598 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2599 *) .
"./$cache_file";;
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2604 $as_echo "$as_me: creating cache $cache_file" >&6;}
2608 as_fn_append ac_header_list
" stdlib.h"
2609 as_fn_append ac_header_list
" unistd.h"
2610 as_fn_append ac_header_list
" sys/param.h"
2611 # Check that the precious variables saved in the cache have kept the same
2613 ac_cache_corrupted
=false
2614 for ac_var
in $ac_precious_vars; do
2615 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2616 eval ac_new_set
=\
$ac_env_${ac_var}_set
2617 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2618 eval ac_new_val
=\
$ac_env_${ac_var}_value
2619 case $ac_old_set,$ac_new_set in
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2623 ac_cache_corrupted
=: ;;
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2627 ac_cache_corrupted
=: ;;
2630 if test "x$ac_old_val" != "x$ac_new_val"; then
2631 # differences in whitespace do not lead to failure.
2632 ac_old_val_w
=`echo x $ac_old_val`
2633 ac_new_val_w
=`echo x $ac_new_val`
2634 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2636 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2637 ac_cache_corrupted
=:
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2640 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2641 eval $ac_var=\
$ac_old_val
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2644 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2646 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649 # Pass precious variables to config.status.
2650 if test "$ac_new_set" = set; then
2652 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 *) ac_arg
=$ac_var=$ac_new_val ;;
2655 case " $ac_configure_args " in
2656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2657 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2661 if $ac_cache_corrupted; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2665 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2666 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2668 ## -------------------- ##
2669 ## Main body of script. ##
2670 ## -------------------- ##
2673 ac_cpp
='$CPP $CPPFLAGS'
2674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2680 ac_config_headers
="$ac_config_headers lib/misc/configure.h"
2683 ################################################################################
2685 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2686 if test -f "$ac_dir/install-sh"; then
2688 ac_install_sh
="$ac_aux_dir/install-sh -c"
2690 elif test -f "$ac_dir/install.sh"; then
2692 ac_install_sh
="$ac_aux_dir/install.sh -c"
2694 elif test -f "$ac_dir/shtool"; then
2696 ac_install_sh
="$ac_aux_dir/shtool install -c"
2700 if test -z "$ac_aux_dir"; then
2701 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2704 # These three variables are undocumented and unsupported,
2705 # and are intended to be withdrawn in a future Autoconf release.
2706 # They can cause serious problems if a builder's source tree is in a directory
2707 # whose full name contains unusual characters.
2708 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2709 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2710 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2714 ################################################################################
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2717 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if test "${ac_cv_build+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2724 ac_build_alias
=$build_alias
2725 test "x$ac_build_alias" = x
&&
2726 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x
&&
2728 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2737 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2740 ac_save_IFS
=$IFS; IFS
='-'
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2750 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if test "${ac_cv_host+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2758 if test "x$host_alias" = x
; then
2759 ac_cv_host
=$ac_cv_build
2761 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2770 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2773 ac_save_IFS
=$IFS; IFS
='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787 $as_echo_n "checking target system type... " >&6; }
2788 if test "${ac_cv_target+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
2791 if test "x$target_alias" = x
; then
2792 ac_cv_target
=$ac_cv_host
2794 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2795 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800 $as_echo "$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2803 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2805 target
=$ac_cv_target
2806 ac_save_IFS
=$IFS; IFS
='-'
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2816 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2819 # The aliases save the names the user supplied, while $host etc.
2820 # will get canonicalized.
2821 test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2824 program_prefix
=${target_alias}-
2829 COPTIMISE_FLAG
="-O2"
2830 CLDFLAGS
="$CLDFLAGS -Wl,--version-script,.export.sym"
2831 ELDFLAGS
="-Wl,--export-dynamic"
2832 # FIXME Generate list and use --dynamic-list=.dlopen.sym
2833 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
2834 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
2835 LDDEPS
="$LDDEPS .export.sym"
2846 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
2847 COPTIMISE_FLAG
="-O2"
2848 CLDFLAGS
="$CLDFLAGS"
2850 CLDWHOLEARCHIVE
="-all_load"
2862 ################################################################################
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2864 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2865 if test "${ac_cv_path_SED+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2868 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2869 for ac_i
in 1 2 3 4 5 6 7; do
2870 ac_script
="$ac_script$as_nl$ac_script"
2872 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2873 { ac_script
=; unset ac_script
;}
2874 if test -z "$SED"; then
2875 ac_path_SED_found
=false
2876 # Loop through the user's path and test for each of PROGNAME-LIST
2877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir
=.
2882 for ac_prog
in sed gsed
; do
2883 for ac_exec_ext
in '' $ac_executable_extensions; do
2884 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2885 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
2886 # Check for GNU ac_path_SED and select it if it is found.
2887 # Check for GNU $ac_path_SED
2888 case `"$ac_path_SED" --version 2>&1` in
2890 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2893 $as_echo_n 0123456789 >"conftest.in"
2896 cat "conftest.in" "conftest.in" >"conftest.tmp"
2897 mv "conftest.tmp" "conftest.in"
2898 cp "conftest.in" "conftest.nl"
2899 $as_echo '' >> "conftest.nl"
2900 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2901 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2902 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2903 if test $ac_count -gt ${ac_path_SED_max-0}; then
2904 # Best one so far, save it but keep looking for a better one
2905 ac_cv_path_SED
="$ac_path_SED"
2906 ac_path_SED_max
=$ac_count
2908 # 10*(2^10) chars as input seems more than enough
2909 test $ac_count -gt 10 && break
2911 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2914 $ac_path_SED_found && break 3
2919 if test -z "$ac_cv_path_SED"; then
2920 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2928 $as_echo "$ac_cv_path_SED" >&6; }
2929 SED
="$ac_cv_path_SED"
2932 for ac_prog
in gawk mawk nawk
awk
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy
$ac_prog; ac_word
=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_AWK+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$AWK"; then
2942 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir
=.
2949 for ac_exec_ext
in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_AWK
="$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$AWK"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2964 $as_echo "$AWK" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$AWK" && break
2975 ac_cpp
='$CPP $CPPFLAGS'
2976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2981 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC
="$CC" # Let the user override the test.
2990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir
=.
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3018 if test -z "$ac_cv_prog_CC"; then
3020 # Extract the first word of "gcc", so it can be a program name with args.
3021 set dummy gcc
; ac_word
=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir
=.
3035 for ac_exec_ext
in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC
="gcc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3056 if test "x$ac_ct_CC" = x
; then
3059 case $cross_compiling:$ac_tool_warned in
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned
=yes ;;
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3074 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC
="$CC" # Let the user override the test.
3083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir
=.
3088 for ac_exec_ext
in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3112 if test -z "$CC"; then
3113 # Extract the first word of "cc", so it can be a program name with args.
3114 set dummy cc
; ac_word
=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_CC+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC
="$CC" # Let the user override the test.
3124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir
=.
3129 for ac_exec_ext
in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3132 ac_prog_rejected
=yes
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test $ac_prog_rejected = yes; then
3144 # We found a bogon in the path, so make sure we never use it.
3145 set dummy
$ac_cv_prog_CC
3147 if test $# != 0; then
3148 # We chose a different compiler from the bogus one.
3149 # However, it has the same basename, so the bogon will be chosen
3150 # first if we set CC to just the basename; use the full file name.
3152 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$CC"; then
3169 if test -n "$ac_tool_prefix"; then
3170 for ac_prog
in cl.exe
3172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3173 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if test "${ac_cv_prog_CC+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC
="$CC" # Let the user override the test.
3182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir
=.
3187 for ac_exec_ext
in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3209 test -n "$CC" && break
3212 if test -z "$CC"; then
3214 for ac_prog
in cl.exe
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy
$ac_prog; ac_word
=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir
=.
3231 for ac_exec_ext
in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_ac_ct_CC
="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3244 if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246 $as_echo "$ac_ct_CC" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3253 test -n "$ac_ct_CC" && break
3256 if test "x$ac_ct_CC" = x
; then
3259 case $cross_compiling:$ac_tool_warned in
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned
=yes ;;
3272 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $?
"no acceptable C compiler found in \$PATH
3275 See \`config.log' for more details" "$LINENO" 5; }
3277 # Provide some information about the compiler.
3278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281 for ac_option
in --version -v -V -qversion; do
3282 { { ac_try
="$ac_compiler $ac_option >&5"
3284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291 if test -s conftest.err; then
3293 ... rest of stderr output deleted ...
3294 10q' conftest.err >conftest.er1
3295 cat conftest.er1 >&5
3297 rm -f conftest.er1 conftest.err
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3313 ac_clean_files_save=$ac_clean_files
3314 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3315 # Try to create an executable without -o first, disregard a.out.
3316 # It will help us diagnose broken compilers, and finding out an intuition
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3319 $as_echo_n "checking whether the C compiler works... " >&6; }
3320 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3322 # The possible output files:
3323 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326 for ac_file in $ac_files
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 if { { ac_try="$ac_link_default"
3337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3338 *) ac_try_echo
=$ac_try;;
3340 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link_default") 2>&5
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3349 # so that the user can short-circuit this test for compilers unknown to
3351 for ac_file
in $ac_files ''
3353 test -f "$ac_file" ||
continue
3355 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3358 # We found the default executable, but exeext='' is most
3362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3364 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 # We set ac_cv_exeext here because the later test for it is not
3367 # safe: cross compilers may not add the suffix if given an `-o'
3368 # argument, so we may need to know it at that point already.
3369 # Even if this section looks crufty: it has the advantage of
3376 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3381 if test -z "$ac_file"; then :
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.
$ac_ext >&5
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error
77 "C compiler cannot create executables
3390 See \`config.log' for more details" "$LINENO" 5; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3396 $as_echo_n "checking for C compiler default output file name... " >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3398 $as_echo "$ac_file" >&6; }
3399 ac_exeext
=$ac_cv_exeext
3401 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3402 ac_clean_files
=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3404 $as_echo_n "checking for suffix of executables... " >&6; }
3405 if { { ac_try
="$ac_link"
3407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_link") 2>&5
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3417 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3418 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 for ac_file
in conftest.exe conftest conftest.
*; do
3421 test -f "$ac_file" ||
continue
3423 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3424 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 rm -f conftest conftest
$ac_cv_exeext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3437 $as_echo "$ac_cv_exeext" >&6; }
3439 rm -f conftest.
$ac_ext
3440 EXEEXT
=$ac_cv_exeext
3442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3448 FILE *f = fopen ("conftest.out", "w");
3449 return ferror (f) || fclose (f) != 0;
3455 ac_clean_files
="$ac_clean_files conftest.out"
3456 # Check that the compiler produces executables we can run. If not, either
3457 # the compiler is broken, or we cross compile.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3459 $as_echo_n "checking whether we are cross compiling... " >&6; }
3460 if test "$cross_compiling" != yes; then
3461 { { ac_try
="$ac_link"
3463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link") 2>&5
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 if { ac_try='./conftest$ac_cv_exeext'
3473 { { case "(($ac_try" in
3474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3475 *) ac_try_echo
=$ac_try;;
3477 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_try") 2>&5
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; }; then
3485 if test "$cross_compiling" = maybe
; then
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $?
"cannot run C compiled programs.
3491 If you meant to cross compile, use \`--host'.
3492 See \`config.log' for more details" "$LINENO" 5; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3497 $as_echo "$cross_compiling" >&6; }
3499 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3500 ac_clean_files
=$ac_clean_files_save
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3502 $as_echo_n "checking for suffix of object files... " >&6; }
3503 if test "${ac_cv_objext+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 rm -f conftest.o conftest.obj
3518 if { { ac_try
="$ac_compile"
3520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compile") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 for ac_file in conftest.o conftest.obj conftest.*; do
3530 test -f "$ac_file" || continue;
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3544 See \
`config.log' for more details" "$LINENO" 5; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3571 if ac_fn_c_try_compile "$LINENO"; then :
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_c_try_compile "$LINENO"; then :
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 if ac_fn_c_try_compile "$LINENO"; then :
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3651 $as_echo "$ac_cv_prog_cc_g" >&6; }
3652 if test "$ac_test_CFLAGS" = set; then
3653 CFLAGS=$ac_save_CFLAGS
3654 elif test $ac_cv_prog_cc_g = yes; then
3655 if test "$GCC" = yes; then
3661 if test "$GCC" = yes; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3669 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3672 ac_cv_prog_cc_c89=no
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3678 #include <sys/types.h>
3679 #include <sys/stat.h>
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3694 s = g (p, va_arg (v,int));
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3700 function prototypes and stuff, but not '\xHH' hex character constants.
3701 These don't provoke an error unfortunately, instead are silently treated
3702 as 'x'. The following induces an error, until -std is added to get
3703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3704 array size at least. It's necessary to write '\x00'==0 to get something
3705 that's true only with -std. */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709 inside strings and character constants. */
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730 CC="$ac_save_CC $ac_arg"
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_prog_cc_c89=$ac_arg
3734 rm -f core conftest.err conftest.$ac_objext
3735 test "x$ac_cv_prog_cc_c89" != "xno" && break
3737 rm -f conftest.$ac_ext
3742 case "x$ac_cv_prog_cc_c89" in
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3745 $as_echo "none needed" >&6; } ;;
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3748 $as_echo "unsupported" >&6; } ;;
3750 CC="$CC $ac_cv_prog_cc_c89"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3754 if test "x$ac_cv_prog_cc_c89" != xno; then :
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3772 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3773 # On Suns, sometimes $CPP names a directory.
3774 if test -n "$CPP" && test -d "$CPP"; then
3777 if test -z "$CPP"; then
3778 if test "${ac_cv_prog_CPP+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 for ac_c_preproc_warn_flag in '' yes
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3805 # Broken: fails on valid input.
3808 rm -f conftest.err conftest.$ac_ext
3810 # OK, works on sane cases. Now check whether nonexistent headers
3811 # can be detected and how.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <ac_nonexistent.h>
3816 if ac_fn_c_try_cpp "$LINENO"; then :
3817 # Broken: success on invalid input.
3820 # Passes both tests.
3824 rm -f conftest.err conftest.$ac_ext
3827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828 rm -f conftest.err conftest.
$ac_ext
3829 if $ac_preproc_ok; then :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3842 $as_echo "$CPP" >&6; }
3844 for ac_c_preproc_warn_flag
in '' yes
3846 # Use a header file that comes with gcc, so configuring glibc
3847 # with a fresh cross-compiler works.
3848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3849 # <limits.h> exists even on freestanding compilers.
3850 # On the NeXT, cc -E runs the code through the compiler's parser,
3851 # not just through cpp. "Syntax error" is here to catch this case.
3852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3855 # include <limits.h>
3857 # include <assert.h>
3861 if ac_fn_c_try_cpp
"$LINENO"; then :
3864 # Broken: fails on valid input.
3867 rm -f conftest.err conftest.
$ac_ext
3869 # OK, works on sane cases. Now check whether nonexistent headers
3870 # can be detected and how.
3871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <ac_nonexistent.h>
3875 if ac_fn_c_try_cpp
"$LINENO"; then :
3876 # Broken: success on invalid input.
3879 # Passes both tests.
3883 rm -f conftest.err conftest.
$ac_ext
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.
$ac_ext
3888 if $ac_preproc_ok; then :
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details" "$LINENO" 5; }
3898 ac_cpp
='$CPP $CPPFLAGS'
3899 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3905 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3906 if test "${ac_cv_path_GREP+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -z "$GREP"; then
3910 ac_path_GREP_found
=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3913 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3916 test -z "$as_dir" && as_dir
=.
3917 for ac_prog
in grep ggrep
; do
3918 for ac_exec_ext
in '' $ac_executable_extensions; do
3919 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3920 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3921 # Check for GNU ac_path_GREP and select it if it is found.
3922 # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3925 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3928 $as_echo_n 0123456789 >"conftest.in"
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 $as_echo 'GREP' >> "conftest.nl"
3935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3936 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3937 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_GREP
="$ac_path_GREP"
3941 ac_path_GREP_max
=$ac_count
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3946 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3949 $ac_path_GREP_found && break 3
3954 if test -z "$ac_cv_path_GREP"; then
3955 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958 ac_cv_path_GREP
=$GREP
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3963 $as_echo "$ac_cv_path_GREP" >&6; }
3964 GREP
="$ac_cv_path_GREP"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3968 $as_echo_n "checking for egrep... " >&6; }
3969 if test "${ac_cv_path_EGREP+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3973 then ac_cv_path_EGREP
="$GREP -E"
3975 if test -z "$EGREP"; then
3976 ac_path_EGREP_found
=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3979 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3982 test -z "$as_dir" && as_dir
=.
3983 for ac_prog
in egrep; do
3984 for ac_exec_ext
in '' $ac_executable_extensions; do
3985 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3987 # Check for GNU ac_path_EGREP and select it if it is found.
3988 # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3991 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3994 $as_echo_n 0123456789 >"conftest.in"
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 $as_echo 'EGREP' >> "conftest.nl"
4001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4002 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4003 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_EGREP
="$ac_path_EGREP"
4007 ac_path_EGREP_max
=$ac_count
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4012 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4015 $ac_path_EGREP_found && break 3
4020 if test -z "$ac_cv_path_EGREP"; then
4021 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 ac_cv_path_EGREP
=$EGREP
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4030 $as_echo "$ac_cv_path_EGREP" >&6; }
4031 EGREP
="$ac_cv_path_EGREP"
4034 if test $ac_cv_c_compiler_gnu = yes; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4036 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4037 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4040 ac_pattern
="Autoconf.*'x'"
4041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4048 ac_cv_prog_gcc_traditional
=yes
4050 ac_cv_prog_gcc_traditional
=no
4055 if test $ac_cv_prog_gcc_traditional = no
; then
4056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4063 ac_cv_prog_gcc_traditional
=yes
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4070 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4071 if test $ac_cv_prog_gcc_traditional = yes; then
4072 CC
="$CC -traditional"
4076 # Find a good install program. We prefer a C program (faster),
4077 # so one script is as good as another. But avoid the broken or
4078 # incompatible versions:
4079 # SysV /etc/install, /usr/sbin/install
4080 # SunOS /usr/etc/install
4081 # IRIX /sbin/install
4083 # AmigaOS /C/install, which installs bootblocks on floppy discs
4084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4087 # OS/2's system install, which has a completely different semantic
4088 # ./install, which can be erroneously created by make from ./install.sh.
4089 # Reject install programs that cannot install multiple files.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4091 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4092 if test -z "$INSTALL"; then
4093 if test "${ac_cv_path_install+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir
=.
4101 # Account for people who put trailing slashes in PATH elements.
4102 case $as_dir/ in #((
4103 .
/ | .
// |
/[cC
]/* | \
4104 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4105 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4108 # OSF1 and SCO ODT 3.0 have their own names for install.
4109 # Don't use installbsd from OSF since it installs stuff as root
4111 for ac_prog
in ginstall scoinst
install; do
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4114 if test $ac_prog = install &&
4115 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4116 # AIX install. It has an incompatible calling convention.
4118 elif test $ac_prog = install &&
4119 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4120 # program-specific install script used by HP pwplus--don't use.
4123 rm -rf conftest.one conftest.two conftest.dir
4124 echo one
> conftest.one
4125 echo two
> conftest.two
4127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4128 test -s conftest.one
&& test -s conftest.two
&&
4129 test -s conftest.dir
/conftest.one
&&
4130 test -s conftest.dir
/conftest.two
4132 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4145 rm -rf conftest.one conftest.two conftest.dir
4148 if test "${ac_cv_path_install+set}" = set; then
4149 INSTALL
=$ac_cv_path_install
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for INSTALL within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 INSTALL
=$ac_install_sh
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4159 $as_echo "$INSTALL" >&6; }
4161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4162 # It thinks the first close brace ends the variable substitution.
4163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4167 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4170 $as_echo_n "checking whether ln -s works... " >&6; }
4172 if test "$LN_S" = "ln -s"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4174 $as_echo "yes" >&6; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4177 $as_echo "no, using $LN_S" >&6; }
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4183 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4185 $as_echo_n "(cached) " >&6
4187 cat >conftest.
make <<\_ACEOF
4190 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4192 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4195 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4197 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4201 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4203 $as_echo "yes" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 SET_MAKE
="MAKE=${MAKE-make}"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4212 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4213 if test -z "$MKDIR_P"; then
4214 if test "${ac_cv_path_mkdir+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4218 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4221 test -z "$as_dir" && as_dir
=.
4222 for ac_prog
in mkdir gmkdir
; do
4223 for ac_exec_ext
in '' $ac_executable_extensions; do
4224 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4226 'mkdir (GNU coreutils) '* | \
4227 'mkdir (coreutils) '* | \
4228 'mkdir (fileutils) '4.1*)
4229 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4239 test -d .
/--version && rmdir .
/--version
4240 if test "${ac_cv_path_mkdir+set}" = set; then
4241 MKDIR_P
="$ac_cv_path_mkdir -p"
4243 # As a last resort, use the slow shell script. Don't cache a
4244 # value for MKDIR_P within a source directory, because that will
4245 # break other packages using the cache if that directory is
4246 # removed, or if the value is a relative name.
4247 MKDIR_P
="$ac_install_sh -d"
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4251 $as_echo "$MKDIR_P" >&6; }
4253 if test -n "$ac_tool_prefix"; then
4254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4255 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4261 if test -n "$RANLIB"; then
4262 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir
=.
4269 for ac_exec_ext
in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 RANLIB
=$ac_cv_prog_RANLIB
4282 if test -n "$RANLIB"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4284 $as_echo "$RANLIB" >&6; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4292 if test -z "$ac_cv_prog_RANLIB"; then
4293 ac_ct_RANLIB
=$RANLIB
4294 # Extract the first word of "ranlib", so it can be a program name with args.
4295 set dummy ranlib
; ac_word
=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -n "$ac_ct_RANLIB"; then
4302 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4322 if test -n "$ac_ct_RANLIB"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4324 $as_echo "$ac_ct_RANLIB" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4330 if test "x$ac_ct_RANLIB" = x
; then
4333 case $cross_compiling:$ac_tool_warned in
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4337 ac_tool_warned
=yes ;;
4339 RANLIB
=$ac_ct_RANLIB
4342 RANLIB
="$ac_cv_prog_RANLIB"
4345 # Extract the first word of "cflow", so it can be a program name with args.
4346 set dummy cflow
; ac_word
=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4354 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
4357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir
=.
4362 for ac_exec_ext
in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
4376 if test -n "$CFLOW_CMD"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4378 $as_echo "$CFLOW_CMD" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 # Extract the first word of "cscope", so it can be a program name with args.
4386 set dummy cscope
; ac_word
=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4394 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
4397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir
=.
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
4416 if test -n "$CSCOPE_CMD"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4418 $as_echo "$CSCOPE_CMD" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 ################################################################################
4428 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4429 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4431 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4432 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4433 $as_echo_n "(cached) " >&6
4435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <sys/types.h>
4449 if ac_fn_c_try_compile
"$LINENO"; then :
4450 eval "$as_ac_Header=yes"
4452 eval "$as_ac_Header=no"
4454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4456 eval ac_res
=\$
$as_ac_Header
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4458 $as_echo "$ac_res" >&6; }
4459 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4460 cat >>confdefs.h
<<_ACEOF
4461 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4464 ac_header_dirent
=$ac_hdr; break
4468 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4469 if test $ac_header_dirent = dirent.h
; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4471 $as_echo_n "checking for library containing opendir... " >&6; }
4472 if test "${ac_cv_search_opendir+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4475 ac_func_search_save_LIBS
=$LIBS
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4479 /* Override any GCC internal prototype to avoid an error.
4480 Use char because int might match the return type of a GCC
4481 builtin and then its argument prototype would still apply. */
4494 for ac_lib
in '' dir
; do
4495 if test -z "$ac_lib"; then
4496 ac_res
="none required"
4499 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4501 if ac_fn_c_try_link
"$LINENO"; then :
4502 ac_cv_search_opendir
=$ac_res
4504 rm -f core conftest.err conftest.
$ac_objext \
4506 if test "${ac_cv_search_opendir+set}" = set; then :
4510 if test "${ac_cv_search_opendir+set}" = set; then :
4513 ac_cv_search_opendir
=no
4516 LIBS
=$ac_func_search_save_LIBS
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4519 $as_echo "$ac_cv_search_opendir" >&6; }
4520 ac_res
=$ac_cv_search_opendir
4521 if test "$ac_res" != no
; then :
4522 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4528 $as_echo_n "checking for library containing opendir... " >&6; }
4529 if test "${ac_cv_search_opendir+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 ac_func_search_save_LIBS
=$LIBS
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4551 for ac_lib
in '' x
; do
4552 if test -z "$ac_lib"; then
4553 ac_res
="none required"
4556 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4558 if ac_fn_c_try_link
"$LINENO"; then :
4559 ac_cv_search_opendir
=$ac_res
4561 rm -f core conftest.err conftest.
$ac_objext \
4563 if test "${ac_cv_search_opendir+set}" = set; then :
4567 if test "${ac_cv_search_opendir+set}" = set; then :
4570 ac_cv_search_opendir
=no
4573 LIBS
=$ac_func_search_save_LIBS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4576 $as_echo "$ac_cv_search_opendir" >&6; }
4577 ac_res
=$ac_cv_search_opendir
4578 if test "$ac_res" != no
; then :
4579 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4586 $as_echo_n "checking for ANSI C header files... " >&6; }
4587 if test "${ac_cv_header_stdc+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4605 if ac_fn_c_try_compile
"$LINENO"; then :
4606 ac_cv_header_stdc
=yes
4608 ac_cv_header_stdc
=no
4610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4612 if test $ac_cv_header_stdc = yes; then
4613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "memchr" >/dev
/null
2>&1; then :
4623 ac_cv_header_stdc
=no
4629 if test $ac_cv_header_stdc = yes; then
4630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "free" >/dev
/null
2>&1; then :
4640 ac_cv_header_stdc
=no
4646 if test $ac_cv_header_stdc = yes; then
4647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4648 if test "$cross_compiling" = yes; then :
4651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4655 #if ((' ' & 0x0FF) == 0x020)
4656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4659 # define ISLOWER(c) \
4660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
4663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
4673 || toupper (i) != TOUPPER (i))
4678 if ac_fn_c_try_run
"$LINENO"; then :
4681 ac_cv_header_stdc
=no
4683 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4684 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4690 $as_echo "$ac_cv_header_stdc" >&6; }
4691 if test $ac_cv_header_stdc = yes; then
4693 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4698 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4699 inttypes.h stdint.h unistd.h
4701 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4702 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4704 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4705 cat >>confdefs.h
<<_ACEOF
4706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4715 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4716 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #include <sys/types.h>
4725 return makedev(0, 0);
4730 if ac_fn_c_try_link
"$LINENO"; then :
4731 ac_cv_header_sys_types_h_makedev
=yes
4733 ac_cv_header_sys_types_h_makedev
=no
4735 rm -f core conftest.err conftest.
$ac_objext \
4736 conftest
$ac_exeext conftest.
$ac_ext
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4740 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4742 if test $ac_cv_header_sys_types_h_makedev = no
; then
4743 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4744 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
4746 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4752 if test $ac_cv_header_sys_mkdev_h = no
; then
4753 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4754 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
4756 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4765 $as_echo_n "checking for ANSI C header files... " >&6; }
4766 if test "${ac_cv_header_stdc+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4784 if ac_fn_c_try_compile
"$LINENO"; then :
4785 ac_cv_header_stdc
=yes
4787 ac_cv_header_stdc
=no
4789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4791 if test $ac_cv_header_stdc = yes; then
4792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "memchr" >/dev
/null
2>&1; then :
4802 ac_cv_header_stdc
=no
4808 if test $ac_cv_header_stdc = yes; then
4809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "free" >/dev
/null
2>&1; then :
4819 ac_cv_header_stdc
=no
4825 if test $ac_cv_header_stdc = yes; then
4826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4827 if test "$cross_compiling" = yes; then :
4830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4834 #if ((' ' & 0x0FF) == 0x020)
4835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4838 # define ISLOWER(c) \
4839 (('a' <= (c) && (c) <= 'i') \
4840 || ('j' <= (c) && (c) <= 'r') \
4841 || ('s' <= (c) && (c) <= 'z'))
4842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4850 for (i = 0; i < 256; i++)
4851 if (XOR (islower (i), ISLOWER (i))
4852 || toupper (i) != TOUPPER (i))
4857 if ac_fn_c_try_run
"$LINENO"; then :
4860 ac_cv_header_stdc
=no
4862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4869 $as_echo "$ac_cv_header_stdc" >&6; }
4870 if test $ac_cv_header_stdc = yes; then
4872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4877 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4878 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <sys/types.h>
4884 #include <sys/wait.h>
4886 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4889 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4902 if ac_fn_c_try_compile
"$LINENO"; then :
4903 ac_cv_header_sys_wait_h
=yes
4905 ac_cv_header_sys_wait_h
=no
4907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4910 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4911 if test $ac_cv_header_sys_wait_h = yes; then
4913 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4918 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4919 if test "${ac_cv_header_time+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <sys/types.h>
4925 #include <sys/time.h>
4931 if ((struct tm *) 0)
4937 if ac_fn_c_try_compile
"$LINENO"; then :
4938 ac_cv_header_time
=yes
4940 ac_cv_header_time
=no
4942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4945 $as_echo "$ac_cv_header_time" >&6; }
4946 if test $ac_cv_header_time = yes; then
4948 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4953 for ac_header
in locale.h stddef.h syslog.h sys
/file.h sys
/time.h assert.h \
4954 langinfo.h libgen.h signal.h sys
/mman.h sys
/resource.h sys
/utsname.h \
4957 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4959 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4960 cat >>confdefs.h
<<_ACEOF
4961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4965 as_fn_error $?
"bailing out" "$LINENO" 5
4973 for ac_header
in asm
/byteorder.h linux
/fs.h malloc.h
4975 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4976 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4977 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4978 cat >>confdefs.h
<<_ACEOF
4979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 as_fn_error $?
"bailing out" "$LINENO" 5
4989 for ac_header
in machine
/endian.h sys
/disk.h
4991 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4993 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4994 cat >>confdefs.h
<<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 as_fn_error $?
"bailing out" "$LINENO" 5
5006 for ac_header
in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5007 stdarg.h stdio.h stdlib.h string.h sys
/ioctl.h sys
/param.h sys
/stat.h \
5008 sys
/types.h unistd.h
5010 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5012 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5013 cat >>confdefs.h
<<_ACEOF
5014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5018 as_fn_error $?
"bailing out" "$LINENO" 5
5023 for ac_header
in termios.h sys
/statvfs.h
5025 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5027 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5028 cat >>confdefs.h
<<_ACEOF
5029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5037 ################################################################################
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5039 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5040 if test "${ac_cv_c_const+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5049 /* FIXME: Include the comments suggested by Paul. */
5051 /* Ultrix mips cc rejects this. */
5052 typedef int charset[2];
5054 /* SunOS 4.1.1 cc rejects this. */
5055 char const *const *pcpcc;
5057 /* NEC SVR4.0.2 mips cc rejects this. */
5058 struct point {int x, y;};
5059 static struct point const zero = {0,0};
5060 /* AIX XL C 1.02.0.0 rejects this.
5061 It does not let you subtract one const X* pointer from another in
5062 an arm of an if-expression whose if-part is not a constant
5064 const char *g = "string";
5065 pcpcc = &g + (g ? g-g : 0);
5066 /* HPUX 7.0 cc rejects these. */
5068 ppc = (char**) pcpcc;
5069 pcpcc = (char const *const *) ppc;
5070 { /* SCO 3.2v4 cc rejects this. */
5072 char const *s = 0 ? (char *) 0 : (char const *) 0;
5077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5079 const int *foo = &x[0];
5082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5083 typedef const int *iptr;
5087 { /* AIX XL C 1.02.0.0 rejects this saying
5088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5089 struct s { int j; const int *ap[3]; };
5090 struct s *b; b->j = 5;
5092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5096 return !cs[0] && !zero.x;
5103 if ac_fn_c_try_compile
"$LINENO"; then :
5108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5111 $as_echo "$ac_cv_c_const" >&6; }
5112 if test $ac_cv_c_const = no
; then
5114 $as_echo "#define const /**/" >>confdefs.h
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5119 $as_echo_n "checking for inline... " >&6; }
5120 if test "${ac_cv_c_inline+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5124 for ac_kw
in inline __inline__ __inline
; do
5125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5129 static $ac_kw foo_t static_foo () {return 0; }
5130 $ac_kw foo_t foo () {return 0; }
5134 if ac_fn_c_try_compile
"$LINENO"; then :
5135 ac_cv_c_inline
=$ac_kw
5137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5138 test "$ac_cv_c_inline" != no
&& break
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5143 $as_echo "$ac_cv_c_inline" >&6; }
5145 case $ac_cv_c_inline in
5148 case $ac_cv_c_inline in
5150 *) ac_val
=$ac_cv_c_inline;;
5152 cat >>confdefs.h
<<_ACEOF
5154 #define inline $ac_val
5160 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5161 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5163 cat >>confdefs.h
<<_ACEOF
5164 #define HAVE_STRUCT_STAT_ST_RDEV 1
5170 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5171 if test "x$ac_cv_type_off_t" = x
""yes; then :
5175 cat >>confdefs.h
<<_ACEOF
5176 #define off_t long int
5181 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5182 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5186 cat >>confdefs.h
<<_ACEOF
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5193 $as_echo_n "checking return type of signal handlers... " >&6; }
5194 if test "${ac_cv_type_signal+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <sys/types.h>
5205 return *(signal (0, 0)) (0) == 1;
5210 if ac_fn_c_try_compile
"$LINENO"; then :
5211 ac_cv_type_signal
=int
5213 ac_cv_type_signal
=void
5215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5218 $as_echo "$ac_cv_type_signal" >&6; }
5220 cat >>confdefs.h
<<_ACEOF
5221 #define RETSIGTYPE $ac_cv_type_signal
5225 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5226 if test "x$ac_cv_type_size_t" = x
""yes; then :
5230 cat >>confdefs.h
<<_ACEOF
5231 #define size_t unsigned int
5236 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5237 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5241 cat >>confdefs.h
<<_ACEOF
5247 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5248 case $ac_cv_c_int8_t in #(
5252 cat >>confdefs.h
<<_ACEOF
5253 #define int8_t $ac_cv_c_int8_t
5258 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5259 case $ac_cv_c_int16_t in #(
5263 cat >>confdefs.h
<<_ACEOF
5264 #define int16_t $ac_cv_c_int16_t
5269 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5270 case $ac_cv_c_int32_t in #(
5274 cat >>confdefs.h
<<_ACEOF
5275 #define int32_t $ac_cv_c_int32_t
5280 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5281 case $ac_cv_c_int64_t in #(
5285 cat >>confdefs.h
<<_ACEOF
5286 #define int64_t $ac_cv_c_int64_t
5291 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5292 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5296 cat >>confdefs.h
<<_ACEOF
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5303 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5304 if test "${ac_cv_type_uid_t+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <sys/types.h>
5312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313 $EGREP "uid_t" >/dev
/null
2>&1; then :
5314 ac_cv_type_uid_t
=yes
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5322 $as_echo "$ac_cv_type_uid_t" >&6; }
5323 if test $ac_cv_type_uid_t = no
; then
5325 $as_echo "#define uid_t int" >>confdefs.h
5328 $as_echo "#define gid_t int" >>confdefs.h
5332 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5333 case $ac_cv_c_uint8_t in #(
5337 $as_echo "#define _UINT8_T 1" >>confdefs.h
5340 cat >>confdefs.h
<<_ACEOF
5341 #define uint8_t $ac_cv_c_uint8_t
5346 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5347 case $ac_cv_c_uint16_t in #(
5352 cat >>confdefs.h
<<_ACEOF
5353 #define uint16_t $ac_cv_c_uint16_t
5358 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5359 case $ac_cv_c_uint32_t in #(
5363 $as_echo "#define _UINT32_T 1" >>confdefs.h
5366 cat >>confdefs.h
<<_ACEOF
5367 #define uint32_t $ac_cv_c_uint32_t
5372 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5373 case $ac_cv_c_uint64_t in #(
5377 $as_echo "#define _UINT64_T 1" >>confdefs.h
5380 cat >>confdefs.h
<<_ACEOF
5381 #define uint64_t $ac_cv_c_uint64_t
5386 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5387 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5389 cat >>confdefs.h
<<_ACEOF
5390 #define HAVE_STRUCT_STAT_ST_RDEV 1
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5397 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5398 if test "${ac_cv_struct_tm+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <sys/types.h>
5410 int *p = &tm.tm_sec;
5416 if ac_fn_c_try_compile
"$LINENO"; then :
5417 ac_cv_struct_tm
=time.h
5419 ac_cv_struct_tm
=sys
/time.h
5421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5424 $as_echo "$ac_cv_struct_tm" >&6; }
5425 if test $ac_cv_struct_tm = sys
/time.h
; then
5427 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5432 ################################################################################
5433 for ac_func
in ftruncate gethostname getpagesize \
5434 gettimeofday memset mkdir
mkfifo rmdir munmap nl_langinfo setenv setlocale \
5435 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5436 strstr strtol strtoul uname
5438 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5439 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5440 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5441 cat >>confdefs.h
<<_ACEOF
5442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5446 as_fn_error $?
"bailing out" "$LINENO" 5
5450 for ac_func
in siginterrupt
5452 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5453 if test "x$ac_cv_func_siginterrupt" = x
""yes; then :
5454 cat >>confdefs.h
<<_ACEOF
5455 #define HAVE_SIGINTERRUPT 1
5461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5462 # for constant arguments. Useless!
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5464 $as_echo_n "checking for working alloca.h... " >&6; }
5465 if test "${ac_cv_working_alloca_h+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5474 char *p = (char *) alloca (2 * sizeof (int));
5480 if ac_fn_c_try_link
"$LINENO"; then :
5481 ac_cv_working_alloca_h
=yes
5483 ac_cv_working_alloca_h
=no
5485 rm -f core conftest.err conftest.
$ac_objext \
5486 conftest
$ac_exeext conftest.
$ac_ext
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5489 $as_echo "$ac_cv_working_alloca_h" >&6; }
5490 if test $ac_cv_working_alloca_h = yes; then
5492 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5497 $as_echo_n "checking for alloca... " >&6; }
5498 if test "${ac_cv_func_alloca_works+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 # define alloca __builtin_alloca
5507 # include <malloc.h>
5508 # define alloca _alloca
5510 # ifdef HAVE_ALLOCA_H
5511 # include <alloca.h>
5516 # ifndef alloca /* predefined by HP cc +Olibcalls */
5527 char *p = (char *) alloca (1);
5533 if ac_fn_c_try_link
"$LINENO"; then :
5534 ac_cv_func_alloca_works
=yes
5536 ac_cv_func_alloca_works
=no
5538 rm -f core conftest.err conftest.
$ac_objext \
5539 conftest
$ac_exeext conftest.
$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5542 $as_echo "$ac_cv_func_alloca_works" >&6; }
5544 if test $ac_cv_func_alloca_works = yes; then
5546 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5550 # that cause trouble. Some versions do not even contain alloca or
5551 # contain a buggy version. If you still want to use their alloca,
5552 # use ar to extract alloca.o from them instead of compiling alloca.c.
5554 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5556 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5560 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5561 if test "${ac_cv_os_cray+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #if defined CRAY && ! defined CRAY2
5573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5574 $EGREP "webecray" >/dev
/null
2>&1; then :
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5583 $as_echo "$ac_cv_os_cray" >&6; }
5584 if test $ac_cv_os_cray = yes; then
5585 for ac_func
in _getb67 GETB67 getb67
; do
5586 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5587 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5588 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5590 cat >>confdefs.h
<<_ACEOF
5591 #define CRAY_STACKSEG_END $ac_func
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5601 $as_echo_n "checking stack direction for C alloca... " >&6; }
5602 if test "${ac_cv_c_stack_direction+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 if test "$cross_compiling" = yes; then :
5606 ac_cv_c_stack_direction
=0
5608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 $ac_includes_default
5612 find_stack_direction ()
5614 static char *addr = 0;
5619 return find_stack_direction ();
5622 return (&dummy > addr) ? 1 : -1;
5628 return find_stack_direction () < 0;
5631 if ac_fn_c_try_run
"$LINENO"; then :
5632 ac_cv_c_stack_direction
=1
5634 ac_cv_c_stack_direction
=-1
5636 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5637 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5642 $as_echo "$ac_cv_c_stack_direction" >&6; }
5643 cat >>confdefs.h
<<_ACEOF
5644 #define STACK_DIRECTION $ac_cv_c_stack_direction
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5651 $as_echo_n "checking whether closedir returns void... " >&6; }
5652 if test "${ac_cv_func_closedir_void+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5655 if test "$cross_compiling" = yes; then :
5656 ac_cv_func_closedir_void
=yes
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 $ac_includes_default
5661 #include <$ac_header_dirent>
5669 return closedir (opendir (".")) != 0;
5674 if ac_fn_c_try_run
"$LINENO"; then :
5675 ac_cv_func_closedir_void
=no
5677 ac_cv_func_closedir_void
=yes
5679 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5680 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5685 $as_echo "$ac_cv_func_closedir_void" >&6; }
5686 if test $ac_cv_func_closedir_void = yes; then
5688 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5692 for ac_header
in unistd.h
5694 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5695 if test "x$ac_cv_header_unistd_h" = x
""yes; then :
5696 cat >>confdefs.h
<<_ACEOF
5697 #define HAVE_UNISTD_H 1
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5705 $as_echo_n "checking for working chown... " >&6; }
5706 if test "${ac_cv_func_chown_works+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5709 if test "$cross_compiling" = yes; then :
5710 ac_cv_func_chown_works
=no
5712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 $ac_includes_default
5720 char *f = "conftest.chown";
5721 struct stat before, after;
5723 if (creat (f, 0600) < 0)
5725 if (stat (f, &before) < 0)
5727 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5729 if (stat (f, &after) < 0)
5731 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5737 if ac_fn_c_try_run
"$LINENO"; then :
5738 ac_cv_func_chown_works
=yes
5740 ac_cv_func_chown_works
=no
5742 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5743 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5746 rm -f conftest.chown
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5750 $as_echo "$ac_cv_func_chown_works" >&6; }
5751 if test $ac_cv_func_chown_works = yes; then
5753 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5757 for ac_header
in vfork.h
5759 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5760 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5761 cat >>confdefs.h
<<_ACEOF
5762 #define HAVE_VFORK_H 1
5769 for ac_func
in fork vfork
5771 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5772 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5773 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5774 cat >>confdefs.h
<<_ACEOF
5775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5781 if test "x$ac_cv_func_fork" = xyes
; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5783 $as_echo_n "checking for working fork... " >&6; }
5784 if test "${ac_cv_func_fork_works+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
5787 if test "$cross_compiling" = yes; then :
5788 ac_cv_func_fork_works
=cross
5790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 $ac_includes_default
5797 /* By Ruediger Kuhlmann. */
5804 if ac_fn_c_try_run
"$LINENO"; then :
5805 ac_cv_func_fork_works
=yes
5807 ac_cv_func_fork_works
=no
5809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5815 $as_echo "$ac_cv_func_fork_works" >&6; }
5818 ac_cv_func_fork_works
=$ac_cv_func_fork
5820 if test "x$ac_cv_func_fork_works" = xcross
; then
5822 *-*-amigaos* |
*-*-msdosdjgpp*)
5823 # Override, as these systems have only a dummy fork() stub
5824 ac_cv_func_fork_works
=no
5827 ac_cv_func_fork_works
=yes
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5831 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5833 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5834 if test "x$ac_cv_func_vfork" = xyes
; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5836 $as_echo_n "checking for working vfork... " >&6; }
5837 if test "${ac_cv_func_vfork_works+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5840 if test "$cross_compiling" = yes; then :
5841 ac_cv_func_vfork_works
=cross
5843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 /* Thanks to Paul Eggert for this test. */
5846 $ac_includes_default
5847 #include <sys/wait.h>
5851 /* On some sparc systems, changes by the child to local and incoming
5852 argument registers are propagated back to the parent. The compiler
5853 is told about this with #include <vfork.h>, but some compilers
5854 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5855 static variable whose address is put into a register that is
5856 clobbered by the vfork. */
5859 sparc_address_test (int arg)
5861 sparc_address_test (arg) int arg;
5882 pid_t parent = getpid ();
5885 sparc_address_test (0);
5890 /* Here is another test for sparc vfork register problems. This
5891 test uses lots of local variables, at least as many local
5892 variables as main has allocated so far including compiler
5893 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5894 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5895 reuse the register of parent for one of the local variables,
5896 since it will think that parent can't possibly be used any more
5897 in this routine. Assigning to the local variable will thus
5898 munge parent in the parent process. */
5900 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5901 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5902 /* Convince the compiler that p..p7 are live; otherwise, it might
5903 use the same hardware register for all 8 local variables. */
5904 if (p != p1 || p != p2 || p != p3 || p != p4
5905 || p != p5 || p != p6 || p != p7)
5908 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5909 from child file descriptors. If the child closes a descriptor
5910 before it execs or exits, this munges the parent's descriptor
5911 as well. Test for this by closing stdout in the child. */
5912 _exit(close(fileno(stdout)) != 0);
5917 while (wait(&status) != child)
5920 /* Was there some problem with vforking? */
5923 /* Did the child fail? (This shouldn't happen.) */
5926 /* Did the vfork/compiler bug occur? */
5927 || parent != getpid()
5929 /* Did the file descriptor bug occur? */
5930 || fstat(fileno(stdout), &st) != 0
5935 if ac_fn_c_try_run
"$LINENO"; then :
5936 ac_cv_func_vfork_works
=yes
5938 ac_cv_func_vfork_works
=no
5940 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5941 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5946 $as_echo "$ac_cv_func_vfork_works" >&6; }
5949 if test "x$ac_cv_func_fork_works" = xcross
; then
5950 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5952 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5955 if test "x$ac_cv_func_vfork_works" = xyes
; then
5957 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5961 $as_echo "#define vfork fork" >>confdefs.h
5964 if test "x$ac_cv_func_fork_works" = xyes
; then
5966 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5971 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5972 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5975 rm -f conftest.sym conftest.
file
5977 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
5978 if test "$cross_compiling" = yes; then :
5979 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 $ac_includes_default
5988 /* Linux will dereference the symlink and fail, as required by POSIX.
5989 That is better in the sense that it means we will not
5990 have to compile and use the lstat wrapper. */
5991 return lstat ("conftest.sym/", &sbuf) == 0;
5996 if ac_fn_c_try_run
"$LINENO"; then :
5997 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
5999 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6001 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6002 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6006 # If the `ln -s' command failed, then we probably don't even
6007 # have an lstat function.
6008 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6010 rm -f conftest.sym conftest.
file
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6014 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6016 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6018 cat >>confdefs.h
<<_ACEOF
6019 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6023 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
6024 case " $LIBOBJS " in
6025 *" lstat.$ac_objext "* ) ;;
6026 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6033 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6034 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6037 if test "$cross_compiling" = yes; then :
6038 ac_cv_func_lstat_empty_string_bug
=yes
6040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 $ac_includes_default
6047 return lstat ("", &sbuf) == 0;
6052 if ac_fn_c_try_run
"$LINENO"; then :
6053 ac_cv_func_lstat_empty_string_bug
=no
6055 ac_cv_func_lstat_empty_string_bug
=yes
6057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6063 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6064 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6065 case " $LIBOBJS " in
6066 *" lstat.$ac_objext "* ) ;;
6067 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6072 cat >>confdefs.h
<<_ACEOF
6073 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6078 for ac_header
in stdlib.h
6080 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6081 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6082 cat >>confdefs.h
<<_ACEOF
6083 #define HAVE_STDLIB_H 1
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6091 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6092 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6093 $as_echo_n "(cached) " >&6
6095 if test "$cross_compiling" = yes; then :
6096 ac_cv_func_malloc_0_nonnull
=no
6098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6101 # include <stdlib.h>
6109 return ! malloc (0);
6114 if ac_fn_c_try_run
"$LINENO"; then :
6115 ac_cv_func_malloc_0_nonnull
=yes
6117 ac_cv_func_malloc_0_nonnull
=no
6119 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6120 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6125 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6126 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6128 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6131 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6133 case " $LIBOBJS " in
6134 *" malloc.$ac_objext "* ) ;;
6135 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6140 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6146 $as_echo_n "checking for working memcmp... " >&6; }
6147 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 if test "$cross_compiling" = yes; then :
6151 ac_cv_func_memcmp_working
=no
6153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 $ac_includes_default
6160 /* Some versions of memcmp are not 8-bit clean. */
6161 char c0 = '\100', c1 = '\200', c2 = '\201';
6162 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6165 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6166 or more and with at least one buffer not starting on a 4-byte boundary.
6167 William Lewis provided this test program. */
6172 for (i = 0; i < 4; i++)
6176 strcpy (a, "--------01111111");
6177 strcpy (b, "--------10000000");
6178 if (memcmp (a, b, 16) >= 0)
6188 if ac_fn_c_try_run
"$LINENO"; then :
6189 ac_cv_func_memcmp_working
=yes
6191 ac_cv_func_memcmp_working
=no
6193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6199 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6200 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6201 *" memcmp.$ac_objext "* ) ;;
6202 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6210 for ac_header
in $ac_header_list
6212 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6215 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6216 cat >>confdefs.h
<<_ACEOF
6217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 for ac_func
in getpagesize
6233 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6234 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6235 cat >>confdefs.h
<<_ACEOF
6236 #define HAVE_GETPAGESIZE 1
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6243 $as_echo_n "checking for working mmap... " >&6; }
6244 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6247 if test "$cross_compiling" = yes; then :
6248 ac_cv_func_mmap_fixed_mapped
=no
6250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 $ac_includes_default
6253 /* malloc might have been renamed as rpl_malloc. */
6256 /* Thanks to Mike Haertel and Jim Avera for this test.
6257 Here is a matrix of mmap possibilities:
6258 mmap private not fixed
6259 mmap private fixed at somewhere currently unmapped
6260 mmap private fixed at somewhere already mapped
6261 mmap shared not fixed
6262 mmap shared fixed at somewhere currently unmapped
6263 mmap shared fixed at somewhere already mapped
6264 For private mappings, we should verify that changes cannot be read()
6265 back from the file, nor mmap's back from the file at a different
6266 address. (There have been systems where private was not correctly
6267 implemented like the infamous i386 svr4.0, and systems where the
6268 VM page cache was not coherent with the file system buffer cache
6269 like early versions of FreeBSD and possibly contemporary NetBSD.)
6270 For shared mappings, we should conversely verify that changes get
6271 propagated back to all the places they're supposed to be.
6273 Grep wants private fixed already mapped.
6274 The main things grep needs to know about mmap are:
6275 * does it exist and is it safe to write into the mmap'd area
6276 * how to use it (BSD variants) */
6279 #include <sys/mman.h>
6281 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6285 /* This mess was copied from the GNU getpagesize.h. */
6286 #ifndef HAVE_GETPAGESIZE
6287 # ifdef _SC_PAGESIZE
6288 # define getpagesize() sysconf(_SC_PAGESIZE)
6289 # else /* no _SC_PAGESIZE */
6290 # ifdef HAVE_SYS_PARAM_H
6291 # include <sys/param.h>
6292 # ifdef EXEC_PAGESIZE
6293 # define getpagesize() EXEC_PAGESIZE
6294 # else /* no EXEC_PAGESIZE */
6296 # define getpagesize() NBPG * CLSIZE
6299 # endif /* no CLSIZE */
6300 # else /* no NBPG */
6302 # define getpagesize() NBPC
6303 # else /* no NBPC */
6305 # define getpagesize() PAGESIZE
6306 # endif /* PAGESIZE */
6307 # endif /* no NBPC */
6308 # endif /* no NBPG */
6309 # endif /* no EXEC_PAGESIZE */
6310 # else /* no HAVE_SYS_PARAM_H */
6311 # define getpagesize() 8192 /* punt totally */
6312 # endif /* no HAVE_SYS_PARAM_H */
6313 # endif /* no _SC_PAGESIZE */
6315 #endif /* no HAVE_GETPAGESIZE */
6320 char *data, *data2, *data3;
6325 pagesize = getpagesize ();
6327 /* First, make a file with some known garbage in it. */
6328 data = (char *) malloc (pagesize);
6331 for (i = 0; i < pagesize; ++i)
6332 *(data + i) = rand ();
6334 fd = creat ("conftest.mmap", 0600);
6337 if (write (fd, data, pagesize) != pagesize)
6341 /* Next, check that the tail of a page is zero-filled. File must have
6342 non-zero length, otherwise we risk SIGBUS for entire page. */
6343 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6347 if (write (fd2, cdata2, 1) != 1)
6349 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6350 if (data2 == MAP_FAILED)
6352 for (i = 0; i < pagesize; ++i)
6356 if (munmap (data2, pagesize))
6359 /* Next, try to mmap the file at a fixed address which already has
6360 something else allocated at it. If we can, also make sure that
6361 we see the same garbage. */
6362 fd = open ("conftest.mmap", O_RDWR);
6365 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6366 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6368 for (i = 0; i < pagesize; ++i)
6369 if (*(data + i) != *(data2 + i))
6372 /* Finally, make sure that changes to the mapped area do not
6373 percolate back to the file as seen by read(). (This is a bug on
6374 some variants of i386 svr4.0.) */
6375 for (i = 0; i < pagesize; ++i)
6376 *(data2 + i) = *(data2 + i) + 1;
6377 data3 = (char *) malloc (pagesize);
6380 if (read (fd, data3, pagesize) != pagesize)
6382 for (i = 0; i < pagesize; ++i)
6383 if (*(data + i) != *(data3 + i))
6389 if ac_fn_c_try_run
"$LINENO"; then :
6390 ac_cv_func_mmap_fixed_mapped
=yes
6392 ac_cv_func_mmap_fixed_mapped
=no
6394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6400 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6401 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6403 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6406 rm -f conftest.mmap conftest.txt
6408 for ac_header
in stdlib.h
6410 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6411 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6412 cat >>confdefs.h
<<_ACEOF
6413 #define HAVE_STDLIB_H 1
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6421 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6422 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6425 if test "$cross_compiling" = yes; then :
6426 ac_cv_func_realloc_0_nonnull
=no
6428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6431 # include <stdlib.h>
6439 return ! realloc (0, 0);
6444 if ac_fn_c_try_run
"$LINENO"; then :
6445 ac_cv_func_realloc_0_nonnull
=yes
6447 ac_cv_func_realloc_0_nonnull
=no
6449 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6450 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6455 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6456 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6458 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6461 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6463 case " $LIBOBJS " in
6464 *" realloc.$ac_objext "* ) ;;
6465 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6470 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6476 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6477 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6480 if test "$cross_compiling" = yes; then :
6481 ac_cv_func_stat_empty_string_bug
=yes
6483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 $ac_includes_default
6490 return stat ("", &sbuf) == 0;
6495 if ac_fn_c_try_run
"$LINENO"; then :
6496 ac_cv_func_stat_empty_string_bug
=no
6498 ac_cv_func_stat_empty_string_bug
=yes
6500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6501 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6506 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6507 if test $ac_cv_func_stat_empty_string_bug = yes; then
6508 case " $LIBOBJS " in
6509 *" stat.$ac_objext "* ) ;;
6510 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
6515 cat >>confdefs.h
<<_ACEOF
6516 #define HAVE_STAT_EMPTY_STRING_BUG 1
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6522 $as_echo_n "checking for working strtod... " >&6; }
6523 if test "${ac_cv_func_strtod+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6526 if test "$cross_compiling" = yes; then :
6527 ac_cv_func_strtod
=no
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6532 $ac_includes_default
6540 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6541 char *string = " +69";
6544 value = strtod (string, &term);
6545 if (value != 69 || term != (string + 4))
6550 /* Under Solaris 2.4, strtod returns the wrong value for the
6551 terminating character under some conditions. */
6552 char *string = "NaN";
6554 strtod (string, &term);
6555 if (term != string && *(term - 1) == 0)
6562 if ac_fn_c_try_run
"$LINENO"; then :
6563 ac_cv_func_strtod
=yes
6565 ac_cv_func_strtod
=no
6567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6573 $as_echo "$ac_cv_func_strtod" >&6; }
6574 if test $ac_cv_func_strtod = no
; then
6575 case " $LIBOBJS " in
6576 *" strtod.$ac_objext "* ) ;;
6577 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
6581 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
6582 if test "x$ac_cv_func_pow" = x
""yes; then :
6586 if test $ac_cv_func_pow = no
; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6588 $as_echo_n "checking for pow in -lm... " >&6; }
6589 if test "${ac_cv_lib_m_pow+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6592 ac_check_lib_save_LIBS
=$LIBS
6594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 /* Override any GCC internal prototype to avoid an error.
6598 Use char because int might match the return type of a GCC
6599 builtin and then its argument prototype would still apply. */
6612 if ac_fn_c_try_link
"$LINENO"; then :
6617 rm -f core conftest.err conftest.
$ac_objext \
6618 conftest
$ac_exeext conftest.
$ac_ext
6619 LIBS
=$ac_check_lib_save_LIBS
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6622 $as_echo "$ac_cv_lib_m_pow" >&6; }
6623 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6627 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6634 for ac_func
in vprintf
6636 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6637 if test "x$ac_cv_func_vprintf" = x
""yes; then :
6638 cat >>confdefs.h
<<_ACEOF
6639 #define HAVE_VPRINTF 1
6642 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6643 if test "x$ac_cv_func__doprnt" = x
""yes; then :
6645 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6654 ################################################################################
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6656 $as_echo_n "checking whether to use static linking... " >&6; }
6657 # Check whether --enable-static_link was given.
6658 if test "${enable_static_link+set}" = set; then :
6659 enableval
=$enable_static_link; STATIC_LINK
=$enableval
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6665 $as_echo "$STATIC_LINK" >&6; }
6667 ################################################################################
6670 ################################################################################
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6672 $as_echo_n "checking file owner... " >&6; }
6674 # Check whether --with-user was given.
6675 if test "${with_user+set}" = set; then :
6676 withval
=$with_user; OWNER
=$withval
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6680 $as_echo "$OWNER" >&6; }
6682 if test x
$OWNER != x
; then
6683 INSTALL
="$INSTALL -o $OWNER"
6686 ################################################################################
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6688 $as_echo_n "checking group owner... " >&6; }
6690 # Check whether --with-group was given.
6691 if test "${with_group+set}" = set; then :
6692 withval
=$with_group; GROUP
=$withval
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6696 $as_echo "$GROUP" >&6; }
6698 if test x
$GROUP != x
; then
6699 INSTALL
="$INSTALL -g $GROUP"
6702 ################################################################################
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6704 $as_echo_n "checking device node uid... " >&6; }
6707 # Check whether --with-device-uid was given.
6708 if test "${with_device_uid+set}" = set; then :
6709 withval
=$with_device_uid; DM_DEVICE_UID
=$withval
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6715 $as_echo "$DM_DEVICE_UID" >&6; }
6717 ################################################################################
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6719 $as_echo_n "checking device node gid... " >&6; }
6722 # Check whether --with-device-gid was given.
6723 if test "${with_device_gid+set}" = set; then :
6724 withval
=$with_device_gid; DM_DEVICE_GID
=$withval
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6730 $as_echo "$DM_DEVICE_GID" >&6; }
6732 ################################################################################
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6734 $as_echo_n "checking device node mode... " >&6; }
6737 # Check whether --with-device-mode was given.
6738 if test "${with_device_mode+set}" = set; then :
6739 withval
=$with_device_mode; DM_DEVICE_MODE
=$withval
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6745 $as_echo "$DM_DEVICE_MODE" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6748 $as_echo_n "checking when to create device nodes... " >&6; }
6750 # Check whether --with-device-nodes-on was given.
6751 if test "${with_device_nodes_on+set}" = set; then :
6752 withval
=$with_device_nodes_on; ADD_NODE
=$withval
6758 resume
) add_on
=DM_ADD_NODE_ON_RESUME
;;
6759 create
) add_on
=DM_ADD_NODE_ON_CREATE
;;
6760 *) as_fn_error $?
"--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6763 $as_echo "on $ADD_NODE" >&6; }
6765 cat >>confdefs.h
<<_ACEOF
6766 #define DEFAULT_DM_ADD_NODE $add_on
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6771 $as_echo_n "checking default name mangling... " >&6; }
6773 # Check whether --with-default-name-mangling was given.
6774 if test "${with_default_name_mangling+set}" = set; then :
6775 withval
=$with_default_name_mangling; MANGLING
=$withval
6781 auto
) mangling
=DM_STRING_MANGLING_AUTO
;;
6782 disabled
) mangling
=DM_STRING_MANGLING_NONE
;;
6783 hex
) mangling
=DM_STRING_MANGLING_HEX
;;
6784 *) as_fn_error $?
"--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6787 $as_echo "$MANGLING" >&6; }
6789 cat >>confdefs.h
<<_ACEOF
6790 #define DEFAULT_DM_NAME_MANGLING $mangling
6794 ################################################################################
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6796 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6797 # Check whether --enable-lvm1_fallback was given.
6798 if test "${enable_lvm1_fallback+set}" = set; then :
6799 enableval
=$enable_lvm1_fallback; LVM1_FALLBACK
=$enableval
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6805 $as_echo "$LVM1_FALLBACK" >&6; }
6807 if test x
$LVM1_FALLBACK = xyes
; then
6809 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6813 ################################################################################
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6815 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6817 # Check whether --with-lvm1 was given.
6818 if test "${with_lvm1+set}" = set; then :
6819 withval
=$with_lvm1; LVM1
=$withval
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6825 $as_echo "$LVM1" >&6; }
6827 if [ "x$LVM1" != xnone
-a "x$LVM1" != xinternal
-a "x$LVM1" != xshared
];
6828 then as_fn_error $?
"--with-lvm1 parameter invalid
6832 if test x
$LVM1 = xinternal
; then
6834 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6838 ################################################################################
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6840 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6842 # Check whether --with-pool was given.
6843 if test "${with_pool+set}" = set; then :
6844 withval
=$with_pool; POOL
=$withval
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6850 $as_echo "$POOL" >&6; }
6852 if [ "x$POOL" != xnone
-a "x$POOL" != xinternal
-a "x$POOL" != xshared
];
6853 then as_fn_error $?
"--with-pool parameter invalid
6857 if test x
$POOL = xinternal
; then
6859 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6863 ################################################################################
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6865 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6867 # Check whether --with-cluster was given.
6868 if test "${with_cluster+set}" = set; then :
6869 withval
=$with_cluster; CLUSTER
=$withval
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6873 $as_echo "$CLUSTER" >&6; }
6875 if [ "x$CLUSTER" != xnone
-a "x$CLUSTER" != xinternal
-a "x$CLUSTER" != xshared
];
6876 then as_fn_error $?
"--with-cluster parameter invalid
6880 if test x
$CLUSTER = xinternal
; then
6882 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6886 ################################################################################
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6888 $as_echo_n "checking whether to include snapshots... " >&6; }
6890 # Check whether --with-snapshots was given.
6891 if test "${with_snapshots+set}" = set; then :
6892 withval
=$with_snapshots; SNAPSHOTS
=$withval
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6898 $as_echo "$SNAPSHOTS" >&6; }
6900 if [ "x$SNAPSHOTS" != xnone
-a "x$SNAPSHOTS" != xinternal
-a "x$SNAPSHOTS" != xshared
];
6901 then as_fn_error $?
"--with-snapshots parameter invalid
6905 if test x
$SNAPSHOTS = xinternal
; then
6907 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6911 ################################################################################
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6913 $as_echo_n "checking whether to include mirrors... " >&6; }
6915 # Check whether --with-mirrors was given.
6916 if test "${with_mirrors+set}" = set; then :
6917 withval
=$with_mirrors; MIRRORS
=$withval
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6923 $as_echo "$MIRRORS" >&6; }
6925 if [ "x$MIRRORS" != xnone
-a "x$MIRRORS" != xinternal
-a "x$MIRRORS" != xshared
];
6926 then as_fn_error $?
"--with-mirrors parameter invalid
6930 if test x
$MIRRORS = xinternal
; then
6932 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6936 ################################################################################
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6938 $as_echo_n "checking whether to include raid... " >&6; }
6940 # Check whether --with-raid was given.
6941 if test "${with_raid+set}" = set; then :
6942 withval
=$with_raid; RAID
=$withval
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6948 $as_echo "$RAID" >&6; }
6950 if [ "x$RAID" != xnone
-a "x$RAID" != xinternal
-a "x$RAID" != xshared
];
6951 then as_fn_error $?
"--with-raid parameter invalid
6955 if test x
$RAID = xinternal
; then
6957 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6961 ################################################################################
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6963 $as_echo_n "checking whether to include replicators... " >&6; }
6965 # Check whether --with-replicators was given.
6966 if test "${with_replicators+set}" = set; then :
6967 withval
=$with_replicators; REPLICATORS
=$withval
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6973 $as_echo "$REPLICATORS" >&6; }
6975 case "$REPLICATORS" in
6978 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6980 *) as_fn_error $?
"--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6983 ################################################################################
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6985 $as_echo_n "checking whether to include thin provisioning... " >&6; }
6987 # Check whether --with-thin was given.
6988 if test "${with_thin+set}" = set; then :
6989 withval
=$with_thin; THIN
=$withval
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6995 $as_echo "$THIN" >&6; }
7000 $as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7002 *) as_fn_error $?
"--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7005 ################################################################################
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7007 $as_echo_n "checking whether to enable readline... " >&6; }
7008 # Check whether --enable-readline was given.
7009 if test "${enable_readline+set}" = set; then :
7010 enableval
=$enable_readline; READLINE
=$enableval
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7016 $as_echo "$READLINE" >&6; }
7018 ################################################################################
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7020 $as_echo_n "checking whether to enable realtime support... " >&6; }
7021 # Check whether --enable-realtime was given.
7022 if test "${enable_realtime+set}" = set; then :
7023 enableval
=$enable_realtime; REALTIME
=$enableval
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7027 $as_echo "$REALTIME" >&6; }
7029 ################################################################################
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7031 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7032 # Check whether --enable-ocf was given.
7033 if test "${enable_ocf+set}" = set; then :
7034 enableval
=$enable_ocf; OCF
=$enableval
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7040 $as_echo "$OCF" >&6; }
7042 # Check whether --with-ocfdir was given.
7043 if test "${with_ocfdir+set}" = set; then :
7044 withval
=$with_ocfdir; OCFDIR
=$withval
7046 OCFDIR
='${prefix}/lib/ocf/resource.d/lvm2'
7050 ################################################################################
7058 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7061 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7069 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir
=.
7077 for ac_exec_ext
in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7091 if test -n "$PKG_CONFIG"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7093 $as_echo "$PKG_CONFIG" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7101 if test -z "$ac_cv_path_PKG_CONFIG"; then
7102 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7103 # Extract the first word of "pkg-config", so it can be a program name with args.
7104 set dummy pkg-config
; ac_word
=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7110 case $ac_pt_PKG_CONFIG in
7112 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir
=.
7120 for ac_exec_ext
in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7134 if test -n "$ac_pt_PKG_CONFIG"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7136 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7142 if test "x$ac_pt_PKG_CONFIG" = x
; then
7145 case $cross_compiling:$ac_tool_warned in
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned
=yes ;;
7151 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7154 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7158 if test -n "$PKG_CONFIG"; then
7159 _pkg_min_version
=0.9.0
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7161 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7162 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7174 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7176 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7177 pkg_cv_PKGCONFIGINIT_CFLAGS
="$PKGCONFIGINIT_CFLAGS"
7178 elif test -n "$PKG_CONFIG"; then
7179 if test -n "$PKG_CONFIG" && \
7180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7181 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 pkg_cv_PKGCONFIGINIT_CFLAGS
=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7192 if test -n "$PKGCONFIGINIT_LIBS"; then
7193 pkg_cv_PKGCONFIGINIT_LIBS
="$PKGCONFIGINIT_LIBS"
7194 elif test -n "$PKG_CONFIG"; then
7195 if test -n "$PKG_CONFIG" && \
7196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7197 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }; then
7201 pkg_cv_PKGCONFIGINIT_LIBS
=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7211 if test $pkg_failed = yes; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7216 _pkg_short_errors_supported
=yes
7218 _pkg_short_errors_supported
=no
7220 if test $_pkg_short_errors_supported = yes; then
7221 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7223 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7225 # Put the nasty error message in config.log where it belongs
7226 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7229 $as_echo "pkg-config initialized" >&6; }
7230 elif test $pkg_failed = untried
; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7234 $as_echo "pkg-config initialized" >&6; }
7236 PKGCONFIGINIT_CFLAGS
=$pkg_cv_PKGCONFIGINIT_CFLAGS
7237 PKGCONFIGINIT_LIBS
=$pkg_cv_PKGCONFIGINIT_LIBS
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7239 $as_echo "yes" >&6; }
7245 ################################################################################
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7247 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7249 # Check whether --with-clvmd was given.
7250 if test "${with_clvmd+set}" = set; then :
7251 withval
=$with_clvmd; CLVMD
=$withval
7256 if test x
$CLVMD = xyes
; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7260 $as_echo "$CLVMD" >&6; }
7262 if test x
$CLVMD != xnone
&& test x
$CLUSTER = xnone
; then
7266 if test x
$CLVMD != xnone
&& test x
$PKGCONFIG_INIT != x1
; then
7271 CLVMD_NEEDS_QDISKD
=no
7273 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7274 as_fn_error $?
"Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7276 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7278 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7279 CLVMD_NEEDS_QDISKD
=yes
7281 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7283 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7285 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7287 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7289 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7290 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7298 as_fn_error $?
"bailing out" "$LINENO" 5
7301 if test x
$CLVMD = xall
; then
7302 bailout
=soft_bailout
7307 bailout
=hard_bailout
7310 check_lib_no_libs
() {
7316 as_ac_Lib
=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7318 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7319 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7320 $as_echo_n "(cached) " >&6
7322 ac_check_lib_save_LIBS
=$LIBS
7323 LIBS
="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7327 /* Override any GCC internal prototype to avoid an error.
7328 Use char because int might match the return type of a GCC
7329 builtin and then its argument prototype would still apply. */
7333 char $lib_no_libs_arg2 ();
7337 return $lib_no_libs_arg2 ();
7342 if ac_fn_c_try_link
"$LINENO"; then :
7343 eval "$as_ac_Lib=yes"
7345 eval "$as_ac_Lib=no"
7347 rm -f core conftest.err conftest.
$ac_objext \
7348 conftest
$ac_exeext conftest.
$ac_ext
7349 LIBS
=$ac_check_lib_save_LIBS
7351 eval ac_res
=\$
$as_ac_Lib
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7353 $as_echo "$ac_res" >&6; }
7354 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
7355 cat >>confdefs.h
<<_ACEOF
7356 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7359 LIBS
="-l$lib_no_libs_arg1 $LIBS"
7365 LIBS
=$ac_check_lib_save_LIBS
7368 if test x
$BUILDCMAN = xyes
; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7372 $as_echo_n "checking for CMAN... " >&6; }
7374 if test -n "$CMAN_CFLAGS"; then
7375 pkg_cv_CMAN_CFLAGS
="$CMAN_CFLAGS"
7376 elif test -n "$PKG_CONFIG"; then
7377 if test -n "$PKG_CONFIG" && \
7378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7379 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382 test $ac_status = 0; }; then
7383 pkg_cv_CMAN_CFLAGS
=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7390 if test -n "$CMAN_LIBS"; then
7391 pkg_cv_CMAN_LIBS
="$CMAN_LIBS"
7392 elif test -n "$PKG_CONFIG"; then
7393 if test -n "$PKG_CONFIG" && \
7394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7395 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }; then
7399 pkg_cv_CMAN_LIBS
=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7409 if test $pkg_failed = yes; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7414 _pkg_short_errors_supported
=yes
7416 _pkg_short_errors_supported
=no
7418 if test $_pkg_short_errors_supported = yes; then
7419 CMAN_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7421 CMAN_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7423 # Put the nasty error message in config.log where it belongs
7424 echo "$CMAN_PKG_ERRORS" >&5
7427 for ac_header
in libcman.h
7429 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7430 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7431 cat >>confdefs.h
<<_ACEOF
7432 #define HAVE_LIBCMAN_H 1
7441 check_lib_no_libs cman cman_init
7442 if test $NOTFOUND = 0; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7444 $as_echo "no pkg for libcman, using -lcman" >&6; }
7448 elif test $pkg_failed = untried
; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7452 for ac_header
in libcman.h
7454 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7455 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7456 cat >>confdefs.h
<<_ACEOF
7457 #define HAVE_LIBCMAN_H 1
7466 check_lib_no_libs cman cman_init
7467 if test $NOTFOUND = 0; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7469 $as_echo "no pkg for libcman, using -lcman" >&6; }
7474 CMAN_CFLAGS
=$pkg_cv_CMAN_CFLAGS
7475 CMAN_LIBS
=$pkg_cv_CMAN_LIBS
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7477 $as_echo "yes" >&6; }
7484 if test x
$BUILDCOROSYNC = xyes || \
7485 test x
$BUILDOPENAIS = xyes
; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7489 $as_echo_n "checking for COROSYNC... " >&6; }
7491 if test -n "$COROSYNC_CFLAGS"; then
7492 pkg_cv_COROSYNC_CFLAGS
="$COROSYNC_CFLAGS"
7493 elif test -n "$PKG_CONFIG"; then
7494 if test -n "$PKG_CONFIG" && \
7495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7496 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 pkg_cv_COROSYNC_CFLAGS
=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7507 if test -n "$COROSYNC_LIBS"; then
7508 pkg_cv_COROSYNC_LIBS
="$COROSYNC_LIBS"
7509 elif test -n "$PKG_CONFIG"; then
7510 if test -n "$PKG_CONFIG" && \
7511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7512 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 pkg_cv_COROSYNC_LIBS
=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7526 if test $pkg_failed = yes; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7531 _pkg_short_errors_supported
=yes
7533 _pkg_short_errors_supported
=no
7535 if test $_pkg_short_errors_supported = yes; then
7536 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7538 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7540 # Put the nasty error message in config.log where it belongs
7541 echo "$COROSYNC_PKG_ERRORS" >&5
7544 elif test $pkg_failed = untried
; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7549 COROSYNC_CFLAGS
=$pkg_cv_COROSYNC_CFLAGS
7550 COROSYNC_LIBS
=$pkg_cv_COROSYNC_LIBS
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7552 $as_echo "yes" >&6; }
7559 if test x
$BUILDCOROSYNC = xyes
; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7563 $as_echo_n "checking for QUORUM... " >&6; }
7565 if test -n "$QUORUM_CFLAGS"; then
7566 pkg_cv_QUORUM_CFLAGS
="$QUORUM_CFLAGS"
7567 elif test -n "$PKG_CONFIG"; then
7568 if test -n "$PKG_CONFIG" && \
7569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7570 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7573 test $ac_status = 0; }; then
7574 pkg_cv_QUORUM_CFLAGS
=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7581 if test -n "$QUORUM_LIBS"; then
7582 pkg_cv_QUORUM_LIBS
="$QUORUM_LIBS"
7583 elif test -n "$PKG_CONFIG"; then
7584 if test -n "$PKG_CONFIG" && \
7585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7586 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589 test $ac_status = 0; }; then
7590 pkg_cv_QUORUM_LIBS
=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7600 if test $pkg_failed = yes; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7605 _pkg_short_errors_supported
=yes
7607 _pkg_short_errors_supported
=no
7609 if test $_pkg_short_errors_supported = yes; then
7610 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7612 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7614 # Put the nasty error message in config.log where it belongs
7615 echo "$QUORUM_PKG_ERRORS" >&5
7618 elif test $pkg_failed = untried
; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7623 QUORUM_CFLAGS
=$pkg_cv_QUORUM_CFLAGS
7624 QUORUM_LIBS
=$pkg_cv_QUORUM_LIBS
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7626 $as_echo "yes" >&6; }
7633 if test x
$BUILDOPENAIS = xyes
; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7637 $as_echo_n "checking for SALCK... " >&6; }
7639 if test -n "$SALCK_CFLAGS"; then
7640 pkg_cv_SALCK_CFLAGS
="$SALCK_CFLAGS"
7641 elif test -n "$PKG_CONFIG"; then
7642 if test -n "$PKG_CONFIG" && \
7643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7644 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; }; then
7648 pkg_cv_SALCK_CFLAGS
=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7655 if test -n "$SALCK_LIBS"; then
7656 pkg_cv_SALCK_LIBS
="$SALCK_LIBS"
7657 elif test -n "$PKG_CONFIG"; then
7658 if test -n "$PKG_CONFIG" && \
7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7660 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }; then
7664 pkg_cv_SALCK_LIBS
=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7674 if test $pkg_failed = yes; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7679 _pkg_short_errors_supported
=yes
7681 _pkg_short_errors_supported
=no
7683 if test $_pkg_short_errors_supported = yes; then
7684 SALCK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7686 SALCK_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7688 # Put the nasty error message in config.log where it belongs
7689 echo "$SALCK_PKG_ERRORS" >&5
7692 elif test $pkg_failed = untried
; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7697 SALCK_CFLAGS
=$pkg_cv_SALCK_CFLAGS
7698 SALCK_LIBS
=$pkg_cv_SALCK_LIBS
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700 $as_echo "yes" >&6; }
7708 if test x
$CHECKCONFDB = xyes
; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7712 $as_echo_n "checking for CONFDB... " >&6; }
7714 if test -n "$CONFDB_CFLAGS"; then
7715 pkg_cv_CONFDB_CFLAGS
="$CONFDB_CFLAGS"
7716 elif test -n "$PKG_CONFIG"; then
7717 if test -n "$PKG_CONFIG" && \
7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7719 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 pkg_cv_CONFDB_CFLAGS
=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7730 if test -n "$CONFDB_LIBS"; then
7731 pkg_cv_CONFDB_LIBS
="$CONFDB_LIBS"
7732 elif test -n "$PKG_CONFIG"; then
7733 if test -n "$PKG_CONFIG" && \
7734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7735 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7738 test $ac_status = 0; }; then
7739 pkg_cv_CONFDB_LIBS
=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7749 if test $pkg_failed = yes; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7754 _pkg_short_errors_supported
=yes
7756 _pkg_short_errors_supported
=no
7758 if test $_pkg_short_errors_supported = yes; then
7759 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7761 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7763 # Put the nasty error message in config.log where it belongs
7764 echo "$CONFDB_PKG_ERRORS" >&5
7767 elif test $pkg_failed = untried
; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7772 CONFDB_CFLAGS
=$pkg_cv_CONFDB_CFLAGS
7773 CONFDB_LIBS
=$pkg_cv_CONFDB_LIBS
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7775 $as_echo "yes" >&6; }
7779 for ac_header
in corosync
/confdb.h
7781 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7782 if test "x$ac_cv_header_corosync_confdb_h" = x
""yes; then :
7783 cat >>confdefs.h
<<_ACEOF
7784 #define HAVE_COROSYNC_CONFDB_H 1
7794 if test x
$HAVE_CONFDB != xyes
&& \
7795 test x
$HAVE_CONFDB_H = xyes
; then
7796 check_lib_no_libs confdb confdb_initialize
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7798 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7799 CONFDB_LIBS
="-lconfdb"
7805 if test x
$CHECKCMAP = xyes
; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7809 $as_echo_n "checking for CMAP... " >&6; }
7811 if test -n "$CMAP_CFLAGS"; then
7812 pkg_cv_CMAP_CFLAGS
="$CMAP_CFLAGS"
7813 elif test -n "$PKG_CONFIG"; then
7814 if test -n "$PKG_CONFIG" && \
7815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7816 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; }; then
7820 pkg_cv_CMAP_CFLAGS
=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7827 if test -n "$CMAP_LIBS"; then
7828 pkg_cv_CMAP_LIBS
="$CMAP_LIBS"
7829 elif test -n "$PKG_CONFIG"; then
7830 if test -n "$PKG_CONFIG" && \
7831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7832 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 pkg_cv_CMAP_LIBS
=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7846 if test $pkg_failed = yes; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7851 _pkg_short_errors_supported
=yes
7853 _pkg_short_errors_supported
=no
7855 if test $_pkg_short_errors_supported = yes; then
7856 CMAP_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7858 CMAP_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7860 # Put the nasty error message in config.log where it belongs
7861 echo "$CMAP_PKG_ERRORS" >&5
7864 elif test $pkg_failed = untried
; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7869 CMAP_CFLAGS
=$pkg_cv_CMAP_CFLAGS
7870 CMAP_LIBS
=$pkg_cv_CMAP_LIBS
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7876 for ac_header
in corosync
/cmap.h
7878 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7879 if test "x$ac_cv_header_corosync_cmap_h" = x
""yes; then :
7880 cat >>confdefs.h
<<_ACEOF
7881 #define HAVE_COROSYNC_CMAP_H 1
7891 if test x
$HAVE_CMAP != xyes
&& \
7892 test x
$HAVE_CMAP_H = xyes
; then
7893 check_lib_no_libs cmap cmap_initialize
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7895 $as_echo "no pkg for cmap, using -lcmap" >&6; }
7901 if test x
$BUILDCOROSYNC = xyes
; then
7902 if test x
$HAVE_CMAP != xyes
&& \
7903 test x
$HAVE_CONFDB != xyes
&& \
7904 test x
$CLVMD != xall
; then
7905 as_fn_error $?
"bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
7909 if test x
$CHECKCPG = xyes
; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7913 $as_echo_n "checking for CPG... " >&6; }
7915 if test -n "$CPG_CFLAGS"; then
7916 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
7917 elif test -n "$PKG_CONFIG"; then
7918 if test -n "$PKG_CONFIG" && \
7919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7920 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923 test $ac_status = 0; }; then
7924 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7931 if test -n "$CPG_LIBS"; then
7932 pkg_cv_CPG_LIBS
="$CPG_LIBS"
7933 elif test -n "$PKG_CONFIG"; then
7934 if test -n "$PKG_CONFIG" && \
7935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7936 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7950 if test $pkg_failed = yes; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7955 _pkg_short_errors_supported
=yes
7957 _pkg_short_errors_supported
=no
7959 if test $_pkg_short_errors_supported = yes; then
7960 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7962 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7964 # Put the nasty error message in config.log where it belongs
7965 echo "$CPG_PKG_ERRORS" >&5
7968 elif test $pkg_failed = untried
; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
7974 CPG_LIBS
=$pkg_cv_CPG_LIBS
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7981 if test x
$CHECKDLM = xyes
; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7985 $as_echo_n "checking for DLM... " >&6; }
7987 if test -n "$DLM_CFLAGS"; then
7988 pkg_cv_DLM_CFLAGS
="$DLM_CFLAGS"
7989 elif test -n "$PKG_CONFIG"; then
7990 if test -n "$PKG_CONFIG" && \
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7992 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 pkg_cv_DLM_CFLAGS
=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8003 if test -n "$DLM_LIBS"; then
8004 pkg_cv_DLM_LIBS
="$DLM_LIBS"
8005 elif test -n "$PKG_CONFIG"; then
8006 if test -n "$PKG_CONFIG" && \
8007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8008 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 pkg_cv_DLM_LIBS
=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8022 if test $pkg_failed = yes; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8027 _pkg_short_errors_supported
=yes
8029 _pkg_short_errors_supported
=no
8031 if test $_pkg_short_errors_supported = yes; then
8032 DLM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8034 DLM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8036 # Put the nasty error message in config.log where it belongs
8037 echo "$DLM_PKG_ERRORS" >&5
8040 for ac_header
in libdlm.h
8042 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8043 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8044 cat >>confdefs.h
<<_ACEOF
8045 #define HAVE_LIBDLM_H 1
8054 check_lib_no_libs dlm dlm_lock
-lpthread
8055 if test $NOTFOUND = 0; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8057 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8058 DLM_LIBS
="-ldlm -lpthread"
8061 elif test $pkg_failed = untried
; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8065 for ac_header
in libdlm.h
8067 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8068 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8069 cat >>confdefs.h
<<_ACEOF
8070 #define HAVE_LIBDLM_H 1
8079 check_lib_no_libs dlm dlm_lock
-lpthread
8080 if test $NOTFOUND = 0; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8082 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8083 DLM_LIBS
="-ldlm -lpthread"
8087 DLM_CFLAGS
=$pkg_cv_DLM_CFLAGS
8088 DLM_LIBS
=$pkg_cv_DLM_LIBS
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8090 $as_echo "yes" >&6; }
8095 if test x
$CLVMD = xall
; then
8098 CLVMD_NEEDS_QDISKD
=no
8099 if test x
$HAVE_CMAN = xyes
&& \
8100 test x
$HAVE_DLM = xyes
; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8102 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8104 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
8105 CLVMD_NEEDS_QDISKD
=yes
8107 if test x
$HAVE_COROSYNC = xyes
&& \
8108 test x
$HAVE_QUORUM = xyes
&& \
8109 test x
$HAVE_CPG = xyes
&& \
8110 test x
$HAVE_DLM = xyes
; then
8111 if test x
$HAVE_CONFDB = xyes ||
test x
$HAVE_CMAP = xyes
; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8113 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8114 CLVMD
="$CLVMD,corosync"
8115 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
8118 if test x
$HAVE_COROSYNC = xyes
&& \
8119 test x
$HAVE_CPG = xyes
&& \
8120 test x
$HAVE_SALCK = xyes
; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8122 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8123 CLVMD
="$CLVMD,openais"
8124 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
8126 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
8127 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
8129 if test x
$CLVMD = xnone
; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8131 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8135 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8136 if test x
$HAVE_CMAP = xyes
; then
8137 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS dlm"
8141 ################################################################################
8142 if test "x$CLVMD" != xnone
; then
8144 # Check whether --with-clvmd-pidfile was given.
8145 if test "${with_clvmd_pidfile+set}" = set; then :
8146 withval
=$with_clvmd_pidfile; CLVMD_PIDFILE
=$withval
8148 CLVMD_PIDFILE
="/var/run/clvmd.pid"
8152 cat >>confdefs.h
<<_ACEOF
8153 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8158 ################################################################################
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8160 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8161 # Check whether --enable-cmirrord was given.
8162 if test "${enable_cmirrord+set}" = set; then :
8163 enableval
=$enable_cmirrord; CMIRRORD
=$enableval
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8169 $as_echo "$CMIRRORD" >&6; }
8171 BUILD_CMIRRORD
=$CMIRRORD
8173 ################################################################################
8174 if test "x$BUILD_CMIRRORD" = xyes
; then
8176 # Check whether --with-cmirrord-pidfile was given.
8177 if test "${with_cmirrord_pidfile+set}" = set; then :
8178 withval
=$with_cmirrord_pidfile; CMIRRORD_PIDFILE
=$withval
8180 CMIRRORD_PIDFILE
="/var/run/cmirrord.pid"
8184 cat >>confdefs.h
<<_ACEOF
8185 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8190 ################################################################################
8191 if [ "x$BUILD_CMIRRORD" = xyes
]; then
8192 if test x
$PKGCONFIG_INIT != x1
; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8198 $as_echo_n "checking for SACKPT... " >&6; }
8200 if test -n "$SACKPT_CFLAGS"; then
8201 pkg_cv_SACKPT_CFLAGS
="$SACKPT_CFLAGS"
8202 elif test -n "$PKG_CONFIG"; then
8203 if test -n "$PKG_CONFIG" && \
8204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8205 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208 test $ac_status = 0; }; then
8209 pkg_cv_SACKPT_CFLAGS
=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8216 if test -n "$SACKPT_LIBS"; then
8217 pkg_cv_SACKPT_LIBS
="$SACKPT_LIBS"
8218 elif test -n "$PKG_CONFIG"; then
8219 if test -n "$PKG_CONFIG" && \
8220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8221 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8224 test $ac_status = 0; }; then
8225 pkg_cv_SACKPT_LIBS
=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8235 if test $pkg_failed = yes; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8240 _pkg_short_errors_supported
=yes
8242 _pkg_short_errors_supported
=no
8244 if test $_pkg_short_errors_supported = yes; then
8245 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8247 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8249 # Put the nasty error message in config.log where it belongs
8250 echo "$SACKPT_PKG_ERRORS" >&5
8252 as_fn_error $?
"Package requirements (libSaCkpt) were not met:
8256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8257 installed software in a non-standard prefix.
8259 Alternatively, you may set the environment variables SACKPT_CFLAGS
8260 and SACKPT_LIBS to avoid the need to call pkg-config.
8261 See the pkg-config man page for more details." "$LINENO" 5
8263 elif test $pkg_failed = untried
; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8268 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8269 is in your PATH or set the PKG_CONFIG environment variable to the full
8272 Alternatively, you may set the environment variables SACKPT_CFLAGS
8273 and SACKPT_LIBS to avoid the need to call pkg-config.
8274 See the pkg-config man page for more details.
8276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8277 See \`config.log' for more details" "$LINENO" 5; }
8280 SACKPT_CFLAGS
=$pkg_cv_SACKPT_CFLAGS
8281 SACKPT_LIBS
=$pkg_cv_SACKPT_LIBS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8286 if test x
$HAVE_CPG != xyes
; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8290 $as_echo_n "checking for CPG... " >&6; }
8292 if test -n "$CPG_CFLAGS"; then
8293 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8294 elif test -n "$PKG_CONFIG"; then
8295 if test -n "$PKG_CONFIG" && \
8296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8297 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8300 test $ac_status = 0; }; then
8301 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8308 if test -n "$CPG_LIBS"; then
8309 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8310 elif test -n "$PKG_CONFIG"; then
8311 if test -n "$PKG_CONFIG" && \
8312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8313 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316 test $ac_status = 0; }; then
8317 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8327 if test $pkg_failed = yes; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8332 _pkg_short_errors_supported
=yes
8334 _pkg_short_errors_supported
=no
8336 if test $_pkg_short_errors_supported = yes; then
8337 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8339 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8341 # Put the nasty error message in config.log where it belongs
8342 echo "$CPG_PKG_ERRORS" >&5
8344 as_fn_error $?
"Package requirements (libcpg) were not met:
8348 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8349 installed software in a non-standard prefix.
8351 Alternatively, you may set the environment variables CPG_CFLAGS
8352 and CPG_LIBS to avoid the need to call pkg-config.
8353 See the pkg-config man page for more details." "$LINENO" 5
8355 elif test $pkg_failed = untried
; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8360 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8361 is in your PATH or set the PKG_CONFIG environment variable to the full
8364 Alternatively, you may set the environment variables CPG_CFLAGS
8365 and CPG_LIBS to avoid the need to call pkg-config.
8366 See the pkg-config man page for more details.
8368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8369 See \`config.log' for more details" "$LINENO" 5; }
8372 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8373 CPG_LIBS
=$pkg_cv_CPG_LIBS
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8375 $as_echo "yes" >&6; }
8381 ################################################################################
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8383 $as_echo_n "checking whether to enable debugging... " >&6; }
8384 # Check whether --enable-debug was given.
8385 if test "${enable_debug+set}" = set; then :
8386 enableval
=$enable_debug; DEBUG
=$enableval
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8392 $as_echo "$DEBUG" >&6; }
8394 if test x
$DEBUG = xyes
; then
8400 ################################################################################
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8402 $as_echo_n "checking for C optimisation flag... " >&6; }
8404 # Check whether --with-optimisation was given.
8405 if test "${with_optimisation+set}" = set; then :
8406 withval
=$with_optimisation; COPTIMISE_FLAG
=$withval
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8410 $as_echo "$COPTIMISE_FLAG" >&6; }
8412 ################################################################################
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8414 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8415 # Check whether --enable-profiling was given.
8416 if test "${enable_profiling+set}" = set; then :
8417 enableval
=$enable_profiling; PROFILING
=$enableval
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8423 $as_echo "$PROFILING" >&6; }
8425 if test "x$PROFILING" = xyes
; then
8426 COPTIMISE_FLAG
="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8427 # Extract the first word of "lcov", so it can be a program name with args.
8428 set dummy lcov
; ac_word
=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_path_LCOV+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8436 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
8439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8443 test -z "$as_dir" && as_dir
=.
8444 for ac_exec_ext
in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 LCOV
=$ac_cv_path_LCOV
8458 if test -n "$LCOV"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8460 $as_echo "$LCOV" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8467 # Extract the first word of "genhtml", so it can be a program name with args.
8468 set dummy genhtml
; ac_word
=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if test "${ac_cv_path_GENHTML+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8476 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
8479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir
=.
8484 for ac_exec_ext
in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 GENHTML
=$ac_cv_path_GENHTML
8498 if test -n "$GENHTML"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8500 $as_echo "$GENHTML" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8507 if test -z "$LCOV" -o -z "$GENHTML"; then
8508 as_fn_error $?
"lcov and genhtml are required for profiling" "$LINENO" 5
8510 # Extract the first word of "genpng", so it can be a program name with args.
8511 set dummy genpng
; ac_word
=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_path_GENPNG+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8519 ac_cv_path_GENPNG
="$GENPNG" # Let the user override the test with a path.
8522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir
=.
8527 for ac_exec_ext
in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_GENPNG
="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 GENPNG
=$ac_cv_path_GENPNG
8541 if test -n "$GENPNG"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8543 $as_echo "$GENPNG" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8550 if test -n "$GENPNG"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8552 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8553 if $GENPNG --help > /dev
/null
2>&1 ; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8555 $as_echo "ok" >&6; }
8556 GENHTML
="$GENHTML --frames"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8559 $as_echo "not supported" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8561 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8567 ################################################################################
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8569 $as_echo_n "checking whether to enable unit testing... " >&6; }
8570 # Check whether --enable-testing was given.
8571 if test "${enable_testing+set}" = set; then :
8572 enableval
=$enable_testing; TESTING
=$enableval
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8578 $as_echo "$TESTING" >&6; }
8580 if test "$TESTING" = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8584 $as_echo_n "checking for CUNIT... " >&6; }
8586 if test -n "$CUNIT_CFLAGS"; then
8587 pkg_cv_CUNIT_CFLAGS
="$CUNIT_CFLAGS"
8588 elif test -n "$PKG_CONFIG"; then
8589 if test -n "$PKG_CONFIG" && \
8590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8591 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8594 test $ac_status = 0; }; then
8595 pkg_cv_CUNIT_CFLAGS
=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8602 if test -n "$CUNIT_LIBS"; then
8603 pkg_cv_CUNIT_LIBS
="$CUNIT_LIBS"
8604 elif test -n "$PKG_CONFIG"; then
8605 if test -n "$PKG_CONFIG" && \
8606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8607 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8610 test $ac_status = 0; }; then
8611 pkg_cv_CUNIT_LIBS
=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
8621 if test $pkg_failed = yes; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8625 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8626 _pkg_short_errors_supported
=yes
8628 _pkg_short_errors_supported
=no
8630 if test $_pkg_short_errors_supported = yes; then
8631 CUNIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8633 CUNIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8635 # Put the nasty error message in config.log where it belongs
8636 echo "$CUNIT_PKG_ERRORS" >&5
8638 as_fn_error $?
"Package requirements (cunit >= 2.0) were not met:
8642 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8643 installed software in a non-standard prefix.
8645 Alternatively, you may set the environment variables CUNIT_CFLAGS
8646 and CUNIT_LIBS to avoid the need to call pkg-config.
8647 See the pkg-config man page for more details." "$LINENO" 5
8649 elif test $pkg_failed = untried
; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8654 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8655 is in your PATH or set the PKG_CONFIG environment variable to the full
8658 Alternatively, you may set the environment variables CUNIT_CFLAGS
8659 and CUNIT_LIBS to avoid the need to call pkg-config.
8660 See the pkg-config man page for more details.
8662 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8663 See \`config.log' for more details" "$LINENO" 5; }
8666 CUNIT_CFLAGS
=$pkg_cv_CUNIT_CFLAGS
8667 CUNIT_LIBS
=$pkg_cv_CUNIT_LIBS
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8669 $as_echo "yes" >&6; }
8674 ################################################################################
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8676 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8677 # Check whether --enable-valgrind_pool was given.
8678 if test "${enable_valgrind_pool+set}" = set; then :
8679 enableval
=$enable_valgrind_pool; VALGRIND_POOL
=$enableval
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8685 $as_echo "$VALGRIND_POOL" >&6; }
8687 if test "$VALGRIND_POOL" = yes; then
8688 for ac_header
in valgrind
/memcheck.h
8690 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8691 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
8692 cat >>confdefs.h
<<_ACEOF
8693 #define HAVE_VALGRIND_MEMCHECK_H 1
8697 as_fn_error $?
"bailing out" "$LINENO" 5
8703 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8707 ################################################################################
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8709 $as_echo_n "checking whether to use device-mapper... " >&6; }
8710 # Check whether --enable-devmapper was given.
8711 if test "${enable_devmapper+set}" = set; then :
8712 enableval
=$enable_devmapper; DEVMAPPER
=$enableval
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8716 $as_echo "$DEVMAPPER" >&6; }
8718 if test x
$DEVMAPPER = xyes
; then
8720 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8724 ################################################################################
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8726 $as_echo_n "checking whether to build LVMetaD... " >&6; }
8727 # Check whether --enable-lvmetad was given.
8728 if test "${enable_lvmetad+set}" = set; then :
8729 enableval
=$enable_lvmetad; LVMETAD
=$enableval
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8733 $as_echo "$LVMETAD" >&6; }
8735 BUILD_LVMETAD
=$LVMETAD
8737 ################################################################################
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8739 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8740 # Check whether --enable-udev_sync was given.
8741 if test "${enable_udev_sync+set}" = set; then :
8742 enableval
=$enable_udev_sync; UDEV_SYNC
=$enableval
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8748 $as_echo "$UDEV_SYNC" >&6; }
8750 if test x
$UDEV_SYNC = xyes
; then
8751 if test x
$PKGCONFIG_INIT != x1
; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8757 $as_echo_n "checking for UDEV... " >&6; }
8759 if test -n "$UDEV_CFLAGS"; then
8760 pkg_cv_UDEV_CFLAGS
="$UDEV_CFLAGS"
8761 elif test -n "$PKG_CONFIG"; then
8762 if test -n "$PKG_CONFIG" && \
8763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8764 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8767 test $ac_status = 0; }; then
8768 pkg_cv_UDEV_CFLAGS
=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8775 if test -n "$UDEV_LIBS"; then
8776 pkg_cv_UDEV_LIBS
="$UDEV_LIBS"
8777 elif test -n "$PKG_CONFIG"; then
8778 if test -n "$PKG_CONFIG" && \
8779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8780 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783 test $ac_status = 0; }; then
8784 pkg_cv_UDEV_LIBS
=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8794 if test $pkg_failed = yes; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8799 _pkg_short_errors_supported
=yes
8801 _pkg_short_errors_supported
=no
8803 if test $_pkg_short_errors_supported = yes; then
8804 UDEV_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8806 UDEV_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8808 # Put the nasty error message in config.log where it belongs
8809 echo "$UDEV_PKG_ERRORS" >&5
8811 as_fn_error $?
"Package requirements (libudev >= 143) were not met:
8815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8816 installed software in a non-standard prefix.
8818 Alternatively, you may set the environment variables UDEV_CFLAGS
8819 and UDEV_LIBS to avoid the need to call pkg-config.
8820 See the pkg-config man page for more details." "$LINENO" 5
8822 elif test $pkg_failed = untried
; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8827 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8828 is in your PATH or set the PKG_CONFIG environment variable to the full
8831 Alternatively, you may set the environment variables UDEV_CFLAGS
8832 and UDEV_LIBS to avoid the need to call pkg-config.
8833 See the pkg-config man page for more details.
8835 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8836 See \`config.log' for more details" "$LINENO" 5; }
8839 UDEV_CFLAGS
=$pkg_cv_UDEV_CFLAGS
8840 UDEV_LIBS
=$pkg_cv_UDEV_LIBS
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8842 $as_echo "yes" >&6; }
8846 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8851 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8852 # Check whether --enable-udev_rules was given.
8853 if test "${enable_udev_rules+set}" = set; then :
8854 enableval
=$enable_udev_rules; UDEV_RULES
=$enableval
8856 UDEV_RULES
=$UDEV_SYNC
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8860 $as_echo "$UDEV_RULES" >&6; }
8862 if test x
$UDEV_RULES = xyes
; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5
8864 $as_echo_n "checking whether udev supports builtin blkid... " >&6; }
8865 udev_version
=$
(udevadm info
--version 2>/dev
/null
)
8866 if test -n "$udev_version" && test "$udev_version" -ge 176; then
8867 UDEV_HAS_BUILTIN_BLKID
=yes
8869 UDEV_HAS_BUILTIN_BLKID
=no
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
8872 $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
8875 ################################################################################
8876 # Check whether --enable-compat was given.
8877 if test "${enable_compat+set}" = set; then :
8878 enableval
=$enable_compat; DM_COMPAT
=$enableval
8884 if test x
$DM_COMPAT = xyes
; then
8885 as_fn_error $?
"--enable-compat is not currently supported.
8886 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8887 ioctl protocol is supported.
8891 ################################################################################
8892 # Check whether --enable-units-compat was given.
8893 if test "${enable_units_compat+set}" = set; then :
8894 enableval
=$enable_units_compat; UNITS_COMPAT
=$enableval
8900 if test x
$UNITS_COMPAT = xyes
; then
8902 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8906 ################################################################################
8907 # Check whether --enable-ioctl was given.
8908 if test "${enable_ioctl+set}" = set; then :
8909 enableval
=$enable_ioctl; DM_IOCTLS
=$enableval
8913 ################################################################################
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8915 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8916 # Check whether --enable-o_direct was given.
8917 if test "${enable_o_direct+set}" = set; then :
8918 enableval
=$enable_o_direct; ODIRECT
=$enableval
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8922 $as_echo "$ODIRECT" >&6; }
8924 if test x
$ODIRECT = xyes
; then
8926 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8930 ################################################################################
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8932 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8933 # Check whether --enable-applib was given.
8934 if test "${enable_applib+set}" = set; then :
8935 enableval
=$enable_applib; APPLIB
=$enableval
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8941 $as_echo "$APPLIB" >&6; }
8943 test x
$APPLIB = xyes \
8944 && LVM2APP_LIB
=-llvm2app \
8947 ################################################################################
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8949 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8950 # Check whether --enable-cmdlib was given.
8951 if test "${enable_cmdlib+set}" = set; then :
8952 enableval
=$enable_cmdlib; CMDLIB
=$enableval
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8958 $as_echo "$CMDLIB" >&6; }
8960 test x
$CMDLIB = xyes \
8961 && LVM2CMD_LIB
=-llvm2cmd \
8964 ################################################################################
8965 # Check whether --enable-pkgconfig was given.
8966 if test "${enable_pkgconfig+set}" = set; then :
8967 enableval
=$enable_pkgconfig; PKGCONFIG
=$enableval
8973 ################################################################################
8974 # Check whether --enable-write_install was given.
8975 if test "${enable_write_install+set}" = set; then :
8976 enableval
=$enable_write_install; WRITE_INSTALL
=$enableval
8982 ################################################################################
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8984 $as_echo_n "checking whether to install fsadm... " >&6; }
8985 # Check whether --enable-fsadm was given.
8986 if test "${enable_fsadm+set}" = set; then :
8987 enableval
=$enable_fsadm; FSADM
=$enableval
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8991 $as_echo "$FSADM" >&6; }
8993 ################################################################################
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8995 $as_echo_n "checking whether to use dmeventd... " >&6; }
8996 # Check whether --enable-dmeventd was given.
8997 if test "${enable_dmeventd+set}" = set; then :
8998 enableval
=$enable_dmeventd; DMEVENTD
=$enableval
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9002 $as_echo "$DMEVENTD" >&6; }
9004 BUILD_DMEVENTD
=$DMEVENTD
9006 if test x
$DMEVENTD = xyes
; then
9007 if test x
$MIRRORS != xinternal
; then
9008 as_fn_error $?
"--enable-dmeventd currently requires --with-mirrors=internal
9011 if test x
$CMDLIB = xno
; then
9012 as_fn_error $?
"--enable-dmeventd requires --enable-cmdlib to be used as well
9017 if test x
$DMEVENTD = xyes
; then
9019 $as_echo "#define DMEVENTD 1" >>confdefs.h
9023 ################################################################################
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9026 $as_echo_n "checking for getline in -lc... " >&6; }
9027 if test "${ac_cv_lib_c_getline+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9030 ac_check_lib_save_LIBS
=$LIBS
9032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9035 /* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9050 if ac_fn_c_try_link
"$LINENO"; then :
9051 ac_cv_lib_c_getline
=yes
9053 ac_cv_lib_c_getline
=no
9055 rm -f core conftest.err conftest.
$ac_objext \
9056 conftest
$ac_exeext conftest.
$ac_ext
9057 LIBS
=$ac_check_lib_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9060 $as_echo "$ac_cv_lib_c_getline" >&6; }
9061 if test "x$ac_cv_lib_c_getline" = x
""yes; then :
9063 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9068 ################################################################################
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9071 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9072 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9075 ac_check_lib_save_LIBS
=$LIBS
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9086 char canonicalize_file_name ();
9090 return canonicalize_file_name ();
9095 if ac_fn_c_try_link
"$LINENO"; then :
9096 ac_cv_lib_c_canonicalize_file_name
=yes
9098 ac_cv_lib_c_canonicalize_file_name
=no
9100 rm -f core conftest.err conftest.
$ac_objext \
9101 conftest
$ac_exeext conftest.
$ac_ext
9102 LIBS
=$ac_check_lib_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9105 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9106 if test "x$ac_cv_lib_c_canonicalize_file_name" = x
""yes; then :
9108 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9113 ################################################################################
9114 if [ "x$exec_prefix" = xNONE
-a "x$prefix" = xNONE
];
9115 then exec_prefix
="";
9118 ################################################################################
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9124 ac_check_lib_save_LIBS
=$LIBS
9126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9144 if ac_fn_c_try_link
"$LINENO"; then :
9145 ac_cv_lib_dl_dlopen
=yes
9147 ac_cv_lib_dl_dlopen
=no
9149 rm -f core conftest.err conftest.
$ac_objext \
9150 conftest
$ac_exeext conftest.
$ac_ext
9151 LIBS
=$ac_check_lib_save_LIBS
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9155 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9158 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9169 ################################################################################
9170 if [ \
( "x$LVM1" = xshared
-o "x$POOL" = xshared
-o "x$CLUSTER" = xshared \
9171 -o "x$SNAPSHOTS" = xshared
-o "x$MIRRORS" = xshared \
9172 -o "x$RAID" = xshared \
9173 \
) -a "x$STATIC_LINK" = xyes
];
9174 then as_fn_error $?
"Features cannot be 'shared' when building statically
9178 ################################################################################
9179 if [ "$DMEVENTD" = yes -o "$CLVMD" != none
] ; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9181 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9182 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9185 ac_check_lib_save_LIBS
=$LIBS
9186 LIBS
="-lpthread $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. */
9196 char pthread_mutex_lock ();
9200 return pthread_mutex_lock ();
9205 if ac_fn_c_try_link
"$LINENO"; then :
9206 ac_cv_lib_pthread_pthread_mutex_lock
=yes
9208 ac_cv_lib_pthread_pthread_mutex_lock
=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_pthread_pthread_mutex_lock" >&5
9215 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9216 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x
""yes; then :
9217 PTHREAD_LIBS
="-lpthread"
9224 ################################################################################
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9226 $as_echo_n "checking whether to enable selinux support... " >&6; }
9227 # Check whether --enable-selinux was given.
9228 if test "${enable_selinux+set}" = set; then :
9229 enableval
=$enable_selinux; SELINUX
=$enableval
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9233 $as_echo "$SELINUX" >&6; }
9235 ################################################################################
9236 if test x
$SELINUX = xyes
; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9238 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9239 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9242 ac_check_lib_save_LIBS
=$LIBS
9243 LIBS
="-lsepol $LIBS"
9244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9247 /* Override any GCC internal prototype to avoid an error.
9248 Use char because int might match the return type of a GCC
9249 builtin and then its argument prototype would still apply. */
9253 char sepol_check_context ();
9257 return sepol_check_context ();
9262 if ac_fn_c_try_link
"$LINENO"; then :
9263 ac_cv_lib_sepol_sepol_check_context
=yes
9265 ac_cv_lib_sepol_sepol_check_context
=no
9267 rm -f core conftest.err conftest.
$ac_objext \
9268 conftest
$ac_exeext conftest.
$ac_ext
9269 LIBS
=$ac_check_lib_save_LIBS
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9272 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9273 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then :
9276 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9278 SELINUX_LIBS
="-lsepol"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9283 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9284 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9287 ac_check_lib_save_LIBS
=$LIBS
9288 LIBS
="-lselinux $LIBS"
9289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9298 char is_selinux_enabled ();
9302 return is_selinux_enabled ();
9307 if ac_fn_c_try_link
"$LINENO"; then :
9308 ac_cv_lib_selinux_is_selinux_enabled
=yes
9310 ac_cv_lib_selinux_is_selinux_enabled
=no
9312 rm -f core conftest.err conftest.
$ac_objext \
9313 conftest
$ac_exeext conftest.
$ac_ext
9314 LIBS
=$ac_check_lib_save_LIBS
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9317 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9318 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
9320 for ac_header
in selinux
/selinux.h
9322 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9323 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
9324 cat >>confdefs.h
<<_ACEOF
9325 #define HAVE_SELINUX_SELINUX_H 1
9334 for ac_header
in selinux
/label.h
9336 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9337 if test "x$ac_cv_header_selinux_label_h" = x
""yes; then :
9338 cat >>confdefs.h
<<_ACEOF
9339 #define HAVE_SELINUX_LABEL_H 1
9347 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9349 SELINUX_LIBS
="-lselinux $SELINUX_LIBS"
9350 SELINUX_PC
="libselinux"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9355 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9363 ################################################################################
9364 if test x
$REALTIME = xyes
; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9366 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9367 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9370 ac_check_lib_save_LIBS
=$LIBS
9372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9375 /* Override any GCC internal prototype to avoid an error.
9376 Use char because int might match the return type of a GCC
9377 builtin and then its argument prototype would still apply. */
9381 char clock_gettime ();
9385 return clock_gettime ();
9390 if ac_fn_c_try_link
"$LINENO"; then :
9391 ac_cv_lib_rt_clock_gettime
=yes
9393 ac_cv_lib_rt_clock_gettime
=no
9395 rm -f core conftest.err conftest.
$ac_objext \
9396 conftest
$ac_exeext conftest.
$ac_ext
9397 LIBS
=$ac_check_lib_save_LIBS
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9400 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9401 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
9408 if test x
$HAVE_REALTIME = xyes
; then
9410 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9415 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9419 ################################################################################
9420 for ac_header
in getopt.h
9422 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9423 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9424 cat >>confdefs.h
<<_ACEOF
9425 #define HAVE_GETOPT_H 1
9428 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9435 ################################################################################
9436 if test x
$READLINE != xno
; then
9437 lvm_saved_libs
=$LIBS
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9439 $as_echo_n "checking for library containing tgetent... " >&6; }
9440 if test "${ac_cv_search_tgetent+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9443 ac_func_search_save_LIBS
=$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. */
9462 for ac_lib
in '' tinfo ncurses curses termcap termlib
; do
9463 if test -z "$ac_lib"; then
9464 ac_res
="none required"
9467 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9469 if ac_fn_c_try_link
"$LINENO"; then :
9470 ac_cv_search_tgetent
=$ac_res
9472 rm -f core conftest.err conftest.
$ac_objext \
9474 if test "${ac_cv_search_tgetent+set}" = set; then :
9478 if test "${ac_cv_search_tgetent+set}" = set; then :
9481 ac_cv_search_tgetent
=no
9484 LIBS
=$ac_func_search_save_LIBS
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9487 $as_echo "$ac_cv_search_tgetent" >&6; }
9488 ac_res
=$ac_cv_search_tgetent
9489 if test "$ac_res" != no
; then :
9490 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9491 READLINE_LIBS
=$ac_cv_search_tgetent
9494 if test "$READLINE" = yes; then
9495 as_fn_error $?
"termcap could not be found which is required for the
9496 --enable-readline option (which is enabled by default). Either disable readline
9497 support with --disable-readline or download and install termcap from:
9498 ftp.gnu.org/gnu/termcap
9499 Note: if you are using precompiled packages you will also need the development
9500 package as well (which may be called termcap-devel or something similar).
9501 Note: (n)curses also seems to work as a substitute for termcap. This was
9502 not found either - but you could try installing that as well." "$LINENO" 5
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9507 $as_echo_n "checking for readline in -lreadline... " >&6; }
9508 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9511 ac_check_lib_save_LIBS
=$LIBS
9512 LIBS
="-lreadline $LIBS"
9513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9531 if ac_fn_c_try_link
"$LINENO"; then :
9532 ac_cv_lib_readline_readline
=yes
9534 ac_cv_lib_readline_readline
=no
9536 rm -f core conftest.err conftest.
$ac_objext \
9537 conftest
$ac_exeext conftest.
$ac_ext
9538 LIBS
=$ac_check_lib_save_LIBS
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9541 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9542 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
9545 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9547 LIBS
=$lvm_saved_libs
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9549 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9550 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9553 ac_check_lib_save_LIBS
=$LIBS
9554 LIBS
="-lreadline $LIBS"
9555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9564 char rl_line_buffer ();
9568 return rl_line_buffer ();
9573 if ac_fn_c_try_link
"$LINENO"; then :
9574 ac_cv_lib_readline_rl_line_buffer
=yes
9576 ac_cv_lib_readline_rl_line_buffer
=no
9578 rm -f core conftest.err conftest.
$ac_objext \
9579 conftest
$ac_exeext conftest.
$ac_ext
9580 LIBS
=$ac_check_lib_save_LIBS
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9583 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9584 if test "x$ac_cv_lib_readline_rl_line_buffer" = x
""yes; then :
9585 READLINE_LIBS
="-lreadline"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9589 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9590 READLINE_LIBS
="-lreadline $READLINE_LIBS"
9597 if test "$READLINE" = yes; then
9598 as_fn_error $?
"GNU Readline could not be found which is required for the
9599 --enable-readline option (which is enabled by default). Either disable readline
9600 support with --disable-readline or download and install readline from:
9601 ftp.gnu.org/gnu/readline
9602 Note: if you are using precompiled packages you will also need the development
9603 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9607 LIBS
="$READLINE_LIBS $lvm_saved_libs"
9608 for ac_func
in rl_completion_matches
9610 ac_fn_c_check_func
"$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9611 if test "x$ac_cv_func_rl_completion_matches" = x
""yes; then :
9612 cat >>confdefs.h
<<_ACEOF
9613 #define HAVE_RL_COMPLETION_MATCHES 1
9619 LIBS
=$lvm_saved_libs
9622 ################################################################################
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9624 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9625 # Check whether --enable-nls was given.
9626 if test "${enable_nls+set}" = set; then :
9627 enableval
=$enable_nls; INTL
=$enableval
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9633 $as_echo "$INTL" >&6; }
9635 if test x
$INTL = xyes
; then
9636 # FIXME - Move this - can be device-mapper too
9638 # Extract the first word of "msgfmt", so it can be a program name with args.
9639 set dummy msgfmt
; ac_word
=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9647 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
9650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9654 test -z "$as_dir" && as_dir
=.
9655 for ac_exec_ext
in '' $ac_executable_extensions; do
9656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 MSGFMT
=$ac_cv_path_MSGFMT
9669 if test -n "$MSGFMT"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9671 $as_echo "$MSGFMT" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9678 if [ "x$MSGFMT" == x
];
9679 then as_fn_error $?
"msgfmt not found in path $PATH
9684 # Check whether --with-localedir was given.
9685 if test "${with_localedir+set}" = set; then :
9686 withval
=$with_localedir; LOCALEDIR
=$withval
9688 LOCALEDIR
='${prefix}/share/locale'
9693 ################################################################################
9695 # Check whether --with-confdir was given.
9696 if test "${with_confdir+set}" = set; then :
9697 withval
=$with_confdir; CONFDIR
=$withval
9704 # Check whether --with-staticdir was given.
9705 if test "${with_staticdir+set}" = set; then :
9706 withval
=$with_staticdir; STATICDIR
=$withval
9708 STATICDIR
='${exec_prefix}/sbin'
9713 # Check whether --with-usrlibdir was given.
9714 if test "${with_usrlibdir+set}" = set; then :
9715 withval
=$with_usrlibdir; usrlibdir
=$withval
9717 usrlibdir
='${prefix}/lib'
9722 # Check whether --with-usrsbindir was given.
9723 if test "${with_usrsbindir+set}" = set; then :
9724 withval
=$with_usrsbindir; usrsbindir
=$withval
9726 usrsbindir
='${prefix}/sbin'
9730 ################################################################################
9732 # Check whether --with-udev_prefix was given.
9733 if test "${with_udev_prefix+set}" = set; then :
9734 withval
=$with_udev_prefix; udev_prefix
=$withval
9736 udev_prefix
='${exec_prefix}'
9741 # Check whether --with-udevdir was given.
9742 if test "${with_udevdir+set}" = set; then :
9743 withval
=$with_udevdir; udevdir
=$withval
9745 udevdir
='${udev_prefix}/lib/udev/rules.d'
9749 ################################################################################
9751 # Check whether --with-systemdsystemunitdir was given.
9752 if test "${with_systemdsystemunitdir+set}" = set; then :
9753 withval
=$with_systemdsystemunitdir; systemdsystemunitdir
=$withval
9755 pkg_systemdsystemunitdir
=$
($PKG_CONFIG --variable=systemdsystemunitdir systemd
)
9759 if test -n "$pkg_systemdsystemunitdir"; then
9760 systemdsystemunitdir
=$pkg_systemdsystemunitdir;
9763 if test -z "$systemdsystemunitdir"; then
9764 systemdsystemunitdir
='/lib/systemd/system';
9766 ################################################################################
9767 if test x
$READLINE = xyes
; then
9768 for ac_header
in readline
/readline.h readline
/history.h
9770 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9772 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9773 cat >>confdefs.h
<<_ACEOF
9774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9778 as_fn_error $?
"bailing out" "$LINENO" 5
9785 if test x
$CLVMD != xnone
; then
9786 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
9788 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9789 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9790 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9791 cat >>confdefs.h
<<_ACEOF
9792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796 as_fn_error $?
"bailing out" "$LINENO" 5
9801 for ac_func
in dup2 getmntent memmove
select socket
9803 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9804 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9805 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9806 cat >>confdefs.h
<<_ACEOF
9807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9811 as_fn_error $?
"bailing out" "$LINENO" 5
9815 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9816 # -lseq on Dynix/PTX, -lgen on Unixware.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9818 $as_echo_n "checking for library containing getmntent... " >&6; }
9819 if test "${ac_cv_search_getmntent+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9822 ac_func_search_save_LIBS
=$LIBS
9823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9836 return getmntent ();
9841 for ac_lib
in '' sun
seq gen
; do
9842 if test -z "$ac_lib"; then
9843 ac_res
="none required"
9846 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9848 if ac_fn_c_try_link
"$LINENO"; then :
9849 ac_cv_search_getmntent
=$ac_res
9851 rm -f core conftest.err conftest.
$ac_objext \
9853 if test "${ac_cv_search_getmntent+set}" = set; then :
9857 if test "${ac_cv_search_getmntent+set}" = set; then :
9860 ac_cv_search_getmntent
=no
9863 LIBS
=$ac_func_search_save_LIBS
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9866 $as_echo "$ac_cv_search_getmntent" >&6; }
9867 ac_res
=$ac_cv_search_getmntent
9868 if test "$ac_res" != no
; then :
9869 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9870 ac_cv_func_getmntent
=yes
9872 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9875 ac_cv_func_getmntent
=no
9879 for ac_header
in sys
/select.h sys
/socket.h
9881 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9882 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9883 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9884 cat >>confdefs.h
<<_ACEOF
9885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9893 $as_echo_n "checking types of arguments for select... " >&6; }
9894 if test "${ac_cv_func_select_args+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9897 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
9898 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9899 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
9900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 #ifdef HAVE_SYS_SELECT_H
9904 # include <sys/select.h>
9906 #ifdef HAVE_SYS_SOCKET_H
9907 # include <sys/socket.h>
9913 extern int select ($ac_arg1,
9914 $ac_arg234, $ac_arg234, $ac_arg234,
9920 if ac_fn_c_try_compile
"$LINENO"; then :
9921 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9927 # Provide a safe default value.
9928 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9932 $as_echo "$ac_cv_func_select_args" >&6; }
9933 ac_save_IFS
=$IFS; IFS
=','
9934 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9938 cat >>confdefs.h
<<_ACEOF
9939 #define SELECT_TYPE_ARG1 $1
9943 cat >>confdefs.h
<<_ACEOF
9944 #define SELECT_TYPE_ARG234 ($2)
9948 cat >>confdefs.h
<<_ACEOF
9949 #define SELECT_TYPE_ARG5 ($3)
9956 if test x
$CLUSTER != xnone
; then
9957 for ac_header
in sys
/socket.h sys
/un.h
9959 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9960 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9961 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9962 cat >>confdefs.h
<<_ACEOF
9963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967 as_fn_error $?
"bailing out" "$LINENO" 5
9972 for ac_func
in socket
9974 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
9975 if test "x$ac_cv_func_socket" = x
""yes; then :
9976 cat >>confdefs.h
<<_ACEOF
9977 #define HAVE_SOCKET 1
9981 as_fn_error $?
"bailing out" "$LINENO" 5
9987 if test x
$DMEVENTD = xyes
; then
9988 for ac_header
in arpa
/inet.h
9990 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9991 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
9992 cat >>confdefs.h
<<_ACEOF
9993 #define HAVE_ARPA_INET_H 1
9997 as_fn_error $?
"bailing out" "$LINENO" 5
10004 if test x
$HAVE_LIBDL = xyes
; then
10005 for ac_header
in dlfcn.h
10007 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10008 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
10009 cat >>confdefs.h
<<_ACEOF
10010 #define HAVE_DLFCN_H 1
10014 as_fn_error $?
"bailing out" "$LINENO" 5
10021 if test x
$INTL = xyes
; then
10022 for ac_header
in libintl.h
10024 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10025 if test "x$ac_cv_header_libintl_h" = x
""yes; then :
10026 cat >>confdefs.h
<<_ACEOF
10027 #define HAVE_LIBINTL_H 1
10031 as_fn_error $?
"bailing out" "$LINENO" 5
10038 if test x
$UDEV_SYNC = xyes
; then
10039 for ac_header
in sys
/ipc.h sys
/sem.h
10041 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10042 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10043 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10044 cat >>confdefs.h
<<_ACEOF
10045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 as_fn_error $?
"bailing out" "$LINENO" 5
10056 ################################################################################
10057 # Extract the first word of "modprobe", so it can be a program name with args.
10058 set dummy modprobe
; ac_word
=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10062 $as_echo_n "(cached) " >&6
10064 case $MODPROBE_CMD in
10066 ac_cv_path_MODPROBE_CMD
="$MODPROBE_CMD" # Let the user override the test with a path.
10069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10070 for as_dir
in $PATH
10073 test -z "$as_dir" && as_dir
=.
10074 for ac_exec_ext
in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_path_MODPROBE_CMD
="$as_dir/$ac_word$ac_exec_ext"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 MODPROBE_CMD
=$ac_cv_path_MODPROBE_CMD
10088 if test -n "$MODPROBE_CMD"; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10090 $as_echo "$MODPROBE_CMD" >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10098 if test x
$MODPROBE_CMD != x
; then
10100 cat >>confdefs.h
<<_ACEOF
10101 #define MODPROBE_CMD "$MODPROBE_CMD"
10107 lvm_exec_prefix
=$exec_prefix
10108 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$prefix
10109 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$ac_default_prefix
10110 LVM_PATH
="$lvm_exec_prefix/sbin/lvm"
10112 cat >>confdefs.h
<<_ACEOF
10113 #define LVM_PATH "$LVM_PATH"
10117 if test "$CLVMD" != none
; then
10118 clvmd_prefix
=$ac_default_prefix
10119 CLVMD_PATH
="$clvmd_prefix/sbin/clvmd"
10120 test "$prefix" != NONE
&& clvmd_prefix
=$prefix
10122 cat >>confdefs.h
<<_ACEOF
10123 #define CLVMD_PATH "$CLVMD_PATH"
10128 ################################################################################
10129 if test "$BUILD_DMEVENTD" = yes; then
10131 # Check whether --with-dmeventd-pidfile was given.
10132 if test "${with_dmeventd_pidfile+set}" = set; then :
10133 withval
=$with_dmeventd_pidfile; DMEVENTD_PIDFILE
=$withval
10135 DMEVENTD_PIDFILE
="/var/run/dmeventd.pid"
10139 cat >>confdefs.h
<<_ACEOF
10140 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10145 if test "$BUILD_DMEVENTD" = yes; then
10147 # Check whether --with-dmeventd-path was given.
10148 if test "${with_dmeventd_path+set}" = set; then :
10149 withval
=$with_dmeventd_path; DMEVENTD_PATH
=$withval
10151 DMEVENTD_PATH
="$lvm_exec_prefix/sbin/dmeventd"
10155 cat >>confdefs.h
<<_ACEOF
10156 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10163 # Check whether --with-default-run-dir was given.
10164 if test "${with_default_run_dir+set}" = set; then :
10165 withval
=$with_default_run_dir; DEFAULT_RUN_DIR
="$withval"
10167 DEFAULT_RUN_DIR
="/var/run/lvm"
10170 cat >>confdefs.h
<<_ACEOF
10171 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10175 ################################################################################
10177 # Check whether --with-default-system-dir was given.
10178 if test "${with_default_system_dir+set}" = set; then :
10179 withval
=$with_default_system_dir; DEFAULT_SYS_DIR
=$withval
10181 DEFAULT_SYS_DIR
="/etc/lvm"
10185 cat >>confdefs.h
<<_ACEOF
10186 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10191 # Check whether --with-default-archive-subdir was given.
10192 if test "${with_default_archive_subdir+set}" = set; then :
10193 withval
=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR
=$withval
10195 DEFAULT_ARCHIVE_SUBDIR
=archive
10199 cat >>confdefs.h
<<_ACEOF
10200 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10205 # Check whether --with-default-backup-subdir was given.
10206 if test "${with_default_backup_subdir+set}" = set; then :
10207 withval
=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR
=$withval
10209 DEFAULT_BACKUP_SUBDIR
=backup
10213 cat >>confdefs.h
<<_ACEOF
10214 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10219 # Check whether --with-default-cache-subdir was given.
10220 if test "${with_default_cache_subdir+set}" = set; then :
10221 withval
=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR
=$withval
10223 DEFAULT_CACHE_SUBDIR
=cache
10227 cat >>confdefs.h
<<_ACEOF
10228 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10233 # Check whether --with-default-locking-dir was given.
10234 if test "${with_default_locking_dir+set}" = set; then :
10235 withval
=$with_default_locking_dir; DEFAULT_LOCK_DIR
=$withval
10237 DEFAULT_LOCK_DIR
="/var/lock/lvm"
10241 cat >>confdefs.h
<<_ACEOF
10242 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10246 ################################################################################
10248 # Check whether --with-default-data-alignment was given.
10249 if test "${with_default_data_alignment+set}" = set; then :
10250 withval
=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT
=$withval
10252 DEFAULT_DATA_ALIGNMENT
=1
10256 cat >>confdefs.h
<<_ACEOF
10257 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10261 ################################################################################
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10263 $as_echo_n "checking for kernel interface choice... " >&6; }
10265 # Check whether --with-interface was given.
10266 if test "${with_interface+set}" = set; then :
10267 withval
=$with_interface; interface
=$withval
10272 if [ "x$interface" != xioctl
];
10274 as_fn_error $?
"--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10277 $as_echo "$interface" >&6; }
10279 ################################################################################
10280 DM_LIB_VERSION
="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10282 cat >>confdefs.h
<<_ACEOF
10283 #define DM_LIB_VERSION $DM_LIB_VERSION
10287 DM_LIB_PATCHLEVEL
=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10289 LVM_VERSION
="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10291 VER
=`cat "$srcdir"/VERSION`
10292 LVM_RELEASE_DATE
="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10293 VER
=`echo "$VER" | $AWK '{print $1}'`
10294 LVM_RELEASE
="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10295 VER
=`echo "$VER" | $AWK -F '-' '{print $1}'`
10296 LVM_MAJOR
=`echo "$VER" | $AWK -F '.' '{print $1}'`
10297 LVM_MINOR
=`echo "$VER" | $AWK -F '.' '{print $2}'`
10298 LVM_PATCHLEVEL
=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10299 LVM_LIBAPI
=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10301 ################################################################################
10413 ################################################################################
10414 ac_config_files
="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/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 libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service 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"
10416 cat >confcache
<<\_ACEOF
10417 # This file is a shell script that caches the results of configure
10418 # tests run on this system so they can be shared between configure
10419 # scripts and configure runs, see configure's option --config-cache.
10420 # It is not useful on other systems. If it contains results you don't
10421 # want to keep, you may remove or edit it.
10423 # config.status only pays attention to the cache file if you give it
10424 # the --recheck option to rerun configure.
10426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10428 # following values.
10432 # The following way of writing the cache mishandles newlines in values,
10433 # but we know of no workaround that is simple, portable, and efficient.
10434 # So, we kill variables containing newlines.
10435 # Ultrix sh set writes to stderr and can't be redirected directly,
10436 # and sets the high bit in the cache file unless we assign to the vars.
10438 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10439 eval ac_val
=\$
$ac_var
10443 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10444 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10447 _ | IFS | as_nl
) ;; #(
10448 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10449 *) { eval $ac_var=; unset $ac_var;} ;;
10455 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10456 *${as_nl}ac_space
=\
*)
10457 # `set' does not quote correctly, so add quotes: double-quote
10458 # substitution turns \\\\ into \\, and sed turns \\ into \.
10461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10464 # `set' quotes correctly as required by POSIX, so do not add quotes.
10465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10478 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10479 if test -w "$cache_file"; then
10480 test "x$cache_file" != "x/dev/null" &&
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10482 $as_echo "$as_me: updating cache $cache_file" >&6;}
10483 cat confcache
>$cache_file
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10486 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10491 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10492 # Let make expand exec_prefix.
10493 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10495 DEFS
=-DHAVE_CONFIG_H
10500 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10501 # 1. Remove the extension, and $U if already installed.
10502 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10503 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10505 # will be set to the directory where LIBOBJS objects are built.
10506 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10507 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10509 LIBOBJS
=$ac_libobjs
10511 LTLIBOBJS
=$ac_ltlibobjs
10515 : ${CONFIG_STATUS=./config.status}
10517 ac_clean_files_save
=$ac_clean_files
10518 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10524 # Generated by $as_me.
10525 # Run this file to recreate the current configuration.
10526 # Compiler output produced by configure, useful for debugging
10527 # configure, is in config.log if it exists.
10530 ac_cs_recheck=false
10533 SHELL=\${CONFIG_SHELL-$SHELL}
10536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10537 ## -------------------- ##
10538 ## M4sh Initialization. ##
10539 ## -------------------- ##
10541 # Be more Bourne compatible
10542 DUALCASE
=1; export DUALCASE
# for MKS sh
10543 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10547 # is contrary to our usage. Disable this feature.
10548 alias -g '${1+"$@"}'='"$@"'
10549 setopt NO_GLOB_SUBST
10551 case `(set -o) 2>/dev/null` in #(
10563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10564 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10567 # Prefer a ksh shell builtin over an external printf program on Solaris,
10568 # but without wasting forks for bash or zsh.
10569 if test -z "$BASH_VERSION$ZSH_VERSION" \
10570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10571 as_echo='print
-r --'
10572 as_echo_n='print
-rn --'
10573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10574 as_echo='printf %s
\n'
10575 as_echo_n='printf %s
'
10577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10578 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10579 as_echo_n='/usr
/ucb
/echo -n'
10581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10582 as_echo_n_body='eval
10586 expr "X$arg" : "X\\(.*\\)$as_nl";
10587 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10589 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10591 export as_echo_n_body
10592 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10594 export as_echo_body
10595 as_echo='sh
-c $as_echo_body as_echo
'
10598 # The user is always right.
10599 if test "${PATH_SEPARATOR+set}" != set; then
10601 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10602 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10609 # We need space, tab and new line, in precisely that order. Quoting is
10610 # there to prevent editors from complaining about space-tab.
10611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10612 # splitting by setting IFS to empty value.)
10615 # Find who we are. Look in the path if we contain no directory separator.
10617 *[\\/]* ) as_myself=$0 ;;
10618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10622 test -z "$as_dir" && as_dir=.
10623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10629 # We did not find ourselves, most probably we were run as `sh COMMAND'
10630 # in which case we are not to be found in the path.
10631 if test "x$as_myself" = x
; then
10634 if test ! -f "$as_myself"; then
10635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10639 # Unset variables that we do not need and which cause bugs (e.g. in
10640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10641 # suppresses any "Segmentation fault" message there. '((' could
10642 # trigger a bug in pdksh 5.2.14.
10643 for as_var
in BASH_ENV ENV MAIL MAILPATH
10644 do eval test x\
${$as_var+set} = xset \
10645 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10658 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10661 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10662 # ----------------------------------------
10663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10665 # script with STATUS, using 1 if that was 0.
10668 as_status
=$1; test $as_status -eq 0 && as_status
=1
10670 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10673 $as_echo "$as_me: error: $2" >&2
10674 as_fn_exit
$as_status
10678 # as_fn_set_status STATUS
10679 # -----------------------
10680 # Set $? to STATUS, without forking.
10681 as_fn_set_status
()
10684 } # as_fn_set_status
10686 # as_fn_exit STATUS
10687 # -----------------
10688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10692 as_fn_set_status
$1
10698 # Portably unset VAR.
10701 { eval $1=; unset $1;}
10703 as_unset
=as_fn_unset
10704 # as_fn_append VAR VALUE
10705 # ----------------------
10706 # Append the text in VALUE to the end of the definition contained in VAR. Take
10707 # advantage of any shell optimizations that allow amortized linear growth over
10708 # repeated appends, instead of the typical quadratic growth present in naive
10710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10711 eval 'as_fn_append ()
10722 # as_fn_arith ARG...
10723 # ------------------
10724 # Perform arithmetic evaluation on the ARGs, and store the result in the
10725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10726 # must be portable across $(()) and expr.
10727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10728 eval 'as_fn_arith ()
10735 as_val
=`expr "$@" || test $? -eq 1`
10740 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10741 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10747 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10748 as_basename
=basename
10753 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10759 as_me
=`$as_basename -- "$0" ||
10760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10761 X"$0" : 'X\(//\)$' \| \
10762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10764 sed '/^.*\/\([^/][^/]*\)\/*$/{
10778 # Avoid depending upon Character Ranges.
10779 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10780 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10781 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10782 as_cr_digits
='0123456789'
10783 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10785 ECHO_C
= ECHO_N
= ECHO_T
=
10786 case `echo -n x` in #(((((
10788 case `echo 'xy\c'` in
10789 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10791 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10798 rm -f conf$$ conf$$.exe conf$$.
file
10799 if test -d conf$$.dir
; then
10800 rm -f conf$$.dir
/conf$$.
file
10803 mkdir conf$$.dir
2>/dev
/null
10805 if (echo >conf$$.
file) 2>/dev
/null
; then
10806 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10808 # ... but there are two gotchas:
10809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10811 # In both cases, we have to default to `cp -p'.
10812 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10814 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10822 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10823 rmdir conf$$.dir
2>/dev
/null
10828 # Create "$as_dir" as a directory, including parents if necessary.
10833 -*) as_dir
=.
/$as_dir;;
10835 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10839 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10840 *) as_qdir
=$as_dir;;
10842 as_dirs
="'$as_qdir' $as_dirs"
10843 as_dir
=`$as_dirname -- "$as_dir" ||
10844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10845 X"$as_dir" : 'X\(//\)[^/]' \| \
10846 X"$as_dir" : 'X\(//\)$' \| \
10847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10848 $as_echo X"$as_dir" |
10849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10853 /^X\(\/\/\)[^/].*/{
10866 test -d "$as_dir" && break
10868 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10869 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10873 if mkdir
-p .
2>/dev
/null
; then
10874 as_mkdir_p
='mkdir -p "$as_dir"'
10876 test -d .
/-p && rmdir .
/-p
10880 if test -x / >/dev
/null
2>&1; then
10881 as_test_x
='test -x'
10883 if ls -dL / >/dev
/null
2>&1; then
10890 if test -d "$1"; then
10896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10897 ???[sx]*):;;*)false;;esac;fi
10901 as_executable_p
=$as_test_x
10903 # Sed expression to map a string onto a valid CPP name.
10904 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10906 # Sed expression to map a string onto a valid variable name.
10907 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10911 ## ----------------------------------- ##
10912 ## Main body of $CONFIG_STATUS script. ##
10913 ## ----------------------------------- ##
10915 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10918 # Save the log message, to keep $0 and so on meaningful, and to
10919 # report actual input values of CONFIG_FILES etc. instead of their
10920 # values after options handling.
10922 This file was extended by $as_me, which was
10923 generated by GNU Autoconf 2.66. Invocation command line was
10925 CONFIG_FILES = $CONFIG_FILES
10926 CONFIG_HEADERS = $CONFIG_HEADERS
10927 CONFIG_LINKS = $CONFIG_LINKS
10928 CONFIG_COMMANDS = $CONFIG_COMMANDS
10931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10936 case $ac_config_files in *"
10937 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10940 case $ac_config_headers in *"
10941 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10946 # Files that config.status was made for.
10947 config_files="$ac_config_files"
10948 config_headers="$ac_config_headers"
10952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10954 \`$as_me' instantiates files and other configuration actions
10955 from templates according to the current configuration. Unless the files
10956 and actions are specified as TAGs, all are instantiated by default.
10958 Usage: $0 [OPTION]... [TAG]...
10960 -h, --help print this help, then exit
10961 -V, --version print version number and configuration settings, then exit
10962 --config print configuration, then exit
10963 -q, --quiet, --silent
10964 do not print progress messages
10965 -d, --debug don't remove temporary files
10966 --recheck update $as_me by reconfiguring in the same conditions
10967 --file=FILE[:TEMPLATE]
10968 instantiate the configuration file FILE
10969 --header=FILE[:TEMPLATE]
10970 instantiate the configuration header FILE
10972 Configuration files:
10975 Configuration headers:
10978 Report bugs to the package provider."
10981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10985 configured by $0, generated by GNU Autoconf 2.66,
10986 with options \\"\$ac_cs_config\\"
10988 Copyright (C) 2010 Free Software Foundation, Inc.
10989 This config.status script is free software; the Free Software Foundation
10990 gives unlimited permission to copy, distribute and modify it."
10997 test -n "\$AWK" || AWK=awk
11000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11001 # The default lists apply if the user does not specify any file.
11007 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11008 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11019 # Handling of the options.
11020 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11022 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11023 $as_echo "$ac_cs_version"; exit ;;
11024 --config |
--confi |
--conf |
--con |
--co |
--c )
11025 $as_echo "$ac_cs_config"; exit ;;
11026 --debug |
--debu |
--deb |
--de |
--d |
-d )
11028 --file |
--fil |
--fi |
--f )
11031 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11033 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11034 ac_need_defaults
=false
;;
11035 --header |
--heade |
--head |
--hea )
11038 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11040 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11041 ac_need_defaults
=false
;;
11043 # Conflict between --help and --header
11044 as_fn_error $?
"ambiguous option: \`$1'
11045 Try \`$0 --help' for more information.";;
11046 --help |
--hel |
-h )
11047 $as_echo "$ac_cs_usage"; exit ;;
11048 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11049 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11052 # This is an error.
11053 -*) as_fn_error $?
"unrecognized option: \`$1'
11054 Try \`$0 --help' for more information." ;;
11056 *) as_fn_append ac_config_targets
" $1"
11057 ac_need_defaults
=false
;;
11063 ac_configure_extra_args
=
11065 if $ac_cs_silent; then
11067 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11072 if \$ac_cs_recheck; then
11073 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11075 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11076 CONFIG_SHELL='$SHELL'
11077 export CONFIG_SHELL
11082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11087 ## Running $as_me. ##
11093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11098 # Handling of arguments.
11099 for ac_config_target
in $ac_config_targets
11101 case $ac_config_target in
11102 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
11103 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11104 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
11105 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
11106 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11107 "daemons/cmirrord/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11108 "daemons/common/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/common/Makefile" ;;
11109 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11110 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11111 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11112 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11113 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
11114 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11115 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11116 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
11117 "daemons/lvmetad/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
11118 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
11119 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
11120 "include/.symlinks") CONFIG_FILES
="$CONFIG_FILES include/.symlinks" ;;
11121 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
11122 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
11123 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
11124 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
11125 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
11126 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
11127 "lib/replicator/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/replicator/Makefile" ;;
11128 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11129 "lib/raid/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/raid/Makefile" ;;
11130 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
11131 "lib/thin/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/thin/Makefile" ;;
11132 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
11133 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11134 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
11135 "liblvm/liblvm2app.pc") CONFIG_FILES
="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11136 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
11137 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
11138 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11139 "scripts/cmirrord_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11140 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11141 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11142 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11143 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
11144 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
11145 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
11146 "test/unit/Makefile") CONFIG_FILES
="$CONFIG_FILES test/unit/Makefile" ;;
11147 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
11148 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
11149 "unit-tests/datastruct/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11150 "unit-tests/regex/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11151 "unit-tests/mm/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11153 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11158 # If the user did not use the arguments to specify the items to instantiate,
11159 # then the envvar interface is used. Set only those that are not.
11160 # We use the long form for the default assignment because of an extremely
11161 # bizarre bug on SunOS 4.1.3.
11162 if $ac_need_defaults; then
11163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11167 # Have a temporary directory for convenience. Make it in the build tree
11168 # simply because there is no reason against having it here, and in addition,
11169 # creating and moving files from /tmp can sometimes cause problems.
11170 # Hook for its removal unless debugging.
11171 # Note that there is a small window in which the directory will not be cleaned:
11172 # after its creation but before its name has been assigned to `$tmp'.
11176 trap 'exit_status=$?
11177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11179 trap 'as_fn_exit 1' 1 2 13 15
11181 # Create a (secure) tmp directory for tmp files.
11184 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11185 test -n "$tmp" && test -d "$tmp"
11188 tmp
=.
/conf$$
-$RANDOM
11189 (umask 077 && mkdir
"$tmp")
11190 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11192 # Set up the scripts for CONFIG_FILES section.
11193 # No need to generate them if there are no CONFIG_FILES.
11194 # This happens for instance with `./config.status config.h'.
11195 if test -n "$CONFIG_FILES"; then
11198 ac_cr
=`echo X | tr X '\015'`
11199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11200 # But we know of no other shell where ac_cr would be empty at this
11201 # point, so we can use a bashism as a fallback.
11202 if test "x$ac_cr" = x
; then
11203 eval ac_cr
=\$
\'\\r
\'
11205 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11209 ac_cs_awk_cr
=$ac_cr
11212 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11217 echo "cat >conf$$subs.awk <<_ACEOF" &&
11218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11220 } >conf$$subs.sh ||
11221 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11224 for ac_last_try in false false false false false :; do
11225 . ./conf$$subs.sh ||
11226 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11228 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11229 if test $ac_delim_n = $ac_delim_num; then
11231 elif $ac_last_try; then
11232 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11234 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11237 rm -f conf$$subs.sh
11239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11240 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
11244 s/^/S["/; s
/!.
*/"]=/
11254 s/\(.\{148\}\)..*/\1/
11256 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11261 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11268 s/\(.\{148\}\)..*/\1/
11270 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11274 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11279 ' <conf$$subs.awk | sed '
11284 ' >>$CONFIG_STATUS || ac_write_fail=1
11285 rm -f conf$$subs.awk
11286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11288 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
11289 for (key in S) S_is_set[key] = 1
11295 nfields = split(line, field, "@
")
11297 len = length(field[1])
11298 for (i = 2; i < nfields; i++) {
11300 keylen = length(key)
11301 if (S_is_set[key]) {
11303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11304 len += length(value) + length(field[++i])
11315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11316 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11317 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11320 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
11321 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11326 # trailing colons and then remove the whole line if VPATH becomes empty
11327 # (actually we leave an empty line to preserve line numbers).
11328 if test "x
$srcdir" = x.; then
11329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11348 fi # test -n "$CONFIG_FILES"
11350 # Set up the scripts for CONFIG_HEADERS section.
11351 # No need to generate them if there are no CONFIG_HEADERS.
11352 # This happens for instance with `./config.status Makefile'.
11353 if test -n "$CONFIG_HEADERS"; then
11354 cat >"$tmp/defines.
awk" <<\_ACAWK ||
11358 # Transform confdefs.h into an awk script `defines.awk', embedded as
11359 # here-document in config.status, that substitutes the proper values into
11360 # config.h.in to produce config.h.
11362 # Create a delimiter string that does not exist in confdefs.h, to ease
11363 # handling of long lines.
11365 for ac_last_try in false false :; do
11366 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
11367 if test -z "$ac_t"; then
11369 elif $ac_last_try; then
11370 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11372 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11376 # For the awk script, D is an array of macro values keyed by name,
11377 # likewise P contains macro parameters if any. Preserve backslash
11378 # newline sequences.
11380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11382 s/.\{148\}/&'"$ac_delim"'/g
11385 s/^[ ]*#[ ]*define[ ][ ]*/ /
11392 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11394 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11399 D["\
1"]=" \
3\\\\\\n
"\\/p
11401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11406 s/.\{148\}/&'"$ac_delim"'/g
11411 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11414 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11416 ' <confdefs.h | sed '
11417 s/'"$ac_delim"'/"\\\
11418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11421 for (key in D) D_is_set[key] = 1
11424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11426 split(line, arg, " ")
11427 if (arg[1] == "#") {
11431 defundef
= substr
(arg
[1], 2)
11434 split(mac1
, mac2
, "(") #)
11436 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11437 if (D_is_set
[macro
]) {
11438 # Preserve the white space surrounding the "#".
11439 print prefix
"define", macro P
[macro
] D
[macro
]
11442 # Replace #undef with comments. This is necessary, for example,
11443 # in the case of _POSIX_SOURCE, which is predefined and required
11444 # on some systems where configure will not decide to define it.
11445 if (defundef
== "undef") {
11446 print
"/*", prefix defundef
, macro
, "*/"
11454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11455 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11456 fi # test -n "$CONFIG_HEADERS"
11459 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11464 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11466 case $ac_mode$ac_tag in
11468 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11469 :[FH
]-) ac_tag
=-:-;;
11470 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11487 -) ac_f
="$tmp/stdin";;
11488 *) # Look for the file first in the build tree, then in the source tree
11489 # (if the path is not absolute). The absolute path cannot be DOS-style,
11490 # because $ac_f cannot contain `:'.
11494 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11496 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11498 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11499 as_fn_append ac_file_inputs
" '$ac_f'"
11502 # Let's still pretend it is `configure' which instantiates (i.e., don't
11503 # use $as_me), people would be surprised to read:
11504 # /* config.h. Generated by config.status. */
11505 configure_input
='Generated from '`
11506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11508 if test x
"$ac_file" != x-
; then
11509 configure_input
="$ac_file. $configure_input"
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11511 $as_echo "$as_me: creating $ac_file" >&6;}
11513 # Neutralize special characters interpreted by sed in replacement strings.
11514 case $configure_input in #(
11515 *\
&* |
*\|
* |
*\\* )
11516 ac_sed_conf_input
=`$as_echo "$configure_input" |
11517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11518 *) ac_sed_conf_input
=$configure_input;;
11522 *:-:* |
*:-) cat >"$tmp/stdin" \
11523 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11528 ac_dir
=`$as_dirname -- "$ac_file" ||
11529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11530 X"$ac_file" : 'X\(//\)[^/]' \| \
11531 X"$ac_file" : 'X\(//\)$' \| \
11532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11533 $as_echo X"$ac_file" |
11534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11538 /^X\(\/\/\)[^/].*/{
11551 as_dir
="$ac_dir"; as_fn_mkdir_p
11555 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11557 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11558 # A ".." for each directory in $ac_dir_suffix.
11559 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11560 case $ac_top_builddir_sub in
11561 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11562 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11565 ac_abs_top_builddir
=$ac_pwd
11566 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11567 # for backward compatibility:
11568 ac_top_builddir
=$ac_top_build_prefix
11571 .
) # We are building in place.
11573 ac_top_srcdir
=$ac_top_builddir_sub
11574 ac_abs_top_srcdir
=$ac_pwd ;;
11575 [\\/]* | ?
:[\\/]* ) # Absolute name.
11576 ac_srcdir
=$srcdir$ac_dir_suffix;
11577 ac_top_srcdir
=$srcdir
11578 ac_abs_top_srcdir
=$srcdir ;;
11579 *) # Relative name.
11580 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11581 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11582 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11584 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11594 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11595 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11597 ac_MKDIR_P
=$MKDIR_P
11599 [\\/$
]* | ?
:[\\/]* ) ;;
11600 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11605 # If the template does not know about datarootdir, expand it.
11606 # FIXME: This hack should be removed a few years after 2.60.
11607 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11619 *datarootdir
*) ac_datarootdir_seen
=yes;;
11620 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11625 ac_datarootdir_hack='
11626 s&@datadir@&$datadir&g
11627 s&@docdir@&$docdir&g
11628 s&@infodir@&$infodir&g
11629 s&@localedir@&$localedir&g
11630 s&@mandir@&$mandir&g
11631 s&\\\${datarootdir}&$datarootdir&g' ;;
11635 # Neutralize VPATH when `$srcdir' = `.'.
11636 # Shell code in configure.ac might set extrasub.
11637 # FIXME: do we really want to maintain this feature?
11638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11639 ac_sed_extra="$ac_vpsub
11642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11644 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11645 s|@configure_input@|
$ac_sed_conf_input|
;t t
11646 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11647 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11648 s
&@srcdir@
&$ac_srcdir&;t t
11649 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11650 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11651 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11652 s
&@builddir@
&$ac_builddir&;t t
11653 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11654 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11655 s
&@INSTALL@
&$ac_INSTALL&;t t
11656 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11657 $ac_datarootdir_hack
11659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
11660 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11666 which seems to be undefined. Please make sure it is defined" >&5
11667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11668 which seems to be undefined. Please make sure it is defined" >&2;}
11672 -) cat "$tmp/out" && rm -f "$tmp/out";;
11673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11681 if test x"$ac_file" != x-; then
11683 $as_echo "/* $configure_input */" \
11684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11685 } >"$tmp/config.h" \
11686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11687 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11692 mv "$tmp/config.h" "$ac_file" \
11693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11696 $as_echo "/* $configure_input */" \
11697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11698 || as_fn_error $? "could not create -" "$LINENO" 5
11710 ac_clean_files=$ac_clean_files_save
11712 test $ac_write_fail = 0 ||
11713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11716 # configure is writing to config.log, and then calls config.status.
11717 # config.status does its own redirection, appending to config.log.
11718 # Unfortunately, on DOS this fails, as config.log is still kept open
11719 # by configure, so config.status won't be able to
write to it
; its
11720 # output is simply discarded. So we exec the FD to /dev/null,
11721 # effectively closing config.log, so it can be properly (re)opened and
11722 # appended to by config.status. When coming back to configure, we
11723 # need to make the FD available again.
11724 if test "$no_create" != yes; then
11726 ac_config_status_args
=
11727 test "$silent" = yes &&
11728 ac_config_status_args
="$ac_config_status_args --quiet"
11730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11733 # would make configure fail if this is the last instruction.
11734 $ac_cs_success || as_fn_exit
1
11736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11742 if test x
$ODIRECT != xyes
; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11744 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}