2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
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 e
) case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \
${$as_var+y} \
67 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
72 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
79 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself
=$0 ;;
89 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
118 _as_can_reexec
=no
; export _as_can_reexec
;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
127 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec
=; unset _as_can_reexec
;}
140 if test "x$CONFIG_SHELL" = x
; then
141 as_bourne_compatible
="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 e) case \`(set -o) 2>/dev/null\` in #(
159 as_required
="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 e) exitcode=1; echo positional parameters were not saved. ;;
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
181 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev
/null
190 e
) as_have_required
=no
;;
193 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
197 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
199 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
205 *) as_dir
=$as_dir/ ;;
210 for as_base
in sh bash ksh sh5
; do
211 # Try only shells that exist, to save several forks.
212 as_shell
=$as_dir$as_base
213 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
214 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
216 CONFIG_SHELL
=$as_shell as_have_required
=yes
217 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
231 e
) if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
251 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x
$as_have_required = xno
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
281 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE
= GREP_OPTIONS
=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 # Create "$as_dir" as a directory, including parents if necessary.
325 -*) as_dir
=.
/$as_dir;;
327 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
331 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 as_dirs
="'$as_qdir' $as_dirs"
335 as_dir
=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 test -d "$as_dir" && break
360 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
361 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p
()
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
381 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
407 as_val
=`expr "$@" || test $? -eq 1`
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
420 as_status
=$1; test $as_status -eq 0 && as_status
=1
422 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit
$as_status
429 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
436 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
442 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
448 as_me
=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 # Avoid depending upon Character Ranges.
468 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits
='0123456789'
472 as_cr_alnum
=$as_cr_Letters$as_cr_digits
475 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
476 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x
"$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec
=no
; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C
= ECHO_N
= ECHO_T
=
517 case `echo -n x` in #(((((
519 case `echo 'xy\c'` in
520 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo
='printf %s\n'
533 as_echo_n
='printf %s'
535 rm -f conf$$ conf$$.exe conf$$.
file
536 if test -d conf$$.dir
; then
537 rm -f conf$$.dir
/conf$$.
file
540 mkdir conf$$.dir
2>/dev
/null
542 if (echo >conf$$.
file) 2>/dev
/null
; then
543 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
551 elif ln conf$$.
file conf$$
2>/dev
/null
; then
559 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
560 rmdir conf$$.dir
2>/dev
/null
562 if mkdir
-p .
2>/dev
/null
; then
563 as_mkdir_p
='mkdir -p "$as_dir"'
565 test -d .
/-p && rmdir .
/-p
570 as_executable_p
=as_fn_executable_p
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp
="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp
="eval sed '$as_sed_cpp'" # deprecated
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh
="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh
="eval sed '$as_sed_sh'" # deprecated
581 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
592 ac_default_prefix
=/usr
/local
594 ac_config_libobj_dir
=.
601 # Identity of this package.
609 ac_unique_file
="lib/device/dev-cache.h"
610 # Factoring default headers for most tests.
611 ac_includes_default
="\
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
631 #ifdef HAVE_SYS_TYPES_H
632 # include <sys/types.h>
634 #ifdef HAVE_SYS_STAT_H
635 # include <sys/stat.h>
643 ac_default_prefix
=/usr
644 ac_subst_vars
='LTLIBOBJS
666 UDEV_RULE_EXEC_DETECTION
669 UDEV_HAS_BUILTIN_BLKID
695 LVRESIZE_FS_HELPER_PATH
724 DEFAULT_USE_DEVICES_FILE
725 DEFAULT_USE_BLKID_WIPING
728 DEFAULT_SPARSE_SEGTYPE
730 DEFAULT_RAID10_SEGTYPE
731 DEFAULT_PROFILE_SUBDIR
734 DEFAULT_MIRROR_SEGTYPE
736 DEFAULT_EVENT_ACTIVATION
737 DEFAULT_DMEVENTD_EXIT_ON_PATH
740 DEFAULT_BACKUP_SUBDIR
741 DEFAULT_ARCHIVE_SUBDIR
756 BUILD_LOCKDDLM_CONTROL
799 LIBSANLOCKCLIENT_LIBS
800 LIBSANLOCKCLIENT_CFLAGS
896 program_transform_name
909 enable_option_checking
910 enable_dependency_tracking
923 with_default_use_devices_file
924 with_default_name_mangling
925 with_default_event_activation
928 with_default_mirror_segtype
929 with_default_raid10_segtype
930 with_default_sparse_segtype
936 enable_thin_check_needs_check
942 enable_cache_check_needs_check
953 with_default_dm_run_dir
956 with_cmirrord_pidfile
964 enable_lvmlockd_sanlock
966 enable_lvmlockd_dlmcontrol
969 with_lvmlockd_pidfile
971 with_lvmpolld_pidfile
972 enable_systemd_journal
978 enable_udev_rule_exec_detection
984 with_python_sys_prefix
986 with_python_exec_prefix
1006 with_systemdsystemunitdir
1009 with_dmeventd_pidfile
1011 with_dmeventd_exit_on_path
1012 with_default_system_dir
1013 with_default_profile_subdir
1014 with_default_archive_subdir
1015 with_default_backup_subdir
1016 with_default_cache_subdir
1017 with_default_locking_dir
1020 ac_precious_vars
='build_alias
1038 LIBSANLOCKCLIENT_CFLAGS
1039 LIBSANLOCKCLIENT_LIBS
1042 LIBDLMCONTROL_CFLAGS
1044 LIBSEAGATEILM_CFLAGS
1057 systemdsystemunitdir
1065 # Initialize some variables set by options.
1067 ac_init_version
=false
1068 ac_unrecognized_opts
=
1069 ac_unrecognized_sep
=
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file
=/dev
/null
1079 program_transform_name
=s
,x
,x
,
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir
='${exec_prefix}/bin'
1094 sbindir
='${exec_prefix}/sbin'
1095 libexecdir
='${exec_prefix}/libexec'
1096 datarootdir
='${prefix}/share'
1097 datadir
='${datarootdir}'
1098 sysconfdir
='${prefix}/etc'
1099 sharedstatedir
='${prefix}/com'
1100 localstatedir
='${prefix}/var'
1101 runstatedir
='${localstatedir}/run'
1102 includedir
='${prefix}/include'
1103 oldincludedir
='/usr/include'
1104 docdir
='${datarootdir}/doc/${PACKAGE}'
1105 infodir
='${datarootdir}/info'
1110 libdir
='${exec_prefix}/lib'
1111 localedir
='${datarootdir}/locale'
1112 mandir
='${datarootdir}/man'
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\
$ac_option
1126 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 case $ac_dashdash$ac_option in
1135 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1137 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1138 bindir
=$ac_optarg ;;
1140 -build |
--build |
--buil |
--bui |
--bu)
1141 ac_prev
=build_alias
;;
1142 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1143 build_alias
=$ac_optarg ;;
1145 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1146 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1147 ac_prev
=cache_file
;;
1148 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1149 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1150 cache_file
=$ac_optarg ;;
1152 --config-cache |
-C)
1153 cache_file
=config.cache
;;
1155 -datadir |
--datadir |
--datadi |
--datad)
1157 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1158 datadir
=$ac_optarg ;;
1160 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1161 |
--dataroo |
--dataro |
--datar)
1162 ac_prev
=datarootdir
;;
1163 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1164 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1165 datarootdir
=$ac_optarg ;;
1167 -disable-* |
--disable-*)
1168 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error $?
"invalid feature name: '$ac_useropt'"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "enable_
$ac_useropt"
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval enable_
$ac_useropt=no
;;
1183 -docdir |
--docdir |
--docdi |
--doc |
--do)
1185 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1186 docdir
=$ac_optarg ;;
1188 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1190 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1191 dvidir
=$ac_optarg ;;
1193 -enable-* |
--enable-*)
1194 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 as_fn_error $?
"invalid feature name: '$ac_useropt'"
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "enable_
$ac_useropt"
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval enable_
$ac_useropt=\
$ac_optarg ;;
1209 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1210 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1211 |
--exec |
--exe |
--ex)
1212 ac_prev
=exec_prefix
;;
1213 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1214 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1215 |
--exec=* |
--exe=* |
--ex=*)
1216 exec_prefix
=$ac_optarg ;;
1218 -gas |
--gas |
--ga |
--g)
1219 # Obsolete; use --with-gas.
1222 -help |
--help |
--hel |
--he |
-h)
1223 ac_init_help
=long
;;
1224 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1225 ac_init_help
=recursive
;;
1226 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1227 ac_init_help
=short
;;
1229 -host |
--host |
--hos |
--ho)
1230 ac_prev
=host_alias
;;
1231 -host=* |
--host=* |
--hos=* |
--ho=*)
1232 host_alias
=$ac_optarg ;;
1234 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1236 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1238 htmldir
=$ac_optarg ;;
1240 -includedir |
--includedir |
--includedi |
--included |
--include \
1241 |
--includ |
--inclu |
--incl |
--inc)
1242 ac_prev
=includedir
;;
1243 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1244 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1245 includedir
=$ac_optarg ;;
1247 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1249 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1250 infodir
=$ac_optarg ;;
1252 -libdir |
--libdir |
--libdi |
--libd)
1254 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1255 libdir
=$ac_optarg ;;
1257 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1258 |
--libexe |
--libex |
--libe)
1259 ac_prev
=libexecdir
;;
1260 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1261 |
--libexe=* |
--libex=* |
--libe=*)
1262 libexecdir
=$ac_optarg ;;
1264 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1265 ac_prev
=localedir
;;
1266 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1267 localedir
=$ac_optarg ;;
1269 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1270 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1271 ac_prev
=localstatedir
;;
1272 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1273 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1274 localstatedir
=$ac_optarg ;;
1276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1279 mandir
=$ac_optarg ;;
1281 -nfp |
--nfp |
--nf)
1282 # Obsolete; use --without-fp.
1285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1286 |
--no-cr |
--no-c |
-n)
1289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1295 |
--oldin |
--oldi |
--old |
--ol |
--o)
1296 ac_prev
=oldincludedir
;;
1297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1300 oldincludedir
=$ac_optarg ;;
1302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1305 prefix
=$ac_optarg ;;
1307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1308 |
--program-pre |
--program-pr |
--program-p)
1309 ac_prev
=program_prefix
;;
1310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1312 program_prefix
=$ac_optarg ;;
1314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1315 |
--program-suf |
--program-su |
--program-s)
1316 ac_prev
=program_suffix
;;
1317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1319 program_suffix
=$ac_optarg ;;
1321 -program-transform-name |
--program-transform-name \
1322 |
--program-transform-nam |
--program-transform-na \
1323 |
--program-transform-n |
--program-transform- \
1324 |
--program-transform |
--program-transfor \
1325 |
--program-transfo |
--program-transf \
1326 |
--program-trans |
--program-tran \
1327 |
--progr-tra |
--program-tr |
--program-t)
1328 ac_prev
=program_transform_name
;;
1329 -program-transform-name=* |
--program-transform-name=* \
1330 |
--program-transform-nam=* |
--program-transform-na=* \
1331 |
--program-transform-n=* |
--program-transform-=* \
1332 |
--program-transform=* |
--program-transfor=* \
1333 |
--program-transfo=* |
--program-transf=* \
1334 |
--program-trans=* |
--program-tran=* \
1335 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1336 program_transform_name
=$ac_optarg ;;
1338 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1340 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1341 pdfdir
=$ac_optarg ;;
1343 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1345 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1348 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1349 |
-silent |
--silent |
--silen |
--sile |
--sil)
1352 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1353 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1354 |
--run |
--ru |
--r)
1355 ac_prev
=runstatedir
;;
1356 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1357 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1358 |
--run=* |
--ru=* |
--r=*)
1359 runstatedir
=$ac_optarg ;;
1361 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1363 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1365 sbindir
=$ac_optarg ;;
1367 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1368 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1369 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1371 ac_prev
=sharedstatedir
;;
1372 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1373 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1374 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1376 sharedstatedir
=$ac_optarg ;;
1378 -site |
--site |
--sit)
1380 -site=* |
--site=* |
--sit=*)
1383 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1385 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1386 srcdir
=$ac_optarg ;;
1388 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1389 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1390 ac_prev
=sysconfdir
;;
1391 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1392 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1393 sysconfdir
=$ac_optarg ;;
1395 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1396 ac_prev
=target_alias
;;
1397 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1398 target_alias
=$ac_optarg ;;
1400 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1403 -version |
--version |
--versio |
--versi |
--vers |
-V)
1404 ac_init_version
=: ;;
1407 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1410 as_fn_error $?
"invalid package name: '$ac_useropt'"
1411 ac_useropt_orig
=$ac_useropt
1412 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1417 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep
=', ';;
1420 eval with_
$ac_useropt=\
$ac_optarg ;;
1422 -without-* |
--without-*)
1423 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1426 as_fn_error $?
"invalid package name: '$ac_useropt'"
1427 ac_useropt_orig
=$ac_useropt
1428 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1433 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep
=', ';;
1436 eval with_
$ac_useropt=no
;;
1439 # Obsolete; use --with-x.
1442 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1443 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1444 ac_prev
=x_includes
;;
1445 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1446 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1447 x_includes
=$ac_optarg ;;
1449 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1450 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1451 ac_prev
=x_libraries
;;
1452 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1453 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1454 x_libraries
=$ac_optarg ;;
1456 -*) as_fn_error $?
"unrecognized option: '$ac_option'
1457 Try '$0 --help' for more information"
1461 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1462 # Reject names that are not valid shell variable names.
1463 case $ac_envvar in #(
1464 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1465 as_fn_error $?
"invalid variable name: '$ac_envvar'" ;;
1467 eval $ac_envvar=\
$ac_optarg
1468 export $ac_envvar ;;
1471 # FIXME: should be removed in autoconf 3.0.
1472 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1473 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1474 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1475 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1481 if test -n "$ac_prev"; then
1482 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1483 as_fn_error $?
"missing argument to $ac_option"
1486 if test -n "$ac_unrecognized_opts"; then
1487 case $enable_option_checking in
1489 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1490 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494 # Check all directory arguments for consistency.
1495 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1496 datadir sysconfdir sharedstatedir localstatedir includedir \
1497 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1498 libdir localedir mandir runstatedir
1500 eval ac_val
=\$
$ac_var
1501 # Remove trailing slashes.
1504 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505 eval $ac_var=\
$ac_val;;
1507 # Be sure to have absolute directory names.
1509 [\\/$
]* | ?
:[\\/]* ) continue;;
1510 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1512 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1515 # There might be people who depend on the old broken behavior: '$host'
1516 # used to hold the argument of --host etc.
1517 # FIXME: To remove some day.
1520 target
=$target_alias
1522 # FIXME: To remove some day.
1523 if test "x$host_alias" != x
; then
1524 if test "x$build_alias" = x
; then
1525 cross_compiling
=maybe
1526 elif test "x$build_alias" != "x$host_alias"; then
1532 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1534 test "$silent" = yes && exec 6>/dev
/null
1537 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1538 ac_ls_di
=`ls -di .` &&
1539 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1540 as_fn_error $?
"working directory cannot be determined"
1541 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1542 as_fn_error $?
"pwd does not report name of working directory"
1545 # Find the source files, if location was not specified.
1546 if test -z "$srcdir"; then
1547 ac_srcdir_defaulted
=yes
1548 # Try the directory containing this script, then the parent directory.
1549 ac_confdir
=`$as_dirname -- "$as_myself" ||
1550 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1551 X"$as_myself" : 'X\(//\)[^/]' \| \
1552 X"$as_myself" : 'X\(//\)$' \| \
1553 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1554 printf "%s\n" X"$as_myself" |
1555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1573 if test ! -r "$srcdir/$ac_unique_file"; then
1577 ac_srcdir_defaulted
=no
1579 if test ! -r "$srcdir/$ac_unique_file"; then
1580 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1581 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1583 ac_msg
="sources are in $srcdir, but 'cd $srcdir' does not work"
1585 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1587 # When building in place, set srcdir=.
1588 if test "$ac_abs_confdir" = "$ac_pwd"; then
1591 # Remove unnecessary trailing slashes from srcdir.
1592 # Double slashes in file names in object file debugging info
1593 # mess up M-x gdb in Emacs.
1595 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1597 for ac_var
in $ac_precious_vars; do
1598 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1599 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1600 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1601 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1605 # Report the --help message.
1607 if test "$ac_init_help" = "long"; then
1608 # Omit some internal or obsolete options to make the list less imposing.
1609 # This message is too long to be a string in the A/UX 3.1 sh.
1611 'configure' configures this package to adapt to many kinds of systems.
1613 Usage: $0 [OPTION]... [VAR=VALUE]...
1615 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1616 VAR=VALUE. See below for descriptions of some of the useful variables.
1618 Defaults for the options are specified in brackets.
1621 -h, --help display this help and exit
1622 --help=short display options specific to this package
1623 --help=recursive display the short help of all the included packages
1624 -V, --version display version information and exit
1625 -q, --quiet, --silent do not print 'checking ...' messages
1626 --cache-file=FILE cache test results in FILE [disabled]
1627 -C, --config-cache alias for '--cache-file=config.cache'
1628 -n, --no-create do not create output files
1629 --srcdir=DIR find the sources in DIR [configure dir or '..']
1631 Installation directories:
1632 --prefix=PREFIX install architecture-independent files in PREFIX
1633 [$ac_default_prefix]
1634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1637 By default, 'make install' will install all the files in
1638 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1639 an installation prefix other than '$ac_default_prefix' using '--prefix',
1640 for instance '--prefix=\$HOME'.
1642 For better control, use the options below.
1644 Fine tuning of the installation directories:
1645 --bindir=DIR user executables [EPREFIX/bin]
1646 --sbindir=DIR system admin executables [EPREFIX/sbin]
1647 --libexecdir=DIR program executables [EPREFIX/libexec]
1648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1651 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1652 --libdir=DIR object code libraries [EPREFIX/lib]
1653 --includedir=DIR C header files [PREFIX/include]
1654 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1655 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1656 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1657 --infodir=DIR info documentation [DATAROOTDIR/info]
1658 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1659 --mandir=DIR man documentation [DATAROOTDIR/man]
1660 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1661 --htmldir=DIR html documentation [DOCDIR]
1662 --dvidir=DIR dvi documentation [DOCDIR]
1663 --pdfdir=DIR pdf documentation [DOCDIR]
1664 --psdir=DIR ps documentation [DOCDIR]
1670 --build=BUILD configure
for building on BUILD
[guessed
]
1671 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1672 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1676 if test -n "$ac_init_help"; then
1681 --disable-option-checking ignore unrecognized
--enable/--with options
1682 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1683 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1684 --disable-dependency-tracking
1685 speeds up one-time build.
1686 --disable-silent-rules disable silent building
1687 --enable-static_link use this to link the tools to their libraries
1688 statically
(default is dynamic linking
1689 --disable-shared disable dynamic linking
1690 --disable-thin_check_needs_check
1691 required
if thin_check version is
< 0.3.0
1692 --disable-cache_check_needs_check
1693 required
if cache_check version is
< 0.5
1694 --disable-readline disable readline support
1695 --enable-editline enable editline support
1696 --disable-realtime disable realtime
clock support
1697 --enable-ocf enable Open Cluster Framework
(OCF
) compliant
1699 --enable-cmirrord enable the cluster mirror log daemon
1700 --enable-debug enable debugging
1701 --enable-profiling gather gcov profiling data
1702 --enable-valgrind-pool enable valgrind awareness of pools
1703 --disable-devmapper disable LVM2 device-mapper interaction
1704 --enable-lvmpolld enable the LVM Polling Daemon
1705 --enable-lvmlockd-sanlock
1706 enable the LVM lock daemon using sanlock
1707 --enable-lvmlockd-dlm enable the LVM lock daemon using dlm
1708 --enable-lvmlockd-dlmcontrol
1709 enable lvmlockd remote refresh using libdlmcontrol
1710 --enable-lvmlockd-idm enable the LVM lock daemon using idm
1711 --disable-use-lvmlockd disable usage of LVM lock daemon
1712 --disable-use-lvmpolld disable usage of LVM Poll Daemon
1713 --disable-systemd-journal
1714 disable LVM systemd journaling
1715 --disable-app-machineid disable LVM system ID using app-specific machine-id
1716 --disable-blkid_wiping disable libblkid detection of signatures when wiping
1717 and use native code instead
1718 --enable-udev_sync enable synchronization with udev processing
1719 --enable-udev_rules install rule files needed
for udev synchronization
1720 --enable-udev-rule-exec-detection
1721 enable executable path detection
in udev rules
1722 --enable-units-compat enable output compatibility with old versions that
1723 that
do not use KiB-style unit suffixes
1724 --disable-ioctl disable ioctl calls to device-mapper
in the kernel
1725 --disable-o_direct disable O_DIRECT
1726 --enable-dbus-service install D-Bus support
1727 --enable-notify-dbus enable LVM notification using dbus
1728 --enable-pkgconfig install pkgconfig support
1729 --enable-write_install install user writable files
1730 --disable-fsadm disable fsadm
1731 --disable-lvmimportvdo disable lvm_import_vdo
1732 --disable-blkdeactivate disable blkdeactivate
1733 --enable-dmeventd enable the device-mapper event daemon
1734 --enable-cmdlib build shared
command library
1735 --enable-dmfilemapd enable the dmstats filemap daemon
1736 --disable-selinux disable selinux support
1737 --disable-blkzeroout do not use BLKZEROOUT
for device zeroing
1738 --enable-nls enable Native Language Support
1741 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1742 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1743 --without-blkid do not build with blkid library
1744 --without-systemd do not build with systemd library
1745 --without-udev do not build with udev library
1746 --with-user=USER
set the owner of installed files
[USER
=]
1747 --with-group=GROUP
set the group owner of installed files
[GROUP
=]
1748 --with-device-uid=UID
set the owner used
for new device nodes
[UID
=0]
1749 --with-device-gid=GID
set the group used
for new device nodes
[GID
=0]
1750 --with-device-mode=MODE
set the mode used
for new device nodes
[MODE
=0600]
1751 --with-device-nodes-on=ON
1752 create nodes on resume or create
[ON
=resume
]
1753 --with-default-use-devices-file=ON
1754 default lvm.conf devices
/use_devicesfile
= [ON
=0]
1755 --with-default-name-mangling=MANGLING
1756 default name mangling
: auto
/none
/hex
[auto
]
1757 --with-default-event-activation=ON
1758 default lvm.conf global
/event_activation
= [ON
=1]
1759 --with-snapshots=TYPE snapshot support
: internal
/none
[internal
]
1760 --with-mirrors=TYPE mirror support
: internal
/none
[internal
]
1761 --with-default-mirror-segtype=TYPE
1762 default mirror segtype
: raid
1/mirror
[raid1
]
1763 --with-default-raid10-segtype=TYPE
1764 default mirror segtype
: raid10
/mirror
[raid10
]
1765 --with-default-sparse-segtype=TYPE
1766 default sparse segtype
: thin
/snapshot
[thin
]
1767 --with-thin=TYPE thin provisioning support
: internal
/none
[internal
]
1768 --with-thin-check=PATH thin_check tool
: [autodetect
]
1769 --with-thin-dump=PATH thin_dump tool
: [autodetect
]
1770 --with-thin-repair=PATH thin_repair tool
: [autodetect
]
1771 --with-thin-restore=PATH
1772 thin_restore tool
: [autodetect
]
1773 --with-cache=TYPE cache support
: internal
/none
[internal
]
1774 --with-cache-check=PATH cache_check tool
: [autodetect
]
1775 --with-cache-dump=PATH cache_dump tool
: [autodetect
]
1776 --with-cache-repair=PATH
1777 cache_repair tool
: [autodetect
]
1778 --with-cache-restore=PATH
1779 cache_restore tool
: [autodetect
]
1780 --with-vdo=TYPE vdo support
: internal
/none
[internal
]
1781 --with-vdo-format=PATH vdoformat tool
: [autodetect
]
1782 --with-writecache=TYPE writecache support
: internal
/none
[internal
]
1783 --with-integrity=TYPE integrity support
: internal
/none
[internal
]
1784 --with-ocfdir=DIR
install OCF files
in
1785 [PREFIX
/lib
/ocf
/resource.d
/lvm2
]
1786 --with-default-pid-dir=PID_DIR
1787 default directory to keep PID files
in [autodetect
]
1788 --with-default-dm-run-dir=DM_RUN_DIR
1789 default DM run directory
[autodetect
]
1790 --with-default-run-dir=RUN_DIR
1791 default LVM run directory
[autodetect_run_dir
/lvm
]
1792 --with-cmirrord-pidfile=PATH
1793 cmirrord pidfile
[PID_DIR
/cmirrord.pid
]
1794 --with-optimisation=OPT C optimisation flag
[OPT
=-O2]
1795 --with-symvers=STYLE use symbol versioning of the shared library
1797 --with-lvmlockd-pidfile=PATH
1798 lvmlockd pidfile
[PID_DIR
/lvmlockd.pid
]
1799 --with-lvmpolld-pidfile=PATH
1800 lvmpolld pidfile
[PID_DIR
/lvmpolld.pid
]
1801 --with-systemd-run=PATH systemd-run tool
: [autodetect
]
1802 --with-python-sys-prefix
1803 use Python
's sys.prefix and sys.exec_prefix values
1804 --with-python_prefix override the default PYTHON_PREFIX
1805 --with-python_exec_prefix
1806 override the default PYTHON_EXEC_PREFIX
1807 --with-localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1808 --with-confdir=DIR configuration files in DIR [/etc]
1809 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1810 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1811 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1812 --with-libexecdir=DIR libexec executables in DIR [PREFIX/libexec]
1813 --with-udev-prefix=UPREFIX
1814 install udev rule files in UPREFIX [EPREFIX]
1815 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1816 --with-systemdsystemunitdir=DIR
1817 systemd service files in DIR
1818 --with-tmpfilesdir=DIR install configuration files for management of
1819 volatile files and directories in DIR
1820 [PREFIX/lib/tmpfiles.d]
1821 --with-modulesdir=DIR Dir to look for file `uname -r`/modules.builtin
1823 --with-dmeventd-pidfile=PATH
1824 dmeventd pidfile [PID_DIR/dmeventd.pid]
1825 --with-dmeventd-path=PATH
1826 dmeventd path [EPREFIX/sbin/dmeventd]
1827 --with-dmeventd-exit-on-path=PATH
1828 Default path to exit-on file in dmeventd
1830 --with-default-system-dir=DIR
1831 default LVM system directory [/etc/lvm]
1832 --with-default-profile-subdir=SUBDIR
1833 default configuration profile subdir [profile]
1834 --with-default-archive-subdir=SUBDIR
1835 default metadata archive subdir [archive]
1836 --with-default-backup-subdir=SUBDIR
1837 default metadata backup subdir [backup]
1838 --with-default-cache-subdir=SUBDIR
1839 default metadata cache subdir [cache]
1840 --with-default-locking-dir=DIR
1841 default locking directory [autodetect_lock_dir/lvm]
1842 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
1844 Some influential environment variables:
1845 CC C compiler command
1846 CFLAGS C compiler flags
1847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1848 nonstandard directory <lib dir>
1849 LIBS libraries to pass to the linker, e.g. -l<library>
1850 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1851 you have headers in a nonstandard directory <include dir>
1852 CXX C++ compiler command
1853 CXXFLAGS C++ compiler flags
1854 PKG_CONFIG path to pkg-config utility
1856 directories to add to pkg-config's search path
1858 path overriding pkg-config
's built-in search path
1859 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1860 CPG_LIBS linker flags for CPG, overriding pkg-config
1862 C compiler flags for VALGRIND, overriding pkg-config
1864 linker flags for VALGRIND, overriding pkg-config
1865 LIBSANLOCKCLIENT_CFLAGS
1866 C compiler flags for LIBSANLOCKCLIENT, overriding pkg-config
1867 LIBSANLOCKCLIENT_LIBS
1868 linker flags for LIBSANLOCKCLIENT, overriding pkg-config
1870 C compiler flags for LIBDLM, overriding pkg-config
1871 LIBDLM_LIBS linker flags for LIBDLM, overriding pkg-config
1872 LIBDLMCONTROL_CFLAGS
1873 C compiler flags for LIBDLMCONTROL, overriding pkg-config
1875 linker flags for LIBDLMCONTROL, overriding pkg-config
1876 LIBSEAGATEILM_CFLAGS
1877 C compiler flags for LIBSEAGATEILM, overriding pkg-config
1879 linker flags for LIBSEAGATEILM, overriding pkg-config
1881 C compiler flags for BLKID, overriding pkg-config
1882 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1883 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1884 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1886 C compiler flags for LIBSYSTEMD, overriding pkg-config
1888 linker flags for LIBSYSTEMD, overriding pkg-config
1889 PYTHON the Python interpreter
1891 C compiler flags for SELINUX, overriding pkg-config
1893 linker flags for SELINUX, overriding pkg-config
1895 C compiler flags for EDITLINE, overriding pkg-config
1897 linker flags for EDITLINE, overriding pkg-config
1898 systemdsystemunitdir
1899 value of systemdsystemunitdir for systemd, overriding pkg-config
1901 value of systemdutildir for systemd, overriding pkg-config
1902 AIO_CFLAGS C compiler flags for AIO
1903 AIO_LIBS linker flags for AIO
1905 C compiler flags for readline
1907 linker flags for readline
1909 Use these variables to override the choices made by 'configure
' or to help
1910 it to find libraries and programs with nonstandard names/locations.
1912 Report bugs to the package provider.
1917 if test "$ac_init_help" = "recursive"; then
1918 # If there are subdirs, report their specific --help.
1919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1920 test -d "$ac_dir" ||
1921 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1928 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.
[\\/]||
'`
1929 # A ".." for each directory in $ac_dir_suffix.
1930 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1931 case $ac_top_builddir_sub in
1932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1936 ac_abs_top_builddir=$ac_pwd
1937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1938 # for backward compatibility:
1939 ac_top_builddir=$ac_top_build_prefix
1942 .) # We are building in place.
1944 ac_top_srcdir=$ac_top_builddir_sub
1945 ac_abs_top_srcdir=$ac_pwd ;;
1946 [\\/]* | ?:[\\/]* ) # Absolute name.
1947 ac_srcdir=$srcdir$ac_dir_suffix;
1948 ac_top_srcdir=$srcdir
1949 ac_abs_top_srcdir=$srcdir ;;
1951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1952 ac_top_srcdir=$ac_top_build_prefix$srcdir
1953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1957 cd "$ac_dir" || { ac_status=$?; continue; }
1958 # Check for configure.gnu first; this name is used for a wrapper for
1959 # Metaconfig's
"Configure" on case-insensitive
file systems.
1960 if test -f "$ac_srcdir/configure.gnu"; then
1962 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1963 elif test -f "$ac_srcdir/configure"; then
1965 $SHELL "$ac_srcdir/configure" --help=recursive
1967 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1969 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1973 test -n "$ac_init_help" && exit $ac_status
1974 if $ac_init_version; then
1977 generated by GNU Autoconf
2.72
1979 Copyright
(C
) 2023 Free Software Foundation
, Inc.
1980 This configure
script is free software
; the Free Software Foundation
1981 gives unlimited permission to copy
, distribute and modify it.
1986 ## ------------------------ ##
1987 ## Autoconf initialization. ##
1988 ## ------------------------ ##
1990 # ac_fn_c_try_compile LINENO
1991 # --------------------------
1992 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_c_try_compile
()
1995 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1996 rm -f conftest.
$ac_objext conftest.beam
1997 if { { ac_try
="$ac_compile"
1999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 printf "%s\n" "$ac_try_echo"; } >&5
2004 (eval "$ac_compile") 2>conftest.err
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && {
2013 test -z "$ac_c_werror_flag" ||
2014 test ! -s conftest.err
2015 } && test -s conftest.$ac_objext
2019 e) printf "%s\n" "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2028 } # ac_fn_c_try_compile
2030 # ac_fn_cxx_try_compile LINENO
2031 # ----------------------------
2032 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2033 ac_fn_cxx_try_compile ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 rm -f conftest.$ac_objext conftest.beam
2037 if { { ac_try="$ac_compile"
2039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2040 *) ac_try_echo
=$ac_try;;
2042 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 printf "%s\n" "$ac_try_echo"; } >&5
2044 (eval "$ac_compile") 2>conftest.err
2046 if test -s conftest.err
; then
2047 grep -v '^ *+' conftest.err
>conftest.er1
2048 cat conftest.er1
>&5
2049 mv -f conftest.er1 conftest.err
2051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && {
2053 test -z "$ac_cxx_werror_flag" ||
2054 test ! -s conftest.err
2055 } && test -s conftest.
$ac_objext
2059 e
) printf "%s\n" "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.
$ac_ext >&5
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status
$ac_retval
2068 } # ac_fn_cxx_try_compile
2070 # ac_fn_c_try_link LINENO
2071 # -----------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded.
2075 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2076 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
2077 if { { ac_try
="$ac_link"
2079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 printf "%s\n" "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>conftest.err
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } && {
2093 test -z "$ac_c_werror_flag" ||
2094 test ! -s conftest.err
2095 } && test -s conftest$ac_exeext && {
2096 test "$cross_compiling" = yes ||
2097 test -x conftest$ac_exeext
2102 e) printf "%s\n" "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110 # interfere with the next link command; also delete a directory that is
2111 # left behind by Apple's compiler. We do this before executing the actions.
2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2116 } # ac_fn_c_try_link
2118 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2119 # -------------------------------------------------------
2120 # Tests whether HEADER exists and can be compiled using the include files in
2121 # INCLUDES, setting the cache variable VAR accordingly.
2122 ac_fn_c_check_header_compile ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 printf %s "checking for $2... " >&6; }
2127 if eval test \${$3+y}
2129 printf %s "(cached) " >&6
2131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2136 if ac_fn_c_try_compile "$LINENO"
2143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 printf "%s\n" "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_header_compile
2153 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2154 # -------------------------------------------
2155 # Tests whether TYPE exists after having included INCLUDES, setting cache
2156 # variable VAR accordingly.
2157 ac_fn_c_check_type ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 printf %s "checking for $2... " >&6; }
2162 if eval test \${$3+y}
2164 printf %s "(cached) " >&6
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2179 if ac_fn_c_try_compile "$LINENO"
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2193 if ac_fn_c_try_compile "$LINENO"
2200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 printf "%s\n" "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_type
2212 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213 # ----------------------------------------------------
2214 # Tries to find if the field MEMBER exists in type AGGR, after including
2215 # INCLUDES, setting cache variable VAR accordingly.
2216 ac_fn_c_check_member ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220 printf %s "checking for $2.$3... " >&6; }
2221 if eval test \${$4+y}
2223 printf %s "(cached) " >&6
2225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"
2242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2249 if (sizeof ac_aggr.$3)
2255 if ac_fn_c_try_compile "$LINENO"
2262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 printf "%s\n" "$ac_res" >&6; }
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 } # ac_fn_c_check_member
2275 # ac_fn_c_find_intX_t LINENO BITS VAR
2276 # -----------------------------------
2277 # Finds a signed integer type with width BITS, setting cache variable VAR
2279 ac_fn_c_find_intX_t ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2283 printf %s "checking for int$2_t... " >&6; }
2284 if eval test \${$3+y}
2286 printf %s "(cached) " >&6
2289 # Order is important - never check a type that is potentially smaller
2290 # than half of the expected target width.
2291 for ac_type in int$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2296 enum { N = $2 / 2 - 1 };
2300 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2302 return test_array [0];
2308 if ac_fn_c_try_compile "$LINENO"
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2313 enum { N = $2 / 2 - 1 };
2317 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2318 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2320 return test_array [0];
2326 if ac_fn_c_try_compile "$LINENO"
2330 e) case $ac_type in #(
2334 eval "$3=\$ac_type" ;;
2338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 if eval test \"x\$"$3"\" = x"no"
2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 printf "%s\n" "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356 } # ac_fn_c_find_intX_t
2358 # ac_fn_c_find_uintX_t LINENO BITS VAR
2359 # ------------------------------------
2360 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2362 ac_fn_c_find_uintX_t ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2366 printf %s "checking for uint$2_t... " >&6; }
2367 if eval test \${$3+y}
2369 printf %s "(cached) " >&6
2372 # Order is important - never check a type that is potentially smaller
2373 # than half of the expected target width.
2374 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2375 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 $ac_includes_default
2382 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2384 return test_array [0];
2390 if ac_fn_c_try_compile "$LINENO"
2396 eval "$3=\$ac_type" ;;
2399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2400 if eval test \"x\$"$3"\" = x"no"
2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 printf "%s\n" "$ac_res" >&6; }
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 } # ac_fn_c_find_uintX_t
2417 # ac_fn_c_check_func LINENO FUNC VAR
2418 # ----------------------------------
2419 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2420 ac_fn_c_check_func ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 printf %s "checking for $2... " >&6; }
2425 if eval test \${$3+y}
2427 printf %s "(cached) " >&6
2429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2433 #define $2 innocuous_$2
2435 /* System header to define __stub macros and hopefully few prototypes,
2436 which can conflict with char $2 (void); below. */
2441 /* Override any GCC internal prototype to avoid an error.
2442 Use char because int might match the return type of a GCC
2443 builtin and then its argument prototype would still apply. */
2448 /* The GNU C library defines this for functions which it implements
2449 to always fail with ENOSYS. Some functions are actually named
2450 something starting with __ and the normal name is an alias. */
2451 #if defined __stub_$2 || defined __stub___$2
2463 if ac_fn_c_try_link "$LINENO"
2470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2471 conftest$ac_exeext conftest.$ac_ext ;;
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 printf "%s\n" "$ac_res" >&6; }
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2479 } # ac_fn_c_check_func
2481 # ac_fn_c_try_run LINENO
2482 # ----------------------
2483 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2484 # executables *can* be run.
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_link"
2490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2491 *) ac_try_echo
=$ac_try;;
2493 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 printf "%s\n" "$ac_try_echo"; } >&5
2495 (eval "$ac_link") 2>&5
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2499 { { case "(($ac_try" in
2500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 printf "%s\n" "$ac_try_echo"; } >&5
2505 (eval "$ac_try") 2>&5
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; }
2512 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2513 printf "%s\n" "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2516 ac_retval=$ac_status ;;
2519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 as_fn_set_status $ac_retval
2525 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2526 # ------------------------------------------------------------------
2527 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2528 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2534 printf %s "checking whether $as_decl_name is declared... " >&6; }
2535 if eval test \${$3+y}
2537 printf %s "(cached) " >&6
2539 e) as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2540 eval ac_save_FLAGS=\$$6
2541 as_fn_append $6 " $5"
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2548 #ifndef $as_decl_name
2550 (void) $as_decl_use;
2552 (void) $as_decl_name;
2560 if ac_fn_c_try_compile "$LINENO"
2567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2568 eval $6=\$ac_save_FLAGS
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 printf "%s\n" "$ac_res" >&6; }
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577 } # ac_fn_check_decl
2578 ac_configure_args_raw=
2583 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2585 as_fn_append ac_configure_args_raw " '$ac_arg'"
2588 case $ac_configure_args_raw in
2592 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2593 ac_unsafe_a="$ac_unsafe_z#~
"
2594 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
2595 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2598 cat >config.log <<_ACEOF
2599 This file contains any messages produced by compilers while
2600 running configure, to aid debugging if configure makes a mistake.
2602 It was created by $as_me, which was
2603 generated by GNU Autoconf 2.72. Invocation command line was
2605 $ $0$ac_configure_args_raw
2615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 case $as_dir in #(((
2641 *) as_dir=$as_dir/ ;;
2643 printf "%s
\n" "PATH
: $as_dir"
2659 # Keep a trace of the command line.
2660 # Strip out --no-create and --no-recursion so they do not pile up.
2661 # Strip out --silent because we don't want to record it for future runs.
2662 # Also quote any args containing shell meta-characters.
2663 # Make two passes to allow for proper duplicate-argument suppression.
2667 ac_must_keep_next=false
2673 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2675 | -silent | --silent | --silen | --sile | --sil)
2678 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2681 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2683 as_fn_append ac_configure_args1 " '$ac_arg'"
2684 if test $ac_must_keep_next = true; then
2685 ac_must_keep_next=false # Got value, back to normal.
2688 *=* | --config-cache | -C | -disable-* | --disable-* \
2689 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2690 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2691 | -with-* | --with-* | -without-* | --without-* | --x)
2692 case "$ac_configure_args0 " in
2693 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2696 -* ) ac_must_keep_next=true ;;
2699 as_fn_append ac_configure_args " '$ac_arg'"
2704 { ac_configure_args0=; unset ac_configure_args0;}
2705 { ac_configure_args1=; unset ac_configure_args1;}
2707 # When interrupted or exit'd, cleanup temporary files, and complete
2708 # config.log. We remove comments because anyway the quotes in there
2709 # would cause problems or look ugly.
2710 # WARNING: Use '\'' to represent an apostrophe within the trap.
2711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2712 trap 'exit_status=$?
2715 # Save into config.log some information that might help in debugging.
2719 printf "%s
\n" "## ---------------- ##
2720 ## Cache variables. ##
2721 ## ---------------- ##"
2723 # The following way of writing the cache mishandles newlines in values,
2725 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2726 eval ac_val
=\$
$ac_var
2730 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2731 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2734 _ | IFS | as_nl
) ;; #(
2735 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
2736 *) { eval $ac_var=; unset $ac_var;} ;;
2741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2742 *${as_nl}ac_space
=\
*)
2744 "s/'\''/'\''\\\\'\'''\''/g;
2745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2755 printf "%s\n" "## ----------------- ##
2756 ## Output variables. ##
2757 ## ----------------- ##"
2759 for ac_var
in $ac_subst_vars
2761 eval ac_val
=\$
$ac_var
2763 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2765 printf "%s\n" "$ac_var='\''$ac_val'\''"
2769 if test -n "$ac_subst_files"; then
2770 printf "%s\n" "## ------------------- ##
2771 ## File substitutions. ##
2772 ## ------------------- ##"
2774 for ac_var in $ac_subst_files
2776 eval ac_val=\$$ac_var
2778 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 printf "%s\n" "$ac_var='\''$ac_val'\''"
2785 if test -s confdefs.h
; then
2786 printf "%s\n" "## ----------- ##
2793 test "$ac_signal" != 0 &&
2794 printf "%s\n" "$as_me: caught signal $ac_signal"
2795 printf "%s\n" "$as_me: exit $exit_status"
2797 rm -f core
*.core core.conftest.
* &&
2798 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2801 for ac_signal in 1 2 13 15; do
2802 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2806 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2807 rm -f -r conftest* confdefs.h
2809 printf "%s\n" "/* confdefs.h */" > confdefs.h
2811 # Predefined preprocessor variables.
2813 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2815 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2817 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2819 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2821 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2823 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2826 # Let the site file select an alternate cache file if it wants to.
2827 # Prefer an explicitly selected file to automatically selected ones.
2828 if test -n "$CONFIG_SITE"; then
2829 ac_site_files="$CONFIG_SITE"
2830 elif test "x$prefix" != xNONE; then
2831 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2833 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2836 for ac_site_file in $ac_site_files
2838 case $ac_site_file in #(
2842 ac_site_file=./$ac_site_file ;;
2844 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2846 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2847 sed 's
/^
/|
/' "$ac_site_file" >&5
2849 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2850 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2851 as_fn_error $? "failed to load site script $ac_site_file
2852 See 'config.log
' for more details" "$LINENO" 5; }
2856 if test -r "$cache_file"; then
2857 # Some versions of bash will fail to source /dev/null (special files
2858 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2859 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2861 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2864 *) . "./$cache_file";;
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2869 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2873 # Test code for whether the C compiler supports C89 (global declarations)
2874 ac_c_conftest_c89_globals='
2875 /* Does the compiler advertise C89 conformance?
2876 Do not
test the value of __STDC__
, because some compilers
set it to
0
2877 while being otherwise adequately conformant.
*/
2878 #if !defined __STDC__
2879 # error "Compiler does not advertise C89 conformance"
2885 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2886 struct buf
{ int x
; };
2887 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2888 static char
*e
(char
**p
, int i
)
2892 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2897 s
= g
(p
, va_arg
(v
,int
));
2902 /* C89 style stringification.
*/
2903 #define noexpand_stringify(a) #a
2904 const char
*stringified
= noexpand_stringify
(arbitrary
+token
=sequence
);
2906 /* C89 style token pasting. Exercises some of the corner cases that
2907 e.g. old MSVC gets wrong
, but not very hard.
*/
2908 #define noexpand_concat(a,b) a##b
2909 #define expand_concat(a,b) noexpand_concat(a,b)
2914 int
*pvA
= &expand_concat
(v
,aye
);
2915 int
*pvbee
= &noexpand_concat
(v
,bee
);
2917 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2918 function prototypes and stuff
, but not \xHH hex character constants.
2919 These
do not provoke an error unfortunately
, instead are silently treated
2920 as an
"x". The following induces an error
, until -std is added to get
2921 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2922 array size
at least. It is necessary to
write \x00 == 0 to get something
2923 that is true only with
-std.
*/
2924 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2926 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2927 inside
strings and character constants.
*/
2928 #define FOO(x) '\''x'\''
2929 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2931 int
test (int i
, double x
);
2932 struct s1
{int
(*f
) (int a
);};
2933 struct s2
{int
(*f
) (double a
);};
2934 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2937 # Test code for whether the C compiler supports C89 (body of main).
2938 ac_c_conftest_c89_main='
2939 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2942 # Test code for whether the C compiler supports C99 (global declarations)
2943 ac_c_conftest_c99_globals='
2944 /* Does the compiler advertise C99 conformance?
*/
2945 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2946 # error "Compiler does not advertise C99 conformance"
2949 // See
if C
++-style comments work.
2951 #include <stdbool.h>
2952 extern int puts
(const char
*);
2953 extern int
printf (const char
*, ...
);
2954 extern int dprintf
(int
, const char
*, ...
);
2955 extern void
*malloc
(size_t
);
2956 extern void free
(void
*);
2958 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2959 // dprintf is used instead of fprintf to avoid needing to
declare
2961 #define debug(...) dprintf (2, __VA_ARGS__)
2962 #define showlist(...) puts (#__VA_ARGS__)
2963 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2965 test_varargs_macros
(void
)
2970 debug
("X = %d\n", x
);
2971 showlist
(The first
, second
, and third items.
);
2972 report
(x
>y
, "x is %d but y is %d", x
, y
);
2975 // Check long long types.
2976 #define BIG64 18446744073709551615ull
2977 #define BIG32 4294967295ul
2978 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2980 #error "your preprocessor is broken"
2984 #error "your preprocessor is broken"
2986 static long long int bignum
= -9223372036854775807LL;
2987 static unsigned long long int ubignum
= BIG64
;
2989 struct incomplete_array
2997 const wchar_t
*name
;
3001 typedef const char
*ccp
;
3004 test_restrict
(ccp restrict text
)
3006 // Iterate through items via the restricted pointer.
3007 // Also check
for declarations
in for loops.
3008 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
3013 // Check varargs and va_copy.
3015 test_varargs
(const char
*format
, ...
)
3018 va_start
(args
, format
);
3020 va_copy
(args_copy
, args
);
3022 const char
*str
= "";
3030 case '\''s
'\'': // string
3031 str
= va_arg
(args_copy
, const char
*);
3033 case '\''d
'\'': // int
3034 number
= va_arg
(args_copy
, int
);
3036 case '\''f
'\'': // float
3037 fnumber
= va_arg
(args_copy
, double
);
3046 return *str
&& number
&& fnumber
;
3050 # Test code for whether the C compiler supports C99 (body of main).
3051 ac_c_conftest_c99_main='
3053 _Bool success
= false
;
3054 success |
= (argc
!= 0);
3057 if (test_restrict
("String literal") == 0)
3059 char
*restrict newvar
= "Another string";
3062 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
3063 test_varargs_macros
();
3065 // Check flexible array members.
3066 struct incomplete_array
*ia
=
3067 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
3069 for (int i
= 0; i
< ia-
>datasize
; ++i
)
3070 ia-
>data
[i
] = i
* 1.234;
3071 // Work around memory leak warnings.
3074 // Check named initializers.
3075 struct named_init ni
= {
3077 .name
= L
"Test wide string",
3078 .average
= 543.34343,
3083 int dynamic_array
[ni.number
];
3084 dynamic_array
[0] = argv
[0][0];
3085 dynamic_array
[ni.number
- 1] = 543;
3087 // work around unused variable warnings
3088 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
3089 || dynamic_array
[ni.number
- 1] != 543);
3092 # Test code for whether the C compiler supports C11 (global declarations)
3093 ac_c_conftest_c11_globals='
3094 /* Does the compiler advertise C11 conformance?
*/
3095 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3096 # error "Compiler does not advertise C11 conformance"
3100 char _Alignas
(double
) aligned_as_double
;
3101 char _Alignas
(0) no_special_alignment
;
3102 extern char aligned_as_int
;
3103 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
3108 int_alignment
= _Alignof
(int
),
3109 int_array_alignment
= _Alignof
(int
[100]),
3110 char_alignment
= _Alignof
(char
)
3112 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
3115 int _Noreturn does_not_return
(void
) { for (;;) continue; }
3117 // Check _Static_assert.
3118 struct test_static_assert
3121 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
3122 "_Static_assert does not work in struct");
3126 // Check UTF-8 literals.
3127 #define u8 syntax error!
3128 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
3130 // Check duplicate typedefs.
3131 typedef long
*long_ptr
;
3132 typedef long int
*long_ptr
;
3133 typedef long_ptr long_ptr
;
3135 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
3139 struct
{ int i
; int j
; };
3140 struct
{ int k
; long int l
; } w
;
3146 # Test code for whether the C compiler supports C11 (body of main).
3147 ac_c_conftest_c11_main='
3148 _Static_assert
((offsetof
(struct anonymous
, i
)
3149 == offsetof
(struct anonymous
, w.k
)),
3150 "Anonymous union alignment botch");
3156 # Test code for whether the C compiler supports C11 (complete).
3157 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3158 ${ac_c_conftest_c99_globals}
3159 ${ac_c_conftest_c11_globals}
3162 main (int argc, char **argv)
3165 ${ac_c_conftest_c89_main}
3166 ${ac_c_conftest_c99_main}
3167 ${ac_c_conftest_c11_main}
3172 # Test code for whether the C compiler supports C99 (complete).
3173 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3174 ${ac_c_conftest_c99_globals}
3177 main (int argc, char **argv)
3180 ${ac_c_conftest_c89_main}
3181 ${ac_c_conftest_c99_main}
3186 # Test code for whether the C compiler supports C89 (complete).
3187 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3190 main (int argc, char **argv)
3193 ${ac_c_conftest_c89_main}
3198 # Test code for whether the C++ compiler supports C++98 (global declarations)
3199 ac_cxx_conftest_cxx98_globals='
3200 // Does the compiler advertise C
++98 conformance?
3201 #if !defined __cplusplus || __cplusplus < 199711L
3202 # error "Compiler does not advertise C++98 conformance"
3205 // These inclusions are to reject old compilers that
3206 // lack the unsuffixed header files.
3208 #include <exception>
3210 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
3211 extern void assert
(int
);
3213 extern int strcmp
(const char
*, const char
*);
3216 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
3217 using std
::exception
;
3222 void test_exception_syntax
()
3226 } catch
(const char
*s
) {
3227 // Extra parentheses suppress a warning when building autoconf itself
,
3228 // due to lint rules shared with
more typical C programs.
3229 assert
(!(strcmp
) (s
, "test"));
3233 template
<typename T
> struct test_template
3236 explicit test_template
(T t
) : val
(t
) {}
3237 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
3240 } // anonymous namespace
3243 # Test code for whether the C++ compiler supports C++98 (body of main)
3244 ac_cxx_conftest_cxx98_main='
3248 test_exception_syntax
();
3249 test_template
<double
> tt
(2.0);
3250 assert
(tt.add
(4) == 6.0);
3251 assert
(true
&& !false
);
3255 # Test code for whether the C++ compiler supports C++11 (global declarations)
3256 ac_cxx_conftest_cxx11_globals='
3257 // Does the compiler advertise C
++ 2011 conformance?
3258 #if !defined __cplusplus || __cplusplus < 201103L
3259 # error "Compiler does not advertise C++11 conformance"
3264 constexpr int get_val
() { return 20; }
3275 delegate
(int n
) : n
(n
) {}
3276 delegate
(): delegate
(2354) {}
3278 virtual int getval
() { return this-
>n
; };
3283 class overridden
: public delegate
3286 overridden
(int n
): delegate
(n
) {}
3287 virtual int getval
() override final
{ return this-
>n
* 2; }
3293 nocopy
(int i
): i
(i
) {}
3295 nocopy
(const nocopy
&) = delete
;
3296 nocopy
& operator
=(const nocopy
&) = delete
;
3301 // for testing lambda expressions
3302 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
3307 // for testing variadic templates and trailing
return types
3308 template
<typename V
> auto
sum(V first
) -> V
3312 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
3314 return first
+ sum(rest...
);
3319 # Test code for whether the C++ compiler supports C++11 (body of main)
3320 ac_cxx_conftest_cxx11_main='
3322 // Test auto and decltype
3324 auto a2
= 48573953.4;
3325 auto a3
= "String literal";
3328 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
3330 decltype
(a2
) a4
= 34895.034;
3334 short sa
[cxx11test
::get_val
()] = { 0 };
3337 // Test initializer lists
3338 cxx11test
::testinit il
= { 4323, 435234.23544 };
3341 // Test range-based
for
3342 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3343 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3344 for (auto
&x
: array
) { x
+= 23; }
3347 // Test lambda expressions
3348 using cxx11test
::eval;
3349 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
3351 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
3353 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
3357 // Test use of variadic templates
3358 using cxx11test
::sum;
3361 auto c
= sum(1.0, 2.0, 3.0);
3364 // Test constructor delegation
3365 cxx11test
::delegate d1
;
3366 cxx11test
::delegate d2
();
3367 cxx11test
::delegate d3
(45);
3370 // Test override and final
3371 cxx11test
::overridden o1
(55464);
3378 // Test template brackets
3379 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
3383 char const
*utf8
= u8
"UTF-8 string \u2500";
3384 char16_t const
*utf16
= u
"UTF-8 string \u2500";
3385 char32_t const
*utf32
= U
"UTF-32 string \u2500";
3389 # Test code for whether the C compiler supports C++11 (complete).
3390 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3391 ${ac_cxx_conftest_cxx11_globals}
3394 main (int argc, char **argv)
3397 ${ac_cxx_conftest_cxx98_main}
3398 ${ac_cxx_conftest_cxx11_main}
3403 # Test code for whether the C compiler supports C++98 (complete).
3404 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3406 main (int argc, char **argv)
3409 ${ac_cxx_conftest_cxx98_main}
3414 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3415 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3416 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3417 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3418 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3419 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3420 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3421 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3422 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3423 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3424 as_fn_append ac_func_c_list " fork HAVE_FORK"
3425 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3426 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3427 as_fn_append ac_func_c_list " alarm HAVE_ALARM"
3428 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3429 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3430 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3432 # Auxiliary files required by this configure script.
3433 ac_aux_files="install-sh config.guess config.sub"
3435 # Locations in which to look for auxiliary files.
3436 ac_aux_dir_candidates="${srcdir}/autoconf"
3438 # Search for a directory containing all of the required auxiliary files,
3439 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3440 # If we don't
find one directory that contains all the files we need
,
3441 # we report the set of missing files from the *first* directory in
3442 # $ac_aux_dir_candidates and give up.
3443 ac_missing_aux_files
=""
3444 ac_first_candidate
=:
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3448 for as_dir
in $ac_aux_dir_candidates
3451 case $as_dir in #(((
3454 *) as_dir
=$as_dir/ ;;
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3459 ac_aux_dir_found
=yes
3461 for ac_aux
in $ac_aux_files
3463 # As a special case, if "install-sh" is required, that requirement
3464 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3465 # and $ac_install_sh is set appropriately for whichever one is found.
3466 if test x
"$ac_aux" = x
"install-sh"
3468 if test -f "${as_dir}install-sh"; then
3469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3470 ac_install_sh
="${as_dir}install-sh -c"
3471 elif test -f "${as_dir}install.sh"; then
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3473 ac_install_sh
="${as_dir}install.sh -c"
3474 elif test -f "${as_dir}shtool"; then
3475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3476 ac_install_sh
="${as_dir}shtool install -c"
3479 if $ac_first_candidate; then
3480 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
3486 if test -f "${as_dir}${ac_aux}"; then
3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3490 if $ac_first_candidate; then
3491 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
3498 if test "$ac_aux_dir_found" = yes; then
3499 ac_aux_dir
="$as_dir"
3502 ac_first_candidate
=false
3511 e
) as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3516 # These three variables are undocumented and unsupported,
3517 # and are intended to be withdrawn in a future Autoconf release.
3518 # They can cause serious problems if a builder's source tree is in a directory
3519 # whose full name contains unusual characters.
3520 if test -f "${ac_aux_dir}config.guess"; then
3521 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
3523 if test -f "${ac_aux_dir}config.sub"; then
3524 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3526 if test -f "$ac_aux_dir/configure"; then
3527 ac_configure
="$SHELL ${ac_aux_dir}configure"
3530 # Check that the precious variables saved in the cache have kept the same
3532 ac_cache_corrupted
=false
3533 for ac_var
in $ac_precious_vars; do
3534 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3535 eval ac_new_set
=\
$ac_env_${ac_var}_set
3536 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3537 eval ac_new_val
=\
$ac_env_${ac_var}_value
3538 case $ac_old_set,$ac_new_set in
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3541 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3542 ac_cache_corrupted
=: ;;
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3545 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3546 ac_cache_corrupted
=: ;;
3549 if test "x$ac_old_val" != "x$ac_new_val"; then
3550 # differences in whitespace do not lead to failure.
3551 ac_old_val_w
=`echo x $ac_old_val`
3552 ac_new_val_w
=`echo x $ac_new_val`
3553 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3555 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3556 ac_cache_corrupted
=:
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3559 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3560 eval $ac_var=\
$ac_old_val
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3563 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3565 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3568 # Pass precious variables to config.status.
3569 if test "$ac_new_set" = set; then
3571 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3572 *) ac_arg
=$ac_var=$ac_new_val ;;
3574 case " $ac_configure_args " in
3575 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3576 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3580 if $ac_cache_corrupted; then
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3582 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3584 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3585 as_fn_error $?
"run '${MAKE-make} distclean' and/or 'rm $cache_file'
3586 and start over" "$LINENO" 5
3588 ## -------------------- ##
3589 ## Main body of script. ##
3590 ## -------------------- ##
3593 ac_cpp
='$CPP $CPPFLAGS'
3594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3599 CONFIGURE_LINE
="$0 $@"
3601 ac_config_headers
="$ac_config_headers include/configure.h"
3604 ################################################################################
3607 ################################################################################
3611 # Make sure we can run config.sub.
3612 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3613 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3616 printf %s
"checking build system type... " >&6; }
3617 if test ${ac_cv_build+y}
3619 printf %s
"(cached) " >&6
3621 e
) ac_build_alias
=$build_alias
3622 test "x$ac_build_alias" = x
&&
3623 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3624 test "x$ac_build_alias" = x
&&
3625 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3626 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3627 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3632 printf "%s\n" "$ac_cv_build" >&6; }
3633 case $ac_cv_build in
3635 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3638 ac_save_IFS
=$IFS; IFS
='-'
3644 # Remember, the first character of IFS is used to create $*,
3645 # except with old shells:
3648 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3652 printf %s
"checking host system type... " >&6; }
3653 if test ${ac_cv_host+y}
3655 printf %s
"(cached) " >&6
3657 e
) if test "x$host_alias" = x
; then
3658 ac_cv_host
=$ac_cv_build
3660 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3661 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3667 printf "%s\n" "$ac_cv_host" >&6; }
3670 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3673 ac_save_IFS
=$IFS; IFS
='-'
3679 # Remember, the first character of IFS is used to create $*,
3680 # except with old shells:
3683 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3687 printf %s
"checking target system type... " >&6; }
3688 if test ${ac_cv_target+y}
3690 printf %s
"(cached) " >&6
3692 e
) if test "x$target_alias" = x
; then
3693 ac_cv_target
=$ac_cv_host
3695 ac_cv_target
=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3696 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3702 printf "%s\n" "$ac_cv_target" >&6; }
3703 case $ac_cv_target in
3705 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3707 target
=$ac_cv_target
3708 ac_save_IFS
=$IFS; IFS
='-'
3714 # Remember, the first character of IFS is used to create $*,
3715 # except with old shells:
3718 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3721 # The aliases save the names the user supplied, while $host etc.
3722 # will get canonicalized.
3723 test -n "$target_alias" &&
3724 test "$program_prefix$program_suffix$program_transform_name" = \
3726 program_prefix
=${target_alias}-
3728 if test -z "$CFLAGS"
3730 COPTIMISE_FLAG
="-O2"
3732 case "$host_os" in #(
3735 # equivalent to -rdynamic
3736 ELDFLAGS
="-Wl,--export-dynamic"
3737 STATIC_LDFLAGS
="-Wl,--no-export-dynamic"
3738 # FIXME Generate list and use --dynamic-list=.dlopen.sym
3739 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
3740 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
3748 BLKDEACTIVATE
="yes" ;; #(
3751 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
3753 CLDWHOLEARCHIVE
="-all_load"
3762 BLKDEACTIVATE
="no" ;; #(
3767 ################################################################################
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3769 printf %s
"checking for a sed that does not truncate output... " >&6; }
3770 if test ${ac_cv_path_SED+y}
3772 printf %s
"(cached) " >&6
3774 e
) ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
3775 for ac_i
in 1 2 3 4 5 6 7; do
3776 ac_script
="$ac_script$as_nl$ac_script"
3778 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
3779 { ac_script
=; unset ac_script
;}
3780 if test -z "$SED"; then
3781 ac_path_SED_found
=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3787 case $as_dir in #(((
3790 *) as_dir
=$as_dir/ ;;
3792 for ac_prog
in sed gsed
3794 for ac_exec_ext
in '' $ac_executable_extensions; do
3795 ac_path_SED
="$as_dir$ac_prog$ac_exec_ext"
3796 as_fn_executable_p
"$ac_path_SED" ||
continue
3797 # Check for GNU ac_path_SED and select it if it is found.
3798 # Check for GNU $ac_path_SED
3799 case `"$ac_path_SED" --version 2>&1` in #(
3801 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
3805 printf %s
0123456789 >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 printf "%s\n" '' >> "conftest.nl"
3812 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3813 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3814 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3815 if test $ac_count -gt ${ac_path_SED_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_SED
="$ac_path_SED"
3818 ac_path_SED_max
=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3826 $ac_path_SED_found && break 3
3831 if test -z "$ac_cv_path_SED"; then
3832 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3841 printf "%s\n" "$ac_cv_path_SED" >&6; }
3842 SED
="$ac_cv_path_SED"
3845 for ac_prog
in gawk mawk nawk
awk
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy
$ac_prog; ac_word
=$2
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 printf %s
"checking for $ac_word... " >&6; }
3851 if test ${ac_cv_prog_AWK+y}
3853 printf %s
"(cached) " >&6
3855 e
) if test -n "$AWK"; then
3856 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3862 case $as_dir in #(((
3865 *) as_dir
=$as_dir/ ;;
3867 for ac_exec_ext
in '' $ac_executable_extensions; do
3868 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_AWK
="$ac_prog"
3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3881 if test -n "$AWK"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3883 printf "%s\n" "$AWK" >&6; }
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3890 test -n "$AWK" && break
3894 save_CXXFLAGS
=$CXXFLAGS
3905 ac_cpp
='$CPP $CPPFLAGS'
3906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3911 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 printf %s
"checking for $ac_word... " >&6; }
3914 if test ${ac_cv_prog_CC+y}
3916 printf %s
"(cached) " >&6
3918 e
) if test -n "$CC"; then
3919 ac_cv_prog_CC
="$CC" # Let the user override the test.
3921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3925 case $as_dir in #(((
3928 *) as_dir
=$as_dir/ ;;
3930 for ac_exec_ext
in '' $ac_executable_extensions; do
3931 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3944 if test -n "$CC"; then
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 printf "%s\n" "$CC" >&6; }
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 printf "%s\n" "no" >&6; }
3954 if test -z "$ac_cv_prog_CC"; then
3956 # Extract the first word of "gcc", so it can be a program name with args.
3957 set dummy gcc
; ac_word
=$2
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 printf %s
"checking for $ac_word... " >&6; }
3960 if test ${ac_cv_prog_ac_ct_CC+y}
3962 printf %s
"(cached) " >&6
3964 e
) if test -n "$ac_ct_CC"; then
3965 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3971 case $as_dir in #(((
3974 *) as_dir
=$as_dir/ ;;
3976 for ac_exec_ext
in '' $ac_executable_extensions; do
3977 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_CC
="gcc"
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3989 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3990 if test -n "$ac_ct_CC"; then
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992 printf "%s\n" "$ac_ct_CC" >&6; }
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 printf "%s\n" "no" >&6; }
3998 if test "x$ac_ct_CC" = x
; then
4001 case $cross_compiling:$ac_tool_warned in
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned
=yes ;;
4013 if test -z "$CC"; then
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4016 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 printf %s
"checking for $ac_word... " >&6; }
4019 if test ${ac_cv_prog_CC+y}
4021 printf %s
"(cached) " >&6
4023 e
) if test -n "$CC"; then
4024 ac_cv_prog_CC
="$CC" # Let the user override the test.
4026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4030 case $as_dir in #(((
4033 *) as_dir
=$as_dir/ ;;
4035 for ac_exec_ext
in '' $ac_executable_extensions; do
4036 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4049 if test -n "$CC"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051 printf "%s\n" "$CC" >&6; }
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 printf "%s\n" "no" >&6; }
4060 if test -z "$CC"; then
4061 # Extract the first word of "cc", so it can be a program name with args.
4062 set dummy cc
; ac_word
=$2
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 printf %s
"checking for $ac_word... " >&6; }
4065 if test ${ac_cv_prog_CC+y}
4067 printf %s
"(cached) " >&6
4069 e
) if test -n "$CC"; then
4070 ac_cv_prog_CC
="$CC" # Let the user override the test.
4073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4077 case $as_dir in #(((
4080 *) as_dir
=$as_dir/ ;;
4082 for ac_exec_ext
in '' $ac_executable_extensions; do
4083 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4084 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4085 ac_prog_rejected
=yes
4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4096 if test $ac_prog_rejected = yes; then
4097 # We found a bogon in the path, so make sure we never use it.
4098 set dummy
$ac_cv_prog_CC
4100 if test $# != 0; then
4101 # We chose a different compiler from the bogus one.
4102 # However, it has the same basename, so the bogon will be chosen
4103 # first if we set CC to just the basename; use the full file name.
4105 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
4112 if test -n "$CC"; then
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 printf "%s\n" "$CC" >&6; }
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 printf "%s\n" "no" >&6; }
4122 if test -z "$CC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 for ac_prog
in cl.exe
4126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 printf %s
"checking for $ac_word... " >&6; }
4130 if test ${ac_cv_prog_CC+y}
4132 printf %s
"(cached) " >&6
4134 e
) if test -n "$CC"; then
4135 ac_cv_prog_CC
="$CC" # Let the user override the test.
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4141 case $as_dir in #(((
4144 *) as_dir
=$as_dir/ ;;
4146 for ac_exec_ext
in '' $ac_executable_extensions; do
4147 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4160 if test -n "$CC"; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162 printf "%s\n" "$CC" >&6; }
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 printf "%s\n" "no" >&6; }
4169 test -n "$CC" && break
4172 if test -z "$CC"; then
4174 for ac_prog
in cl.exe
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy
$ac_prog; ac_word
=$2
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 printf %s
"checking for $ac_word... " >&6; }
4180 if test ${ac_cv_prog_ac_ct_CC+y}
4182 printf %s
"(cached) " >&6
4184 e
) if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 case $as_dir in #(((
4194 *) as_dir
=$as_dir/ ;;
4196 for ac_exec_ext
in '' $ac_executable_extensions; do
4197 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC
="$ac_prog"
4199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4209 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4210 if test -n "$ac_ct_CC"; then
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4212 printf "%s\n" "$ac_ct_CC" >&6; }
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 printf "%s\n" "no" >&6; }
4219 test -n "$ac_ct_CC" && break
4222 if test "x$ac_ct_CC" = x
; then
4225 case $cross_compiling:$ac_tool_warned in
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4229 ac_tool_warned
=yes ;;
4236 if test -z "$CC"; then
4237 if test -n "$ac_tool_prefix"; then
4238 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4239 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 printf %s
"checking for $ac_word... " >&6; }
4242 if test ${ac_cv_prog_CC+y}
4244 printf %s
"(cached) " >&6
4246 e
) if test -n "$CC"; then
4247 ac_cv_prog_CC
="$CC" # Let the user override the test.
4249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4253 case $as_dir in #(((
4256 *) as_dir
=$as_dir/ ;;
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4272 if test -n "$CC"; then
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 printf "%s\n" "$CC" >&6; }
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 printf "%s\n" "no" >&6; }
4282 if test -z "$ac_cv_prog_CC"; then
4284 # Extract the first word of "clang", so it can be a program name with args.
4285 set dummy clang
; ac_word
=$2
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 printf %s
"checking for $ac_word... " >&6; }
4288 if test ${ac_cv_prog_ac_ct_CC+y}
4290 printf %s
"(cached) " >&6
4292 e
) if test -n "$ac_ct_CC"; then
4293 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4299 case $as_dir in #(((
4302 *) as_dir
=$as_dir/ ;;
4304 for ac_exec_ext
in '' $ac_executable_extensions; do
4305 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_ac_ct_CC
="clang"
4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4317 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4318 if test -n "$ac_ct_CC"; then
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4320 printf "%s\n" "$ac_ct_CC" >&6; }
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 printf "%s\n" "no" >&6; }
4326 if test "x$ac_ct_CC" = x
; then
4329 case $cross_compiling:$ac_tool_warned in
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333 ac_tool_warned
=yes ;;
4344 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4345 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4346 as_fn_error $?
"no acceptable C compiler found in \$PATH
4347 See 'config.log' for more details" "$LINENO" 5; }
4349 # Provide some information about the compiler.
4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4353 for ac_option
in --version -v -V -qversion -version; do
4354 { { ac_try
="$ac_compiler $ac_option >&5"
4356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 printf "%s\n" "$ac_try_echo"; } >&5
4361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363 if test -s conftest.err; then
4365 ... rest of stderr output deleted ...
4366 10q' conftest.err >conftest.er1
4367 cat conftest.er1 >&5
4369 rm -f conftest.er1 conftest.err
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 ac_clean_files_save=$ac_clean_files
4386 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4387 # Try to create an executable without -o first, disregard a.out.
4388 # It will help us diagnose broken compilers, and finding out an intuition
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4391 printf %s "checking whether the C compiler works... " >&6; }
4392 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4394 # The possible output files:
4395 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4398 for ac_file in $ac_files
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4402 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4407 if { { ac_try="$ac_link_default"
4409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4410 *) ac_try_echo
=$ac_try;;
4412 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 printf "%s\n" "$ac_try_echo"; } >&5
4414 (eval "$ac_link_default") 2>&5
4416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }
4419 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4420 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4421 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4422 # so that the user can short-circuit this test for compilers unknown to
4424 for ac_file
in $ac_files ''
4426 test -f "$ac_file" ||
continue
4428 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4431 # We found the default executable, but exeext='' is most
4435 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
4437 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 # We set ac_cv_exeext here because the later test for it is not
4440 # safe: cross compilers may not add the suffix if given an '-o'
4441 # argument, so we may need to know it at that point already.
4442 # Even if this section looks crufty: it has the advantage of
4449 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4455 if test -z "$ac_file"
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 printf "%s\n" "no" >&6; }
4459 printf "%s\n" "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.
$ac_ext >&5
4462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4463 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4464 as_fn_error
77 "C compiler cannot create executables
4465 See 'config.log' for more details" "$LINENO" 5; }
4467 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468 printf "%s\n" "yes" >&6; } ;;
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4472 printf %s
"checking for C compiler default output file name... " >&6; }
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4474 printf "%s\n" "$ac_file" >&6; }
4475 ac_exeext
=$ac_cv_exeext
4477 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4478 ac_clean_files
=$ac_clean_files_save
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4480 printf %s
"checking for suffix of executables... " >&6; }
4481 if { { ac_try
="$ac_link"
4483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 printf "%s\n" "$ac_try_echo"; } >&5
4488 (eval "$ac_link") 2>&5
4490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }
4493 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4494 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4495 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4497 for ac_file in conftest.exe conftest conftest.*; do
4498 test -f "$ac_file" || continue
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4507 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4508 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4509 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4510 See 'config.log' for more details" "$LINENO" 5; } ;;
4513 rm -f conftest conftest$ac_cv_exeext
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515 printf "%s\n" "$ac_cv_exeext" >&6; }
4517 rm -f conftest.$ac_ext
4518 EXEEXT=$ac_cv_exeext
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4526 FILE *f = fopen ("conftest.out", "w");
4529 return ferror (f) || fclose (f) != 0;
4535 ac_clean_files="$ac_clean_files conftest.out"
4536 # Check that the compiler produces executables we can run. If not, either
4537 # the compiler is broken, or we cross compile.
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4539 printf %s "checking whether we are cross compiling... " >&6; }
4540 if test "$cross_compiling" != yes; then
4541 { { ac_try="$ac_link"
4543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4544 *) ac_try_echo
=$ac_try;;
4546 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 printf "%s\n" "$ac_try_echo"; } >&5
4548 (eval "$ac_link") 2>&5
4550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }
4552 if { ac_try
='./conftest$ac_cv_exeext'
4553 { { case "(($ac_try" in
4554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 printf "%s\n" "$ac_try_echo"; } >&5
4559 (eval "$ac_try") 2>&5
4561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; }; then
4565 if test "$cross_compiling" = maybe; then
4568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4569 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4570 as_fn_error 77 "cannot run C compiled programs.
4571 If you meant to cross compile, use '--host'.
4572 See 'config.log' for more details" "$LINENO" 5; }
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4577 printf "%s\n" "$cross_compiling" >&6; }
4579 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4580 conftest.o conftest.obj conftest.out
4581 ac_clean_files=$ac_clean_files_save
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4583 printf %s "checking for suffix of object files... " >&6; }
4584 if test ${ac_cv_objext+y}
4586 printf %s "(cached) " >&6
4588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 rm -f conftest.o conftest.obj
4600 if { { ac_try="$ac_compile"
4602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4603 *) ac_try_echo
=$ac_try;;
4605 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606 printf "%s\n" "$ac_try_echo"; } >&5
4607 (eval "$ac_compile") 2>&5
4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4610 test $ac_status = 0; }
4612 for ac_file
in conftest.o conftest.obj conftest.
*; do
4613 test -f "$ac_file" ||
continue;
4615 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
4616 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
4621 e
) printf "%s\n" "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4625 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4626 as_fn_error $?
"cannot compute suffix of object files: cannot compile
4627 See 'config.log' for more details" "$LINENO" 5; } ;;
4630 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext ;;
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4634 printf "%s\n" "$ac_cv_objext" >&6; }
4635 OBJEXT
=$ac_cv_objext
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4638 printf %s
"checking whether the compiler supports GNU C... " >&6; }
4639 if test ${ac_cv_c_compiler_gnu+y}
4641 printf %s
"(cached) " >&6
4643 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4657 if ac_fn_c_try_compile
"$LINENO"
4661 e
) ac_compiler_gnu
=no
;;
4664 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4665 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4670 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4673 if test $ac_compiler_gnu = yes; then
4678 ac_test_CFLAGS
=${CFLAGS+y}
4679 ac_save_CFLAGS
=$CFLAGS
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681 printf %s
"checking whether $CC accepts -g... " >&6; }
4682 if test ${ac_cv_prog_cc_g+y}
4684 printf %s
"(cached) " >&6
4686 e
) ac_save_c_werror_flag
=$ac_c_werror_flag
4687 ac_c_werror_flag
=yes
4690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4701 if ac_fn_c_try_compile
"$LINENO"
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4717 if ac_fn_c_try_compile
"$LINENO"
4721 e
) ac_c_werror_flag
=$ac_save_c_werror_flag
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4734 if ac_fn_c_try_compile
"$LINENO"
4738 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
4741 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
4744 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4745 ac_c_werror_flag
=$ac_save_c_werror_flag ;;
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4750 if test $ac_test_CFLAGS; then
4751 CFLAGS
=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4759 if test "$GCC" = yes; then
4766 if test x
$ac_prog_cc_stdc = xno
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4769 printf %s
"checking for $CC option to enable C11 features... " >&6; }
4770 if test ${ac_cv_prog_cc_c11+y}
4772 printf %s
"(cached) " >&6
4774 e
) ac_cv_prog_cc_c11
=no
4776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 $ac_c_conftest_c11_program
4780 for ac_arg
in '' -std=gnu11
4782 CC
="$ac_save_CC $ac_arg"
4783 if ac_fn_c_try_compile
"$LINENO"
4785 ac_cv_prog_cc_c11
=$ac_arg
4787 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4788 test "x$ac_cv_prog_cc_c11" != "xno" && break
4790 rm -f conftest.
$ac_ext
4795 if test "x$ac_cv_prog_cc_c11" = xno
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4798 printf "%s\n" "unsupported" >&6; }
4800 e
) if test "x$ac_cv_prog_cc_c11" = x
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4803 printf "%s\n" "none needed" >&6; }
4805 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4806 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4807 CC
="$CC $ac_cv_prog_cc_c11" ;;
4810 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
4811 ac_prog_cc_stdc
=c11
;;
4815 if test x
$ac_prog_cc_stdc = xno
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4818 printf %s
"checking for $CC option to enable C99 features... " >&6; }
4819 if test ${ac_cv_prog_cc_c99+y}
4821 printf %s
"(cached) " >&6
4823 e
) ac_cv_prog_cc_c99
=no
4825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 $ac_c_conftest_c99_program
4829 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
4831 CC
="$ac_save_CC $ac_arg"
4832 if ac_fn_c_try_compile
"$LINENO"
4834 ac_cv_prog_cc_c99
=$ac_arg
4836 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4837 test "x$ac_cv_prog_cc_c99" != "xno" && break
4839 rm -f conftest.
$ac_ext
4844 if test "x$ac_cv_prog_cc_c99" = xno
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4847 printf "%s\n" "unsupported" >&6; }
4849 e
) if test "x$ac_cv_prog_cc_c99" = x
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4852 printf "%s\n" "none needed" >&6; }
4854 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4855 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4856 CC
="$CC $ac_cv_prog_cc_c99" ;;
4859 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4860 ac_prog_cc_stdc
=c99
;;
4864 if test x
$ac_prog_cc_stdc = xno
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4867 printf %s
"checking for $CC option to enable C89 features... " >&6; }
4868 if test ${ac_cv_prog_cc_c89+y}
4870 printf %s
"(cached) " >&6
4872 e
) ac_cv_prog_cc_c89
=no
4874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 $ac_c_conftest_c89_program
4878 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 CC
="$ac_save_CC $ac_arg"
4881 if ac_fn_c_try_compile
"$LINENO"
4883 ac_cv_prog_cc_c89
=$ac_arg
4885 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
4888 rm -f conftest.
$ac_ext
4893 if test "x$ac_cv_prog_cc_c89" = xno
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896 printf "%s\n" "unsupported" >&6; }
4898 e
) if test "x$ac_cv_prog_cc_c89" = x
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4901 printf "%s\n" "none needed" >&6; }
4903 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4904 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4905 CC
="$CC $ac_cv_prog_cc_c89" ;;
4908 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4909 ac_prog_cc_stdc
=c89
;;
4915 ac_cpp
='$CPP $CPPFLAGS'
4916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4927 ac_cpp
='$CXXCPP $CPPFLAGS'
4928 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4931 if test -z "$CXX"; then
4932 if test -n "$CCC"; then
4935 if test -n "$ac_tool_prefix"; then
4936 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4939 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 printf %s
"checking for $ac_word... " >&6; }
4942 if test ${ac_cv_prog_CXX+y}
4944 printf %s
"(cached) " >&6
4946 e
) if test -n "$CXX"; then
4947 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 case $as_dir in #(((
4956 *) as_dir
=$as_dir/ ;;
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4972 if test -n "$CXX"; then
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4974 printf "%s\n" "$CXX" >&6; }
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 printf "%s\n" "no" >&6; }
4981 test -n "$CXX" && break
4984 if test -z "$CXX"; then
4986 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989 set dummy
$ac_prog; ac_word
=$2
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 printf %s
"checking for $ac_word... " >&6; }
4992 if test ${ac_cv_prog_ac_ct_CXX+y}
4994 printf %s
"(cached) " >&6
4996 e
) if test -n "$ac_ct_CXX"; then
4997 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 case $as_dir in #(((
5006 *) as_dir
=$as_dir/ ;;
5008 for ac_exec_ext
in '' $ac_executable_extensions; do
5009 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5021 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5022 if test -n "$ac_ct_CXX"; then
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5024 printf "%s\n" "$ac_ct_CXX" >&6; }
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 printf "%s\n" "no" >&6; }
5031 test -n "$ac_ct_CXX" && break
5034 if test "x$ac_ct_CXX" = x
; then
5037 case $cross_compiling:$ac_tool_warned in
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned
=yes ;;
5049 # Provide some information about the compiler.
5050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5053 for ac_option
in --version -v -V -qversion; do
5054 { { ac_try
="$ac_compiler $ac_option >&5"
5056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5060 printf "%s\n" "$ac_try_echo"; } >&5
5061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5063 if test -s conftest.err; then
5065 ... rest of stderr output deleted ...
5066 10q' conftest.err >conftest.er1
5067 cat conftest.er1 >&5
5069 rm -f conftest.er1 conftest.err
5070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5075 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5076 if test ${ac_cv_cxx_compiler_gnu+y}
5078 printf %s "(cached) " >&6
5080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5094 if ac_fn_cxx_try_compile "$LINENO"
5098 e) ac_compiler_gnu=no ;;
5101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5102 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5107 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 if test $ac_compiler_gnu = yes; then
5115 ac_test_CXXFLAGS=${CXXFLAGS+y}
5116 ac_save_CXXFLAGS=$CXXFLAGS
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5118 printf %s "checking whether $CXX accepts -g... " >&6; }
5119 if test ${ac_cv_prog_cxx_g+y}
5121 printf %s "(cached) " >&6
5123 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5124 ac_cxx_werror_flag=yes
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5138 if ac_fn_cxx_try_compile "$LINENO"
5140 ac_cv_prog_cxx_g=yes
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5154 if ac_fn_cxx_try_compile "$LINENO"
5158 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5171 if ac_fn_cxx_try_compile "$LINENO"
5173 ac_cv_prog_cxx_g=yes
5175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5186 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5187 if test $ac_test_CXXFLAGS; then
5188 CXXFLAGS=$ac_save_CXXFLAGS
5189 elif test $ac_cv_prog_cxx_g = yes; then
5190 if test "$GXX" = yes; then
5196 if test "$GXX" = yes; then
5202 ac_prog_cxx_stdcxx=no
5203 if test x$ac_prog_cxx_stdcxx = xno
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5206 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5207 if test ${ac_cv_prog_cxx_cxx11+y}
5209 printf %s "(cached) " >&6
5211 e) ac_cv_prog_cxx_cxx11=no
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 $ac_cxx_conftest_cxx11_program
5217 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5219 CXX="$ac_save_CXX $ac_arg"
5220 if ac_fn_cxx_try_compile "$LINENO"
5222 ac_cv_prog_cxx_cxx11=$ac_arg
5224 rm -f core conftest.err conftest.$ac_objext conftest.beam
5225 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5227 rm -f conftest.$ac_ext
5232 if test "x$ac_cv_prog_cxx_cxx11" = xno
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5235 printf "%s\n" "unsupported" >&6; }
5237 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5240 printf "%s\n" "none needed" >&6; }
5242 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5243 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5244 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5247 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5248 ac_prog_cxx_stdcxx=cxx11 ;;
5252 if test x$ac_prog_cxx_stdcxx = xno
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5255 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5256 if test ${ac_cv_prog_cxx_cxx98+y}
5258 printf %s "(cached) " >&6
5260 e) ac_cv_prog_cxx_cxx98=no
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 $ac_cxx_conftest_cxx98_program
5266 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5268 CXX="$ac_save_CXX $ac_arg"
5269 if ac_fn_cxx_try_compile "$LINENO"
5271 ac_cv_prog_cxx_cxx98=$ac_arg
5273 rm -f core conftest.err conftest.$ac_objext conftest.beam
5274 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5276 rm -f conftest.$ac_ext
5281 if test "x$ac_cv_prog_cxx_cxx98" = xno
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5284 printf "%s\n" "unsupported" >&6; }
5286 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5289 printf "%s\n" "none needed" >&6; }
5291 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5292 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5293 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5296 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5297 ac_prog_cxx_stdcxx=cxx98 ;;
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 CXXFLAGS=$save_CXXFLAGS
5310 PATH_SBIN="$PATH:/usr/sbin:/sbin"
5314 # Find a good install program. We prefer a C program (faster),
5315 # so one script is as good as another. But avoid the broken or
5316 # incompatible versions:
5317 # SysV /etc/install, /usr/sbin/install
5318 # SunOS /usr/etc/install
5319 # IRIX /sbin/install
5321 # AmigaOS /C/install, which installs bootblocks on floppy discs
5322 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5323 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5324 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5325 # OS/2's system install, which has a completely different semantic
5326 # ./install, which can be erroneously created by make from ./install.sh.
5327 # Reject install programs that cannot install multiple files.
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5329 printf %s "checking for a BSD-compatible install... " >&6; }
5330 if test -z "$INSTALL"; then
5331 if test ${ac_cv_path_install+y}
5333 printf %s "(cached) " >&6
5335 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 case $as_dir in #(((
5342 *) as_dir=$as_dir/ ;;
5344 # Account for fact that we put trailing slashes in our PATH walk.
5347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5348 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5351 # OSF1 and SCO ODT 3.0 have their own names for install.
5352 # Don't use installbsd from OSF since it installs stuff as root
5354 for ac_prog in ginstall scoinst install; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5357 if test $ac_prog = install &&
5358 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5359 # AIX install. It has an incompatible calling convention.
5361 elif test $ac_prog = install &&
5362 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5363 # program-specific install script used by HP pwplus--don't use.
5366 rm -rf conftest.one conftest.two conftest.dir
5367 echo one > conftest.one
5368 echo two > conftest.two
5370 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5371 test -s conftest.one && test -s conftest.two &&
5372 test -s conftest.dir/conftest.one &&
5373 test -s conftest.dir/conftest.two
5375 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5388 rm -rf conftest.one conftest.two conftest.dir
5392 if test ${ac_cv_path_install+y}; then
5393 INSTALL=$ac_cv_path_install
5395 # As a last resort, use the slow shell script. Don't cache a
5396 # value for INSTALL within a source directory, because that will
5397 # break other packages using the cache if that directory is
5398 # removed, or if the value is a relative name.
5399 INSTALL=$ac_install_sh
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5403 printf "%s\n" "$INSTALL" >&6; }
5405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5406 # It thinks the first close brace ends the variable substitution.
5407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5414 printf %s "checking whether ln -s works... " >&6; }
5416 if test "$LN_S" = "ln -s"; then
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418 printf "%s\n" "yes" >&6; }
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5421 printf "%s\n" "no, using $LN_S" >&6; }
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5425 printf %s "checking for grep that handles long lines and -e... " >&6; }
5426 if test ${ac_cv_path_GREP+y}
5428 printf %s "(cached) " >&6
5430 e) if test -z "$GREP"; then
5431 ac_path_GREP_found=false
5432 # Loop through the user's path and test for each of PROGNAME-LIST
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5437 case $as_dir in #(((
5440 *) as_dir=$as_dir/ ;;
5442 for ac_prog in grep ggrep
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5446 as_fn_executable_p "$ac_path_GREP" || continue
5447 # Check for GNU ac_path_GREP and select it if it is found.
5448 # Check for GNU $ac_path_GREP
5449 case `"$ac_path_GREP" --version 2>&1` in #(
5451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5455 printf %s 0123456789 >"conftest.in"
5458 cat "conftest.in" "conftest.in" >"conftest.tmp"
5459 mv "conftest.tmp" "conftest.in"
5460 cp "conftest.in" "conftest.nl"
5461 printf "%s\n" 'GREP' >> "conftest.nl"
5462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5464 as_fn_arith $ac_count + 1 && ac_count=$as_val
5465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5466 # Best one so far, save it but keep looking for a better one
5467 ac_cv_path_GREP="$ac_path_GREP"
5468 ac_path_GREP_max=$ac_count
5470 # 10*(2^10) chars as input seems more than enough
5471 test $ac_count -gt 10 && break
5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5476 $ac_path_GREP_found && break 3
5481 if test -z "$ac_cv_path_GREP"; then
5482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5485 ac_cv_path_GREP=$GREP
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5491 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5492 GREP="$ac_cv_path_GREP"
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5496 printf %s "checking for egrep... " >&6; }
5497 if test ${ac_cv_path_EGREP+y}
5499 printf %s "(cached) " >&6
5501 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5502 then ac_cv_path_EGREP="$GREP -E"
5504 if test -z "$EGREP"; then
5505 ac_path_EGREP_found=false
5506 # Loop through the user's path and test for each of PROGNAME-LIST
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5511 case $as_dir in #(((
5514 *) as_dir=$as_dir/ ;;
5516 for ac_prog in egrep
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5520 as_fn_executable_p "$ac_path_EGREP" || continue
5521 # Check for GNU ac_path_EGREP and select it if it is found.
5522 # Check for GNU $ac_path_EGREP
5523 case `"$ac_path_EGREP" --version 2>&1` in #(
5525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5529 printf %s 0123456789 >"conftest.in"
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
5535 printf "%s\n" 'EGREP' >> "conftest.nl"
5536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538 as_fn_arith $ac_count + 1 && ac_count=$as_val
5539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_EGREP="$ac_path_EGREP"
5542 ac_path_EGREP_max=$ac_count
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550 $ac_path_EGREP_found && break 3
5555 if test -z "$ac_cv_path_EGREP"; then
5556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5559 ac_cv_path_EGREP=$EGREP
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5566 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5567 EGREP="$ac_cv_path_EGREP"
5569 EGREP_TRADITIONAL=$EGREP
5570 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5573 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5575 ac_make=`printf "%s\n" "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5576 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5578 printf %s "(cached) " >&6
5580 e) cat >conftest.make <<\_ACEOF
5583 @echo '@@@%%%=$(MAKE)=@@@%%%'
5585 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5586 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
5588 eval ac_cv_prog_make_${ac_make}_set=yes;;
5590 eval ac_cv_prog_make_${ac_make}_set=no;;
5592 rm -f conftest.make ;;
5595 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597 printf "%s\n" "yes" >&6; }
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 printf "%s\n" "no" >&6; }
5602 SET_MAKE="MAKE=${MAKE-make}"
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5607 printf %s "checking for a race-free mkdir -p... " >&6; }
5608 if test -z "$MKDIR_P"; then
5609 if test ${ac_cv_path_mkdir+y}
5611 printf %s "(cached) " >&6
5613 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5617 case $as_dir in #(((
5620 *) as_dir=$as_dir/ ;;
5622 for ac_prog in mkdir gmkdir; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5625 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5626 'mkdir ('*'coreutils) '* | \
5628 'mkdir (fileutils) '4.1*)
5629 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5640 test -d ./--version && rmdir ./--version
5641 if test ${ac_cv_path_mkdir+y}; then
5642 MKDIR_P="$ac_cv_path_mkdir -p"
5644 # As a last resort, use plain mkdir -p,
5645 # in the hope it doesn't have the bugs of ancient mkdir.
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5650 printf "%s\n" "$MKDIR_P" >&6; }
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 printf %s "checking for $ac_word... " >&6; }
5657 if test ${ac_cv_prog_RANLIB+y}
5659 printf %s "(cached) " >&6
5661 e) if test -n "$RANLIB"; then
5662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 case $as_dir in #(((
5671 *) as_dir=$as_dir/ ;;
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5686 RANLIB=$ac_cv_prog_RANLIB
5687 if test -n "$RANLIB"; then
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5689 printf "%s\n" "$RANLIB" >&6; }
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 printf "%s\n" "no" >&6; }
5697 if test -z "$ac_cv_prog_RANLIB"; then
5698 ac_ct_RANLIB=$RANLIB
5699 # Extract the first word of "ranlib", so it can be a program name with args.
5700 set dummy ranlib; ac_word=$2
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 printf %s "checking for $ac_word... " >&6; }
5703 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5705 printf %s "(cached) " >&6
5707 e) if test -n "$ac_ct_RANLIB"; then
5708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 case $as_dir in #(((
5717 *) as_dir=$as_dir/ ;;
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_RANLIB="ranlib"
5722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5733 if test -n "$ac_ct_RANLIB"; then
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5735 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 printf "%s\n" "no" >&6; }
5741 if test "x$ac_ct_RANLIB" = x; then
5744 case $cross_compiling:$ac_tool_warned in
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748 ac_tool_warned=yes ;;
5750 RANLIB=$ac_ct_RANLIB
5753 RANLIB="$ac_cv_prog_RANLIB"
5756 if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}readelf; ac_word=$2
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 printf %s "checking for $ac_word... " >&6; }
5761 if test ${ac_cv_prog_READELF+y}
5763 printf %s "(cached) " >&6
5765 e) if test -n "$READELF"; then
5766 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 case $as_dir in #(((
5775 *) as_dir=$as_dir/ ;;
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5790 READELF=$ac_cv_prog_READELF
5791 if test -n "$READELF"; then
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5793 printf "%s\n" "$READELF" >&6; }
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 printf "%s\n" "no" >&6; }
5801 if test -z "$ac_cv_prog_READELF"; then
5802 ac_ct_READELF=$READELF
5803 # Extract the first word of "readelf", so it can be a program name with args.
5804 set dummy readelf; ac_word=$2
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 printf %s "checking for $ac_word... " >&6; }
5807 if test ${ac_cv_prog_ac_ct_READELF+y}
5809 printf %s "(cached) " >&6
5811 e) if test -n "$ac_ct_READELF"; then
5812 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 case $as_dir in #(((
5821 *) as_dir=$as_dir/ ;;
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_ac_ct_READELF="readelf"
5826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5836 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5837 if test -n "$ac_ct_READELF"; then
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5839 printf "%s\n" "$ac_ct_READELF" >&6; }
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 printf "%s\n" "no" >&6; }
5845 if test "x$ac_ct_READELF" = x; then
5848 case $cross_compiling:$ac_tool_warned in
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852 ac_tool_warned=yes ;;
5854 READELF=$ac_ct_READELF
5857 READELF="$ac_cv_prog_READELF"
5860 if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5862 set dummy ${ac_tool_prefix}ar; ac_word=$2
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 printf %s "checking for $ac_word... " >&6; }
5865 if test ${ac_cv_prog_AR+y}
5867 printf %s "(cached) " >&6
5869 e) if test -n "$AR"; then
5870 ac_cv_prog_AR="$AR" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 case $as_dir in #(((
5879 *) as_dir=$as_dir/ ;;
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_AR="${ac_tool_prefix}ar"
5884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5895 if test -n "$AR"; then
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5897 printf "%s\n" "$AR" >&6; }
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 printf "%s\n" "no" >&6; }
5905 if test -z "$ac_cv_prog_AR"; then
5907 # Extract the first word of "ar", so it can be a program name with args.
5908 set dummy ar; ac_word=$2
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 printf %s "checking for $ac_word... " >&6; }
5911 if test ${ac_cv_prog_ac_ct_AR+y}
5913 printf %s "(cached) " >&6
5915 e) if test -n "$ac_ct_AR"; then
5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 case $as_dir in #(((
5925 *) as_dir=$as_dir/ ;;
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_AR="ar"
5930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5941 if test -n "$ac_ct_AR"; then
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5943 printf "%s\n" "$ac_ct_AR" >&6; }
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 printf "%s\n" "no" >&6; }
5949 if test "x$ac_ct_AR" = x; then
5952 case $cross_compiling:$ac_tool_warned in
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}cflow", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}cflow; ac_word=$2
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 printf %s "checking for $ac_word... " >&6; }
5969 if test ${ac_cv_path_CFLOW_CMD+y}
5971 printf %s "(cached) " >&6
5973 e) case $CFLOW_CMD in
5975 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 case $as_dir in #(((
5985 *) as_dir=$as_dir/ ;;
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5989 ac_cv_path_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext"
5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6001 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
6002 if test -n "$CFLOW_CMD"; then
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
6004 printf "%s\n" "$CFLOW_CMD" >&6; }
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 printf "%s\n" "no" >&6; }
6012 if test -z "$ac_cv_path_CFLOW_CMD"; then
6013 ac_pt_CFLOW_CMD=$CFLOW_CMD
6014 # Extract the first word of "cflow", so it can be a program name with args.
6015 set dummy cflow; ac_word=$2
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 printf %s "checking for $ac_word... " >&6; }
6018 if test ${ac_cv_path_ac_pt_CFLOW_CMD+y}
6020 printf %s "(cached) " >&6
6022 e) case $ac_pt_CFLOW_CMD in
6024 ac_cv_path_ac_pt_CFLOW_CMD="$ac_pt_CFLOW_CMD" # Let the user override the test with a path.
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 case $as_dir in #(((
6034 *) as_dir=$as_dir/ ;;
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6038 ac_cv_path_ac_pt_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext"
6039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6050 ac_pt_CFLOW_CMD=$ac_cv_path_ac_pt_CFLOW_CMD
6051 if test -n "$ac_pt_CFLOW_CMD"; then
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CFLOW_CMD" >&5
6053 printf "%s\n" "$ac_pt_CFLOW_CMD" >&6; }
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 printf "%s\n" "no" >&6; }
6059 if test "x$ac_pt_CFLOW_CMD" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6068 CFLOW_CMD=$ac_pt_CFLOW_CMD
6071 CFLOW_CMD="$ac_cv_path_CFLOW_CMD"
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}cscope", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}cscope; ac_word=$2
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 printf %s "checking for $ac_word... " >&6; }
6079 if test ${ac_cv_path_CSCOPE_CMD+y}
6081 printf %s "(cached) " >&6
6083 e) case $CSCOPE_CMD in
6085 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 case $as_dir in #(((
6095 *) as_dir=$as_dir/ ;;
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6099 ac_cv_path_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext"
6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6111 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
6112 if test -n "$CSCOPE_CMD"; then
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
6114 printf "%s\n" "$CSCOPE_CMD" >&6; }
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 printf "%s\n" "no" >&6; }
6122 if test -z "$ac_cv_path_CSCOPE_CMD"; then
6123 ac_pt_CSCOPE_CMD=$CSCOPE_CMD
6124 # Extract the first word of "cscope", so it can be a program name with args.
6125 set dummy cscope; ac_word=$2
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 printf %s "checking for $ac_word... " >&6; }
6128 if test ${ac_cv_path_ac_pt_CSCOPE_CMD+y}
6130 printf %s "(cached) " >&6
6132 e) case $ac_pt_CSCOPE_CMD in
6134 ac_cv_path_ac_pt_CSCOPE_CMD="$ac_pt_CSCOPE_CMD" # Let the user override the test with a path.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 case $as_dir in #(((
6144 *) as_dir=$as_dir/ ;;
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6148 ac_cv_path_ac_pt_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext"
6149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6160 ac_pt_CSCOPE_CMD=$ac_cv_path_ac_pt_CSCOPE_CMD
6161 if test -n "$ac_pt_CSCOPE_CMD"; then
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CSCOPE_CMD" >&5
6163 printf "%s\n" "$ac_pt_CSCOPE_CMD" >&6; }
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 printf "%s\n" "no" >&6; }
6169 if test "x$ac_pt_CSCOPE_CMD" = x; then
6172 case $cross_compiling:$ac_tool_warned in
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6178 CSCOPE_CMD=$ac_pt_CSCOPE_CMD
6181 CSCOPE_CMD="$ac_cv_path_CSCOPE_CMD"
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}chmod; ac_word=$2
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 printf %s "checking for $ac_word... " >&6; }
6189 if test ${ac_cv_path_CHMOD+y}
6191 printf %s "(cached) " >&6
6195 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 case $as_dir in #(((
6205 *) as_dir=$as_dir/ ;;
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6209 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6221 CHMOD=$ac_cv_path_CHMOD
6222 if test -n "$CHMOD"; then
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6224 printf "%s\n" "$CHMOD" >&6; }
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 printf "%s\n" "no" >&6; }
6232 if test -z "$ac_cv_path_CHMOD"; then
6234 # Extract the first word of "chmod", so it can be a program name with args.
6235 set dummy chmod; ac_word=$2
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 printf %s "checking for $ac_word... " >&6; }
6238 if test ${ac_cv_path_ac_pt_CHMOD+y}
6240 printf %s "(cached) " >&6
6242 e) case $ac_pt_CHMOD in
6244 ac_cv_path_ac_pt_CHMOD="$ac_pt_CHMOD" # Let the user override the test with a path.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 case $as_dir in #(((
6254 *) as_dir=$as_dir/ ;;
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6258 ac_cv_path_ac_pt_CHMOD="$as_dir$ac_word$ac_exec_ext"
6259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6270 ac_pt_CHMOD=$ac_cv_path_ac_pt_CHMOD
6271 if test -n "$ac_pt_CHMOD"; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CHMOD" >&5
6273 printf "%s\n" "$ac_pt_CHMOD" >&6; }
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 printf "%s\n" "no" >&6; }
6279 if test "x$ac_pt_CHMOD" = x; then
6282 case $cross_compiling:$ac_tool_warned in
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286 ac_tool_warned=yes ;;
6291 CHMOD="$ac_cv_path_CHMOD"
6294 if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}wc", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}wc; ac_word=$2
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 printf %s "checking for $ac_word... " >&6; }
6299 if test ${ac_cv_path_WC+y}
6301 printf %s "(cached) " >&6
6305 ac_cv_path_WC="$WC" # Let the user override the test with a path.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 case $as_dir in #(((
6315 *) as_dir=$as_dir/ ;;
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6319 ac_cv_path_WC="$as_dir$ac_word$ac_exec_ext"
6320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6332 if test -n "$WC"; then
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
6334 printf "%s\n" "$WC" >&6; }
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 printf "%s\n" "no" >&6; }
6342 if test -z "$ac_cv_path_WC"; then
6344 # Extract the first word of "wc", so it can be a program name with args.
6345 set dummy wc; ac_word=$2
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 printf %s "checking for $ac_word... " >&6; }
6348 if test ${ac_cv_path_ac_pt_WC+y}
6350 printf %s "(cached) " >&6
6352 e) case $ac_pt_WC in
6354 ac_cv_path_ac_pt_WC="$ac_pt_WC" # Let the user override the test with a path.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 case $as_dir in #(((
6364 *) as_dir=$as_dir/ ;;
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6368 ac_cv_path_ac_pt_WC="$as_dir$ac_word$ac_exec_ext"
6369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6380 ac_pt_WC=$ac_cv_path_ac_pt_WC
6381 if test -n "$ac_pt_WC"; then
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_WC" >&5
6383 printf "%s\n" "$ac_pt_WC" >&6; }
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 printf "%s\n" "no" >&6; }
6389 if test "x$ac_pt_WC" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}sort", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}sort; ac_word=$2
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 printf %s "checking for $ac_word... " >&6; }
6409 if test ${ac_cv_path_SORT+y}
6411 printf %s "(cached) " >&6
6415 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 case $as_dir in #(((
6425 *) as_dir=$as_dir/ ;;
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_path_SORT="$as_dir$ac_word$ac_exec_ext"
6430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6441 SORT=$ac_cv_path_SORT
6442 if test -n "$SORT"; then
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
6444 printf "%s\n" "$SORT" >&6; }
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 printf "%s\n" "no" >&6; }
6452 if test -z "$ac_cv_path_SORT"; then
6454 # Extract the first word of "sort", so it can be a program name with args.
6455 set dummy sort; ac_word=$2
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 printf %s "checking for $ac_word... " >&6; }
6458 if test ${ac_cv_path_ac_pt_SORT+y}
6460 printf %s "(cached) " >&6
6462 e) case $ac_pt_SORT in
6464 ac_cv_path_ac_pt_SORT="$ac_pt_SORT" # Let the user override the test with a path.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 case $as_dir in #(((
6474 *) as_dir=$as_dir/ ;;
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6478 ac_cv_path_ac_pt_SORT="$as_dir$ac_word$ac_exec_ext"
6479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6490 ac_pt_SORT=$ac_cv_path_ac_pt_SORT
6491 if test -n "$ac_pt_SORT"; then
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SORT" >&5
6493 printf "%s\n" "$ac_pt_SORT" >&6; }
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 printf "%s\n" "no" >&6; }
6499 if test "x$ac_pt_SORT" = x; then
6502 case $cross_compiling:$ac_tool_warned in
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6511 SORT="$ac_cv_path_SORT"
6515 ################################################################################
6518 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6519 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" |
sed "$as_sed_sh"`
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6521 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
6522 if eval test \${$as_ac_Header+y}
6524 printf %s "(cached) " >&6
6526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <sys/types.h>
6540 if ac_fn_c_try_compile "$LINENO"
6542 eval "$as_ac_Header=yes"
6544 e) eval "$as_ac_Header=no" ;;
6547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6550 eval ac_res=\$$as_ac_Header
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552 printf "%s\n" "$ac_res" >&6; }
6553 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6555 cat >>confdefs.h <<_ACEOF
6556 #define `printf "%s\n" "HAVE_$ac_hdr" |
sed "$as_sed_cpp"` 1
6559 ac_header_dirent=$ac_hdr; break
6563 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6564 if test $ac_header_dirent = dirent.h; then
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6566 printf %s "checking for library containing opendir... " >&6; }
6567 if test ${ac_cv_search_opendir+y}
6569 printf %s "(cached) " >&6
6571 e) ac_func_search_save_LIBS=$LIBS
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6575 /* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply.
6578 The 'extern "C"' is for builds by C++ compilers;
6579 although this is not generally supported in C code supporting it here
6580 has little cost and some practical benefit (sr 110532). */
6584 char opendir (void);
6593 for ac_lib in '' dir
6595 if test -z "$ac_lib"; then
6596 ac_res="none required"
6599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6601 if ac_fn_c_try_link "$LINENO"
6603 ac_cv_search_opendir=$ac_res
6605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6607 if test ${ac_cv_search_opendir+y}
6612 if test ${ac_cv_search_opendir+y}
6616 e) ac_cv_search_opendir=no ;;
6620 LIBS=$ac_func_search_save_LIBS ;;
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6624 printf "%s\n" "$ac_cv_search_opendir" >&6; }
6625 ac_res=$ac_cv_search_opendir
6626 if test "$ac_res" != no
6628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6634 printf %s "checking for library containing opendir... " >&6; }
6635 if test ${ac_cv_search_opendir+y}
6637 printf %s "(cached) " >&6
6639 e) ac_func_search_save_LIBS=$LIBS
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 /* Override any GCC internal prototype to avoid an error.
6644 Use char because int might match the return type of a GCC
6645 builtin and then its argument prototype would still apply.
6646 The 'extern "C"' is for builds by C++ compilers;
6647 although this is not generally supported in C code supporting it here
6648 has little cost and some practical benefit (sr 110532). */
6652 char opendir (void);
6663 if test -z "$ac_lib"; then
6664 ac_res="none required"
6667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6669 if ac_fn_c_try_link "$LINENO"
6671 ac_cv_search_opendir=$ac_res
6673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6675 if test ${ac_cv_search_opendir+y}
6680 if test ${ac_cv_search_opendir+y}
6684 e) ac_cv_search_opendir=no ;;
6688 LIBS=$ac_func_search_save_LIBS ;;
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6692 printf "%s\n" "$ac_cv_search_opendir" >&6; }
6693 ac_res=$ac_cv_search_opendir
6694 if test "$ac_res" != no
6696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6702 ac_header= ac_cache=
6703 for ac_item in $ac_header_c_list
6705 if test $ac_cache; then
6706 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6707 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6708 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6710 ac_header= ac_cache=
6711 elif test $ac_header; then
6725 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6728 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6732 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6733 if test "x$ac_cv_header_sys_mkdev_h" = xyes
6736 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6740 if test $ac_cv_header_sys_mkdev_h = no; then
6741 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6742 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
6745 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6751 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6752 if test "x$ac_cv_type__Bool" = xyes
6755 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
6761 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
6762 if test ${ac_cv_header_stdbool_h+y}
6764 printf %s "(cached) " >&6
6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <stdbool.h>
6770 /* "true" and "false" should be usable in #if expressions and
6771 integer constant expressions, and "bool" should be a valid
6774 Although C99 requires bool, true, and false to be macros,
6775 C23 and C++11 overrule that, so do not test for that.
6776 Although C99 requires __bool_true_false_are_defined and
6777 _Bool, C23 says they are obsolescent, so do not require
6781 #error "'true' is not true"
6784 #error "'true' is not equal to 1"
6786 char b[true == 1 ? 1 : -1];
6790 #error "'false' is not false"
6793 #error "'false' is not equal to 0"
6795 char d[false == 0 ? 1 : -1];
6797 enum { e = false, f = true, g = false * true, h = true * 256 };
6799 char i[(bool) 0.5 == true ? 1 : -1];
6800 char j[(bool) 0.0 == false ? 1 : -1];
6801 char k[sizeof (bool) > 0 ? 1 : -1];
6803 struct sb { bool s: 1; bool t; } s;
6804 char l[sizeof s.t > 0 ? 1 : -1];
6806 /* The following fails for
6807 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6809 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
6810 char o[-1 - (bool) 0 < 0 ? 1 : -1];
6811 /* Catch a bug in an HP-UX C compiler. See
6812 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6813 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
6826 /* Refer to every declared value, so they cannot be
6827 discarded as unused. */
6828 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
6829 + !l + !m + !n + !o + !p + !pp + !ps);
6835 if ac_fn_c_try_compile "$LINENO"
6837 ac_cv_header_stdbool_h=yes
6839 e) ac_cv_header_stdbool_h=no ;;
6842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6846 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
6848 if test $ac_cv_header_stdbool_h = yes; then
6850 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
6855 for ac_header in assert.h ctype.h dirent.h errno.h fcntl.h float.h getopt.h inttypes.h langinfo.h libgen.h limits.h locale.h paths.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/file.h sys/ioctl.h syslog.h sys/mman.h sys/param.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h time.h unistd.h
6857 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" |
sed "$as_sed_sh"`
6858 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6859 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6861 cat >>confdefs.h <<_ACEOF
6862 #define `printf "%s\n" "HAVE_$ac_header" |
sed "$as_sed_cpp"` 1
6866 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6872 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
6873 if test "x$ac_cv_header_termios_h" = xyes
6875 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
6878 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
6879 if test "x$ac_cv_header_sys_statvfs_h" = xyes
6881 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
6884 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
6885 if test "x$ac_cv_header_sys_timerfd_h" = xyes
6887 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
6890 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
6891 if test "x$ac_cv_header_sys_vfs_h" = xyes
6893 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
6896 ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
6897 if test "x$ac_cv_header_linux_magic_h" = xyes
6899 printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h
6902 ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
6903 if test "x$ac_cv_header_linux_fiemap_h" = xyes
6905 printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
6909 for ac_header in libaio.h
6911 ac_fn_c_check_header_compile "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
6912 if test "x$ac_cv_header_libaio_h" = xyes
6914 printf "%s\n" "#define HAVE_LIBAIO_H 1" >>confdefs.h
6915 LVM_NEEDS_LIBAIO_WARN=
6917 e) LVM_NEEDS_LIBAIO_WARN=y ;;
6922 case "$host_os" in #(
6924 for ac_header in asm/byteorder.h linux/fs.h malloc.h
6926 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" |
sed "$as_sed_sh"`
6927 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6928 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6930 cat >>confdefs.h <<_ACEOF
6931 #define `printf "%s\n" "HAVE_$ac_header" |
sed "$as_sed_cpp"` 1
6935 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6941 for ac_header in machine/endian.h sys/disk.h
6943 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" |
sed "$as_sed_sh"`
6944 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6945 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6947 cat >>confdefs.h <<_ACEOF
6948 #define `printf "%s\n" "HAVE_$ac_header" |
sed "$as_sed_cpp"` 1
6952 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6961 ################################################################################
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6963 printf %s "checking for an ANSI C-conforming const... " >&6; }
6964 if test ${ac_cv_c_const+y}
6966 printf %s "(cached) " >&6
6968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6976 /* Ultrix mips cc rejects this sort of thing. */
6977 typedef int charset[2];
6978 const charset cs = { 0, 0 };
6979 /* SunOS 4.1.1 cc rejects this. */
6980 char const *const *pcpcc;
6982 /* NEC SVR4.0.2 mips cc rejects this. */
6983 struct point {int x, y;};
6984 static struct point const zero = {0,0};
6985 /* IBM XL C 1.02.0.0 rejects this.
6986 It does not let you subtract one const X* pointer from another in
6987 an arm of an if-expression whose if-part is not a constant
6989 const char *g = "string";
6990 pcpcc = &g + (g ? g-g : 0);
6991 /* HPUX 7.0 cc rejects these. */
6993 ppc = (char**) pcpcc;
6994 pcpcc = (char const *const *) ppc;
6995 { /* SCO 3.2v4 cc rejects this sort of thing. */
6998 char const *s = 0 ? (char *) 0 : (char const *) 0;
7003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7005 const int *foo = &x[0];
7008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7009 typedef const int *iptr;
7013 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7015 struct s { int j; const int *ap[3]; } bx;
7016 struct s *b = &bx; b->j = 5;
7018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7022 return !cs[0] && !zero.x;
7029 if ac_fn_c_try_compile "$LINENO"
7033 e) ac_cv_c_const=no ;;
7036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7040 printf "%s\n" "$ac_cv_c_const" >&6; }
7041 if test $ac_cv_c_const = no; then
7043 printf "%s\n" "#define const /**/" >>confdefs.h
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7048 printf %s "checking for inline... " >&6; }
7049 if test ${ac_cv_c_inline+y}
7051 printf %s "(cached) " >&6
7053 e) ac_cv_c_inline=no
7054 for ac_kw in inline __inline__ __inline; do
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7059 static $ac_kw foo_t static_foo (void) {return 0; }
7060 $ac_kw foo_t foo (void) {return 0; }
7064 if ac_fn_c_try_compile "$LINENO"
7066 ac_cv_c_inline=$ac_kw
7068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7069 test "$ac_cv_c_inline" != no && break
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7075 printf "%s\n" "$ac_cv_c_inline" >&6; }
7077 case $ac_cv_c_inline in
7080 case $ac_cv_c_inline in
7082 *) ac_val=$ac_cv_c_inline;;
7084 cat >>confdefs.h <<_ACEOF
7086 #define inline $ac_val
7092 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7093 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
7096 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
7101 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7102 if test "x$ac_cv_type_ptrdiff_t" = xyes
7105 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
7110 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7111 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
7114 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
7117 printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7120 e) case " $LIBOBJS " in
7121 *" fileblocks.$ac_objext "* ) ;;
7122 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7131 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7132 if test ${ac_cv_struct_tm+y}
7134 printf %s "(cached) " >&6
7136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7145 int *p = &tm.tm_sec;
7151 if ac_fn_c_try_compile "$LINENO"
7153 ac_cv_struct_tm=time.h
7155 e) ac_cv_struct_tm=sys/time.h ;;
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7162 printf "%s\n" "$ac_cv_struct_tm" >&6; }
7163 if test $ac_cv_struct_tm = sys/time.h; then
7165 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
7169 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7170 if test "x$ac_cv_type_off_t" = xyes
7175 printf "%s\n" "#define off_t long int" >>confdefs.h
7181 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7183 if test "x$ac_cv_type_pid_t" = xyes
7187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7190 #if defined _WIN64 && !defined __CYGWIN__
7203 if ac_fn_c_try_compile "$LINENO"
7207 e) ac_pid_type='__int64' ;;
7210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7212 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7219 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7220 if test "x$ac_cv_type_size_t" = xyes
7225 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7230 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7231 if test "x$ac_cv_type_mode_t" = xyes
7236 printf "%s\n" "#define mode_t int" >>confdefs.h
7241 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
7242 case $ac_cv_c_int8_t in #(
7246 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
7250 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7251 case $ac_cv_c_int16_t in #(
7255 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
7259 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7260 case $ac_cv_c_int32_t in #(
7264 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7268 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7269 case $ac_cv_c_int64_t in #(
7273 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
7277 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7278 if test "x$ac_cv_type_ssize_t" = xyes
7283 printf "%s\n" "#define ssize_t int" >>confdefs.h
7288 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
7289 if test "x$ac_cv_type_uid_t" = xyes
7294 printf "%s\n" "#define uid_t int" >>confdefs.h
7299 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
7300 if test "x$ac_cv_type_gid_t" = xyes
7305 printf "%s\n" "#define gid_t int" >>confdefs.h
7310 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7311 case $ac_cv_c_uint8_t in #(
7315 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
7318 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
7322 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7323 case $ac_cv_c_uint16_t in #(
7328 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
7332 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7333 case $ac_cv_c_uint32_t in #(
7337 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
7340 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
7344 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7345 case $ac_cv_c_uint64_t in #(
7349 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
7352 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
7360 printf %s "checking for __builtin_clz... " >&6; }
7361 if test ${ax_cv_have___builtin_clz+y}
7363 printf %s "(cached) " >&6
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7379 if ac_fn_c_try_link "$LINENO"
7381 ax_cv_have___builtin_clz=yes
7383 e) ax_cv_have___builtin_clz=no ;;
7386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7387 conftest$ac_exeext conftest.$ac_ext
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5
7392 printf "%s\n" "$ax_cv_have___builtin_clz" >&6; }
7394 if test yes = $ax_cv_have___builtin_clz
7397 printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
7407 printf %s "checking for __builtin_clzll... " >&6; }
7408 if test ${ax_cv_have___builtin_clzll+y}
7410 printf %s "(cached) " >&6
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7426 if ac_fn_c_try_link "$LINENO"
7428 ax_cv_have___builtin_clzll=yes
7430 e) ax_cv_have___builtin_clzll=no ;;
7433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7434 conftest$ac_exeext conftest.$ac_ext
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5
7439 printf "%s\n" "$ax_cv_have___builtin_clzll" >&6; }
7441 if test yes = $ax_cv_have___builtin_clzll
7444 printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5
7454 printf %s "checking for __builtin_ffs... " >&6; }
7455 if test ${ax_cv_have___builtin_ffs+y}
7457 printf %s "(cached) " >&6
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7473 if ac_fn_c_try_link "$LINENO"
7475 ax_cv_have___builtin_ffs=yes
7477 e) ax_cv_have___builtin_ffs=no ;;
7480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7481 conftest$ac_exeext conftest.$ac_ext
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5
7486 printf "%s\n" "$ax_cv_have___builtin_ffs" >&6; }
7488 if test yes = $ax_cv_have___builtin_ffs
7491 printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h
7500 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
7503 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7507 ################################################################################
7509 for ac_func in ftruncate gethostname getpagesize gettimeofday localtime_r memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup strrchr strspn strstr strtol strtoul uname
7511 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" |
sed "$as_sed_sh"`
7512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7513 if eval test \"x\$"$as_ac_var"\" = x"yes"
7515 cat >>confdefs.h <<_ACEOF
7516 #define `printf "%s\n" "HAVE_$ac_func" |
sed "$as_sed_cpp"` 1
7520 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
7525 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
7526 if test "x$ac_cv_func_ffs" = xyes
7528 printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
7531 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
7532 if test "x$ac_cv_func_mallinfo2" = xyes
7534 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
7537 ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
7538 if test "x$ac_cv_func_prlimit" = xyes
7540 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
7543 ac_fn_c_check_func "$LINENO" "versionsort" "ac_cv_func_versionsort"
7544 if test "x$ac_cv_func_versionsort" = xyes
7546 printf "%s\n" "#define HAVE_VERSIONSORT 1" >>confdefs.h
7550 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7551 # for constant arguments. Useless!
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7553 printf %s "checking for working alloca.h... " >&6; }
7554 if test ${ac_cv_working_alloca_h+y}
7556 printf %s "(cached) " >&6
7558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7564 char *p = (char *) alloca (2 * sizeof (int));
7570 if ac_fn_c_try_link "$LINENO"
7572 ac_cv_working_alloca_h=yes
7574 e) ac_cv_working_alloca_h=no ;;
7577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7578 conftest$ac_exeext conftest.$ac_ext ;;
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7582 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7583 if test $ac_cv_working_alloca_h = yes; then
7585 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7590 printf %s "checking for alloca... " >&6; }
7591 if test ${ac_cv_func_alloca_works+y}
7593 printf %s "(cached) " >&6
7595 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
7596 if test "$ac_cv_func_alloca_works" != yes
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7604 # define alloca __builtin_alloca
7605 # elif defined _MSC_VER
7606 # include <malloc.h>
7607 # define alloca _alloca
7612 void *alloca (size_t);
7619 char *p = (char *) alloca (1);
7625 if ac_fn_c_try_link "$LINENO"
7627 ac_cv_func_alloca_works=yes
7629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7630 conftest$ac_exeext conftest.$ac_ext
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7635 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7637 if test $ac_cv_func_alloca_works = yes; then
7639 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7642 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7643 # that cause trouble. Some versions do not even contain alloca or
7644 # contain a buggy version. If you still want to use their alloca,
7645 # use ar to extract alloca.o from them instead of compiling alloca.c.
7647 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7649 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7653 printf %s "checking stack direction for C alloca... " >&6; }
7654 if test ${ac_cv_c_stack_direction+y}
7656 printf %s "(cached) " >&6
7658 e) if test "$cross_compiling" = yes
7660 ac_cv_c_stack_direction=0
7662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 $ac_includes_default
7666 find_stack_direction (int *addr, int depth)
7671 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7672 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7677 main (int argc, char **argv)
7679 return find_stack_direction (0, argc + !argv + 20) < 0;
7682 if ac_fn_c_try_run "$LINENO"
7684 ac_cv_c_stack_direction=1
7686 e) ac_cv_c_stack_direction=-1 ;;
7689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7690 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7697 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7698 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7704 printf %s "checking whether closedir returns void... " >&6; }
7705 if test ${ac_cv_func_closedir_void+y}
7707 printf %s "(cached) " >&6
7709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7712 #include <$ac_header_dirent>
7724 if ac_fn_c_try_compile "$LINENO"
7726 ac_cv_func_closedir_void=no
7728 e) ac_cv_func_closedir_void=yes ;;
7731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7735 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
7736 if test $ac_cv_func_closedir_void = yes; then
7738 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
7743 printf %s "checking for working chown... " >&6; }
7744 if test ${ac_cv_func_chown_works+y}
7746 printf %s "(cached) " >&6
7748 e) if test "$cross_compiling" = yes
7750 case "$host_os" in # ((
7751 # Guess yes on glibc systems.
7752 *-gnu*) ac_cv_func_chown_works=yes ;;
7753 # If we don't know, assume the worst.
7754 *) ac_cv_func_chown_works=no ;;
7757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 $ac_includes_default
7765 char *f = "conftest.chown";
7766 struct stat before, after;
7768 if (creat (f, 0600) < 0)
7770 if (stat (f, &before) < 0)
7772 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7774 if (stat (f, &after) < 0)
7776 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
7782 if ac_fn_c_try_run "$LINENO"
7784 ac_cv_func_chown_works=yes
7786 e) ac_cv_func_chown_works=no ;;
7789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7790 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7794 rm -f conftest.chown
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
7799 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
7800 if test $ac_cv_func_chown_works = yes; then
7802 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
7808 for ac_item in $ac_func_c_list
7810 if test $ac_func; then
7811 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
7812 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
7813 echo "#define $ac_item 1" >> confdefs.h
7823 if test "x$ac_cv_func_fork" = xyes; then
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7825 printf %s "checking for working fork... " >&6; }
7826 if test ${ac_cv_func_fork_works+y}
7828 printf %s "(cached) " >&6
7830 e) if test "$cross_compiling" = yes
7832 ac_cv_func_fork_works=cross
7834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 $ac_includes_default
7841 /* By R. Kuhlmann. */
7848 if ac_fn_c_try_run "$LINENO"
7850 ac_cv_func_fork_works=yes
7852 e) ac_cv_func_fork_works=no ;;
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7856 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7863 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
7866 ac_cv_func_fork_works=$ac_cv_func_fork
7868 if test "x$ac_cv_func_fork_works" = xcross; then
7870 *-*-amigaos* | *-*-msdosdjgpp*)
7871 # Override, as these systems have only a dummy fork() stub
7872 ac_cv_func_fork_works=no
7875 ac_cv_func_fork_works=yes
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7879 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7881 ac_cv_func_vfork_works=$ac_cv_func_vfork
7882 if test "x$ac_cv_func_vfork" = xyes; then
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7884 printf %s "checking for working vfork... " >&6; }
7885 if test ${ac_cv_func_vfork_works+y}
7887 printf %s "(cached) " >&6
7889 e) if test "$cross_compiling" = yes
7891 ac_cv_func_vfork_works=cross
7893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 /* Thanks to Paul Eggert for this test. */
7896 $ac_includes_default
7898 #include <sys/wait.h>
7904 do_nothing (int sig)
7909 /* On some sparc systems, changes by the child to local and incoming
7910 argument registers are propagated back to the parent. The compiler
7911 is told about this with #include <vfork.h>, but some compilers
7912 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7913 static variable whose address is put into a register that is
7914 clobbered by the vfork. */
7916 sparc_address_test (int arg)
7936 pid_t parent = getpid ();
7939 sparc_address_test (0);
7941 /* On Solaris 2.4, changes by the child to the signal handler
7942 also munge signal handlers in the parent. To detect this,
7943 start by putting the parent's handler in a known state. */
7944 signal (SIGTERM, SIG_DFL);
7949 /* Here is another test for sparc vfork register problems. This
7950 test uses lots of local variables, at least as many local
7951 variables as main has allocated so far including compiler
7952 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7953 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7954 reuse the register of parent for one of the local variables,
7955 since it will think that parent can't possibly be used any more
7956 in this routine. Assigning to the local variable will thus
7957 munge parent in the parent process. */
7959 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7960 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7961 /* Convince the compiler that p..p7 are live; otherwise, it might
7962 use the same hardware register for all 8 local variables. */
7963 if (p != p1 || p != p2 || p != p3 || p != p4
7964 || p != p5 || p != p6 || p != p7)
7967 /* Alter the child's signal handler. */
7968 if (signal (SIGTERM, do_nothing) != SIG_DFL)
7971 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7972 from child file descriptors. If the child closes a descriptor
7973 before it execs or exits, this munges the parent's descriptor
7974 as well. Test for this by closing stdout in the child. */
7975 _exit(close(fileno(stdout)) != 0);
7980 while (wait(&status) != child)
7983 /* Was there some problem with vforking? */
7986 /* Did the child munge the parent's signal handler? */
7987 || signal (SIGTERM, SIG_DFL) != SIG_DFL
7989 /* Did the child fail? (This shouldn't happen.) */
7992 /* Did the vfork/compiler bug occur? */
7993 || parent != getpid()
7995 /* Did the file descriptor bug occur? */
7996 || fstat(fileno(stdout), &st) != 0
8001 if ac_fn_c_try_run "$LINENO"
8003 ac_cv_func_vfork_works=yes
8005 e) ac_cv_func_vfork_works=no ;;
8008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8009 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8016 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
8019 if test "x$ac_cv_func_fork_works" = xcross; then
8020 ac_cv_func_vfork_works=$ac_cv_func_vfork
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8022 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8025 if test "x$ac_cv_func_vfork_works" = xyes; then
8027 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8031 printf "%s\n" "#define vfork fork" >>confdefs.h
8034 if test "x$ac_cv_func_fork_works" = xyes; then
8036 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8041 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
8042 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
8044 printf %s "(cached) " >&6
8046 e) rm -f conftest.sym conftest.file
8048 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8049 if test "$cross_compiling" = yes
8051 case "$host_os" in # ((
8052 # Guess yes on glibc systems.
8053 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
8054 # If we don't know, assume the worst.
8055 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
8058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 $ac_includes_default
8065 /* Linux will dereference the symlink and fail, as required by POSIX.
8066 That is better in the sense that it means we will not
8067 have to compile and use the lstat wrapper. */
8068 return lstat ("conftest.sym/", &sbuf) == 0;
8073 if ac_fn_c_try_run "$LINENO"
8075 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8077 e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
8080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8081 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8086 # If the 'ln -s' command failed, then we probably don't even
8087 # have an lstat function.
8088 ac_cv_func_lstat_dereferences_slashed_symlink=no
8090 rm -f conftest.sym conftest.file
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8095 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8097 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8099 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
8102 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
8103 case " $LIBOBJS " in
8104 *" lstat.$ac_objext "* ) ;;
8105 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
8112 printf %s "checking whether lstat accepts an empty string... " >&6; }
8113 if test ${ac_cv_func_lstat_empty_string_bug+y}
8115 printf %s "(cached) " >&6
8117 e) if test "$cross_compiling" = yes
8119 ac_cv_func_lstat_empty_string_bug=yes
8121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 $ac_includes_default
8128 return lstat ("", &sbuf) == 0;
8133 if ac_fn_c_try_run "$LINENO"
8135 ac_cv_func_lstat_empty_string_bug=no
8137 e) ac_cv_func_lstat_empty_string_bug=yes ;;
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8141 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
8148 printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
8149 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8150 case " $LIBOBJS " in
8151 *" lstat.$ac_objext "* ) ;;
8152 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8157 printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8162 printf %s "checking for GNU libc compatible malloc... " >&6; }
8163 if test ${ac_cv_func_malloc_0_nonnull+y}
8165 printf %s "(cached) " >&6
8167 e) if test "$cross_compiling" = yes
8169 case "$host_os" in # ((
8170 # Guess yes on platforms where we know the result.
8171 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
8172 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
8173 ac_cv_func_malloc_0_nonnull=yes ;;
8174 # If we don't know, assume the worst.
8175 *) ac_cv_func_malloc_0_nonnull=no ;;
8178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8185 void *p = malloc (0);
8193 if ac_fn_c_try_run "$LINENO"
8195 ac_cv_func_malloc_0_nonnull=yes
8197 e) ac_cv_func_malloc_0_nonnull=no ;;
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8201 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8208 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
8209 if test $ac_cv_func_malloc_0_nonnull = yes
8212 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
8215 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
8217 case " $LIBOBJS " in
8218 *" malloc.$ac_objext "* ) ;;
8219 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8224 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8231 printf %s "checking for working memcmp... " >&6; }
8232 if test ${ac_cv_func_memcmp_working+y}
8234 printf %s "(cached) " >&6
8236 e) if test "$cross_compiling" = yes
8238 ac_cv_func_memcmp_working=no
8240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 $ac_includes_default
8247 /* Some versions of memcmp are not 8-bit clean. */
8248 char c0 = '\100', c1 = '\200', c2 = '\201';
8249 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8252 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8253 or more and with at least one buffer not starting on a 4-byte boundary.
8254 William Lewis provided this test program. */
8259 for (i = 0; i < 4; i++)
8263 strcpy (a, "--------01111111");
8264 strcpy (b, "--------10000000");
8265 if (memcmp (a, b, 16) >= 0)
8275 if ac_fn_c_try_run "$LINENO"
8277 ac_cv_func_memcmp_working=yes
8279 e) ac_cv_func_memcmp_working=no ;;
8282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8283 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8290 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
8291 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8292 *" memcmp.$ac_objext "* ) ;;
8293 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
8303 printf %s "checking for working mktime... " >&6; }
8304 if test ${ac_cv_func_working_mktime+y}
8306 printf %s "(cached) " >&6
8308 e) if test "$cross_compiling" = yes
8310 ac_cv_func_working_mktime=no
8312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 /* Test program from Paul Eggert and Tony Leneis. */
8316 #ifdef HAVE_SYS_TIME_H
8317 # include <sys/time.h>
8323 #ifdef HAVE_UNISTD_H
8324 # include <unistd.h>
8328 # define alarm(X) /* empty */
8331 /* Work around redefinition to rpl_putenv by other config tests. */
8334 static time_t time_t_max;
8335 static time_t time_t_min;
8337 /* Values we'll use to set the TZ environment variable. */
8338 static const char *tz_strings[] = {
8339 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8340 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8342 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8344 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
8345 Based on a problem report from Andreas Jaeger. */
8347 spring_forward_gap (void)
8349 /* glibc (up to about 1998-10-07) failed this test. */
8352 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8353 instead of "TZ=America/Vancouver" in order to detect the bug even
8354 on systems that don't support the Olson extension, or don't have the
8355 full zoneinfo tables installed. */
8356 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8365 return mktime (&tm) != (time_t) -1;
8369 mktime_test1 (time_t now)
8372 return ! (lt = localtime (&now)) || mktime (lt) == now;
8376 mktime_test (time_t now)
8378 return (mktime_test1 (now)
8379 && mktime_test1 ((time_t) (time_t_max - now))
8380 && mktime_test1 ((time_t) (time_t_min + now)));
8386 /* Based on code from Ariel Faigon. */
8396 return tm.tm_mon == 2 && tm.tm_mday == 31;
8400 bigtime_test (int j)
8404 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8406 if (now != (time_t) -1)
8408 struct tm *lt = localtime (&now);
8410 && lt->tm_year == tm.tm_year
8411 && lt->tm_mon == tm.tm_mon
8412 && lt->tm_mday == tm.tm_mday
8413 && lt->tm_hour == tm.tm_hour
8414 && lt->tm_min == tm.tm_min
8415 && lt->tm_sec == tm.tm_sec
8416 && lt->tm_yday == tm.tm_yday
8417 && lt->tm_wday == tm.tm_wday
8418 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8419 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8426 year_2050_test (void)
8428 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
8429 ignoring leap seconds. */
8430 unsigned long int answer = 2527315200UL;
8434 tm.tm_year = 2050 - 1900;
8437 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
8440 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8441 instead of "TZ=America/Vancouver" in order to detect the bug even
8442 on systems that don't support the Olson extension, or don't have the
8443 full zoneinfo tables installed. */
8444 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8448 /* Check that the result is either a failure, or close enough
8449 to the correct answer that we can assume the discrepancy is
8450 due to leap seconds. */
8451 return (t == (time_t) -1
8452 || (0 < t && answer - 120 <= t && t <= answer + 120));
8461 /* This test makes some buggy mktime implementations loop.
8462 Give up after 60 seconds; a mktime slower than that
8463 isn't worth using anyway. */
8468 t = (time_t_max << 1) + 1;
8469 if (t <= time_t_max)
8473 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
8475 delta = time_t_max / 997; /* a suitable prime number */
8476 for (i = 0; i < N_STRINGS; i++)
8479 putenv ((char*) tz_strings[i]);
8481 for (t = 0; t <= time_t_max - delta; t += delta)
8482 if (! mktime_test (t))
8484 if (! (mktime_test ((time_t) 1)
8485 && mktime_test ((time_t) (60 * 60))
8486 && mktime_test ((time_t) (60 * 60 * 24))))
8489 for (j = 1; ; j <<= 1)
8490 if (! bigtime_test (j))
8492 else if (INT_MAX / 2 < j)
8494 if (! bigtime_test (INT_MAX))
8497 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
8500 if ac_fn_c_try_run "$LINENO"
8502 ac_cv_func_working_mktime=yes
8504 e) ac_cv_func_working_mktime=no ;;
8507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8508 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
8515 printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
8516 if test $ac_cv_func_working_mktime = no; then
8517 case " $LIBOBJS " in
8518 *" mktime.$ac_objext "* ) ;;
8519 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8530 printf %s "checking for working mmap... " >&6; }
8531 if test ${ac_cv_func_mmap_fixed_mapped+y}
8533 printf %s "(cached) " >&6
8535 e) if test "$cross_compiling" = yes
8537 case "$host_os" in # ((
8538 # Guess yes on platforms where we know the result.
8539 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
8540 # If we don't know, assume the worst.
8541 *) ac_cv_func_mmap_fixed_mapped=no ;;
8544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 /* malloc might have been renamed as rpl_malloc. */
8550 /* Thanks to Mike Haertel and Jim Avera for this test.
8551 Here is a matrix of mmap possibilities:
8552 mmap private not fixed
8553 mmap private fixed at somewhere currently unmapped
8554 mmap private fixed at somewhere already mapped
8555 mmap shared not fixed
8556 mmap shared fixed at somewhere currently unmapped
8557 mmap shared fixed at somewhere already mapped
8558 For private mappings, we should verify that changes cannot be read()
8559 back from the file, nor mmap's back from the file at a different
8560 address. (There have been systems where private was not correctly
8561 implemented like the infamous i386 svr4.0, and systems where the
8562 VM page cache was not coherent with the file system buffer cache
8563 like early versions of FreeBSD and possibly contemporary NetBSD.)
8564 For shared mappings, we should conversely verify that changes get
8565 propagated back to all the places they're supposed to be. */
8568 #include <sys/mman.h>
8571 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
8572 been removed from POSIX and is limited to page sizes that fit in 'int'. */
8573 # ifdef _SC_PAGESIZE
8574 # define getpagesize() sysconf (_SC_PAGESIZE)
8575 # elif defined _SC_PAGE_SIZE
8576 # define getpagesize() sysconf (_SC_PAGE_SIZE)
8577 # elif HAVE_GETPAGESIZE
8580 # ifdef HAVE_SYS_PARAM_H
8581 # include <sys/param.h>
8582 # ifdef EXEC_PAGESIZE
8583 # define getpagesize() EXEC_PAGESIZE
8584 # else /* no EXEC_PAGESIZE */
8586 # define getpagesize() NBPG * CLSIZE
8589 # endif /* no CLSIZE */
8590 # else /* no NBPG */
8592 # define getpagesize() NBPC
8593 # else /* no NBPC */
8595 # define getpagesize() PAGESIZE
8596 # endif /* PAGESIZE */
8597 # endif /* no NBPC */
8598 # endif /* no NBPG */
8599 # endif /* no EXEC_PAGESIZE */
8600 # else /* no HAVE_SYS_PARAM_H */
8601 # define getpagesize() 8192 /* punt totally */
8602 # endif /* no HAVE_SYS_PARAM_H */
8609 char *data, *data2, *data3;
8614 pagesize = getpagesize ();
8616 /* First, make a file with some known garbage in it. */
8617 data = (char *) malloc (pagesize);
8620 for (i = 0; i < pagesize; ++i)
8621 *(data + i) = rand ();
8623 fd = creat ("conftest.mmap", 0600);
8626 if (write (fd, data, pagesize) != pagesize)
8630 /* Next, check that the tail of a page is zero-filled. File must have
8631 non-zero length, otherwise we risk SIGBUS for entire page. */
8632 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8636 if (write (fd2, cdata2, 1) != 1)
8638 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8639 if (data2 == MAP_FAILED)
8641 for (i = 0; i < pagesize; ++i)
8645 /* 'return 8;' not currently used. */
8647 /* Next, try to mmap the file at a fixed address which already has
8648 something else allocated at it. If we can, also make sure that
8649 we see the same garbage. */
8650 fd = open ("conftest.mmap", O_RDWR);
8653 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8654 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8656 for (i = 0; i < pagesize; ++i)
8657 if (*(data + i) != *(data2 + i))
8660 /* Finally, make sure that changes to the mapped area do not
8661 percolate back to the file as seen by read(). (This is a bug on
8662 some variants of i386 svr4.0.) */
8663 for (i = 0; i < pagesize; ++i)
8664 *(data2 + i) = *(data2 + i) + 1;
8665 data3 = (char *) malloc (pagesize);
8668 if (read (fd, data3, pagesize) != pagesize)
8670 for (i = 0; i < pagesize; ++i)
8671 if (*(data + i) != *(data3 + i))
8679 if ac_fn_c_try_run "$LINENO"
8681 ac_cv_func_mmap_fixed_mapped=yes
8683 e) ac_cv_func_mmap_fixed_mapped=no ;;
8686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8687 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8694 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
8695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8697 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
8700 rm -f conftest.mmap conftest.txt
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8703 printf %s "checking for GNU libc compatible realloc... " >&6; }
8704 if test ${ac_cv_func_realloc_0_nonnull+y}
8706 printf %s "(cached) " >&6
8708 e) if test "$cross_compiling" = yes
8710 case "$host_os" in # ((
8711 # Guess yes on platforms where we know the result.
8712 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
8713 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
8714 ac_cv_func_realloc_0_nonnull=yes ;;
8715 # If we don't know, assume the worst.
8716 *) ac_cv_func_realloc_0_nonnull=no ;;
8719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8726 void *p = realloc (0, 0);
8734 if ac_fn_c_try_run "$LINENO"
8736 ac_cv_func_realloc_0_nonnull=yes
8738 e) ac_cv_func_realloc_0_nonnull=no ;;
8741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8742 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8749 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
8750 if test $ac_cv_func_realloc_0_nonnull = yes
8753 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
8756 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
8758 case " $LIBOBJS " in
8759 *" realloc.$ac_objext "* ) ;;
8760 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8765 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
8772 printf %s "checking whether stat accepts an empty string... " >&6; }
8773 if test ${ac_cv_func_stat_empty_string_bug+y}
8775 printf %s "(cached) " >&6
8777 e) if test "$cross_compiling" = yes
8779 ac_cv_func_stat_empty_string_bug=yes
8781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 $ac_includes_default
8788 return stat ("", &sbuf) == 0;
8793 if ac_fn_c_try_run "$LINENO"
8795 ac_cv_func_stat_empty_string_bug=no
8797 e) ac_cv_func_stat_empty_string_bug=yes ;;
8800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8801 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
8808 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
8809 if test $ac_cv_func_stat_empty_string_bug = yes; then
8810 case " $LIBOBJS " in
8811 *" stat.$ac_objext "* ) ;;
8812 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8817 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8822 printf %s "checking for working strtod... " >&6; }
8823 if test ${ac_cv_func_strtod+y}
8825 printf %s "(cached) " >&6
8827 e) if test "$cross_compiling" = yes
8829 ac_cv_func_strtod=no
8831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8834 $ac_includes_default
8839 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8840 char *string = " +69";
8843 value = strtod (string, &term);
8844 if (value != 69 || term != (string + 4))
8849 /* Under Solaris 2.4, strtod returns the wrong value for the
8850 terminating character under some conditions. */
8851 char *string = "NaN";
8853 strtod (string, &term);
8854 if (term != string && *(term - 1) == 0)
8861 if ac_fn_c_try_run "$LINENO"
8863 ac_cv_func_strtod=yes
8865 e) ac_cv_func_strtod=no ;;
8868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8869 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
8876 printf "%s\n" "$ac_cv_func_strtod" >&6; }
8877 if test $ac_cv_func_strtod = no; then
8878 case " $LIBOBJS " in
8879 *" strtod.$ac_objext "* ) ;;
8880 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8884 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8885 if test "x$ac_cv_func_pow" = xyes
8890 if test $ac_cv_func_pow = no; then
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
8892 printf %s "checking for pow in -lm... " >&6; }
8893 if test ${ac_cv_lib_m_pow+y}
8895 printf %s "(cached) " >&6
8897 e) ac_check_lib_save_LIBS=$LIBS
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8902 /* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply.
8905 The 'extern "C"' is for builds by C++ compilers;
8906 although this is not generally supported in C code supporting it here
8907 has little cost and some practical benefit (sr 110532). */
8920 if ac_fn_c_try_link "$LINENO"
8924 e) ac_cv_lib_m_pow=no ;;
8927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LIBS=$ac_check_lib_save_LIBS ;;
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
8933 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
8934 if test "x$ac_cv_lib_m_pow" = xyes
8938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
8939 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
8949 if test "x$ac_cv_func_vprintf" = xno
8951 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8952 if test "x$ac_cv_func__doprnt" = xyes
8955 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
8961 ################################################################################
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5
8963 printf %s "checking whether to enable dependency tracking... " >&6; }
8964 # Check whether --enable-dependency-tracking was given.
8965 if test ${enable_dependency_tracking+y}
8967 enableval=$enable_dependency_tracking; USE_TRACKING=$enableval
8969 e) USE_TRACKING="yes" ;;
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_TRACKING" >&5
8974 printf "%s\n" "$USE_TRACKING" >&6; }
8976 ################################################################################
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build silently" >&5
8978 printf %s "checking whether to build silently... " >&6; }
8979 # Check whether --enable-silent-rules was given.
8980 if test ${enable_silent_rules+y}
8982 enableval=$enable_silent_rules; SILENT_RULES=$enableval
8984 e) SILENT_RULES="yes" ;;
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SILENT_RULES" >&5
8989 printf "%s\n" "$SILENT_RULES" >&6; }
8992 ################################################################################
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
8994 printf %s "checking whether to use static linking... " >&6; }
8995 # Check whether --enable-static_link was given.
8996 if test ${enable_static_link+y}
8998 enableval=$enable_static_link; STATIC_LINK=$enableval
9000 e) STATIC_LINK="no" ;;
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
9005 printf "%s\n" "$STATIC_LINK" >&6; }
9007 ################################################################################
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic linking" >&5
9009 printf %s "checking whether to use dynamic linking... " >&6; }
9010 # Check whether --enable-shared was given.
9011 if test ${enable_shared+y}
9013 enableval=$enable_shared; SHARED_LINK=$enableval
9015 e) SHARED_LINK="yes" ;;
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHARED_LINK" >&5
9020 printf "%s\n" "$SHARED_LINK" >&6; }
9022 ################################################################################
9025 ac_save_CFLAGS=$CFLAGS
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pie flag" >&5
9028 printf %s "checking whether $CC accepts -pie flag... " >&6; }
9029 if test ${ac_cv_flag_HAVE_PIE+y}
9031 printf %s "(cached) " >&6
9033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9044 if ac_fn_c_try_compile "$LINENO"
9046 ac_cv_flag_HAVE_PIE=yes
9048 e) ac_cv_flag_HAVE_PIE=no ;;
9051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_PIE" >&5
9055 printf "%s\n" "$ac_cv_flag_HAVE_PIE" >&6; }
9056 CFLAGS=$ac_save_CFLAGS
9057 HAVE_PIE=$ac_cv_flag_HAVE_PIE
9058 if test "HAVE_PIE" = yes; then
9067 ac_save_LDFLAGS=$LDFLAGS
9068 LDFLAGS=-Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags" >&5
9070 printf %s "checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags... " >&6; }
9071 if test ${ac_cv_flag_HAVE_FULL_RELRO+y}
9073 printf %s "(cached) " >&6
9075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9086 if ac_fn_c_try_link "$LINENO"
9088 ac_cv_flag_HAVE_FULL_RELRO=yes
9090 e) ac_cv_flag_HAVE_FULL_RELRO=no ;;
9093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9094 conftest$ac_exeext conftest.$ac_ext ;;
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_FULL_RELRO" >&5
9098 printf "%s\n" "$ac_cv_flag_HAVE_FULL_RELRO" >&6; }
9099 LDFLAGS=$ac_save_LDFLAGS
9100 HAVE_FULL_RELRO=$ac_cv_flag_HAVE_FULL_RELRO
9101 if test "HAVE_FULL_RELRO" = yes; then
9109 ################################################################################
9112 ################################################################################
9113 test "$exec_prefix" = "NONE" && test "$prefix" = "NONE" && exec_prefix=""
9115 test "$prefix" = "NONE" && prefix=$ac_default_prefix
9116 # Let make expand exec_prefix.
9117 test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
9121 # Check whether --with-blkid was given.
9122 if test ${with_blkid+y}
9124 withval=$with_blkid;
9126 e) with_blkid="yes" ;;
9131 # Check whether --with-systemd was given.
9132 if test ${with_systemd+y}
9134 withval=$with_systemd;
9136 e) with_systemd="yes" ;;
9141 # Check whether --with-udev was given.
9142 if test ${with_udev+y}
9146 e) with_udev="yes" ;;
9151 ################################################################################
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
9153 printf %s "checking file owner... " >&6; }
9155 # Check whether --with-user was given.
9156 if test ${with_user+y}
9158 withval=$with_user; OWNER=$withval
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
9162 printf "%s\n" "$OWNER" >&6; }
9163 test -n "$OWNER" && INSTALL="$INSTALL -o $OWNER"
9165 ################################################################################
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
9167 printf %s "checking group owner... " >&6; }
9169 # Check whether --with-group was given.
9170 if test ${with_group+y}
9172 withval=$with_group; GROUP=$withval
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
9176 printf "%s\n" "$GROUP" >&6; }
9177 test -n "$GROUP" && INSTALL="$INSTALL -g $GROUP"
9179 ################################################################################
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
9181 printf %s "checking device node uid... " >&6; }
9184 # Check whether --with-device-uid was given.
9185 if test ${with_device_uid+y}
9187 withval=$with_device_uid; DM_DEVICE_UID=$withval
9189 e) DM_DEVICE_UID=0 ;;
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
9194 printf "%s\n" "$DM_DEVICE_UID" >&6; }
9196 printf "%s\n" "#define DM_DEVICE_UID $DM_DEVICE_UID" >>confdefs.h
9199 ################################################################################
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
9201 printf %s "checking device node gid... " >&6; }
9204 # Check whether --with-device-gid was given.
9205 if test ${with_device_gid+y}
9207 withval=$with_device_gid; DM_DEVICE_GID=$withval
9209 e) DM_DEVICE_GID=0 ;;
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
9214 printf "%s\n" "$DM_DEVICE_GID" >&6; }
9216 printf "%s\n" "#define DM_DEVICE_GID $DM_DEVICE_GID" >>confdefs.h
9219 ################################################################################
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
9221 printf %s "checking device node mode... " >&6; }
9224 # Check whether --with-device-mode was given.
9225 if test ${with_device_mode+y}
9227 withval=$with_device_mode; DM_DEVICE_MODE=$withval
9229 e) DM_DEVICE_MODE=0600 ;;
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
9234 printf "%s\n" "$DM_DEVICE_MODE" >&6; }
9236 printf "%s\n" "#define DM_DEVICE_MODE $DM_DEVICE_MODE" >>confdefs.h
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
9240 printf %s "checking when to create device nodes... " >&6; }
9242 # Check whether --with-device-nodes-on was given.
9243 if test ${with_device_nodes_on+y}
9245 withval=$with_device_nodes_on; ADD_NODE=$withval
9247 e) ADD_NODE=resume ;;
9251 case "$ADD_NODE" in #(
9253 add_on=DM_ADD_NODE_ON_RESUME ;; #(
9255 add_on=DM_ADD_NODE_ON_CREATE ;; #(
9257 as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5 ;;
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
9260 printf "%s\n" "on $ADD_NODE" >&6; }
9262 printf "%s\n" "#define DEFAULT_DM_ADD_NODE $add_on" >>confdefs.h
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for use_devicesfile" >&5
9267 printf %s "checking default for use_devicesfile... " >&6; }
9269 # Check whether --with-default-use-devices-file was given.
9270 if test ${with_default_use_devices_file+y}
9272 withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$withval
9274 e) DEFAULT_USE_DEVICES_FILE=0 ;;
9278 case "$DEFAULT_USE_DEVICES_FILE" in #(
9282 as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5 ;;
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_DEVICES_FILE" >&5
9285 printf "%s\n" "$DEFAULT_USE_DEVICES_FILE" >&6; }
9287 printf "%s\n" "#define DEFAULT_USE_DEVICES_FILE $DEFAULT_USE_DEVICES_FILE" >>confdefs.h
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
9291 printf %s "checking default name mangling... " >&6; }
9293 # Check whether --with-default-name-mangling was given.
9294 if test ${with_default_name_mangling+y}
9296 withval=$with_default_name_mangling; MANGLING=$withval
9302 case "$MANGLING" in #(
9304 mangling=DM_STRING_MANGLING_AUTO ;; #(
9306 mangling=DM_STRING_MANGLING_NONE ;; #(
9308 mangling=DM_STRING_MANGLING_HEX ;; #(
9310 as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5 ;;
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
9313 printf "%s\n" "$MANGLING" >&6; }
9315 printf "%s\n" "#define DEFAULT_DM_NAME_MANGLING $mangling" >>confdefs.h
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for event_activation" >&5
9319 printf %s "checking default for event_activation... " >&6; }
9321 # Check whether --with-default-event-activation was given.
9322 if test ${with_default_event_activation+y}
9324 withval=$with_default_event_activation; DEFAULT_EVENT_ACTIVATION=$withval
9326 e) DEFAULT_EVENT_ACTIVATION=1 ;;
9330 case "$DEFAULT_EVENT_ACTIVATION" in #(
9334 as_fn_error $? "--with-default-event-activation parameter invalid" "$LINENO" 5 ;;
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_EVENT_ACTIVATION" >&5
9337 printf "%s\n" "$DEFAULT_EVENT_ACTIVATION" >&6; }
9339 printf "%s\n" "#define DEFAULT_EVENT_ACTIVATION $DEFAULT_EVENT_ACTIVATION" >>confdefs.h
9342 ################################################################################
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
9344 printf %s "checking whether to include snapshots... " >&6; }
9346 # Check whether --with-snapshots was given.
9347 if test ${with_snapshots+y}
9349 withval=$with_snapshots; SNAPSHOTS=$withval
9351 e) SNAPSHOTS=internal ;;
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
9356 printf "%s\n" "$SNAPSHOTS" >&6; }
9358 case "$SNAPSHOTS" in #(
9364 printf "%s\n" "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
9367 as_fn_error $? "--with-snapshots parameter invalid" "$LINENO" 5 ;;
9370 ################################################################################
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
9372 printf %s "checking whether to include mirrors... " >&6; }
9374 # Check whether --with-mirrors was given.
9375 if test ${with_mirrors+y}
9377 withval=$with_mirrors; MIRRORS=$withval
9379 e) MIRRORS=internal ;;
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
9384 printf "%s\n" "$MIRRORS" >&6; }
9386 case "$MIRRORS" in #(
9392 printf "%s\n" "#define MIRRORED_INTERNAL 1" >>confdefs.h
9395 as_fn_error $? "--with-mirrors parameter invalid" "$LINENO" 5 ;;
9398 ################################################################################
9400 # Check whether --with-default-mirror-segtype was given.
9401 if test ${with_default_mirror_segtype+y}
9403 withval=$with_default_mirror_segtype; DEFAULT_MIRROR_SEGTYPE=$withval
9405 e) DEFAULT_MIRROR_SEGTYPE="raid1" ;;
9410 # Check whether --with-default-raid10-segtype was given.
9411 if test ${with_default_raid10_segtype+y}
9413 withval=$with_default_raid10_segtype; DEFAULT_RAID10_SEGTYPE=$withval
9415 e) DEFAULT_RAID10_SEGTYPE="raid10" ;;
9421 printf "%s\n" "#define RAID_INTERNAL 1" >>confdefs.h
9425 printf "%s\n" "#define DEFAULT_MIRROR_SEGTYPE \"$DEFAULT_MIRROR_SEGTYPE\"" >>confdefs.h
9429 printf "%s\n" "#define DEFAULT_RAID10_SEGTYPE \"$DEFAULT_RAID10_SEGTYPE\"" >>confdefs.h
9432 ################################################################################
9434 # Check whether --with-default-sparse-segtype was given.
9435 if test ${with_default_sparse_segtype+y}
9437 withval=$with_default_sparse_segtype;
9438 case "$withval" in #(
9440 DEFAULT_SPARSE_SEGTYPE=$withval ;; #(
9442 as_fn_error $? "--with-default-sparse-segtype parameter invalid" "$LINENO" 5 ;;
9446 e) DEFAULT_SPARSE_SEGTYPE="thin" ;;
9451 ################################################################################
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
9453 printf %s "checking whether to include thin provisioning... " >&6; }
9455 # Check whether --with-thin was given.
9456 if test ${with_thin+y}
9458 withval=$with_thin; THIN=$withval
9465 # Check whether --with-thin-check was given.
9466 if test ${with_thin_check+y}
9468 withval=$with_thin_check; THIN_CHECK_CMD=$withval
9470 e) THIN_CHECK_CMD="autodetect" ;;
9475 # Check whether --with-thin-dump was given.
9476 if test ${with_thin_dump+y}
9478 withval=$with_thin_dump; THIN_DUMP_CMD=$withval
9480 e) THIN_DUMP_CMD="autodetect" ;;
9485 # Check whether --with-thin-repair was given.
9486 if test ${with_thin_repair+y}
9488 withval=$with_thin_repair; THIN_REPAIR_CMD=$withval
9490 e) THIN_REPAIR_CMD="autodetect" ;;
9495 # Check whether --with-thin-restore was given.
9496 if test ${with_thin_restore+y}
9498 withval=$with_thin_restore; THIN_RESTORE_CMD=$withval
9500 e) THIN_RESTORE_CMD="autodetect" ;;
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
9506 printf "%s\n" "$THIN" >&6; }
9510 test "$DEFAULT_SPARSE_SEGTYPE" = "thin" && DEFAULT_SPARSE_SEGTYPE="snapshot" ;; #(
9516 printf "%s\n" "#define THIN_INTERNAL 1" >>confdefs.h
9519 as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
9523 printf "%s\n" "#define DEFAULT_SPARSE_SEGTYPE \"$DEFAULT_SPARSE_SEGTYPE\"" >>confdefs.h
9526 # Check whether --enable-thin_check_needs_check was given.
9527 if test ${enable_thin_check_needs_check+y}
9529 enableval=$enable_thin_check_needs_check; THIN_CHECK_NEEDS_CHECK=$enableval
9531 e) THIN_CHECK_NEEDS_CHECK="yes" ;;
9536 # Test if necessary thin tools are available
9537 # if not - use plain defaults and warn user
9541 # Empty means a config way to ignore thin checking
9542 if test "$THIN_CHECK_CMD" = "autodetect"
9545 if test -n "$ac_tool_prefix"; then
9546 # Extract the first word of "${ac_tool_prefix}thin_check", so it can be a program name with args.
9547 set dummy ${ac_tool_prefix}thin_check; ac_word=$2
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 printf %s "checking for $ac_word... " >&6; }
9550 if test ${ac_cv_path_THIN_CHECK_CMD+y}
9552 printf %s "(cached) " >&6
9554 e) case $THIN_CHECK_CMD in
9556 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH_SBIN
9563 case $as_dir in #(((
9566 *) as_dir=$as_dir/ ;;
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9570 ac_cv_path_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
9571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9582 THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
9583 if test -n "$THIN_CHECK_CMD"; then
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
9585 printf "%s\n" "$THIN_CHECK_CMD" >&6; }
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 printf "%s\n" "no" >&6; }
9593 if test -z "$ac_cv_path_THIN_CHECK_CMD"; then
9594 ac_pt_THIN_CHECK_CMD=$THIN_CHECK_CMD
9595 # Extract the first word of "thin_check", so it can be a program name with args.
9596 set dummy thin_check; ac_word=$2
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 printf %s "checking for $ac_word... " >&6; }
9599 if test ${ac_cv_path_ac_pt_THIN_CHECK_CMD+y}
9601 printf %s "(cached) " >&6
9603 e) case $ac_pt_THIN_CHECK_CMD in
9605 ac_cv_path_ac_pt_THIN_CHECK_CMD="$ac_pt_THIN_CHECK_CMD" # Let the user override the test with a path.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH_SBIN
9612 case $as_dir in #(((
9615 *) as_dir=$as_dir/ ;;
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9619 ac_cv_path_ac_pt_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
9620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9631 ac_pt_THIN_CHECK_CMD=$ac_cv_path_ac_pt_THIN_CHECK_CMD
9632 if test -n "$ac_pt_THIN_CHECK_CMD"; then
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_CHECK_CMD" >&5
9634 printf "%s\n" "$ac_pt_THIN_CHECK_CMD" >&6; }
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 printf "%s\n" "no" >&6; }
9640 if test "x$ac_pt_THIN_CHECK_CMD" = x; then
9643 case $cross_compiling:$ac_tool_warned in
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9646 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9647 ac_tool_warned=yes ;;
9649 THIN_CHECK_CMD=$ac_pt_THIN_CHECK_CMD
9652 THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD"
9655 if test -z "$THIN_CHECK_CMD"
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH_SBIN" >&5
9659 printf "%s\n" "$as_me: WARNING: thin_check not found in path $PATH_SBIN" >&2;}
9660 THIN_CHECK_CMD="/usr/sbin/thin_check"
9661 THIN_CONFIGURE_WARN="y"
9666 if test "$THIN_CHECK_NEEDS_CHECK" = "yes" && test "$THIN_CONFIGURE_WARN" != "y"
9669 THIN_CHECK_VSN=$("$THIN_CHECK_CMD" -V 2>/dev/null)
9670 THIN_CHECK_VSN=${THIN_CHECK_VSN##* } # trim away all before the first space
9671 THIN_CHECK_VSN_MAJOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $1}')
9672 THIN_CHECK_VSN_MINOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $2}')
9674 if test -z "$THIN_CHECK_VSN_MAJOR" || test -z "$THIN_CHECK_VSN_MINOR"
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&5
9678 printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&2;}
9679 THIN_CHECK_VERSION_WARN="y"
9680 THIN_CHECK_NEEDS_CHECK="no"
9682 elif test "$THIN_CHECK_VSN_MAJOR" -eq 0 && test "$THIN_CHECK_VSN_MINOR" -lt 3
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&5
9686 printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&2;}
9687 THIN_CHECK_VERSION_WARN="y"
9688 THIN_CHECK_NEEDS_CHECK="no"
9693 # Empty means a config way to ignore thin dumping
9694 if test "$THIN_DUMP_CMD" = "autodetect"
9697 if test -n "$ac_tool_prefix"; then
9698 # Extract the first word of "${ac_tool_prefix}thin_dump", so it can be a program name with args.
9699 set dummy ${ac_tool_prefix}thin_dump; ac_word=$2
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 printf %s "checking for $ac_word... " >&6; }
9702 if test ${ac_cv_path_THIN_DUMP_CMD+y}
9704 printf %s "(cached) " >&6
9706 e) case $THIN_DUMP_CMD in
9708 ac_cv_path_THIN_DUMP_CMD="$THIN_DUMP_CMD" # Let the user override the test with a path.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH_SBIN
9715 case $as_dir in #(((
9718 *) as_dir=$as_dir/ ;;
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9722 ac_cv_path_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
9723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9734 THIN_DUMP_CMD=$ac_cv_path_THIN_DUMP_CMD
9735 if test -n "$THIN_DUMP_CMD"; then
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_DUMP_CMD" >&5
9737 printf "%s\n" "$THIN_DUMP_CMD" >&6; }
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 printf "%s\n" "no" >&6; }
9745 if test -z "$ac_cv_path_THIN_DUMP_CMD"; then
9746 ac_pt_THIN_DUMP_CMD=$THIN_DUMP_CMD
9747 # Extract the first word of "thin_dump", so it can be a program name with args.
9748 set dummy thin_dump; ac_word=$2
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 printf %s "checking for $ac_word... " >&6; }
9751 if test ${ac_cv_path_ac_pt_THIN_DUMP_CMD+y}
9753 printf %s "(cached) " >&6
9755 e) case $ac_pt_THIN_DUMP_CMD in
9757 ac_cv_path_ac_pt_THIN_DUMP_CMD="$ac_pt_THIN_DUMP_CMD" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH_SBIN
9764 case $as_dir in #(((
9767 *) as_dir=$as_dir/ ;;
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9771 ac_cv_path_ac_pt_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
9772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9783 ac_pt_THIN_DUMP_CMD=$ac_cv_path_ac_pt_THIN_DUMP_CMD
9784 if test -n "$ac_pt_THIN_DUMP_CMD"; then
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_DUMP_CMD" >&5
9786 printf "%s\n" "$ac_pt_THIN_DUMP_CMD" >&6; }
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 printf "%s\n" "no" >&6; }
9792 if test "x$ac_pt_THIN_DUMP_CMD" = x; then
9795 case $cross_compiling:$ac_tool_warned in
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9799 ac_tool_warned=yes ;;
9801 THIN_DUMP_CMD=$ac_pt_THIN_DUMP_CMD
9804 THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD"
9807 if test -z "$THIN_DUMP_CMD"
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&5
9811 printf "%s\n" "$as_me: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&2;}
9812 THIN_DUMP_CMD="/usr/sbin/thin_dump"
9813 THIN_CONFIGURE_WARN="y"
9818 # Empty means a config way to ignore thin repairing
9819 if test "$THIN_REPAIR_CMD" = "autodetect"
9822 if test -n "$ac_tool_prefix"; then
9823 # Extract the first word of "${ac_tool_prefix}thin_repair", so it can be a program name with args.
9824 set dummy ${ac_tool_prefix}thin_repair; ac_word=$2
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 printf %s "checking for $ac_word... " >&6; }
9827 if test ${ac_cv_path_THIN_REPAIR_CMD+y}
9829 printf %s "(cached) " >&6
9831 e) case $THIN_REPAIR_CMD in
9833 ac_cv_path_THIN_REPAIR_CMD="$THIN_REPAIR_CMD" # Let the user override the test with a path.
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 for as_dir in $PATH_SBIN
9840 case $as_dir in #(((
9843 *) as_dir=$as_dir/ ;;
9845 for ac_exec_ext in '' $ac_executable_extensions; do
9846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9847 ac_cv_path_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
9848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9859 THIN_REPAIR_CMD=$ac_cv_path_THIN_REPAIR_CMD
9860 if test -n "$THIN_REPAIR_CMD"; then
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_REPAIR_CMD" >&5
9862 printf "%s\n" "$THIN_REPAIR_CMD" >&6; }
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 printf "%s\n" "no" >&6; }
9870 if test -z "$ac_cv_path_THIN_REPAIR_CMD"; then
9871 ac_pt_THIN_REPAIR_CMD=$THIN_REPAIR_CMD
9872 # Extract the first word of "thin_repair", so it can be a program name with args.
9873 set dummy thin_repair; ac_word=$2
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 printf %s "checking for $ac_word... " >&6; }
9876 if test ${ac_cv_path_ac_pt_THIN_REPAIR_CMD+y}
9878 printf %s "(cached) " >&6
9880 e) case $ac_pt_THIN_REPAIR_CMD in
9882 ac_cv_path_ac_pt_THIN_REPAIR_CMD="$ac_pt_THIN_REPAIR_CMD" # Let the user override the test with a path.
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH_SBIN
9889 case $as_dir in #(((
9892 *) as_dir=$as_dir/ ;;
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9896 ac_cv_path_ac_pt_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
9897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9908 ac_pt_THIN_REPAIR_CMD=$ac_cv_path_ac_pt_THIN_REPAIR_CMD
9909 if test -n "$ac_pt_THIN_REPAIR_CMD"; then
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_REPAIR_CMD" >&5
9911 printf "%s\n" "$ac_pt_THIN_REPAIR_CMD" >&6; }
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 printf "%s\n" "no" >&6; }
9917 if test "x$ac_pt_THIN_REPAIR_CMD" = x; then
9920 case $cross_compiling:$ac_tool_warned in
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9924 ac_tool_warned=yes ;;
9926 THIN_REPAIR_CMD=$ac_pt_THIN_REPAIR_CMD
9929 THIN_REPAIR_CMD="$ac_cv_path_THIN_REPAIR_CMD"
9932 if test -z "$THIN_REPAIR_CMD"
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&5
9936 printf "%s\n" "$as_me: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&2;}
9937 THIN_REPAIR_CMD="/usr/sbin/thin_repair"
9938 THIN_CONFIGURE_WARN="y"
9943 # Empty means a config way to ignore thin restoring
9944 if test "$THIN_RESTORE_CMD" = "autodetect"
9947 if test -n "$ac_tool_prefix"; then
9948 # Extract the first word of "${ac_tool_prefix}thin_restore", so it can be a program name with args.
9949 set dummy ${ac_tool_prefix}thin_restore; ac_word=$2
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 printf %s "checking for $ac_word... " >&6; }
9952 if test ${ac_cv_path_THIN_RESTORE_CMD+y}
9954 printf %s "(cached) " >&6
9956 e) case $THIN_RESTORE_CMD in
9958 ac_cv_path_THIN_RESTORE_CMD="$THIN_RESTORE_CMD" # Let the user override the test with a path.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH_SBIN
9965 case $as_dir in #(((
9968 *) as_dir=$as_dir/ ;;
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9972 ac_cv_path_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
9973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9984 THIN_RESTORE_CMD=$ac_cv_path_THIN_RESTORE_CMD
9985 if test -n "$THIN_RESTORE_CMD"; then
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_RESTORE_CMD" >&5
9987 printf "%s\n" "$THIN_RESTORE_CMD" >&6; }
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 printf "%s\n" "no" >&6; }
9995 if test -z "$ac_cv_path_THIN_RESTORE_CMD"; then
9996 ac_pt_THIN_RESTORE_CMD=$THIN_RESTORE_CMD
9997 # Extract the first word of "thin_restore", so it can be a program name with args.
9998 set dummy thin_restore; ac_word=$2
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 printf %s "checking for $ac_word... " >&6; }
10001 if test ${ac_cv_path_ac_pt_THIN_RESTORE_CMD+y}
10003 printf %s "(cached) " >&6
10005 e) case $ac_pt_THIN_RESTORE_CMD in
10007 ac_cv_path_ac_pt_THIN_RESTORE_CMD="$ac_pt_THIN_RESTORE_CMD" # Let the user override the test with a path.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH_SBIN
10014 case $as_dir in #(((
10017 *) as_dir=$as_dir/ ;;
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10021 ac_cv_path_ac_pt_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
10022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10033 ac_pt_THIN_RESTORE_CMD=$ac_cv_path_ac_pt_THIN_RESTORE_CMD
10034 if test -n "$ac_pt_THIN_RESTORE_CMD"; then
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_RESTORE_CMD" >&5
10036 printf "%s\n" "$ac_pt_THIN_RESTORE_CMD" >&6; }
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 printf "%s\n" "no" >&6; }
10042 if test "x$ac_pt_THIN_RESTORE_CMD" = x; then
10043 THIN_RESTORE_CMD=""
10045 case $cross_compiling:$ac_tool_warned in
10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10049 ac_tool_warned=yes ;;
10051 THIN_RESTORE_CMD=$ac_pt_THIN_RESTORE_CMD
10054 THIN_RESTORE_CMD="$ac_cv_path_THIN_RESTORE_CMD"
10057 if test -z "$THIN_RESTORE_CMD"
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&5
10061 printf "%s\n" "$as_me: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&2;}
10062 THIN_RESTORE_CMD="/usr/sbin/thin_restore"
10063 THIN_CONFIGURE_WARN="y"
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag" >&5
10070 printf %s "checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag... " >&6; }
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_NEEDS_CHECK" >&5
10072 printf "%s\n" "$THIN_CHECK_NEEDS_CHECK" >&6; }
10073 if test "$THIN_CHECK_NEEDS_CHECK" = "yes"
10077 printf "%s\n" "#define THIN_CHECK_NEEDS_CHECK 1" >>confdefs.h
10087 printf "%s\n" "#define THIN_CHECK_CMD \"$THIN_CHECK_CMD\"" >>confdefs.h
10091 printf "%s\n" "#define THIN_DUMP_CMD \"$THIN_DUMP_CMD\"" >>confdefs.h
10095 printf "%s\n" "#define THIN_REPAIR_CMD \"$THIN_REPAIR_CMD\"" >>confdefs.h
10099 printf "%s\n" "#define THIN_RESTORE_CMD \"$THIN_RESTORE_CMD\"" >>confdefs.h
10102 ################################################################################
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include cache" >&5
10104 printf %s "checking whether to include cache... " >&6; }
10106 # Check whether --with-cache was given.
10107 if test ${with_cache+y}
10109 withval=$with_cache; CACHE=$withval
10111 e) CACHE="internal" ;;
10116 # Check whether --with-cache-check was given.
10117 if test ${with_cache_check+y}
10119 withval=$with_cache_check; CACHE_CHECK_CMD=$withval
10121 e) CACHE_CHECK_CMD="autodetect" ;;
10126 # Check whether --with-cache-dump was given.
10127 if test ${with_cache_dump+y}
10129 withval=$with_cache_dump; CACHE_DUMP_CMD=$withval
10131 e) CACHE_DUMP_CMD="autodetect" ;;
10136 # Check whether --with-cache-repair was given.
10137 if test ${with_cache_repair+y}
10139 withval=$with_cache_repair; CACHE_REPAIR_CMD=$withval
10141 e) CACHE_REPAIR_CMD="autodetect" ;;
10146 # Check whether --with-cache-restore was given.
10147 if test ${with_cache_restore+y}
10149 withval=$with_cache_restore; CACHE_RESTORE_CMD=$withval
10151 e) CACHE_RESTORE_CMD="autodetect" ;;
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE" >&5
10156 printf "%s\n" "$CACHE" >&6; }
10158 case "$CACHE" in #(
10164 printf "%s\n" "#define CACHE_INTERNAL 1" >>confdefs.h
10167 as_fn_error $? "--with-cache parameter invalid" "$LINENO" 5 ;;
10170 # Check whether --enable-cache_check_needs_check was given.
10171 if test ${enable_cache_check_needs_check+y}
10173 enableval=$enable_cache_check_needs_check; CACHE_CHECK_NEEDS_CHECK=$enableval
10175 e) CACHE_CHECK_NEEDS_CHECK="yes" ;;
10180 # Test if necessary cache tools are available
10181 # if not - use plain defaults and warn user
10182 case "$CACHE" in #(
10185 # Empty means a config way to ignore cache checking
10186 if test "$CACHE_CHECK_CMD" = "autodetect"
10189 if test -n "$ac_tool_prefix"; then
10190 # Extract the first word of "${ac_tool_prefix}cache_check", so it can be a program name with args.
10191 set dummy ${ac_tool_prefix}cache_check; ac_word=$2
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 printf %s "checking for $ac_word... " >&6; }
10194 if test ${ac_cv_path_CACHE_CHECK_CMD+y}
10196 printf %s "(cached) " >&6
10198 e) case $CACHE_CHECK_CMD in
10200 ac_cv_path_CACHE_CHECK_CMD="$CACHE_CHECK_CMD" # Let the user override the test with a path.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH_SBIN
10207 case $as_dir in #(((
10210 *) as_dir=$as_dir/ ;;
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10214 ac_cv_path_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
10215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10226 CACHE_CHECK_CMD=$ac_cv_path_CACHE_CHECK_CMD
10227 if test -n "$CACHE_CHECK_CMD"; then
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_CMD" >&5
10229 printf "%s\n" "$CACHE_CHECK_CMD" >&6; }
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 printf "%s\n" "no" >&6; }
10237 if test -z "$ac_cv_path_CACHE_CHECK_CMD"; then
10238 ac_pt_CACHE_CHECK_CMD=$CACHE_CHECK_CMD
10239 # Extract the first word of "cache_check", so it can be a program name with args.
10240 set dummy cache_check; ac_word=$2
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 printf %s "checking for $ac_word... " >&6; }
10243 if test ${ac_cv_path_ac_pt_CACHE_CHECK_CMD+y}
10245 printf %s "(cached) " >&6
10247 e) case $ac_pt_CACHE_CHECK_CMD in
10249 ac_cv_path_ac_pt_CACHE_CHECK_CMD="$ac_pt_CACHE_CHECK_CMD" # Let the user override the test with a path.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH_SBIN
10256 case $as_dir in #(((
10259 *) as_dir=$as_dir/ ;;
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10263 ac_cv_path_ac_pt_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
10264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10275 ac_pt_CACHE_CHECK_CMD=$ac_cv_path_ac_pt_CACHE_CHECK_CMD
10276 if test -n "$ac_pt_CACHE_CHECK_CMD"; then
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_CHECK_CMD" >&5
10278 printf "%s\n" "$ac_pt_CACHE_CHECK_CMD" >&6; }
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 printf "%s\n" "no" >&6; }
10284 if test "x$ac_pt_CACHE_CHECK_CMD" = x; then
10287 case $cross_compiling:$ac_tool_warned in
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10291 ac_tool_warned=yes ;;
10293 CACHE_CHECK_CMD=$ac_pt_CACHE_CHECK_CMD
10296 CACHE_CHECK_CMD="$ac_cv_path_CACHE_CHECK_CMD"
10299 if test -z "$CACHE_CHECK_CMD"
10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache_check not found in path $PATH_SBIN" >&5
10303 printf "%s\n" "$as_me: WARNING: cache_check not found in path $PATH_SBIN" >&2;}
10304 CACHE_CHECK_CMD="/usr/sbin/cache_check"
10305 CACHE_CONFIGURE_WARN="y"
10310 if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" && test "$CACHE_CONFIGURE_WARN" != "y"
10313 "$CACHE_CHECK_CMD" -V 2>/dev/null >conftest.tmp
10314 read -r CACHE_CHECK_VSN < conftest.tmp
10315 IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp
10318 # Require version >= 0.5.4 for --clear-needs-check-flag
10319 CACHE_CHECK_VSN_MAJOR=${CACHE_CHECK_VSN_MAJOR##* }
10320 if test -z "$CACHE_CHECK_VSN_MAJOR" \
10321 || test -z "$CACHE_CHECK_VSN_MINOR" \
10322 || test -z "$CACHE_CHECK_VSN_PATCH"
10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&5
10326 printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&2;}
10327 CACHE_CHECK_VERSION_WARN="y"
10328 CACHE_CHECK_NEEDS_CHECK="no"
10330 elif test "$CACHE_CHECK_VSN_MAJOR" -eq 0
10333 if test "$CACHE_CHECK_VSN_MINOR" -lt 5 \
10334 || ( test "$CACHE_CHECK_VSN_MINOR" -eq 5 && test "$CACHE_CHECK_VSN_PATCH" -lt 4 )
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&5
10338 printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&2;}
10339 CACHE_CHECK_VERSION_WARN="y"
10340 CACHE_CHECK_NEEDS_CHECK="no"
10343 if test "$CACHE_CHECK_VSN_MINOR" -lt 7
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&5
10347 printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&2;}
10348 CACHE_CHECK_VERSION_WARN=y
10355 # Empty means a config way to ignore cache dumping
10356 if test "$CACHE_DUMP_CMD" = "autodetect"
10359 if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "${ac_tool_prefix}cache_dump", so it can be a program name with args.
10361 set dummy ${ac_tool_prefix}cache_dump; ac_word=$2
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 printf %s "checking for $ac_word... " >&6; }
10364 if test ${ac_cv_path_CACHE_DUMP_CMD+y}
10366 printf %s "(cached) " >&6
10368 e) case $CACHE_DUMP_CMD in
10370 ac_cv_path_CACHE_DUMP_CMD="$CACHE_DUMP_CMD" # Let the user override the test with a path.
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH_SBIN
10377 case $as_dir in #(((
10380 *) as_dir=$as_dir/ ;;
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10384 ac_cv_path_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
10385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10396 CACHE_DUMP_CMD=$ac_cv_path_CACHE_DUMP_CMD
10397 if test -n "$CACHE_DUMP_CMD"; then
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_DUMP_CMD" >&5
10399 printf "%s\n" "$CACHE_DUMP_CMD" >&6; }
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 printf "%s\n" "no" >&6; }
10407 if test -z "$ac_cv_path_CACHE_DUMP_CMD"; then
10408 ac_pt_CACHE_DUMP_CMD=$CACHE_DUMP_CMD
10409 # Extract the first word of "cache_dump", so it can be a program name with args.
10410 set dummy cache_dump; ac_word=$2
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 printf %s "checking for $ac_word... " >&6; }
10413 if test ${ac_cv_path_ac_pt_CACHE_DUMP_CMD+y}
10415 printf %s "(cached) " >&6
10417 e) case $ac_pt_CACHE_DUMP_CMD in
10419 ac_cv_path_ac_pt_CACHE_DUMP_CMD="$ac_pt_CACHE_DUMP_CMD" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH_SBIN
10426 case $as_dir in #(((
10429 *) as_dir=$as_dir/ ;;
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10433 ac_cv_path_ac_pt_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
10434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10445 ac_pt_CACHE_DUMP_CMD=$ac_cv_path_ac_pt_CACHE_DUMP_CMD
10446 if test -n "$ac_pt_CACHE_DUMP_CMD"; then
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_DUMP_CMD" >&5
10448 printf "%s\n" "$ac_pt_CACHE_DUMP_CMD" >&6; }
10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451 printf "%s\n" "no" >&6; }
10454 if test "x$ac_pt_CACHE_DUMP_CMD" = x; then
10457 case $cross_compiling:$ac_tool_warned in
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10460 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10461 ac_tool_warned=yes ;;
10463 CACHE_DUMP_CMD=$ac_pt_CACHE_DUMP_CMD
10466 CACHE_DUMP_CMD="$ac_cv_path_CACHE_DUMP_CMD"
10469 if test -z "$CACHE_DUMP_CMD"
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&5
10473 printf "%s\n" "$as_me: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&2;}
10474 CACHE_DUMP_CMD="/usr/sbin/cache_dump"
10475 CACHE_CONFIGURE_WARN="y"
10480 # Empty means a config way to ignore cache repairing
10481 if test "$CACHE_REPAIR_CMD" = "autodetect"
10484 if test -n "$ac_tool_prefix"; then
10485 # Extract the first word of "${ac_tool_prefix}cache_repair", so it can be a program name with args.
10486 set dummy ${ac_tool_prefix}cache_repair; ac_word=$2
10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 printf %s "checking for $ac_word... " >&6; }
10489 if test ${ac_cv_path_CACHE_REPAIR_CMD+y}
10491 printf %s "(cached) " >&6
10493 e) case $CACHE_REPAIR_CMD in
10495 ac_cv_path_CACHE_REPAIR_CMD="$CACHE_REPAIR_CMD" # Let the user override the test with a path.
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499 for as_dir in $PATH_SBIN
10502 case $as_dir in #(((
10505 *) as_dir=$as_dir/ ;;
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10509 ac_cv_path_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
10510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10521 CACHE_REPAIR_CMD=$ac_cv_path_CACHE_REPAIR_CMD
10522 if test -n "$CACHE_REPAIR_CMD"; then
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_REPAIR_CMD" >&5
10524 printf "%s\n" "$CACHE_REPAIR_CMD" >&6; }
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 printf "%s\n" "no" >&6; }
10532 if test -z "$ac_cv_path_CACHE_REPAIR_CMD"; then
10533 ac_pt_CACHE_REPAIR_CMD=$CACHE_REPAIR_CMD
10534 # Extract the first word of "cache_repair", so it can be a program name with args.
10535 set dummy cache_repair; ac_word=$2
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 printf %s "checking for $ac_word... " >&6; }
10538 if test ${ac_cv_path_ac_pt_CACHE_REPAIR_CMD+y}
10540 printf %s "(cached) " >&6
10542 e) case $ac_pt_CACHE_REPAIR_CMD in
10544 ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$ac_pt_CACHE_REPAIR_CMD" # Let the user override the test with a path.
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH_SBIN
10551 case $as_dir in #(((
10554 *) as_dir=$as_dir/ ;;
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10558 ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
10559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10570 ac_pt_CACHE_REPAIR_CMD=$ac_cv_path_ac_pt_CACHE_REPAIR_CMD
10571 if test -n "$ac_pt_CACHE_REPAIR_CMD"; then
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_REPAIR_CMD" >&5
10573 printf "%s\n" "$ac_pt_CACHE_REPAIR_CMD" >&6; }
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 printf "%s\n" "no" >&6; }
10579 if test "x$ac_pt_CACHE_REPAIR_CMD" = x; then
10580 CACHE_REPAIR_CMD=""
10582 case $cross_compiling:$ac_tool_warned in
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10585 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10586 ac_tool_warned=yes ;;
10588 CACHE_REPAIR_CMD=$ac_pt_CACHE_REPAIR_CMD
10591 CACHE_REPAIR_CMD="$ac_cv_path_CACHE_REPAIR_CMD"
10594 if test -z "$CACHE_REPAIR_CMD"
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&5
10598 printf "%s\n" "$as_me: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&2;}
10599 CACHE_REPAIR_CMD="/usr/sbin/cache_repair"
10600 CACHE_CONFIGURE_WARN="y"
10605 # Empty means a config way to ignore cache restoring
10606 if test "$CACHE_RESTORE_CMD" = "autodetect"
10609 if test -n "$ac_tool_prefix"; then
10610 # Extract the first word of "${ac_tool_prefix}cache_restore", so it can be a program name with args.
10611 set dummy ${ac_tool_prefix}cache_restore; ac_word=$2
10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 printf %s "checking for $ac_word... " >&6; }
10614 if test ${ac_cv_path_CACHE_RESTORE_CMD+y}
10616 printf %s "(cached) " >&6
10618 e) case $CACHE_RESTORE_CMD in
10620 ac_cv_path_CACHE_RESTORE_CMD="$CACHE_RESTORE_CMD" # Let the user override the test with a path.
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH_SBIN
10627 case $as_dir in #(((
10630 *) as_dir=$as_dir/ ;;
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10634 ac_cv_path_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
10635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10646 CACHE_RESTORE_CMD=$ac_cv_path_CACHE_RESTORE_CMD
10647 if test -n "$CACHE_RESTORE_CMD"; then
10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_RESTORE_CMD" >&5
10649 printf "%s\n" "$CACHE_RESTORE_CMD" >&6; }
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 printf "%s\n" "no" >&6; }
10657 if test -z "$ac_cv_path_CACHE_RESTORE_CMD"; then
10658 ac_pt_CACHE_RESTORE_CMD=$CACHE_RESTORE_CMD
10659 # Extract the first word of "cache_restore", so it can be a program name with args.
10660 set dummy cache_restore; ac_word=$2
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662 printf %s "checking for $ac_word... " >&6; }
10663 if test ${ac_cv_path_ac_pt_CACHE_RESTORE_CMD+y}
10665 printf %s "(cached) " >&6
10667 e) case $ac_pt_CACHE_RESTORE_CMD in
10669 ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$ac_pt_CACHE_RESTORE_CMD" # Let the user override the test with a path.
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH_SBIN
10676 case $as_dir in #(((
10679 *) as_dir=$as_dir/ ;;
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10683 ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
10684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10695 ac_pt_CACHE_RESTORE_CMD=$ac_cv_path_ac_pt_CACHE_RESTORE_CMD
10696 if test -n "$ac_pt_CACHE_RESTORE_CMD"; then
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_RESTORE_CMD" >&5
10698 printf "%s\n" "$ac_pt_CACHE_RESTORE_CMD" >&6; }
10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 printf "%s\n" "no" >&6; }
10704 if test "x$ac_pt_CACHE_RESTORE_CMD" = x; then
10705 CACHE_RESTORE_CMD=""
10707 case $cross_compiling:$ac_tool_warned in
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10711 ac_tool_warned=yes ;;
10713 CACHE_RESTORE_CMD=$ac_pt_CACHE_RESTORE_CMD
10716 CACHE_RESTORE_CMD="$ac_cv_path_CACHE_RESTORE_CMD"
10719 if test -z "$CACHE_RESTORE_CMD"
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&5
10723 printf "%s\n" "$as_me: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&2;}
10724 CACHE_RESTORE_CMD="/usr/sbin/cache_restore"
10725 CACHE_CONFIGURE_WARN="y"
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag" >&5
10732 printf %s "checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag... " >&6; }
10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_NEEDS_CHECK" >&5
10734 printf "%s\n" "$CACHE_CHECK_NEEDS_CHECK" >&6; }
10735 if test "$CACHE_CHECK_NEEDS_CHECK" = "yes"
10739 printf "%s\n" "#define CACHE_CHECK_NEEDS_CHECK 1" >>confdefs.h
10749 printf "%s\n" "#define CACHE_CHECK_CMD \"$CACHE_CHECK_CMD\"" >>confdefs.h
10753 printf "%s\n" "#define CACHE_DUMP_CMD \"$CACHE_DUMP_CMD\"" >>confdefs.h
10757 printf "%s\n" "#define CACHE_REPAIR_CMD \"$CACHE_REPAIR_CMD\"" >>confdefs.h
10761 printf "%s\n" "#define CACHE_RESTORE_CMD \"$CACHE_RESTORE_CMD\"" >>confdefs.h
10764 ################################################################################
10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include vdo" >&5
10766 printf %s "checking whether to include vdo... " >&6; }
10768 # Check whether --with-vdo was given.
10769 if test ${with_vdo+y}
10771 withval=$with_vdo; VDO=$withval
10773 e) VDO="internal" ;;
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO" >&5
10779 printf "%s\n" "$VDO" >&6; }
10782 # Check whether --with-vdo-format was given.
10783 if test ${with_vdo_format+y}
10785 withval=$with_vdo_format; VDO_FORMAT_CMD=$withval
10787 e) VDO_FORMAT_CMD="autodetect" ;;
10797 printf "%s\n" "#define VDO_INTERNAL 1" >>confdefs.h
10799 if test "$VDO_FORMAT_CMD" = "autodetect"
10802 if test -n "$ac_tool_prefix"; then
10803 # Extract the first word of "${ac_tool_prefix}vdoformat", so it can be a program name with args.
10804 set dummy ${ac_tool_prefix}vdoformat; ac_word=$2
10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 printf %s "checking for $ac_word... " >&6; }
10807 if test ${ac_cv_path_VDO_FORMAT_CMD+y}
10809 printf %s "(cached) " >&6
10811 e) case $VDO_FORMAT_CMD in
10813 ac_cv_path_VDO_FORMAT_CMD="$VDO_FORMAT_CMD" # Let the user override the test with a path.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10820 case $as_dir in #(((
10823 *) as_dir=$as_dir/ ;;
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10827 ac_cv_path_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext"
10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10839 VDO_FORMAT_CMD=$ac_cv_path_VDO_FORMAT_CMD
10840 if test -n "$VDO_FORMAT_CMD"; then
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO_FORMAT_CMD" >&5
10842 printf "%s\n" "$VDO_FORMAT_CMD" >&6; }
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 printf "%s\n" "no" >&6; }
10850 if test -z "$ac_cv_path_VDO_FORMAT_CMD"; then
10851 ac_pt_VDO_FORMAT_CMD=$VDO_FORMAT_CMD
10852 # Extract the first word of "vdoformat", so it can be a program name with args.
10853 set dummy vdoformat; ac_word=$2
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855 printf %s "checking for $ac_word... " >&6; }
10856 if test ${ac_cv_path_ac_pt_VDO_FORMAT_CMD+y}
10858 printf %s "(cached) " >&6
10860 e) case $ac_pt_VDO_FORMAT_CMD in
10862 ac_cv_path_ac_pt_VDO_FORMAT_CMD="$ac_pt_VDO_FORMAT_CMD" # Let the user override the test with a path.
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10869 case $as_dir in #(((
10872 *) as_dir=$as_dir/ ;;
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10876 ac_cv_path_ac_pt_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext"
10877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10888 ac_pt_VDO_FORMAT_CMD=$ac_cv_path_ac_pt_VDO_FORMAT_CMD
10889 if test -n "$ac_pt_VDO_FORMAT_CMD"; then
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_VDO_FORMAT_CMD" >&5
10891 printf "%s\n" "$ac_pt_VDO_FORMAT_CMD" >&6; }
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 printf "%s\n" "no" >&6; }
10897 if test "x$ac_pt_VDO_FORMAT_CMD" = x; then
10900 case $cross_compiling:$ac_tool_warned in
10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904 ac_tool_warned=yes ;;
10906 VDO_FORMAT_CMD=$ac_pt_VDO_FORMAT_CMD
10909 VDO_FORMAT_CMD="$ac_cv_path_VDO_FORMAT_CMD"
10912 if test -z "$VDO_FORMAT_CMD"
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: vdoformat not found in path $PATH" >&5
10916 printf "%s\n" "$as_me: WARNING: vdoformat not found in path $PATH" >&2;}
10917 VDO_FORMAT_CMD="/usr/bin/vdoformat"
10918 VDO_CONFIGURE_WARN=y
10924 as_fn_error $? "--with-vdo parameter invalid" "$LINENO" 5 ;;
10928 printf "%s\n" "#define VDO_FORMAT_CMD \"$VDO_FORMAT_CMD\"" >>confdefs.h
10931 # Do we need to use the API??
10932 # Do we want to link lvm2 with a big library for vdoformatting ?
10934 #AC_ARG_WITH(vdo-include,
10935 # AS_HELP_STRING([--with-vdo-include=PATH],
10936 # [vdo support: Path to utils headers: [/usr/include/vdo/utils]]),
10937 # VDO_INCLUDE=$withval, VDO_INCLUDE="/usr/include/vdo/utils")
10938 #AC_MSG_RESULT([$VDO_INCLUDE])
10940 #AC_ARG_WITH(vdo-lib,
10941 # AS_HELP_STRING([--with-vdo-lib=PATH],
10942 # [vdo support: Path to utils lib: [/usr/lib]]),
10943 # VDO_LIB=$withval, VDO_LIB="/usr/lib")
10944 #AC_MSG_RESULT([$VDO_LIB])
10946 ################################################################################
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include writecache" >&5
10948 printf %s "checking whether to include writecache... " >&6; }
10950 # Check whether --with-writecache was given.
10951 if test ${with_writecache+y}
10953 withval=$with_writecache; WRITECACHE=$withval
10955 e) WRITECACHE="internal" ;;
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WRITECACHE" >&5
10961 printf "%s\n" "$WRITECACHE" >&6; }
10963 case "$WRITECACHE" in #(
10969 printf "%s\n" "#define WRITECACHE_INTERNAL 1" >>confdefs.h
10972 as_fn_error $? "--with-writecache parameter invalid" "$LINENO" 5 ;;
10975 ################################################################################
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include integrity" >&5
10977 printf %s "checking whether to include integrity... " >&6; }
10979 # Check whether --with-integrity was given.
10980 if test ${with_integrity+y}
10982 withval=$with_integrity; INTEGRITY=$withval
10984 e) INTEGRITY="internal" ;;
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTEGRITY" >&5
10990 printf "%s\n" "$INTEGRITY" >&6; }
10992 case "$INTEGRITY" in #(
10998 printf "%s\n" "#define INTEGRITY_INTERNAL 1" >>confdefs.h
11001 as_fn_error $? "--with-integrity parameter invalid" "$LINENO" 5 ;;
11004 ################################################################################
11005 # Check whether --enable-readline was given.
11006 if test ${enable_readline+y}
11008 enableval=$enable_readline; READLINE=$enableval
11010 e) READLINE="maybe" ;;
11015 ################################################################################
11016 # Check whether --enable-editline was given.
11017 if test ${enable_editline+y}
11019 enableval=$enable_editline; EDITLINE=$enableval
11021 e) EDITLINE="no" ;;
11026 ################################################################################
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
11028 printf %s "checking whether to enable realtime support... " >&6; }
11029 # Check whether --enable-realtime was given.
11030 if test ${enable_realtime+y}
11032 enableval=$enable_realtime; REALTIME=$enableval
11034 e) REALTIME="yes" ;;
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
11039 printf "%s\n" "$REALTIME" >&6; }
11041 ################################################################################
11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
11043 printf %s "checking whether to enable OCF resource agents... " >&6; }
11044 # Check whether --enable-ocf was given.
11045 if test ${enable_ocf+y}
11047 enableval=$enable_ocf; OCF=$enableval
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
11054 printf "%s\n" "$OCF" >&6; }
11056 # Check whether --with-ocfdir was given.
11057 if test ${with_ocfdir+y}
11059 withval=$with_ocfdir; OCFDIR=$withval
11061 e) OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' ;;
11066 ################################################################################
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default run directory" >&5
11068 printf %s "checking for default run directory... " >&6; }
11070 if test ! -d "$RUN_DIR"
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUN_DIR" >&5
11075 printf "%s\n" "$RUN_DIR" >&6; }
11078 # Check whether --with-default-pid-dir was given.
11079 if test ${with_default_pid_dir+y}
11081 withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval"
11083 e) DEFAULT_PID_DIR=$RUN_DIR ;;
11088 printf "%s\n" "#define DEFAULT_PID_DIR \"$DEFAULT_PID_DIR\"" >>confdefs.h
11093 # Check whether --with-default-dm-run-dir was given.
11094 if test ${with_default_dm_run_dir+y}
11096 withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval"
11098 e) DEFAULT_DM_RUN_DIR=$RUN_DIR ;;
11103 printf "%s\n" "#define DEFAULT_DM_RUN_DIR \"$DEFAULT_DM_RUN_DIR\"" >>confdefs.h
11108 # Check whether --with-default-run-dir was given.
11109 if test ${with_default_run_dir+y}
11111 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
11113 e) DEFAULT_RUN_DIR="$RUN_DIR/lvm" ;;
11118 printf "%s\n" "#define DEFAULT_RUN_DIR \"$DEFAULT_RUN_DIR\"" >>confdefs.h
11121 ################################################################################
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
11123 printf %s "checking whether to build cluster mirror log daemon... " >&6; }
11124 # Check whether --enable-cmirrord was given.
11125 if test ${enable_cmirrord+y}
11127 enableval=$enable_cmirrord; BUILD_CMIRRORD=$enableval
11129 e) BUILD_CMIRRORD="no" ;;
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CMIRRORD" >&5
11134 printf "%s\n" "$BUILD_CMIRRORD" >&6; }
11136 ################################################################################
11137 if test "$BUILD_CMIRRORD" = "yes"
11141 # Check whether --with-cmirrord-pidfile was given.
11142 if test ${with_cmirrord_pidfile+y}
11144 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
11146 e) CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" ;;
11151 printf "%s\n" "#define CMIRRORD_PIDFILE \"$CMIRRORD_PIDFILE\"" >>confdefs.h
11156 ################################################################################
11164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11165 if test -n "$ac_tool_prefix"; then
11166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11167 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169 printf %s "checking for $ac_word... " >&6; }
11170 if test ${ac_cv_path_PKG_CONFIG+y}
11172 printf %s "(cached) " >&6
11174 e) case $PKG_CONFIG in
11176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11183 case $as_dir in #(((
11186 *) as_dir=$as_dir/ ;;
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11190 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11202 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11203 if test -n "$PKG_CONFIG"; then
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11205 printf "%s\n" "$PKG_CONFIG" >&6; }
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 printf "%s\n" "no" >&6; }
11213 if test -z "$ac_cv_path_PKG_CONFIG"; then
11214 ac_pt_PKG_CONFIG=$PKG_CONFIG
11215 # Extract the first word of "pkg-config", so it can be a program name with args.
11216 set dummy pkg-config; ac_word=$2
11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 printf %s "checking for $ac_word... " >&6; }
11219 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11221 printf %s "(cached) " >&6
11223 e) case $ac_pt_PKG_CONFIG in
11225 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11232 case $as_dir in #(((
11235 *) as_dir=$as_dir/ ;;
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11239 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11251 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11252 if test -n "$ac_pt_PKG_CONFIG"; then
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11254 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 printf "%s\n" "no" >&6; }
11260 if test "x$ac_pt_PKG_CONFIG" = x; then
11263 case $cross_compiling:$ac_tool_warned in
11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11267 ac_tool_warned=yes ;;
11269 PKG_CONFIG=$ac_pt_PKG_CONFIG
11272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11276 if test -n "$PKG_CONFIG"; then
11277 _pkg_min_version=0.9.0
11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11279 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11280 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282 printf "%s\n" "yes" >&6; }
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 printf "%s\n" "no" >&6; }
11289 if test "$BUILD_CMIRRORD" = "yes" && test "$HAVE_CPG" != "yes"
11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpg" >&5
11295 printf %s "checking for libcpg... " >&6; }
11297 if test -n "$CPG_CFLAGS"; then
11298 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11299 elif test -n "$PKG_CONFIG"; then
11300 if test -n "$PKG_CONFIG" && \
11301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
11302 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; }; then
11306 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev
/null
`
11307 test "x$?" != "x0" && pkg_failed=yes
11314 if test -n "$CPG_LIBS"; then
11315 pkg_cv_CPG_LIBS="$CPG_LIBS"
11316 elif test -n "$PKG_CONFIG"; then
11317 if test -n "$PKG_CONFIG" && \
11318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
11319 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11322 test $ac_status = 0; }; then
11323 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev
/null
`
11324 test "x$?" != "x0" && pkg_failed=yes
11334 if test $pkg_failed = yes; then
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 printf "%s\n" "no" >&6; }
11338 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11339 _pkg_short_errors_supported=yes
11341 _pkg_short_errors_supported=no
11343 if test $_pkg_short_errors_supported = yes; then
11344 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpg" 2>&1`
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpg" 2>&1`
11348 # Put the nasty error message in config.log where it belongs
11349 echo "$CPG_PKG_ERRORS" >&5
11351 as_fn_error $? "Package requirements (libcpg) were not met:
11355 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11356 installed software in a non-standard prefix.
11358 Alternatively, you may set the environment variables CPG_CFLAGS
11359 and CPG_LIBS to avoid the need to call pkg-config.
11360 See the pkg-config man page for more details." "$LINENO" 5
11361 elif test $pkg_failed = untried; then
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 printf "%s\n" "no" >&6; }
11364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11365 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11366 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11367 is in your PATH or set the PKG_CONFIG environment variable to the full
11368 path to pkg-config.
11370 Alternatively, you may set the environment variables CPG_CFLAGS
11371 and CPG_LIBS to avoid the need to call pkg-config.
11372 See the pkg-config man page for more details.
11374 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11375 See 'config.log' for more details" "$LINENO" 5; }
11377 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11378 CPG_LIBS=$pkg_cv_CPG_LIBS
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 printf "%s\n" "yes" >&6; }
11386 ################################################################################
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
11388 printf %s "checking whether to enable debugging... " >&6; }
11389 # Check whether --enable-debug was given.
11390 if test ${enable_debug+y}
11392 enableval=$enable_debug; DEBUG=$enableval
11398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
11399 printf "%s\n" "$DEBUG" >&6; }
11401 if test "$DEBUG" = "yes"
11405 e) CSCOPE_CMD="" ;;
11411 ac_save_CFLAGS=$CFLAGS
11412 CFLAGS=-Wjump-misses-init
11413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wjump-misses-init flag" >&5
11414 printf %s "checking whether $CC accepts -Wjump-misses-init flag... " >&6; }
11415 if test ${ac_cv_flag_HAVE_WJUMP+y}
11417 printf %s "(cached) " >&6
11419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11430 if ac_fn_c_try_compile "$LINENO"
11432 ac_cv_flag_HAVE_WJUMP=yes
11434 e) ac_cv_flag_HAVE_WJUMP=no ;;
11437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WJUMP" >&5
11441 printf "%s\n" "$ac_cv_flag_HAVE_WJUMP" >&6; }
11442 CFLAGS=$ac_save_CFLAGS
11443 HAVE_WJUMP=$ac_cv_flag_HAVE_WJUMP
11444 if test "HAVE_WJUMP" = yes; then
11453 ac_save_CFLAGS=$CFLAGS
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wclobbered flag" >&5
11456 printf %s "checking whether $CC accepts -Wclobbered flag... " >&6; }
11457 if test ${ac_cv_flag_HAVE_WCLOBBERED+y}
11459 printf %s "(cached) " >&6
11461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11472 if ac_fn_c_try_compile "$LINENO"
11474 ac_cv_flag_HAVE_WCLOBBERED=yes
11476 e) ac_cv_flag_HAVE_WCLOBBERED=no ;;
11479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WCLOBBERED" >&5
11483 printf "%s\n" "$ac_cv_flag_HAVE_WCLOBBERED" >&6; }
11484 CFLAGS=$ac_save_CFLAGS
11485 HAVE_WCLOBBERED=$ac_cv_flag_HAVE_WCLOBBERED
11486 if test "HAVE_WCLOBBERED" = yes; then
11495 ac_save_CFLAGS=$CFLAGS
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsync-nand flag" >&5
11498 printf %s "checking whether $CC accepts -Wsync-nand flag... " >&6; }
11499 if test ${ac_cv_flag_HAVE_WSYNCNAND+y}
11501 printf %s "(cached) " >&6
11503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11514 if ac_fn_c_try_compile "$LINENO"
11516 ac_cv_flag_HAVE_WSYNCNAND=yes
11518 e) ac_cv_flag_HAVE_WSYNCNAND=no ;;
11521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WSYNCNAND" >&5
11525 printf "%s\n" "$ac_cv_flag_HAVE_WSYNCNAND" >&6; }
11526 CFLAGS=$ac_save_CFLAGS
11527 HAVE_WSYNCNAND=$ac_cv_flag_HAVE_WSYNCNAND
11528 if test "HAVE_WSYNCNAND" = yes; then
11536 ################################################################################
11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
11538 printf %s "checking for C optimisation flag... " >&6; }
11540 # Check whether --with-optimisation was given.
11541 if test ${with_optimisation+y}
11543 withval=$with_optimisation; COPTIMISE_FLAG=$withval
11546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
11547 printf "%s\n" "$COPTIMISE_FLAG" >&6; }
11549 ################################################################################
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use symbol versioning" >&5
11551 printf %s "checking whether to use symbol versioning... " >&6; }
11553 # Check whether --with-symvers was given.
11554 if test ${with_symvers+y}
11556 withval=$with_symvers;
11557 case "$withval" in #(
11559 symvers=$withval ;; #(
11561 as_fn_error $? "--with-symvers parameter invalid" "$LINENO" 5 ;;
11564 e) symvers="gnu" ;;
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $symvers" >&5
11569 printf "%s\n" "$symvers" >&6; }
11571 if test "$GCC" = "yes" && test "$symvers" = "gnu"
11575 printf "%s\n" "#define GNU_SYMVER 1" >>confdefs.h
11577 case "$host_os" in #(
11580 CLDFLAGS="-Wl,--version-script,.export.sym"
11581 LDDEPS="$LDDEPS .export.sym" ;; #(
11588 ################################################################################
11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
11590 printf %s "checking whether to gather gcov profiling data... " >&6; }
11591 # Check whether --enable-profiling was given.
11592 if test ${enable_profiling+y}
11594 enableval=$enable_profiling; PROFILING=$enableval
11596 e) PROFILING="no" ;;
11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
11601 printf "%s\n" "$PROFILING" >&6; }
11603 if test "$PROFILING" = "yes"
11606 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -fprofile-update=atomic -ftest-coverage"
11607 if test -n "$ac_tool_prefix"; then
11608 # Extract the first word of "${ac_tool_prefix}lcov", so it can be a program name with args.
11609 set dummy ${ac_tool_prefix}lcov; ac_word=$2
11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611 printf %s "checking for $ac_word... " >&6; }
11612 if test ${ac_cv_path_LCOV+y}
11614 printf %s "(cached) " >&6
11618 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11625 case $as_dir in #(((
11628 *) as_dir=$as_dir/ ;;
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11632 ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
11633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11644 LCOV=$ac_cv_path_LCOV
11645 if test -n "$LCOV"; then
11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
11647 printf "%s\n" "$LCOV" >&6; }
11649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 printf "%s\n" "no" >&6; }
11655 if test -z "$ac_cv_path_LCOV"; then
11657 # Extract the first word of "lcov", so it can be a program name with args.
11658 set dummy lcov; ac_word=$2
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 printf %s "checking for $ac_word... " >&6; }
11661 if test ${ac_cv_path_ac_pt_LCOV+y}
11663 printf %s "(cached) " >&6
11665 e) case $ac_pt_LCOV in
11667 ac_cv_path_ac_pt_LCOV="$ac_pt_LCOV" # Let the user override the test with a path.
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11674 case $as_dir in #(((
11677 *) as_dir=$as_dir/ ;;
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11681 ac_cv_path_ac_pt_LCOV="$as_dir$ac_word$ac_exec_ext"
11682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11693 ac_pt_LCOV=$ac_cv_path_ac_pt_LCOV
11694 if test -n "$ac_pt_LCOV"; then
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LCOV" >&5
11696 printf "%s\n" "$ac_pt_LCOV" >&6; }
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 printf "%s\n" "no" >&6; }
11702 if test "x$ac_pt_LCOV" = x; then
11705 case $cross_compiling:$ac_tool_warned in
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709 ac_tool_warned=yes ;;
11714 LCOV="$ac_cv_path_LCOV"
11717 if test -n "$ac_tool_prefix"; then
11718 # Extract the first word of "${ac_tool_prefix}genhtml", so it can be a program name with args.
11719 set dummy ${ac_tool_prefix}genhtml; ac_word=$2
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 printf %s "checking for $ac_word... " >&6; }
11722 if test ${ac_cv_path_GENHTML+y}
11724 printf %s "(cached) " >&6
11726 e) case $GENHTML in
11728 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11735 case $as_dir in #(((
11738 *) as_dir=$as_dir/ ;;
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11742 ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
11743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11754 GENHTML=$ac_cv_path_GENHTML
11755 if test -n "$GENHTML"; then
11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
11757 printf "%s\n" "$GENHTML" >&6; }
11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 printf "%s\n" "no" >&6; }
11765 if test -z "$ac_cv_path_GENHTML"; then
11766 ac_pt_GENHTML=$GENHTML
11767 # Extract the first word of "genhtml", so it can be a program name with args.
11768 set dummy genhtml; ac_word=$2
11769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 printf %s "checking for $ac_word... " >&6; }
11771 if test ${ac_cv_path_ac_pt_GENHTML+y}
11773 printf %s "(cached) " >&6
11775 e) case $ac_pt_GENHTML in
11777 ac_cv_path_ac_pt_GENHTML="$ac_pt_GENHTML" # Let the user override the test with a path.
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH
11784 case $as_dir in #(((
11787 *) as_dir=$as_dir/ ;;
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11791 ac_cv_path_ac_pt_GENHTML="$as_dir$ac_word$ac_exec_ext"
11792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11803 ac_pt_GENHTML=$ac_cv_path_ac_pt_GENHTML
11804 if test -n "$ac_pt_GENHTML"; then
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENHTML" >&5
11806 printf "%s\n" "$ac_pt_GENHTML" >&6; }
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 printf "%s\n" "no" >&6; }
11812 if test "x$ac_pt_GENHTML" = x; then
11815 case $cross_compiling:$ac_tool_warned in
11817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11819 ac_tool_warned=yes ;;
11821 GENHTML=$ac_pt_GENHTML
11824 GENHTML="$ac_cv_path_GENHTML"
11827 if test -z "$LCOV" || test -z "$GENHTML"
11830 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
11833 if test -n "$ac_tool_prefix"; then
11834 # Extract the first word of "${ac_tool_prefix}genpng", so it can be a program name with args.
11835 set dummy ${ac_tool_prefix}genpng; ac_word=$2
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 printf %s "checking for $ac_word... " >&6; }
11838 if test ${ac_cv_path_GENPNG+y}
11840 printf %s "(cached) " >&6
11844 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11851 case $as_dir in #(((
11854 *) as_dir=$as_dir/ ;;
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11858 ac_cv_path_GENPNG="$as_dir$ac_word$ac_exec_ext"
11859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11870 GENPNG=$ac_cv_path_GENPNG
11871 if test -n "$GENPNG"; then
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
11873 printf "%s\n" "$GENPNG" >&6; }
11875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 printf "%s\n" "no" >&6; }
11881 if test -z "$ac_cv_path_GENPNG"; then
11882 ac_pt_GENPNG=$GENPNG
11883 # Extract the first word of "genpng", so it can be a program name with args.
11884 set dummy genpng; ac_word=$2
11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 printf %s "checking for $ac_word... " >&6; }
11887 if test ${ac_cv_path_ac_pt_GENPNG+y}
11889 printf %s "(cached) " >&6
11891 e) case $ac_pt_GENPNG in
11893 ac_cv_path_ac_pt_GENPNG="$ac_pt_GENPNG" # Let the user override the test with a path.
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11900 case $as_dir in #(((
11903 *) as_dir=$as_dir/ ;;
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11907 ac_cv_path_ac_pt_GENPNG="$as_dir$ac_word$ac_exec_ext"
11908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11919 ac_pt_GENPNG=$ac_cv_path_ac_pt_GENPNG
11920 if test -n "$ac_pt_GENPNG"; then
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENPNG" >&5
11922 printf "%s\n" "$ac_pt_GENPNG" >&6; }
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 printf "%s\n" "no" >&6; }
11928 if test "x$ac_pt_GENPNG" = x; then
11931 case $cross_compiling:$ac_tool_warned in
11933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11935 ac_tool_warned=yes ;;
11937 GENPNG=$ac_pt_GENPNG
11940 GENPNG="$ac_cv_path_GENPNG"
11943 if test -n "$GENPNG"
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
11947 printf %s "checking whether $GENPNG has all required modules... " >&6; }
11948 if "$GENPNG" --help > /dev/null 2>&1
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11952 printf "%s\n" "ok" >&6; }
11953 GENHTML="$GENHTML --frames"
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
11958 printf "%s\n" "not supported" >&6; }
11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
11960 printf "%s\n" "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
11970 ################################################################################
11971 TESTSUITE_DATA='${datarootdir}/lvm2-testsuite'
11972 # double eval needed ${datarootdir} -> ${prefix}/share -> real path
11974 printf "%s\n" "#define TESTSUITE_DATA \"$(eval echo $(eval echo $TESTSUITE_DATA))\"" >>confdefs.h
11977 ################################################################################
11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
11979 printf %s "checking whether to enable valgrind awareness of pools... " >&6; }
11980 # Check whether --enable-valgrind_pool was given.
11981 if test ${enable_valgrind_pool+y}
11983 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
11985 e) VALGRIND_POOL="no" ;;
11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
11990 printf "%s\n" "$VALGRIND_POOL" >&6; }
11994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
11995 printf %s "checking for valgrind... " >&6; }
11997 if test -n "$VALGRIND_CFLAGS"; then
11998 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
11999 elif test -n "$PKG_CONFIG"; then
12000 if test -n "$PKG_CONFIG" && \
12001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
12002 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
12004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12005 test $ac_status = 0; }; then
12006 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev
/null
`
12007 test "x$?" != "x0" && pkg_failed=yes
12014 if test -n "$VALGRIND_LIBS"; then
12015 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
12016 elif test -n "$PKG_CONFIG"; then
12017 if test -n "$PKG_CONFIG" && \
12018 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
12019 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
12021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12022 test $ac_status = 0; }; then
12023 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev
/null
`
12024 test "x$?" != "x0" && pkg_failed=yes
12034 if test $pkg_failed = yes; then
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 printf "%s\n" "no" >&6; }
12038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12039 _pkg_short_errors_supported=yes
12041 _pkg_short_errors_supported=no
12043 if test $_pkg_short_errors_supported = yes; then
12044 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
12046 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
12048 # Put the nasty error message in config.log where it belongs
12049 echo "$VALGRIND_PKG_ERRORS" >&5
12052 if test "$VALGRIND_POOL" = "yes"
12054 as_fn_error $? "bailing out" "$LINENO" 5
12057 elif test $pkg_failed = untried; then
12058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 printf "%s\n" "no" >&6; }
12061 if test "$VALGRIND_POOL" = "yes"
12063 as_fn_error $? "bailing out" "$LINENO" 5
12067 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
12068 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 printf "%s\n" "yes" >&6; }
12071 HAVE_VALGRIND="yes"
12075 if test "$HAVE_VALGRIND" = "yes"
12079 printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h
12084 if test "$VALGRIND_POOL" = "yes"
12088 printf "%s\n" "#define VALGRIND_POOL 1" >>confdefs.h
12093 ################################################################################
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
12095 printf %s "checking whether to use device-mapper... " >&6; }
12096 # Check whether --enable-devmapper was given.
12097 if test ${enable_devmapper+y}
12099 enableval=$enable_devmapper; DEVMAPPER=$enableval
12102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
12103 printf "%s\n" "$DEVMAPPER" >&6; }
12105 if test "$DEVMAPPER" = "yes"
12109 printf "%s\n" "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
12114 ################################################################################
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmpolld" >&5
12116 printf %s "checking whether to build lvmpolld... " >&6; }
12117 # Check whether --enable-lvmpolld was given.
12118 if test ${enable_lvmpolld+y}
12120 enableval=$enable_lvmpolld; BUILD_LVMPOLLD=$enableval
12122 e) BUILD_LVMPOLLD="no" ;;
12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMPOLLD" >&5
12127 printf "%s\n" "$BUILD_LVMPOLLD" >&6; }
12129 ################################################################################
12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdsanlock" >&5
12133 printf %s "checking whether to build lvmlockdsanlock... " >&6; }
12134 # Check whether --enable-lvmlockd-sanlock was given.
12135 if test ${enable_lvmlockd_sanlock+y}
12137 enableval=$enable_lvmlockd_sanlock; BUILD_LOCKDSANLOCK=$enableval
12139 e) BUILD_LOCKDSANLOCK="no" ;;
12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDSANLOCK" >&5
12144 printf "%s\n" "$BUILD_LOCKDSANLOCK" >&6; }
12146 if test "$BUILD_LOCKDSANLOCK" = "yes"
12151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsanlock_client >= 3.7.0" >&5
12152 printf %s "checking for libsanlock_client >= 3.7.0... " >&6; }
12154 if test -n "$LIBSANLOCKCLIENT_CFLAGS"; then
12155 pkg_cv_LIBSANLOCKCLIENT_CFLAGS="$LIBSANLOCKCLIENT_CFLAGS"
12156 elif test -n "$PKG_CONFIG"; then
12157 if test -n "$PKG_CONFIG" && \
12158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5
12159 ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5
12161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12162 test $ac_status = 0; }; then
12163 pkg_cv_LIBSANLOCKCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libsanlock_client >= 3.7.0" 2>/dev
/null
`
12164 test "x$?" != "x0" && pkg_failed=yes
12171 if test -n "$LIBSANLOCKCLIENT_LIBS"; then
12172 pkg_cv_LIBSANLOCKCLIENT_LIBS="$LIBSANLOCKCLIENT_LIBS"
12173 elif test -n "$PKG_CONFIG"; then
12174 if test -n "$PKG_CONFIG" && \
12175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5
12176 ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5
12178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12179 test $ac_status = 0; }; then
12180 pkg_cv_LIBSANLOCKCLIENT_LIBS=`$PKG_CONFIG --libs "libsanlock_client >= 3.7.0" 2>/dev
/null
`
12181 test "x$?" != "x0" && pkg_failed=yes
12191 if test $pkg_failed = yes; then
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 printf "%s\n" "no" >&6; }
12195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12196 _pkg_short_errors_supported=yes
12198 _pkg_short_errors_supported=no
12200 if test $_pkg_short_errors_supported = yes; then
12201 LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1`
12203 LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1`
12205 # Put the nasty error message in config.log where it belongs
12206 echo "$LIBSANLOCKCLIENT_PKG_ERRORS" >&5
12208 as_fn_error $? "Package requirements (libsanlock_client >= 3.7.0) were not met:
12210 $LIBSANLOCKCLIENT_PKG_ERRORS
12212 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12213 installed software in a non-standard prefix.
12215 Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS
12216 and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config.
12217 See the pkg-config man page for more details." "$LINENO" 5
12218 elif test $pkg_failed = untried; then
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 printf "%s\n" "no" >&6; }
12221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12222 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12223 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12224 is in your PATH or set the PKG_CONFIG environment variable to the full
12225 path to pkg-config.
12227 Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS
12228 and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config.
12229 See the pkg-config man page for more details.
12231 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12232 See 'config.log' for more details" "$LINENO" 5; }
12234 LIBSANLOCKCLIENT_CFLAGS=$pkg_cv_LIBSANLOCKCLIENT_CFLAGS
12235 LIBSANLOCKCLIENT_LIBS=$pkg_cv_LIBSANLOCKCLIENT_LIBS
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237 printf "%s\n" "yes" >&6; }
12238 BUILD_LVMLOCKD="yes"
12241 printf "%s\n" "#define LOCKDSANLOCK_SUPPORT 1" >>confdefs.h
12246 ################################################################################
12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlm" >&5
12248 printf %s "checking whether to build lvmlockddlm... " >&6; }
12249 # Check whether --enable-lvmlockd-dlm was given.
12250 if test ${enable_lvmlockd_dlm+y}
12252 enableval=$enable_lvmlockd_dlm; BUILD_LOCKDDLM=$enableval
12254 e) BUILD_LOCKDDLM="no" ;;
12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM" >&5
12259 printf "%s\n" "$BUILD_LOCKDDLM" >&6; }
12261 if test "$BUILD_LOCKDDLM" = "yes"
12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlm_lt" >&5
12267 printf %s "checking for libdlm_lt... " >&6; }
12269 if test -n "$LIBDLM_CFLAGS"; then
12270 pkg_cv_LIBDLM_CFLAGS="$LIBDLM_CFLAGS"
12271 elif test -n "$PKG_CONFIG"; then
12272 if test -n "$PKG_CONFIG" && \
12273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5
12274 ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5
12276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12277 test $ac_status = 0; }; then
12278 pkg_cv_LIBDLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm_lt" 2>/dev
/null
`
12279 test "x$?" != "x0" && pkg_failed=yes
12286 if test -n "$LIBDLM_LIBS"; then
12287 pkg_cv_LIBDLM_LIBS="$LIBDLM_LIBS"
12288 elif test -n "$PKG_CONFIG"; then
12289 if test -n "$PKG_CONFIG" && \
12290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5
12291 ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5
12293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12294 test $ac_status = 0; }; then
12295 pkg_cv_LIBDLM_LIBS=`$PKG_CONFIG --libs "libdlm_lt" 2>/dev
/null
`
12296 test "x$?" != "x0" && pkg_failed=yes
12306 if test $pkg_failed = yes; then
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 printf "%s\n" "no" >&6; }
12310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12311 _pkg_short_errors_supported=yes
12313 _pkg_short_errors_supported=no
12315 if test $_pkg_short_errors_supported = yes; then
12316 LIBDLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlm_lt" 2>&1`
12318 LIBDLM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlm_lt" 2>&1`
12320 # Put the nasty error message in config.log where it belongs
12321 echo "$LIBDLM_PKG_ERRORS" >&5
12323 as_fn_error $? "Package requirements (libdlm_lt) were not met:
12327 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12328 installed software in a non-standard prefix.
12330 Alternatively, you may set the environment variables LIBDLM_CFLAGS
12331 and LIBDLM_LIBS to avoid the need to call pkg-config.
12332 See the pkg-config man page for more details." "$LINENO" 5
12333 elif test $pkg_failed = untried; then
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 printf "%s\n" "no" >&6; }
12336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12337 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12338 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12339 is in your PATH or set the PKG_CONFIG environment variable to the full
12340 path to pkg-config.
12342 Alternatively, you may set the environment variables LIBDLM_CFLAGS
12343 and LIBDLM_LIBS to avoid the need to call pkg-config.
12344 See the pkg-config man page for more details.
12346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12347 See 'config.log' for more details" "$LINENO" 5; }
12349 LIBDLM_CFLAGS=$pkg_cv_LIBDLM_CFLAGS
12350 LIBDLM_LIBS=$pkg_cv_LIBDLM_LIBS
12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352 printf "%s\n" "yes" >&6; }
12353 BUILD_LVMLOCKD="yes"
12356 printf "%s\n" "#define LOCKDDLM_SUPPORT 1" >>confdefs.h
12358 case "$LIBDLM_LIBS" in #(
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&5
12362 printf "%s\n" "replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&6; }
12363 LIBDLM_LIBS="${LIBDLM_LIBS%%ldlm*}ldlm_lt" ;; #(
12370 ################################################################################
12371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlmcontrol" >&5
12372 printf %s "checking whether to build lvmlockddlmcontrol... " >&6; }
12373 # Check whether --enable-lvmlockd-dlmcontrol was given.
12374 if test ${enable_lvmlockd_dlmcontrol+y}
12376 enableval=$enable_lvmlockd_dlmcontrol; BUILD_LOCKDDLM_CONTROL=$enableval
12378 e) BUILD_LOCKDDLM_CONTROL="no" ;;
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM_CONTROL" >&5
12383 printf "%s\n" "$BUILD_LOCKDDLM_CONTROL" >&6; }
12385 if test "$BUILD_LOCKDDLM_CONTROL" = "yes"
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlmcontrol >= 3.2" >&5
12391 printf %s "checking for libdlmcontrol >= 3.2... " >&6; }
12393 if test -n "$LIBDLMCONTROL_CFLAGS"; then
12394 pkg_cv_LIBDLMCONTROL_CFLAGS="$LIBDLMCONTROL_CFLAGS"
12395 elif test -n "$PKG_CONFIG"; then
12396 if test -n "$PKG_CONFIG" && \
12397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5
12398 ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5
12400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }; then
12402 pkg_cv_LIBDLMCONTROL_CFLAGS=`$PKG_CONFIG --cflags "libdlmcontrol >= 3.2" 2>/dev
/null
`
12403 test "x$?" != "x0" && pkg_failed=yes
12410 if test -n "$LIBDLMCONTROL_LIBS"; then
12411 pkg_cv_LIBDLMCONTROL_LIBS="$LIBDLMCONTROL_LIBS"
12412 elif test -n "$PKG_CONFIG"; then
12413 if test -n "$PKG_CONFIG" && \
12414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5
12415 ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5
12417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12418 test $ac_status = 0; }; then
12419 pkg_cv_LIBDLMCONTROL_LIBS=`$PKG_CONFIG --libs "libdlmcontrol >= 3.2" 2>/dev
/null
`
12420 test "x$?" != "x0" && pkg_failed=yes
12430 if test $pkg_failed = yes; then
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 printf "%s\n" "no" >&6; }
12434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12435 _pkg_short_errors_supported=yes
12437 _pkg_short_errors_supported=no
12439 if test $_pkg_short_errors_supported = yes; then
12440 LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1`
12442 LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1`
12444 # Put the nasty error message in config.log where it belongs
12445 echo "$LIBDLMCONTROL_PKG_ERRORS" >&5
12447 as_fn_error $? "Package requirements (libdlmcontrol >= 3.2) were not met:
12449 $LIBDLMCONTROL_PKG_ERRORS
12451 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12452 installed software in a non-standard prefix.
12454 Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS
12455 and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config.
12456 See the pkg-config man page for more details." "$LINENO" 5
12457 elif test $pkg_failed = untried; then
12458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 printf "%s\n" "no" >&6; }
12460 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12461 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12462 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12463 is in your PATH or set the PKG_CONFIG environment variable to the full
12464 path to pkg-config.
12466 Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS
12467 and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config.
12468 See the pkg-config man page for more details.
12470 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12471 See 'config.log' for more details" "$LINENO" 5; }
12473 LIBDLMCONTROL_CFLAGS=$pkg_cv_LIBDLMCONTROL_CFLAGS
12474 LIBDLMCONTROL_LIBS=$pkg_cv_LIBDLMCONTROL_LIBS
12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476 printf "%s\n" "yes" >&6; }
12477 BUILD_LVMLOCKD="yes"
12480 printf "%s\n" "#define LOCKDDLM_CONTROL_SUPPORT 1" >>confdefs.h
12485 ################################################################################
12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdidm" >&5
12487 printf %s "checking whether to build lvmlockdidm... " >&6; }
12488 # Check whether --enable-lvmlockd-idm was given.
12489 if test ${enable_lvmlockd_idm+y}
12491 enableval=$enable_lvmlockd_idm; BUILD_LOCKDIDM=$enableval
12493 e) BUILD_LOCKDIDM="no" ;;
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDIDM" >&5
12498 printf "%s\n" "$BUILD_LOCKDIDM" >&6; }
12500 if test "$BUILD_LOCKDIDM" = "yes"
12503 if test -n "$PKG_CONFIG" && \
12504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
12505 ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
12507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508 test $ac_status = 0; }; then
12512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseagate_ilm >= 0.1.0" >&5
12513 printf %s "checking for libseagate_ilm >= 0.1.0... " >&6; }
12515 if test -n "$LIBSEAGATEILM_CFLAGS"; then
12516 pkg_cv_LIBSEAGATEILM_CFLAGS="$LIBSEAGATEILM_CFLAGS"
12517 elif test -n "$PKG_CONFIG"; then
12518 if test -n "$PKG_CONFIG" && \
12519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5
12520 ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5
12522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523 test $ac_status = 0; }; then
12524 pkg_cv_LIBSEAGATEILM_CFLAGS=`$PKG_CONFIG --cflags "libseagate_ilm >= 0.1.0" 2>/dev
/null
`
12525 test "x$?" != "x0" && pkg_failed=yes
12532 if test -n "$LIBSEAGATEILM_LIBS"; then
12533 pkg_cv_LIBSEAGATEILM_LIBS="$LIBSEAGATEILM_LIBS"
12534 elif test -n "$PKG_CONFIG"; then
12535 if test -n "$PKG_CONFIG" && \
12536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5
12537 ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5
12539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12540 test $ac_status = 0; }; then
12541 pkg_cv_LIBSEAGATEILM_LIBS=`$PKG_CONFIG --libs "libseagate_ilm >= 0.1.0" 2>/dev
/null
`
12542 test "x$?" != "x0" && pkg_failed=yes
12552 if test $pkg_failed = yes; then
12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 printf "%s\n" "no" >&6; }
12556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12557 _pkg_short_errors_supported=yes
12559 _pkg_short_errors_supported=no
12561 if test $_pkg_short_errors_supported = yes; then
12562 LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1`
12564 LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1`
12566 # Put the nasty error message in config.log where it belongs
12567 echo "$LIBSEAGATEILM_PKG_ERRORS" >&5
12569 as_fn_error $? "Package requirements (libseagate_ilm >= 0.1.0) were not met:
12571 $LIBSEAGATEILM_PKG_ERRORS
12573 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12574 installed software in a non-standard prefix.
12576 Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS
12577 and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config.
12578 See the pkg-config man page for more details." "$LINENO" 5
12579 elif test $pkg_failed = untried; then
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 printf "%s\n" "no" >&6; }
12582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12583 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12584 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12585 is in your PATH or set the PKG_CONFIG environment variable to the full
12586 path to pkg-config.
12588 Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS
12589 and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config.
12590 See the pkg-config man page for more details.
12592 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12593 See 'config.log' for more details" "$LINENO" 5; }
12595 LIBSEAGATEILM_CFLAGS=$pkg_cv_LIBSEAGATEILM_CFLAGS
12596 LIBSEAGATEILM_LIBS=$pkg_cv_LIBSEAGATEILM_LIBS
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 printf "%s\n" "yes" >&6; }
12599 BUILD_LVMLOCKD="yes"
12602 printf "%s\n" "#define LOCKDIDM_SUPPORT 1" >>confdefs.h
12604 if test -z "$LIBSEAGATEILM_LIBS"
12606 LIBSEAGATEILM_LIBS="-lseagate_ilm"
12615 ################################################################################
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockd" >&5
12617 printf %s "checking whether to build lvmlockd... " >&6; }
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMLOCKD" >&5
12619 printf "%s\n" "$BUILD_LVMLOCKD" >&6; }
12621 DEFAULT_USE_LVMLOCKD=0
12622 if test "$BUILD_LVMLOCKD" = "yes"
12625 if test "$LVMPOLLD" = "no"
12627 as_fn_error $? "cannot build lvmlockd with --disable-lvmpolld." "$LINENO" 5
12629 if test "$BUILD_LVMPOLLD" = "no"
12631 BUILD_LVMPOLLD=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabling lvmpolld - required by lvmlockd." >&5
12632 printf "%s\n" "$as_me: WARNING: Enabling lvmpolld - required by lvmlockd." >&2;}
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmlockd" >&5
12635 printf %s "checking defaults for use_lvmlockd... " >&6; }
12636 # Check whether --enable-use_lvmlockd was given.
12637 if test ${enable_use_lvmlockd+y}
12639 enableval=$enable_use_lvmlockd; use_lvmlockd=$enableval
12641 e) use_lvmlockd="yes" ;;
12645 if test "$use_lvmlockd" = "yes"
12647 DEFAULT_USE_LVMLOCKD=1
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMLOCKD" >&5
12650 printf "%s\n" "$DEFAULT_USE_LVMLOCKD" >&6; }
12652 printf "%s\n" "#define LVMLOCKD_SUPPORT 1" >>confdefs.h
12656 # Check whether --with-lvmlockd-pidfile was given.
12657 if test ${with_lvmlockd_pidfile+y}
12659 withval=$with_lvmlockd_pidfile; LVMLOCKD_PIDFILE=$withval
12661 e) LVMLOCKD_PIDFILE="$DEFAULT_PID_DIR/lvmlockd.pid" ;;
12666 printf "%s\n" "#define LVMLOCKD_PIDFILE \"$LVMLOCKD_PIDFILE\"" >>confdefs.h
12671 printf "%s\n" "#define DEFAULT_USE_LVMLOCKD $DEFAULT_USE_LVMLOCKD" >>confdefs.h
12674 ################################################################################
12675 DEFAULT_USE_LVMPOLLD=0
12676 if test "$BUILD_LVMPOLLD" = "yes"
12679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmpolld" >&5
12680 printf %s "checking defaults for use_lvmpolld... " >&6; }
12681 # Check whether --enable-use_lvmpolld was given.
12682 if test ${enable_use_lvmpolld+y}
12684 enableval=$enable_use_lvmpolld; use_lvmpolld=$enableval
12686 e) use_lvmpolld="yes" ;;
12690 if test "$use_lvmpolld" = "yes"
12692 DEFAULT_USE_LVMPOLLD=1
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMPOLLD" >&5
12695 printf "%s\n" "$DEFAULT_USE_LVMPOLLD" >&6; }
12697 printf "%s\n" "#define LVMPOLLD_SUPPORT 1" >>confdefs.h
12701 # Check whether --with-lvmpolld-pidfile was given.
12702 if test ${with_lvmpolld_pidfile+y}
12704 withval=$with_lvmpolld_pidfile; LVMPOLLD_PIDFILE=$withval
12706 e) LVMPOLLD_PIDFILE="$DEFAULT_PID_DIR/lvmpolld.pid" ;;
12711 printf "%s\n" "#define LVMPOLLD_PIDFILE \"$LVMPOLLD_PIDFILE\"" >>confdefs.h
12716 printf "%s\n" "#define DEFAULT_USE_LVMPOLLD $DEFAULT_USE_LVMPOLLD" >>confdefs.h
12720 SYSTEMD_MIN_VERSION=0
12721 NOTIFYDBUS_SUPPORT="no"
12722 SYSTEMD_JOURNAL_SUPPORT="no"
12723 APP_MACHINEID_SUPPORT="no"
12724 if test "$with_systemd" = "yes"
12726 if test -n "$PKG_CONFIG" && \
12727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 221\""; } >&5
12728 ($PKG_CONFIG --exists --print-errors "systemd >= 221") 2>&5
12730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731 test $ac_status = 0; }; then
12732 SYSTEMD_MIN_VERSION=221 NOTIFYDBUS_SUPPORT="maybe" SYSTEMD_JOURNAL_SUPPORT="maybe"
12734 if test -n "$PKG_CONFIG" && \
12735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 234\""; } >&5
12736 ($PKG_CONFIG --exists --print-errors "systemd >= 234") 2>&5
12738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739 test $ac_status = 0; }; then
12740 SYSTEMD_MIN_VERSION=234 APP_MACHINEID_SUPPORT="maybe"
12744 ################################################################################
12745 if test "$SYSTEMD_JOURNAL_SUPPORT" != "no"
12747 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
12748 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes
12750 SYSTEMD_JOURNAL_SUPPORT="yes"
12752 e) SYSTEMD_JOURNAL_SUPPORT="no" ;;
12757 # Check whether --enable-systemd-journal was given.
12758 if test ${enable_systemd_journal+y}
12760 enableval=$enable_systemd_journal; if test "$enableval" = "yes" && test "$SYSTEMD_JOURNAL_SUPPORT" = "no"
12762 as_fn_error $? "--enable-systemd-journal requires systemd/sd-journal.h and systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5
12764 SYSTEMD_JOURNAL_SUPPORT=$enableval
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to log to systemd journal" >&5
12768 printf %s "checking whether to log to systemd journal... " >&6; }
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_JOURNAL_SUPPORT" >&5
12770 printf "%s\n" "$SYSTEMD_JOURNAL_SUPPORT" >&6; }
12772 if test "$SYSTEMD_JOURNAL_SUPPORT" = "yes"
12775 printf "%s\n" "#define SYSTEMD_JOURNAL_SUPPORT 1" >>confdefs.h
12779 ################################################################################
12780 if test "$APP_MACHINEID_SUPPORT" != "no"
12782 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default"
12783 if test "x$ac_cv_header_systemd_sd_id128_h" = xyes
12785 APP_MACHINEID_SUPPORT="yes"
12787 e) APP_MACHINEID_SUPPORT="no" ;;
12792 # Check whether --enable-app-machineid was given.
12793 if test ${enable_app_machineid+y}
12795 enableval=$enable_app_machineid; if test "$enableval" = "yes" && test "$APP_MACHINEID_SUPPORT" = "no"
12797 as_fn_error $? "--enable-app-machineid requires systemd/sd-id128.h and systemd >= 234. (--with-systemd=$with_systemd)" "$LINENO" 5
12799 APP_MACHINEID_SUPPORT=$enableval
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support systemd appmachineid" >&5
12803 printf %s "checking whether to support systemd appmachineid... " >&6; }
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5
12805 printf "%s\n" "$APP_MACHINEID_SUPPORT" >&6; }
12807 if test "$APP_MACHINEID_SUPPORT" = "yes"
12810 printf "%s\n" "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h
12814 ################################################################################
12816 # Check whether --with-systemd-run was given.
12817 if test ${with_systemd_run+y}
12819 withval=$with_systemd_run; SYSTEMD_RUN_CMD=$withval
12821 e) SYSTEMD_RUN_CMD="autodetect" ;;
12825 if test "$SYSTEMD_RUN_CMD" = "autodetect"
12827 if test -n "$ac_tool_prefix"; then
12828 # Extract the first word of "${ac_tool_prefix}systemd-run", so it can be a program name with args.
12829 set dummy ${ac_tool_prefix}systemd-run; ac_word=$2
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 printf %s "checking for $ac_word... " >&6; }
12832 if test ${ac_cv_path_SYSTEMD_RUN_CMD+y}
12834 printf %s "(cached) " >&6
12836 e) case $SYSTEMD_RUN_CMD in
12838 ac_cv_path_SYSTEMD_RUN_CMD="$SYSTEMD_RUN_CMD" # Let the user override the test with a path.
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12845 case $as_dir in #(((
12848 *) as_dir=$as_dir/ ;;
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12852 ac_cv_path_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext"
12853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12864 SYSTEMD_RUN_CMD=$ac_cv_path_SYSTEMD_RUN_CMD
12865 if test -n "$SYSTEMD_RUN_CMD"; then
12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5
12867 printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; }
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 printf "%s\n" "no" >&6; }
12875 if test -z "$ac_cv_path_SYSTEMD_RUN_CMD"; then
12876 ac_pt_SYSTEMD_RUN_CMD=$SYSTEMD_RUN_CMD
12877 # Extract the first word of "systemd-run", so it can be a program name with args.
12878 set dummy systemd-run; ac_word=$2
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880 printf %s "checking for $ac_word... " >&6; }
12881 if test ${ac_cv_path_ac_pt_SYSTEMD_RUN_CMD+y}
12883 printf %s "(cached) " >&6
12885 e) case $ac_pt_SYSTEMD_RUN_CMD in
12887 ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$ac_pt_SYSTEMD_RUN_CMD" # Let the user override the test with a path.
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12894 case $as_dir in #(((
12897 *) as_dir=$as_dir/ ;;
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12901 ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext"
12902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12913 ac_pt_SYSTEMD_RUN_CMD=$ac_cv_path_ac_pt_SYSTEMD_RUN_CMD
12914 if test -n "$ac_pt_SYSTEMD_RUN_CMD"; then
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SYSTEMD_RUN_CMD" >&5
12916 printf "%s\n" "$ac_pt_SYSTEMD_RUN_CMD" >&6; }
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 printf "%s\n" "no" >&6; }
12922 if test "x$ac_pt_SYSTEMD_RUN_CMD" = x; then
12925 case $cross_compiling:$ac_tool_warned in
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12929 ac_tool_warned=yes ;;
12931 SYSTEMD_RUN_CMD=$ac_pt_SYSTEMD_RUN_CMD
12934 SYSTEMD_RUN_CMD="$ac_cv_path_SYSTEMD_RUN_CMD"
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for app running udev background service" >&5
12939 printf %s "checking for app running udev background service... " >&6; }
12940 if test -z "$SYSTEMD_RUN_CMD"
12942 SYSTEMD_RUN_CMD="/usr/bin/systemd-run"
12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5
12945 printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; }
12947 ################################################################################
12949 # TODO: possibly detect right version of blkid with BLKID_SUBLKS_FSINFO support
12950 # so lvresize can check detected flag here
12952 DEFAULT_USE_BLKID_WIPING=0
12953 # Check whether --enable-blkid_wiping was given.
12954 if test ${enable_blkid_wiping+y}
12956 enableval=$enable_blkid_wiping; BLKID_WIPING=$enableval
12958 e) if test "$with_blkid" = "yes"
12960 BLKID_WIPING="maybe"
12962 e) BLKID_WIPING="no" ;;
12969 if test "$BLKID_WIPING" != "no"
12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.24" >&5
12975 printf %s "checking for blkid >= 2.24... " >&6; }
12977 if test -n "$BLKID_CFLAGS"; then
12978 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
12979 elif test -n "$PKG_CONFIG"; then
12980 if test -n "$PKG_CONFIG" && \
12981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
12982 ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
12984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12985 test $ac_status = 0; }; then
12986 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev
/null
`
12987 test "x$?" != "x0" && pkg_failed=yes
12994 if test -n "$BLKID_LIBS"; then
12995 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
12996 elif test -n "$PKG_CONFIG"; then
12997 if test -n "$PKG_CONFIG" && \
12998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
12999 ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
13001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13002 test $ac_status = 0; }; then
13003 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev
/null
`
13004 test "x$?" != "x0" && pkg_failed=yes
13014 if test $pkg_failed = yes; then
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 printf "%s\n" "no" >&6; }
13018 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13019 _pkg_short_errors_supported=yes
13021 _pkg_short_errors_supported=no
13023 if test $_pkg_short_errors_supported = yes; then
13024 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
13026 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
13028 # Put the nasty error message in config.log where it belongs
13029 echo "$BLKID_PKG_ERRORS" >&5
13031 if test "$BLKID_WIPING" = "yes"
13033 BLKID_WIPING="error"
13035 e) BLKID_WIPING="no" ;;
13038 elif test $pkg_failed = untried; then
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 printf "%s\n" "no" >&6; }
13041 if test "$BLKID_WIPING" = "yes"
13043 BLKID_WIPING="error"
13045 e) BLKID_WIPING="no" ;;
13049 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
13050 BLKID_LIBS=$pkg_cv_BLKID_LIBS
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 printf "%s\n" "yes" >&6; }
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid.h defines BLKID_SUBLKS_FSINFO." >&5
13055 printf %s "checking for blkid.h defines BLKID_SUBLKS_FSINFO.... " >&6; }
13056 if test ${ac_cv_have_blkid_sublks_fsinfo+y}
13058 printf %s "(cached) " >&6
13060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #include <blkid/blkid.h>
13063 #ifndef BLKID_SUBLKS_FSINFO
13064 #error BLKID_SUBLKS_FSINFO is missing
13075 if ac_fn_c_try_compile "$LINENO"
13077 ac_cv_have_blkid_sublks_fsinfo="yes"
13079 e) ac_cv_have_blkid_sublks_fsinfo="no" ;;
13082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkid_sublks_fsinfo" >&5
13086 printf "%s\n" "$ac_cv_have_blkid_sublks_fsinfo" >&6; }
13088 if test $ac_cv_have_blkid_sublks_fsinfo = yes
13091 printf "%s\n" "#define HAVE_BLKID_SUBLKS_FSINFO 1" >>confdefs.h
13095 if test "$with_blkid" = "no"
13097 BLKID_WIPING="error"
13102 DEFAULT_USE_BLKID_WIPING=1
13103 # pkg_config --static does not really work ATM...
13104 BLKID_STATIC_LIBS=$("$PKG_CONFIG" --static --libs blkid)
13106 printf "%s\n" "#define BLKID_WIPING_SUPPORT 1" >>confdefs.h
13116 if test "$BLKID_WIPING" = "error"
13118 as_fn_error $? "--enable-blkid_wiping requires blkid library >= 2.24. (--with-blkid=$with_blkid)" "$LINENO" 5
13121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libblkid detection of signatures when wiping" >&5
13122 printf %s "checking whether to enable libblkid detection of signatures when wiping... " >&6; }
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKID_WIPING" >&5
13124 printf "%s\n" "$BLKID_WIPING" >&6; }
13126 printf "%s\n" "#define DEFAULT_USE_BLKID_WIPING $DEFAULT_USE_BLKID_WIPING" >>confdefs.h
13129 ################################################################################
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronization with udev processing" >&5
13131 printf %s "checking whether to enable synchronization with udev processing... " >&6; }
13132 # Check whether --enable-udev_sync was given.
13133 if test ${enable_udev_sync+y}
13135 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
13137 e) UDEV_SYNC="no" ;;
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
13142 printf "%s\n" "$UDEV_SYNC" >&6; }
13143 if test "$UDEV_SYNC" = "yes" && test "$with_udev" = "no"
13145 as_fn_error $? "--enable-udev_sync requires udev >= 143. (--with-udev=$with_udev)" "$LINENO" 5
13148 if test "$UDEV_SYNC" = "yes"
13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 143" >&5
13154 printf %s "checking for libudev >= 143... " >&6; }
13156 if test -n "$UDEV_CFLAGS"; then
13157 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
13158 elif test -n "$PKG_CONFIG"; then
13159 if test -n "$PKG_CONFIG" && \
13160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
13161 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; }; then
13165 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev
/null
`
13166 test "x$?" != "x0" && pkg_failed=yes
13173 if test -n "$UDEV_LIBS"; then
13174 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
13175 elif test -n "$PKG_CONFIG"; then
13176 if test -n "$PKG_CONFIG" && \
13177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
13178 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13181 test $ac_status = 0; }; then
13182 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev
/null
`
13183 test "x$?" != "x0" && pkg_failed=yes
13193 if test $pkg_failed = yes; then
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 printf "%s\n" "no" >&6; }
13197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13198 _pkg_short_errors_supported=yes
13200 _pkg_short_errors_supported=no
13202 if test $_pkg_short_errors_supported = yes; then
13203 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
13205 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
13207 # Put the nasty error message in config.log where it belongs
13208 echo "$UDEV_PKG_ERRORS" >&5
13210 as_fn_error $? "Package requirements (libudev >= 143) were not met:
13214 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13215 installed software in a non-standard prefix.
13217 Alternatively, you may set the environment variables UDEV_CFLAGS
13218 and UDEV_LIBS to avoid the need to call pkg-config.
13219 See the pkg-config man page for more details." "$LINENO" 5
13220 elif test $pkg_failed = untried; then
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 printf "%s\n" "no" >&6; }
13223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13224 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13225 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13226 is in your PATH or set the PKG_CONFIG environment variable to the full
13227 path to pkg-config.
13229 Alternatively, you may set the environment variables UDEV_CFLAGS
13230 and UDEV_LIBS to avoid the need to call pkg-config.
13231 See the pkg-config man page for more details.
13233 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13234 See 'config.log' for more details" "$LINENO" 5; }
13236 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
13237 UDEV_LIBS=$pkg_cv_UDEV_LIBS
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13239 printf "%s\n" "yes" >&6; }
13242 UDEV_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libudev)
13244 printf "%s\n" "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_device_get_is_initialized in -ludev" >&5
13248 printf %s "checking for udev_device_get_is_initialized in -ludev... " >&6; }
13249 if test ${ac_cv_lib_udev_udev_device_get_is_initialized+y}
13251 printf %s "(cached) " >&6
13253 e) ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-ludev $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply.
13261 The 'extern "C"' is for builds by C++ compilers;
13262 although this is not generally supported in C code supporting it here
13263 has little cost and some practical benefit (sr 110532). */
13267 char udev_device_get_is_initialized (void);
13271 return udev_device_get_is_initialized ();
13276 if ac_fn_c_try_link "$LINENO"
13278 ac_cv_lib_udev_udev_device_get_is_initialized=yes
13280 e) ac_cv_lib_udev_udev_device_get_is_initialized=no ;;
13283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13284 conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS ;;
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_get_is_initialized" >&5
13289 printf "%s\n" "$ac_cv_lib_udev_udev_device_get_is_initialized" >&6; }
13290 if test "x$ac_cv_lib_udev_udev_device_get_is_initialized" = xyes
13293 printf "%s\n" "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
13297 LIBS=$ac_check_lib_save_LIBS
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronization" >&5
13302 printf %s "checking whether to enable installation of udev rules required for synchronization... " >&6; }
13303 # Check whether --enable-udev_rules was given.
13304 if test ${enable_udev_rules+y}
13306 enableval=$enable_udev_rules; UDEV_RULES=$enableval
13308 e) UDEV_RULES=$UDEV_SYNC ;;
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
13313 printf "%s\n" "$UDEV_RULES" >&6; }
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
13316 printf %s "checking whether to enable executable path detection in udev rules... " >&6; }
13317 # Check whether --enable-udev_rule_exec_detection was given.
13318 if test ${enable_udev_rule_exec_detection+y}
13320 enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval
13322 e) UDEV_RULE_EXEC_DETECTION="no" ;;
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
13327 printf "%s\n" "$UDEV_RULE_EXEC_DETECTION" >&6; }
13329 if test "$UDEV_RULE" != "no"
13332 if test -n "$PKG_CONFIG" && \
13333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 176\""; } >&5
13334 ($PKG_CONFIG --exists --print-errors "libudev >= 176") 2>&5
13336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; then
13339 UDEV_HAS_BUILTIN_BLKID="yes"
13343 UDEV_HAS_BUILTIN_BLKID="no"
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
13347 printf %s "checking whether udev supports built-in blkid... " >&6; }
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
13349 printf "%s\n" "$UDEV_HAS_BUILTIN_BLKID" >&6; }
13353 ################################################################################
13354 # Check whether --enable-units-compat was given.
13355 if test ${enable_units_compat+y}
13357 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
13359 e) UNITS_COMPAT="no" ;;
13364 if test "$UNITS_COMPAT" = "yes"
13368 printf "%s\n" "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
13373 ################################################################################
13374 # Check whether --enable-ioctl was given.
13375 if test ${enable_ioctl+y}
13377 enableval=$enable_ioctl; DM_IOCTLS=$enableval
13380 if test "$DM_IOCTLS" = "yes"
13383 printf "%s\n" "#define DM_IOCTLS 1" >>confdefs.h
13387 ################################################################################
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
13389 printf %s "checking whether to enable O_DIRECT... " >&6; }
13390 # Check whether --enable-o_direct was given.
13391 if test ${enable_o_direct+y}
13393 enableval=$enable_o_direct; ODIRECT=$enableval
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
13397 printf "%s\n" "$ODIRECT" >&6; }
13399 if test "$ODIRECT" = "yes"
13403 printf "%s\n" "#define O_DIRECT_SUPPORT 1" >>confdefs.h
13408 ################################################################################
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include Python D-Bus support" >&5
13410 printf %s "checking whether to include Python D-Bus support... " >&6; }
13411 # Check whether --enable-dbus-service was given.
13412 if test ${enable_dbus_service+y}
13414 enableval=$enable_dbus_service; BUILD_LVMDBUSD=$enableval
13416 e) BUILD_LVMDBUSD="no" ;;
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMDBUSD" >&5
13421 printf "%s\n" "$BUILD_LVMDBUSD" >&6; }
13423 ################################################################################
13424 # Check whether --enable-notify-dbus was given.
13425 if test ${enable_notify_dbus+y}
13427 enableval=$enable_notify_dbus; NOTIFYDBUS_SUPPORT=$enableval
13431 if test "$NOTIFYDBUS_SUPPORT" = "maybe"
13433 if test "$BUILD_LVMDBUSD" = "yes"
13435 NOTIFYDBUS_SUPPORT="yes"
13437 e) NOTIFYDBUS_SUPPORT="no" ;;
13442 if test "$NOTIFYDBUS_SUPPORT" = "yes"
13444 if test "$SYSTEMD_MIN_VERSION" -lt 221
13446 as_fn_error $? "--enable-notify-dbus requires systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5
13449 printf "%s\n" "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h
13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5
13454 printf %s "checking whether to build notifydbus... " >&6; }
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5
13456 printf "%s\n" "$NOTIFYDBUS_SUPPORT" >&6; }
13458 ################################################################################
13459 if test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes"
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
13465 printf %s "checking for libsystemd... " >&6; }
13467 if test -n "$LIBSYSTEMD_CFLAGS"; then
13468 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
13469 elif test -n "$PKG_CONFIG"; then
13470 if test -n "$PKG_CONFIG" && \
13471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13472 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }; then
13476 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev
/null
`
13477 test "x$?" != "x0" && pkg_failed=yes
13484 if test -n "$LIBSYSTEMD_LIBS"; then
13485 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
13486 elif test -n "$PKG_CONFIG"; then
13487 if test -n "$PKG_CONFIG" && \
13488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13489 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13492 test $ac_status = 0; }; then
13493 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev
/null
`
13494 test "x$?" != "x0" && pkg_failed=yes
13504 if test $pkg_failed = yes; then
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 printf "%s\n" "no" >&6; }
13508 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13509 _pkg_short_errors_supported=yes
13511 _pkg_short_errors_supported=no
13513 if test $_pkg_short_errors_supported = yes; then
13514 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
13516 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
13518 # Put the nasty error message in config.log where it belongs
13519 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
13521 as_fn_error $? "Package requirements (libsystemd) were not met:
13523 $LIBSYSTEMD_PKG_ERRORS
13525 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13526 installed software in a non-standard prefix.
13528 Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13529 and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13530 See the pkg-config man page for more details." "$LINENO" 5
13531 elif test $pkg_failed = untried; then
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 printf "%s\n" "no" >&6; }
13534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13535 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13536 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13537 is in your PATH or set the PKG_CONFIG environment variable to the full
13538 path to pkg-config.
13540 Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13541 and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13542 See the pkg-config man page for more details.
13544 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13545 See 'config.log' for more details" "$LINENO" 5; }
13547 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
13548 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13550 printf "%s\n" "yes" >&6; }
13556 ################################################################################
13558 if test "$BUILD_LVMDBUSD" = "yes"
13561 unset am_cv_pathless_PYTHON ac_cv_path_PYTHON am_cv_python_platform
13562 unset am_cv_python_pythondir am_cv_python_version am_cv_python_pyexecdir
13563 unset ac_cv_path_PYTHON_CONFIG ac_cv_path_ac_pt_PYTHON_CONFIG
13571 if test -n "$PYTHON"; then
13572 # If the user set $PYTHON, use it and don't search something else.
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
13574 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
13576 # split strings by '.' and convert to numeric. Append some zeros
13577 # because we need at least 4 digits for the hex conversion.
13578 # map returns an iterator in Python 3.0 and a list in 2.x
13579 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13581 # xrange is not present in Python 3.0 and range returns an iterator
13582 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13583 sys.exit(sys.hexversion < minverhex)"
13584 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13585 ($PYTHON -c "$prog") >&5 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 printf "%s\n" "yes" >&6; }
13593 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 printf "%s\n" "no" >&6; }
13595 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
13598 am_display_PYTHON=$PYTHON
13600 # Otherwise, try each interpreter until we find one that satisfies
13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
13603 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
13604 if test ${am_cv_pathless_PYTHON+y}
13606 printf %s "(cached) " >&6
13609 for am_cv_pathless_PYTHON in python3 python2 python python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
13610 test "$am_cv_pathless_PYTHON" = none && break
13612 # split strings by '.' and convert to numeric. Append some zeros
13613 # because we need at least 4 digits for the hex conversion.
13614 # map returns an iterator in Python 3.0 and a list in 2.x
13615 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13617 # xrange is not present in Python 3.0 and range returns an iterator
13618 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13619 sys.exit(sys.hexversion < minverhex)"
13620 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13621 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }
13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13632 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
13633 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13634 if test "$am_cv_pathless_PYTHON" = none; then
13637 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13638 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640 printf %s "checking for $ac_word... " >&6; }
13641 if test ${ac_cv_path_PYTHON+y}
13643 printf %s "(cached) " >&6
13647 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13654 case $as_dir in #(((
13657 *) as_dir=$as_dir/ ;;
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13661 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
13662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13673 PYTHON=$ac_cv_path_PYTHON
13674 if test -n "$PYTHON"; then
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13676 printf "%s\n" "$PYTHON" >&6; }
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 printf "%s\n" "no" >&6; }
13684 am_display_PYTHON=$am_cv_pathless_PYTHON
13688 if test "$PYTHON" = :; then
13689 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13693 printf %s "checking for $am_display_PYTHON version... " >&6; }
13694 if test ${am_cv_python_version+y}
13696 printf %s "(cached) " >&6
13698 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13702 printf "%s\n" "$am_cv_python_version" >&6; }
13703 PYTHON_VERSION=$am_cv_python_version
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13707 printf %s "checking for $am_display_PYTHON platform... " >&6; }
13708 if test ${am_cv_python_platform+y}
13710 printf %s "(cached) " >&6
13712 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13716 printf "%s\n" "$am_cv_python_platform" >&6; }
13717 PYTHON_PLATFORM=$am_cv_python_platform
13720 if test "x$prefix" = xNONE; then
13721 am__usable_prefix=$ac_default_prefix
13723 am__usable_prefix=$prefix
13726 # Allow user to request using sys.* values from Python,
13727 # instead of the GNU $prefix values.
13729 # Check whether --with-python-sys-prefix was given.
13730 if test ${with_python_sys_prefix+y}
13732 withval=$with_python_sys_prefix; am_use_python_sys=:
13734 e) am_use_python_sys=false ;;
13739 # Allow user to override whatever the default Python prefix is.
13741 # Check whether --with-python_prefix was given.
13742 if test ${with_python_prefix+y}
13744 withval=$with_python_prefix; am_python_prefix_subst=$withval
13745 am_cv_python_prefix=$withval
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
13747 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
13749 printf "%s\n" "$am_cv_python_prefix" >&6; }
13752 if $am_use_python_sys; then
13753 # using python sys.prefix value, not GNU
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
13755 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
13756 if test ${am_cv_python_prefix+y}
13758 printf %s "(cached) " >&6
13760 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
13764 printf "%s\n" "$am_cv_python_prefix" >&6; }
13766 case $am_cv_python_prefix in
13767 $am__usable_prefix*)
13768 am__strip_prefix=`echo "$am__usable_prefix" |
sed 's|.|.|g'`
13769 am_python_prefix_subst=`echo "$am_cv_python_prefix" |
sed "s,^$am__strip_prefix,\\${prefix},"`
13772 am_python_prefix_subst=$am_cv_python_prefix
13775 else # using GNU prefix value, not python sys.prefix
13776 am_python_prefix_subst='${prefix}'
13777 am_python_prefix=$am_python_prefix_subst
13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
13779 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
13781 printf "%s\n" "$am_python_prefix" >&6; }
13786 # Substituting python_prefix_subst value.
13787 PYTHON_PREFIX=$am_python_prefix_subst
13790 # emacs-page Now do it all over again for Python exec_prefix, but with yet
13791 # another conditional: fall back to regular prefix if that was specified.
13793 # Check whether --with-python_exec_prefix was given.
13794 if test ${with_python_exec_prefix+y}
13796 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
13797 am_cv_python_exec_prefix=$withval
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
13799 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13801 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
13804 # no explicit --with-python_exec_prefix, but if
13805 # --with-python_prefix was given, use its value for python_exec_prefix too.
13806 if test -n "$with_python_prefix"
13808 am_python_exec_prefix_subst=$with_python_prefix
13809 am_cv_python_exec_prefix=$with_python_prefix
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
13811 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13813 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
13816 # Set am__usable_exec_prefix whether using GNU or Python values,
13817 # since we use that variable for pyexecdir.
13818 if test "x$exec_prefix" = xNONE; then
13819 am__usable_exec_prefix=$am__usable_prefix
13821 am__usable_exec_prefix=$exec_prefix
13824 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
13826 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
13827 if test ${am_cv_python_exec_prefix+y}
13829 printf %s "(cached) " >&6
13831 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13835 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
13836 case $am_cv_python_exec_prefix in
13837 $am__usable_exec_prefix*)
13838 am__strip_prefix=`echo "$am__usable_exec_prefix" |
sed 's|.|.|g'`
13839 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" |
sed "s,^$am__strip_prefix,\\${exec_prefix},"`
13842 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
13845 else # using GNU $exec_prefix, not python sys.exec_prefix
13846 am_python_exec_prefix_subst='${exec_prefix}'
13847 am_python_exec_prefix=$am_python_exec_prefix_subst
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
13849 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
13851 printf "%s\n" "$am_python_exec_prefix" >&6; }
13858 # Substituting python_exec_prefix_subst.
13859 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
13862 # Factor out some code duplication into this shell variable.
13863 am_python_setup_sysconfig="\
13865 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13866 # with python 3.x. See automake bug#10227.
13869 except ImportError:
13870 can_use_sysconfig = 0
13872 can_use_sysconfig = 1
13873 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13874 # <https://github.com/pypa/virtualenv/issues/118>
13876 from platform import python_implementation
13877 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13878 can_use_sysconfig = 0
13879 except ImportError:
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
13884 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
13885 if test ${am_cv_python_pythondir+y}
13887 printf %s "(cached) " >&6
13889 e) if test "x$am_cv_python_prefix" = x; then
13890 am_py_prefix=$am__usable_prefix
13892 am_py_prefix=$am_cv_python_prefix
13894 am_cv_python_pythondir=`$PYTHON -c "
13895 $am_python_setup_sysconfig
13896 if can_use_sysconfig:
13897 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13899 from distutils import sysconfig
13900 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13901 sys.stdout.write(sitedir)"`
13903 case $am_cv_python_pythondir in
13905 am__strip_prefix=`echo "$am_py_prefix" |
sed 's|.|.|g'`
13906 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" |
sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
13909 case $am_py_prefix in
13911 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13920 printf "%s\n" "$am_cv_python_pythondir" >&6; }
13921 pythondir=$am_cv_python_pythondir
13924 pkgpythondir=\${pythondir}/$PACKAGE
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
13928 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
13929 if test ${am_cv_python_pyexecdir+y}
13931 printf %s "(cached) " >&6
13933 e) if test "x$am_cv_python_exec_prefix" = x; then
13934 am_py_exec_prefix=$am__usable_exec_prefix
13936 am_py_exec_prefix=$am_cv_python_exec_prefix
13938 am_cv_python_pyexecdir=`$PYTHON -c "
13939 $am_python_setup_sysconfig
13940 if can_use_sysconfig:
13941 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
13943 from distutils import sysconfig
13944 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
13945 sys.stdout.write(sitedir)"`
13947 case $am_cv_python_pyexecdir in
13948 $am_py_exec_prefix*)
13949 am__strip_prefix=`echo "$am_py_exec_prefix" |
sed 's|.|.|g'`
13950 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" |
sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
13953 case $am_py_exec_prefix in
13955 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13964 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
13965 pyexecdir=$am_cv_python_pyexecdir
13968 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13975 if test -z "$PYTHON3"
13978 as_fn_error $? "python3 is required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5
13981 if test -n "$ac_tool_prefix"; then
13982 # Extract the first word of "${ac_tool_prefix}python3-config", so it can be a program name with args.
13983 set dummy ${ac_tool_prefix}python3-config; ac_word=$2
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13985 printf %s "checking for $ac_word... " >&6; }
13986 if test ${ac_cv_path_PYTHON3_CONFIG+y}
13988 printf %s "(cached) " >&6
13990 e) case $PYTHON3_CONFIG in
13992 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in $PATH
13999 case $as_dir in #(((
14002 *) as_dir=$as_dir/ ;;
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14006 ac_cv_path_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext"
14007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14018 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
14019 if test -n "$PYTHON3_CONFIG"; then
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
14021 printf "%s\n" "$PYTHON3_CONFIG" >&6; }
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 printf "%s\n" "no" >&6; }
14029 if test -z "$ac_cv_path_PYTHON3_CONFIG"; then
14030 ac_pt_PYTHON3_CONFIG=$PYTHON3_CONFIG
14031 # Extract the first word of "python3-config", so it can be a program name with args.
14032 set dummy python3-config; ac_word=$2
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 printf %s "checking for $ac_word... " >&6; }
14035 if test ${ac_cv_path_ac_pt_PYTHON3_CONFIG+y}
14037 printf %s "(cached) " >&6
14039 e) case $ac_pt_PYTHON3_CONFIG in
14041 ac_cv_path_ac_pt_PYTHON3_CONFIG="$ac_pt_PYTHON3_CONFIG" # Let the user override the test with a path.
14044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045 for as_dir in $PATH
14048 case $as_dir in #(((
14051 *) as_dir=$as_dir/ ;;
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14055 ac_cv_path_ac_pt_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext"
14056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14067 ac_pt_PYTHON3_CONFIG=$ac_cv_path_ac_pt_PYTHON3_CONFIG
14068 if test -n "$ac_pt_PYTHON3_CONFIG"; then
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON3_CONFIG" >&5
14070 printf "%s\n" "$ac_pt_PYTHON3_CONFIG" >&6; }
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 printf "%s\n" "no" >&6; }
14076 if test "x$ac_pt_PYTHON3_CONFIG" = x; then
14079 case $cross_compiling:$ac_tool_warned in
14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14083 ac_tool_warned=yes ;;
14085 PYTHON3_CONFIG=$ac_pt_PYTHON3_CONFIG
14088 PYTHON3_CONFIG="$ac_cv_path_PYTHON3_CONFIG"
14091 if test -z "$PYTHON3_CONFIG"
14094 as_fn_error $? "python3 headers are required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5
14097 PYTHON3DIR=$pythondir
14098 if test "$PYTHON3_BINDINGS" = "yes"
14100 PYTHON_BINDINGS="yes"
14103 # To get this macro, install autoconf-archive package then run autoreconf
14105 if test -z $PYTHON;
14107 if test -z "python3";
14114 PYTHON_NAME=`basename $PYTHON`
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyudev" >&5
14116 printf %s "checking $PYTHON_NAME module: pyudev... " >&6; }
14117 $PYTHON -c "import pyudev" 2>/dev/null
14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 printf "%s\n" "yes" >&6; }
14122 eval HAVE_PYMOD_PYUDEV=yes
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 printf "%s\n" "no" >&6; }
14126 eval HAVE_PYMOD_PYUDEV=no
14128 if test -n "Required"
14130 as_fn_error $? "failed to find required module pyudev" "$LINENO" 5
14136 if test -z $PYTHON;
14138 if test -z "python3";
14145 PYTHON_NAME=`basename $PYTHON`
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: dbus" >&5
14147 printf %s "checking $PYTHON_NAME module: dbus... " >&6; }
14148 $PYTHON -c "import dbus" 2>/dev/null
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14152 printf "%s\n" "yes" >&6; }
14153 eval HAVE_PYMOD_DBUS=yes
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 printf "%s\n" "no" >&6; }
14157 eval HAVE_PYMOD_DBUS=no
14159 if test -n "Required"
14161 as_fn_error $? "failed to find required module dbus" "$LINENO" 5
14169 ################################################################################
14170 # Check whether --enable-pkgconfig was given.
14171 if test ${enable_pkgconfig+y}
14173 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14175 e) PKGCONFIG="no" ;;
14180 ################################################################################
14181 # Check whether --enable-write_install was given.
14182 if test ${enable_write_install+y}
14184 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14186 e) WRITE_INSTALL="no" ;;
14191 ################################################################################
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
14193 printf %s "checking whether to install fsadm... " >&6; }
14194 # Check whether --enable-fsadm was given.
14195 if test ${enable_fsadm+y}
14197 enableval=$enable_fsadm; FSADM=$enableval
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
14201 printf "%s\n" "$FSADM" >&6; }
14204 ################################################################################
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5
14206 printf %s "checking whether to install lvm_import_vdo... " >&6; }
14207 # Check whether --enable-lvmimportvdo was given.
14208 if test ${enable_lvmimportvdo+y}
14210 enableval=$enable_lvmimportvdo; LVMIMPORTVDO=$enableval
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LVMIMPORTVDO" >&5
14214 printf "%s\n" "$LVMIMPORTVDO" >&6; }
14216 ################################################################################
14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5
14218 printf %s "checking whether to install blkdeactivate... " >&6; }
14219 # Check whether --enable-blkdeactivate was given.
14220 if test ${enable_blkdeactivate+y}
14222 enableval=$enable_blkdeactivate; BLKDEACTIVATE=$enableval
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKDEACTIVATE" >&5
14226 printf "%s\n" "$BLKDEACTIVATE" >&6; }
14228 ################################################################################
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
14230 printf %s "checking whether to use dmeventd... " >&6; }
14231 # Check whether --enable-dmeventd was given.
14232 if test ${enable_dmeventd+y}
14234 enableval=$enable_dmeventd; BUILD_DMEVENTD=$enableval
14236 e) BUILD_DMEVENTD="no" ;;
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMEVENTD" >&5
14241 printf "%s\n" "$BUILD_DMEVENTD" >&6; }
14243 if test "$BUILD_DMEVENTD" = "yes"
14246 if test "$MIRRORS" != "internal"
14248 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal" "$LINENO" 5
14251 printf "%s\n" "#define DMEVENTD 1" >>confdefs.h
14255 ################################################################################
14256 # Check whether --enable-cmdlib was given.
14257 if test ${enable_cmdlib+y}
14259 enableval=$enable_cmdlib; CMDLIB=$enableval
14261 e) CMDLIB="maybe" ;;
14266 if test "$BUILD_DMEVENTD" = "yes"
14268 if test "$CMDLIB" = "no"
14270 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well" "$LINENO" 5
14277 if test "$CMDLIB" != "yes"
14279 CMDLIB="no" LVM2CMD_LIB=
14281 e) LVM2CMD_LIB="-llvm2cmd" ;;
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
14286 printf %s "checking whether to compile liblvm2cmd.so... " >&6; }
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
14288 printf "%s\n" "$CMDLIB" >&6; }
14290 if test "$CMDLIB" == "yes" && test "$SHARED_LINK" = "no"
14292 as_fn_error $? "--enable-cmdlib requires dynamic linking." "$LINENO" 5
14296 ################################################################################
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build dmfilemapd" >&5
14298 printf %s "checking whether to build dmfilemapd... " >&6; }
14299 # Check whether --enable-dmfilemapd was given.
14300 if test ${enable_dmfilemapd+y}
14302 enableval=$enable_dmfilemapd; BUILD_DMFILEMAPD=$enableval
14304 e) BUILD_DMFILEMAPD="no" ;;
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMFILEMAPD" >&5
14309 printf "%s\n" "$BUILD_DMFILEMAPD" >&6; }
14311 if test "$BUILD_DMFILEMAPD" = "yes"
14313 ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_linux_fiemap_h" = xyes
14318 e) as_fn_error $? "--enable-dmfilemapd requires fiemap.h" "$LINENO" 5 ;;
14323 printf "%s\n" "#define DMFILEMAPD 1" >>confdefs.h
14327 ################################################################################
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
14330 printf %s "checking for getline in -lc... " >&6; }
14331 if test ${ac_cv_lib_c_getline+y}
14333 printf %s "(cached) " >&6
14335 e) ac_check_lib_save_LIBS=$LIBS
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply.
14343 The 'extern "C"' is for builds by C++ compilers;
14344 although this is not generally supported in C code supporting it here
14345 has little cost and some practical benefit (sr 110532). */
14349 char getline (void);
14358 if ac_fn_c_try_link "$LINENO"
14360 ac_cv_lib_c_getline=yes
14362 e) ac_cv_lib_c_getline=no ;;
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS ;;
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
14371 printf "%s\n" "$ac_cv_lib_c_getline" >&6; }
14372 if test "x$ac_cv_lib_c_getline" = xyes
14375 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
14380 ################################################################################
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
14383 printf %s "checking for canonicalize_file_name in -lc... " >&6; }
14384 if test ${ac_cv_lib_c_canonicalize_file_name+y}
14386 printf %s "(cached) " >&6
14388 e) ac_check_lib_save_LIBS=$LIBS
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14393 /* Override any GCC internal prototype to avoid an error.
14394 Use char because int might match the return type of a GCC
14395 builtin and then its argument prototype would still apply.
14396 The 'extern "C"' is for builds by C++ compilers;
14397 although this is not generally supported in C code supporting it here
14398 has little cost and some practical benefit (sr 110532). */
14402 char canonicalize_file_name (void);
14406 return canonicalize_file_name ();
14411 if ac_fn_c_try_link "$LINENO"
14413 ac_cv_lib_c_canonicalize_file_name=yes
14415 e) ac_cv_lib_c_canonicalize_file_name=no ;;
14418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14419 conftest$ac_exeext conftest.$ac_ext
14420 LIBS=$ac_check_lib_save_LIBS ;;
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14424 printf "%s\n" "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14425 if test "x$ac_cv_lib_c_canonicalize_file_name" = xyes
14428 printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14433 ################################################################################
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14435 printf %s "checking for dlopen in -ldl... " >&6; }
14436 if test ${ac_cv_lib_dl_dlopen+y}
14438 printf %s "(cached) " >&6
14440 e) ac_check_lib_save_LIBS=$LIBS
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14445 /* Override any GCC internal prototype to avoid an error.
14446 Use char because int might match the return type of a GCC
14447 builtin and then its argument prototype would still apply.
14448 The 'extern "C"' is for builds by C++ compilers;
14449 although this is not generally supported in C code supporting it here
14450 has little cost and some practical benefit (sr 110532). */
14454 char dlopen (void);
14463 if ac_fn_c_try_link "$LINENO"
14465 ac_cv_lib_dl_dlopen=yes
14467 e) ac_cv_lib_dl_dlopen=no ;;
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS ;;
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14476 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14477 if test "x$ac_cv_lib_dl_dlopen" = xyes
14480 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
14491 ################################################################################
14492 if ( test "$LVM1" = "shared" || test "$POOL" = "shared" ) && test "$STATIC_LINK" = "yes"
14495 as_fn_error $? "Features cannot be 'shared' when building statically" "$LINENO" 5
14499 ################################################################################
14500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
14501 printf %s "checking for log10 in -lm... " >&6; }
14502 if test ${ac_cv_lib_m_log10+y}
14504 printf %s "(cached) " >&6
14506 e) ac_check_lib_save_LIBS=$LIBS
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply.
14514 The 'extern "C"' is for builds by C++ compilers;
14515 although this is not generally supported in C code supporting it here
14516 has little cost and some practical benefit (sr 110532). */
14529 if ac_fn_c_try_link "$LINENO"
14531 ac_cv_lib_m_log10=yes
14533 e) ac_cv_lib_m_log10=no ;;
14536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS ;;
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
14542 printf "%s\n" "$ac_cv_lib_m_log10" >&6; }
14543 if test "x$ac_cv_lib_m_log10" = xyes
14552 ################################################################################
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
14554 printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; }
14555 if test ${ac_cv_lib_pthread_pthread_mutex_lock+y}
14557 printf %s "(cached) " >&6
14559 e) ac_check_lib_save_LIBS=$LIBS
14560 LIBS="-lpthread $LIBS"
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14564 /* Override any GCC internal prototype to avoid an error.
14565 Use char because int might match the return type of a GCC
14566 builtin and then its argument prototype would still apply.
14567 The 'extern "C"' is for builds by C++ compilers;
14568 although this is not generally supported in C code supporting it here
14569 has little cost and some practical benefit (sr 110532). */
14573 char pthread_mutex_lock (void);
14577 return pthread_mutex_lock ();
14582 if ac_fn_c_try_link "$LINENO"
14584 ac_cv_lib_pthread_pthread_mutex_lock=yes
14586 e) ac_cv_lib_pthread_pthread_mutex_lock=no ;;
14589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14590 conftest$ac_exeext conftest.$ac_ext
14591 LIBS=$ac_check_lib_save_LIBS ;;
14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
14595 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
14596 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes
14598 PTHREAD_LIBS="-lpthread"
14605 ################################################################################
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
14607 printf %s "checking whether to enable selinux support... " >&6; }
14608 # Check whether --enable-selinux was given.
14609 if test ${enable_selinux+y}
14611 enableval=$enable_selinux; SELINUX=$enableval
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
14615 printf "%s\n" "$SELINUX" >&6; }
14617 ################################################################################
14618 if test "$SELINUX" = "yes"
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
14622 printf %s "checking for sepol_check_context in -lsepol... " >&6; }
14623 if test ${ac_cv_lib_sepol_sepol_check_context+y}
14625 printf %s "(cached) " >&6
14627 e) ac_check_lib_save_LIBS=$LIBS
14628 LIBS="-lsepol $LIBS"
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14632 /* Override any GCC internal prototype to avoid an error.
14633 Use char because int might match the return type of a GCC
14634 builtin and then its argument prototype would still apply.
14635 The 'extern "C"' is for builds by C++ compilers;
14636 although this is not generally supported in C code supporting it here
14637 has little cost and some practical benefit (sr 110532). */
14641 char sepol_check_context (void);
14645 return sepol_check_context ();
14650 if ac_fn_c_try_link "$LINENO"
14652 ac_cv_lib_sepol_sepol_check_context=yes
14654 e) ac_cv_lib_sepol_sepol_check_context=no ;;
14657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14658 conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS ;;
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
14663 printf "%s\n" "$ac_cv_lib_sepol_sepol_check_context" >&6; }
14664 if test "x$ac_cv_lib_sepol_sepol_check_context" = xyes
14668 printf "%s\n" "#define HAVE_SEPOL 1" >>confdefs.h
14670 SEPOL_LIBS="-lsepol"
14674 if test -n "$PKG_CONFIG" && \
14675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14676 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; then
14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libselinux" >&5
14683 printf %s "checking for libselinux... " >&6; }
14685 if test -n "$SELINUX_CFLAGS"; then
14686 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
14687 elif test -n "$PKG_CONFIG"; then
14688 if test -n "$PKG_CONFIG" && \
14689 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14690 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14693 test $ac_status = 0; }; then
14694 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev
/null
`
14695 test "x$?" != "x0" && pkg_failed=yes
14702 if test -n "$SELINUX_LIBS"; then
14703 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
14704 elif test -n "$PKG_CONFIG"; then
14705 if test -n "$PKG_CONFIG" && \
14706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14707 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14710 test $ac_status = 0; }; then
14711 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev
/null
`
14712 test "x$?" != "x0" && pkg_failed=yes
14722 if test $pkg_failed = yes; then
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724 printf "%s\n" "no" >&6; }
14726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14727 _pkg_short_errors_supported=yes
14729 _pkg_short_errors_supported=no
14731 if test $_pkg_short_errors_supported = yes; then
14732 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
14734 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
14736 # Put the nasty error message in config.log where it belongs
14737 echo "$SELINUX_PKG_ERRORS" >&5
14739 as_fn_error $? "Package requirements (libselinux) were not met:
14741 $SELINUX_PKG_ERRORS
14743 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14744 installed software in a non-standard prefix.
14746 Alternatively, you may set the environment variables SELINUX_CFLAGS
14747 and SELINUX_LIBS to avoid the need to call pkg-config.
14748 See the pkg-config man page for more details." "$LINENO" 5
14749 elif test $pkg_failed = untried; then
14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14751 printf "%s\n" "no" >&6; }
14752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14753 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14754 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14755 is in your PATH or set the PKG_CONFIG environment variable to the full
14756 path to pkg-config.
14758 Alternatively, you may set the environment variables SELINUX_CFLAGS
14759 and SELINUX_LIBS to avoid the need to call pkg-config.
14760 See the pkg-config man page for more details.
14762 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14763 See 'config.log' for more details" "$LINENO" 5; }
14765 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
14766 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14768 printf "%s\n" "yes" >&6; }
14769 SELINUX_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libselinux)
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
14774 printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
14775 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
14777 printf %s "(cached) " >&6
14779 e) ac_check_lib_save_LIBS=$LIBS
14780 LIBS="-lselinux $LIBS"
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14784 /* Override any GCC internal prototype to avoid an error.
14785 Use char because int might match the return type of a GCC
14786 builtin and then its argument prototype would still apply.
14787 The 'extern "C"' is for builds by C++ compilers;
14788 although this is not generally supported in C code supporting it here
14789 has little cost and some practical benefit (sr 110532). */
14793 char is_selinux_enabled (void);
14797 return is_selinux_enabled ();
14802 if ac_fn_c_try_link "$LINENO"
14804 ac_cv_lib_selinux_is_selinux_enabled=yes
14806 e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
14809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14810 conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS ;;
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
14815 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
14816 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
14819 for ac_header in selinux/selinux.h
14821 ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14822 if test "x$ac_cv_header_selinux_selinux_h" = xyes
14824 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h
14832 ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
14833 if test "x$ac_cv_header_selinux_label_h" = xyes
14835 printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h
14840 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
14842 SELINUX_LIBS=${SELINUX_LIBS:--lselinux}
14843 SELINUX_STATIC_LIBS=${SELINUX_STATIC_LIBS:-$SELINUX_LIBS $SEPOL_LIBS}
14844 SELINUX_PC="libselinux"
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
14849 printf "%s\n" "$as_me: WARNING: Disabling selinux" >&2;}
14851 SELINUX_STATIC_LIBS=
14860 ################################################################################
14862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BLKZEROOUT in sys/ioctl.h." >&5
14863 printf %s "checking for BLKZEROOUT in sys/ioctl.h.... " >&6; }
14864 if test ${ac_cv_have_blkzeroout+y}
14866 printf %s "(cached) " >&6
14868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include <sys/ioctl.h>
14871 #include <linux/fs.h>
14872 int bar(void) { return ioctl(0, BLKZEROOUT, 0); }
14882 if ac_fn_c_try_compile "$LINENO"
14884 ac_cv_have_blkzeroout="yes"
14886 e) ac_cv_have_blkzeroout="no" ;;
14889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkzeroout" >&5
14893 printf "%s\n" "$ac_cv_have_blkzeroout" >&6; }
14896 # Check whether --enable-blkzeroout was given.
14897 if test ${enable_blkzeroout+y}
14899 enableval=$enable_blkzeroout; BLKZEROOUT=$enableval
14901 e) BLKZEROOUT="yes" ;;
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use BLKZEROOUT for device zeroing" >&5
14907 printf %s "checking whether to use BLKZEROOUT for device zeroing... " >&6; }
14908 if test "$BLKZEROOUT" = "yes"
14911 if test $ac_cv_have_blkzeroout = yes
14914 printf "%s\n" "#define HAVE_BLKZEROOUT 1" >>confdefs.h
14917 e) BLKZEROOUT="no" ;;
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKZEROOUT" >&5
14923 printf "%s\n" "$BLKZEROOUT" >&6; }
14926 ################################################################################
14929 if test "$REALTIME" = "yes"
14933 for ac_func in clock_gettime
14935 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14936 if test "x$ac_cv_func_clock_gettime" = xyes
14938 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14944 if test "$HAVE_REALTIME" != "yes"
14946 # try again with -lrt
14947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14948 printf %s "checking for clock_gettime in -lrt... " >&6; }
14949 if test ${ac_cv_lib_rt_clock_gettime+y}
14951 printf %s "(cached) " >&6
14953 e) ac_check_lib_save_LIBS=$LIBS
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 /* Override any GCC internal prototype to avoid an error.
14959 Use char because int might match the return type of a GCC
14960 builtin and then its argument prototype would still apply.
14961 The 'extern "C"' is for builds by C++ compilers;
14962 although this is not generally supported in C code supporting it here
14963 has little cost and some practical benefit (sr 110532). */
14967 char clock_gettime (void);
14971 return clock_gettime ();
14976 if ac_fn_c_try_link "$LINENO"
14978 ac_cv_lib_rt_clock_gettime=yes
14980 e) ac_cv_lib_rt_clock_gettime=no ;;
14983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14984 conftest$ac_exeext conftest.$ac_ext
14985 LIBS=$ac_check_lib_save_LIBS ;;
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14989 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
14990 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
14992 RT_LIBS="-lrt"; HAVE_REALTIME=yes
14997 if test "$HAVE_REALTIME" = "yes"
15001 printf "%s\n" "#define HAVE_REALTIME 1" >>confdefs.h
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
15007 printf "%s\n" "$as_me: WARNING: Disabling realtime clock" >&2;}
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5
15015 printf %s "checking for struct stat has st_ctim.... " >&6; }
15016 if test ${ac_cv_stat_st_ctim+y}
15018 printf %s "(cached) " >&6
15020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #include <sys/stat.h>
15023 long bar(void) { struct stat s; return (long)(s.st_ctim.tv_sec + s.st_ctim.tv_nsec);}
15033 if ac_fn_c_try_compile "$LINENO"
15035 ac_cv_stat_st_ctim=yes
15037 e) ac_cv_stat_st_ctim=no ;;
15040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_st_ctim" >&5
15044 printf "%s\n" "$ac_cv_stat_st_ctim" >&6; }
15046 if test $ac_cv_stat_st_ctim = yes
15049 printf "%s\n" "#define HAVE_STAT_ST_CTIM 1" >>confdefs.h
15053 ################################################################################
15054 for ac_header in getopt.h
15056 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15057 if test "x$ac_cv_header_getopt_h" = xyes
15059 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
15061 printf "%s\n" "#define HAVE_GETOPTLONG 1" >>confdefs.h
15067 ################################################################################
15068 if test "$EDITLINE" = "yes"
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
15074 printf %s "checking for libedit... " >&6; }
15076 if test -n "$EDITLINE_CFLAGS"; then
15077 pkg_cv_EDITLINE_CFLAGS="$EDITLINE_CFLAGS"
15078 elif test -n "$PKG_CONFIG"; then
15079 if test -n "$PKG_CONFIG" && \
15080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
15081 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
15083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; }; then
15085 pkg_cv_EDITLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev
/null
`
15086 test "x$?" != "x0" && pkg_failed=yes
15093 if test -n "$EDITLINE_LIBS"; then
15094 pkg_cv_EDITLINE_LIBS="$EDITLINE_LIBS"
15095 elif test -n "$PKG_CONFIG"; then
15096 if test -n "$PKG_CONFIG" && \
15097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
15098 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
15100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15101 test $ac_status = 0; }; then
15102 pkg_cv_EDITLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev
/null
`
15103 test "x$?" != "x0" && pkg_failed=yes
15113 if test $pkg_failed = yes; then
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115 printf "%s\n" "no" >&6; }
15117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15118 _pkg_short_errors_supported=yes
15120 _pkg_short_errors_supported=no
15122 if test $_pkg_short_errors_supported = yes; then
15123 EDITLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
15125 EDITLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
15127 # Put the nasty error message in config.log where it belongs
15128 echo "$EDITLINE_PKG_ERRORS" >&5
15130 as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5
15132 elif test $pkg_failed = untried; then
15133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134 printf "%s\n" "no" >&6; }
15135 as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5
15138 EDITLINE_CFLAGS=$pkg_cv_EDITLINE_CFLAGS
15139 EDITLINE_LIBS=$pkg_cv_EDITLINE_LIBS
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15141 printf "%s\n" "yes" >&6; }
15144 printf "%s\n" "#define EDITLINE_SUPPORT 1" >>confdefs.h
15150 ################################################################################
15151 if test "$READLINE" != "no"
15154 lvm_saved_libs=$LIBS
15155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
15156 printf %s "checking for library containing tgetent... " >&6; }
15157 if test ${ac_cv_search_tgetent+y}
15159 printf %s "(cached) " >&6
15161 e) ac_func_search_save_LIBS=$LIBS
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15165 /* Override any GCC internal prototype to avoid an error.
15166 Use char because int might match the return type of a GCC
15167 builtin and then its argument prototype would still apply.
15168 The 'extern "C"' is for builds by C++ compilers;
15169 although this is not generally supported in C code supporting it here
15170 has little cost and some practical benefit (sr 110532). */
15174 char tgetent (void);
15183 for ac_lib in '' tinfo ncurses curses termcap termlib
15185 if test -z "$ac_lib"; then
15186 ac_res="none required"
15189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15191 if ac_fn_c_try_link "$LINENO"
15193 ac_cv_search_tgetent=$ac_res
15195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15197 if test ${ac_cv_search_tgetent+y}
15202 if test ${ac_cv_search_tgetent+y}
15206 e) ac_cv_search_tgetent=no ;;
15209 rm conftest.$ac_ext
15210 LIBS=$ac_func_search_save_LIBS ;;
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
15214 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
15215 ac_res=$ac_cv_search_tgetent
15216 if test "$ac_res" != no
15218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15219 READLINE_LIBS=$ac_cv_search_tgetent
15222 if test "$READLINE" = "yes"
15225 as_fn_error $? "termcap could not be found which is required for the
15226 --enable-readline option (which is enabled by default). Either disable readline
15227 support with --disable-readline or download and install termcap from:
15228 ftp.gnu.org/gnu/termcap
15229 Note: if you are using precompiled packages you will also need the development
15230 package as well (which may be called termcap-devel or something similar).
15231 Note: (n)curses also seems to work as a substitute for termcap. This was
15232 not found either - but you could try installing that as well." "$LINENO" 5
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15240 printf %s "checking for readline in -lreadline... " >&6; }
15241 if test ${ac_cv_lib_readline_readline+y}
15243 printf %s "(cached) " >&6
15245 e) ac_check_lib_save_LIBS=$LIBS
15246 LIBS="-lreadline $LIBS"
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply.
15253 The 'extern "C"' is for builds by C++ compilers;
15254 although this is not generally supported in C code supporting it here
15255 has little cost and some practical benefit (sr 110532). */
15259 char readline (void);
15263 return readline ();
15268 if ac_fn_c_try_link "$LINENO"
15270 ac_cv_lib_readline_readline=yes
15272 e) ac_cv_lib_readline_readline=no ;;
15275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15276 conftest$ac_exeext conftest.$ac_ext
15277 LIBS=$ac_check_lib_save_LIBS ;;
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15281 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15282 if test "x$ac_cv_lib_readline_readline" = xyes
15286 printf "%s\n" "#define READLINE_SUPPORT 1" >>confdefs.h
15289 LIBS=$lvm_saved_libs
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
15291 printf %s "checking for rl_line_buffer in -lreadline... " >&6; }
15292 if test ${ac_cv_lib_readline_rl_line_buffer+y}
15294 printf %s "(cached) " >&6
15296 e) ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-lreadline $LIBS"
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply.
15304 The 'extern "C"' is for builds by C++ compilers;
15305 although this is not generally supported in C code supporting it here
15306 has little cost and some practical benefit (sr 110532). */
15310 char rl_line_buffer (void);
15314 return rl_line_buffer ();
15319 if ac_fn_c_try_link "$LINENO"
15321 ac_cv_lib_readline_rl_line_buffer=yes
15323 e) ac_cv_lib_readline_rl_line_buffer=no ;;
15326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS ;;
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15332 printf "%s\n" "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15333 if test "x$ac_cv_lib_readline_rl_line_buffer" = xyes
15335 READLINE_LIBS="-lreadline"
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
15339 printf "%s\n" "linking -lreadline with $READLINE_LIBS needed" >&6; }
15340 READLINE_LIBS="-lreadline $READLINE_LIBS"
15348 if test "$READLINE" = "yes"
15351 as_fn_error $? "GNU Readline could not be found which is required for the
15352 --enable-readline option (which is enabled by default). Either disable readline
15353 support with --disable-readline or download and install readline from:
15354 ftp.gnu.org/gnu/readline
15355 Note: if you are using precompiled packages you will also need the development
15356 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
15363 LIBS="$READLINE_LIBS $lvm_saved_libs"
15364 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
15365 if test "x$ac_cv_func_rl_completion_matches" = xyes
15367 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
15371 LIBS=$lvm_saved_libs
15375 ################################################################################
15376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
15377 printf %s "checking whether to enable internationalisation... " >&6; }
15378 # Check whether --enable-nls was given.
15379 if test ${enable_nls+y}
15381 enableval=$enable_nls; INTL=$enableval
15387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
15388 printf "%s\n" "$INTL" >&6; }
15390 if test "$INTL" = "yes"
15393 # FIXME - Move this - can be device-mapper too
15394 INTL_PACKAGE="lvm2"
15395 if test -n "$ac_tool_prefix"; then
15396 # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args.
15397 set dummy ${ac_tool_prefix}msgfmt; ac_word=$2
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15399 printf %s "checking for $ac_word... " >&6; }
15400 if test ${ac_cv_path_MSGFMT+y}
15402 printf %s "(cached) " >&6
15406 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410 for as_dir in $PATH
15413 case $as_dir in #(((
15416 *) as_dir=$as_dir/ ;;
15418 for ac_exec_ext in '' $ac_executable_extensions; do
15419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15420 ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext"
15421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15432 MSGFMT=$ac_cv_path_MSGFMT
15433 if test -n "$MSGFMT"; then
15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15435 printf "%s\n" "$MSGFMT" >&6; }
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438 printf "%s\n" "no" >&6; }
15443 if test -z "$ac_cv_path_MSGFMT"; then
15444 ac_pt_MSGFMT=$MSGFMT
15445 # Extract the first word of "msgfmt", so it can be a program name with args.
15446 set dummy msgfmt; ac_word=$2
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448 printf %s "checking for $ac_word... " >&6; }
15449 if test ${ac_cv_path_ac_pt_MSGFMT+y}
15451 printf %s "(cached) " >&6
15453 e) case $ac_pt_MSGFMT in
15455 ac_cv_path_ac_pt_MSGFMT="$ac_pt_MSGFMT" # Let the user override the test with a path.
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in $PATH
15462 case $as_dir in #(((
15465 *) as_dir=$as_dir/ ;;
15467 for ac_exec_ext in '' $ac_executable_extensions; do
15468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15469 ac_cv_path_ac_pt_MSGFMT="$as_dir$ac_word$ac_exec_ext"
15470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15481 ac_pt_MSGFMT=$ac_cv_path_ac_pt_MSGFMT
15482 if test -n "$ac_pt_MSGFMT"; then
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MSGFMT" >&5
15484 printf "%s\n" "$ac_pt_MSGFMT" >&6; }
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487 printf "%s\n" "no" >&6; }
15490 if test "x$ac_pt_MSGFMT" = x; then
15493 case $cross_compiling:$ac_tool_warned in
15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15497 ac_tool_warned=yes ;;
15499 MSGFMT=$ac_pt_MSGFMT
15502 MSGFMT="$ac_cv_path_MSGFMT"
15506 if test -z "$MSGFMT"
15508 as_fn_error $? "msgfmt not found in path $PATH" "$LINENO" 5
15512 # Check whether --with-localedir was given.
15513 if test ${with_localedir+y}
15515 withval=$with_localedir; localedir=$withval
15517 e) localedir=${localedir-'${datarootdir}/locale'} ;;
15522 printf "%s\n" "#define INTL_PACKAGE \"$INTL_PACKAGE\"" >>confdefs.h
15524 # double eval needed ${datarootdir} -> ${prefix}/share -> real path
15526 printf "%s\n" "#define LOCALEDIR \"$(eval echo $(eval echo $localedir))\"" >>confdefs.h
15531 ################################################################################
15533 # Check whether --with-confdir was given.
15534 if test ${with_confdir+y}
15536 withval=$with_confdir; CONFDIR=$withval
15538 e) CONFDIR='/etc' ;;
15543 printf "%s\n" "#define DEFAULT_ETC_DIR \"$CONFDIR\"" >>confdefs.h
15547 # Check whether --with-staticdir was given.
15548 if test ${with_staticdir+y}
15550 withval=$with_staticdir; STATICDIR=$withval
15552 e) STATICDIR='${exec_prefix}/sbin' ;;
15558 # Check whether --with-usrlibdir was given.
15559 if test ${with_usrlibdir+y}
15561 withval=$with_usrlibdir; usrlibdir=$withval
15563 e) usrlibdir='${prefix}/lib' ;;
15569 # Check whether --with-usrsbindir was given.
15570 if test ${with_usrsbindir+y}
15572 withval=$with_usrsbindir; usrsbindir=$withval
15574 e) usrsbindir='${prefix}/sbin' ;;
15580 # Check whether --with-libexecdir was given.
15581 if test ${with_libexecdir+y}
15583 withval=$with_libexecdir; libexecdir=$withval
15585 e) libexecdir='${prefix}/libexec' ;;
15590 ################################################################################
15592 # Check whether --with-udev_prefix was given.
15593 if test ${with_udev_prefix+y}
15595 withval=$with_udev_prefix; udev_prefix=$withval
15597 e) udev_prefix='${exec_prefix}' ;;
15603 # Check whether --with-udevdir was given.
15604 if test ${with_udevdir+y}
15606 withval=$with_udevdir; udevdir=$withval
15608 e) udevdir='${udev_prefix}/lib/udev/rules.d' ;;
15613 ################################################################################
15615 # Check whether --with-systemdsystemunitdir was given.
15616 if test ${with_systemdsystemunitdir+y}
15618 withval=$with_systemdsystemunitdir;
15622 if test -z "$with_systemdsystemunitdir"
15625 if test -n "$systemdsystemunitdir"; then
15626 pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
15627 elif test -n "$PKG_CONFIG"; then
15628 if test -n "$PKG_CONFIG" && \
15629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15630 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15633 test $ac_status = 0; }; then
15634 pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev
/null
`
15635 test "x$?" != "x0" && pkg_failed=yes
15642 systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
15644 if test "x$systemdsystemunitdir" = x""
15646 systemdsystemunitdir='${exec_prefix}/lib/systemd/system'
15649 e) systemdsystemunitdir="$with_systemdsystemunitdir" ;;
15654 if test -n "$systemdutildir"; then
15655 pkg_cv_systemdutildir="$systemdutildir"
15656 elif test -n "$PKG_CONFIG"; then
15657 if test -n "$PKG_CONFIG" && \
15658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15659 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15662 test $ac_status = 0; }; then
15663 pkg_cv_systemdutildir=`$PKG_CONFIG --variable="systemdutildir" "systemd" 2>/dev
/null
`
15664 test "x$?" != "x0" && pkg_failed=yes
15671 systemdutildir=$pkg_cv_systemdutildir
15673 if test "x$systemdutildir" = x""
15675 systemdutildir='${exec_prefix}/lib/systemd'
15678 ################################################################################
15680 # Check whether --with-tmpfilesdir was given.
15681 if test ${with_tmpfilesdir+y}
15683 withval=$with_tmpfilesdir; tmpfilesdir=$withval
15685 e) tmpfilesdir='${prefix}/lib/tmpfiles.d' ;;
15690 ################################################################################
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel modules directory" >&5
15692 printf %s "checking for kernel modules directory... " >&6; }
15694 # Check whether --with-modulesdir was given.
15695 if test ${with_modulesdir+y}
15697 withval=$with_modulesdir; modulesdir=$withval
15699 e) modulesdir="/lib/modules" ;;
15704 printf "%s\n" "#define MODULES_PATH \"$modulesdir\"" >>confdefs.h
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $modulesdir" >&5
15707 printf "%s\n" "$modulesdir" >&6; }
15709 ################################################################################
15710 if test "$READLINE" = "yes"
15713 for ac_header in readline/readline.h readline/history.h
15715 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" |
sed "$as_sed_sh"`
15716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15717 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15719 cat >>confdefs.h <<_ACEOF
15720 #define `printf "%s\n" "HAVE_$ac_header" |
sed "$as_sed_cpp"` 1
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
15732 printf %s "checking whether to enable readline... " >&6; }
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
15734 printf "%s\n" "$READLINE" >&6; }
15736 if test "$EDITLINE" = "yes"
15739 for ac_header in editline/readline.h
15741 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
15742 if test "x$ac_cv_header_editline_readline_h" = xyes
15744 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable editline" >&5
15755 printf %s "checking whether to enable editline... " >&6; }
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EDITLINE" >&5
15757 printf "%s\n" "$EDITLINE" >&6; }
15759 if test "$BUILD_CMIRRORD" = "yes"
15763 for ac_func in atexit
15765 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
15766 if test "x$ac_cv_func_atexit" = xyes
15768 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
15779 if test "$BUILD_LVMLOCKD" = "yes"
15782 if test "$HAVE_REALTIME" != "yes"
15785 as_fn_error $? "Realtime clock support is mandatory for lvmlockd." "$LINENO" 5
15788 for ac_func in strtoull
15790 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
15791 if test "x$ac_cv_func_strtoull" = xyes
15793 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
15805 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
15806 if test ${ac_cv_c_undeclared_builtin_options+y}
15808 printf %s "(cached) " >&6
15810 e) ac_save_CFLAGS=$CFLAGS
15811 ac_cv_c_undeclared_builtin_options='cannot detect'
15812 for ac_arg in '' -fno-builtin; do
15813 CFLAGS="$ac_save_CFLAGS $ac_arg"
15814 # This test program should *not* compile successfully.
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15826 if ac_fn_c_try_compile "$LINENO"
15830 e) # This test program should compile successfully.
15831 # No library function is consistently available on
15832 # freestanding implementations, so test against a dummy
15833 # declaration. Include always-available headers on the
15834 # off chance that they somehow elicit warnings.
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15838 #include <limits.h>
15839 #include <stdarg.h>
15840 #include <stddef.h>
15841 extern void ac_decl (int, char *);
15846 (void) ac_decl (0, (char *) 0);
15853 if ac_fn_c_try_compile "$LINENO"
15855 if test x"$ac_arg" = x
15857 ac_cv_c_undeclared_builtin_options='none needed'
15859 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
15864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15869 CFLAGS=$ac_save_CFLAGS
15873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15874 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15875 case $ac_cv_c_undeclared_builtin_options in #(
15877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15878 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15879 as_fn_error $? "cannot make $CC report undeclared builtins
15880 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15882 ac_c_undeclared_builtin_options='' ;; #(
15884 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15887 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15888 if test "x$ac_cv_have_decl_strerror_r" = xyes
15892 e) ac_have_decl=0 ;;
15895 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
15897 if test "$BUILD_LVMPOLLD" = "yes"
15901 for ac_func in strpbrk
15903 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15904 if test "x$ac_cv_func_strpbrk" = xyes
15906 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
15915 if test $ac_cv_have_decl_strerror_r = yes; then
15916 # For backward compatibility's sake, define HAVE_STRERROR_R.
15917 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
15918 # as AC_CHECK_DECLS_ONCE.)
15920 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
15924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15925 printf %s "checking whether strerror_r returns char *... " >&6; }
15926 if test ${ac_cv_func_strerror_r_char_p+y}
15928 printf %s "(cached) " >&6
15931 ac_cv_func_strerror_r_char_p=no
15932 if test $ac_cv_have_decl_strerror_r = yes; then
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15935 #include <string.h>
15941 char x = *strerror_r (0, buf, sizeof buf);
15942 char *p = strerror_r (0, buf, sizeof buf);
15949 if ac_fn_c_try_compile "$LINENO"
15951 ac_cv_func_strerror_r_char_p=yes
15953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15960 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
15961 if test $ac_cv_func_strerror_r_char_p = yes; then
15963 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15970 if test "$BUILD_DMEVENTD" = "yes"
15973 for ac_header in arpa/inet.h
15975 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15976 if test "x$ac_cv_header_arpa_inet_h" = xyes
15978 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
15989 if test "$HAVE_LIBDL" = "yes"
15992 for ac_header in dlfcn.h
15994 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
15995 if test "x$ac_cv_header_dlfcn_h" = xyes
15997 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
16008 if test "$INTL" = "yes"
16011 for ac_header in libintl.h
16013 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16014 if test "x$ac_cv_header_libintl_h" = xyes
16016 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
16027 if test "$UDEV_SYNC" = "yes"
16030 for ac_header in sys/ipc.h sys/sem.h
16032 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" |
sed "$as_sed_sh"`
16033 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16034 if eval test \"x\$"$as_ac_Header"\" = x"yes"
16036 cat >>confdefs.h <<_ACEOF
16037 #define `printf "%s\n" "HAVE_$ac_header" |
sed "$as_sed_cpp"` 1
16049 if test "$BUILD_DMFILEMAPD" = "yes"
16052 for ac_header in sys/inotify.h
16054 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
16055 if test "x$ac_cv_header_sys_inotify_h" = xyes
16057 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
16068 ################################################################################
16069 if test -n "$ac_tool_prefix"; then
16070 # Extract the first word of "${ac_tool_prefix}modprobe", so it can be a program name with args.
16071 set dummy ${ac_tool_prefix}modprobe; ac_word=$2
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16073 printf %s "checking for $ac_word... " >&6; }
16074 if test ${ac_cv_path_MODPROBE_CMD+y}
16076 printf %s "(cached) " >&6
16078 e) case $MODPROBE_CMD in
16080 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
16083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16084 for as_dir in $PATH_SBIN
16087 case $as_dir in #(((
16090 *) as_dir=$as_dir/ ;;
16092 for ac_exec_ext in '' $ac_executable_extensions; do
16093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16094 ac_cv_path_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext"
16095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16106 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
16107 if test -n "$MODPROBE_CMD"; then
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
16109 printf "%s\n" "$MODPROBE_CMD" >&6; }
16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 printf "%s\n" "no" >&6; }
16117 if test -z "$ac_cv_path_MODPROBE_CMD"; then
16118 ac_pt_MODPROBE_CMD=$MODPROBE_CMD
16119 # Extract the first word of "modprobe", so it can be a program name with args.
16120 set dummy modprobe; ac_word=$2
16121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 printf %s "checking for $ac_word... " >&6; }
16123 if test ${ac_cv_path_ac_pt_MODPROBE_CMD+y}
16125 printf %s "(cached) " >&6
16127 e) case $ac_pt_MODPROBE_CMD in
16129 ac_cv_path_ac_pt_MODPROBE_CMD="$ac_pt_MODPROBE_CMD" # Let the user override the test with a path.
16132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16133 for as_dir in $PATH_SBIN
16136 case $as_dir in #(((
16139 *) as_dir=$as_dir/ ;;
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16143 ac_cv_path_ac_pt_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext"
16144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16155 ac_pt_MODPROBE_CMD=$ac_cv_path_ac_pt_MODPROBE_CMD
16156 if test -n "$ac_pt_MODPROBE_CMD"; then
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MODPROBE_CMD" >&5
16158 printf "%s\n" "$ac_pt_MODPROBE_CMD" >&6; }
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 printf "%s\n" "no" >&6; }
16164 if test "x$ac_pt_MODPROBE_CMD" = x; then
16167 case $cross_compiling:$ac_tool_warned in
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16171 ac_tool_warned=yes ;;
16173 MODPROBE_CMD=$ac_pt_MODPROBE_CMD
16176 MODPROBE_CMD="$ac_cv_path_MODPROBE_CMD"
16180 if test -n "$MODPROBE_CMD"
16184 printf "%s\n" "#define MODPROBE_CMD \"$MODPROBE_CMD\"" >>confdefs.h
16189 SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))"
16191 SBINDIR="$(eval echo $(eval echo $sbindir))"
16192 LVM_PATH="$SBINDIR/lvm"
16194 printf "%s\n" "#define LVM_PATH \"$LVM_PATH\"" >>confdefs.h
16197 LVMCONFIG_PATH="$SBINDIR/lvmconfig"
16199 printf "%s\n" "#define LVMCONFIG_PATH \"$LVMCONFIG_PATH\"" >>confdefs.h
16202 USRSBINDIR="$(eval echo $(eval echo $usrsbindir))"
16204 FSADM_PATH="$SBINDIR/fsadm"
16206 printf "%s\n" "#define FSADM_PATH \"$FSADM_PATH\"" >>confdefs.h
16209 LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo"
16211 printf "%s\n" "#define LVMIMPORTVDO_PATH \"$LVMIMPORTVDO_PATH\"" >>confdefs.h
16214 LIBEXECDIR="$(eval echo $(eval echo $libexecdir))"
16216 LVRESIZE_FS_HELPER_PATH="$LIBEXECDIR/lvresize_fs_helper"
16218 printf "%s\n" "#define LVRESIZE_FS_HELPER_PATH \"$LVRESIZE_FS_HELPER_PATH\"" >>confdefs.h
16221 ################################################################################
16223 # Check whether --with-dmeventd-pidfile was given.
16224 if test ${with_dmeventd_pidfile+y}
16226 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
16228 e) DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" ;;
16233 # Check whether --with-dmeventd-path was given.
16234 if test ${with_dmeventd_path+y}
16236 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
16238 e) DMEVENTD_PATH="$SBINDIR/dmeventd" ;;
16243 # Check whether --with-dmeventd-exit-on-path was given.
16244 if test ${with_dmeventd_exit_on_path+y}
16246 withval=$with_dmeventd_exit_on_path; DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval
16248 e) DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin" ;;
16253 if test "$BUILD_DMEVENTD" = "yes"
16257 printf "%s\n" "#define DMEVENTD_PIDFILE \"$DMEVENTD_PIDFILE\"" >>confdefs.h
16260 printf "%s\n" "#define DMEVENTD_PATH \"$DMEVENTD_PATH\"" >>confdefs.h
16263 printf "%s\n" "#define DEFAULT_DMEVENTD_EXIT_ON_PATH \"$DEFAULT_DMEVENTD_EXIT_ON_PATH\"" >>confdefs.h
16268 ################################################################################
16270 # Check whether --with-default-system-dir was given.
16271 if test ${with_default_system_dir+y}
16273 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
16275 e) DEFAULT_SYS_DIR="/etc/lvm" ;;
16280 printf "%s\n" "#define DEFAULT_SYS_DIR \"$DEFAULT_SYS_DIR\"" >>confdefs.h
16284 # Check whether --with-default-profile-subdir was given.
16285 if test ${with_default_profile_subdir+y}
16287 withval=$with_default_profile_subdir; DEFAULT_PROFILE_SUBDIR=$withval
16289 e) DEFAULT_PROFILE_SUBDIR="profile" ;;
16294 printf "%s\n" "#define DEFAULT_PROFILE_SUBDIR \"$DEFAULT_PROFILE_SUBDIR\"" >>confdefs.h
16298 # Check whether --with-default-archive-subdir was given.
16299 if test ${with_default_archive_subdir+y}
16301 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
16303 e) DEFAULT_ARCHIVE_SUBDIR="archive" ;;
16308 printf "%s\n" "#define DEFAULT_ARCHIVE_SUBDIR \"$DEFAULT_ARCHIVE_SUBDIR\"" >>confdefs.h
16312 # Check whether --with-default-backup-subdir was given.
16313 if test ${with_default_backup_subdir+y}
16315 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
16317 e) DEFAULT_BACKUP_SUBDIR="backup" ;;
16322 printf "%s\n" "#define DEFAULT_BACKUP_SUBDIR \"$DEFAULT_BACKUP_SUBDIR\"" >>confdefs.h
16326 # Check whether --with-default-cache-subdir was given.
16327 if test ${with_default_cache_subdir+y}
16329 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
16331 e) DEFAULT_CACHE_SUBDIR="cache" ;;
16336 printf "%s\n" "#define DEFAULT_CACHE_SUBDIR \"$DEFAULT_CACHE_SUBDIR\"" >>confdefs.h
16339 # Select default system locking dir, prefer /run/lock over /var/lock
16340 DEFAULT_SYS_LOCK_DIR="$RUN_DIR/lock"
16341 test -d "$DEFAULT_SYS_LOCK_DIR" || DEFAULT_SYS_LOCK_DIR="/var/lock"
16343 # Support configurable locking subdir for lvm
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default lock directory" >&5
16345 printf %s "checking for default lock directory... " >&6; }
16347 # Check whether --with-default-locking-dir was given.
16348 if test ${with_default_locking_dir+y}
16350 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
16352 e) DEFAULT_LOCK_DIR="$DEFAULT_SYS_LOCK_DIR/lvm" ;;
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_LOCK_DIR" >&5
16357 printf "%s\n" "$DEFAULT_LOCK_DIR" >&6; }
16359 printf "%s\n" "#define DEFAULT_LOCK_DIR \"$DEFAULT_LOCK_DIR\"" >>confdefs.h
16362 # No --with configure setting, but store in the main configure.h
16364 printf "%s\n" "#define DEFAULT_PROC_DIR \"/proc\"" >>confdefs.h
16367 ################################################################################
16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
16369 printf %s "checking for kernel interface choice... " >&6; }
16371 # Check whether --with-interface was given.
16372 if test ${with_interface+y}
16374 withval=$with_interface; interface=$withval
16376 e) interface="ioctl" ;;
16380 if test "$interface" != "ioctl"
16382 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
16385 printf "%s\n" "$interface" >&6; }
16387 ################################################################################
16388 read DM_LIB_VERSION < "$srcdir"/VERSION_DM 2>/dev/null || DM_LIB_VERSION="Unknown"
16390 printf "%s\n" "#define DM_LIB_VERSION \"$DM_LIB_VERSION\"" >>confdefs.h
16393 DM_LIB_PATCHLEVEL=$($AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}' "$srcdir"/VERSION_DM)
16395 read VER < "$srcdir"/VERSION 2>/dev/null || VER=Unknown
16397 LVM_VERSION=\"$VER\"
16398 LVM_RELEASE_DATE="\"$(echo $VER | $SED 's/.* (//;s/).*//')\""
16399 VER=$(echo "$VER" | $AWK '{print $1}')
16400 LVM_RELEASE="\"$(echo "$VER" | $AWK -F '-' '{print $2}')\""
16401 VER=$(echo "$VER" | $AWK -F '-' '{print $1}')
16402 LVM_MAJOR=$(echo "$VER" | $AWK -F '.' '{print $1}')
16403 LVM_MINOR=$(echo "$VER" | $AWK -F '.' '{print $2}')
16404 LVM_PATCHLEVEL=$(echo "$VER" | $AWK -F '[(.]' '{print $3}')
16405 LVM_LIBAPI=$(echo "$VER" | $AWK -F '[()]' '{print $2}')
16408 printf "%s\n" "#define LVM_CONFIGURE_LINE \"$CONFIGURE_LINE\"" >>confdefs.h
16411 ################################################################################
16412 # Allow users to override default location for libaio
16413 # there seems to be no pkg-config support available
16414 AIO_CFLAGS=${AIO_CFLAGS:-}
16415 AIO_LIBS=${AIO_LIBS:--laio}
16422 ################################################################################
16566 ################################################################################
16567 ac_config_files="$ac_config_files Makefile make.tmpl libdm/make.tmpl daemons/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmeventd/plugins/vdo/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/dm-tools/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/lvm2-pvscan.service scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/lvmlockd.service scripts/lvmlocks.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile tools/Makefile udev/Makefile"
16569 cat >confcache <<\_ACEOF
16570 # This file is a shell script that caches the results of configure
16571 # tests run on this system so they can be shared between configure
16572 # scripts and configure runs, see configure's option --config-cache.
16573 # It is not useful on other systems. If it contains results you don't
16574 # want to keep, you may remove or edit it.
16576 # config.status only pays attention to the cache file if you give it
16577 # the --recheck option to rerun configure.
16579 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16580 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16581 # following values.
16585 # The following way of writing the cache mishandles newlines in values,
16586 # but we know of no workaround that is simple, portable, and efficient.
16587 # So, we kill variables containing newlines.
16588 # Ultrix sh set writes to stderr and can't be redirected directly,
16589 # and sets the high bit in the cache file unless we assign to the vars.
16591 for ac_var in `(set) 2>&1 |
sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16592 eval ac_val=\$$ac_var
16596 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16597 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16600 _ | IFS | as_nl) ;; #(
16601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16602 *) { eval $ac_var=; unset $ac_var;} ;;
16608 case $as_nl`(ac_space
=' '; set) 2>&1` in #(
16609 *${as_nl}ac_space=\ *)
16610 # 'set' does not quote correctly, so add quotes: double-quote
16611 # substitution turns \\\\ into \\, and sed turns \\ into \.
16614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16617 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16627 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16629 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16631 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16632 if test -w "$cache_file"; then
16633 if test "x$cache_file" != "x/dev/null"; then
16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16635 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16636 if test ! -f "$cache_file" || test -h "$cache_file"; then
16637 cat confcache >"$cache_file"
16639 case $cache_file in #(
16641 mv -f confcache "$cache_file"$$ &&
16642 mv -f "$cache_file"$$ "$cache_file" ;; #(
16644 mv -f confcache "$cache_file" ;;
16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16650 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16656 # Let make expand exec_prefix.
16657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16659 DEFS=-DHAVE_CONFIG_H
16664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16665 # 1. Remove the extension, and $U if already installed.
16666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16667 ac_i=`printf "%s\n" "$ac_i" |
sed "$ac_script"`
16668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16669 # will be set to the directory where LIBOBJS objects are built.
16670 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16671 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16673 LIBOBJS=$ac_libobjs
16675 LTLIBOBJS=$ac_ltlibobjs
16679 : "${CONFIG_STATUS=./config.status}"
16681 ac_clean_files_save=$ac_clean_files
16682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16684 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16688 # Generated by $as_me.
16689 # Run this file to recreate the current configuration.
16690 # Compiler output produced by configure, useful for debugging
16691 # configure, is in config.log if it exists.
16694 ac_cs_recheck=false
16697 SHELL=\${CONFIG_SHELL-$SHELL}
16700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16701 ## -------------------- ##
16702 ## M4sh Initialization. ##
16703 ## -------------------- ##
16705 # Be more Bourne compatible
16706 DUALCASE=1; export DUALCASE # for MKS sh
16707 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16711 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16712 # is contrary to our usage. Disable this feature.
16713 alias -g '${1+"$@"}'='"$@"'
16714 setopt NO_GLOB_SUBST
16716 e) case `(set -o) 2>/dev
/null
` in #(
16727 # Reset variables that may have inherited troublesome values from
16730 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16731 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16732 # side effect of setting IFS to empty, thus disabling word splitting.)
16733 # Quoting is to prevent editors from complaining about space-tab.
16743 # Ensure predictable behavior from utilities with locale-dependent output.
16749 # We cannot yet rely on "unset" to work, but we need these variables
16750 # to be unset--not just set to an empty or harmless value--now, to
16751 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16752 # also avoids known problems related to "unset" and subshell syntax
16753 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16754 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16755 do eval test \${$as_var+y} \
16756 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16759 # Ensure that fds 0, 1, and 2 are open.
16760 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16761 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16762 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16764 # The user is always right.
16765 if ${PATH_SEPARATOR+false} :; then
16767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16774 # Find who we are. Look in the path if we contain no directory separator.
16777 *[\\/]* ) as_myself=$0 ;;
16778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779 for as_dir in $PATH
16782 case $as_dir in #(((
16785 *) as_dir=$as_dir/ ;;
16787 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16793 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16794 # in which case we are not to be found in the path.
16795 if test "x$as_myself" = x; then
16798 if test ! -f "$as_myself"; then
16799 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16805 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16806 # ----------------------------------------
16807 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16808 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16809 # script with STATUS, using 1 if that was 0.
16812 as_status=$1; test $as_status -eq 0 && as_status=1
16814 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16817 printf "%s\n" "$as_me: error: $2" >&2
16818 as_fn_exit $as_status
16822 # as_fn_set_status STATUS
16823 # -----------------------
16824 # Set $? to STATUS, without forking.
16825 as_fn_set_status ()
16828 } # as_fn_set_status
16830 # as_fn_exit STATUS
16831 # -----------------
16832 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16836 as_fn_set_status $1
16842 # Portably unset VAR.
16845 { eval $1=; unset $1;}
16847 as_unset=as_fn_unset
16849 # as_fn_append VAR VALUE
16850 # ----------------------
16851 # Append the text in VALUE to the end of the definition contained in VAR. Take
16852 # advantage of any shell optimizations that allow amortized linear growth over
16853 # repeated appends, instead of the typical quadratic growth present in naive
16855 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16857 eval 'as_fn_append ()
16869 # as_fn_arith ARG...
16870 # ------------------
16871 # Perform arithmetic evaluation on the ARGs, and store the result in the
16872 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16873 # must be portable across $(()) and expr.
16874 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16876 eval 'as_fn_arith ()
16883 as_val=`expr "$@" ||
test $?
-eq 1`
16889 if expr a : '\(a\)' >/dev/null 2>&1 &&
16890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16897 as_basename=basename
16902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16908 as_me=`$as_basename -- "$0" ||
16909 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16910 X
"$0" : 'X\(//\)$' \| \
16911 X
"$0" : 'X\(/\)' \| .
2>/dev
/null ||
16912 printf "%s\n" X
/"$0" |
16913 sed '/^.*\/\([^/][^/]*\)\/*$/{
16927 # Avoid depending upon Character Ranges.
16928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16931 as_cr_digits='0123456789'
16932 as_cr_alnum=$as_cr_Letters$as_cr_digits
16935 # Determine whether it's possible to make 'echo' print without a newline.
16936 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16937 # for compatibility with existing Makefiles.
16938 ECHO_C= ECHO_N= ECHO_T=
16939 case `echo -n x
` in #(((((
16941 case `echo 'xy\c'` in
16942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16944 *) echo `echo ksh88 bug on AIX
6.1` > /dev/null
16951 # For backward compatibility with old third-party macros, we provide
16952 # the shell variables $as_echo and $as_echo_n. New code should use
16953 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16954 as_echo='printf %s\n'
16955 as_echo_n='printf %s'
16957 rm -f conf$$ conf$$.exe conf$$.file
16958 if test -d conf$$.dir; then
16959 rm -f conf$$.dir/conf$$.file
16962 mkdir conf$$.dir 2>/dev/null
16964 if (echo >conf$$.file) 2>/dev/null; then
16965 if ln -s conf$$.file conf$$ 2>/dev/null; then
16967 # ... but there are two gotchas:
16968 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16969 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16970 # In both cases, we have to default to 'cp -pR'.
16971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16973 elif ln conf$$.file conf$$ 2>/dev/null; then
16981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16982 rmdir conf$$.dir 2>/dev/null
16987 # Create "$as_dir" as a directory, including parents if necessary.
16992 -*) as_dir=./$as_dir;;
16994 test -d "$as_dir" || eval $as_mkdir_p || {
16998 *\'*) as_qdir=`printf "%s\n" "$as_dir" |
sed "s/'/'\\\\\\\\''/g"`;; #'(
16999 *) as_qdir=$as_dir;;
17001 as_dirs="'$as_qdir' $as_dirs"
17002 as_dir=`$as_dirname -- "$as_dir" ||
17003 $as_expr X
"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17004 X
"$as_dir" : 'X\(//\)[^/]' \| \
17005 X
"$as_dir" : 'X\(//\)$' \| \
17006 X
"$as_dir" : 'X\(/\)' \| .
2>/dev
/null ||
17007 printf "%s\n" X
"$as_dir" |
17008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17012 /^X\(\/\/\)[^/].*/{
17025 test -d "$as_dir" && break
17027 test -z "$as_dirs" || eval "mkdir $as_dirs"
17028 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17032 if mkdir -p . 2>/dev/null; then
17033 as_mkdir_p='mkdir -p "$as_dir"'
17035 test -d ./-p && rmdir ./-p
17040 # as_fn_executable_p FILE
17041 # -----------------------
17042 # Test if FILE is an executable regular file.
17043 as_fn_executable_p ()
17045 test -f "$1" && test -x "$1"
17046 } # as_fn_executable_p
17047 as_test_x='test -x'
17048 as_executable_p=as_fn_executable_p
17050 # Sed expression to map a string onto a valid CPP name.
17051 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17052 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17054 # Sed expression to map a string onto a valid variable name.
17055 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17056 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17060 ## ----------------------------------- ##
17061 ## Main body of $CONFIG_STATUS script. ##
17062 ## ----------------------------------- ##
17064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17067 # Save the log message, to keep $0 and so on meaningful, and to
17068 # report actual input values of CONFIG_FILES etc. instead of their
17069 # values after options handling.
17071 This file was extended by $as_me, which was
17072 generated by GNU Autoconf 2.72. Invocation command line was
17074 CONFIG_FILES = $CONFIG_FILES
17075 CONFIG_HEADERS = $CONFIG_HEADERS
17076 CONFIG_LINKS = $CONFIG_LINKS
17077 CONFIG_COMMANDS = $CONFIG_COMMANDS
17080 on `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
17085 case $ac_config_files in *"
17086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17089 case $ac_config_headers in *"
17090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 # Files that config.status was made for.
17096 config_files="$ac_config_files"
17097 config_headers="$ac_config_headers"
17101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103 '$as_me' instantiates files and other configuration actions
17104 from templates according to the current configuration. Unless the files
17105 and actions are specified as TAGs, all are instantiated by default.
17107 Usage: $0 [OPTION]... [TAG]...
17109 -h, --help print this help, then exit
17110 -V, --version print version number and configuration settings, then exit
17111 --config print configuration, then exit
17112 -q, --quiet, --silent
17113 do not print progress messages
17114 -d, --debug don't remove temporary files
17115 --recheck update $as_me by reconfiguring in the same conditions
17116 --file=FILE[:TEMPLATE]
17117 instantiate the configuration file FILE
17118 --header=FILE[:TEMPLATE]
17119 instantiate the configuration header FILE
17121 Configuration files:
17124 Configuration headers:
17127 Report bugs to the package provider."
17130 ac_cs_config=`printf "%s\n" "$ac_configure_args" |
sed "$ac_safe_unquote"`
17131 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" |
sed "s/^ //; s/'/'\\\\\\\\''/g"`
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 ac_cs_config='$ac_cs_config_escaped'
17136 configured by $0, generated by GNU Autoconf 2.72,
17137 with options \\"\$ac_cs_config\\"
17139 Copyright (C) 2023 Free Software Foundation, Inc.
17140 This config.status script is free software; the Free Software Foundation
17141 gives unlimited permission to copy, distribute and modify it."
17148 test -n "\$AWK" || AWK=awk
17151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 # The default lists apply if the user does not specify any file.
17158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17159 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17175 # Handling of the options.
17176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17179 printf "%s\n" "$ac_cs_version"; exit ;;
17180 --config | --confi | --conf | --con | --co | --c )
17181 printf "%s\n" "$ac_cs_config"; exit ;;
17182 --debug | --debu | --deb | --de | --d | -d )
17184 --file | --fil | --fi | --f )
17187 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
17188 '') as_fn_error $? "missing file argument" ;;
17190 as_fn_append CONFIG_FILES " '$ac_optarg'"
17191 ac_need_defaults=false;;
17192 --header | --heade | --head | --hea )
17195 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
17197 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17198 ac_need_defaults=false;;
17200 # Conflict between --help and --header
17201 as_fn_error $? "ambiguous option: '$1'
17202 Try '$0 --help' for more information.";;
17203 --help | --hel | -h )
17204 printf "%s\n" "$ac_cs_usage"; exit ;;
17205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17209 # This is an error.
17210 -*) as_fn_error $? "unrecognized option: '$1'
17211 Try '$0 --help' for more information." ;;
17213 *) as_fn_append ac_config_targets " $1"
17214 ac_need_defaults=false ;;
17220 ac_configure_extra_args=
17222 if $ac_cs_silent; then
17224 ac_configure_extra_args="$ac_configure_extra_args --silent"
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 if \$ac_cs_recheck; then
17230 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17232 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17233 CONFIG_SHELL='$SHELL'
17234 export CONFIG_SHELL
17239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17244 ## Running $as_me. ##
17246 printf "%s\n" "$ac_log"
17250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17255 # Handling of arguments.
17256 for ac_config_target in $ac_config_targets
17258 case $ac_config_target in
17259 "include/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS include/configure.h" ;;
17260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17261 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
17262 "libdm/make.tmpl") CONFIG_FILES="$CONFIG_FILES libdm/make.tmpl" ;;
17263 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
17264 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
17265 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
17266 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
17267 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
17268 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
17269 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
17270 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
17271 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
17272 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
17273 "daemons/dmeventd/plugins/vdo/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/vdo/Makefile" ;;
17274 "daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;;
17275 "daemons/lvmdbusd/lvmdbusd") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdbusd" ;;
17276 "daemons/lvmdbusd/lvmdb.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdb.py" ;;
17277 "daemons/lvmdbusd/lvm_shell_proxy.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvm_shell_proxy.py" ;;
17278 "daemons/lvmdbusd/path.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/path.py" ;;
17279 "daemons/lvmpolld/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmpolld/Makefile" ;;
17280 "daemons/lvmlockd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmlockd/Makefile" ;;
17281 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
17282 "conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;;
17283 "conf/lvmlocal.conf") CONFIG_FILES="$CONFIG_FILES conf/lvmlocal.conf" ;;
17284 "conf/command_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/command_profile_template.profile" ;;
17285 "conf/metadata_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/metadata_profile_template.profile" ;;
17286 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17287 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17288 "include/lvm-version.h") CONFIG_FILES="$CONFIG_FILES include/lvm-version.h" ;;
17289 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
17290 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
17291 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
17292 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
17293 "libdm/dm-tools/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/dm-tools/Makefile" ;;
17294 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
17295 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17296 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
17297 "scripts/lvm2-pvscan.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2-pvscan.service" ;;
17298 "scripts/blkdeactivate.sh") CONFIG_FILES="$CONFIG_FILES scripts/blkdeactivate.sh" ;;
17299 "scripts/blk_availability_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_init_red_hat" ;;
17300 "scripts/blk_availability_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_systemd_red_hat.service" ;;
17301 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
17302 "scripts/com.redhat.lvmdbus1.service") CONFIG_FILES="$CONFIG_FILES scripts/com.redhat.lvmdbus1.service" ;;
17303 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
17304 "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
17305 "scripts/lvm2_cmirrord_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cmirrord_systemd_red_hat.service" ;;
17306 "scripts/lvm2_lvmdbusd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmdbusd_systemd_red_hat.service" ;;
17307 "scripts/lvm2_lvmpolld_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_init_red_hat" ;;
17308 "scripts/lvm2_lvmpolld_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.service" ;;
17309 "scripts/lvm2_lvmpolld_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.socket" ;;
17310 "scripts/lvmlockd.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlockd.service" ;;
17311 "scripts/lvmlocks.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlocks.service" ;;
17312 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
17313 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
17314 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
17315 "scripts/lvmdump.sh") CONFIG_FILES="$CONFIG_FILES scripts/lvmdump.sh" ;;
17316 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17317 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17318 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17319 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
17321 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17326 # If the user did not use the arguments to specify the items to instantiate,
17327 # then the envvar interface is used. Set only those that are not.
17328 # We use the long form for the default assignment because of an extremely
17329 # bizarre bug on SunOS 4.1.3.
17330 if $ac_need_defaults; then
17331 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17332 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17335 # Have a temporary directory for convenience. Make it in the build tree
17336 # simply because there is no reason against having it here, and in addition,
17337 # creating and moving files from /tmp can sometimes cause problems.
17338 # Hook for its removal unless debugging.
17339 # Note that there is a small window in which the directory will not be cleaned:
17340 # after its creation but before its name has been assigned to '$tmp'.
17344 trap 'exit_status=$?
17345 : "${ac_tmp:=$tmp}"
17346 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17348 trap 'as_fn_exit 1' 1 2 13 15
17350 # Create a (secure) tmp directory for tmp files.
17353 tmp=`(umask 077 && mktemp
-d "./confXXXXXX") 2>/dev
/null
` &&
17357 tmp=./conf$$-$RANDOM
17358 (umask 077 && mkdir "$tmp")
17359 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17362 # Set up the scripts for CONFIG_FILES section.
17363 # No need to generate them if there are no CONFIG_FILES.
17364 # This happens for instance with './config.status config.h'.
17365 if test -n "$CONFIG_FILES"; then
17368 ac_cr=`echo X |
tr X
'\015'`
17369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17370 # But we know of no other shell where ac_cr would be empty at this
17371 # point, so we can use a bashism as a fallback.
17372 if test "x$ac_cr" = x; then
17373 eval ac_cr=\$\'\\r\'
17375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev
/null
2>/dev
/null
`
17376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17379 ac_cs_awk_cr=$ac_cr
17382 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17387 echo "cat >conf$$subs.awk <<_ACEOF" &&
17388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17390 } >conf$$subs.sh ||
17391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17392 ac_delim_num=`echo "$ac_subst_vars" |
grep -c '^'`
17394 for ac_last_try in false false false false false :; do
17395 . ./conf$$subs.sh ||
17396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$
$subs.
awk |
grep -c X
`
17399 if test $ac_delim_n = $ac_delim_num; then
17401 elif $ac_last_try; then
17402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17407 rm -f conf$$subs.sh
17409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17410 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17414 s/^/S["/; s/!.*/"]=/
17424 s/\(.\{148\}\)..*/\1/
17426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17438 s/\(.\{148\}\)..*/\1/
17440 s/["\\]/\\&/g; s/^/"/; s/$/"/
17444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17449 ' <conf$$subs.awk | sed '
17454 ' >>$CONFIG_STATUS || ac_write_fail=1
17455 rm -f conf$$subs.awk
17456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17458 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17459 for (key in S) S_is_set[key] = 1
17465 nfields = split(line, field, "@")
17467 len = length(field[1])
17468 for (i = 2; i < nfields; i++) {
17470 keylen = length(key)
17471 if (S_is_set[key]) {
17473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17474 len += length(value) + length(field[++i])
17485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17490 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17494 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17495 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17496 # trailing colons and then remove the whole line if VPATH becomes empty
17497 # (actually we leave an empty line to preserve line numbers).
17498 if test "x$srcdir" = x.; then
17499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17518 fi # test -n "$CONFIG_FILES"
17520 # Set up the scripts for CONFIG_HEADERS section.
17521 # No need to generate them if there are no CONFIG_HEADERS.
17522 # This happens for instance with './config.status Makefile'.
17523 if test -n "$CONFIG_HEADERS"; then
17524 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17528 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17529 # here-document in config.status, that substitutes the proper values into
17530 # config.h.in to produce config.h.
17532 # Create a delimiter string that does not exist in confdefs.h, to ease
17533 # handling of long lines.
17535 for ac_last_try in false false :; do
17536 ac_tt=`sed -n "/$ac_delim/p" confdefs.h
`
17537 if test -z "$ac_tt"; then
17539 elif $ac_last_try; then
17540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17546 # For the awk script, D is an array of macro values keyed by name,
17547 # likewise P contains macro parameters if any. Preserve backslash
17548 # newline sequences.
17550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17552 s/.\{148\}/&'"$ac_delim"'/g
17555 s/^[ ]*#[ ]*define[ ][ ]*/ /
17562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17569 D["\1"]=" \3\\\\\\n"\\/p
17571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17576 s/.\{148\}/&'"$ac_delim"'/g
17581 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17584 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17586 ' <confdefs.h | sed '
17587 s/'"$ac_delim"'/"\\\
17588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17591 for (key in D) D_is_set[key] = 1
17594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17596 split(line, arg, " ")
17597 if (arg[1] == "#") {
17601 defundef = substr(arg[1], 2)
17604 split(mac1, mac2, "(") #)
17606 prefix = substr(line, 1, index(line, defundef) - 1)
17607 if (D_is_set[macro]) {
17608 # Preserve the white space surrounding the "#".
17609 print prefix "define", macro P[macro] D[macro]
17612 # Replace #undef with comments. This is necessary, for example,
17613 # in the case of _POSIX_SOURCE, which is predefined and required
17614 # on some systems where configure will not decide to define it.
17615 if (defundef == "undef") {
17616 print "/*", prefix defundef, macro, "*/"
17624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17626 fi # test -n "$CONFIG_HEADERS"
17629 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17634 :[FHLC]) ac_mode=$ac_tag; continue;;
17636 case $ac_mode$ac_tag in
17638 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17639 :[FH]-) ac_tag=-:-;;
17640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17657 -) ac_f="$ac_tmp/stdin";;
17658 *) # Look for the file first in the build tree, then in the source tree
17659 # (if the path is not absolute). The absolute path cannot be DOS-style,
17660 # because $ac_f cannot contain ':'.
17664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17666 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17668 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" |
sed "s/'/'\\\\\\\\''/g"`;; esac
17669 as_fn_append ac_file_inputs " '$ac_f'"
17672 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17673 # use $as_me), people would be surprised to read:
17674 # /* config.h. Generated by config.status. */
17675 configure_input='Generated from '`
17676 printf "%s\n" "$*" |
sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17678 if test x"$ac_file" != x-; then
17679 configure_input="$ac_file. $configure_input"
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17681 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17683 # Neutralize special characters interpreted by sed in replacement strings.
17684 case $configure_input in #(
17685 *\&* | *\|* | *\\* )
17686 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17688 *) ac_sed_conf_input=$configure_input;;
17692 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17698 ac_dir=`$as_dirname -- "$ac_file" ||
17699 $as_expr X
"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17700 X
"$ac_file" : 'X\(//\)[^/]' \| \
17701 X
"$ac_file" : 'X\(//\)$' \| \
17702 X
"$ac_file" : 'X\(/\)' \| .
2>/dev
/null ||
17703 printf "%s\n" X
"$ac_file" |
17704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17708 /^X\(\/\/\)[^/].*/{
17721 as_dir="$ac_dir"; as_fn_mkdir_p
17725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17727 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
17728 # A ".." for each directory in $ac_dir_suffix.
17729 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
17730 case $ac_top_builddir_sub in
17731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17735 ac_abs_top_builddir=$ac_pwd
17736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17737 # for backward compatibility:
17738 ac_top_builddir=$ac_top_build_prefix
17741 .) # We are building in place.
17743 ac_top_srcdir=$ac_top_builddir_sub
17744 ac_abs_top_srcdir=$ac_pwd ;;
17745 [\\/]* | ?:[\\/]* ) # Absolute name.
17746 ac_srcdir=$srcdir$ac_dir_suffix;
17747 ac_top_srcdir=$srcdir
17748 ac_abs_top_srcdir=$srcdir ;;
17749 *) # Relative name.
17750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17751 ac_top_srcdir=$ac_top_build_prefix$srcdir
17752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17767 ac_MKDIR_P=$MKDIR_P
17769 [\\/$]* | ?:[\\/]* ) ;;
17770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775 # If the template does not know about datarootdir, expand it.
17776 # FIXME: This hack should be removed a few years after 2.60.
17777 ac_datarootdir_hack=; ac_datarootdir_seen=
17788 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17789 *datarootdir*) ac_datarootdir_seen=yes;;
17790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17792 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17795 ac_datarootdir_hack='
17796 s&@datadir@&$datadir&g
17797 s&@docdir@&$docdir&g
17798 s&@infodir@&$infodir&g
17799 s&@localedir@&$localedir&g
17800 s&@mandir@&$mandir&g
17801 s&\\\${datarootdir}&$datarootdir&g' ;;
17805 # Neutralize VPATH when '$srcdir' = '.'.
17806 # Shell code in configure.ac might set extrasub.
17807 # FIXME: do we really want to maintain this feature?
17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17809 ac_sed_extra="$ac_vpsub
17812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17815 s|@configure_input@|$ac_sed_conf_input|;t t
17816 s&@top_builddir@&$ac_top_builddir_sub&;t t
17817 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17818 s&@srcdir@&$ac_srcdir&;t t
17819 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17820 s&@top_srcdir@&$ac_top_srcdir&;t t
17821 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17822 s&@builddir@&$ac_builddir&;t t
17823 s&@abs_builddir@&$ac_abs_builddir&;t t
17824 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17825 s&@INSTALL@&$ac_INSTALL&;t t
17826 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17827 $ac_datarootdir_hack
17829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17835 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17837 which seems to be undefined. Please make sure it is defined" >&5
17838 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17839 which seems to be undefined. Please make sure it is defined" >&2;}
17841 rm -f "$ac_tmp/stdin"
17843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17852 if test x"$ac_file" != x-; then
17854 printf "%s\n" "/* $configure_input */" >&1 \
17855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17856 } >"$ac_tmp/config.h" \
17857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17858 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17860 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17863 mv "$ac_tmp/config.h" "$ac_file" \
17864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17867 printf "%s\n" "/* $configure_input */" >&1 \
17868 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17869 || as_fn_error $? "could not create -" "$LINENO" 5
17881 ac_clean_files=$ac_clean_files_save
17883 test $ac_write_fail = 0 ||
17884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17887 # configure is writing to config.log, and then calls config.status.
17888 # config.status does its own redirection, appending to config.log.
17889 # Unfortunately, on DOS this fails, as config.log is still kept open
17890 # by configure, so config.status won't be able to write to it; its
17891 # output is simply discarded. So we exec the FD to /dev/null,
17892 # effectively closing config.log, so it can be properly (re)opened and
17893 # appended to by config.status. When coming back to configure, we
17894 # need to make the FD available again.
17895 if test "$no_create" != yes; then
17897 ac_config_status_args=
17898 test "$silent" = yes &&
17899 ac_config_status_args="$ac_config_status_args --quiet"
17901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17904 # would make configure fail if this is the last instruction.
17905 $ac_cs_success || as_fn_exit 1
17907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17909 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17913 if test -n "$THIN_CONFIGURE_WARN"
17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5
17916 printf "%s\n" "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;}
17919 if test -n "$THIN_CHECK_VERSION_WARN"
17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&5
17922 printf "%s\n" "$as_me: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&2;}
17925 if test -n "$CACHE_CONFIGURE_WARN"
17927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5
17928 printf "%s\n" "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;}
17931 if test -n "$CACHE_CHECK_VERSION_WARN"
17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&5
17934 printf "%s\n" "$as_me: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&2;}
17937 if test -n "$VDO_CONFIGURE_WARN"
17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&5
17940 printf "%s\n" "$as_me: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&2;}
17943 if test -n "$LVM_NEEDS_LIBAIO_WARN"
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&5
17946 printf "%s\n" "$as_me: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&2;}
17949 if test "$ODIRECT" != "yes"
17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17952 printf "%s\n" "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
17955 if test "$BUILD_LVMDBUSD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no"
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building D-Bus support without D-Bus notifications!" >&5
17958 printf "%s\n" "$as_me: WARNING: Building D-Bus support without D-Bus notifications!" >&2;}