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
657 DEFAULT_DATA_ALIGNMENT
659 DEFAULT_BACKUP_SUBDIR
660 DEFAULT_ARCHIVE_SUBDIR
774 program_transform_name
787 enable_option_checking
810 with_cmirrord_pidfile
838 with_dmeventd_pidfile
841 with_default_system_dir
842 with_default_archive_subdir
843 with_default_backup_subdir
844 with_default_cache_subdir
845 with_default_locking_dir
846 with_default_data_alignment
849 ac_precious_vars
='build_alias
887 # Initialize some variables set by options.
889 ac_init_version
=false
890 ac_unrecognized_opts
=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name
=s
,x
,x
,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir
='${exec_prefix}/bin'
916 sbindir
='${exec_prefix}/sbin'
917 libexecdir
='${exec_prefix}/libexec'
918 datarootdir
='${prefix}/share'
919 datadir
='${datarootdir}'
920 sysconfdir
='${prefix}/etc'
921 sharedstatedir
='${prefix}/com'
922 localstatedir
='${prefix}/var'
923 includedir
='${prefix}/include'
924 oldincludedir
='/usr/include'
925 docdir
='${datarootdir}/doc/${PACKAGE}'
926 infodir
='${datarootdir}/info'
931 libdir
='${exec_prefix}/lib'
932 localedir
='${datarootdir}/locale'
933 mandir
='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\
$ac_option
947 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 # Accept the important Cygnus configure options, so we can diagnose typos.
953 case $ac_dashdash$ac_option in
957 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
959 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
962 -build |
--build |
--buil |
--bui |
--bu)
963 ac_prev
=build_alias
;;
964 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
965 build_alias
=$ac_optarg ;;
967 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
968 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
969 ac_prev
=cache_file
;;
970 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
971 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
972 cache_file
=$ac_optarg ;;
975 cache_file
=config.cache
;;
977 -datadir |
--datadir |
--datadi |
--datad)
979 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
980 datadir
=$ac_optarg ;;
982 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
983 |
--dataroo |
--dataro |
--datar)
984 ac_prev
=datarootdir
;;
985 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
986 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
987 datarootdir
=$ac_optarg ;;
989 -disable-* |
--disable-*)
990 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
993 as_fn_error $?
"invalid feature name: $ac_useropt"
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval enable_
$ac_useropt=no
;;
1005 -docdir |
--docdir |
--docdi |
--doc |
--do)
1007 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1008 docdir
=$ac_optarg ;;
1010 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1012 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1013 dvidir
=$ac_optarg ;;
1015 -enable-* |
--enable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 as_fn_error $?
"invalid feature name: $ac_useropt"
1020 ac_useropt_orig
=$ac_useropt
1021 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_
$ac_useropt"
1026 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep
=', ';;
1029 eval enable_
$ac_useropt=\
$ac_optarg ;;
1031 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1032 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1033 |
--exec |
--exe |
--ex)
1034 ac_prev
=exec_prefix
;;
1035 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1036 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1037 |
--exec=* |
--exe=* |
--ex=*)
1038 exec_prefix
=$ac_optarg ;;
1040 -gas |
--gas |
--ga |
--g)
1041 # Obsolete; use --with-gas.
1044 -help |
--help |
--hel |
--he |
-h)
1045 ac_init_help
=long
;;
1046 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1047 ac_init_help
=recursive
;;
1048 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1049 ac_init_help
=short
;;
1051 -host |
--host |
--hos |
--ho)
1052 ac_prev
=host_alias
;;
1053 -host=* |
--host=* |
--hos=* |
--ho=*)
1054 host_alias
=$ac_optarg ;;
1056 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1058 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1060 htmldir
=$ac_optarg ;;
1062 -includedir |
--includedir |
--includedi |
--included |
--include \
1063 |
--includ |
--inclu |
--incl |
--inc)
1064 ac_prev
=includedir
;;
1065 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1066 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1067 includedir
=$ac_optarg ;;
1069 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1071 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1072 infodir
=$ac_optarg ;;
1074 -libdir |
--libdir |
--libdi |
--libd)
1076 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1077 libdir
=$ac_optarg ;;
1079 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1080 |
--libexe |
--libex |
--libe)
1081 ac_prev
=libexecdir
;;
1082 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1083 |
--libexe=* |
--libex=* |
--libe=*)
1084 libexecdir
=$ac_optarg ;;
1086 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1087 ac_prev
=localedir
;;
1088 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1089 localedir
=$ac_optarg ;;
1091 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1092 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1093 ac_prev
=localstatedir
;;
1094 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1095 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1096 localstatedir
=$ac_optarg ;;
1098 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1100 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1101 mandir
=$ac_optarg ;;
1103 -nfp |
--nfp |
--nf)
1104 # Obsolete; use --without-fp.
1107 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1108 |
--no-cr |
--no-c |
-n)
1111 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1112 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1115 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1116 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1117 |
--oldin |
--oldi |
--old |
--ol |
--o)
1118 ac_prev
=oldincludedir
;;
1119 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1120 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1121 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1122 oldincludedir
=$ac_optarg ;;
1124 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1126 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1127 prefix
=$ac_optarg ;;
1129 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1130 |
--program-pre |
--program-pr |
--program-p)
1131 ac_prev
=program_prefix
;;
1132 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1133 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1134 program_prefix
=$ac_optarg ;;
1136 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1137 |
--program-suf |
--program-su |
--program-s)
1138 ac_prev
=program_suffix
;;
1139 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1140 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1141 program_suffix
=$ac_optarg ;;
1143 -program-transform-name |
--program-transform-name \
1144 |
--program-transform-nam |
--program-transform-na \
1145 |
--program-transform-n |
--program-transform- \
1146 |
--program-transform |
--program-transfor \
1147 |
--program-transfo |
--program-transf \
1148 |
--program-trans |
--program-tran \
1149 |
--progr-tra |
--program-tr |
--program-t)
1150 ac_prev
=program_transform_name
;;
1151 -program-transform-name=* |
--program-transform-name=* \
1152 |
--program-transform-nam=* |
--program-transform-na=* \
1153 |
--program-transform-n=* |
--program-transform-=* \
1154 |
--program-transform=* |
--program-transfor=* \
1155 |
--program-transfo=* |
--program-transf=* \
1156 |
--program-trans=* |
--program-tran=* \
1157 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1158 program_transform_name
=$ac_optarg ;;
1160 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1162 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1163 pdfdir
=$ac_optarg ;;
1165 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1167 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1170 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1171 |
-silent |
--silent |
--silen |
--sile |
--sil)
1174 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1176 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1178 sbindir
=$ac_optarg ;;
1180 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1181 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1182 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1184 ac_prev
=sharedstatedir
;;
1185 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1186 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1187 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1189 sharedstatedir
=$ac_optarg ;;
1191 -site |
--site |
--sit)
1193 -site=* |
--site=* |
--sit=*)
1196 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1198 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1199 srcdir
=$ac_optarg ;;
1201 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1202 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1203 ac_prev
=sysconfdir
;;
1204 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1205 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1206 sysconfdir
=$ac_optarg ;;
1208 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1209 ac_prev
=target_alias
;;
1210 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1211 target_alias
=$ac_optarg ;;
1213 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1216 -version |
--version |
--versio |
--versi |
--vers |
-V)
1217 ac_init_version
=: ;;
1220 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1223 as_fn_error $?
"invalid package name: $ac_useropt"
1224 ac_useropt_orig
=$ac_useropt
1225 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep
=', ';;
1233 eval with_
$ac_useropt=\
$ac_optarg ;;
1235 -without-* |
--without-*)
1236 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1239 as_fn_error $?
"invalid package name: $ac_useropt"
1240 ac_useropt_orig
=$ac_useropt
1241 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep
=', ';;
1249 eval with_
$ac_useropt=no
;;
1252 # Obsolete; use --with-x.
1255 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1256 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1257 ac_prev
=x_includes
;;
1258 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1259 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1260 x_includes
=$ac_optarg ;;
1262 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1263 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1264 ac_prev
=x_libraries
;;
1265 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1266 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1267 x_libraries
=$ac_optarg ;;
1269 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1274 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1278 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1280 eval $ac_envvar=\
$ac_optarg
1281 export $ac_envvar ;;
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 if test -n "$ac_prev"; then
1295 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $?
"missing argument to $ac_option"
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1302 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 # Check all directory arguments for consistency.
1308 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1313 eval ac_val
=\$
$ac_var
1314 # Remove trailing slashes.
1317 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\
$ac_val;;
1320 # Be sure to have absolute directory names.
1322 [\\/$
]* | ?
:[\\/]* ) continue;;
1323 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1325 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target
=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x
; then
1337 if test "x$build_alias" = x
; then
1338 cross_compiling
=maybe
1339 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used" >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1349 test "$silent" = yes && exec 6>/dev
/null
1352 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di
=`ls -di .` &&
1354 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $?
"working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $?
"pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted
=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir
=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1392 ac_srcdir_defaulted
=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1396 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1410 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 for ac_var
in $ac_precious_vars; do
1413 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1415 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1426 \`configure' configures this package to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking ...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1484 --build=BUILD configure
for building on BUILD
[guessed
]
1485 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1486 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1490 if test -n "$ac_init_help"; then
1495 --disable-option-checking ignore unrecognized
--enable/--with options
1496 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1497 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1498 --enable-static_link use this to link the tools to their libraries
1499 statically
(default is dynamic linking
1500 --enable-lvm1_fallback use this to fall back and use LVM1 binaries
if
1501 device-mapper is missing from the kernel
1502 --disable-readline disable readline support
1503 --enable-realtime enable realtime
clock support
1504 --enable-ocf enable Open Cluster Framework
(OCF
) compliant
1506 --enable-cmirrord enable the cluster mirror log daemon
1507 --enable-debug enable debugging
1508 --enable-profiling gather gcov profiling data
1509 --enable-testing enable testing targets
in the makefile
1510 --enable-valgrind-pool enable valgrind awareness of pools
1511 --disable-devmapper disable LVM2 device-mapper interaction
1512 --enable-udev_sync enable synchronisation with udev processing
1513 --enable-udev_rules install rule files needed
for udev synchronisation
1514 --enable-compat enable support
for old device-mapper versions
1515 --enable-units-compat enable output compatibility with old versions that
1516 that
do not use KiB-style unit suffixes
1517 --disable-driver disable calls to device-mapper
in the kernel
1518 --disable-o_direct disable O_DIRECT
1519 --enable-applib build application library
1520 --enable-cmdlib build shared
command library
1521 --enable-pkgconfig install pkgconfig support
1522 --enable-write_install install user writable files
1523 --disable-fsadm disable fsadm
1524 --enable-dmeventd enable the device-mapper event daemon
1525 --disable-selinux disable selinux support
1526 --enable-nls enable Native Language Support
1529 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1530 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1531 --with-user=USER
set the owner of installed files
[[USER
=]]
1532 --with-group=GROUP
set the group owner of installed files
[[GROUP
=]]
1533 --with-device-uid=UID
set the owner used
for new device nodes
[[UID
=0]]
1534 --with-device-gid=GID
set the group used
for new device nodes
[[GID
=0]]
1535 --with-device-mode=MODE
set the mode used
for new device nodes
[[MODE
=0600]]
1536 --with-device-nodes-on=ON
1537 create nodes on resume or create
[[ON
=resume
]]
1538 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1540 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1542 --with-cluster=TYPE cluster LVM locking support
: internal
/shared
/none
1544 --with-snapshots=TYPE snapshot support
: internal
/shared
/none
1546 --with-mirrors=TYPE mirror support
: internal
/shared
/none
1548 --with-raid=TYPE mirror support
: internal
/shared
/none
1550 --with-replicators=TYPE replicator support
: internal
/shared
/none
1552 --with-ocfdir=DIR
install OCF files
in DIR
1553 [[PREFIX
/lib
/ocf
/resource.d
/lvm2
]]
1554 --with-clvmd=TYPE build cluster LVM Daemon
1555 The following cluster manager combinations are valid
:
1556 * cman
,gulm
(RHEL4 or equivalent
)
1557 * cman
(RHEL5 or equivalent
)
1558 * cman
,corosync
,openais
(or selection of them
)
1559 * singlenode
(localhost only
)
1561 * none
(disable build
)
1563 --with-clvmd-pidfile=PATH
1564 clvmd pidfile
[[/var
/run
/clvmd.pid
]]
1565 --with-cmirrord-pidfile=PATH
1566 cmirrord pidfile
[[/var
/run
/cmirrord.pid
]]
1567 --with-optimisation=OPT C optimisation flag
[[OPT
=-O2]]
1568 --with-localedir=DIR translation files
in DIR
[[PREFIX
/share
/locale
]]
1569 --with-confdir=DIR configuration files
in DIR
[[/etc
]]
1570 --with-staticdir=DIR static binaries
in DIR
[[EPREFIX
/sbin
]]
1571 --with-usrlibdir=DIR usrlib
in DIR
[[PREFIX
/lib
]]
1572 --with-usrsbindir=DIR usrsbin executables
in DIR
[[PREFIX
/sbin
]]
1573 --with-udev-prefix=UPREFIX
1574 install udev rule files
in UPREFIX
[[EPREFIX
]]
1575 --with-udevdir=DIR udev rules
in DIR
[[UPREFIX
/lib
/udev
/rules.d
]]
1576 --with-dmeventd-pidfile=PATH
1577 dmeventd pidfile
[[/var
/run
/dmeventd.pid
]]
1578 --with-dmeventd-path=PATH
1579 dmeventd path
[[EPREFIX
/sbin
/dmeventd
]]
1580 --with-default-run-dir=DIR Default run directory
[/var
/run
/lvm
]
1581 --with-default-system-dir=DIR
1582 default LVM system directory
[[/etc
/lvm
]]
1583 --with-default-archive-subdir=SUBDIR
1584 default metadata archive subdir
[[archive
]]
1585 --with-default-backup-subdir=SUBDIR
1586 default metadata backup subdir
[[backup
]]
1587 --with-default-cache-subdir=SUBDIR
1588 default metadata cache subdir
[[cache
]]
1589 --with-default-locking-dir=DIR
1590 default locking directory
[[/var
/lock
/lvm
]]
1591 --with-default-data-alignment=NUM
1592 set the default data alignment
in MiB
[[1]]
1593 --with-interface=IFACE choose kernel interface
(ioctl
) [[ioctl
]]
1595 Some influential environment variables
:
1596 CC C compiler
command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1599 nonstandard directory
<lib dir
>
1600 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1601 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1602 you have headers
in a nonstandard directory
<include dir
>
1604 PKG_CONFIG path to pkg-config utility
1606 directories to add to pkg-config
's search path
1608 path overriding pkg-config's built-in search path
1609 PKGCONFIGINIT_CFLAGS
1610 C compiler flags
for PKGCONFIGINIT
, overriding pkg-config
1612 linker flags
for PKGCONFIGINIT
, overriding pkg-config
1613 CCS_CFLAGS C compiler flags
for CCS
, overriding pkg-config
1614 CCS_LIBS linker flags
for CCS
, overriding pkg-config
1615 GULM_CFLAGS C compiler flags
for GULM
, overriding pkg-config
1616 GULM_LIBS linker flags
for GULM
, overriding pkg-config
1617 CMAN_CFLAGS C compiler flags
for CMAN
, overriding pkg-config
1618 CMAN_LIBS linker flags
for CMAN
, overriding pkg-config
1620 C compiler flags
for COROSYNC
, overriding pkg-config
1622 linker flags
for COROSYNC
, overriding pkg-config
1624 C compiler flags
for QUORUM
, overriding pkg-config
1625 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1627 C compiler flags
for SALCK
, overriding pkg-config
1628 SALCK_LIBS linker flags
for SALCK
, overriding pkg-config
1630 C compiler flags
for CONFDB
, overriding pkg-config
1631 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1632 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1633 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1634 DLM_CFLAGS C compiler flags
for DLM
, overriding pkg-config
1635 DLM_LIBS linker flags
for DLM
, overriding pkg-config
1637 C compiler flags
for SACKPT
, overriding pkg-config
1638 SACKPT_LIBS linker flags
for SACKPT
, overriding pkg-config
1639 UDEV_CFLAGS C compiler flags
for UDEV
, overriding pkg-config
1640 UDEV_LIBS linker flags
for UDEV
, overriding pkg-config
1642 Use these variables to override the choices made by
`configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1645 Report bugs to the package provider.
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1675 .) # We are building in place.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1709 generated by GNU Autoconf 2.66
1711 Copyright (C) 2010 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1732 *) ac_try_echo
=$ac_try;;
1734 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1738 if test -s conftest.err
; then
1739 grep -v '^ *+' conftest.err
>conftest.er1
1740 cat conftest.er1
>&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.
$ac_objext; then :
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.
$ac_ext >&5
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1756 as_fn_set_status
$ac_retval
1758 } # ac_fn_c_try_compile
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1766 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } >/dev/null && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 as_fn_set_status $ac_retval
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1807 *) ac_try_echo
=$ac_try;;
1809 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1813 if test -s conftest.err
; then
1814 grep -v '^ *+' conftest.err
>conftest.er1
1815 cat conftest.er1
>&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest
$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 $as_test_x conftest
$ac_exeext
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.
$ac_ext >&5
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1839 as_fn_set_status
$ac_retval
1841 } # ac_fn_c_try_link
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1848 ac_fn_c_check_header_mongrel
()
1850 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1851 if eval "test \"\${$3+set}\"" = set; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval "test \"\${$3+set}\"" = set; then :
1855 $as_echo_n "(cached) " >&6
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1869 if ac_fn_c_try_compile
"$LINENO"; then :
1870 ac_header_compiler
=yes
1872 ac_header_compiler
=no
1874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1885 if ac_fn_c_try_cpp
"$LINENO"; then :
1886 ac_header_preproc
=yes
1888 ac_header_preproc
=no
1890 rm -f conftest.err conftest.
$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval "test \"\${$3+set}\"" = set; then :
1918 $as_echo_n "(cached) " >&6
1920 eval "$3=\$ac_header_compiler"
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1928 } # ac_fn_c_check_header_mongrel
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1936 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1937 if { { ac_try
="$ac_link"
1939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1950 *) ac_try_echo
=$ac_try;;
1952 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1960 $as_echo "$as_me: program exited with status $ac_status" >&5
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.
$ac_ext >&5
1964 ac_retval
=$ac_status
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1968 as_fn_set_status
$ac_retval
1972 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists and can be compiled using the include files in
1975 # INCLUDES, setting the cache variable VAR accordingly.
1976 ac_fn_c_check_header_compile
()
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval "test \"\${$3+set}\"" = set; then :
1982 $as_echo_n "(cached) " >&6
1984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1989 if ac_fn_c_try_compile
"$LINENO"; then :
1994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2001 } # ac_fn_c_check_header_compile
2003 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2004 # ----------------------------------------------------
2005 # Tries to find if the field MEMBER exists in type AGGR, after including
2006 # INCLUDES, setting cache variable VAR accordingly.
2007 ac_fn_c_check_member
()
2009 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2011 $as_echo_n "checking for $2.$3... " >&6; }
2012 if eval "test \"\${$4+set}\"" = set; then :
2013 $as_echo_n "(cached) " >&6
2015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2028 if ac_fn_c_try_compile
"$LINENO"; then :
2031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2038 if (sizeof ac_aggr.$3)
2044 if ac_fn_c_try_compile
"$LINENO"; then :
2049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2058 } # ac_fn_c_check_member
2060 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2061 # -------------------------------------------
2062 # Tests whether TYPE exists after having included INCLUDES, setting cache
2063 # variable VAR accordingly.
2064 ac_fn_c_check_type
()
2066 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval "test \"\${$3+set}\"" = set; then :
2070 $as_echo_n "(cached) " >&6
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2098 if ac_fn_c_try_compile
"$LINENO"; then :
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2112 } # ac_fn_c_check_type
2114 # ac_fn_c_find_intX_t LINENO BITS VAR
2115 # -----------------------------------
2116 # Finds a signed integer type with width BITS, setting cache variable VAR
2118 ac_fn_c_find_intX_t
()
2120 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2122 $as_echo_n "checking for int$2_t... " >&6; }
2123 if eval "test \"\${$3+set}\"" = set; then :
2124 $as_echo_n "(cached) " >&6
2127 # Order is important - never check a type that is potentially smaller
2128 # than half of the expected target width.
2129 for ac_type
in int
$2_t 'int' 'long int' \
2130 'long long int' 'short int' 'signed char'; do
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $ac_includes_default
2134 enum { N = $2 / 2 - 1 };
2138 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2145 if ac_fn_c_try_compile
"$LINENO"; then :
2146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 $ac_includes_default
2149 enum { N = $2 / 2 - 1 };
2153 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2154 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2168 eval "$3=\$ac_type" ;;
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 if eval test \"x\$
"$3"\" = x
"no"; then :
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2186 } # ac_fn_c_find_intX_t
2188 # ac_fn_c_find_uintX_t LINENO BITS VAR
2189 # ------------------------------------
2190 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2192 ac_fn_c_find_uintX_t
()
2194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2196 $as_echo_n "checking for uint$2_t... " >&6; }
2197 if eval "test \"\${$3+set}\"" = set; then :
2198 $as_echo_n "(cached) " >&6
2201 # Order is important - never check a type that is potentially smaller
2202 # than half of the expected target width.
2203 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2204 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 $ac_includes_default
2211 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2218 if ac_fn_c_try_compile
"$LINENO"; then :
2223 eval "$3=\$ac_type" ;;
2226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2227 if eval test \"x\$
"$3"\" = x
"no"; then :
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2239 } # ac_fn_c_find_uintX_t
2241 # ac_fn_c_check_func LINENO FUNC VAR
2242 # ----------------------------------
2243 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2244 ac_fn_c_check_func
()
2246 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval "test \"\${$3+set}\"" = set; then :
2250 $as_echo_n "(cached) " >&6
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2256 #define $2 innocuous_$2
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $2 (); below.
2260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2261 <limits.h> exists even on freestanding compilers. */
2264 # include <limits.h>
2266 # include <assert.h>
2271 /* Override any GCC internal prototype to avoid an error.
2272 Use char because int might match the return type of a GCC
2273 builtin and then its argument prototype would still apply. */
2278 /* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281 #if defined __stub_$2 || defined __stub___$2
2293 if ac_fn_c_try_link
"$LINENO"; then :
2298 rm -f core conftest.err conftest.
$ac_objext \
2299 conftest
$ac_exeext conftest.
$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2306 } # ac_fn_c_check_func
2307 cat >config.log
<<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2311 It was created by $as_me, which was
2312 generated by GNU Autoconf 2.66. Invocation command line was
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir
=.
2348 $as_echo "PATH: $as_dir"
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_must_keep_next
=false
2378 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2379 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2380 |
-silent |
--silent |
--silen |
--sile |
--sil)
2383 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2388 as_fn_append ac_configure_args1
" '$ac_arg'"
2389 if test $ac_must_keep_next = true
; then
2390 ac_must_keep_next
=false
# Got value, back to normal.
2393 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2394 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2395 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2396 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 -* ) ac_must_keep_next
=true
;;
2404 as_fn_append ac_configure_args
" '$ac_arg'"
2409 { ac_configure_args0
=; unset ac_configure_args0
;}
2410 { ac_configure_args1
=; unset ac_configure_args1
;}
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2422 $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2426 # The following way of writing the cache mishandles newlines in values,
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458 $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2462 for ac_var in $ac_subst_vars
2464 eval ac_val=\$$ac_var
2466 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 $as_echo "$ac_var='\''$ac_val'\''"
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2477 for ac_var
in $ac_subst_files
2479 eval ac_val
=\$
$ac_var
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 $as_echo "$ac_var='\''$ac_val'\''"
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 for ac_signal
in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest
* confdefs.h
2512 $as_echo "/* confdefs.h */" > confdefs.h
2514 # Predefined preprocessor variables.
2516 cat >>confdefs.h
<<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2520 cat >>confdefs.h
<<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524 cat >>confdefs.h
<<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2528 cat >>confdefs.h
<<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2532 cat >>confdefs.h
<<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536 cat >>confdefs.h
<<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2545 if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2549 */*) ac_site_file1
=$CONFIG_SITE;;
2550 *) ac_site_file1
=.
/$CONFIG_SITE;;
2552 elif test "x$prefix" != xNONE
; then
2553 ac_site_file1
=$prefix/share
/config.site
2554 ac_site_file2
=$prefix/etc
/config.site
2556 ac_site_file1
=$ac_default_prefix/share
/config.site
2557 ac_site_file2
=$ac_default_prefix/etc
/config.site
2559 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2561 test "x$ac_site_file" = xNONE
&& continue
2562 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2567 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $?
"failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2582 *) .
"./$cache_file";;
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 as_fn_append ac_header_list
" stdlib.h"
2592 as_fn_append ac_header_list
" unistd.h"
2593 as_fn_append ac_header_list
" sys/param.h"
2594 # Check that the precious variables saved in the cache have kept the same
2596 ac_cache_corrupted
=false
2597 for ac_var
in $ac_precious_vars; do
2598 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2599 eval ac_new_set
=\
$ac_env_${ac_var}_set
2600 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2601 eval ac_new_val
=\
$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted
=: ;;
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted
=: ;;
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w
=`echo x $ac_old_val`
2616 ac_new_val_w
=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted
=:
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\
$ac_old_val
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2635 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg
=$ac_var=$ac_new_val ;;
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2644 if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2656 ac_cpp
='$CPP $CPPFLAGS'
2657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2663 ac_config_headers
="$ac_config_headers lib/misc/configure.h"
2666 ################################################################################
2668 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2669 if test -f "$ac_dir/install-sh"; then
2671 ac_install_sh
="$ac_aux_dir/install-sh -c"
2673 elif test -f "$ac_dir/install.sh"; then
2675 ac_install_sh
="$ac_aux_dir/install.sh -c"
2677 elif test -f "$ac_dir/shtool"; then
2679 ac_install_sh
="$ac_aux_dir/shtool install -c"
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2697 ################################################################################
2698 # Make sure we can run config.sub.
2699 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2700 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2703 $as_echo_n "checking build system type... " >&6; }
2704 if test "${ac_cv_build+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2707 ac_build_alias
=$build_alias
2708 test "x$ac_build_alias" = x
&&
2709 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2710 test "x$ac_build_alias" = x
&&
2711 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2712 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2713 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2717 $as_echo "$ac_cv_build" >&6; }
2718 case $ac_cv_build in
2720 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2723 ac_save_IFS
=$IFS; IFS
='-'
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2733 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2737 $as_echo_n "checking host system type... " >&6; }
2738 if test "${ac_cv_host+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2741 if test "x$host_alias" = x
; then
2742 ac_cv_host
=$ac_cv_build
2744 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2745 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2750 $as_echo "$ac_cv_host" >&6; }
2753 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2756 ac_save_IFS
=$IFS; IFS
='-'
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2766 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2770 $as_echo_n "checking target system type... " >&6; }
2771 if test "${ac_cv_target+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2774 if test "x$target_alias" = x
; then
2775 ac_cv_target
=$ac_cv_host
2777 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2778 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2783 $as_echo "$ac_cv_target" >&6; }
2784 case $ac_cv_target in
2786 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2788 target
=$ac_cv_target
2789 ac_save_IFS
=$IFS; IFS
='-'
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2799 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2802 # The aliases save the names the user supplied, while $host etc.
2803 # will get canonicalized.
2804 test -n "$target_alias" &&
2805 test "$program_prefix$program_suffix$program_transform_name" = \
2807 program_prefix
=${target_alias}-
2812 COPTIMISE_FLAG
="-O2"
2813 CLDFLAGS
="$CLDFLAGS -Wl,--version-script,.export.sym"
2814 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
2815 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
2816 LDDEPS
="$LDDEPS .export.sym"
2817 LDFLAGS
="$LDFLAGS -Wl,--export-dynamic"
2827 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
2828 COPTIMISE_FLAG
="-O2"
2829 CLDFLAGS
="$CLDFLAGS"
2830 CLDWHOLEARCHIVE
="-all_load"
2842 ################################################################################
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2844 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2845 if test "${ac_cv_path_SED+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2848 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2849 for ac_i
in 1 2 3 4 5 6 7; do
2850 ac_script
="$ac_script$as_nl$ac_script"
2852 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2853 { ac_script
=; unset ac_script
;}
2854 if test -z "$SED"; then
2855 ac_path_SED_found
=false
2856 # Loop through the user's path and test for each of PROGNAME-LIST
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_prog
in sed gsed
; do
2863 for ac_exec_ext
in '' $ac_executable_extensions; do
2864 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2865 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
2866 # Check for GNU ac_path_SED and select it if it is found.
2867 # Check for GNU $ac_path_SED
2868 case `"$ac_path_SED" --version 2>&1` in
2870 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2873 $as_echo_n 0123456789 >"conftest.in"
2876 cat "conftest.in" "conftest.in" >"conftest.tmp"
2877 mv "conftest.tmp" "conftest.in"
2878 cp "conftest.in" "conftest.nl"
2879 $as_echo '' >> "conftest.nl"
2880 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2881 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2882 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2883 if test $ac_count -gt ${ac_path_SED_max-0}; then
2884 # Best one so far, save it but keep looking for a better one
2885 ac_cv_path_SED
="$ac_path_SED"
2886 ac_path_SED_max
=$ac_count
2888 # 10*(2^10) chars as input seems more than enough
2889 test $ac_count -gt 10 && break
2891 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2894 $ac_path_SED_found && break 3
2899 if test -z "$ac_cv_path_SED"; then
2900 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2908 $as_echo "$ac_cv_path_SED" >&6; }
2909 SED
="$ac_cv_path_SED"
2912 for ac_prog
in gawk mawk nawk
awk
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy
$ac_prog; ac_word
=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_AWK+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2921 if test -n "$AWK"; then
2922 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir
=.
2929 for ac_exec_ext
in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_AWK
="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 if test -n "$AWK"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944 $as_echo "$AWK" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2951 test -n "$AWK" && break
2955 ac_cpp
='$CPP $CPPFLAGS'
2956 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_CC+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC
="$CC" # Let the user override the test.
2970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir
=.
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2998 if test -z "$ac_cv_prog_CC"; then
3000 # Extract the first word of "gcc", so it can be a program name with args.
3001 set dummy gcc
; ac_word
=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC
="gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3036 if test "x$ac_ct_CC" = x
; then
3039 case $cross_compiling:$ac_tool_warned in
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned
=yes ;;
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC
="$CC" # Let the user override the test.
3063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir
=.
3068 for ac_exec_ext
in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3092 if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094 set dummy cc
; ac_word
=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC
="$CC" # Let the user override the test.
3104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir
=.
3109 for ac_exec_ext
in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected
=yes
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy
$ac_cv_prog_CC
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3132 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3148 if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog
in cl.exe
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC
="$CC" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3189 test -n "$CC" && break
3192 if test -z "$CC"; then
3194 for ac_prog
in cl.exe
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy
$ac_prog; ac_word
=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC
="$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3233 test -n "$ac_ct_CC" && break
3236 if test "x$ac_ct_CC" = x
; then
3239 case $cross_compiling:$ac_tool_warned in
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned
=yes ;;
3252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $?
"no acceptable C compiler found in \$PATH
3255 See \`config.log' for more details" "$LINENO" 5; }
3257 # Provide some information about the compiler.
3258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261 for ac_option
in --version -v -V -qversion; do
3262 { { ac_try
="$ac_compiler $ac_option >&5"
3264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3271 if test -s conftest.err; then
3273 ... rest of stderr output deleted ...
3274 10q' conftest.err >conftest.er1
3275 cat conftest.er1 >&5
3277 rm -f conftest.er1 conftest.err
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3293 ac_clean_files_save=$ac_clean_files
3294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295 # Try to create an executable without -o first, disregard a.out.
3296 # It will help us diagnose broken compilers, and finding out an intuition
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3302 # The possible output files:
3303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306 for ac_file in $ac_files
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 if { { ac_try="$ac_link_default"
3317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3318 *) ac_try_echo
=$ac_try;;
3320 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link_default") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3331 for ac_file
in $ac_files ''
3333 test -f "$ac_file" ||
continue
3335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3338 # We found the default executable, but exeext='' is most
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3344 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3356 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3361 if test -z "$ac_file"; then :
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.
$ac_ext >&5
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error
77 "C compiler cannot create executables
3370 See \`config.log' for more details" "$LINENO" 5; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3376 $as_echo_n "checking for C compiler default output file name... " >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 ac_exeext
=$ac_cv_exeext
3381 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3382 ac_clean_files
=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3384 $as_echo_n "checking for suffix of executables... " >&6; }
3385 if { { ac_try
="$ac_link"
3387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3397 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3398 # work properly (i.e., refer to `conftest.exe'), while it won't with
3400 for ac_file
in conftest.exe conftest conftest.
*; do
3401 test -f "$ac_file" ||
continue
3403 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3404 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3413 See \`config.log' for more details" "$LINENO" 5; }
3415 rm -f conftest conftest
$ac_cv_exeext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3417 $as_echo "$ac_cv_exeext" >&6; }
3419 rm -f conftest.
$ac_ext
3420 EXEEXT
=$ac_cv_exeext
3422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3428 FILE *f = fopen ("conftest.out", "w");
3429 return ferror (f) || fclose (f) != 0;
3435 ac_clean_files
="$ac_clean_files conftest.out"
3436 # Check that the compiler produces executables we can run. If not, either
3437 # the compiler is broken, or we cross compile.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3439 $as_echo_n "checking whether we are cross compiling... " >&6; }
3440 if test "$cross_compiling" != yes; then
3441 { { ac_try
="$ac_link"
3443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_link") 2>&5
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }
3452 if { ac_try='./conftest$ac_cv_exeext'
3453 { { case "(($ac_try" in
3454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3455 *) ac_try_echo
=$ac_try;;
3457 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_try") 2>&5
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; }; then
3465 if test "$cross_compiling" = maybe
; then
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $?
"cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details" "$LINENO" 5; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3477 $as_echo "$cross_compiling" >&6; }
3479 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3480 ac_clean_files
=$ac_clean_files_save
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3482 $as_echo_n "checking for suffix of object files... " >&6; }
3483 if test "${ac_cv_objext+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 rm -f conftest.o conftest.obj
3498 if { { ac_try
="$ac_compile"
3500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compile") 2>&5
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 for ac_file in conftest.o conftest.obj conftest.*; do
3510 test -f "$ac_file" || continue;
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3524 See \
`config.log' for more details" "$LINENO" 5; }
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3551 if ac_fn_c_try_compile "$LINENO"; then :
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562 if test $ac_compiler_gnu = yes; then
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3571 if test "${ac_cv_prog_cc_g+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3589 if ac_fn_c_try_compile "$LINENO"; then :
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3604 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3620 if ac_fn_c_try_compile "$LINENO"; then :
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631 $as_echo "$ac_cv_prog_cc_g" >&6; }
3632 if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634 elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3641 if test "$GCC" = yes; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 ac_cv_prog_cc_c89=no
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3674 s = g (p, va_arg (v,int));
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c89=$ac_arg
3714 rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 rm -f conftest.$ac_ext
3722 case "x$ac_cv_prog_cc_c89" in
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3730 CC="$CC $ac_cv_prog_cc_c89"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3734 if test "x$ac_cv_prog_cc_c89" != xno; then :
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3757 if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3765 for ac_c_preproc_warn_flag in '' yes
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3776 # include <limits.h>
3778 # include <assert.h>
3782 if ac_fn_c_try_cpp "$LINENO"; then :
3785 # Broken: fails on valid input.
3788 rm -f conftest.err conftest.$ac_ext
3790 # OK, works on sane cases. Now check whether nonexistent headers
3791 # can be detected and how.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <ac_nonexistent.h>
3796 if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: success on invalid input.
3800 # Passes both tests.
3804 rm -f conftest.err conftest.$ac_ext
3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808 rm -f conftest.err conftest.
$ac_ext
3809 if $ac_preproc_ok; then :
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822 $as_echo "$CPP" >&6; }
3824 for ac_c_preproc_warn_flag
in '' yes
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3835 # include <limits.h>
3837 # include <assert.h>
3841 if ac_fn_c_try_cpp
"$LINENO"; then :
3844 # Broken: fails on valid input.
3847 rm -f conftest.err conftest.
$ac_ext
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3855 if ac_fn_c_try_cpp
"$LINENO"; then :
3856 # Broken: success on invalid input.
3859 # Passes both tests.
3863 rm -f conftest.err conftest.
$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.
$ac_ext
3868 if $ac_preproc_ok; then :
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3874 See \`config.log' for more details" "$LINENO" 5; }
3878 ac_cpp
='$CPP $CPPFLAGS'
3879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3885 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886 if test "${ac_cv_path_GREP+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found
=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3893 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3896 test -z "$as_dir" && as_dir
=.
3897 for ac_prog
in grep ggrep
; do
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3905 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3908 $as_echo_n 0123456789 >"conftest.in"
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3916 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3917 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP
="$ac_path_GREP"
3921 ac_path_GREP_max
=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3926 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3929 $ac_path_GREP_found && break 3
3934 if test -z "$ac_cv_path_GREP"; then
3935 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3938 ac_cv_path_GREP
=$GREP
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3943 $as_echo "$ac_cv_path_GREP" >&6; }
3944 GREP
="$ac_cv_path_GREP"
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3948 $as_echo_n "checking for egrep... " >&6; }
3949 if test "${ac_cv_path_EGREP+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3952 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3953 then ac_cv_path_EGREP
="$GREP -E"
3955 if test -z "$EGREP"; then
3956 ac_path_EGREP_found
=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3959 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3962 test -z "$as_dir" && as_dir
=.
3963 for ac_prog
in egrep; do
3964 for ac_exec_ext
in '' $ac_executable_extensions; do
3965 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3971 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3974 $as_echo_n 0123456789 >"conftest.in"
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3982 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3983 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP
="$ac_path_EGREP"
3987 ac_path_EGREP_max
=$ac_count
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3992 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3995 $ac_path_EGREP_found && break 3
4000 if test -z "$ac_cv_path_EGREP"; then
4001 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4004 ac_cv_path_EGREP
=$EGREP
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4010 $as_echo "$ac_cv_path_EGREP" >&6; }
4011 EGREP
="$ac_cv_path_EGREP"
4014 if test $ac_cv_c_compiler_gnu = yes; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4016 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4017 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4020 ac_pattern
="Autoconf.*'x'"
4021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4028 ac_cv_prog_gcc_traditional
=yes
4030 ac_cv_prog_gcc_traditional
=no
4035 if test $ac_cv_prog_gcc_traditional = no
; then
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4043 ac_cv_prog_gcc_traditional
=yes
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4050 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4051 if test $ac_cv_prog_gcc_traditional = yes; then
4052 CC
="$CC -traditional"
4056 # Find a good install program. We prefer a C program (faster),
4057 # so one script is as good as another. But avoid the broken or
4058 # incompatible versions:
4059 # SysV /etc/install, /usr/sbin/install
4060 # SunOS /usr/etc/install
4061 # IRIX /sbin/install
4063 # AmigaOS /C/install, which installs bootblocks on floppy discs
4064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4067 # OS/2's system install, which has a completely different semantic
4068 # ./install, which can be erroneously created by make from ./install.sh.
4069 # Reject install programs that cannot install multiple files.
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4071 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4072 if test -z "$INSTALL"; then
4073 if test "${ac_cv_path_install+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 # Account for people who put trailing slashes in PATH elements.
4082 case $as_dir/ in #((
4083 .
/ | .
// |
/[cC
]/* | \
4084 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4085 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4091 for ac_prog
in ginstall scoinst
install; do
4092 for ac_exec_ext
in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4094 if test $ac_prog = install &&
4095 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4096 # AIX install. It has an incompatible calling convention.
4098 elif test $ac_prog = install &&
4099 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4100 # program-specific install script used by HP pwplus--don't use.
4103 rm -rf conftest.one conftest.two conftest.dir
4104 echo one
> conftest.one
4105 echo two
> conftest.two
4107 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4108 test -s conftest.one
&& test -s conftest.two
&&
4109 test -s conftest.dir
/conftest.one
&&
4110 test -s conftest.dir
/conftest.two
4112 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4125 rm -rf conftest.one conftest.two conftest.dir
4128 if test "${ac_cv_path_install+set}" = set; then
4129 INSTALL
=$ac_cv_path_install
4131 # As a last resort, use the slow shell script. Don't cache a
4132 # value for INSTALL within a source directory, because that will
4133 # break other packages using the cache if that directory is
4134 # removed, or if the value is a relative name.
4135 INSTALL
=$ac_install_sh
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4139 $as_echo "$INSTALL" >&6; }
4141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4142 # It thinks the first close brace ends the variable substitution.
4143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4147 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4150 $as_echo_n "checking whether ln -s works... " >&6; }
4152 if test "$LN_S" = "ln -s"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154 $as_echo "yes" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4157 $as_echo "no, using $LN_S" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4163 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 cat >conftest.
make <<\_ACEOF
4170 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4175 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4177 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4181 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 SET_MAKE
="MAKE=${MAKE-make}"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4192 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4193 if test -z "$MKDIR_P"; then
4194 if test "${ac_cv_path_mkdir+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4201 test -z "$as_dir" && as_dir
=.
4202 for ac_prog
in mkdir gmkdir
; do
4203 for ac_exec_ext
in '' $ac_executable_extensions; do
4204 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4206 'mkdir (GNU coreutils) '* | \
4207 'mkdir (coreutils) '* | \
4208 'mkdir (fileutils) '4.1*)
4209 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4219 test -d .
/--version && rmdir .
/--version
4220 if test "${ac_cv_path_mkdir+set}" = set; then
4221 MKDIR_P
="$ac_cv_path_mkdir -p"
4223 # As a last resort, use the slow shell script. Don't cache a
4224 # value for MKDIR_P within a source directory, because that will
4225 # break other packages using the cache if that directory is
4226 # removed, or if the value is a relative name.
4227 MKDIR_P
="$ac_install_sh -d"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4231 $as_echo "$MKDIR_P" >&6; }
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 RANLIB
=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4264 $as_echo "$RANLIB" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4272 if test -z "$ac_cv_prog_RANLIB"; then
4273 ac_ct_RANLIB
=$RANLIB
4274 # Extract the first word of "ranlib", so it can be a program name with args.
4275 set dummy ranlib
; ac_word
=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$ac_ct_RANLIB"; then
4282 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir
=.
4289 for ac_exec_ext
in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4302 if test -n "$ac_ct_RANLIB"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4304 $as_echo "$ac_ct_RANLIB" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4310 if test "x$ac_ct_RANLIB" = x
; then
4313 case $cross_compiling:$ac_tool_warned in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned
=yes ;;
4319 RANLIB
=$ac_ct_RANLIB
4322 RANLIB
="$ac_cv_prog_RANLIB"
4325 # Extract the first word of "cflow", so it can be a program name with args.
4326 set dummy cflow
; ac_word
=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4334 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
4337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir
=.
4342 for ac_exec_ext
in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
4356 if test -n "$CFLOW_CMD"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4358 $as_echo "$CFLOW_CMD" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4365 # Extract the first word of "cscope", so it can be a program name with args.
4366 set dummy cscope
; ac_word
=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4374 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
4377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir
=.
4382 for ac_exec_ext
in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
4396 if test -n "$CSCOPE_CMD"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4398 $as_echo "$CSCOPE_CMD" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4406 ################################################################################
4408 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4409 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4411 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4412 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <sys/types.h>
4429 if ac_fn_c_try_compile
"$LINENO"; then :
4430 eval "$as_ac_Header=yes"
4432 eval "$as_ac_Header=no"
4434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4436 eval ac_res
=\$
$as_ac_Header
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4438 $as_echo "$ac_res" >&6; }
4439 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4440 cat >>confdefs.h
<<_ACEOF
4441 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4444 ac_header_dirent
=$ac_hdr; break
4448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4449 if test $ac_header_dirent = dirent.h
; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4451 $as_echo_n "checking for library containing opendir... " >&6; }
4452 if test "${ac_cv_search_opendir+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4455 ac_func_search_save_LIBS
=$LIBS
4456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4459 /* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4474 for ac_lib
in '' dir
; do
4475 if test -z "$ac_lib"; then
4476 ac_res
="none required"
4479 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4481 if ac_fn_c_try_link
"$LINENO"; then :
4482 ac_cv_search_opendir
=$ac_res
4484 rm -f core conftest.err conftest.
$ac_objext \
4486 if test "${ac_cv_search_opendir+set}" = set; then :
4490 if test "${ac_cv_search_opendir+set}" = set; then :
4493 ac_cv_search_opendir
=no
4496 LIBS
=$ac_func_search_save_LIBS
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4499 $as_echo "$ac_cv_search_opendir" >&6; }
4500 ac_res
=$ac_cv_search_opendir
4501 if test "$ac_res" != no
; then :
4502 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4508 $as_echo_n "checking for library containing opendir... " >&6; }
4509 if test "${ac_cv_search_opendir+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4512 ac_func_search_save_LIBS
=$LIBS
4513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4516 /* Override any GCC internal prototype to avoid an error.
4517 Use char because int might match the return type of a GCC
4518 builtin and then its argument prototype would still apply. */
4531 for ac_lib
in '' x
; do
4532 if test -z "$ac_lib"; then
4533 ac_res
="none required"
4536 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4538 if ac_fn_c_try_link
"$LINENO"; then :
4539 ac_cv_search_opendir
=$ac_res
4541 rm -f core conftest.err conftest.
$ac_objext \
4543 if test "${ac_cv_search_opendir+set}" = set; then :
4547 if test "${ac_cv_search_opendir+set}" = set; then :
4550 ac_cv_search_opendir
=no
4553 LIBS
=$ac_func_search_save_LIBS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4556 $as_echo "$ac_cv_search_opendir" >&6; }
4557 ac_res
=$ac_cv_search_opendir
4558 if test "$ac_res" != no
; then :
4559 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566 $as_echo_n "checking for ANSI C header files... " >&6; }
4567 if test "${ac_cv_header_stdc+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4585 if ac_fn_c_try_compile
"$LINENO"; then :
4586 ac_cv_header_stdc
=yes
4588 ac_cv_header_stdc
=no
4590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4592 if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev
/null
2>&1; then :
4603 ac_cv_header_stdc
=no
4609 if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev
/null
2>&1; then :
4620 ac_cv_header_stdc
=no
4626 if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4635 #if ((' ' & 0x0FF) == 0x020)
4636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639 # define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4658 if ac_fn_c_try_run
"$LINENO"; then :
4661 ac_cv_header_stdc
=no
4663 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4664 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670 $as_echo "$ac_cv_header_stdc" >&6; }
4671 if test $ac_cv_header_stdc = yes; then
4673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4679 inttypes.h stdint.h unistd.h
4681 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4684 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4685 cat >>confdefs.h
<<_ACEOF
4686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4695 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4696 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 #include <sys/types.h>
4705 return makedev(0, 0);
4710 if ac_fn_c_try_link
"$LINENO"; then :
4711 ac_cv_header_sys_types_h_makedev
=yes
4713 ac_cv_header_sys_types_h_makedev
=no
4715 rm -f core conftest.err conftest.
$ac_objext \
4716 conftest
$ac_exeext conftest.
$ac_ext
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4720 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4722 if test $ac_cv_header_sys_types_h_makedev = no
; then
4723 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4724 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
4726 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4732 if test $ac_cv_header_sys_mkdev_h = no
; then
4733 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4734 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
4736 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4745 $as_echo_n "checking for ANSI C header files... " >&6; }
4746 if test "${ac_cv_header_stdc+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4764 if ac_fn_c_try_compile
"$LINENO"; then :
4765 ac_cv_header_stdc
=yes
4767 ac_cv_header_stdc
=no
4769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4771 if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "memchr" >/dev
/null
2>&1; then :
4782 ac_cv_header_stdc
=no
4788 if test $ac_cv_header_stdc = yes; then
4789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "free" >/dev
/null
2>&1; then :
4799 ac_cv_header_stdc
=no
4805 if test $ac_cv_header_stdc = yes; then
4806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807 if test "$cross_compiling" = yes; then :
4810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4814 #if ((' ' & 0x0FF) == 0x020)
4815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4818 # define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4837 if ac_fn_c_try_run
"$LINENO"; then :
4840 ac_cv_header_stdc
=no
4842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4849 $as_echo "$ac_cv_header_stdc" >&6; }
4850 if test $ac_cv_header_stdc = yes; then
4852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4857 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4858 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <sys/types.h>
4864 #include <sys/wait.h>
4866 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4882 if ac_fn_c_try_compile
"$LINENO"; then :
4883 ac_cv_header_sys_wait_h
=yes
4885 ac_cv_header_sys_wait_h
=no
4887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4890 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4891 if test $ac_cv_header_sys_wait_h = yes; then
4893 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4898 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4899 if test "${ac_cv_header_time+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 #include <sys/time.h>
4911 if ((struct tm *) 0)
4917 if ac_fn_c_try_compile
"$LINENO"; then :
4918 ac_cv_header_time
=yes
4920 ac_cv_header_time
=no
4922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4925 $as_echo "$ac_cv_header_time" >&6; }
4926 if test $ac_cv_header_time = yes; then
4928 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4933 for ac_header
in locale.h stddef.h syslog.h sys
/file.h sys
/time.h assert.h \
4934 langinfo.h libgen.h signal.h sys
/mman.h sys
/resource.h sys
/utsname.h \
4937 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4939 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4940 cat >>confdefs.h
<<_ACEOF
4941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4945 as_fn_error $?
"bailing out" "$LINENO" 5
4953 for ac_header
in asm
/byteorder.h linux
/fs.h malloc.h
4955 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4957 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4958 cat >>confdefs.h
<<_ACEOF
4959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963 as_fn_error $?
"bailing out" "$LINENO" 5
4969 for ac_header
in machine
/endian.h sys
/disk.h
4971 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4974 cat >>confdefs.h
<<_ACEOF
4975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4979 as_fn_error $?
"bailing out" "$LINENO" 5
4986 for ac_header
in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4987 stdarg.h stdio.h stdlib.h string.h sys
/ioctl.h sys
/param.h sys
/stat.h \
4988 sys
/types.h unistd.h
4990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4992 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4993 cat >>confdefs.h
<<_ACEOF
4994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4998 as_fn_error $?
"bailing out" "$LINENO" 5
5003 for ac_header
in termios.h sys
/statvfs.h
5005 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5007 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5008 cat >>confdefs.h
<<_ACEOF
5009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5017 ################################################################################
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5019 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5020 if test "${ac_cv_c_const+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5029 /* FIXME: Include the comments suggested by Paul. */
5031 /* Ultrix mips cc rejects this. */
5032 typedef int charset[2];
5034 /* SunOS 4.1.1 cc rejects this. */
5035 char const *const *pcpcc;
5037 /* NEC SVR4.0.2 mips cc rejects this. */
5038 struct point {int x, y;};
5039 static struct point const zero = {0,0};
5040 /* AIX XL C 1.02.0.0 rejects this.
5041 It does not let you subtract one const X* pointer from another in
5042 an arm of an if-expression whose if-part is not a constant
5044 const char *g = "string";
5045 pcpcc = &g + (g ? g-g : 0);
5046 /* HPUX 7.0 cc rejects these. */
5048 ppc = (char**) pcpcc;
5049 pcpcc = (char const *const *) ppc;
5050 { /* SCO 3.2v4 cc rejects this. */
5052 char const *s = 0 ? (char *) 0 : (char const *) 0;
5057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5059 const int *foo = &x[0];
5062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5063 typedef const int *iptr;
5067 { /* AIX XL C 1.02.0.0 rejects this saying
5068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5069 struct s { int j; const int *ap[3]; };
5070 struct s *b; b->j = 5;
5072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5076 return !cs[0] && !zero.x;
5083 if ac_fn_c_try_compile
"$LINENO"; then :
5088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5091 $as_echo "$ac_cv_c_const" >&6; }
5092 if test $ac_cv_c_const = no
; then
5094 $as_echo "#define const /**/" >>confdefs.h
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5099 $as_echo_n "checking for inline... " >&6; }
5100 if test "${ac_cv_c_inline+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5104 for ac_kw
in inline __inline__ __inline
; do
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5109 static $ac_kw foo_t static_foo () {return 0; }
5110 $ac_kw foo_t foo () {return 0; }
5114 if ac_fn_c_try_compile
"$LINENO"; then :
5115 ac_cv_c_inline
=$ac_kw
5117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5118 test "$ac_cv_c_inline" != no
&& break
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5123 $as_echo "$ac_cv_c_inline" >&6; }
5125 case $ac_cv_c_inline in
5128 case $ac_cv_c_inline in
5130 *) ac_val
=$ac_cv_c_inline;;
5132 cat >>confdefs.h
<<_ACEOF
5134 #define inline $ac_val
5140 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5141 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5143 cat >>confdefs.h
<<_ACEOF
5144 #define HAVE_STRUCT_STAT_ST_RDEV 1
5150 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5151 if test "x$ac_cv_type_off_t" = x
""yes; then :
5155 cat >>confdefs.h
<<_ACEOF
5156 #define off_t long int
5161 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5162 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5166 cat >>confdefs.h
<<_ACEOF
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5173 $as_echo_n "checking return type of signal handlers... " >&6; }
5174 if test "${ac_cv_type_signal+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <sys/types.h>
5185 return *(signal (0, 0)) (0) == 1;
5190 if ac_fn_c_try_compile
"$LINENO"; then :
5191 ac_cv_type_signal
=int
5193 ac_cv_type_signal
=void
5195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5198 $as_echo "$ac_cv_type_signal" >&6; }
5200 cat >>confdefs.h
<<_ACEOF
5201 #define RETSIGTYPE $ac_cv_type_signal
5205 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5206 if test "x$ac_cv_type_size_t" = x
""yes; then :
5210 cat >>confdefs.h
<<_ACEOF
5211 #define size_t unsigned int
5216 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5217 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5221 cat >>confdefs.h
<<_ACEOF
5227 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5228 case $ac_cv_c_int8_t in #(
5232 cat >>confdefs.h
<<_ACEOF
5233 #define int8_t $ac_cv_c_int8_t
5238 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5239 case $ac_cv_c_int16_t in #(
5243 cat >>confdefs.h
<<_ACEOF
5244 #define int16_t $ac_cv_c_int16_t
5249 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5250 case $ac_cv_c_int32_t in #(
5254 cat >>confdefs.h
<<_ACEOF
5255 #define int32_t $ac_cv_c_int32_t
5260 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5261 case $ac_cv_c_int64_t in #(
5265 cat >>confdefs.h
<<_ACEOF
5266 #define int64_t $ac_cv_c_int64_t
5271 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5272 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5276 cat >>confdefs.h
<<_ACEOF
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5283 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5284 if test "${ac_cv_type_uid_t+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #include <sys/types.h>
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "uid_t" >/dev
/null
2>&1; then :
5294 ac_cv_type_uid_t
=yes
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5302 $as_echo "$ac_cv_type_uid_t" >&6; }
5303 if test $ac_cv_type_uid_t = no
; then
5305 $as_echo "#define uid_t int" >>confdefs.h
5308 $as_echo "#define gid_t int" >>confdefs.h
5312 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5313 case $ac_cv_c_uint8_t in #(
5317 $as_echo "#define _UINT8_T 1" >>confdefs.h
5320 cat >>confdefs.h
<<_ACEOF
5321 #define uint8_t $ac_cv_c_uint8_t
5326 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5327 case $ac_cv_c_uint16_t in #(
5332 cat >>confdefs.h
<<_ACEOF
5333 #define uint16_t $ac_cv_c_uint16_t
5338 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5339 case $ac_cv_c_uint32_t in #(
5343 $as_echo "#define _UINT32_T 1" >>confdefs.h
5346 cat >>confdefs.h
<<_ACEOF
5347 #define uint32_t $ac_cv_c_uint32_t
5352 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5353 case $ac_cv_c_uint64_t in #(
5357 $as_echo "#define _UINT64_T 1" >>confdefs.h
5360 cat >>confdefs.h
<<_ACEOF
5361 #define uint64_t $ac_cv_c_uint64_t
5366 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5367 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5369 cat >>confdefs.h
<<_ACEOF
5370 #define HAVE_STRUCT_STAT_ST_RDEV 1
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5377 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5378 if test "${ac_cv_struct_tm+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <sys/types.h>
5390 int *p = &tm.tm_sec;
5396 if ac_fn_c_try_compile
"$LINENO"; then :
5397 ac_cv_struct_tm
=time.h
5399 ac_cv_struct_tm
=sys
/time.h
5401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5404 $as_echo "$ac_cv_struct_tm" >&6; }
5405 if test $ac_cv_struct_tm = sys
/time.h
; then
5407 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5412 ################################################################################
5413 for ac_func
in ftruncate gethostname getpagesize \
5414 gettimeofday memset mkdir
mkfifo rmdir munmap nl_langinfo setenv setlocale \
5415 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5416 strstr strtol strtoul uname
5418 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5419 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5420 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5421 cat >>confdefs.h
<<_ACEOF
5422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5426 as_fn_error $?
"bailing out" "$LINENO" 5
5430 for ac_func
in siginterrupt
5432 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5433 if test "x$ac_cv_func_siginterrupt" = x
""yes; then :
5434 cat >>confdefs.h
<<_ACEOF
5435 #define HAVE_SIGINTERRUPT 1
5441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5442 # for constant arguments. Useless!
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5444 $as_echo_n "checking for working alloca.h... " >&6; }
5445 if test "${ac_cv_working_alloca_h+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5454 char *p = (char *) alloca (2 * sizeof (int));
5460 if ac_fn_c_try_link
"$LINENO"; then :
5461 ac_cv_working_alloca_h
=yes
5463 ac_cv_working_alloca_h
=no
5465 rm -f core conftest.err conftest.
$ac_objext \
5466 conftest
$ac_exeext conftest.
$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5469 $as_echo "$ac_cv_working_alloca_h" >&6; }
5470 if test $ac_cv_working_alloca_h = yes; then
5472 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5477 $as_echo_n "checking for alloca... " >&6; }
5478 if test "${ac_cv_func_alloca_works+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 # define alloca __builtin_alloca
5487 # include <malloc.h>
5488 # define alloca _alloca
5490 # ifdef HAVE_ALLOCA_H
5491 # include <alloca.h>
5496 # ifndef alloca /* predefined by HP cc +Olibcalls */
5507 char *p = (char *) alloca (1);
5513 if ac_fn_c_try_link
"$LINENO"; then :
5514 ac_cv_func_alloca_works
=yes
5516 ac_cv_func_alloca_works
=no
5518 rm -f core conftest.err conftest.
$ac_objext \
5519 conftest
$ac_exeext conftest.
$ac_ext
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5522 $as_echo "$ac_cv_func_alloca_works" >&6; }
5524 if test $ac_cv_func_alloca_works = yes; then
5526 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5530 # that cause trouble. Some versions do not even contain alloca or
5531 # contain a buggy version. If you still want to use their alloca,
5532 # use ar to extract alloca.o from them instead of compiling alloca.c.
5534 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5536 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5540 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5541 if test "${ac_cv_os_cray+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #if defined CRAY && ! defined CRAY2
5553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554 $EGREP "webecray" >/dev
/null
2>&1; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5563 $as_echo "$ac_cv_os_cray" >&6; }
5564 if test $ac_cv_os_cray = yes; then
5565 for ac_func
in _getb67 GETB67 getb67
; do
5566 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5568 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5570 cat >>confdefs.h
<<_ACEOF
5571 #define CRAY_STACKSEG_END $ac_func
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5581 $as_echo_n "checking stack direction for C alloca... " >&6; }
5582 if test "${ac_cv_c_stack_direction+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if test "$cross_compiling" = yes; then :
5586 ac_cv_c_stack_direction
=0
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 $ac_includes_default
5592 find_stack_direction ()
5594 static char *addr = 0;
5599 return find_stack_direction ();
5602 return (&dummy > addr) ? 1 : -1;
5608 return find_stack_direction () < 0;
5611 if ac_fn_c_try_run
"$LINENO"; then :
5612 ac_cv_c_stack_direction
=1
5614 ac_cv_c_stack_direction
=-1
5616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5622 $as_echo "$ac_cv_c_stack_direction" >&6; }
5623 cat >>confdefs.h
<<_ACEOF
5624 #define STACK_DIRECTION $ac_cv_c_stack_direction
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5631 $as_echo_n "checking whether closedir returns void... " >&6; }
5632 if test "${ac_cv_func_closedir_void+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5635 if test "$cross_compiling" = yes; then :
5636 ac_cv_func_closedir_void
=yes
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 #include <$ac_header_dirent>
5649 return closedir (opendir (".")) != 0;
5654 if ac_fn_c_try_run
"$LINENO"; then :
5655 ac_cv_func_closedir_void
=no
5657 ac_cv_func_closedir_void
=yes
5659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5665 $as_echo "$ac_cv_func_closedir_void" >&6; }
5666 if test $ac_cv_func_closedir_void = yes; then
5668 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5672 for ac_header
in unistd.h
5674 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5675 if test "x$ac_cv_header_unistd_h" = x
""yes; then :
5676 cat >>confdefs.h
<<_ACEOF
5677 #define HAVE_UNISTD_H 1
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5685 $as_echo_n "checking for working chown... " >&6; }
5686 if test "${ac_cv_func_chown_works+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 if test "$cross_compiling" = yes; then :
5690 ac_cv_func_chown_works
=no
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 $ac_includes_default
5700 char *f = "conftest.chown";
5701 struct stat before, after;
5703 if (creat (f, 0600) < 0)
5705 if (stat (f, &before) < 0)
5707 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5709 if (stat (f, &after) < 0)
5711 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5717 if ac_fn_c_try_run
"$LINENO"; then :
5718 ac_cv_func_chown_works
=yes
5720 ac_cv_func_chown_works
=no
5722 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5723 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5726 rm -f conftest.chown
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5730 $as_echo "$ac_cv_func_chown_works" >&6; }
5731 if test $ac_cv_func_chown_works = yes; then
5733 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5737 for ac_header
in vfork.h
5739 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5740 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5741 cat >>confdefs.h
<<_ACEOF
5742 #define HAVE_VFORK_H 1
5749 for ac_func
in fork vfork
5751 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5752 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5753 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5754 cat >>confdefs.h
<<_ACEOF
5755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5761 if test "x$ac_cv_func_fork" = xyes
; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5763 $as_echo_n "checking for working fork... " >&6; }
5764 if test "${ac_cv_func_fork_works+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5767 if test "$cross_compiling" = yes; then :
5768 ac_cv_func_fork_works
=cross
5770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 $ac_includes_default
5777 /* By Ruediger Kuhlmann. */
5784 if ac_fn_c_try_run
"$LINENO"; then :
5785 ac_cv_func_fork_works
=yes
5787 ac_cv_func_fork_works
=no
5789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5795 $as_echo "$ac_cv_func_fork_works" >&6; }
5798 ac_cv_func_fork_works
=$ac_cv_func_fork
5800 if test "x$ac_cv_func_fork_works" = xcross
; then
5802 *-*-amigaos* |
*-*-msdosdjgpp*)
5803 # Override, as these systems have only a dummy fork() stub
5804 ac_cv_func_fork_works
=no
5807 ac_cv_func_fork_works
=yes
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5811 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5813 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5814 if test "x$ac_cv_func_vfork" = xyes
; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5816 $as_echo_n "checking for working vfork... " >&6; }
5817 if test "${ac_cv_func_vfork_works+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5820 if test "$cross_compiling" = yes; then :
5821 ac_cv_func_vfork_works
=cross
5823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 /* Thanks to Paul Eggert for this test. */
5826 $ac_includes_default
5827 #include <sys/wait.h>
5831 /* On some sparc systems, changes by the child to local and incoming
5832 argument registers are propagated back to the parent. The compiler
5833 is told about this with #include <vfork.h>, but some compilers
5834 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5835 static variable whose address is put into a register that is
5836 clobbered by the vfork. */
5839 sparc_address_test (int arg)
5841 sparc_address_test (arg) int arg;
5862 pid_t parent = getpid ();
5865 sparc_address_test (0);
5870 /* Here is another test for sparc vfork register problems. This
5871 test uses lots of local variables, at least as many local
5872 variables as main has allocated so far including compiler
5873 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5874 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5875 reuse the register of parent for one of the local variables,
5876 since it will think that parent can't possibly be used any more
5877 in this routine. Assigning to the local variable will thus
5878 munge parent in the parent process. */
5880 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5881 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5882 /* Convince the compiler that p..p7 are live; otherwise, it might
5883 use the same hardware register for all 8 local variables. */
5884 if (p != p1 || p != p2 || p != p3 || p != p4
5885 || p != p5 || p != p6 || p != p7)
5888 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5889 from child file descriptors. If the child closes a descriptor
5890 before it execs or exits, this munges the parent's descriptor
5891 as well. Test for this by closing stdout in the child. */
5892 _exit(close(fileno(stdout)) != 0);
5897 while (wait(&status) != child)
5900 /* Was there some problem with vforking? */
5903 /* Did the child fail? (This shouldn't happen.) */
5906 /* Did the vfork/compiler bug occur? */
5907 || parent != getpid()
5909 /* Did the file descriptor bug occur? */
5910 || fstat(fileno(stdout), &st) != 0
5915 if ac_fn_c_try_run
"$LINENO"; then :
5916 ac_cv_func_vfork_works
=yes
5918 ac_cv_func_vfork_works
=no
5920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5926 $as_echo "$ac_cv_func_vfork_works" >&6; }
5929 if test "x$ac_cv_func_fork_works" = xcross
; then
5930 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5932 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5935 if test "x$ac_cv_func_vfork_works" = xyes
; then
5937 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5941 $as_echo "#define vfork fork" >>confdefs.h
5944 if test "x$ac_cv_func_fork_works" = xyes
; then
5946 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5951 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5952 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 rm -f conftest.sym conftest.
file
5957 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
5958 if test "$cross_compiling" = yes; then :
5959 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 $ac_includes_default
5968 /* Linux will dereference the symlink and fail, as required by POSIX.
5969 That is better in the sense that it means we will not
5970 have to compile and use the lstat wrapper. */
5971 return lstat ("conftest.sym/", &sbuf) == 0;
5976 if ac_fn_c_try_run
"$LINENO"; then :
5977 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
5979 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5981 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5982 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5986 # If the `ln -s' command failed, then we probably don't even
5987 # have an lstat function.
5988 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5990 rm -f conftest.sym conftest.
file
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5994 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5996 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5998 cat >>confdefs.h
<<_ACEOF
5999 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6003 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
6004 case " $LIBOBJS " in
6005 *" lstat.$ac_objext "* ) ;;
6006 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6013 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6014 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6017 if test "$cross_compiling" = yes; then :
6018 ac_cv_func_lstat_empty_string_bug
=yes
6020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 $ac_includes_default
6027 return lstat ("", &sbuf) == 0;
6032 if ac_fn_c_try_run
"$LINENO"; then :
6033 ac_cv_func_lstat_empty_string_bug
=no
6035 ac_cv_func_lstat_empty_string_bug
=yes
6037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6043 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6044 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6045 case " $LIBOBJS " in
6046 *" lstat.$ac_objext "* ) ;;
6047 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6052 cat >>confdefs.h
<<_ACEOF
6053 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6058 for ac_header
in stdlib.h
6060 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6061 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6062 cat >>confdefs.h
<<_ACEOF
6063 #define HAVE_STDLIB_H 1
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6071 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6072 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 if test "$cross_compiling" = yes; then :
6076 ac_cv_func_malloc_0_nonnull
=no
6078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6081 # include <stdlib.h>
6089 return ! malloc (0);
6094 if ac_fn_c_try_run
"$LINENO"; then :
6095 ac_cv_func_malloc_0_nonnull
=yes
6097 ac_cv_func_malloc_0_nonnull
=no
6099 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6100 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6105 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6106 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6108 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6111 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6113 case " $LIBOBJS " in
6114 *" malloc.$ac_objext "* ) ;;
6115 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6120 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6126 $as_echo_n "checking for working memcmp... " >&6; }
6127 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6130 if test "$cross_compiling" = yes; then :
6131 ac_cv_func_memcmp_working
=no
6133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 $ac_includes_default
6140 /* Some versions of memcmp are not 8-bit clean. */
6141 char c0 = '\100', c1 = '\200', c2 = '\201';
6142 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6145 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6146 or more and with at least one buffer not starting on a 4-byte boundary.
6147 William Lewis provided this test program. */
6152 for (i = 0; i < 4; i++)
6156 strcpy (a, "--------01111111");
6157 strcpy (b, "--------10000000");
6158 if (memcmp (a, b, 16) >= 0)
6168 if ac_fn_c_try_run
"$LINENO"; then :
6169 ac_cv_func_memcmp_working
=yes
6171 ac_cv_func_memcmp_working
=no
6173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6179 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6180 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6181 *" memcmp.$ac_objext "* ) ;;
6182 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6190 for ac_header
in $ac_header_list
6192 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6195 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6196 cat >>confdefs.h
<<_ACEOF
6197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 for ac_func
in getpagesize
6213 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6214 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6215 cat >>confdefs.h
<<_ACEOF
6216 #define HAVE_GETPAGESIZE 1
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6223 $as_echo_n "checking for working mmap... " >&6; }
6224 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6227 if test "$cross_compiling" = yes; then :
6228 ac_cv_func_mmap_fixed_mapped
=no
6230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 /* malloc might have been renamed as rpl_malloc. */
6236 /* Thanks to Mike Haertel and Jim Avera for this test.
6237 Here is a matrix of mmap possibilities:
6238 mmap private not fixed
6239 mmap private fixed at somewhere currently unmapped
6240 mmap private fixed at somewhere already mapped
6241 mmap shared not fixed
6242 mmap shared fixed at somewhere currently unmapped
6243 mmap shared fixed at somewhere already mapped
6244 For private mappings, we should verify that changes cannot be read()
6245 back from the file, nor mmap's back from the file at a different
6246 address. (There have been systems where private was not correctly
6247 implemented like the infamous i386 svr4.0, and systems where the
6248 VM page cache was not coherent with the file system buffer cache
6249 like early versions of FreeBSD and possibly contemporary NetBSD.)
6250 For shared mappings, we should conversely verify that changes get
6251 propagated back to all the places they're supposed to be.
6253 Grep wants private fixed already mapped.
6254 The main things grep needs to know about mmap are:
6255 * does it exist and is it safe to write into the mmap'd area
6256 * how to use it (BSD variants) */
6259 #include <sys/mman.h>
6261 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6265 /* This mess was copied from the GNU getpagesize.h. */
6266 #ifndef HAVE_GETPAGESIZE
6267 # ifdef _SC_PAGESIZE
6268 # define getpagesize() sysconf(_SC_PAGESIZE)
6269 # else /* no _SC_PAGESIZE */
6270 # ifdef HAVE_SYS_PARAM_H
6271 # include <sys/param.h>
6272 # ifdef EXEC_PAGESIZE
6273 # define getpagesize() EXEC_PAGESIZE
6274 # else /* no EXEC_PAGESIZE */
6276 # define getpagesize() NBPG * CLSIZE
6279 # endif /* no CLSIZE */
6280 # else /* no NBPG */
6282 # define getpagesize() NBPC
6283 # else /* no NBPC */
6285 # define getpagesize() PAGESIZE
6286 # endif /* PAGESIZE */
6287 # endif /* no NBPC */
6288 # endif /* no NBPG */
6289 # endif /* no EXEC_PAGESIZE */
6290 # else /* no HAVE_SYS_PARAM_H */
6291 # define getpagesize() 8192 /* punt totally */
6292 # endif /* no HAVE_SYS_PARAM_H */
6293 # endif /* no _SC_PAGESIZE */
6295 #endif /* no HAVE_GETPAGESIZE */
6300 char *data, *data2, *data3;
6305 pagesize = getpagesize ();
6307 /* First, make a file with some known garbage in it. */
6308 data = (char *) malloc (pagesize);
6311 for (i = 0; i < pagesize; ++i)
6312 *(data + i) = rand ();
6314 fd = creat ("conftest.mmap", 0600);
6317 if (write (fd, data, pagesize) != pagesize)
6321 /* Next, check that the tail of a page is zero-filled. File must have
6322 non-zero length, otherwise we risk SIGBUS for entire page. */
6323 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6327 if (write (fd2, cdata2, 1) != 1)
6329 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6330 if (data2 == MAP_FAILED)
6332 for (i = 0; i < pagesize; ++i)
6336 if (munmap (data2, pagesize))
6339 /* Next, try to mmap the file at a fixed address which already has
6340 something else allocated at it. If we can, also make sure that
6341 we see the same garbage. */
6342 fd = open ("conftest.mmap", O_RDWR);
6345 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6346 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6348 for (i = 0; i < pagesize; ++i)
6349 if (*(data + i) != *(data2 + i))
6352 /* Finally, make sure that changes to the mapped area do not
6353 percolate back to the file as seen by read(). (This is a bug on
6354 some variants of i386 svr4.0.) */
6355 for (i = 0; i < pagesize; ++i)
6356 *(data2 + i) = *(data2 + i) + 1;
6357 data3 = (char *) malloc (pagesize);
6360 if (read (fd, data3, pagesize) != pagesize)
6362 for (i = 0; i < pagesize; ++i)
6363 if (*(data + i) != *(data3 + i))
6369 if ac_fn_c_try_run
"$LINENO"; then :
6370 ac_cv_func_mmap_fixed_mapped
=yes
6372 ac_cv_func_mmap_fixed_mapped
=no
6374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6380 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6381 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6383 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6386 rm -f conftest.mmap conftest.txt
6388 for ac_header
in stdlib.h
6390 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6391 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6392 cat >>confdefs.h
<<_ACEOF
6393 #define HAVE_STDLIB_H 1
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6401 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6402 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 if test "$cross_compiling" = yes; then :
6406 ac_cv_func_realloc_0_nonnull
=no
6408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6411 # include <stdlib.h>
6419 return ! realloc (0, 0);
6424 if ac_fn_c_try_run
"$LINENO"; then :
6425 ac_cv_func_realloc_0_nonnull
=yes
6427 ac_cv_func_realloc_0_nonnull
=no
6429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6435 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6436 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6438 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6441 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6443 case " $LIBOBJS " in
6444 *" realloc.$ac_objext "* ) ;;
6445 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6450 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6456 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6457 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6460 if test "$cross_compiling" = yes; then :
6461 ac_cv_func_stat_empty_string_bug
=yes
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 $ac_includes_default
6470 return stat ("", &sbuf) == 0;
6475 if ac_fn_c_try_run
"$LINENO"; then :
6476 ac_cv_func_stat_empty_string_bug
=no
6478 ac_cv_func_stat_empty_string_bug
=yes
6480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6486 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6487 if test $ac_cv_func_stat_empty_string_bug = yes; then
6488 case " $LIBOBJS " in
6489 *" stat.$ac_objext "* ) ;;
6490 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
6495 cat >>confdefs.h
<<_ACEOF
6496 #define HAVE_STAT_EMPTY_STRING_BUG 1
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6502 $as_echo_n "checking for working strtod... " >&6; }
6503 if test "${ac_cv_func_strtod+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 if test "$cross_compiling" = yes; then :
6507 ac_cv_func_strtod
=no
6509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6512 $ac_includes_default
6520 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6521 char *string = " +69";
6524 value = strtod (string, &term);
6525 if (value != 69 || term != (string + 4))
6530 /* Under Solaris 2.4, strtod returns the wrong value for the
6531 terminating character under some conditions. */
6532 char *string = "NaN";
6534 strtod (string, &term);
6535 if (term != string && *(term - 1) == 0)
6542 if ac_fn_c_try_run
"$LINENO"; then :
6543 ac_cv_func_strtod
=yes
6545 ac_cv_func_strtod
=no
6547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6553 $as_echo "$ac_cv_func_strtod" >&6; }
6554 if test $ac_cv_func_strtod = no
; then
6555 case " $LIBOBJS " in
6556 *" strtod.$ac_objext "* ) ;;
6557 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
6561 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
6562 if test "x$ac_cv_func_pow" = x
""yes; then :
6566 if test $ac_cv_func_pow = no
; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6568 $as_echo_n "checking for pow in -lm... " >&6; }
6569 if test "${ac_cv_lib_m_pow+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6572 ac_check_lib_save_LIBS
=$LIBS
6574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6577 /* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6592 if ac_fn_c_try_link
"$LINENO"; then :
6597 rm -f core conftest.err conftest.
$ac_objext \
6598 conftest
$ac_exeext conftest.
$ac_ext
6599 LIBS
=$ac_check_lib_save_LIBS
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6602 $as_echo "$ac_cv_lib_m_pow" >&6; }
6603 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6607 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6614 for ac_func
in vprintf
6616 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6617 if test "x$ac_cv_func_vprintf" = x
""yes; then :
6618 cat >>confdefs.h
<<_ACEOF
6619 #define HAVE_VPRINTF 1
6622 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6623 if test "x$ac_cv_func__doprnt" = x
""yes; then :
6625 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6634 ################################################################################
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6636 $as_echo_n "checking whether to use static linking... " >&6; }
6637 # Check whether --enable-static_link was given.
6638 if test "${enable_static_link+set}" = set; then :
6639 enableval
=$enable_static_link; STATIC_LINK
=$enableval
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6645 $as_echo "$STATIC_LINK" >&6; }
6647 ################################################################################
6650 ################################################################################
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6652 $as_echo_n "checking file owner... " >&6; }
6654 # Check whether --with-user was given.
6655 if test "${with_user+set}" = set; then :
6656 withval
=$with_user; OWNER
=$withval
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6660 $as_echo "$OWNER" >&6; }
6662 if test x
$OWNER != x
; then
6663 INSTALL
="$INSTALL -o $OWNER"
6666 ################################################################################
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6668 $as_echo_n "checking group owner... " >&6; }
6670 # Check whether --with-group was given.
6671 if test "${with_group+set}" = set; then :
6672 withval
=$with_group; GROUP
=$withval
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6676 $as_echo "$GROUP" >&6; }
6678 if test x
$GROUP != x
; then
6679 INSTALL
="$INSTALL -g $GROUP"
6682 ################################################################################
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6684 $as_echo_n "checking device node uid... " >&6; }
6687 # Check whether --with-device-uid was given.
6688 if test "${with_device_uid+set}" = set; then :
6689 withval
=$with_device_uid; DM_DEVICE_UID
=$withval
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6695 $as_echo "$DM_DEVICE_UID" >&6; }
6697 ################################################################################
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6699 $as_echo_n "checking device node gid... " >&6; }
6702 # Check whether --with-device-gid was given.
6703 if test "${with_device_gid+set}" = set; then :
6704 withval
=$with_device_gid; DM_DEVICE_GID
=$withval
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6710 $as_echo "$DM_DEVICE_GID" >&6; }
6712 ################################################################################
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6714 $as_echo_n "checking device node mode... " >&6; }
6717 # Check whether --with-device-mode was given.
6718 if test "${with_device_mode+set}" = set; then :
6719 withval
=$with_device_mode; DM_DEVICE_MODE
=$withval
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6725 $as_echo "$DM_DEVICE_MODE" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6728 $as_echo_n "checking when to create device nodes... " >&6; }
6730 # Check whether --with-device-nodes-on was given.
6731 if test "${with_device_nodes_on+set}" = set; then :
6732 withval
=$with_device_nodes_on; ADD_NODE
=$withval
6738 resume
) add_on
=DM_ADD_NODE_ON_RESUME
;;
6739 create
) add_on
=DM_ADD_NODE_ON_CREATE
;;
6740 *) as_fn_error $?
"--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6743 $as_echo "on $ADD_NODE" >&6; }
6745 cat >>confdefs.h
<<_ACEOF
6746 #define DEFAULT_DM_ADD_NODE $add_on
6750 ################################################################################
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6752 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6753 # Check whether --enable-lvm1_fallback was given.
6754 if test "${enable_lvm1_fallback+set}" = set; then :
6755 enableval
=$enable_lvm1_fallback; LVM1_FALLBACK
=$enableval
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6761 $as_echo "$LVM1_FALLBACK" >&6; }
6763 if test x
$LVM1_FALLBACK = xyes
; then
6765 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6769 ################################################################################
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6771 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6773 # Check whether --with-lvm1 was given.
6774 if test "${with_lvm1+set}" = set; then :
6775 withval
=$with_lvm1; LVM1
=$withval
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6781 $as_echo "$LVM1" >&6; }
6783 if [ "x$LVM1" != xnone
-a "x$LVM1" != xinternal
-a "x$LVM1" != xshared
];
6784 then as_fn_error $?
"--with-lvm1 parameter invalid
6788 if test x
$LVM1 = xinternal
; then
6790 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6794 ################################################################################
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6796 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6798 # Check whether --with-pool was given.
6799 if test "${with_pool+set}" = set; then :
6800 withval
=$with_pool; POOL
=$withval
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6806 $as_echo "$POOL" >&6; }
6808 if [ "x$POOL" != xnone
-a "x$POOL" != xinternal
-a "x$POOL" != xshared
];
6809 then as_fn_error $?
"--with-pool parameter invalid
6813 if test x
$POOL = xinternal
; then
6815 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6819 ################################################################################
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6821 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6823 # Check whether --with-cluster was given.
6824 if test "${with_cluster+set}" = set; then :
6825 withval
=$with_cluster; CLUSTER
=$withval
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6829 $as_echo "$CLUSTER" >&6; }
6831 if [ "x$CLUSTER" != xnone
-a "x$CLUSTER" != xinternal
-a "x$CLUSTER" != xshared
];
6832 then as_fn_error $?
"--with-cluster parameter invalid
6836 if test x
$CLUSTER = xinternal
; then
6838 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6842 ################################################################################
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6844 $as_echo_n "checking whether to include snapshots... " >&6; }
6846 # Check whether --with-snapshots was given.
6847 if test "${with_snapshots+set}" = set; then :
6848 withval
=$with_snapshots; SNAPSHOTS
=$withval
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6854 $as_echo "$SNAPSHOTS" >&6; }
6856 if [ "x$SNAPSHOTS" != xnone
-a "x$SNAPSHOTS" != xinternal
-a "x$SNAPSHOTS" != xshared
];
6857 then as_fn_error $?
"--with-snapshots parameter invalid
6861 if test x
$SNAPSHOTS = xinternal
; then
6863 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6867 ################################################################################
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6869 $as_echo_n "checking whether to include mirrors... " >&6; }
6871 # Check whether --with-mirrors was given.
6872 if test "${with_mirrors+set}" = set; then :
6873 withval
=$with_mirrors; MIRRORS
=$withval
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6879 $as_echo "$MIRRORS" >&6; }
6881 if [ "x$MIRRORS" != xnone
-a "x$MIRRORS" != xinternal
-a "x$MIRRORS" != xshared
];
6882 then as_fn_error $?
"--with-mirrors parameter invalid
6886 if test x
$MIRRORS = xinternal
; then
6888 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6892 ################################################################################
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6894 $as_echo_n "checking whether to include raid... " >&6; }
6896 # Check whether --with-raid was given.
6897 if test "${with_raid+set}" = set; then :
6898 withval
=$with_raid; RAID
=$withval
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6904 $as_echo "$RAID" >&6; }
6906 if [ "x$RAID" != xnone
-a "x$RAID" != xinternal
-a "x$RAID" != xshared
];
6907 then as_fn_error $?
"--with-raid parameter invalid
6911 if test x
$RAID = xinternal
; then
6913 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6917 ################################################################################
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6919 $as_echo_n "checking whether to include replicators... " >&6; }
6921 # Check whether --with-replicators was given.
6922 if test "${with_replicators+set}" = set; then :
6923 withval
=$with_replicators; REPLICATORS
=$withval
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6929 $as_echo "$REPLICATORS" >&6; }
6931 case "$REPLICATORS" in
6934 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6936 *) as_fn_error $?
"--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6939 ################################################################################
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6941 $as_echo_n "checking whether to enable readline... " >&6; }
6942 # Check whether --enable-readline was given.
6943 if test "${enable_readline+set}" = set; then :
6944 enableval
=$enable_readline; READLINE
=$enableval
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6950 $as_echo "$READLINE" >&6; }
6952 ################################################################################
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6954 $as_echo_n "checking whether to enable realtime support... " >&6; }
6955 # Check whether --enable-realtime was given.
6956 if test "${enable_realtime+set}" = set; then :
6957 enableval
=$enable_realtime; REALTIME
=$enableval
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6961 $as_echo "$REALTIME" >&6; }
6963 ################################################################################
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6965 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6966 # Check whether --enable-ocf was given.
6967 if test "${enable_ocf+set}" = set; then :
6968 enableval
=$enable_ocf; OCF
=$enableval
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6974 $as_echo "$OCF" >&6; }
6976 # Check whether --with-ocfdir was given.
6977 if test "${with_ocfdir+set}" = set; then :
6978 withval
=$with_ocfdir; OCFDIR
=$withval
6980 OCFDIR
='${prefix}/lib/ocf/resource.d/lvm2'
6984 ################################################################################
6992 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6995 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7003 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir
=.
7011 for ac_exec_ext
in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7025 if test -n "$PKG_CONFIG"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7027 $as_echo "$PKG_CONFIG" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7035 if test -z "$ac_cv_path_PKG_CONFIG"; then
7036 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7037 # Extract the first word of "pkg-config", so it can be a program name with args.
7038 set dummy pkg-config
; ac_word
=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7044 case $ac_pt_PKG_CONFIG in
7046 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir
=.
7054 for ac_exec_ext
in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7068 if test -n "$ac_pt_PKG_CONFIG"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7076 if test "x$ac_pt_PKG_CONFIG" = x
; then
7079 case $cross_compiling:$ac_tool_warned in
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned
=yes ;;
7085 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7088 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7092 if test -n "$PKG_CONFIG"; then
7093 _pkg_min_version
=0.9.0
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7095 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7098 $as_echo "yes" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7108 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7110 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7111 pkg_cv_PKGCONFIGINIT_CFLAGS
="$PKGCONFIGINIT_CFLAGS"
7112 elif test -n "$PKG_CONFIG"; then
7113 if test -n "$PKG_CONFIG" && \
7114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7115 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; }; then
7119 pkg_cv_PKGCONFIGINIT_CFLAGS
=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7126 if test -n "$PKGCONFIGINIT_LIBS"; then
7127 pkg_cv_PKGCONFIGINIT_LIBS
="$PKGCONFIGINIT_LIBS"
7128 elif test -n "$PKG_CONFIG"; then
7129 if test -n "$PKG_CONFIG" && \
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7131 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 pkg_cv_PKGCONFIGINIT_LIBS
=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7145 if test $pkg_failed = yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7150 _pkg_short_errors_supported
=yes
7152 _pkg_short_errors_supported
=no
7154 if test $_pkg_short_errors_supported = yes; then
7155 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7157 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7159 # Put the nasty error message in config.log where it belongs
7160 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7163 $as_echo "pkg-config initialized" >&6; }
7164 elif test $pkg_failed = untried
; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7168 $as_echo "pkg-config initialized" >&6; }
7170 PKGCONFIGINIT_CFLAGS
=$pkg_cv_PKGCONFIGINIT_CFLAGS
7171 PKGCONFIGINIT_LIBS
=$pkg_cv_PKGCONFIGINIT_LIBS
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7173 $as_echo "yes" >&6; }
7179 ################################################################################
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7181 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7183 # Check whether --with-clvmd was given.
7184 if test "${with_clvmd+set}" = set; then :
7185 withval
=$with_clvmd; CLVMD
=$withval
7190 if test x
$CLVMD = xyes
; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7194 $as_echo "$CLVMD" >&6; }
7196 if test x
$CLVMD != xnone
&& test x
$CLUSTER = xnone
; then
7200 if test x
$CLVMD != xnone
&& test x
$PKGCONFIG_INIT != x1
; then
7205 CLVMD_NEEDS_QDISKD
=no
7207 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7209 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS lock_gulmd"
7210 CLVMD_NEEDS_QDISKD
=yes
7212 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7214 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7215 CLVMD_NEEDS_QDISKD
=yes
7217 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7219 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7221 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7223 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7225 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7226 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7229 if test x
$BUILDGULM = xyes
; then
7230 if test x
$BUILDCOROSYNC = xyes || \
7231 test x
$BUILDOPENAIS = xyes
; then
7232 as_fn_error $?
"requested clvmd configuration is not valid" "$LINENO" 5
7241 as_fn_error $?
"bailing out" "$LINENO" 5
7244 if test x
$CLVMD = xall
; then
7245 bailout
=soft_bailout
7251 bailout
=hard_bailout
7254 check_lib_no_libs
() {
7260 as_ac_Lib
=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7262 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7263 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7264 $as_echo_n "(cached) " >&6
7266 ac_check_lib_save_LIBS
=$LIBS
7267 LIBS
="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7277 char $lib_no_libs_arg2 ();
7281 return $lib_no_libs_arg2 ();
7286 if ac_fn_c_try_link
"$LINENO"; then :
7287 eval "$as_ac_Lib=yes"
7289 eval "$as_ac_Lib=no"
7291 rm -f core conftest.err conftest.
$ac_objext \
7292 conftest
$ac_exeext conftest.
$ac_ext
7293 LIBS
=$ac_check_lib_save_LIBS
7295 eval ac_res
=\$
$as_ac_Lib
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7297 $as_echo "$ac_res" >&6; }
7298 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
7299 cat >>confdefs.h
<<_ACEOF
7300 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7303 LIBS
="-l$lib_no_libs_arg1 $LIBS"
7309 LIBS
=$ac_check_lib_save_LIBS
7312 if test x
$BUILDGULM = xyes
; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7316 $as_echo_n "checking for CCS... " >&6; }
7318 if test -n "$CCS_CFLAGS"; then
7319 pkg_cv_CCS_CFLAGS
="$CCS_CFLAGS"
7320 elif test -n "$PKG_CONFIG"; then
7321 if test -n "$PKG_CONFIG" && \
7322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7323 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 pkg_cv_CCS_CFLAGS
=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
7334 if test -n "$CCS_LIBS"; then
7335 pkg_cv_CCS_LIBS
="$CCS_LIBS"
7336 elif test -n "$PKG_CONFIG"; then
7337 if test -n "$PKG_CONFIG" && \
7338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7339 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 pkg_cv_CCS_LIBS
=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7353 if test $pkg_failed = yes; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7358 _pkg_short_errors_supported
=yes
7360 _pkg_short_errors_supported
=no
7362 if test $_pkg_short_errors_supported = yes; then
7363 CCS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7365 CCS_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7367 # Put the nasty error message in config.log where it belongs
7368 echo "$CCS_PKG_ERRORS" >&5
7371 for ac_header
in ccs.h
7373 ac_fn_c_check_header_mongrel
"$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7374 if test "x$ac_cv_header_ccs_h" = x
""yes; then :
7375 cat >>confdefs.h
<<_ACEOF
7376 #define HAVE_CCS_H 1
7385 check_lib_no_libs ccs ccs_connect
7386 if test $NOTFOUND = 0; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7388 $as_echo "no pkg for libccs, using -lccs" >&6; }
7392 elif test $pkg_failed = untried
; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7396 for ac_header
in ccs.h
7398 ac_fn_c_check_header_mongrel
"$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7399 if test "x$ac_cv_header_ccs_h" = x
""yes; then :
7400 cat >>confdefs.h
<<_ACEOF
7401 #define HAVE_CCS_H 1
7410 check_lib_no_libs ccs ccs_connect
7411 if test $NOTFOUND = 0; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7413 $as_echo "no pkg for libccs, using -lccs" >&6; }
7418 CCS_CFLAGS
=$pkg_cv_CCS_CFLAGS
7419 CCS_LIBS
=$pkg_cv_CCS_LIBS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7427 $as_echo_n "checking for GULM... " >&6; }
7429 if test -n "$GULM_CFLAGS"; then
7430 pkg_cv_GULM_CFLAGS
="$GULM_CFLAGS"
7431 elif test -n "$PKG_CONFIG"; then
7432 if test -n "$PKG_CONFIG" && \
7433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7434 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 pkg_cv_GULM_CFLAGS
=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7445 if test -n "$GULM_LIBS"; then
7446 pkg_cv_GULM_LIBS
="$GULM_LIBS"
7447 elif test -n "$PKG_CONFIG"; then
7448 if test -n "$PKG_CONFIG" && \
7449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7450 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; then
7454 pkg_cv_GULM_LIBS
=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7464 if test $pkg_failed = yes; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7469 _pkg_short_errors_supported
=yes
7471 _pkg_short_errors_supported
=no
7473 if test $_pkg_short_errors_supported = yes; then
7474 GULM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7476 GULM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7478 # Put the nasty error message in config.log where it belongs
7479 echo "$GULM_PKG_ERRORS" >&5
7482 for ac_header
in libgulm.h
7484 ac_fn_c_check_header_mongrel
"$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7485 if test "x$ac_cv_header_libgulm_h" = x
""yes; then :
7486 cat >>confdefs.h
<<_ACEOF
7487 #define HAVE_LIBGULM_H 1
7496 check_lib_no_libs gulm lg_core_login
7497 if test $NOTFOUND = 0; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7499 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7503 elif test $pkg_failed = untried
; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7507 for ac_header
in libgulm.h
7509 ac_fn_c_check_header_mongrel
"$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7510 if test "x$ac_cv_header_libgulm_h" = x
""yes; then :
7511 cat >>confdefs.h
<<_ACEOF
7512 #define HAVE_LIBGULM_H 1
7521 check_lib_no_libs gulm lg_core_login
7522 if test $NOTFOUND = 0; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7524 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7529 GULM_CFLAGS
=$pkg_cv_GULM_CFLAGS
7530 GULM_LIBS
=$pkg_cv_GULM_LIBS
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532 $as_echo "yes" >&6; }
7537 if test x
$BUILDCMAN = xyes
; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7541 $as_echo_n "checking for CMAN... " >&6; }
7543 if test -n "$CMAN_CFLAGS"; then
7544 pkg_cv_CMAN_CFLAGS
="$CMAN_CFLAGS"
7545 elif test -n "$PKG_CONFIG"; then
7546 if test -n "$PKG_CONFIG" && \
7547 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7548 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 pkg_cv_CMAN_CFLAGS
=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7559 if test -n "$CMAN_LIBS"; then
7560 pkg_cv_CMAN_LIBS
="$CMAN_LIBS"
7561 elif test -n "$PKG_CONFIG"; then
7562 if test -n "$PKG_CONFIG" && \
7563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7564 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; then
7568 pkg_cv_CMAN_LIBS
=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7578 if test $pkg_failed = yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7583 _pkg_short_errors_supported
=yes
7585 _pkg_short_errors_supported
=no
7587 if test $_pkg_short_errors_supported = yes; then
7588 CMAN_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7590 CMAN_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7592 # Put the nasty error message in config.log where it belongs
7593 echo "$CMAN_PKG_ERRORS" >&5
7596 for ac_header
in libcman.h
7598 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7599 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7600 cat >>confdefs.h
<<_ACEOF
7601 #define HAVE_LIBCMAN_H 1
7610 check_lib_no_libs cman cman_init
7611 if test $NOTFOUND = 0; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7613 $as_echo "no pkg for libcman, using -lcman" >&6; }
7617 elif test $pkg_failed = untried
; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7621 for ac_header
in libcman.h
7623 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7624 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7625 cat >>confdefs.h
<<_ACEOF
7626 #define HAVE_LIBCMAN_H 1
7635 check_lib_no_libs cman cman_init
7636 if test $NOTFOUND = 0; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7638 $as_echo "no pkg for libcman, using -lcman" >&6; }
7643 CMAN_CFLAGS
=$pkg_cv_CMAN_CFLAGS
7644 CMAN_LIBS
=$pkg_cv_CMAN_LIBS
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646 $as_echo "yes" >&6; }
7653 if test x
$BUILDCOROSYNC = xyes || \
7654 test x
$BUILDOPENAIS = xyes
; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7658 $as_echo_n "checking for COROSYNC... " >&6; }
7660 if test -n "$COROSYNC_CFLAGS"; then
7661 pkg_cv_COROSYNC_CFLAGS
="$COROSYNC_CFLAGS"
7662 elif test -n "$PKG_CONFIG"; then
7663 if test -n "$PKG_CONFIG" && \
7664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7665 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 pkg_cv_COROSYNC_CFLAGS
=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7676 if test -n "$COROSYNC_LIBS"; then
7677 pkg_cv_COROSYNC_LIBS
="$COROSYNC_LIBS"
7678 elif test -n "$PKG_CONFIG"; then
7679 if test -n "$PKG_CONFIG" && \
7680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7681 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; then
7685 pkg_cv_COROSYNC_LIBS
=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7695 if test $pkg_failed = yes; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7700 _pkg_short_errors_supported
=yes
7702 _pkg_short_errors_supported
=no
7704 if test $_pkg_short_errors_supported = yes; then
7705 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7707 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7709 # Put the nasty error message in config.log where it belongs
7710 echo "$COROSYNC_PKG_ERRORS" >&5
7713 elif test $pkg_failed = untried
; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7718 COROSYNC_CFLAGS
=$pkg_cv_COROSYNC_CFLAGS
7719 COROSYNC_LIBS
=$pkg_cv_COROSYNC_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721 $as_echo "yes" >&6; }
7727 if test x
$BUILDCOROSYNC = xyes
; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7731 $as_echo_n "checking for QUORUM... " >&6; }
7733 if test -n "$QUORUM_CFLAGS"; then
7734 pkg_cv_QUORUM_CFLAGS
="$QUORUM_CFLAGS"
7735 elif test -n "$PKG_CONFIG"; then
7736 if test -n "$PKG_CONFIG" && \
7737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7738 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 pkg_cv_QUORUM_CFLAGS
=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7749 if test -n "$QUORUM_LIBS"; then
7750 pkg_cv_QUORUM_LIBS
="$QUORUM_LIBS"
7751 elif test -n "$PKG_CONFIG"; then
7752 if test -n "$PKG_CONFIG" && \
7753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7754 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }; then
7758 pkg_cv_QUORUM_LIBS
=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7768 if test $pkg_failed = yes; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7773 _pkg_short_errors_supported
=yes
7775 _pkg_short_errors_supported
=no
7777 if test $_pkg_short_errors_supported = yes; then
7778 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7780 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7782 # Put the nasty error message in config.log where it belongs
7783 echo "$QUORUM_PKG_ERRORS" >&5
7786 elif test $pkg_failed = untried
; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7791 QUORUM_CFLAGS
=$pkg_cv_QUORUM_CFLAGS
7792 QUORUM_LIBS
=$pkg_cv_QUORUM_LIBS
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7801 if test x
$BUILDOPENAIS = xyes
; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7805 $as_echo_n "checking for SALCK... " >&6; }
7807 if test -n "$SALCK_CFLAGS"; then
7808 pkg_cv_SALCK_CFLAGS
="$SALCK_CFLAGS"
7809 elif test -n "$PKG_CONFIG"; then
7810 if test -n "$PKG_CONFIG" && \
7811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7812 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; }; then
7816 pkg_cv_SALCK_CFLAGS
=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7823 if test -n "$SALCK_LIBS"; then
7824 pkg_cv_SALCK_LIBS
="$SALCK_LIBS"
7825 elif test -n "$PKG_CONFIG"; then
7826 if test -n "$PKG_CONFIG" && \
7827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7828 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 pkg_cv_SALCK_LIBS
=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7842 if test $pkg_failed = yes; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7847 _pkg_short_errors_supported
=yes
7849 _pkg_short_errors_supported
=no
7851 if test $_pkg_short_errors_supported = yes; then
7852 SALCK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7854 SALCK_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7856 # Put the nasty error message in config.log where it belongs
7857 echo "$SALCK_PKG_ERRORS" >&5
7860 elif test $pkg_failed = untried
; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 SALCK_CFLAGS
=$pkg_cv_SALCK_CFLAGS
7866 SALCK_LIBS
=$pkg_cv_SALCK_LIBS
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868 $as_echo "yes" >&6; }
7876 if test x
$CHECKCONFDB = xyes
; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7880 $as_echo_n "checking for CONFDB... " >&6; }
7882 if test -n "$CONFDB_CFLAGS"; then
7883 pkg_cv_CONFDB_CFLAGS
="$CONFDB_CFLAGS"
7884 elif test -n "$PKG_CONFIG"; then
7885 if test -n "$PKG_CONFIG" && \
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7887 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 pkg_cv_CONFDB_CFLAGS
=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7898 if test -n "$CONFDB_LIBS"; then
7899 pkg_cv_CONFDB_LIBS
="$CONFDB_LIBS"
7900 elif test -n "$PKG_CONFIG"; then
7901 if test -n "$PKG_CONFIG" && \
7902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7903 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 pkg_cv_CONFDB_LIBS
=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7917 if test $pkg_failed = yes; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7922 _pkg_short_errors_supported
=yes
7924 _pkg_short_errors_supported
=no
7926 if test $_pkg_short_errors_supported = yes; then
7927 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7929 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7931 # Put the nasty error message in config.log where it belongs
7932 echo "$CONFDB_PKG_ERRORS" >&5
7935 elif test $pkg_failed = untried
; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7940 CONFDB_CFLAGS
=$pkg_cv_CONFDB_CFLAGS
7941 CONFDB_LIBS
=$pkg_cv_CONFDB_LIBS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7947 for ac_header
in corosync
/confdb.h
7949 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7950 if test "x$ac_cv_header_corosync_confdb_h" = x
""yes; then :
7951 cat >>confdefs.h
<<_ACEOF
7952 #define HAVE_COROSYNC_CONFDB_H 1
7962 if test x
$HAVE_CONFDB != xyes
&& \
7963 test x
$HAVE_CONFDB_H = xyes
; then
7964 check_lib_no_libs confdb confdb_initialize
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7966 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7967 CONFDB_LIBS
="-lconfdb"
7971 if test x
$BUILDCOROSYNC = xyes
&& \
7972 test x
$HAVE_CONFDB != xyes
&&
7973 test x
$CLVMD != xall
; then
7974 as_fn_error $?
"bailing out... confdb library is required" "$LINENO" 5
7978 if test x
$CHECKCPG = xyes
; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7982 $as_echo_n "checking for CPG... " >&6; }
7984 if test -n "$CPG_CFLAGS"; then
7985 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
7986 elif test -n "$PKG_CONFIG"; then
7987 if test -n "$PKG_CONFIG" && \
7988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7989 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992 test $ac_status = 0; }; then
7993 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8000 if test -n "$CPG_LIBS"; then
8001 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8002 elif test -n "$PKG_CONFIG"; then
8003 if test -n "$PKG_CONFIG" && \
8004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8005 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8008 test $ac_status = 0; }; then
8009 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8019 if test $pkg_failed = yes; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8024 _pkg_short_errors_supported
=yes
8026 _pkg_short_errors_supported
=no
8028 if test $_pkg_short_errors_supported = yes; then
8029 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8031 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8033 # Put the nasty error message in config.log where it belongs
8034 echo "$CPG_PKG_ERRORS" >&5
8037 elif test $pkg_failed = untried
; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8042 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8043 CPG_LIBS
=$pkg_cv_CPG_LIBS
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045 $as_echo "yes" >&6; }
8050 if test x
$CHECKDLM = xyes
; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8054 $as_echo_n "checking for DLM... " >&6; }
8056 if test -n "$DLM_CFLAGS"; then
8057 pkg_cv_DLM_CFLAGS
="$DLM_CFLAGS"
8058 elif test -n "$PKG_CONFIG"; then
8059 if test -n "$PKG_CONFIG" && \
8060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8061 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8064 test $ac_status = 0; }; then
8065 pkg_cv_DLM_CFLAGS
=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8072 if test -n "$DLM_LIBS"; then
8073 pkg_cv_DLM_LIBS
="$DLM_LIBS"
8074 elif test -n "$PKG_CONFIG"; then
8075 if test -n "$PKG_CONFIG" && \
8076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8077 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080 test $ac_status = 0; }; then
8081 pkg_cv_DLM_LIBS
=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8091 if test $pkg_failed = yes; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8096 _pkg_short_errors_supported
=yes
8098 _pkg_short_errors_supported
=no
8100 if test $_pkg_short_errors_supported = yes; then
8101 DLM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8103 DLM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8105 # Put the nasty error message in config.log where it belongs
8106 echo "$DLM_PKG_ERRORS" >&5
8109 for ac_header
in libdlm.h
8111 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8112 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8113 cat >>confdefs.h
<<_ACEOF
8114 #define HAVE_LIBDLM_H 1
8123 check_lib_no_libs dlm dlm_lock
-lpthread
8124 if test $NOTFOUND = 0; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8126 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8127 DLM_LIBS
="-ldlm -lpthread"
8130 elif test $pkg_failed = untried
; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8134 for ac_header
in libdlm.h
8136 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8137 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8138 cat >>confdefs.h
<<_ACEOF
8139 #define HAVE_LIBDLM_H 1
8148 check_lib_no_libs dlm dlm_lock
-lpthread
8149 if test $NOTFOUND = 0; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8151 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8152 DLM_LIBS
="-ldlm -lpthread"
8156 DLM_CFLAGS
=$pkg_cv_DLM_CFLAGS
8157 DLM_LIBS
=$pkg_cv_DLM_LIBS
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159 $as_echo "yes" >&6; }
8164 if test x
$CLVMD = xall
; then
8167 CLVMD_NEEDS_QDISKD
=no
8168 if test x
$HAVE_CCS = xyes
&& \
8169 test x
$HAVE_GULM = xyes
; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8171 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
8173 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS lock_gulmd"
8174 CLVMD_NEEDS_QDISKD
=yes
8176 if test x
$HAVE_CMAN = xyes
&& \
8177 test x
$HAVE_DLM = xyes
; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8179 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8181 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
8182 CLVMD_NEEDS_QDISKD
=yes
8184 if test x
$HAVE_COROSYNC = xyes
&& \
8185 test x
$HAVE_QUORUM = xyes
&& \
8186 test x
$HAVE_CPG = xyes
&& \
8187 test x
$HAVE_DLM = xyes
&& \
8188 test x
$HAVE_CONFDB = xyes
; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8190 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8191 CLVMD
="$CLVMD,corosync"
8192 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
8194 if test x
$HAVE_COROSYNC = xyes
&& \
8195 test x
$HAVE_CPG = xyes
&& \
8196 test x
$HAVE_SALCK = xyes
; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8198 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8199 CLVMD
="$CLVMD,openais"
8200 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
8202 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
8203 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
8205 if test x
$CLVMD = xnone
; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8207 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8211 ################################################################################
8212 if test "x$CLVMD" != xnone
; then
8214 # Check whether --with-clvmd-pidfile was given.
8215 if test "${with_clvmd_pidfile+set}" = set; then :
8216 withval
=$with_clvmd_pidfile; CLVMD_PIDFILE
=$withval
8218 CLVMD_PIDFILE
="/var/run/clvmd.pid"
8222 cat >>confdefs.h
<<_ACEOF
8223 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8228 ################################################################################
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8230 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8231 # Check whether --enable-cmirrord was given.
8232 if test "${enable_cmirrord+set}" = set; then :
8233 enableval
=$enable_cmirrord; CMIRRORD
=$enableval
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8239 $as_echo "$CMIRRORD" >&6; }
8241 BUILD_CMIRRORD
=$CMIRRORD
8243 ################################################################################
8244 if test "x$BUILD_CMIRRORD" = xyes
; then
8246 # Check whether --with-cmirrord-pidfile was given.
8247 if test "${with_cmirrord_pidfile+set}" = set; then :
8248 withval
=$with_cmirrord_pidfile; CMIRRORD_PIDFILE
=$withval
8250 CMIRRORD_PIDFILE
="/var/run/cmirrord.pid"
8254 cat >>confdefs.h
<<_ACEOF
8255 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8260 ################################################################################
8261 if [ "x$BUILD_CMIRRORD" = xyes
]; then
8262 if test x
$PKGCONFIG_INIT != x1
; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8268 $as_echo_n "checking for SACKPT... " >&6; }
8270 if test -n "$SACKPT_CFLAGS"; then
8271 pkg_cv_SACKPT_CFLAGS
="$SACKPT_CFLAGS"
8272 elif test -n "$PKG_CONFIG"; then
8273 if test -n "$PKG_CONFIG" && \
8274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8275 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278 test $ac_status = 0; }; then
8279 pkg_cv_SACKPT_CFLAGS
=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8286 if test -n "$SACKPT_LIBS"; then
8287 pkg_cv_SACKPT_LIBS
="$SACKPT_LIBS"
8288 elif test -n "$PKG_CONFIG"; then
8289 if test -n "$PKG_CONFIG" && \
8290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8291 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8294 test $ac_status = 0; }; then
8295 pkg_cv_SACKPT_LIBS
=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8305 if test $pkg_failed = yes; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8310 _pkg_short_errors_supported
=yes
8312 _pkg_short_errors_supported
=no
8314 if test $_pkg_short_errors_supported = yes; then
8315 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8317 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8319 # Put the nasty error message in config.log where it belongs
8320 echo "$SACKPT_PKG_ERRORS" >&5
8322 as_fn_error $?
"Package requirements (libSaCkpt) were not met:
8326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8327 installed software in a non-standard prefix.
8329 Alternatively, you may set the environment variables SACKPT_CFLAGS
8330 and SACKPT_LIBS to avoid the need to call pkg-config.
8331 See the pkg-config man page for more details." "$LINENO" 5
8333 elif test $pkg_failed = untried
; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8338 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8339 is in your PATH or set the PKG_CONFIG environment variable to the full
8342 Alternatively, you may set the environment variables SACKPT_CFLAGS
8343 and SACKPT_LIBS to avoid the need to call pkg-config.
8344 See the pkg-config man page for more details.
8346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8347 See \`config.log' for more details" "$LINENO" 5; }
8350 SACKPT_CFLAGS
=$pkg_cv_SACKPT_CFLAGS
8351 SACKPT_LIBS
=$pkg_cv_SACKPT_LIBS
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353 $as_echo "yes" >&6; }
8356 if test x
$HAVE_CPG != xyes
; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8360 $as_echo_n "checking for CPG... " >&6; }
8362 if test -n "$CPG_CFLAGS"; then
8363 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8364 elif test -n "$PKG_CONFIG"; then
8365 if test -n "$PKG_CONFIG" && \
8366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8367 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8370 test $ac_status = 0; }; then
8371 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8378 if test -n "$CPG_LIBS"; then
8379 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8380 elif test -n "$PKG_CONFIG"; then
8381 if test -n "$PKG_CONFIG" && \
8382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8383 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8387 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8397 if test $pkg_failed = yes; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8402 _pkg_short_errors_supported
=yes
8404 _pkg_short_errors_supported
=no
8406 if test $_pkg_short_errors_supported = yes; then
8407 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8409 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8411 # Put the nasty error message in config.log where it belongs
8412 echo "$CPG_PKG_ERRORS" >&5
8414 as_fn_error $?
"Package requirements (libcpg) were not met:
8418 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8419 installed software in a non-standard prefix.
8421 Alternatively, you may set the environment variables CPG_CFLAGS
8422 and CPG_LIBS to avoid the need to call pkg-config.
8423 See the pkg-config man page for more details." "$LINENO" 5
8425 elif test $pkg_failed = untried
; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8430 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8431 is in your PATH or set the PKG_CONFIG environment variable to the full
8434 Alternatively, you may set the environment variables CPG_CFLAGS
8435 and CPG_LIBS to avoid the need to call pkg-config.
8436 See the pkg-config man page for more details.
8438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8439 See \`config.log' for more details" "$LINENO" 5; }
8442 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8443 CPG_LIBS
=$pkg_cv_CPG_LIBS
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8451 ################################################################################
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8453 $as_echo_n "checking whether to enable debugging... " >&6; }
8454 # Check whether --enable-debug was given.
8455 if test "${enable_debug+set}" = set; then :
8456 enableval
=$enable_debug; DEBUG
=$enableval
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8462 $as_echo "$DEBUG" >&6; }
8464 if test x
$DEBUG = xyes
; then
8470 ################################################################################
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8472 $as_echo_n "checking for C optimisation flag... " >&6; }
8474 # Check whether --with-optimisation was given.
8475 if test "${with_optimisation+set}" = set; then :
8476 withval
=$with_optimisation; COPTIMISE_FLAG
=$withval
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8480 $as_echo "$COPTIMISE_FLAG" >&6; }
8482 ################################################################################
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8484 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8485 # Check whether --enable-profiling was given.
8486 if test "${enable_profiling+set}" = set; then :
8487 enableval
=$enable_profiling; PROFILING
=$enableval
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8493 $as_echo "$PROFILING" >&6; }
8495 if test "x$PROFILING" = xyes
; then
8496 COPTIMISE_FLAG
="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8497 # Extract the first word of "lcov", so it can be a program name with args.
8498 set dummy lcov
; ac_word
=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_path_LCOV+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8506 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
8509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir
=.
8514 for ac_exec_ext
in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 LCOV
=$ac_cv_path_LCOV
8528 if test -n "$LCOV"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8530 $as_echo "$LCOV" >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8537 # Extract the first word of "genhtml", so it can be a program name with args.
8538 set dummy genhtml
; ac_word
=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_GENHTML+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8546 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
8549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir
=.
8554 for ac_exec_ext
in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 GENHTML
=$ac_cv_path_GENHTML
8568 if test -n "$GENHTML"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8570 $as_echo "$GENHTML" >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8577 if test -z "$LCOV" -o -z "$GENHTML"; then
8578 as_fn_error $?
"lcov and genhtml are required for profiling" "$LINENO" 5
8580 # Extract the first word of "genpng", so it can be a program name with args.
8581 set dummy genpng
; ac_word
=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_path_GENPNG+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8589 ac_cv_path_GENPNG
="$GENPNG" # Let the user override the test with a path.
8592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8596 test -z "$as_dir" && as_dir
=.
8597 for ac_exec_ext
in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_GENPNG
="$as_dir/$ac_word$ac_exec_ext"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 GENPNG
=$ac_cv_path_GENPNG
8611 if test -n "$GENPNG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8613 $as_echo "$GENPNG" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8620 if test -n "$GENPNG"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8622 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8623 if $GENPNG --help > /dev
/null
2>&1 ; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8625 $as_echo "ok" >&6; }
8626 GENHTML
="$GENHTML --frames"
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8629 $as_echo "not supported" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8631 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8637 ################################################################################
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8639 $as_echo_n "checking whether to enable unit testing... " >&6; }
8640 # Check whether --enable-testing was given.
8641 if test "${enable_testing+set}" = set; then :
8642 enableval
=$enable_testing; TESTING
=$enableval
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8648 $as_echo "$TESTING" >&6; }
8650 if test "$TESTING" = yes; then
8651 # Extract the first word of "ruby1.9", so it can be a program name with args.
8652 set dummy ruby1.9
; ac_word
=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if test "${ac_cv_path_RUBY19+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8660 ac_cv_path_RUBY19
="$RUBY19" # Let the user override the test with a path.
8663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8667 test -z "$as_dir" && as_dir
=.
8668 for ac_exec_ext
in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_path_RUBY19
="$as_dir/$ac_word$ac_exec_ext"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 RUBY19
=$ac_cv_path_RUBY19
8682 if test -n "$RUBY19"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8684 $as_echo "$RUBY19" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8691 # Extract the first word of "valgrind", so it can be a program name with args.
8692 set dummy valgrind
; ac_word
=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8700 ac_cv_path_VALGRIND
="$VALGRIND" # Let the user override the test with a path.
8703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8707 test -z "$as_dir" && as_dir
=.
8708 for ac_exec_ext
in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_path_VALGRIND
="$as_dir/$ac_word$ac_exec_ext"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 VALGRIND
=$ac_cv_path_VALGRIND
8722 if test -n "$VALGRIND"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8724 $as_echo "$VALGRIND" >&6; }
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8731 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8732 as_fn_error $?
"ruby1.9 and valgrind are required for testing" "$LINENO" 5
8736 ################################################################################
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8738 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8739 # Check whether --enable-valgrind_pool was given.
8740 if test "${enable_valgrind_pool+set}" = set; then :
8741 enableval
=$enable_valgrind_pool; VALGRIND_POOL
=$enableval
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8747 $as_echo "$VALGRIND_POOL" >&6; }
8749 if test "$VALGRIND_POOL" = yes; then
8750 for ac_header
in valgrind
/memcheck.h
8752 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8753 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
8754 cat >>confdefs.h
<<_ACEOF
8755 #define HAVE_VALGRIND_MEMCHECK_H 1
8759 as_fn_error $?
"bailing out" "$LINENO" 5
8765 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8769 ################################################################################
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8771 $as_echo_n "checking whether to use device-mapper... " >&6; }
8772 # Check whether --enable-devmapper was given.
8773 if test "${enable_devmapper+set}" = set; then :
8774 enableval
=$enable_devmapper; DEVMAPPER
=$enableval
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8778 $as_echo "$DEVMAPPER" >&6; }
8780 if test x
$DEVMAPPER = xyes
; then
8782 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8786 ################################################################################
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8788 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8789 # Check whether --enable-udev_sync was given.
8790 if test "${enable_udev_sync+set}" = set; then :
8791 enableval
=$enable_udev_sync; UDEV_SYNC
=$enableval
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8797 $as_echo "$UDEV_SYNC" >&6; }
8799 if test x
$UDEV_SYNC = xyes
; then
8800 if test x
$PKGCONFIG_INIT != x1
; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8806 $as_echo_n "checking for UDEV... " >&6; }
8808 if test -n "$UDEV_CFLAGS"; then
8809 pkg_cv_UDEV_CFLAGS
="$UDEV_CFLAGS"
8810 elif test -n "$PKG_CONFIG"; then
8811 if test -n "$PKG_CONFIG" && \
8812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8813 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816 test $ac_status = 0; }; then
8817 pkg_cv_UDEV_CFLAGS
=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8824 if test -n "$UDEV_LIBS"; then
8825 pkg_cv_UDEV_LIBS
="$UDEV_LIBS"
8826 elif test -n "$PKG_CONFIG"; then
8827 if test -n "$PKG_CONFIG" && \
8828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8829 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8832 test $ac_status = 0; }; then
8833 pkg_cv_UDEV_LIBS
=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8843 if test $pkg_failed = yes; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8848 _pkg_short_errors_supported
=yes
8850 _pkg_short_errors_supported
=no
8852 if test $_pkg_short_errors_supported = yes; then
8853 UDEV_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8855 UDEV_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8857 # Put the nasty error message in config.log where it belongs
8858 echo "$UDEV_PKG_ERRORS" >&5
8860 as_fn_error $?
"Package requirements (libudev >= 143) were not met:
8864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8865 installed software in a non-standard prefix.
8867 Alternatively, you may set the environment variables UDEV_CFLAGS
8868 and UDEV_LIBS to avoid the need to call pkg-config.
8869 See the pkg-config man page for more details." "$LINENO" 5
8871 elif test $pkg_failed = untried
; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8876 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8877 is in your PATH or set the PKG_CONFIG environment variable to the full
8880 Alternatively, you may set the environment variables UDEV_CFLAGS
8881 and UDEV_LIBS to avoid the need to call pkg-config.
8882 See the pkg-config man page for more details.
8884 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8885 See \`config.log' for more details" "$LINENO" 5; }
8888 UDEV_CFLAGS
=$pkg_cv_UDEV_CFLAGS
8889 UDEV_LIBS
=$pkg_cv_UDEV_LIBS
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8891 $as_echo "yes" >&6; }
8895 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8900 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8901 # Check whether --enable-udev_rules was given.
8902 if test "${enable_udev_rules+set}" = set; then :
8903 enableval
=$enable_udev_rules; UDEV_RULES
=$enableval
8905 UDEV_RULES
=$UDEV_SYNC
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8909 $as_echo "$UDEV_RULES" >&6; }
8911 ################################################################################
8912 # Check whether --enable-compat was given.
8913 if test "${enable_compat+set}" = set; then :
8914 enableval
=$enable_compat; DM_COMPAT
=$enableval
8920 if test x
$DM_COMPAT = xyes
; then
8921 as_fn_error $?
"--enable-compat is not currently supported.
8922 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8923 ioctl protocol is supported.
8927 ################################################################################
8928 # Check whether --enable-units-compat was given.
8929 if test "${enable_units_compat+set}" = set; then :
8930 enableval
=$enable_units_compat; UNITS_COMPAT
=$enableval
8936 if test x
$UNITS_COMPAT = xyes
; then
8938 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8942 ################################################################################
8943 # Check whether --enable-ioctl was given.
8944 if test "${enable_ioctl+set}" = set; then :
8945 enableval
=$enable_ioctl; DM_IOCTLS
=$enableval
8949 ################################################################################
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8951 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8952 # Check whether --enable-o_direct was given.
8953 if test "${enable_o_direct+set}" = set; then :
8954 enableval
=$enable_o_direct; ODIRECT
=$enableval
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8958 $as_echo "$ODIRECT" >&6; }
8960 if test x
$ODIRECT = xyes
; then
8962 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8966 ################################################################################
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8968 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8969 # Check whether --enable-applib was given.
8970 if test "${enable_applib+set}" = set; then :
8971 enableval
=$enable_applib; APPLIB
=$enableval
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8977 $as_echo "$APPLIB" >&6; }
8979 test x
$APPLIB = xyes \
8980 && LVM2APP_LIB
=-llvm2app \
8983 ################################################################################
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8985 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8986 # Check whether --enable-cmdlib was given.
8987 if test "${enable_cmdlib+set}" = set; then :
8988 enableval
=$enable_cmdlib; CMDLIB
=$enableval
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8994 $as_echo "$CMDLIB" >&6; }
8996 test x
$CMDLIB = xyes \
8997 && LVM2CMD_LIB
=-llvm2cmd \
9000 ################################################################################
9001 # Check whether --enable-pkgconfig was given.
9002 if test "${enable_pkgconfig+set}" = set; then :
9003 enableval
=$enable_pkgconfig; PKGCONFIG
=$enableval
9009 ################################################################################
9010 # Check whether --enable-write_install was given.
9011 if test "${enable_write_install+set}" = set; then :
9012 enableval
=$enable_write_install; WRITE_INSTALL
=$enableval
9018 ################################################################################
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9020 $as_echo_n "checking whether to install fsadm... " >&6; }
9021 # Check whether --enable-fsadm was given.
9022 if test "${enable_fsadm+set}" = set; then :
9023 enableval
=$enable_fsadm; FSADM
=$enableval
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9027 $as_echo "$FSADM" >&6; }
9029 ################################################################################
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9031 $as_echo_n "checking whether to use dmeventd... " >&6; }
9032 # Check whether --enable-dmeventd was given.
9033 if test "${enable_dmeventd+set}" = set; then :
9034 enableval
=$enable_dmeventd; DMEVENTD
=$enableval
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9038 $as_echo "$DMEVENTD" >&6; }
9040 BUILD_DMEVENTD
=$DMEVENTD
9042 if test x
$DMEVENTD = xyes
; then
9043 if test x
$MIRRORS != xinternal
; then
9044 as_fn_error $?
"--enable-dmeventd currently requires --with-mirrors=internal
9047 if test x
$CMDLIB = xno
; then
9048 as_fn_error $?
"--enable-dmeventd requires --enable-cmdlib to be used as well
9053 if test x
$DMEVENTD = xyes
; then
9055 $as_echo "#define DMEVENTD 1" >>confdefs.h
9059 ################################################################################
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9062 $as_echo_n "checking for getline in -lc... " >&6; }
9063 if test "${ac_cv_lib_c_getline+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9066 ac_check_lib_save_LIBS
=$LIBS
9068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9086 if ac_fn_c_try_link
"$LINENO"; then :
9087 ac_cv_lib_c_getline
=yes
9089 ac_cv_lib_c_getline
=no
9091 rm -f core conftest.err conftest.
$ac_objext \
9092 conftest
$ac_exeext conftest.
$ac_ext
9093 LIBS
=$ac_check_lib_save_LIBS
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9096 $as_echo "$ac_cv_lib_c_getline" >&6; }
9097 if test "x$ac_cv_lib_c_getline" = x
""yes; then :
9099 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9104 ################################################################################
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9107 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9108 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9111 ac_check_lib_save_LIBS
=$LIBS
9113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9116 /* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9122 char canonicalize_file_name ();
9126 return canonicalize_file_name ();
9131 if ac_fn_c_try_link
"$LINENO"; then :
9132 ac_cv_lib_c_canonicalize_file_name
=yes
9134 ac_cv_lib_c_canonicalize_file_name
=no
9136 rm -f core conftest.err conftest.
$ac_objext \
9137 conftest
$ac_exeext conftest.
$ac_ext
9138 LIBS
=$ac_check_lib_save_LIBS
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9141 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9142 if test "x$ac_cv_lib_c_canonicalize_file_name" = x
""yes; then :
9144 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9149 ################################################################################
9150 if [ "x$exec_prefix" = xNONE
-a "x$prefix" = xNONE
];
9151 then exec_prefix
="";
9154 ################################################################################
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9156 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9160 ac_check_lib_save_LIBS
=$LIBS
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9165 /* Override any GCC internal prototype to avoid an error.
9166 Use char because int might match the return type of a GCC
9167 builtin and then its argument prototype would still apply. */
9180 if ac_fn_c_try_link
"$LINENO"; then :
9181 ac_cv_lib_dl_dlopen
=yes
9183 ac_cv_lib_dl_dlopen
=no
9185 rm -f core conftest.err conftest.
$ac_objext \
9186 conftest
$ac_exeext conftest.
$ac_ext
9187 LIBS
=$ac_check_lib_save_LIBS
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9190 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9191 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9194 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9205 ################################################################################
9206 if [ \
( "x$LVM1" = xshared
-o "x$POOL" = xshared
-o "x$CLUSTER" = xshared \
9207 -o "x$SNAPSHOTS" = xshared
-o "x$MIRRORS" = xshared \
9208 -o "x$RAID" = xshared \
9209 \
) -a "x$STATIC_LINK" = xyes
];
9210 then as_fn_error $?
"Features cannot be 'shared' when building statically
9214 ################################################################################
9215 if [ "$DMEVENTD" = yes -o "$CLVMD" != none
] ; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9217 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9218 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9221 ac_check_lib_save_LIBS
=$LIBS
9222 LIBS
="-lpthread $LIBS"
9223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9226 /* Override any GCC internal prototype to avoid an error.
9227 Use char because int might match the return type of a GCC
9228 builtin and then its argument prototype would still apply. */
9232 char pthread_mutex_lock ();
9236 return pthread_mutex_lock ();
9241 if ac_fn_c_try_link
"$LINENO"; then :
9242 ac_cv_lib_pthread_pthread_mutex_lock
=yes
9244 ac_cv_lib_pthread_pthread_mutex_lock
=no
9246 rm -f core conftest.err conftest.
$ac_objext \
9247 conftest
$ac_exeext conftest.
$ac_ext
9248 LIBS
=$ac_check_lib_save_LIBS
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9251 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9252 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x
""yes; then :
9253 PTHREAD_LIBS
="-lpthread"
9260 ################################################################################
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9262 $as_echo_n "checking whether to enable selinux support... " >&6; }
9263 # Check whether --enable-selinux was given.
9264 if test "${enable_selinux+set}" = set; then :
9265 enableval
=$enable_selinux; SELINUX
=$enableval
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9269 $as_echo "$SELINUX" >&6; }
9271 ################################################################################
9272 if test x
$SELINUX = xyes
; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9274 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9275 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 ac_check_lib_save_LIBS
=$LIBS
9279 LIBS
="-lsepol $LIBS"
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9289 char sepol_check_context ();
9293 return sepol_check_context ();
9298 if ac_fn_c_try_link
"$LINENO"; then :
9299 ac_cv_lib_sepol_sepol_check_context
=yes
9301 ac_cv_lib_sepol_sepol_check_context
=no
9303 rm -f core conftest.err conftest.
$ac_objext \
9304 conftest
$ac_exeext conftest.
$ac_ext
9305 LIBS
=$ac_check_lib_save_LIBS
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9308 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9309 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then :
9312 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9314 SELINUX_LIBS
="-lsepol"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9319 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9320 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9323 ac_check_lib_save_LIBS
=$LIBS
9324 LIBS
="-lselinux $LIBS"
9325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9334 char is_selinux_enabled ();
9338 return is_selinux_enabled ();
9343 if ac_fn_c_try_link
"$LINENO"; then :
9344 ac_cv_lib_selinux_is_selinux_enabled
=yes
9346 ac_cv_lib_selinux_is_selinux_enabled
=no
9348 rm -f core conftest.err conftest.
$ac_objext \
9349 conftest
$ac_exeext conftest.
$ac_ext
9350 LIBS
=$ac_check_lib_save_LIBS
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9353 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9354 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
9356 for ac_header
in selinux
/selinux.h
9358 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9359 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
9360 cat >>confdefs.h
<<_ACEOF
9361 #define HAVE_SELINUX_SELINUX_H 1
9370 for ac_header
in selinux
/label.h
9372 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9373 if test "x$ac_cv_header_selinux_label_h" = x
""yes; then :
9374 cat >>confdefs.h
<<_ACEOF
9375 #define HAVE_SELINUX_LABEL_H 1
9383 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9385 SELINUX_LIBS
="-lselinux $SELINUX_LIBS"
9386 SELINUX_PC
="libselinux"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9391 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9399 ################################################################################
9400 if test x
$REALTIME = xyes
; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9402 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9403 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9406 ac_check_lib_save_LIBS
=$LIBS
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9417 char clock_gettime ();
9421 return clock_gettime ();
9426 if ac_fn_c_try_link
"$LINENO"; then :
9427 ac_cv_lib_rt_clock_gettime
=yes
9429 ac_cv_lib_rt_clock_gettime
=no
9431 rm -f core conftest.err conftest.
$ac_objext \
9432 conftest
$ac_exeext conftest.
$ac_ext
9433 LIBS
=$ac_check_lib_save_LIBS
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9436 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9437 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
9444 if test x
$HAVE_REALTIME = xyes
; then
9446 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9451 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9455 ################################################################################
9456 for ac_header
in getopt.h
9458 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9459 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9460 cat >>confdefs.h
<<_ACEOF
9461 #define HAVE_GETOPT_H 1
9464 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9471 ################################################################################
9472 if test x
$READLINE != xno
; then
9473 lvm_saved_libs
=$LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9475 $as_echo_n "checking for library containing tgetent... " >&6; }
9476 if test "${ac_cv_search_tgetent+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9479 ac_func_search_save_LIBS
=$LIBS
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9498 for ac_lib
in '' tinfo ncurses curses termcap termlib
; do
9499 if test -z "$ac_lib"; then
9500 ac_res
="none required"
9503 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9505 if ac_fn_c_try_link
"$LINENO"; then :
9506 ac_cv_search_tgetent
=$ac_res
9508 rm -f core conftest.err conftest.
$ac_objext \
9510 if test "${ac_cv_search_tgetent+set}" = set; then :
9514 if test "${ac_cv_search_tgetent+set}" = set; then :
9517 ac_cv_search_tgetent
=no
9520 LIBS
=$ac_func_search_save_LIBS
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9523 $as_echo "$ac_cv_search_tgetent" >&6; }
9524 ac_res
=$ac_cv_search_tgetent
9525 if test "$ac_res" != no
; then :
9526 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9527 READLINE_LIBS
=$ac_cv_search_tgetent
9530 if test "$READLINE" = yes; then
9531 as_fn_error $?
"termcap could not be found which is required for the
9532 --enable-readline option (which is enabled by default). Either disable readline
9533 support with --disable-readline or download and install termcap from:
9534 ftp.gnu.org/gnu/termcap
9535 Note: if you are using precompiled packages you will also need the development
9536 package as well (which may be called termcap-devel or something similar).
9537 Note: (n)curses also seems to work as a substitute for termcap. This was
9538 not found either - but you could try installing that as well." "$LINENO" 5
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9543 $as_echo_n "checking for readline in -lreadline... " >&6; }
9544 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9547 ac_check_lib_save_LIBS
=$LIBS
9548 LIBS
="-lreadline $LIBS"
9549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9567 if ac_fn_c_try_link
"$LINENO"; then :
9568 ac_cv_lib_readline_readline
=yes
9570 ac_cv_lib_readline_readline
=no
9572 rm -f core conftest.err conftest.
$ac_objext \
9573 conftest
$ac_exeext conftest.
$ac_ext
9574 LIBS
=$ac_check_lib_save_LIBS
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9577 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9578 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
9581 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9583 LIBS
=$lvm_saved_libs
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9585 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9586 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9589 ac_check_lib_save_LIBS
=$LIBS
9590 LIBS
="-lreadline $LIBS"
9591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9600 char rl_line_buffer ();
9604 return rl_line_buffer ();
9609 if ac_fn_c_try_link
"$LINENO"; then :
9610 ac_cv_lib_readline_rl_line_buffer
=yes
9612 ac_cv_lib_readline_rl_line_buffer
=no
9614 rm -f core conftest.err conftest.
$ac_objext \
9615 conftest
$ac_exeext conftest.
$ac_ext
9616 LIBS
=$ac_check_lib_save_LIBS
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9619 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9620 if test "x$ac_cv_lib_readline_rl_line_buffer" = x
""yes; then :
9621 READLINE_LIBS
="-lreadline"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9625 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9626 READLINE_LIBS
="-lreadline $READLINE_LIBS"
9633 if test "$READLINE" = yes; then
9634 as_fn_error $?
"GNU Readline could not be found which is required for the
9635 --enable-readline option (which is enabled by default). Either disable readline
9636 support with --disable-readline or download and install readline from:
9637 ftp.gnu.org/gnu/readline
9638 Note: if you are using precompiled packages you will also need the development
9639 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9643 LIBS
="$READLINE_LIBS $lvm_saved_libs"
9644 for ac_func
in rl_completion_matches
9646 ac_fn_c_check_func
"$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9647 if test "x$ac_cv_func_rl_completion_matches" = x
""yes; then :
9648 cat >>confdefs.h
<<_ACEOF
9649 #define HAVE_RL_COMPLETION_MATCHES 1
9655 LIBS
=$lvm_saved_libs
9658 ################################################################################
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9660 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9661 # Check whether --enable-nls was given.
9662 if test "${enable_nls+set}" = set; then :
9663 enableval
=$enable_nls; INTL
=$enableval
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9669 $as_echo "$INTL" >&6; }
9671 if test x
$INTL = xyes
; then
9672 # FIXME - Move this - can be device-mapper too
9674 # Extract the first word of "msgfmt", so it can be a program name with args.
9675 set dummy msgfmt
; ac_word
=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
9683 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
9686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir
=.
9691 for ac_exec_ext
in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 MSGFMT
=$ac_cv_path_MSGFMT
9705 if test -n "$MSGFMT"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9707 $as_echo "$MSGFMT" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 if [ "x$MSGFMT" == x
];
9715 then as_fn_error $?
"msgfmt not found in path $PATH
9720 # Check whether --with-localedir was given.
9721 if test "${with_localedir+set}" = set; then :
9722 withval
=$with_localedir; LOCALEDIR
=$withval
9724 LOCALEDIR
='${prefix}/share/locale'
9729 ################################################################################
9731 # Check whether --with-confdir was given.
9732 if test "${with_confdir+set}" = set; then :
9733 withval
=$with_confdir; CONFDIR
=$withval
9740 # Check whether --with-staticdir was given.
9741 if test "${with_staticdir+set}" = set; then :
9742 withval
=$with_staticdir; STATICDIR
=$withval
9744 STATICDIR
='${exec_prefix}/sbin'
9749 # Check whether --with-usrlibdir was given.
9750 if test "${with_usrlibdir+set}" = set; then :
9751 withval
=$with_usrlibdir; usrlibdir
=$withval
9753 usrlibdir
='${prefix}/lib'
9758 # Check whether --with-usrsbindir was given.
9759 if test "${with_usrsbindir+set}" = set; then :
9760 withval
=$with_usrsbindir; usrsbindir
=$withval
9762 usrsbindir
='${prefix}/sbin'
9766 ################################################################################
9768 # Check whether --with-udev_prefix was given.
9769 if test "${with_udev_prefix+set}" = set; then :
9770 withval
=$with_udev_prefix; udev_prefix
=$withval
9772 udev_prefix
='${exec_prefix}'
9777 # Check whether --with-udevdir was given.
9778 if test "${with_udevdir+set}" = set; then :
9779 withval
=$with_udevdir; udevdir
=$withval
9781 udevdir
='${udev_prefix}/lib/udev/rules.d'
9785 ################################################################################
9786 if test x
$READLINE = xyes
; then
9787 for ac_header
in readline
/readline.h readline
/history.h
9789 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9791 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9792 cat >>confdefs.h
<<_ACEOF
9793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9797 as_fn_error $?
"bailing out" "$LINENO" 5
9804 if test x
$CLVMD != xnone
; then
9805 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
9807 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9809 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9810 cat >>confdefs.h
<<_ACEOF
9811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9815 as_fn_error $?
"bailing out" "$LINENO" 5
9820 for ac_func
in dup2 getmntent memmove
select socket
9822 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9823 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9824 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9825 cat >>confdefs.h
<<_ACEOF
9826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9830 as_fn_error $?
"bailing out" "$LINENO" 5
9834 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9835 # -lseq on Dynix/PTX, -lgen on Unixware.
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9837 $as_echo_n "checking for library containing getmntent... " >&6; }
9838 if test "${ac_cv_search_getmntent+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9841 ac_func_search_save_LIBS
=$LIBS
9842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9855 return getmntent ();
9860 for ac_lib
in '' sun
seq gen
; do
9861 if test -z "$ac_lib"; then
9862 ac_res
="none required"
9865 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9867 if ac_fn_c_try_link
"$LINENO"; then :
9868 ac_cv_search_getmntent
=$ac_res
9870 rm -f core conftest.err conftest.
$ac_objext \
9872 if test "${ac_cv_search_getmntent+set}" = set; then :
9876 if test "${ac_cv_search_getmntent+set}" = set; then :
9879 ac_cv_search_getmntent
=no
9882 LIBS
=$ac_func_search_save_LIBS
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9885 $as_echo "$ac_cv_search_getmntent" >&6; }
9886 ac_res
=$ac_cv_search_getmntent
9887 if test "$ac_res" != no
; then :
9888 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9889 ac_cv_func_getmntent
=yes
9891 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9894 ac_cv_func_getmntent
=no
9898 for ac_header
in sys
/select.h sys
/socket.h
9900 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9902 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9903 cat >>confdefs.h
<<_ACEOF
9904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9912 $as_echo_n "checking types of arguments for select... " >&6; }
9913 if test "${ac_cv_func_select_args+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9916 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
9917 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9918 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
9919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 $ac_includes_default
9922 #ifdef HAVE_SYS_SELECT_H
9923 # include <sys/select.h>
9925 #ifdef HAVE_SYS_SOCKET_H
9926 # include <sys/socket.h>
9932 extern int select ($ac_arg1,
9933 $ac_arg234, $ac_arg234, $ac_arg234,
9939 if ac_fn_c_try_compile
"$LINENO"; then :
9940 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9946 # Provide a safe default value.
9947 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9951 $as_echo "$ac_cv_func_select_args" >&6; }
9952 ac_save_IFS
=$IFS; IFS
=','
9953 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9957 cat >>confdefs.h
<<_ACEOF
9958 #define SELECT_TYPE_ARG1 $1
9962 cat >>confdefs.h
<<_ACEOF
9963 #define SELECT_TYPE_ARG234 ($2)
9967 cat >>confdefs.h
<<_ACEOF
9968 #define SELECT_TYPE_ARG5 ($3)
9975 if test x
$CLUSTER != xnone
; then
9976 for ac_header
in sys
/socket.h sys
/un.h
9978 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9979 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9980 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9981 cat >>confdefs.h
<<_ACEOF
9982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9986 as_fn_error $?
"bailing out" "$LINENO" 5
9991 for ac_func
in socket
9993 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
9994 if test "x$ac_cv_func_socket" = x
""yes; then :
9995 cat >>confdefs.h
<<_ACEOF
9996 #define HAVE_SOCKET 1
10000 as_fn_error $?
"bailing out" "$LINENO" 5
10006 if test x
$DMEVENTD = xyes
; then
10007 for ac_header
in arpa
/inet.h
10009 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10010 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
10011 cat >>confdefs.h
<<_ACEOF
10012 #define HAVE_ARPA_INET_H 1
10016 as_fn_error $?
"bailing out" "$LINENO" 5
10023 if test x
$HAVE_LIBDL = xyes
; then
10024 for ac_header
in dlfcn.h
10026 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
10028 cat >>confdefs.h
<<_ACEOF
10029 #define HAVE_DLFCN_H 1
10033 as_fn_error $?
"bailing out" "$LINENO" 5
10040 if test x
$INTL = xyes
; then
10041 for ac_header
in libintl.h
10043 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10044 if test "x$ac_cv_header_libintl_h" = x
""yes; then :
10045 cat >>confdefs.h
<<_ACEOF
10046 #define HAVE_LIBINTL_H 1
10050 as_fn_error $?
"bailing out" "$LINENO" 5
10057 if test x
$UDEV_SYNC = xyes
; then
10058 for ac_header
in sys
/ipc.h sys
/sem.h
10060 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10061 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10062 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10063 cat >>confdefs.h
<<_ACEOF
10064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10068 as_fn_error $?
"bailing out" "$LINENO" 5
10075 ################################################################################
10076 # Extract the first word of "modprobe", so it can be a program name with args.
10077 set dummy modprobe
; ac_word
=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10083 case $MODPROBE_CMD in
10085 ac_cv_path_MODPROBE_CMD
="$MODPROBE_CMD" # Let the user override the test with a path.
10088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10089 for as_dir
in $PATH
10092 test -z "$as_dir" && as_dir
=.
10093 for ac_exec_ext
in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_path_MODPROBE_CMD
="$as_dir/$ac_word$ac_exec_ext"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 MODPROBE_CMD
=$ac_cv_path_MODPROBE_CMD
10107 if test -n "$MODPROBE_CMD"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10109 $as_echo "$MODPROBE_CMD" >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10117 if test x
$MODPROBE_CMD != x
; then
10119 cat >>confdefs.h
<<_ACEOF
10120 #define MODPROBE_CMD "$MODPROBE_CMD"
10126 lvm_exec_prefix
=$exec_prefix
10127 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$prefix
10128 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$ac_default_prefix
10130 cat >>confdefs.h
<<_ACEOF
10131 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
10135 if test "$CLVMD" != none
; then
10136 clvmd_prefix
=$ac_default_prefix
10137 test "$prefix" != NONE
&& clvmd_prefix
=$prefix
10139 cat >>confdefs.h
<<_ACEOF
10140 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10145 ################################################################################
10146 if test "$BUILD_DMEVENTD" = yes; then
10148 # Check whether --with-dmeventd-pidfile was given.
10149 if test "${with_dmeventd_pidfile+set}" = set; then :
10150 withval
=$with_dmeventd_pidfile; DMEVENTD_PIDFILE
=$withval
10152 DMEVENTD_PIDFILE
="/var/run/dmeventd.pid"
10156 cat >>confdefs.h
<<_ACEOF
10157 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10162 if test "$BUILD_DMEVENTD" = yes; then
10164 # Check whether --with-dmeventd-path was given.
10165 if test "${with_dmeventd_path+set}" = set; then :
10166 withval
=$with_dmeventd_path; DMEVENTD_PATH
=$withval
10168 DMEVENTD_PATH
="$lvm_exec_prefix/sbin/dmeventd"
10172 cat >>confdefs.h
<<_ACEOF
10173 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10180 # Check whether --with-default-run-dir was given.
10181 if test "${with_default_run_dir+set}" = set; then :
10182 withval
=$with_default_run_dir; DEFAULT_RUN_DIR
="$withval"
10184 DEFAULT_RUN_DIR
="/var/run/lvm"
10187 cat >>confdefs.h
<<_ACEOF
10188 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10192 ################################################################################
10194 # Check whether --with-default-system-dir was given.
10195 if test "${with_default_system_dir+set}" = set; then :
10196 withval
=$with_default_system_dir; DEFAULT_SYS_DIR
=$withval
10198 DEFAULT_SYS_DIR
="/etc/lvm"
10202 cat >>confdefs.h
<<_ACEOF
10203 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10208 # Check whether --with-default-archive-subdir was given.
10209 if test "${with_default_archive_subdir+set}" = set; then :
10210 withval
=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR
=$withval
10212 DEFAULT_ARCHIVE_SUBDIR
=archive
10216 cat >>confdefs.h
<<_ACEOF
10217 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10222 # Check whether --with-default-backup-subdir was given.
10223 if test "${with_default_backup_subdir+set}" = set; then :
10224 withval
=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR
=$withval
10226 DEFAULT_BACKUP_SUBDIR
=backup
10230 cat >>confdefs.h
<<_ACEOF
10231 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10236 # Check whether --with-default-cache-subdir was given.
10237 if test "${with_default_cache_subdir+set}" = set; then :
10238 withval
=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR
=$withval
10240 DEFAULT_CACHE_SUBDIR
=cache
10244 cat >>confdefs.h
<<_ACEOF
10245 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10250 # Check whether --with-default-locking-dir was given.
10251 if test "${with_default_locking_dir+set}" = set; then :
10252 withval
=$with_default_locking_dir; DEFAULT_LOCK_DIR
=$withval
10254 DEFAULT_LOCK_DIR
="/var/lock/lvm"
10258 cat >>confdefs.h
<<_ACEOF
10259 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10263 ################################################################################
10265 # Check whether --with-default-data-alignment was given.
10266 if test "${with_default_data_alignment+set}" = set; then :
10267 withval
=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT
=$withval
10269 DEFAULT_DATA_ALIGNMENT
=1
10273 cat >>confdefs.h
<<_ACEOF
10274 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10278 ################################################################################
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10280 $as_echo_n "checking for kernel interface choice... " >&6; }
10282 # Check whether --with-interface was given.
10283 if test "${with_interface+set}" = set; then :
10284 withval
=$with_interface; interface
=$withval
10289 if [ "x$interface" != xioctl
];
10291 as_fn_error $?
"--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10294 $as_echo "$interface" >&6; }
10296 ################################################################################
10297 DM_LIB_VERSION
="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10299 cat >>confdefs.h
<<_ACEOF
10300 #define DM_LIB_VERSION $DM_LIB_VERSION
10304 DM_LIB_PATCHLEVEL
=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10306 LVM_VERSION
="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10308 VER
=`cat "$srcdir"/VERSION`
10309 LVM_RELEASE_DATE
="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10310 VER
=`echo "$VER" | $AWK '{print $1}'`
10311 LVM_RELEASE
="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10312 VER
=`echo "$VER" | $AWK -F '-' '{print $1}'`
10313 LVM_MAJOR
=`echo "$VER" | $AWK -F '.' '{print $1}'`
10314 LVM_MINOR
=`echo "$VER" | $AWK -F '.' '{print $2}'`
10315 LVM_PATCHLEVEL
=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10316 LVM_LIBAPI
=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10318 ################################################################################
10423 ################################################################################
10424 ac_config_files
="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10426 cat >confcache
<<\_ACEOF
10427 # This file is a shell script that caches the results of configure
10428 # tests run on this system so they can be shared between configure
10429 # scripts and configure runs, see configure's option --config-cache.
10430 # It is not useful on other systems. If it contains results you don't
10431 # want to keep, you may remove or edit it.
10433 # config.status only pays attention to the cache file if you give it
10434 # the --recheck option to rerun configure.
10436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10438 # following values.
10442 # The following way of writing the cache mishandles newlines in values,
10443 # but we know of no workaround that is simple, portable, and efficient.
10444 # So, we kill variables containing newlines.
10445 # Ultrix sh set writes to stderr and can't be redirected directly,
10446 # and sets the high bit in the cache file unless we assign to the vars.
10448 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10449 eval ac_val
=\$
$ac_var
10453 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10457 _ | IFS | as_nl
) ;; #(
10458 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10459 *) { eval $ac_var=; unset $ac_var;} ;;
10465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10466 *${as_nl}ac_space
=\
*)
10467 # `set' does not quote correctly, so add quotes: double-quote
10468 # substitution turns \\\\ into \\, and sed turns \\ into \.
10471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10474 # `set' quotes correctly as required by POSIX, so do not add quotes.
10475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10488 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10489 if test -w "$cache_file"; then
10490 test "x$cache_file" != "x/dev/null" &&
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10492 $as_echo "$as_me: updating cache $cache_file" >&6;}
10493 cat confcache
>$cache_file
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10496 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10501 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10502 # Let make expand exec_prefix.
10503 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10505 DEFS
=-DHAVE_CONFIG_H
10510 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10511 # 1. Remove the extension, and $U if already installed.
10512 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10513 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10515 # will be set to the directory where LIBOBJS objects are built.
10516 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10517 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10519 LIBOBJS
=$ac_libobjs
10521 LTLIBOBJS
=$ac_ltlibobjs
10525 : ${CONFIG_STATUS=./config.status}
10527 ac_clean_files_save
=$ac_clean_files
10528 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10530 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10532 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10534 # Generated by $as_me.
10535 # Run this file to recreate the current configuration.
10536 # Compiler output produced by configure, useful for debugging
10537 # configure, is in config.log if it exists.
10540 ac_cs_recheck=false
10543 SHELL=\${CONFIG_SHELL-$SHELL}
10546 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10547 ## -------------------- ##
10548 ## M4sh Initialization. ##
10549 ## -------------------- ##
10551 # Be more Bourne compatible
10552 DUALCASE
=1; export DUALCASE
# for MKS sh
10553 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10557 # is contrary to our usage. Disable this feature.
10558 alias -g '${1+"$@"}'='"$@"'
10559 setopt NO_GLOB_SUBST
10561 case `(set -o) 2>/dev/null` in #(
10573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10574 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10577 # Prefer a ksh shell builtin over an external printf program on Solaris,
10578 # but without wasting forks for bash or zsh.
10579 if test -z "$BASH_VERSION$ZSH_VERSION" \
10580 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10581 as_echo='print
-r --'
10582 as_echo_n='print
-rn --'
10583 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10584 as_echo='printf %s
\n'
10585 as_echo_n='printf %s
'
10587 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10588 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10589 as_echo_n='/usr
/ucb
/echo -n'
10591 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10592 as_echo_n_body='eval
10596 expr "X$arg" : "X\\(.*\\)$as_nl";
10597 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10599 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10601 export as_echo_n_body
10602 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10604 export as_echo_body
10605 as_echo='sh
-c $as_echo_body as_echo
'
10608 # The user is always right.
10609 if test "${PATH_SEPARATOR+set}" != set; then
10611 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10612 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10619 # We need space, tab and new line, in precisely that order. Quoting is
10620 # there to prevent editors from complaining about space-tab.
10621 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10622 # splitting by setting IFS to empty value.)
10625 # Find who we are. Look in the path if we contain no directory separator.
10627 *[\\/]* ) as_myself=$0 ;;
10628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10632 test -z "$as_dir" && as_dir=.
10633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10639 # We did not find ourselves, most probably we were run as `sh COMMAND'
10640 # in which case we are not to be found in the path.
10641 if test "x$as_myself" = x
; then
10644 if test ! -f "$as_myself"; then
10645 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10649 # Unset variables that we do not need and which cause bugs (e.g. in
10650 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10651 # suppresses any "Segmentation fault" message there. '((' could
10652 # trigger a bug in pdksh 5.2.14.
10653 for as_var
in BASH_ENV ENV MAIL MAILPATH
10654 do eval test x\
${$as_var+set} = xset \
10655 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10668 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10671 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10672 # ----------------------------------------
10673 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10674 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10675 # script with STATUS, using 1 if that was 0.
10678 as_status
=$1; test $as_status -eq 0 && as_status
=1
10680 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10681 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10683 $as_echo "$as_me: error: $2" >&2
10684 as_fn_exit
$as_status
10688 # as_fn_set_status STATUS
10689 # -----------------------
10690 # Set $? to STATUS, without forking.
10691 as_fn_set_status
()
10694 } # as_fn_set_status
10696 # as_fn_exit STATUS
10697 # -----------------
10698 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10702 as_fn_set_status
$1
10708 # Portably unset VAR.
10711 { eval $1=; unset $1;}
10713 as_unset
=as_fn_unset
10714 # as_fn_append VAR VALUE
10715 # ----------------------
10716 # Append the text in VALUE to the end of the definition contained in VAR. Take
10717 # advantage of any shell optimizations that allow amortized linear growth over
10718 # repeated appends, instead of the typical quadratic growth present in naive
10720 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10721 eval 'as_fn_append ()
10732 # as_fn_arith ARG...
10733 # ------------------
10734 # Perform arithmetic evaluation on the ARGs, and store the result in the
10735 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10736 # must be portable across $(()) and expr.
10737 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10738 eval 'as_fn_arith ()
10745 as_val
=`expr "$@" || test $? -eq 1`
10750 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10751 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10757 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10758 as_basename
=basename
10763 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10769 as_me
=`$as_basename -- "$0" ||
10770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10771 X"$0" : 'X\(//\)$' \| \
10772 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10774 sed '/^.*\/\([^/][^/]*\)\/*$/{
10788 # Avoid depending upon Character Ranges.
10789 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10790 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10791 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10792 as_cr_digits
='0123456789'
10793 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10795 ECHO_C
= ECHO_N
= ECHO_T
=
10796 case `echo -n x` in #(((((
10798 case `echo 'xy\c'` in
10799 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10801 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10808 rm -f conf$$ conf$$.exe conf$$.
file
10809 if test -d conf$$.dir
; then
10810 rm -f conf$$.dir
/conf$$.
file
10813 mkdir conf$$.dir
2>/dev
/null
10815 if (echo >conf$$.
file) 2>/dev
/null
; then
10816 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10818 # ... but there are two gotchas:
10819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10821 # In both cases, we have to default to `cp -p'.
10822 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10824 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10832 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10833 rmdir conf$$.dir
2>/dev
/null
10838 # Create "$as_dir" as a directory, including parents if necessary.
10843 -*) as_dir
=.
/$as_dir;;
10845 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10849 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10850 *) as_qdir
=$as_dir;;
10852 as_dirs
="'$as_qdir' $as_dirs"
10853 as_dir
=`$as_dirname -- "$as_dir" ||
10854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10855 X"$as_dir" : 'X\(//\)[^/]' \| \
10856 X"$as_dir" : 'X\(//\)$' \| \
10857 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10858 $as_echo X"$as_dir" |
10859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10863 /^X\(\/\/\)[^/].*/{
10876 test -d "$as_dir" && break
10878 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10879 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10883 if mkdir
-p .
2>/dev
/null
; then
10884 as_mkdir_p
='mkdir -p "$as_dir"'
10886 test -d .
/-p && rmdir .
/-p
10890 if test -x / >/dev
/null
2>&1; then
10891 as_test_x
='test -x'
10893 if ls -dL / >/dev
/null
2>&1; then
10900 if test -d "$1"; then
10906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10907 ???[sx]*):;;*)false;;esac;fi
10911 as_executable_p
=$as_test_x
10913 # Sed expression to map a string onto a valid CPP name.
10914 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10916 # Sed expression to map a string onto a valid variable name.
10917 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10921 ## ----------------------------------- ##
10922 ## Main body of $CONFIG_STATUS script. ##
10923 ## ----------------------------------- ##
10925 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10928 # Save the log message, to keep $0 and so on meaningful, and to
10929 # report actual input values of CONFIG_FILES etc. instead of their
10930 # values after options handling.
10932 This file was extended by $as_me, which was
10933 generated by GNU Autoconf 2.66. Invocation command line was
10935 CONFIG_FILES = $CONFIG_FILES
10936 CONFIG_HEADERS = $CONFIG_HEADERS
10937 CONFIG_LINKS = $CONFIG_LINKS
10938 CONFIG_COMMANDS = $CONFIG_COMMANDS
10941 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10946 case $ac_config_files in *"
10947 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10950 case $ac_config_headers in *"
10951 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10956 # Files that config.status was made for.
10957 config_files="$ac_config_files"
10958 config_headers="$ac_config_headers"
10962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10964 \`$as_me' instantiates files and other configuration actions
10965 from templates according to the current configuration. Unless the files
10966 and actions are specified as TAGs, all are instantiated by default.
10968 Usage: $0 [OPTION]... [TAG]...
10970 -h, --help print this help, then exit
10971 -V, --version print version number and configuration settings, then exit
10972 --config print configuration, then exit
10973 -q, --quiet, --silent
10974 do not print progress messages
10975 -d, --debug don't remove temporary files
10976 --recheck update $as_me by reconfiguring in the same conditions
10977 --file=FILE[:TEMPLATE]
10978 instantiate the configuration file FILE
10979 --header=FILE[:TEMPLATE]
10980 instantiate the configuration header FILE
10982 Configuration files:
10985 Configuration headers:
10988 Report bugs to the package provider."
10991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10992 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10995 configured by $0, generated by GNU Autoconf 2.66,
10996 with options \\"\$ac_cs_config\\"
10998 Copyright (C) 2010 Free Software Foundation, Inc.
10999 This config.status script is free software; the Free Software Foundation
11000 gives unlimited permission to copy, distribute and modify it."
11007 test -n "\$AWK" || AWK=awk
11010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11011 # The default lists apply if the user does not specify any file.
11017 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11018 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11029 # Handling of the options.
11030 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11032 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11033 $as_echo "$ac_cs_version"; exit ;;
11034 --config |
--confi |
--conf |
--con |
--co |
--c )
11035 $as_echo "$ac_cs_config"; exit ;;
11036 --debug |
--debu |
--deb |
--de |
--d |
-d )
11038 --file |
--fil |
--fi |
--f )
11041 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11043 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11044 ac_need_defaults
=false
;;
11045 --header |
--heade |
--head |
--hea )
11048 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11050 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11051 ac_need_defaults
=false
;;
11053 # Conflict between --help and --header
11054 as_fn_error $?
"ambiguous option: \`$1'
11055 Try \`$0 --help' for more information.";;
11056 --help |
--hel |
-h )
11057 $as_echo "$ac_cs_usage"; exit ;;
11058 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11059 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11062 # This is an error.
11063 -*) as_fn_error $?
"unrecognized option: \`$1'
11064 Try \`$0 --help' for more information." ;;
11066 *) as_fn_append ac_config_targets
" $1"
11067 ac_need_defaults
=false
;;
11073 ac_configure_extra_args
=
11075 if $ac_cs_silent; then
11077 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11082 if \$ac_cs_recheck; then
11083 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11086 CONFIG_SHELL='$SHELL'
11087 export CONFIG_SHELL
11092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11097 ## Running $as_me. ##
11103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11108 # Handling of arguments.
11109 for ac_config_target
in $ac_config_targets
11111 case $ac_config_target in
11112 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
11113 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11114 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
11115 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
11116 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11117 "daemons/cmirrord/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11118 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11119 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11120 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11121 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11122 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11123 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11124 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
11125 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
11126 "include/.symlinks") CONFIG_FILES
="$CONFIG_FILES include/.symlinks" ;;
11127 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
11128 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
11129 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
11130 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
11131 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
11132 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
11133 "lib/replicator/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/replicator/Makefile" ;;
11134 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11135 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
11136 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
11137 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11138 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
11139 "liblvm/liblvm2app.pc") CONFIG_FILES
="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11140 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
11141 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
11142 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11143 "scripts/cmirrord_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11144 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11145 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11146 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11147 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
11148 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
11149 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
11150 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
11151 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
11152 "unit-tests/datastruct/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11153 "unit-tests/regex/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11154 "unit-tests/mm/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11156 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11161 # If the user did not use the arguments to specify the items to instantiate,
11162 # then the envvar interface is used. Set only those that are not.
11163 # We use the long form for the default assignment because of an extremely
11164 # bizarre bug on SunOS 4.1.3.
11165 if $ac_need_defaults; then
11166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11170 # Have a temporary directory for convenience. Make it in the build tree
11171 # simply because there is no reason against having it here, and in addition,
11172 # creating and moving files from /tmp can sometimes cause problems.
11173 # Hook for its removal unless debugging.
11174 # Note that there is a small window in which the directory will not be cleaned:
11175 # after its creation but before its name has been assigned to `$tmp'.
11179 trap 'exit_status=$?
11180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11182 trap 'as_fn_exit 1' 1 2 13 15
11184 # Create a (secure) tmp directory for tmp files.
11187 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11188 test -n "$tmp" && test -d "$tmp"
11191 tmp
=.
/conf$$
-$RANDOM
11192 (umask 077 && mkdir
"$tmp")
11193 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11195 # Set up the scripts for CONFIG_FILES section.
11196 # No need to generate them if there are no CONFIG_FILES.
11197 # This happens for instance with `./config.status config.h'.
11198 if test -n "$CONFIG_FILES"; then
11201 ac_cr
=`echo X | tr X '\015'`
11202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11203 # But we know of no other shell where ac_cr would be empty at this
11204 # point, so we can use a bashism as a fallback.
11205 if test "x$ac_cr" = x
; then
11206 eval ac_cr
=\$
\'\\r
\'
11208 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11212 ac_cs_awk_cr
=$ac_cr
11215 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11220 echo "cat >conf$$subs.awk <<_ACEOF" &&
11221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11223 } >conf$$subs.sh ||
11224 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11227 for ac_last_try in false false false false false :; do
11228 . ./conf$$subs.sh ||
11229 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11231 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11232 if test $ac_delim_n = $ac_delim_num; then
11234 elif $ac_last_try; then
11235 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11237 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11240 rm -f conf$$subs.sh
11242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11243 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
11247 s/^/S["/; s
/!.
*/"]=/
11257 s/\(.\{148\}\)..*/\1/
11259 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11264 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11271 s/\(.\{148\}\)..*/\1/
11273 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11277 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11282 ' <conf$$subs.awk | sed '
11287 ' >>$CONFIG_STATUS || ac_write_fail=1
11288 rm -f conf$$subs.awk
11289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11291 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
11292 for (key in S) S_is_set[key] = 1
11298 nfields = split(line, field, "@
")
11300 len = length(field[1])
11301 for (i = 2; i < nfields; i++) {
11303 keylen = length(key)
11304 if (S_is_set[key]) {
11306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11307 len += length(value) + length(field[++i])
11318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11319 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11320 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11323 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
11324 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11329 # trailing colons and then remove the whole line if VPATH becomes empty
11330 # (actually we leave an empty line to preserve line numbers).
11331 if test "x
$srcdir" = x.; then
11332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11351 fi # test -n "$CONFIG_FILES"
11353 # Set up the scripts for CONFIG_HEADERS section.
11354 # No need to generate them if there are no CONFIG_HEADERS.
11355 # This happens for instance with `./config.status Makefile'.
11356 if test -n "$CONFIG_HEADERS"; then
11357 cat >"$tmp/defines.
awk" <<\_ACAWK ||
11361 # Transform confdefs.h into an awk script `defines.awk', embedded as
11362 # here-document in config.status, that substitutes the proper values into
11363 # config.h.in to produce config.h.
11365 # Create a delimiter string that does not exist in confdefs.h, to ease
11366 # handling of long lines.
11368 for ac_last_try in false false :; do
11369 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
11370 if test -z "$ac_t"; then
11372 elif $ac_last_try; then
11373 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11375 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11379 # For the awk script, D is an array of macro values keyed by name,
11380 # likewise P contains macro parameters if any. Preserve backslash
11381 # newline sequences.
11383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11385 s/.\{148\}/&'"$ac_delim"'/g
11388 s/^[ ]*#[ ]*define[ ][ ]*/ /
11395 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11397 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11402 D["\
1"]=" \
3\\\\\\n
"\\/p
11404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11409 s/.\{148\}/&'"$ac_delim"'/g
11414 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11417 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11419 ' <confdefs.h | sed '
11420 s/'"$ac_delim"'/"\\\
11421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11424 for (key in D) D_is_set[key] = 1
11427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11429 split(line, arg, " ")
11430 if (arg[1] == "#") {
11434 defundef
= substr
(arg
[1], 2)
11437 split(mac1
, mac2
, "(") #)
11439 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11440 if (D_is_set
[macro
]) {
11441 # Preserve the white space surrounding the "#".
11442 print prefix
"define", macro P
[macro
] D
[macro
]
11445 # Replace #undef with comments. This is necessary, for example,
11446 # in the case of _POSIX_SOURCE, which is predefined and required
11447 # on some systems where configure will not decide to define it.
11448 if (defundef
== "undef") {
11449 print
"/*", prefix defundef
, macro
, "*/"
11457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11458 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11459 fi # test -n "$CONFIG_HEADERS"
11462 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11467 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11469 case $ac_mode$ac_tag in
11471 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11472 :[FH
]-) ac_tag
=-:-;;
11473 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11490 -) ac_f
="$tmp/stdin";;
11491 *) # Look for the file first in the build tree, then in the source tree
11492 # (if the path is not absolute). The absolute path cannot be DOS-style,
11493 # because $ac_f cannot contain `:'.
11497 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11499 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11501 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11502 as_fn_append ac_file_inputs
" '$ac_f'"
11505 # Let's still pretend it is `configure' which instantiates (i.e., don't
11506 # use $as_me), people would be surprised to read:
11507 # /* config.h. Generated by config.status. */
11508 configure_input
='Generated from '`
11509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11511 if test x
"$ac_file" != x-
; then
11512 configure_input
="$ac_file. $configure_input"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11514 $as_echo "$as_me: creating $ac_file" >&6;}
11516 # Neutralize special characters interpreted by sed in replacement strings.
11517 case $configure_input in #(
11518 *\
&* |
*\|
* |
*\\* )
11519 ac_sed_conf_input
=`$as_echo "$configure_input" |
11520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11521 *) ac_sed_conf_input
=$configure_input;;
11525 *:-:* |
*:-) cat >"$tmp/stdin" \
11526 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11531 ac_dir
=`$as_dirname -- "$ac_file" ||
11532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11533 X"$ac_file" : 'X\(//\)[^/]' \| \
11534 X"$ac_file" : 'X\(//\)$' \| \
11535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11536 $as_echo X"$ac_file" |
11537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11541 /^X\(\/\/\)[^/].*/{
11554 as_dir
="$ac_dir"; as_fn_mkdir_p
11558 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11560 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11561 # A ".." for each directory in $ac_dir_suffix.
11562 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11563 case $ac_top_builddir_sub in
11564 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11565 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11568 ac_abs_top_builddir
=$ac_pwd
11569 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11570 # for backward compatibility:
11571 ac_top_builddir
=$ac_top_build_prefix
11574 .
) # We are building in place.
11576 ac_top_srcdir
=$ac_top_builddir_sub
11577 ac_abs_top_srcdir
=$ac_pwd ;;
11578 [\\/]* | ?
:[\\/]* ) # Absolute name.
11579 ac_srcdir
=$srcdir$ac_dir_suffix;
11580 ac_top_srcdir
=$srcdir
11581 ac_abs_top_srcdir
=$srcdir ;;
11582 *) # Relative name.
11583 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11584 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11585 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11587 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11597 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11598 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11600 ac_MKDIR_P
=$MKDIR_P
11602 [\\/$
]* | ?
:[\\/]* ) ;;
11603 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11608 # If the template does not know about datarootdir, expand it.
11609 # FIXME: This hack should be removed a few years after 2.60.
11610 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11622 *datarootdir
*) ac_datarootdir_seen
=yes;;
11623 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11628 ac_datarootdir_hack='
11629 s&@datadir@&$datadir&g
11630 s&@docdir@&$docdir&g
11631 s&@infodir@&$infodir&g
11632 s&@localedir@&$localedir&g
11633 s&@mandir@&$mandir&g
11634 s&\\\${datarootdir}&$datarootdir&g' ;;
11638 # Neutralize VPATH when `$srcdir' = `.'.
11639 # Shell code in configure.ac might set extrasub.
11640 # FIXME: do we really want to maintain this feature?
11641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11642 ac_sed_extra="$ac_vpsub
11645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11647 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11648 s|@configure_input@|
$ac_sed_conf_input|
;t t
11649 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11650 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11651 s
&@srcdir@
&$ac_srcdir&;t t
11652 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11653 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11654 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11655 s
&@builddir@
&$ac_builddir&;t t
11656 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11657 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11658 s
&@INSTALL@
&$ac_INSTALL&;t t
11659 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11660 $ac_datarootdir_hack
11662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
11663 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11669 which seems to be undefined. Please make sure it is defined" >&5
11670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11671 which seems to be undefined. Please make sure it is defined" >&2;}
11675 -) cat "$tmp/out" && rm -f "$tmp/out";;
11676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11684 if test x"$ac_file" != x-; then
11686 $as_echo "/* $configure_input */" \
11687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11688 } >"$tmp/config.h" \
11689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11695 mv "$tmp/config.h" "$ac_file" \
11696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11699 $as_echo "/* $configure_input */" \
11700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11701 || as_fn_error $? "could not create -" "$LINENO" 5
11713 ac_clean_files=$ac_clean_files_save
11715 test $ac_write_fail = 0 ||
11716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11719 # configure is writing to config.log, and then calls config.status.
11720 # config.status does its own redirection, appending to config.log.
11721 # Unfortunately, on DOS this fails, as config.log is still kept open
11722 # by configure, so config.status won't be able to
write to it
; its
11723 # output is simply discarded. So we exec the FD to /dev/null,
11724 # effectively closing config.log, so it can be properly (re)opened and
11725 # appended to by config.status. When coming back to configure, we
11726 # need to make the FD available again.
11727 if test "$no_create" != yes; then
11729 ac_config_status_args
=
11730 test "$silent" = yes &&
11731 ac_config_status_args
="$ac_config_status_args --quiet"
11733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11736 # would make configure fail if this is the last instruction.
11737 $ac_cs_success || as_fn_exit
1
11739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11745 if test x
$ODIRECT != xyes
; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11747 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}