]> sourceware.org Git - lvm2.git/blame_incremental - configure
devices: fix dev_dm_uuid
[lvm2.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7# Inc.
8#
9#
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## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac ;;
33esac
34fi
35
36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
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.
45as_nl='
46'
47export as_nl
48IFS=" "" $as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
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).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75# The user is always right.
76if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84
85# Find who we are. Look in the path if we contain no directory separator.
86as_myself=
87case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114
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.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $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'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142then :
143 emulate sh
144 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155esac ;;
156esac
157fi
158"
159 as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
172
173else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175esac
176fi
177test x\$exitcode = x0 || exit 1
178blah=\$(echo \$(echo blah))
179test x\"\$blah\" = xblah || exit 1
180test -x / || 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
185test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187then :
188 as_have_required=yes
189else case e in #(
190 e) as_have_required=no ;;
191esac
192fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
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
215then :
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
218then :
219 break 2
220fi
221fi
222 done;;
223 esac
224 as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi ;;
236esac
237fi
238
239
240 if test "x$CONFIG_SHELL" != x
241then :
242 export CONFIG_SHELL
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.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $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'.
259printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
261fi
262
263 if test x$as_have_required = xno
264then :
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."
270 else
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."
275 fi
276 exit 1
277fi ;;
278esac
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295 { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305 return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313 set +e
314 as_fn_set_status $1
315 exit $1
316} # as_fn_exit
317
318# as_fn_mkdir_p
319# -------------
320# Create "$as_dir" as a directory, including parents if necessary.
321as_fn_mkdir_p ()
322{
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
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 ||
340printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364} # as_fn_mkdir_p
365
366# as_fn_executable_p FILE
367# -----------------------
368# Test if FILE is an executable regular file.
369as_fn_executable_p ()
370{
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
378# implementations.
379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390esac
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409esac
410fi # as_fn_arith
411
412
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.
418as_fn_error ()
419{
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
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
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432else
433 as_expr=false
434fi
435
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438else
439 as_basename=false
440fi
441
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444else
445 as_dirname=false
446fi
447
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
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. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
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; }
499
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).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510}
511
512
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.
516ECHO_C= ECHO_N= ECHO_T=
517case `echo -n x` in #(((((
518-n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525*)
526 ECHO_N='-n';;
527esac
528
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.
532as_echo='printf %s\n'
533as_echo_n='printf %s'
534
535rm -f conf$$ conf$$.exe conf$$.file
536if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541fi
542if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
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 ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556else
557 as_ln_s='cp -pR'
558fi
559rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560rmdir conf$$.dir 2>/dev/null
561
562if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567fi
568
569as_test_x='test -x'
570as_executable_p=as_fn_executable_p
571
572# Sed expression to map a string onto a valid CPP name.
573as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576# Sed expression to map a string onto a valid variable name.
577as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581test -n "$DJDIR" || exec 7<&0 </dev/null
582exec 6>&1
583
584# Name of the host.
585# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586# so uname gets run too.
587ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589#
590# Initializations.
591#
592ac_default_prefix=/usr/local
593ac_clean_files=
594ac_config_libobj_dir=.
595LIBOBJS=
596cross_compiling=no
597subdirs=
598MFLAGS=
599MAKEFLAGS=
600
601# Identity of this package.
602PACKAGE_NAME=''
603PACKAGE_TARNAME=''
604PACKAGE_VERSION=''
605PACKAGE_STRING=''
606PACKAGE_BUGREPORT=''
607PACKAGE_URL=''
608
609ac_unique_file="lib/device/dev-cache.h"
610# Factoring default headers for most tests.
611ac_includes_default="\
612#include <stddef.h>
613#ifdef HAVE_STDIO_H
614# include <stdio.h>
615#endif
616#ifdef HAVE_STDLIB_H
617# include <stdlib.h>
618#endif
619#ifdef HAVE_STRING_H
620# include <string.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_STRINGS_H
629# include <strings.h>
630#endif
631#ifdef HAVE_SYS_TYPES_H
632# include <sys/types.h>
633#endif
634#ifdef HAVE_SYS_STAT_H
635# include <sys/stat.h>
636#endif
637#ifdef HAVE_UNISTD_H
638# include <unistd.h>
639#endif"
640
641ac_header_c_list=
642ac_func_c_list=
643ac_default_prefix=/usr
644ac_subst_vars='LTLIBOBJS
645usrsbindir
646usrlibdir
647udev_prefix
648udevdir
649tmpfilesdir
650tmpdir
651modulesdir
652missingkernel
653kernelvsn
654kerneldir
655interface
656WRITE_INSTALL
657WRITECACHE
658VDO_LIB
659VDO_INCLUDE
660VDO
661VALGRIND_POOL
662USRSBINDIR
663USE_TRACKING
664UDEV_SYNC
665UDEV_STATIC_LIBS
666UDEV_RULE_EXEC_DETECTION
667UDEV_RULES
668UDEV_PC
669UDEV_HAS_BUILTIN_BLKID
670THIN
671TESTSUITE_DATA
672SYSCONFDIR
673STATIC_LINK
674STATIC_LDFLAGS
675STATICDIR
676SNAPSHOTS
677SILENT_RULES
678SHARED_LINK
679SELINUX_STATIC_LIBS
680SELINUX_PC
681SBINDIR
682RT_LIBS
683PYTHON3DIR
684PYTHON3
685PYTHON2DIR
686PYTHON2
687PTHREAD_LIBS
688PKGCONFIG
689ODIRECT
690OCFDIR
691OCF
692M_LIBS
693MIRRORS
694MANGLING
695LVRESIZE_FS_HELPER_PATH
696LVM_VERSION
697LVM_RELEASE_DATE
698LVM_RELEASE
699LVM_PATH
700LVM_PATCHLEVEL
701LVM_MINOR
702LVM_MAJOR
703LVM_LIBAPI
704LVMPOLLD_PIDFILE
705LVMLOCKD_PIDFILE
706LVMIMPORTVDO_PATH
707LVMIMPORTVDO
708LVM2CMD_LIB
709LIB_SUFFIX
710LDDEPS
711JOBS
712INTL
713INTEGRITY
714FSADM_PATH
715FSADM
716ELDFLAGS
717DM_LIB_PATCHLEVEL
718DMEVENTD_PIDFILE
719DMEVENTD_PATH
720DL_LIBS
721DEVMAPPER
722DEFAULT_USE_LVMPOLLD
723DEFAULT_USE_LVMLOCKD
724DEFAULT_USE_DEVICES_FILE
725DEFAULT_USE_BLKID_WIPING
726DEFAULT_SYS_LOCK_DIR
727DEFAULT_SYS_DIR
728DEFAULT_SPARSE_SEGTYPE
729DEFAULT_RUN_DIR
730DEFAULT_RAID10_SEGTYPE
731DEFAULT_PROFILE_SUBDIR
732DEFAULT_PROC_DIR
733DEFAULT_PID_DIR
734DEFAULT_MIRROR_SEGTYPE
735DEFAULT_LOCK_DIR
736DEFAULT_EVENT_ACTIVATION
737DEFAULT_DMEVENTD_EXIT_ON_PATH
738DEFAULT_DM_RUN_DIR
739DEFAULT_CACHE_SUBDIR
740DEFAULT_BACKUP_SUBDIR
741DEFAULT_ARCHIVE_SUBDIR
742DEBUG
743COPTIMISE_FLAG
744CONFDIR
745CMIRRORD_PIDFILE
746CMDLIB
747CLDWHOLEARCHIVE
748CLDNOWHOLEARCHIVE
749CLDFLAGS
750CACHE
751BUILD_LVMPOLLD
752BUILD_LVMLOCKD
753BUILD_LVMDBUSD
754BUILD_LOCKDSANLOCK
755BUILD_LOCKDIDM
756BUILD_LOCKDDLM_CONTROL
757BUILD_LOCKDDLM
758BUILD_DMFILEMAPD
759BUILD_DMEVENTD
760BUILD_CMIRRORD
761BLKID_STATIC_LIBS
762BLKID_PC
763BLKDEACTIVATE
764READLINE_LIBS
765READLINE_CFLAGS
766AIO_LIBS
767AIO_CFLAGS
768MODPROBE_CMD
769systemdutildir
770systemdsystemunitdir
771MSGFMT
772EDITLINE_LIBS
773EDITLINE_CFLAGS
774SELINUX_LIBS
775SELINUX_CFLAGS
776PYTHON3_CONFIG
777pkgpyexecdir
778pyexecdir
779pkgpythondir
780pythondir
781PYTHON_EXEC_PREFIX
782PYTHON_PREFIX
783PYTHON_PLATFORM
784PYTHON_VERSION
785PYTHON
786LIBSYSTEMD_LIBS
787LIBSYSTEMD_CFLAGS
788UDEV_LIBS
789UDEV_CFLAGS
790BLKID_LIBS
791BLKID_CFLAGS
792SYSTEMD_RUN_CMD
793LIBSEAGATEILM_LIBS
794LIBSEAGATEILM_CFLAGS
795LIBDLMCONTROL_LIBS
796LIBDLMCONTROL_CFLAGS
797LIBDLM_LIBS
798LIBDLM_CFLAGS
799LIBSANLOCKCLIENT_LIBS
800LIBSANLOCKCLIENT_CFLAGS
801VALGRIND_LIBS
802VALGRIND_CFLAGS
803GENPNG
804GENHTML
805LCOV
806HAVE_WSYNCNAND
807HAVE_WCLOBBERED
808HAVE_WJUMP
809CPG_LIBS
810CPG_CFLAGS
811PKG_CONFIG_LIBDIR
812PKG_CONFIG_PATH
813PKG_CONFIG
814VDO_FORMAT_CMD
815CACHE_RESTORE_CMD
816CACHE_REPAIR_CMD
817CACHE_DUMP_CMD
818CACHE_CHECK_CMD
819THIN_RESTORE_CMD
820THIN_REPAIR_CMD
821THIN_DUMP_CMD
822THIN_CHECK_CMD
823HAVE_FULL_RELRO
824HAVE_PIE
825POW_LIB
826ALLOCA
827LIBOBJS
828SORT
829WC
830CHMOD
831CSCOPE_CMD
832CFLOW_CMD
833AR
834READELF
835RANLIB
836MKDIR_P
837SET_MAKE
838EGREP
839GREP
840LN_S
841INSTALL_DATA
842INSTALL_SCRIPT
843INSTALL_PROGRAM
844ac_ct_CXX
845CXXFLAGS
846CXX
847OBJEXT
848EXEEXT
849ac_ct_CC
850CPPFLAGS
851LDFLAGS
852CFLAGS
853CC
854AWK
855SED
856target_os
857target_vendor
858target_cpu
859target
860host_os
861host_vendor
862host_cpu
863host
864build_os
865build_vendor
866build_cpu
867build
868target_alias
869host_alias
870build_alias
871LIBS
872ECHO_T
873ECHO_N
874ECHO_C
875DEFS
876mandir
877localedir
878libdir
879psdir
880pdfdir
881dvidir
882htmldir
883infodir
884docdir
885oldincludedir
886includedir
887runstatedir
888localstatedir
889sharedstatedir
890sysconfdir
891datadir
892datarootdir
893libexecdir
894sbindir
895bindir
896program_transform_name
897prefix
898exec_prefix
899PACKAGE_URL
900PACKAGE_BUGREPORT
901PACKAGE_STRING
902PACKAGE_VERSION
903PACKAGE_TARNAME
904PACKAGE_NAME
905PATH_SEPARATOR
906SHELL'
907ac_subst_files=''
908ac_user_opts='
909enable_option_checking
910enable_dependency_tracking
911enable_silent_rules
912enable_static_link
913enable_shared
914with_blkid
915with_systemd
916with_udev
917with_user
918with_group
919with_device_uid
920with_device_gid
921with_device_mode
922with_device_nodes_on
923with_default_use_devices_file
924with_default_name_mangling
925with_default_event_activation
926with_snapshots
927with_mirrors
928with_default_mirror_segtype
929with_default_raid10_segtype
930with_default_sparse_segtype
931with_thin
932with_thin_check
933with_thin_dump
934with_thin_repair
935with_thin_restore
936enable_thin_check_needs_check
937with_cache
938with_cache_check
939with_cache_dump
940with_cache_repair
941with_cache_restore
942enable_cache_check_needs_check
943with_vdo
944with_vdo_format
945with_writecache
946with_integrity
947enable_readline
948enable_editline
949enable_realtime
950enable_ocf
951with_ocfdir
952with_default_pid_dir
953with_default_dm_run_dir
954with_default_run_dir
955enable_cmirrord
956with_cmirrord_pidfile
957enable_debug
958with_optimisation
959with_symvers
960enable_profiling
961enable_valgrind_pool
962enable_devmapper
963enable_lvmpolld
964enable_lvmlockd_sanlock
965enable_lvmlockd_dlm
966enable_lvmlockd_dlmcontrol
967enable_lvmlockd_idm
968enable_use_lvmlockd
969with_lvmlockd_pidfile
970enable_use_lvmpolld
971with_lvmpolld_pidfile
972enable_systemd_journal
973enable_app_machineid
974with_systemd_run
975enable_blkid_wiping
976enable_udev_sync
977enable_udev_rules
978enable_udev_rule_exec_detection
979enable_units_compat
980enable_ioctl
981enable_o_direct
982enable_dbus_service
983enable_notify_dbus
984with_python_sys_prefix
985with_python_prefix
986with_python_exec_prefix
987enable_pkgconfig
988enable_write_install
989enable_fsadm
990enable_lvmimportvdo
991enable_blkdeactivate
992enable_dmeventd
993enable_cmdlib
994enable_dmfilemapd
995enable_selinux
996enable_blkzeroout
997enable_nls
998with_localedir
999with_confdir
1000with_staticdir
1001with_usrlibdir
1002with_usrsbindir
1003with_libexecdir
1004with_udev_prefix
1005with_udevdir
1006with_systemdsystemunitdir
1007with_tmpfilesdir
1008with_modulesdir
1009with_dmeventd_pidfile
1010with_dmeventd_path
1011with_dmeventd_exit_on_path
1012with_default_system_dir
1013with_default_profile_subdir
1014with_default_archive_subdir
1015with_default_backup_subdir
1016with_default_cache_subdir
1017with_default_locking_dir
1018with_interface
1019'
1020 ac_precious_vars='build_alias
1021host_alias
1022target_alias
1023CC
1024CFLAGS
1025LDFLAGS
1026LIBS
1027CPPFLAGS
1028CXX
1029CXXFLAGS
1030CCC
1031PKG_CONFIG
1032PKG_CONFIG_PATH
1033PKG_CONFIG_LIBDIR
1034CPG_CFLAGS
1035CPG_LIBS
1036VALGRIND_CFLAGS
1037VALGRIND_LIBS
1038LIBSANLOCKCLIENT_CFLAGS
1039LIBSANLOCKCLIENT_LIBS
1040LIBDLM_CFLAGS
1041LIBDLM_LIBS
1042LIBDLMCONTROL_CFLAGS
1043LIBDLMCONTROL_LIBS
1044LIBSEAGATEILM_CFLAGS
1045LIBSEAGATEILM_LIBS
1046BLKID_CFLAGS
1047BLKID_LIBS
1048UDEV_CFLAGS
1049UDEV_LIBS
1050LIBSYSTEMD_CFLAGS
1051LIBSYSTEMD_LIBS
1052PYTHON
1053SELINUX_CFLAGS
1054SELINUX_LIBS
1055EDITLINE_CFLAGS
1056EDITLINE_LIBS
1057systemdsystemunitdir
1058systemdutildir
1059AIO_CFLAGS
1060AIO_LIBS
1061READLINE_CFLAGS
1062READLINE_LIBS'
1063
1064
1065# Initialize some variables set by options.
1066ac_init_help=
1067ac_init_version=false
1068ac_unrecognized_opts=
1069ac_unrecognized_sep=
1070# The variables have the same names as the options, with
1071# dashes changed to underlines.
1072cache_file=/dev/null
1073exec_prefix=NONE
1074no_create=
1075no_recursion=
1076prefix=NONE
1077program_prefix=NONE
1078program_suffix=NONE
1079program_transform_name=s,x,x,
1080silent=
1081site=
1082srcdir=
1083verbose=
1084x_includes=NONE
1085x_libraries=NONE
1086
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.)
1093bindir='${exec_prefix}/bin'
1094sbindir='${exec_prefix}/sbin'
1095libexecdir='${exec_prefix}/libexec'
1096datarootdir='${prefix}/share'
1097datadir='${datarootdir}'
1098sysconfdir='${prefix}/etc'
1099sharedstatedir='${prefix}/com'
1100localstatedir='${prefix}/var'
1101runstatedir='${localstatedir}/run'
1102includedir='${prefix}/include'
1103oldincludedir='/usr/include'
1104docdir='${datarootdir}/doc/${PACKAGE}'
1105infodir='${datarootdir}/info'
1106htmldir='${docdir}'
1107dvidir='${docdir}'
1108pdfdir='${docdir}'
1109psdir='${docdir}'
1110libdir='${exec_prefix}/lib'
1111localedir='${datarootdir}/locale'
1112mandir='${datarootdir}/man'
1113
1114ac_prev=
1115ac_dashdash=
1116for ac_option
1117do
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\$ac_option
1121 ac_prev=
1122 continue
1123 fi
1124
1125 case $ac_option in
1126 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127 *=) ac_optarg= ;;
1128 *) ac_optarg=yes ;;
1129 esac
1130
1131 case $ac_dashdash$ac_option in
1132 --)
1133 ac_dashdash=yes ;;
1134
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136 ac_prev=bindir ;;
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1139
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1144
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 ;;
1151
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1154
1155 -datadir | --datadir | --datadi | --datad)
1156 ac_prev=datadir ;;
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1159
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 ;;
1166
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
1175 *"
1176"enable_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval enable_$ac_useropt=no ;;
1182
1183 -docdir | --docdir | --docdi | --doc | --do)
1184 ac_prev=docdir ;;
1185 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1186 docdir=$ac_optarg ;;
1187
1188 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1189 ac_prev=dvidir ;;
1190 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1191 dvidir=$ac_optarg ;;
1192
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
1201 *"
1202"enable_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval enable_$ac_useropt=\$ac_optarg ;;
1208
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 ;;
1217
1218 -gas | --gas | --ga | --g)
1219 # Obsolete; use --with-gas.
1220 with_gas=yes ;;
1221
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 ;;
1228
1229 -host | --host | --hos | --ho)
1230 ac_prev=host_alias ;;
1231 -host=* | --host=* | --hos=* | --ho=*)
1232 host_alias=$ac_optarg ;;
1233
1234 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1235 ac_prev=htmldir ;;
1236 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1237 | --ht=*)
1238 htmldir=$ac_optarg ;;
1239
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 ;;
1246
1247 -infodir | --infodir | --infodi | --infod | --info | --inf)
1248 ac_prev=infodir ;;
1249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1250 infodir=$ac_optarg ;;
1251
1252 -libdir | --libdir | --libdi | --libd)
1253 ac_prev=libdir ;;
1254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1255 libdir=$ac_optarg ;;
1256
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 ;;
1263
1264 -localedir | --localedir | --localedi | --localed | --locale)
1265 ac_prev=localedir ;;
1266 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1267 localedir=$ac_optarg ;;
1268
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 ;;
1275
1276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1277 ac_prev=mandir ;;
1278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1279 mandir=$ac_optarg ;;
1280
1281 -nfp | --nfp | --nf)
1282 # Obsolete; use --without-fp.
1283 with_fp=no ;;
1284
1285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1286 | --no-cr | --no-c | -n)
1287 no_create=yes ;;
1288
1289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291 no_recursion=yes ;;
1292
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 ;;
1301
1302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1303 ac_prev=prefix ;;
1304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1305 prefix=$ac_optarg ;;
1306
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 ;;
1313
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 ;;
1320
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 ;;
1337
1338 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1339 ac_prev=pdfdir ;;
1340 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1341 pdfdir=$ac_optarg ;;
1342
1343 -psdir | --psdir | --psdi | --psd | --ps)
1344 ac_prev=psdir ;;
1345 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346 psdir=$ac_optarg ;;
1347
1348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1349 | -silent | --silent | --silen | --sile | --sil)
1350 silent=yes ;;
1351
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 ;;
1360
1361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1362 ac_prev=sbindir ;;
1363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1364 | --sbi=* | --sb=*)
1365 sbindir=$ac_optarg ;;
1366
1367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1369 | --sharedst | --shareds | --shared | --share | --shar \
1370 | --sha | --sh)
1371 ac_prev=sharedstatedir ;;
1372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1375 | --sha=* | --sh=*)
1376 sharedstatedir=$ac_optarg ;;
1377
1378 -site | --site | --sit)
1379 ac_prev=site ;;
1380 -site=* | --site=* | --sit=*)
1381 site=$ac_optarg ;;
1382
1383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1384 ac_prev=srcdir ;;
1385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1386 srcdir=$ac_optarg ;;
1387
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 ;;
1394
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 ;;
1399
1400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401 verbose=yes ;;
1402
1403 -version | --version | --versio | --versi | --vers | -V)
1404 ac_init_version=: ;;
1405
1406 -with-* | --with-*)
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
1414 *"
1415"with_$ac_useropt"
1416"*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=\$ac_optarg ;;
1421
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
1430 *"
1431"with_$ac_useropt"
1432"*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval with_$ac_useropt=no ;;
1437
1438 --x)
1439 # Obsolete; use --with-x.
1440 with_x=yes ;;
1441
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 ;;
1448
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 ;;
1455
1456 -*) as_fn_error $? "unrecognized option: '$ac_option'
1457Try '$0 --help' for more information"
1458 ;;
1459
1460 *=*)
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'" ;;
1466 esac
1467 eval $ac_envvar=\$ac_optarg
1468 export $ac_envvar ;;
1469
1470 *)
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}"
1476 ;;
1477
1478 esac
1479done
1480
1481if test -n "$ac_prev"; then
1482 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483 as_fn_error $? "missing argument to $ac_option"
1484fi
1485
1486if test -n "$ac_unrecognized_opts"; then
1487 case $enable_option_checking in
1488 no) ;;
1489 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1490 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1491 esac
1492fi
1493
1494# Check all directory arguments for consistency.
1495for 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
1499do
1500 eval ac_val=\$$ac_var
1501 # Remove trailing slashes.
1502 case $ac_val in
1503 */ )
1504 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505 eval $ac_var=\$ac_val;;
1506 esac
1507 # Be sure to have absolute directory names.
1508 case $ac_val in
1509 [\\/$]* | ?:[\\/]* ) continue;;
1510 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1511 esac
1512 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1513done
1514
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.
1518build=$build_alias
1519host=$host_alias
1520target=$target_alias
1521
1522# FIXME: To remove some day.
1523if 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
1527 cross_compiling=yes
1528 fi
1529fi
1530
1531ac_tool_prefix=
1532test -n "$host_alias" && ac_tool_prefix=$host_alias-
1533
1534test "$silent" = yes && exec 6>/dev/null
1535
1536
1537ac_pwd=`pwd` && test -n "$ac_pwd" &&
1538ac_ls_di=`ls -di .` &&
1539ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1540 as_fn_error $? "working directory cannot be determined"
1541test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1542 as_fn_error $? "pwd does not report name of working directory"
1543
1544
1545# Find the source files, if location was not specified.
1546if 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 ||
1554printf "%s\n" X"$as_myself" |
1555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1556 s//\1/
1557 q
1558 }
1559 /^X\(\/\/\)[^/].*/{
1560 s//\1/
1561 q
1562 }
1563 /^X\(\/\/\)$/{
1564 s//\1/
1565 q
1566 }
1567 /^X\(\/\).*/{
1568 s//\1/
1569 q
1570 }
1571 s/.*/./; q'`
1572 srcdir=$ac_confdir
1573 if test ! -r "$srcdir/$ac_unique_file"; then
1574 srcdir=..
1575 fi
1576else
1577 ac_srcdir_defaulted=no
1578fi
1579if 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"
1582fi
1583ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1584ac_abs_confdir=`(
1585 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1586 pwd)`
1587# When building in place, set srcdir=.
1588if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 srcdir=.
1590fi
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.
1594case $srcdir in
1595*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1596esac
1597for 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}
1602done
1603
1604#
1605# Report the --help message.
1606#
1607if 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.
1610 cat <<_ACEOF
1611'configure' configures this package to adapt to many kinds of systems.
1612
1613Usage: $0 [OPTION]... [VAR=VALUE]...
1614
1615To assign environment variables (e.g., CC, CFLAGS...), specify them as
1616VAR=VALUE. See below for descriptions of some of the useful variables.
1617
1618Defaults for the options are specified in brackets.
1619
1620Configuration:
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 '..']
1630
1631Installation directories:
1632 --prefix=PREFIX install architecture-independent files in PREFIX
1633 [$ac_default_prefix]
1634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1635 [PREFIX]
1636
1637By default, 'make install' will install all the files in
1638'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1639an installation prefix other than '$ac_default_prefix' using '--prefix',
1640for instance '--prefix=\$HOME'.
1641
1642For better control, use the options below.
1643
1644Fine 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]
1665_ACEOF
1666
1667 cat <<\_ACEOF
1668
1669System types:
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]
1673_ACEOF
1674fi
1675
1676if test -n "$ac_init_help"; then
1677
1678 cat <<\_ACEOF
1679
1680Optional Features:
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
1698 resource agents
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
1739
1740Optional Packages:
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: raid1/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
1796 [default=gnu]
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
1822 [/lib/modules]
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
1829 [/run/nologin]
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]
1843
1844Some 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
1855 PKG_CONFIG_PATH
1856 directories to add to pkg-config's search path
1857 PKG_CONFIG_LIBDIR
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
1861 VALGRIND_CFLAGS
1862 C compiler flags for VALGRIND, overriding pkg-config
1863 VALGRIND_LIBS
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
1869 LIBDLM_CFLAGS
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
1874 LIBDLMCONTROL_LIBS
1875 linker flags for LIBDLMCONTROL, overriding pkg-config
1876 LIBSEAGATEILM_CFLAGS
1877 C compiler flags for LIBSEAGATEILM, overriding pkg-config
1878 LIBSEAGATEILM_LIBS
1879 linker flags for LIBSEAGATEILM, overriding pkg-config
1880 BLKID_CFLAGS
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
1885 LIBSYSTEMD_CFLAGS
1886 C compiler flags for LIBSYSTEMD, overriding pkg-config
1887 LIBSYSTEMD_LIBS
1888 linker flags for LIBSYSTEMD, overriding pkg-config
1889 PYTHON the Python interpreter
1890 SELINUX_CFLAGS
1891 C compiler flags for SELINUX, overriding pkg-config
1892 SELINUX_LIBS
1893 linker flags for SELINUX, overriding pkg-config
1894 EDITLINE_CFLAGS
1895 C compiler flags for EDITLINE, overriding pkg-config
1896 EDITLINE_LIBS
1897 linker flags for EDITLINE, overriding pkg-config
1898 systemdsystemunitdir
1899 value of systemdsystemunitdir for systemd, overriding pkg-config
1900 systemdutildir
1901 value of systemdutildir for systemd, overriding pkg-config
1902 AIO_CFLAGS C compiler flags for AIO
1903 AIO_LIBS linker flags for AIO
1904 READLINE_CFLAGS
1905 C compiler flags for readline
1906 READLINE_LIBS
1907 linker flags for readline
1908
1909Use these variables to override the choices made by 'configure' or to help
1910it to find libraries and programs with nonstandard names/locations.
1911
1912Report bugs to the package provider.
1913_ACEOF
1914ac_status=$?
1915fi
1916
1917if 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"; } ||
1922 continue
1923 ac_builddir=.
1924
1925case "$ac_dir" in
1926.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927*)
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/ ;;
1934 esac ;;
1935esac
1936ac_abs_top_builddir=$ac_pwd
1937ac_abs_builddir=$ac_pwd$ac_dir_suffix
1938# for backward compatibility:
1939ac_top_builddir=$ac_top_build_prefix
1940
1941case $srcdir in
1942 .) # We are building in place.
1943 ac_srcdir=.
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 ;;
1950 *) # Relative name.
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 ;;
1954esac
1955ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956
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
1961 echo &&
1962 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1963 elif test -f "$ac_srcdir/configure"; then
1964 echo &&
1965 $SHELL "$ac_srcdir/configure" --help=recursive
1966 else
1967 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1968 fi || ac_status=$?
1969 cd "$ac_pwd" || { ac_status=$?; break; }
1970 done
1971fi
1972
1973test -n "$ac_init_help" && exit $ac_status
1974if $ac_init_version; then
1975 cat <<\_ACEOF
1976configure
1977generated by GNU Autoconf 2.72
1978
1979Copyright (C) 2023 Free Software Foundation, Inc.
1980This configure script is free software; the Free Software Foundation
1981gives unlimited permission to copy, distribute and modify it.
1982_ACEOF
1983 exit
1984fi
1985
1986## ------------------------ ##
1987## Autoconf initialization. ##
1988## ------------------------ ##
1989
1990# ac_fn_c_try_compile LINENO
1991# --------------------------
1992# Try to compile conftest.$ac_ext, and return whether this succeeded.
1993ac_fn_c_try_compile ()
1994{
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"
1998case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001esac
2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003printf "%s\n" "$ac_try_echo"; } >&5
2004 (eval "$ac_compile") 2>conftest.err
2005 ac_status=$?
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
2010 fi
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
2016then :
2017 ac_retval=0
2018else case e in #(
2019 e) printf "%s\n" "$as_me: failed program was:" >&5
2020sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1 ;;
2023esac
2024fi
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2027
2028} # ac_fn_c_try_compile
2029
2030# ac_fn_cxx_try_compile LINENO
2031# ----------------------------
2032# Try to compile conftest.$ac_ext, and return whether this succeeded.
2033ac_fn_cxx_try_compile ()
2034{
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"
2038case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041esac
2042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043printf "%s\n" "$ac_try_echo"; } >&5
2044 (eval "$ac_compile") 2>conftest.err
2045 ac_status=$?
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
2050 fi
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
2056then :
2057 ac_retval=0
2058else case e in #(
2059 e) printf "%s\n" "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 ac_retval=1 ;;
2063esac
2064fi
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2067
2068} # ac_fn_cxx_try_compile
2069
2070# ac_fn_c_try_link LINENO
2071# -----------------------
2072# Try to link conftest.$ac_ext, and return whether this succeeded.
2073ac_fn_c_try_link ()
2074{
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"
2078case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081esac
2082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083printf "%s\n" "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>conftest.err
2085 ac_status=$?
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
2090 fi
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
2098 }
2099then :
2100 ac_retval=0
2101else case e in #(
2102 e) printf "%s\n" "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_retval=1 ;;
2106esac
2107fi
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
2115
2116} # ac_fn_c_try_link
2117
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.
2122ac_fn_c_check_header_compile ()
2123{
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
2126printf %s "checking for $2... " >&6; }
2127if eval test \${$3+y}
2128then :
2129 printf %s "(cached) " >&6
2130else case e in #(
2131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133$4
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"
2137then :
2138 eval "$3=yes"
2139else case e in #(
2140 e) eval "$3=no" ;;
2141esac
2142fi
2143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2144esac
2145fi
2146eval ac_res=\$$3
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148printf "%s\n" "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151} # ac_fn_c_check_header_compile
2152
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.
2157ac_fn_c_check_type ()
2158{
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
2161printf %s "checking for $2... " >&6; }
2162if eval test \${$3+y}
2163then :
2164 printf %s "(cached) " >&6
2165else case e in #(
2166 e) eval "$3=no"
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h. */
2169$4
2170int
2171main (void)
2172{
2173if (sizeof ($2))
2174 return 0;
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"
2180then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$4
2184int
2185main (void)
2186{
2187if (sizeof (($2)))
2188 return 0;
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"
2194then :
2195
2196else case e in #(
2197 e) eval "$3=yes" ;;
2198esac
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2203esac
2204fi
2205eval ac_res=\$$3
2206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207printf "%s\n" "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209
2210} # ac_fn_c_check_type
2211
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.
2216ac_fn_c_check_member ()
2217{
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
2220printf %s "checking for $2.$3... " >&6; }
2221if eval test \${$4+y}
2222then :
2223 printf %s "(cached) " >&6
2224else case e in #(
2225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h. */
2227$5
2228int
2229main (void)
2230{
2231static $2 ac_aggr;
2232if (ac_aggr.$3)
2233return 0;
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"
2239then :
2240 eval "$4=yes"
2241else case e in #(
2242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244$5
2245int
2246main (void)
2247{
2248static $2 ac_aggr;
2249if (sizeof ac_aggr.$3)
2250return 0;
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255if ac_fn_c_try_compile "$LINENO"
2256then :
2257 eval "$4=yes"
2258else case e in #(
2259 e) eval "$4=no" ;;
2260esac
2261fi
2262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2263esac
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2266esac
2267fi
2268eval ac_res=\$$4
2269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270printf "%s\n" "$ac_res" >&6; }
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272
2273} # ac_fn_c_check_member
2274
2275# ac_fn_c_find_intX_t LINENO BITS VAR
2276# -----------------------------------
2277# Finds a signed integer type with width BITS, setting cache variable VAR
2278# accordingly.
2279ac_fn_c_find_intX_t ()
2280{
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
2283printf %s "checking for int$2_t... " >&6; }
2284if eval test \${$3+y}
2285then :
2286 printf %s "(cached) " >&6
2287else case e in #(
2288 e) eval "$3=no"
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 };
2297int
2298main (void)
2299{
2300static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2301test_array [0] = 0;
2302return test_array [0];
2303
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"
2309then :
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$ac_includes_default
2313 enum { N = $2 / 2 - 1 };
2314int
2315main (void)
2316{
2317static 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))];
2319test_array [0] = 0;
2320return test_array [0];
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326if ac_fn_c_try_compile "$LINENO"
2327then :
2328
2329else case e in #(
2330 e) case $ac_type in #(
2331 int$2_t) :
2332 eval "$3=yes" ;; #(
2333 *) :
2334 eval "$3=\$ac_type" ;;
2335esac ;;
2336esac
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 if eval test \"x\$"$3"\" = x"no"
2342then :
2343
2344else case e in #(
2345 e) break ;;
2346esac
2347fi
2348 done ;;
2349esac
2350fi
2351eval ac_res=\$$3
2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353printf "%s\n" "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355
2356} # ac_fn_c_find_intX_t
2357
2358# ac_fn_c_find_uintX_t LINENO BITS VAR
2359# ------------------------------------
2360# Finds an unsigned integer type with width BITS, setting cache variable VAR
2361# accordingly.
2362ac_fn_c_find_uintX_t ()
2363{
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
2366printf %s "checking for uint$2_t... " >&6; }
2367if eval test \${$3+y}
2368then :
2369 printf %s "(cached) " >&6
2370else case e in #(
2371 e) eval "$3=no"
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
2379int
2380main (void)
2381{
2382static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2383test_array [0] = 0;
2384return test_array [0];
2385
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"
2391then :
2392 case $ac_type in #(
2393 uint$2_t) :
2394 eval "$3=yes" ;; #(
2395 *) :
2396 eval "$3=\$ac_type" ;;
2397esac
2398fi
2399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2400 if eval test \"x\$"$3"\" = x"no"
2401then :
2402
2403else case e in #(
2404 e) break ;;
2405esac
2406fi
2407 done ;;
2408esac
2409fi
2410eval ac_res=\$$3
2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412printf "%s\n" "$ac_res" >&6; }
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414
2415} # ac_fn_c_find_uintX_t
2416
2417# ac_fn_c_check_func LINENO FUNC VAR
2418# ----------------------------------
2419# Tests whether FUNC exists, setting the cache variable VAR accordingly
2420ac_fn_c_check_func ()
2421{
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
2424printf %s "checking for $2... " >&6; }
2425if eval test \${$3+y}
2426then :
2427 printf %s "(cached) " >&6
2428else case e in #(
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
2434
2435/* System header to define __stub macros and hopefully few prototypes,
2436 which can conflict with char $2 (void); below. */
2437
2438#include <limits.h>
2439#undef $2
2440
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. */
2444#ifdef __cplusplus
2445extern "C"
2446#endif
2447char $2 (void);
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
2452choke me
2453#endif
2454
2455int
2456main (void)
2457{
2458return $2 ();
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463if ac_fn_c_try_link "$LINENO"
2464then :
2465 eval "$3=yes"
2466else case e in #(
2467 e) eval "$3=no" ;;
2468esac
2469fi
2470rm -f core conftest.err conftest.$ac_objext conftest.beam \
2471 conftest$ac_exeext conftest.$ac_ext ;;
2472esac
2473fi
2474eval ac_res=\$$3
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476printf "%s\n" "$ac_res" >&6; }
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478
2479} # ac_fn_c_check_func
2480
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.
2485ac_fn_c_try_run ()
2486{
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_link"
2489case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494printf "%s\n" "$ac_try_echo"; } >&5
2495 (eval "$ac_link") 2>&5
2496 ac_status=$?
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;;
2502esac
2503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504printf "%s\n" "$ac_try_echo"; } >&5
2505 (eval "$ac_try") 2>&5
2506 ac_status=$?
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; }
2509then :
2510 ac_retval=0
2511else case e in #(
2512 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2513 printf "%s\n" "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 ac_retval=$ac_status ;;
2517esac
2518fi
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
2522
2523} # ac_fn_c_try_run
2524
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.
2529ac_fn_check_decl ()
2530{
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
2534printf %s "checking whether $as_decl_name is declared... " >&6; }
2535if eval test \${$3+y}
2536then :
2537 printf %s "(cached) " >&6
2538else case e in #(
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. */
2544$4
2545int
2546main (void)
2547{
2548#ifndef $as_decl_name
2549#ifdef __cplusplus
2550 (void) $as_decl_use;
2551#else
2552 (void) $as_decl_name;
2553#endif
2554#endif
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560if ac_fn_c_try_compile "$LINENO"
2561then :
2562 eval "$3=yes"
2563else case e in #(
2564 e) eval "$3=no" ;;
2565esac
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2568 eval $6=\$ac_save_FLAGS
2569 ;;
2570esac
2571fi
2572eval ac_res=\$$3
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574printf "%s\n" "$ac_res" >&6; }
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576
2577} # ac_fn_check_decl
2578ac_configure_args_raw=
2579for ac_arg
2580do
2581 case $ac_arg in
2582 *\'*)
2583 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2584 esac
2585 as_fn_append ac_configure_args_raw " '$ac_arg'"
2586done
2587
2588case $ac_configure_args_raw in
2589 *$as_nl*)
2590 ac_safe_unquote= ;;
2591 *)
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"`;;
2596esac
2597
2598cat >config.log <<_ACEOF
2599This file contains any messages produced by compilers while
2600running configure, to aid debugging if configure makes a mistake.
2601
2602It was created by $as_me, which was
2603generated by GNU Autoconf 2.72. Invocation command line was
2604
2605 $ $0$ac_configure_args_raw
2606
2607_ACEOF
2608exec 5>>config.log
2609{
2610cat <<_ASUNAME
2611## --------- ##
2612## Platform. ##
2613## --------- ##
2614
2615hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619uname -v = `(uname -v) 2>/dev/null || echo unknown`
2620
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`
2623
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`
2631
2632_ASUNAME
2633
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 case $as_dir in #(((
2639 '') as_dir=./ ;;
2640 */) ;;
2641 *) as_dir=$as_dir/ ;;
2642 esac
2643 printf "%s\n" "PATH: $as_dir"
2644 done
2645IFS=$as_save_IFS
2646
2647} >&5
2648
2649cat >&5 <<_ACEOF
2650
2651
2652## ----------- ##
2653## Core tests. ##
2654## ----------- ##
2655
2656_ACEOF
2657
2658
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.
2664ac_configure_args=
2665ac_configure_args0=
2666ac_configure_args1=
2667ac_must_keep_next=false
2668for ac_pass in 1 2
2669do
2670 for ac_arg
2671 do
2672 case $ac_arg in
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)
2676 continue ;;
2677 *\'*)
2678 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 esac
2680 case $ac_pass in
2681 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2682 2)
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.
2686 else
2687 case $ac_arg in
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 ;;
2694 esac
2695 ;;
2696 -* ) ac_must_keep_next=true ;;
2697 esac
2698 fi
2699 as_fn_append ac_configure_args " '$ac_arg'"
2700 ;;
2701 esac
2702 done
2703done
2704{ ac_configure_args0=; unset ac_configure_args0;}
2705{ ac_configure_args1=; unset ac_configure_args1;}
2706
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.
2712trap 'exit_status=$?
2713 # Sanitize IFS.
2714 IFS=" "" $as_nl"
2715 # Save into config.log some information that might help in debugging.
2716 {
2717 echo
2718
2719 printf "%s\n" "## ---------------- ##
2720## Cache variables. ##
2721## ---------------- ##"
2722 echo
2723 # The following way of writing the cache mishandles newlines in values,
2724(
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
2727 case $ac_val in #(
2728 *${as_nl}*)
2729 case $ac_var in #(
2730 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2731printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2732 esac
2733 case $ac_var in #(
2734 _ | IFS | as_nl) ;; #(
2735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2736 *) { eval $ac_var=; unset $ac_var;} ;;
2737 esac ;;
2738 esac
2739 done
2740 (set) 2>&1 |
2741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2742 *${as_nl}ac_space=\ *)
2743 sed -n \
2744 "s/'\''/'\''\\\\'\'''\''/g;
2745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2746 ;; #(
2747 *)
2748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2749 ;;
2750 esac |
2751 sort
2752)
2753 echo
2754
2755 printf "%s\n" "## ----------------- ##
2756## Output variables. ##
2757## ----------------- ##"
2758 echo
2759 for ac_var in $ac_subst_vars
2760 do
2761 eval ac_val=\$$ac_var
2762 case $ac_val in
2763 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2764 esac
2765 printf "%s\n" "$ac_var='\''$ac_val'\''"
2766 done | sort
2767 echo
2768
2769 if test -n "$ac_subst_files"; then
2770 printf "%s\n" "## ------------------- ##
2771## File substitutions. ##
2772## ------------------- ##"
2773 echo
2774 for ac_var in $ac_subst_files
2775 do
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
2778 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 esac
2780 printf "%s\n" "$ac_var='\''$ac_val'\''"
2781 done | sort
2782 echo
2783 fi
2784
2785 if test -s confdefs.h; then
2786 printf "%s\n" "## ----------- ##
2787## confdefs.h. ##
2788## ----------- ##"
2789 echo
2790 cat confdefs.h
2791 echo
2792 fi
2793 test "$ac_signal" != 0 &&
2794 printf "%s\n" "$as_me: caught signal $ac_signal"
2795 printf "%s\n" "$as_me: exit $exit_status"
2796 } >&5
2797 rm -f core *.core core.conftest.* &&
2798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2799 exit $exit_status
2800' 0
2801for ac_signal in 1 2 13 15; do
2802 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2803done
2804ac_signal=0
2805
2806# confdefs.h avoids OS command line length limits that DEFS can exceed.
2807rm -f -r conftest* confdefs.h
2808
2809printf "%s\n" "/* confdefs.h */" > confdefs.h
2810
2811# Predefined preprocessor variables.
2812
2813printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2814
2815printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2816
2817printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2818
2819printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2820
2821printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2822
2823printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2824
2825
2826# Let the site file select an alternate cache file if it wants to.
2827# Prefer an explicitly selected file to automatically selected ones.
2828if test -n "$CONFIG_SITE"; then
2829 ac_site_files="$CONFIG_SITE"
2830elif test "x$prefix" != xNONE; then
2831 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2832else
2833 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2834fi
2835
2836for ac_site_file in $ac_site_files
2837do
2838 case $ac_site_file in #(
2839 */*) :
2840 ;; #(
2841 *) :
2842 ac_site_file=./$ac_site_file ;;
2843esac
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
2846printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2847 sed 's/^/| /' "$ac_site_file" >&5
2848 . "$ac_site_file" \
2849 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2850printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2851as_fn_error $? "failed to load site script $ac_site_file
2852See 'config.log' for more details" "$LINENO" 5; }
2853 fi
2854done
2855
2856if 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
2861printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2862 case $cache_file in
2863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2864 *) . "./$cache_file";;
2865 esac
2866 fi
2867else
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2869printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2870 >$cache_file
2871fi
2872
2873# Test code for whether the C compiler supports C89 (global declarations)
2874ac_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"
2880#endif
2881
2882#include <stddef.h>
2883#include <stdarg.h>
2884struct stat;
2885/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2886struct buf { int x; };
2887struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2888static char *e (char **p, int i)
2889{
2890 return p[i];
2891}
2892static char *f (char * (*g) (char **, int), char **p, ...)
2893{
2894 char *s;
2895 va_list v;
2896 va_start (v,p);
2897 s = g (p, va_arg (v,int));
2898 va_end (v);
2899 return s;
2900}
2901
2902/* C89 style stringification. */
2903#define noexpand_stringify(a) #a
2904const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2905
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)
2910extern int vA;
2911extern int vbee;
2912#define aye A
2913#define bee B
2914int *pvA = &expand_concat(v,aye);
2915int *pvbee = &noexpand_concat(v,bee);
2916
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. */
2924int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2925
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'\''
2929int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2930
2931int test (int i, double x);
2932struct s1 {int (*f) (int a);};
2933struct s2 {int (*f) (double a);};
2934int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2935 int, int);'
2936
2937# Test code for whether the C compiler supports C89 (body of main).
2938ac_c_conftest_c89_main='
2939ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2940'
2941
2942# Test code for whether the C compiler supports C99 (global declarations)
2943ac_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"
2947#endif
2948
2949// See if C++-style comments work.
2950
2951#include <stdbool.h>
2952extern int puts (const char *);
2953extern int printf (const char *, ...);
2954extern int dprintf (int, const char *, ...);
2955extern void *malloc (size_t);
2956extern void free (void *);
2957
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
2960// FILE and stderr.
2961#define debug(...) dprintf (2, __VA_ARGS__)
2962#define showlist(...) puts (#__VA_ARGS__)
2963#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2964static void
2965test_varargs_macros (void)
2966{
2967 int x = 1234;
2968 int y = 5678;
2969 debug ("Flag");
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);
2973}
2974
2975// Check long long types.
2976#define BIG64 18446744073709551615ull
2977#define BIG32 4294967295ul
2978#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2979#if !BIG_OK
2980 #error "your preprocessor is broken"
2981#endif
2982#if BIG_OK
2983#else
2984 #error "your preprocessor is broken"
2985#endif
2986static long long int bignum = -9223372036854775807LL;
2987static unsigned long long int ubignum = BIG64;
2988
2989struct incomplete_array
2990{
2991 int datasize;
2992 double data[];
2993};
2994
2995struct named_init {
2996 int number;
2997 const wchar_t *name;
2998 double average;
2999};
3000
3001typedef const char *ccp;
3002
3003static inline int
3004test_restrict (ccp restrict text)
3005{
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)
3009 continue;
3010 return 0;
3011}
3012
3013// Check varargs and va_copy.
3014static bool
3015test_varargs (const char *format, ...)
3016{
3017 va_list args;
3018 va_start (args, format);
3019 va_list args_copy;
3020 va_copy (args_copy, args);
3021
3022 const char *str = "";
3023 int number = 0;
3024 float fnumber = 0;
3025
3026 while (*format)
3027 {
3028 switch (*format++)
3029 {
3030 case '\''s'\'': // string
3031 str = va_arg (args_copy, const char *);
3032 break;
3033 case '\''d'\'': // int
3034 number = va_arg (args_copy, int);
3035 break;
3036 case '\''f'\'': // float
3037 fnumber = va_arg (args_copy, double);
3038 break;
3039 default:
3040 break;
3041 }
3042 }
3043 va_end (args_copy);
3044 va_end (args);
3045
3046 return *str && number && fnumber;
3047}
3048'
3049
3050# Test code for whether the C compiler supports C99 (body of main).
3051ac_c_conftest_c99_main='
3052 // Check bool.
3053 _Bool success = false;
3054 success |= (argc != 0);
3055
3056 // Check restrict.
3057 if (test_restrict ("String literal") == 0)
3058 success = true;
3059 char *restrict newvar = "Another string";
3060
3061 // Check varargs.
3062 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3063 test_varargs_macros ();
3064
3065 // Check flexible array members.
3066 struct incomplete_array *ia =
3067 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3068 ia->datasize = 10;
3069 for (int i = 0; i < ia->datasize; ++i)
3070 ia->data[i] = i * 1.234;
3071 // Work around memory leak warnings.
3072 free (ia);
3073
3074 // Check named initializers.
3075 struct named_init ni = {
3076 .number = 34,
3077 .name = L"Test wide string",
3078 .average = 543.34343,
3079 };
3080
3081 ni.number = 58;
3082
3083 int dynamic_array[ni.number];
3084 dynamic_array[0] = argv[0][0];
3085 dynamic_array[ni.number - 1] = 543;
3086
3087 // work around unused variable warnings
3088 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3089 || dynamic_array[ni.number - 1] != 543);
3090'
3091
3092# Test code for whether the C compiler supports C11 (global declarations)
3093ac_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"
3097#endif
3098
3099// Check _Alignas.
3100char _Alignas (double) aligned_as_double;
3101char _Alignas (0) no_special_alignment;
3102extern char aligned_as_int;
3103char _Alignas (0) _Alignas (int) aligned_as_int;
3104
3105// Check _Alignof.
3106enum
3107{
3108 int_alignment = _Alignof (int),
3109 int_array_alignment = _Alignof (int[100]),
3110 char_alignment = _Alignof (char)
3111};
3112_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3113
3114// Check _Noreturn.
3115int _Noreturn does_not_return (void) { for (;;) continue; }
3116
3117// Check _Static_assert.
3118struct test_static_assert
3119{
3120 int x;
3121 _Static_assert (sizeof (int) <= sizeof (long int),
3122 "_Static_assert does not work in struct");
3123 long int y;
3124};
3125
3126// Check UTF-8 literals.
3127#define u8 syntax error!
3128char const utf8_literal[] = u8"happens to be ASCII" "another string";
3129
3130// Check duplicate typedefs.
3131typedef long *long_ptr;
3132typedef long int *long_ptr;
3133typedef long_ptr long_ptr;
3134
3135// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3136struct anonymous
3137{
3138 union {
3139 struct { int i; int j; };
3140 struct { int k; long int l; } w;
3141 };
3142 int m;
3143} v1;
3144'
3145
3146# Test code for whether the C compiler supports C11 (body of main).
3147ac_c_conftest_c11_main='
3148 _Static_assert ((offsetof (struct anonymous, i)
3149 == offsetof (struct anonymous, w.k)),
3150 "Anonymous union alignment botch");
3151 v1.i = 2;
3152 v1.w.k = 5;
3153 ok |= v1.i != 5;
3154'
3155
3156# Test code for whether the C compiler supports C11 (complete).
3157ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3158${ac_c_conftest_c99_globals}
3159${ac_c_conftest_c11_globals}
3160
3161int
3162main (int argc, char **argv)
3163{
3164 int ok = 0;
3165 ${ac_c_conftest_c89_main}
3166 ${ac_c_conftest_c99_main}
3167 ${ac_c_conftest_c11_main}
3168 return ok;
3169}
3170"
3171
3172# Test code for whether the C compiler supports C99 (complete).
3173ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3174${ac_c_conftest_c99_globals}
3175
3176int
3177main (int argc, char **argv)
3178{
3179 int ok = 0;
3180 ${ac_c_conftest_c89_main}
3181 ${ac_c_conftest_c99_main}
3182 return ok;
3183}
3184"
3185
3186# Test code for whether the C compiler supports C89 (complete).
3187ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3188
3189int
3190main (int argc, char **argv)
3191{
3192 int ok = 0;
3193 ${ac_c_conftest_c89_main}
3194 return ok;
3195}
3196"
3197
3198# Test code for whether the C++ compiler supports C++98 (global declarations)
3199ac_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"
3203#endif
3204
3205// These inclusions are to reject old compilers that
3206// lack the unsuffixed header files.
3207#include <cstdlib>
3208#include <exception>
3209
3210// <cassert> and <cstring> are *not* freestanding headers in C++98.
3211extern void assert (int);
3212namespace std {
3213 extern int strcmp (const char *, const char *);
3214}
3215
3216// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3217using std::exception;
3218using std::strcmp;
3219
3220namespace {
3221
3222void test_exception_syntax()
3223{
3224 try {
3225 throw "test";
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"));
3230 }
3231}
3232
3233template <typename T> struct test_template
3234{
3235 T const val;
3236 explicit test_template(T t) : val(t) {}
3237 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3238};
3239
3240} // anonymous namespace
3241'
3242
3243# Test code for whether the C++ compiler supports C++98 (body of main)
3244ac_cxx_conftest_cxx98_main='
3245 assert (argc);
3246 assert (! argv[0]);
3247{
3248 test_exception_syntax ();
3249 test_template<double> tt (2.0);
3250 assert (tt.add (4) == 6.0);
3251 assert (true && !false);
3252}
3253'
3254
3255# Test code for whether the C++ compiler supports C++11 (global declarations)
3256ac_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"
3260#endif
3261
3262namespace cxx11test
3263{
3264 constexpr int get_val() { return 20; }
3265
3266 struct testinit
3267 {
3268 int i;
3269 double d;
3270 };
3271
3272 class delegate
3273 {
3274 public:
3275 delegate(int n) : n(n) {}
3276 delegate(): delegate(2354) {}
3277
3278 virtual int getval() { return this->n; };
3279 protected:
3280 int n;
3281 };
3282
3283 class overridden : public delegate
3284 {
3285 public:
3286 overridden(int n): delegate(n) {}
3287 virtual int getval() override final { return this->n * 2; }
3288 };
3289
3290 class nocopy
3291 {
3292 public:
3293 nocopy(int i): i(i) {}
3294 nocopy() = default;
3295 nocopy(const nocopy&) = delete;
3296 nocopy & operator=(const nocopy&) = delete;
3297 private:
3298 int i;
3299 };
3300
3301 // for testing lambda expressions
3302 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3303 {
3304 return f(v);
3305 }
3306
3307 // for testing variadic templates and trailing return types
3308 template <typename V> auto sum(V first) -> V
3309 {
3310 return first;
3311 }
3312 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3313 {
3314 return first + sum(rest...);
3315 }
3316}
3317'
3318
3319# Test code for whether the C++ compiler supports C++11 (body of main)
3320ac_cxx_conftest_cxx11_main='
3321{
3322 // Test auto and decltype
3323 auto a1 = 6538;
3324 auto a2 = 48573953.4;
3325 auto a3 = "String literal";
3326
3327 int total = 0;
3328 for (auto i = a3; *i; ++i) { total += *i; }
3329
3330 decltype(a2) a4 = 34895.034;
3331}
3332{
3333 // Test constexpr
3334 short sa[cxx11test::get_val()] = { 0 };
3335}
3336{
3337 // Test initializer lists
3338 cxx11test::testinit il = { 4323, 435234.23544 };
3339}
3340{
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; }
3345}
3346{
3347 // Test lambda expressions
3348 using cxx11test::eval;
3349 assert (eval ([](int x) { return x*2; }, 21) == 42);
3350 double d = 2.0;
3351 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3352 assert (d == 5.0);
3353 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3354 assert (d == 5.0);
3355}
3356{
3357 // Test use of variadic templates
3358 using cxx11test::sum;
3359 auto a = sum(1);
3360 auto b = sum(1, 2);
3361 auto c = sum(1.0, 2.0, 3.0);
3362}
3363{
3364 // Test constructor delegation
3365 cxx11test::delegate d1;
3366 cxx11test::delegate d2();
3367 cxx11test::delegate d3(45);
3368}
3369{
3370 // Test override and final
3371 cxx11test::overridden o1(55464);
3372}
3373{
3374 // Test nullptr
3375 char *c = nullptr;
3376}
3377{
3378 // Test template brackets
3379 test_template<::test_template<int>> v(test_template<int>(12));
3380}
3381{
3382 // Unicode literals
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";
3386}
3387'
3388
3389# Test code for whether the C compiler supports C++11 (complete).
3390ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3391${ac_cxx_conftest_cxx11_globals}
3392
3393int
3394main (int argc, char **argv)
3395{
3396 int ok = 0;
3397 ${ac_cxx_conftest_cxx98_main}
3398 ${ac_cxx_conftest_cxx11_main}
3399 return ok;
3400}
3401"
3402
3403# Test code for whether the C compiler supports C++98 (complete).
3404ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3405int
3406main (int argc, char **argv)
3407{
3408 int ok = 0;
3409 ${ac_cxx_conftest_cxx98_main}
3410 return ok;
3411}
3412"
3413
3414as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3415as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3416as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3417as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3418as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3419as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3420as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3421as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3422as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3423as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3424as_fn_append ac_func_c_list " fork HAVE_FORK"
3425as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3426as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3427as_fn_append ac_func_c_list " alarm HAVE_ALARM"
3428as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3429as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3430as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3431
3432# Auxiliary files required by this configure script.
3433ac_aux_files="install-sh config.guess config.sub"
3434
3435# Locations in which to look for auxiliary files.
3436ac_aux_dir_candidates="${srcdir}/autoconf"
3437
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.
3443ac_missing_aux_files=""
3444ac_first_candidate=:
3445printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447as_found=false
3448for as_dir in $ac_aux_dir_candidates
3449do
3450 IFS=$as_save_IFS
3451 case $as_dir in #(((
3452 '') as_dir=./ ;;
3453 */) ;;
3454 *) as_dir=$as_dir/ ;;
3455 esac
3456 as_found=:
3457
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3459 ac_aux_dir_found=yes
3460 ac_install_sh=
3461 for ac_aux in $ac_aux_files
3462 do
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"
3467 then
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"
3477 else
3478 ac_aux_dir_found=no
3479 if $ac_first_candidate; then
3480 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3481 else
3482 break
3483 fi
3484 fi
3485 else
3486 if test -f "${as_dir}${ac_aux}"; then
3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3488 else
3489 ac_aux_dir_found=no
3490 if $ac_first_candidate; then
3491 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3492 else
3493 break
3494 fi
3495 fi
3496 fi
3497 done
3498 if test "$ac_aux_dir_found" = yes; then
3499 ac_aux_dir="$as_dir"
3500 break
3501 fi
3502 ac_first_candidate=false
3503
3504 as_found=false
3505done
3506IFS=$as_save_IFS
3507if $as_found
3508then :
3509
3510else case e in #(
3511 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3512esac
3513fi
3514
3515
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.
3520if test -f "${ac_aux_dir}config.guess"; then
3521 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3522fi
3523if test -f "${ac_aux_dir}config.sub"; then
3524 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3525fi
3526if test -f "$ac_aux_dir/configure"; then
3527 ac_configure="$SHELL ${ac_aux_dir}configure"
3528fi
3529
3530# Check that the precious variables saved in the cache have kept the same
3531# value.
3532ac_cache_corrupted=false
3533for 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
3539 set,)
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3541printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3542 ac_cache_corrupted=: ;;
3543 ,set)
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3545printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3546 ac_cache_corrupted=: ;;
3547 ,);;
3548 *)
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
3555printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3556 ac_cache_corrupted=:
3557 else
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3559printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3560 eval $ac_var=\$ac_old_val
3561 fi
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3563printf "%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
3565printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3566 fi;;
3567 esac
3568 # Pass precious variables to config.status.
3569 if test "$ac_new_set" = set; then
3570 case $ac_new_val in
3571 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3572 *) ac_arg=$ac_var=$ac_new_val ;;
3573 esac
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'" ;;
3577 esac
3578 fi
3579done
3580if $ac_cache_corrupted; then
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3582printf "%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
3584printf "%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
3587fi
3588## -------------------- ##
3589## Main body of script. ##
3590## -------------------- ##
3591
3592ac_ext=c
3593ac_cpp='$CPP $CPPFLAGS'
3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598
3599CONFIGURE_LINE="$0 $@"
3600
3601ac_config_headers="$ac_config_headers include/configure.h"
3602
3603
3604################################################################################
3605
3606
3607################################################################################
3608
3609
3610
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
3614
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3616printf %s "checking build system type... " >&6; }
3617if test ${ac_cv_build+y}
3618then :
3619 printf %s "(cached) " >&6
3620else case e in #(
3621 e) ac_build_alias=$build_alias
3622test "x$ac_build_alias" = x &&
3623 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3624test "x$ac_build_alias" = x &&
3625 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3626ac_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
3628 ;;
3629esac
3630fi
3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3632printf "%s\n" "$ac_cv_build" >&6; }
3633case $ac_cv_build in
3634*-*-*) ;;
3635*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3636esac
3637build=$ac_cv_build
3638ac_save_IFS=$IFS; IFS='-'
3639set x $ac_cv_build
3640shift
3641build_cpu=$1
3642build_vendor=$2
3643shift; shift
3644# Remember, the first character of IFS is used to create $*,
3645# except with old shells:
3646build_os=$*
3647IFS=$ac_save_IFS
3648case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3649
3650
3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3652printf %s "checking host system type... " >&6; }
3653if test ${ac_cv_host+y}
3654then :
3655 printf %s "(cached) " >&6
3656else case e in #(
3657 e) if test "x$host_alias" = x; then
3658 ac_cv_host=$ac_cv_build
3659else
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
3662fi
3663 ;;
3664esac
3665fi
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3667printf "%s\n" "$ac_cv_host" >&6; }
3668case $ac_cv_host in
3669*-*-*) ;;
3670*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3671esac
3672host=$ac_cv_host
3673ac_save_IFS=$IFS; IFS='-'
3674set x $ac_cv_host
3675shift
3676host_cpu=$1
3677host_vendor=$2
3678shift; shift
3679# Remember, the first character of IFS is used to create $*,
3680# except with old shells:
3681host_os=$*
3682IFS=$ac_save_IFS
3683case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3684
3685
3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3687printf %s "checking target system type... " >&6; }
3688if test ${ac_cv_target+y}
3689then :
3690 printf %s "(cached) " >&6
3691else case e in #(
3692 e) if test "x$target_alias" = x; then
3693 ac_cv_target=$ac_cv_host
3694else
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
3697fi
3698 ;;
3699esac
3700fi
3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3702printf "%s\n" "$ac_cv_target" >&6; }
3703case $ac_cv_target in
3704*-*-*) ;;
3705*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3706esac
3707target=$ac_cv_target
3708ac_save_IFS=$IFS; IFS='-'
3709set x $ac_cv_target
3710shift
3711target_cpu=$1
3712target_vendor=$2
3713shift; shift
3714# Remember, the first character of IFS is used to create $*,
3715# except with old shells:
3716target_os=$*
3717IFS=$ac_save_IFS
3718case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3719
3720
3721# The aliases save the names the user supplied, while $host etc.
3722# will get canonicalized.
3723test -n "$target_alias" &&
3724 test "$program_prefix$program_suffix$program_transform_name" = \
3725 NONENONEs,x,x, &&
3726 program_prefix=${target_alias}-
3727
3728if test -z "$CFLAGS"
3729then :
3730 COPTIMISE_FLAG="-O2"
3731fi
3732case "$host_os" in #(
3733 linux*) :
3734
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"
3741 LIB_SUFFIX="so"
3742 DEVMAPPER="yes"
3743 ODIRECT="yes"
3744 DM_IOCTLS="yes"
3745 SELINUX="yes"
3746 FSADM="yes"
3747 LVMIMPORTVDO="yes"
3748 BLKDEACTIVATE="yes" ;; #(
3749 darwin*) :
3750
3751 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
3752 ELDFLAGS=
3753 CLDWHOLEARCHIVE="-all_load"
3754 CLDNOWHOLEARCHIVE=
3755 LIB_SUFFIX="dylib"
3756 DEVMAPPER="yes"
3757 ODIRECT="no"
3758 DM_IOCTLS="no"
3759 SELINUX="no"
3760 FSADM="no"
3761 LVMIMPORTVDO="no"
3762 BLKDEACTIVATE="no" ;; #(
3763 *) :
3764 ;;
3765esac
3766
3767################################################################################
3768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3769printf %s "checking for a sed that does not truncate output... " >&6; }
3770if test ${ac_cv_path_SED+y}
3771then :
3772 printf %s "(cached) " >&6
3773else case e in #(
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"
3777 done
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
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 case $as_dir in #(((
3788 '') as_dir=./ ;;
3789 */) ;;
3790 *) as_dir=$as_dir/ ;;
3791 esac
3792 for ac_prog in sed gsed
3793 do
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
3799case `"$ac_path_SED" --version 2>&1` in #(
3800*GNU*)
3801 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3802#(
3803*)
3804 ac_count=0
3805 printf %s 0123456789 >"conftest.in"
3806 while :
3807 do
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
3819 fi
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824esac
3825
3826 $ac_path_SED_found && break 3
3827 done
3828 done
3829 done
3830IFS=$as_save_IFS
3831 if test -z "$ac_cv_path_SED"; then
3832 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3833 fi
3834else
3835 ac_cv_path_SED=$SED
3836fi
3837 ;;
3838esac
3839fi
3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3841printf "%s\n" "$ac_cv_path_SED" >&6; }
3842 SED="$ac_cv_path_SED"
3843 rm -f conftest.sed
3844
3845for ac_prog in gawk mawk nawk awk
3846do
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848set dummy $ac_prog; ac_word=$2
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850printf %s "checking for $ac_word... " >&6; }
3851if test ${ac_cv_prog_AWK+y}
3852then :
3853 printf %s "(cached) " >&6
3854else case e in #(
3855 e) if test -n "$AWK"; then
3856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
3862 case $as_dir in #(((
3863 '') as_dir=./ ;;
3864 */) ;;
3865 *) as_dir=$as_dir/ ;;
3866 esac
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
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877fi ;;
3878esac
3879fi
3880AWK=$ac_cv_prog_AWK
3881if test -n "$AWK"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3883printf "%s\n" "$AWK" >&6; }
3884else
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886printf "%s\n" "no" >&6; }
3887fi
3888
3889
3890 test -n "$AWK" && break
3891done
3892
3893save_CFLAGS=$CFLAGS
3894save_CXXFLAGS=$CXXFLAGS
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909if 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.
3911set dummy ${ac_tool_prefix}gcc; ac_word=$2
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913printf %s "checking for $ac_word... " >&6; }
3914if test ${ac_cv_prog_CC+y}
3915then :
3916 printf %s "(cached) " >&6
3917else case e in #(
3918 e) if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 case $as_dir in #(((
3926 '') as_dir=./ ;;
3927 */) ;;
3928 *) as_dir=$as_dir/ ;;
3929 esac
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
3934 break 2
3935 fi
3936done
3937 done
3938IFS=$as_save_IFS
3939
3940fi ;;
3941esac
3942fi
3943CC=$ac_cv_prog_CC
3944if test -n "$CC"; then
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946printf "%s\n" "$CC" >&6; }
3947else
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949printf "%s\n" "no" >&6; }
3950fi
3951
3952
3953fi
3954if test -z "$ac_cv_prog_CC"; then
3955 ac_ct_CC=$CC
3956 # Extract the first word of "gcc", so it can be a program name with args.
3957set dummy gcc; ac_word=$2
3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959printf %s "checking for $ac_word... " >&6; }
3960if test ${ac_cv_prog_ac_ct_CC+y}
3961then :
3962 printf %s "(cached) " >&6
3963else case e in #(
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.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 case $as_dir in #(((
3972 '') as_dir=./ ;;
3973 */) ;;
3974 *) as_dir=$as_dir/ ;;
3975 esac
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
3980 break 2
3981 fi
3982done
3983 done
3984IFS=$as_save_IFS
3985
3986fi ;;
3987esac
3988fi
3989ac_ct_CC=$ac_cv_prog_ac_ct_CC
3990if test -n "$ac_ct_CC"; then
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992printf "%s\n" "$ac_ct_CC" >&6; }
3993else
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995printf "%s\n" "no" >&6; }
3996fi
3997
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007 CC=$ac_ct_CC
4008 fi
4009else
4010 CC="$ac_cv_prog_CC"
4011fi
4012
4013if 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.
4016set dummy ${ac_tool_prefix}cc; ac_word=$2
4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018printf %s "checking for $ac_word... " >&6; }
4019if test ${ac_cv_prog_CC+y}
4020then :
4021 printf %s "(cached) " >&6
4022else case e in #(
4023 e) if test -n "$CC"; then
4024 ac_cv_prog_CC="$CC" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029 IFS=$as_save_IFS
4030 case $as_dir in #(((
4031 '') as_dir=./ ;;
4032 */) ;;
4033 *) as_dir=$as_dir/ ;;
4034 esac
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
4039 break 2
4040 fi
4041done
4042 done
4043IFS=$as_save_IFS
4044
4045fi ;;
4046esac
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051printf "%s\n" "$CC" >&6; }
4052else
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054printf "%s\n" "no" >&6; }
4055fi
4056
4057
4058 fi
4059fi
4060if test -z "$CC"; then
4061 # Extract the first word of "cc", so it can be a program name with args.
4062set dummy cc; ac_word=$2
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064printf %s "checking for $ac_word... " >&6; }
4065if test ${ac_cv_prog_CC+y}
4066then :
4067 printf %s "(cached) " >&6
4068else case e in #(
4069 e) if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4071else
4072 ac_prog_rejected=no
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 case $as_dir in #(((
4078 '') as_dir=./ ;;
4079 */) ;;
4080 *) as_dir=$as_dir/ ;;
4081 esac
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
4086 continue
4087 fi
4088 ac_cv_prog_CC="cc"
4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092done
4093 done
4094IFS=$as_save_IFS
4095
4096if 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
4099 shift
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.
4104 shift
4105 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4106 fi
4107fi
4108fi ;;
4109esac
4110fi
4111CC=$ac_cv_prog_CC
4112if test -n "$CC"; then
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114printf "%s\n" "$CC" >&6; }
4115else
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117printf "%s\n" "no" >&6; }
4118fi
4119
4120
4121fi
4122if test -z "$CC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 for ac_prog in cl.exe
4125 do
4126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129printf %s "checking for $ac_word... " >&6; }
4130if test ${ac_cv_prog_CC+y}
4131then :
4132 printf %s "(cached) " >&6
4133else case e in #(
4134 e) if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 case $as_dir in #(((
4142 '') as_dir=./ ;;
4143 */) ;;
4144 *) as_dir=$as_dir/ ;;
4145 esac
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
4150 break 2
4151 fi
4152done
4153 done
4154IFS=$as_save_IFS
4155
4156fi ;;
4157esac
4158fi
4159CC=$ac_cv_prog_CC
4160if test -n "$CC"; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162printf "%s\n" "$CC" >&6; }
4163else
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165printf "%s\n" "no" >&6; }
4166fi
4167
4168
4169 test -n "$CC" && break
4170 done
4171fi
4172if test -z "$CC"; then
4173 ac_ct_CC=$CC
4174 for ac_prog in cl.exe
4175do
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177set dummy $ac_prog; ac_word=$2
4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179printf %s "checking for $ac_word... " >&6; }
4180if test ${ac_cv_prog_ac_ct_CC+y}
4181then :
4182 printf %s "(cached) " >&6
4183else case e in #(
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.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 case $as_dir in #(((
4192 '') as_dir=./ ;;
4193 */) ;;
4194 *) as_dir=$as_dir/ ;;
4195 esac
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
4200 break 2
4201 fi
4202done
4203 done
4204IFS=$as_save_IFS
4205
4206fi ;;
4207esac
4208fi
4209ac_ct_CC=$ac_cv_prog_ac_ct_CC
4210if test -n "$ac_ct_CC"; then
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4212printf "%s\n" "$ac_ct_CC" >&6; }
4213else
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215printf "%s\n" "no" >&6; }
4216fi
4217
4218
4219 test -n "$ac_ct_CC" && break
4220done
4221
4222 if test "x$ac_ct_CC" = x; then
4223 CC=""
4224 else
4225 case $cross_compiling:$ac_tool_warned in
4226yes:)
4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4229ac_tool_warned=yes ;;
4230esac
4231 CC=$ac_ct_CC
4232 fi
4233fi
4234
4235fi
4236if 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.
4239set dummy ${ac_tool_prefix}clang; ac_word=$2
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241printf %s "checking for $ac_word... " >&6; }
4242if test ${ac_cv_prog_CC+y}
4243then :
4244 printf %s "(cached) " >&6
4245else case e in #(
4246 e) if test -n "$CC"; then
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 case $as_dir in #(((
4254 '') as_dir=./ ;;
4255 */) ;;
4256 *) as_dir=$as_dir/ ;;
4257 esac
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
4262 break 2
4263 fi
4264done
4265 done
4266IFS=$as_save_IFS
4267
4268fi ;;
4269esac
4270fi
4271CC=$ac_cv_prog_CC
4272if test -n "$CC"; then
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274printf "%s\n" "$CC" >&6; }
4275else
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277printf "%s\n" "no" >&6; }
4278fi
4279
4280
4281fi
4282if test -z "$ac_cv_prog_CC"; then
4283 ac_ct_CC=$CC
4284 # Extract the first word of "clang", so it can be a program name with args.
4285set dummy clang; ac_word=$2
4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287printf %s "checking for $ac_word... " >&6; }
4288if test ${ac_cv_prog_ac_ct_CC+y}
4289then :
4290 printf %s "(cached) " >&6
4291else case e in #(
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.
4294else
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 case $as_dir in #(((
4300 '') as_dir=./ ;;
4301 */) ;;
4302 *) as_dir=$as_dir/ ;;
4303 esac
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
4308 break 2
4309 fi
4310done
4311 done
4312IFS=$as_save_IFS
4313
4314fi ;;
4315esac
4316fi
4317ac_ct_CC=$ac_cv_prog_ac_ct_CC
4318if test -n "$ac_ct_CC"; then
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4320printf "%s\n" "$ac_ct_CC" >&6; }
4321else
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323printf "%s\n" "no" >&6; }
4324fi
4325
4326 if test "x$ac_ct_CC" = x; then
4327 CC=""
4328 else
4329 case $cross_compiling:$ac_tool_warned in
4330yes:)
4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333ac_tool_warned=yes ;;
4334esac
4335 CC=$ac_ct_CC
4336 fi
4337else
4338 CC="$ac_cv_prog_CC"
4339fi
4340
4341fi
4342
4343
4344test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4345printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4346as_fn_error $? "no acceptable C compiler found in \$PATH
4347See 'config.log' for more details" "$LINENO" 5; }
4348
4349# Provide some information about the compiler.
4350printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4351set X $ac_compile
4352ac_compiler=$2
4353for ac_option in --version -v -V -qversion -version; do
4354 { { ac_try="$ac_compiler $ac_option >&5"
4355case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360printf "%s\n" "$ac_try_echo"; } >&5
4361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4362 ac_status=$?
4363 if test -s conftest.err; then
4364 sed '10a\
4365... rest of stderr output deleted ...
4366 10q' conftest.err >conftest.er1
4367 cat conftest.er1 >&5
4368 fi
4369 rm -f conftest.er1 conftest.err
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372done
4373
4374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375/* end confdefs.h. */
4376
4377int
4378main (void)
4379{
4380
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385ac_clean_files_save=$ac_clean_files
4386ac_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
4389# of exeext.
4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4391printf %s "checking whether the C compiler works... " >&6; }
4392ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4393
4394# The possible output files:
4395ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4396
4397ac_rmfiles=
4398for ac_file in $ac_files
4399do
4400 case $ac_file in
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4402 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4403 esac
4404done
4405rm -f $ac_rmfiles
4406
4407if { { ac_try="$ac_link_default"
4408case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413printf "%s\n" "$ac_try_echo"; } >&5
4414 (eval "$ac_link_default") 2>&5
4415 ac_status=$?
4416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }
4418then :
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
4423# Autoconf.
4424for ac_file in $ac_files ''
4425do
4426 test -f "$ac_file" || continue
4427 case $ac_file in
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4429 ;;
4430 [ab].out )
4431 # We found the default executable, but exeext='' is most
4432 # certainly right.
4433 break;;
4434 *.* )
4435 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4436 then :; else
4437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4438 fi
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
4443 # actually working.
4444 break;;
4445 * )
4446 break;;
4447 esac
4448done
4449test "$ac_cv_exeext" = no && ac_cv_exeext=
4450
4451else case e in #(
4452 e) ac_file='' ;;
4453esac
4454fi
4455if test -z "$ac_file"
4456then :
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458printf "%s\n" "no" >&6; }
4459printf "%s\n" "$as_me: failed program was:" >&5
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
4462{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4463printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4464as_fn_error 77 "C compiler cannot create executables
4465See 'config.log' for more details" "$LINENO" 5; }
4466else case e in #(
4467 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468printf "%s\n" "yes" >&6; } ;;
4469esac
4470fi
4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4472printf %s "checking for C compiler default output file name... " >&6; }
4473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4474printf "%s\n" "$ac_file" >&6; }
4475ac_exeext=$ac_cv_exeext
4476
4477rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4478ac_clean_files=$ac_clean_files_save
4479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4480printf %s "checking for suffix of executables... " >&6; }
4481if { { ac_try="$ac_link"
4482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487printf "%s\n" "$ac_try_echo"; } >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }
4492then :
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
4496# 'rm'.
4497for ac_file in conftest.exe conftest conftest.*; do
4498 test -f "$ac_file" || continue
4499 case $ac_file in
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502 break;;
4503 * ) break;;
4504 esac
4505done
4506else case e in #(
4507 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4508printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4509as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4510See 'config.log' for more details" "$LINENO" 5; } ;;
4511esac
4512fi
4513rm -f conftest conftest$ac_cv_exeext
4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515printf "%s\n" "$ac_cv_exeext" >&6; }
4516
4517rm -f conftest.$ac_ext
4518EXEEXT=$ac_cv_exeext
4519ac_exeext=$EXEEXT
4520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h. */
4522#include <stdio.h>
4523int
4524main (void)
4525{
4526FILE *f = fopen ("conftest.out", "w");
4527 if (!f)
4528 return 1;
4529 return ferror (f) || fclose (f) != 0;
4530
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535ac_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
4539printf %s "checking whether we are cross compiling... " >&6; }
4540if test "$cross_compiling" != yes; then
4541 { { ac_try="$ac_link"
4542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
4546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547printf "%s\n" "$ac_try_echo"; } >&5
4548 (eval "$ac_link") 2>&5
4549 ac_status=$?
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;;
4556esac
4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558printf "%s\n" "$ac_try_echo"; } >&5
4559 (eval "$ac_try") 2>&5
4560 ac_status=$?
4561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; }; then
4563 cross_compiling=no
4564 else
4565 if test "$cross_compiling" = maybe; then
4566 cross_compiling=yes
4567 else
4568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4569printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4570as_fn_error 77 "cannot run C compiled programs.
4571If you meant to cross compile, use '--host'.
4572See 'config.log' for more details" "$LINENO" 5; }
4573 fi
4574 fi
4575fi
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4577printf "%s\n" "$cross_compiling" >&6; }
4578
4579rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4580 conftest.o conftest.obj conftest.out
4581ac_clean_files=$ac_clean_files_save
4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4583printf %s "checking for suffix of object files... " >&6; }
4584if test ${ac_cv_objext+y}
4585then :
4586 printf %s "(cached) " >&6
4587else case e in #(
4588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h. */
4590
4591int
4592main (void)
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.o conftest.obj
4600if { { ac_try="$ac_compile"
4601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
4605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606printf "%s\n" "$ac_try_echo"; } >&5
4607 (eval "$ac_compile") 2>&5
4608 ac_status=$?
4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4610 test $ac_status = 0; }
4611then :
4612 for ac_file in conftest.o conftest.obj conftest.*; do
4613 test -f "$ac_file" || continue;
4614 case $ac_file in
4615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4617 break;;
4618 esac
4619done
4620else case e in #(
4621 e) printf "%s\n" "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4625printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4626as_fn_error $? "cannot compute suffix of object files: cannot compile
4627See 'config.log' for more details" "$LINENO" 5; } ;;
4628esac
4629fi
4630rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4631esac
4632fi
4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4634printf "%s\n" "$ac_cv_objext" >&6; }
4635OBJEXT=$ac_cv_objext
4636ac_objext=$OBJEXT
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4638printf %s "checking whether the compiler supports GNU C... " >&6; }
4639if test ${ac_cv_c_compiler_gnu+y}
4640then :
4641 printf %s "(cached) " >&6
4642else case e in #(
4643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645
4646int
4647main (void)
4648{
4649#ifndef __GNUC__
4650 choke me
4651#endif
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"
4658then :
4659 ac_compiler_gnu=yes
4660else case e in #(
4661 e) ac_compiler_gnu=no ;;
4662esac
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665ac_cv_c_compiler_gnu=$ac_compiler_gnu
4666 ;;
4667esac
4668fi
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4670printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4671ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672
4673if test $ac_compiler_gnu = yes; then
4674 GCC=yes
4675else
4676 GCC=
4677fi
4678ac_test_CFLAGS=${CFLAGS+y}
4679ac_save_CFLAGS=$CFLAGS
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681printf %s "checking whether $CC accepts -g... " >&6; }
4682if test ${ac_cv_prog_cc_g+y}
4683then :
4684 printf %s "(cached) " >&6
4685else case e in #(
4686 e) ac_save_c_werror_flag=$ac_c_werror_flag
4687 ac_c_werror_flag=yes
4688 ac_cv_prog_cc_g=no
4689 CFLAGS="-g"
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h. */
4692
4693int
4694main (void)
4695{
4696
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701if ac_fn_c_try_compile "$LINENO"
4702then :
4703 ac_cv_prog_cc_g=yes
4704else case e in #(
4705 e) CFLAGS=""
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h. */
4708
4709int
4710main (void)
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717if ac_fn_c_try_compile "$LINENO"
4718then :
4719
4720else case e in #(
4721 e) ac_c_werror_flag=$ac_save_c_werror_flag
4722 CFLAGS="-g"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h. */
4725
4726int
4727main (void)
4728{
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734if ac_fn_c_try_compile "$LINENO"
4735then :
4736 ac_cv_prog_cc_g=yes
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4739esac
4740fi
4741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4742esac
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4745 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4746esac
4747fi
4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4750if test $ac_test_CFLAGS; then
4751 CFLAGS=$ac_save_CFLAGS
4752elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4754 CFLAGS="-g -O2"
4755 else
4756 CFLAGS="-g"
4757 fi
4758else
4759 if test "$GCC" = yes; then
4760 CFLAGS="-O2"
4761 else
4762 CFLAGS=
4763 fi
4764fi
4765ac_prog_cc_stdc=no
4766if test x$ac_prog_cc_stdc = xno
4767then :
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4769printf %s "checking for $CC option to enable C11 features... " >&6; }
4770if test ${ac_cv_prog_cc_c11+y}
4771then :
4772 printf %s "(cached) " >&6
4773else case e in #(
4774 e) ac_cv_prog_cc_c11=no
4775ac_save_CC=$CC
4776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
4778$ac_c_conftest_c11_program
4779_ACEOF
4780for ac_arg in '' -std=gnu11
4781do
4782 CC="$ac_save_CC $ac_arg"
4783 if ac_fn_c_try_compile "$LINENO"
4784then :
4785 ac_cv_prog_cc_c11=$ac_arg
4786fi
4787rm -f core conftest.err conftest.$ac_objext conftest.beam
4788 test "x$ac_cv_prog_cc_c11" != "xno" && break
4789done
4790rm -f conftest.$ac_ext
4791CC=$ac_save_CC ;;
4792esac
4793fi
4794
4795if test "x$ac_cv_prog_cc_c11" = xno
4796then :
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4798printf "%s\n" "unsupported" >&6; }
4799else case e in #(
4800 e) if test "x$ac_cv_prog_cc_c11" = x
4801then :
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4803printf "%s\n" "none needed" >&6; }
4804else case e in #(
4805 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4806printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4807 CC="$CC $ac_cv_prog_cc_c11" ;;
4808esac
4809fi
4810 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4811 ac_prog_cc_stdc=c11 ;;
4812esac
4813fi
4814fi
4815if test x$ac_prog_cc_stdc = xno
4816then :
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4818printf %s "checking for $CC option to enable C99 features... " >&6; }
4819if test ${ac_cv_prog_cc_c99+y}
4820then :
4821 printf %s "(cached) " >&6
4822else case e in #(
4823 e) ac_cv_prog_cc_c99=no
4824ac_save_CC=$CC
4825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827$ac_c_conftest_c99_program
4828_ACEOF
4829for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4830do
4831 CC="$ac_save_CC $ac_arg"
4832 if ac_fn_c_try_compile "$LINENO"
4833then :
4834 ac_cv_prog_cc_c99=$ac_arg
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.beam
4837 test "x$ac_cv_prog_cc_c99" != "xno" && break
4838done
4839rm -f conftest.$ac_ext
4840CC=$ac_save_CC ;;
4841esac
4842fi
4843
4844if test "x$ac_cv_prog_cc_c99" = xno
4845then :
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4847printf "%s\n" "unsupported" >&6; }
4848else case e in #(
4849 e) if test "x$ac_cv_prog_cc_c99" = x
4850then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4852printf "%s\n" "none needed" >&6; }
4853else case e in #(
4854 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4855printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4856 CC="$CC $ac_cv_prog_cc_c99" ;;
4857esac
4858fi
4859 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4860 ac_prog_cc_stdc=c99 ;;
4861esac
4862fi
4863fi
4864if test x$ac_prog_cc_stdc = xno
4865then :
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4867printf %s "checking for $CC option to enable C89 features... " >&6; }
4868if test ${ac_cv_prog_cc_c89+y}
4869then :
4870 printf %s "(cached) " >&6
4871else case e in #(
4872 e) ac_cv_prog_cc_c89=no
4873ac_save_CC=$CC
4874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h. */
4876$ac_c_conftest_c89_program
4877_ACEOF
4878for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879do
4880 CC="$ac_save_CC $ac_arg"
4881 if ac_fn_c_try_compile "$LINENO"
4882then :
4883 ac_cv_prog_cc_c89=$ac_arg
4884fi
4885rm -f core conftest.err conftest.$ac_objext conftest.beam
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
4887done
4888rm -f conftest.$ac_ext
4889CC=$ac_save_CC ;;
4890esac
4891fi
4892
4893if test "x$ac_cv_prog_cc_c89" = xno
4894then :
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896printf "%s\n" "unsupported" >&6; }
4897else case e in #(
4898 e) if test "x$ac_cv_prog_cc_c89" = x
4899then :
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4901printf "%s\n" "none needed" >&6; }
4902else case e in #(
4903 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4904printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4905 CC="$CC $ac_cv_prog_cc_c89" ;;
4906esac
4907fi
4908 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4909 ac_prog_cc_stdc=c89 ;;
4910esac
4911fi
4912fi
4913
4914ac_ext=c
4915ac_cpp='$CPP $CPPFLAGS'
4916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
4920
4921
4922
4923
4924
4925
4926ac_ext=cpp
4927ac_cpp='$CXXCPP $CPPFLAGS'
4928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4931if test -z "$CXX"; then
4932 if test -n "$CCC"; then
4933 CXX=$CCC
4934 else
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++
4937 do
4938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941printf %s "checking for $ac_word... " >&6; }
4942if test ${ac_cv_prog_CXX+y}
4943then :
4944 printf %s "(cached) " >&6
4945else case e in #(
4946 e) if test -n "$CXX"; then
4947 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4948else
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 case $as_dir in #(((
4954 '') as_dir=./ ;;
4955 */) ;;
4956 *) as_dir=$as_dir/ ;;
4957 esac
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
4962 break 2
4963 fi
4964done
4965 done
4966IFS=$as_save_IFS
4967
4968fi ;;
4969esac
4970fi
4971CXX=$ac_cv_prog_CXX
4972if test -n "$CXX"; then
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4974printf "%s\n" "$CXX" >&6; }
4975else
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977printf "%s\n" "no" >&6; }
4978fi
4979
4980
4981 test -n "$CXX" && break
4982 done
4983fi
4984if test -z "$CXX"; then
4985 ac_ct_CXX=$CXX
4986 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4987do
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989set dummy $ac_prog; ac_word=$2
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991printf %s "checking for $ac_word... " >&6; }
4992if test ${ac_cv_prog_ac_ct_CXX+y}
4993then :
4994 printf %s "(cached) " >&6
4995else case e in #(
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.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 case $as_dir in #(((
5004 '') as_dir=./ ;;
5005 */) ;;
5006 *) as_dir=$as_dir/ ;;
5007 esac
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
5012 break 2
5013 fi
5014done
5015 done
5016IFS=$as_save_IFS
5017
5018fi ;;
5019esac
5020fi
5021ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5022if test -n "$ac_ct_CXX"; then
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5024printf "%s\n" "$ac_ct_CXX" >&6; }
5025else
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027printf "%s\n" "no" >&6; }
5028fi
5029
5030
5031 test -n "$ac_ct_CXX" && break
5032done
5033
5034 if test "x$ac_ct_CXX" = x; then
5035 CXX="g++"
5036 else
5037 case $cross_compiling:$ac_tool_warned in
5038yes:)
5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041ac_tool_warned=yes ;;
5042esac
5043 CXX=$ac_ct_CXX
5044 fi
5045fi
5046
5047 fi
5048fi
5049# Provide some information about the compiler.
5050printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5051set X $ac_compile
5052ac_compiler=$2
5053for ac_option in --version -v -V -qversion; do
5054 { { ac_try="$ac_compiler $ac_option >&5"
5055case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058esac
5059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5060printf "%s\n" "$ac_try_echo"; } >&5
5061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5062 ac_status=$?
5063 if test -s conftest.err; then
5064 sed '10a\
5065... rest of stderr output deleted ...
5066 10q' conftest.err >conftest.er1
5067 cat conftest.er1 >&5
5068 fi
5069 rm -f conftest.er1 conftest.err
5070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }
5072done
5073
5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5075printf %s "checking whether the compiler supports GNU C++... " >&6; }
5076if test ${ac_cv_cxx_compiler_gnu+y}
5077then :
5078 printf %s "(cached) " >&6
5079else case e in #(
5080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h. */
5082
5083int
5084main (void)
5085{
5086#ifndef __GNUC__
5087 choke me
5088#endif
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094if ac_fn_cxx_try_compile "$LINENO"
5095then :
5096 ac_compiler_gnu=yes
5097else case e in #(
5098 e) ac_compiler_gnu=no ;;
5099esac
5100fi
5101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5102ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5103 ;;
5104esac
5105fi
5106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5107printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109
5110if test $ac_compiler_gnu = yes; then
5111 GXX=yes
5112else
5113 GXX=
5114fi
5115ac_test_CXXFLAGS=${CXXFLAGS+y}
5116ac_save_CXXFLAGS=$CXXFLAGS
5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5118printf %s "checking whether $CXX accepts -g... " >&6; }
5119if test ${ac_cv_prog_cxx_g+y}
5120then :
5121 printf %s "(cached) " >&6
5122else case e in #(
5123 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5124 ac_cxx_werror_flag=yes
5125 ac_cv_prog_cxx_g=no
5126 CXXFLAGS="-g"
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
5129
5130int
5131main (void)
5132{
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138if ac_fn_cxx_try_compile "$LINENO"
5139then :
5140 ac_cv_prog_cxx_g=yes
5141else case e in #(
5142 e) CXXFLAGS=""
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h. */
5145
5146int
5147main (void)
5148{
5149
5150 ;
5151 return 0;
5152}
5153_ACEOF
5154if ac_fn_cxx_try_compile "$LINENO"
5155then :
5156
5157else case e in #(
5158 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5159 CXXFLAGS="-g"
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h. */
5162
5163int
5164main (void)
5165{
5166
5167 ;
5168 return 0;
5169}
5170_ACEOF
5171if ac_fn_cxx_try_compile "$LINENO"
5172then :
5173 ac_cv_prog_cxx_g=yes
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5176esac
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5179esac
5180fi
5181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5183esac
5184fi
5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5186printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5187if test $ac_test_CXXFLAGS; then
5188 CXXFLAGS=$ac_save_CXXFLAGS
5189elif test $ac_cv_prog_cxx_g = yes; then
5190 if test "$GXX" = yes; then
5191 CXXFLAGS="-g -O2"
5192 else
5193 CXXFLAGS="-g"
5194 fi
5195else
5196 if test "$GXX" = yes; then
5197 CXXFLAGS="-O2"
5198 else
5199 CXXFLAGS=
5200 fi
5201fi
5202ac_prog_cxx_stdcxx=no
5203if test x$ac_prog_cxx_stdcxx = xno
5204then :
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5206printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5207if test ${ac_cv_prog_cxx_cxx11+y}
5208then :
5209 printf %s "(cached) " >&6
5210else case e in #(
5211 e) ac_cv_prog_cxx_cxx11=no
5212ac_save_CXX=$CXX
5213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h. */
5215$ac_cxx_conftest_cxx11_program
5216_ACEOF
5217for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5218do
5219 CXX="$ac_save_CXX $ac_arg"
5220 if ac_fn_cxx_try_compile "$LINENO"
5221then :
5222 ac_cv_prog_cxx_cxx11=$ac_arg
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.beam
5225 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5226done
5227rm -f conftest.$ac_ext
5228CXX=$ac_save_CXX ;;
5229esac
5230fi
5231
5232if test "x$ac_cv_prog_cxx_cxx11" = xno
5233then :
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5235printf "%s\n" "unsupported" >&6; }
5236else case e in #(
5237 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5238then :
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5240printf "%s\n" "none needed" >&6; }
5241else case e in #(
5242 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5243printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5244 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5245esac
5246fi
5247 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5248 ac_prog_cxx_stdcxx=cxx11 ;;
5249esac
5250fi
5251fi
5252if test x$ac_prog_cxx_stdcxx = xno
5253then :
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5255printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5256if test ${ac_cv_prog_cxx_cxx98+y}
5257then :
5258 printf %s "(cached) " >&6
5259else case e in #(
5260 e) ac_cv_prog_cxx_cxx98=no
5261ac_save_CXX=$CXX
5262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h. */
5264$ac_cxx_conftest_cxx98_program
5265_ACEOF
5266for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5267do
5268 CXX="$ac_save_CXX $ac_arg"
5269 if ac_fn_cxx_try_compile "$LINENO"
5270then :
5271 ac_cv_prog_cxx_cxx98=$ac_arg
5272fi
5273rm -f core conftest.err conftest.$ac_objext conftest.beam
5274 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5275done
5276rm -f conftest.$ac_ext
5277CXX=$ac_save_CXX ;;
5278esac
5279fi
5280
5281if test "x$ac_cv_prog_cxx_cxx98" = xno
5282then :
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5284printf "%s\n" "unsupported" >&6; }
5285else case e in #(
5286 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5287then :
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5289printf "%s\n" "none needed" >&6; }
5290else case e in #(
5291 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5292printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5293 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5294esac
5295fi
5296 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5297 ac_prog_cxx_stdcxx=cxx98 ;;
5298esac
5299fi
5300fi
5301
5302ac_ext=c
5303ac_cpp='$CPP $CPPFLAGS'
5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308CFLAGS=$save_CFLAGS
5309CXXFLAGS=$save_CXXFLAGS
5310PATH_SBIN="$PATH:/usr/sbin:/sbin"
5311
5312
5313
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
5320# AIX /bin/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
5329printf %s "checking for a BSD-compatible install... " >&6; }
5330if test -z "$INSTALL"; then
5331if test ${ac_cv_path_install+y}
5332then :
5333 printf %s "(cached) " >&6
5334else case e in #(
5335 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338 IFS=$as_save_IFS
5339 case $as_dir in #(((
5340 '') as_dir=./ ;;
5341 */) ;;
5342 *) as_dir=$as_dir/ ;;
5343 esac
5344 # Account for fact that we put trailing slashes in our PATH walk.
5345case $as_dir in #((
5346 ./ | /[cC]/* | \
5347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5348 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5349 /usr/ucb/* ) ;;
5350 *)
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
5353 # by default.
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.
5360 :
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.
5364 :
5365 else
5366 rm -rf conftest.one conftest.two conftest.dir
5367 echo one > conftest.one
5368 echo two > conftest.two
5369 mkdir conftest.dir
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
5374 then
5375 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5376 break 3
5377 fi
5378 fi
5379 fi
5380 done
5381 done
5382 ;;
5383esac
5384
5385 done
5386IFS=$as_save_IFS
5387
5388rm -rf conftest.one conftest.two conftest.dir
5389 ;;
5390esac
5391fi
5392 if test ${ac_cv_path_install+y}; then
5393 INSTALL=$ac_cv_path_install
5394 else
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
5400 fi
5401fi
5402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5403printf "%s\n" "$INSTALL" >&6; }
5404
5405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5406# It thinks the first close brace ends the variable substitution.
5407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5408
5409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5410
5411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5412
5413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5414printf %s "checking whether ln -s works... " >&6; }
5415LN_S=$as_ln_s
5416if test "$LN_S" = "ln -s"; then
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418printf "%s\n" "yes" >&6; }
5419else
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5421printf "%s\n" "no, using $LN_S" >&6; }
5422fi
5423
5424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5425printf %s "checking for grep that handles long lines and -e... " >&6; }
5426if test ${ac_cv_path_GREP+y}
5427then :
5428 printf %s "(cached) " >&6
5429else case e in #(
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
5434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5435do
5436 IFS=$as_save_IFS
5437 case $as_dir in #(((
5438 '') as_dir=./ ;;
5439 */) ;;
5440 *) as_dir=$as_dir/ ;;
5441 esac
5442 for ac_prog in grep ggrep
5443 do
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
5449case `"$ac_path_GREP" --version 2>&1` in #(
5450*GNU*)
5451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5452#(
5453*)
5454 ac_count=0
5455 printf %s 0123456789 >"conftest.in"
5456 while :
5457 do
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
5469 fi
5470 # 10*(2^10) chars as input seems more than enough
5471 test $ac_count -gt 10 && break
5472 done
5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5474esac
5475
5476 $ac_path_GREP_found && break 3
5477 done
5478 done
5479 done
5480IFS=$as_save_IFS
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
5483 fi
5484else
5485 ac_cv_path_GREP=$GREP
5486fi
5487 ;;
5488esac
5489fi
5490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5491printf "%s\n" "$ac_cv_path_GREP" >&6; }
5492 GREP="$ac_cv_path_GREP"
5493
5494
5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5496printf %s "checking for egrep... " >&6; }
5497if test ${ac_cv_path_EGREP+y}
5498then :
5499 printf %s "(cached) " >&6
5500else case e in #(
5501 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5502 then ac_cv_path_EGREP="$GREP -E"
5503 else
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
5508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5509do
5510 IFS=$as_save_IFS
5511 case $as_dir in #(((
5512 '') as_dir=./ ;;
5513 */) ;;
5514 *) as_dir=$as_dir/ ;;
5515 esac
5516 for ac_prog in egrep
5517 do
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
5523case `"$ac_path_EGREP" --version 2>&1` in #(
5524*GNU*)
5525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5526#(
5527*)
5528 ac_count=0
5529 printf %s 0123456789 >"conftest.in"
5530 while :
5531 do
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
5543 fi
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5546 done
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548esac
5549
5550 $ac_path_EGREP_found && break 3
5551 done
5552 done
5553 done
5554IFS=$as_save_IFS
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
5557 fi
5558else
5559 ac_cv_path_EGREP=$EGREP
5560fi
5561
5562 fi ;;
5563esac
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5566printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5567 EGREP="$ac_cv_path_EGREP"
5568
5569 EGREP_TRADITIONAL=$EGREP
5570 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5571
5572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5573printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5574set x ${MAKE-make}
5575ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5576if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5577then :
5578 printf %s "(cached) " >&6
5579else case e in #(
5580 e) cat >conftest.make <<\_ACEOF
5581SHELL = /bin/sh
5582all:
5583 @echo '@@@%%%=$(MAKE)=@@@%%%'
5584_ACEOF
5585# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5586case `${MAKE-make} -f conftest.make 2>/dev/null` in
5587 *@@@%%%=?*=@@@%%%*)
5588 eval ac_cv_prog_make_${ac_make}_set=yes;;
5589 *)
5590 eval ac_cv_prog_make_${ac_make}_set=no;;
5591esac
5592rm -f conftest.make ;;
5593esac
5594fi
5595if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597printf "%s\n" "yes" >&6; }
5598 SET_MAKE=
5599else
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601printf "%s\n" "no" >&6; }
5602 SET_MAKE="MAKE=${MAKE-make}"
5603fi
5604
5605
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5607printf %s "checking for a race-free mkdir -p... " >&6; }
5608if test -z "$MKDIR_P"; then
5609 if test ${ac_cv_path_mkdir+y}
5610then :
5611 printf %s "(cached) " >&6
5612else case e in #(
5613 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5615do
5616 IFS=$as_save_IFS
5617 case $as_dir in #(((
5618 '') as_dir=./ ;;
5619 */) ;;
5620 *) as_dir=$as_dir/ ;;
5621 esac
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) '* | \
5627 *'BusyBox '* | \
5628 'mkdir (fileutils) '4.1*)
5629 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5630 break 3;;
5631 esac
5632 done
5633 done
5634 done
5635IFS=$as_save_IFS
5636 ;;
5637esac
5638fi
5639
5640 test -d ./--version && rmdir ./--version
5641 if test ${ac_cv_path_mkdir+y}; then
5642 MKDIR_P="$ac_cv_path_mkdir -p"
5643 else
5644 # As a last resort, use plain mkdir -p,
5645 # in the hope it doesn't have the bugs of ancient mkdir.
5646 MKDIR_P='mkdir -p'
5647 fi
5648fi
5649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5650printf "%s\n" "$MKDIR_P" >&6; }
5651
5652if 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.
5654set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656printf %s "checking for $ac_word... " >&6; }
5657if test ${ac_cv_prog_RANLIB+y}
5658then :
5659 printf %s "(cached) " >&6
5660else case e in #(
5661 e) if test -n "$RANLIB"; then
5662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5663else
5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667 IFS=$as_save_IFS
5668 case $as_dir in #(((
5669 '') as_dir=./ ;;
5670 */) ;;
5671 *) as_dir=$as_dir/ ;;
5672 esac
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
5677 break 2
5678 fi
5679done
5680 done
5681IFS=$as_save_IFS
5682
5683fi ;;
5684esac
5685fi
5686RANLIB=$ac_cv_prog_RANLIB
5687if test -n "$RANLIB"; then
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5689printf "%s\n" "$RANLIB" >&6; }
5690else
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692printf "%s\n" "no" >&6; }
5693fi
5694
5695
5696fi
5697if 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.
5700set dummy ranlib; ac_word=$2
5701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702printf %s "checking for $ac_word... " >&6; }
5703if test ${ac_cv_prog_ac_ct_RANLIB+y}
5704then :
5705 printf %s "(cached) " >&6
5706else case e in #(
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.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 case $as_dir in #(((
5715 '') as_dir=./ ;;
5716 */) ;;
5717 *) as_dir=$as_dir/ ;;
5718 esac
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
5723 break 2
5724 fi
5725done
5726 done
5727IFS=$as_save_IFS
5728
5729fi ;;
5730esac
5731fi
5732ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5733if test -n "$ac_ct_RANLIB"; then
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5735printf "%s\n" "$ac_ct_RANLIB" >&6; }
5736else
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738printf "%s\n" "no" >&6; }
5739fi
5740
5741 if test "x$ac_ct_RANLIB" = x; then
5742 RANLIB=":"
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745yes:)
5746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748ac_tool_warned=yes ;;
5749esac
5750 RANLIB=$ac_ct_RANLIB
5751 fi
5752else
5753 RANLIB="$ac_cv_prog_RANLIB"
5754fi
5755
5756if 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.
5758set dummy ${ac_tool_prefix}readelf; ac_word=$2
5759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760printf %s "checking for $ac_word... " >&6; }
5761if test ${ac_cv_prog_READELF+y}
5762then :
5763 printf %s "(cached) " >&6
5764else case e in #(
5765 e) if test -n "$READELF"; then
5766 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 case $as_dir in #(((
5773 '') as_dir=./ ;;
5774 */) ;;
5775 *) as_dir=$as_dir/ ;;
5776 esac
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
5781 break 2
5782 fi
5783done
5784 done
5785IFS=$as_save_IFS
5786
5787fi ;;
5788esac
5789fi
5790READELF=$ac_cv_prog_READELF
5791if test -n "$READELF"; then
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5793printf "%s\n" "$READELF" >&6; }
5794else
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796printf "%s\n" "no" >&6; }
5797fi
5798
5799
5800fi
5801if 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.
5804set dummy readelf; ac_word=$2
5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806printf %s "checking for $ac_word... " >&6; }
5807if test ${ac_cv_prog_ac_ct_READELF+y}
5808then :
5809 printf %s "(cached) " >&6
5810else case e in #(
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.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 case $as_dir in #(((
5819 '') as_dir=./ ;;
5820 */) ;;
5821 *) as_dir=$as_dir/ ;;
5822 esac
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
5827 break 2
5828 fi
5829done
5830 done
5831IFS=$as_save_IFS
5832
5833fi ;;
5834esac
5835fi
5836ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5837if test -n "$ac_ct_READELF"; then
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5839printf "%s\n" "$ac_ct_READELF" >&6; }
5840else
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842printf "%s\n" "no" >&6; }
5843fi
5844
5845 if test "x$ac_ct_READELF" = x; then
5846 READELF=""
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849yes:)
5850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852ac_tool_warned=yes ;;
5853esac
5854 READELF=$ac_ct_READELF
5855 fi
5856else
5857 READELF="$ac_cv_prog_READELF"
5858fi
5859
5860if 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.
5862set dummy ${ac_tool_prefix}ar; ac_word=$2
5863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864printf %s "checking for $ac_word... " >&6; }
5865if test ${ac_cv_prog_AR+y}
5866then :
5867 printf %s "(cached) " >&6
5868else case e in #(
5869 e) if test -n "$AR"; then
5870 ac_cv_prog_AR="$AR" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 case $as_dir in #(((
5877 '') as_dir=./ ;;
5878 */) ;;
5879 *) as_dir=$as_dir/ ;;
5880 esac
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
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
5891fi ;;
5892esac
5893fi
5894AR=$ac_cv_prog_AR
5895if test -n "$AR"; then
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5897printf "%s\n" "$AR" >&6; }
5898else
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900printf "%s\n" "no" >&6; }
5901fi
5902
5903
5904fi
5905if test -z "$ac_cv_prog_AR"; then
5906 ac_ct_AR=$AR
5907 # Extract the first word of "ar", so it can be a program name with args.
5908set dummy ar; ac_word=$2
5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910printf %s "checking for $ac_word... " >&6; }
5911if test ${ac_cv_prog_ac_ct_AR+y}
5912then :
5913 printf %s "(cached) " >&6
5914else case e in #(
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.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 case $as_dir in #(((
5923 '') as_dir=./ ;;
5924 */) ;;
5925 *) as_dir=$as_dir/ ;;
5926 esac
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
5931 break 2
5932 fi
5933done
5934 done
5935IFS=$as_save_IFS
5936
5937fi ;;
5938esac
5939fi
5940ac_ct_AR=$ac_cv_prog_ac_ct_AR
5941if test -n "$ac_ct_AR"; then
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5943printf "%s\n" "$ac_ct_AR" >&6; }
5944else
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946printf "%s\n" "no" >&6; }
5947fi
5948
5949 if test "x$ac_ct_AR" = x; then
5950 AR=""
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953yes:)
5954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958 AR=$ac_ct_AR
5959 fi
5960else
5961 AR="$ac_cv_prog_AR"
5962fi
5963
5964if 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.
5966set dummy ${ac_tool_prefix}cflow; ac_word=$2
5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968printf %s "checking for $ac_word... " >&6; }
5969if test ${ac_cv_path_CFLOW_CMD+y}
5970then :
5971 printf %s "(cached) " >&6
5972else case e in #(
5973 e) case $CFLOW_CMD in
5974 [\\/]* | ?:[\\/]*)
5975 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
5976 ;;
5977 *)
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 case $as_dir in #(((
5983 '') as_dir=./ ;;
5984 */) ;;
5985 *) as_dir=$as_dir/ ;;
5986 esac
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
5991 break 2
5992 fi
5993done
5994 done
5995IFS=$as_save_IFS
5996
5997 ;;
5998esac ;;
5999esac
6000fi
6001CFLOW_CMD=$ac_cv_path_CFLOW_CMD
6002if test -n "$CFLOW_CMD"; then
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
6004printf "%s\n" "$CFLOW_CMD" >&6; }
6005else
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007printf "%s\n" "no" >&6; }
6008fi
6009
6010
6011fi
6012if 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.
6015set dummy cflow; ac_word=$2
6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017printf %s "checking for $ac_word... " >&6; }
6018if test ${ac_cv_path_ac_pt_CFLOW_CMD+y}
6019then :
6020 printf %s "(cached) " >&6
6021else case e in #(
6022 e) case $ac_pt_CFLOW_CMD in
6023 [\\/]* | ?:[\\/]*)
6024 ac_cv_path_ac_pt_CFLOW_CMD="$ac_pt_CFLOW_CMD" # Let the user override the test with a path.
6025 ;;
6026 *)
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 case $as_dir in #(((
6032 '') as_dir=./ ;;
6033 */) ;;
6034 *) as_dir=$as_dir/ ;;
6035 esac
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
6040 break 2
6041 fi
6042done
6043 done
6044IFS=$as_save_IFS
6045
6046 ;;
6047esac ;;
6048esac
6049fi
6050ac_pt_CFLOW_CMD=$ac_cv_path_ac_pt_CFLOW_CMD
6051if test -n "$ac_pt_CFLOW_CMD"; then
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CFLOW_CMD" >&5
6053printf "%s\n" "$ac_pt_CFLOW_CMD" >&6; }
6054else
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056printf "%s\n" "no" >&6; }
6057fi
6058
6059 if test "x$ac_pt_CFLOW_CMD" = x; then
6060 CFLOW_CMD=""
6061 else
6062 case $cross_compiling:$ac_tool_warned in
6063yes:)
6064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066ac_tool_warned=yes ;;
6067esac
6068 CFLOW_CMD=$ac_pt_CFLOW_CMD
6069 fi
6070else
6071 CFLOW_CMD="$ac_cv_path_CFLOW_CMD"
6072fi
6073
6074if 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.
6076set dummy ${ac_tool_prefix}cscope; ac_word=$2
6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078printf %s "checking for $ac_word... " >&6; }
6079if test ${ac_cv_path_CSCOPE_CMD+y}
6080then :
6081 printf %s "(cached) " >&6
6082else case e in #(
6083 e) case $CSCOPE_CMD in
6084 [\\/]* | ?:[\\/]*)
6085 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
6086 ;;
6087 *)
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 case $as_dir in #(((
6093 '') as_dir=./ ;;
6094 */) ;;
6095 *) as_dir=$as_dir/ ;;
6096 esac
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
6101 break 2
6102 fi
6103done
6104 done
6105IFS=$as_save_IFS
6106
6107 ;;
6108esac ;;
6109esac
6110fi
6111CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
6112if test -n "$CSCOPE_CMD"; then
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
6114printf "%s\n" "$CSCOPE_CMD" >&6; }
6115else
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117printf "%s\n" "no" >&6; }
6118fi
6119
6120
6121fi
6122if 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.
6125set dummy cscope; ac_word=$2
6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127printf %s "checking for $ac_word... " >&6; }
6128if test ${ac_cv_path_ac_pt_CSCOPE_CMD+y}
6129then :
6130 printf %s "(cached) " >&6
6131else case e in #(
6132 e) case $ac_pt_CSCOPE_CMD in
6133 [\\/]* | ?:[\\/]*)
6134 ac_cv_path_ac_pt_CSCOPE_CMD="$ac_pt_CSCOPE_CMD" # Let the user override the test with a path.
6135 ;;
6136 *)
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 case $as_dir in #(((
6142 '') as_dir=./ ;;
6143 */) ;;
6144 *) as_dir=$as_dir/ ;;
6145 esac
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
6150 break 2
6151 fi
6152done
6153 done
6154IFS=$as_save_IFS
6155
6156 ;;
6157esac ;;
6158esac
6159fi
6160ac_pt_CSCOPE_CMD=$ac_cv_path_ac_pt_CSCOPE_CMD
6161if test -n "$ac_pt_CSCOPE_CMD"; then
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CSCOPE_CMD" >&5
6163printf "%s\n" "$ac_pt_CSCOPE_CMD" >&6; }
6164else
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166printf "%s\n" "no" >&6; }
6167fi
6168
6169 if test "x$ac_pt_CSCOPE_CMD" = x; then
6170 CSCOPE_CMD=""
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173yes:)
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176ac_tool_warned=yes ;;
6177esac
6178 CSCOPE_CMD=$ac_pt_CSCOPE_CMD
6179 fi
6180else
6181 CSCOPE_CMD="$ac_cv_path_CSCOPE_CMD"
6182fi
6183
6184if 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.
6186set dummy ${ac_tool_prefix}chmod; ac_word=$2
6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188printf %s "checking for $ac_word... " >&6; }
6189if test ${ac_cv_path_CHMOD+y}
6190then :
6191 printf %s "(cached) " >&6
6192else case e in #(
6193 e) case $CHMOD in
6194 [\\/]* | ?:[\\/]*)
6195 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6196 ;;
6197 *)
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 case $as_dir in #(((
6203 '') as_dir=./ ;;
6204 */) ;;
6205 *) as_dir=$as_dir/ ;;
6206 esac
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
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217 ;;
6218esac ;;
6219esac
6220fi
6221CHMOD=$ac_cv_path_CHMOD
6222if test -n "$CHMOD"; then
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6224printf "%s\n" "$CHMOD" >&6; }
6225else
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227printf "%s\n" "no" >&6; }
6228fi
6229
6230
6231fi
6232if test -z "$ac_cv_path_CHMOD"; then
6233 ac_pt_CHMOD=$CHMOD
6234 # Extract the first word of "chmod", so it can be a program name with args.
6235set dummy chmod; ac_word=$2
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237printf %s "checking for $ac_word... " >&6; }
6238if test ${ac_cv_path_ac_pt_CHMOD+y}
6239then :
6240 printf %s "(cached) " >&6
6241else case e in #(
6242 e) case $ac_pt_CHMOD in
6243 [\\/]* | ?:[\\/]*)
6244 ac_cv_path_ac_pt_CHMOD="$ac_pt_CHMOD" # Let the user override the test with a path.
6245 ;;
6246 *)
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 case $as_dir in #(((
6252 '') as_dir=./ ;;
6253 */) ;;
6254 *) as_dir=$as_dir/ ;;
6255 esac
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
6260 break 2
6261 fi
6262done
6263 done
6264IFS=$as_save_IFS
6265
6266 ;;
6267esac ;;
6268esac
6269fi
6270ac_pt_CHMOD=$ac_cv_path_ac_pt_CHMOD
6271if test -n "$ac_pt_CHMOD"; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CHMOD" >&5
6273printf "%s\n" "$ac_pt_CHMOD" >&6; }
6274else
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276printf "%s\n" "no" >&6; }
6277fi
6278
6279 if test "x$ac_pt_CHMOD" = x; then
6280 CHMOD=""
6281 else
6282 case $cross_compiling:$ac_tool_warned in
6283yes:)
6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286ac_tool_warned=yes ;;
6287esac
6288 CHMOD=$ac_pt_CHMOD
6289 fi
6290else
6291 CHMOD="$ac_cv_path_CHMOD"
6292fi
6293
6294if 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.
6296set dummy ${ac_tool_prefix}wc; ac_word=$2
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298printf %s "checking for $ac_word... " >&6; }
6299if test ${ac_cv_path_WC+y}
6300then :
6301 printf %s "(cached) " >&6
6302else case e in #(
6303 e) case $WC in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_WC="$WC" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 case $as_dir in #(((
6313 '') as_dir=./ ;;
6314 */) ;;
6315 *) as_dir=$as_dir/ ;;
6316 esac
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
6321 break 2
6322 fi
6323done
6324 done
6325IFS=$as_save_IFS
6326
6327 ;;
6328esac ;;
6329esac
6330fi
6331WC=$ac_cv_path_WC
6332if test -n "$WC"; then
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
6334printf "%s\n" "$WC" >&6; }
6335else
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337printf "%s\n" "no" >&6; }
6338fi
6339
6340
6341fi
6342if test -z "$ac_cv_path_WC"; then
6343 ac_pt_WC=$WC
6344 # Extract the first word of "wc", so it can be a program name with args.
6345set dummy wc; ac_word=$2
6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347printf %s "checking for $ac_word... " >&6; }
6348if test ${ac_cv_path_ac_pt_WC+y}
6349then :
6350 printf %s "(cached) " >&6
6351else case e in #(
6352 e) case $ac_pt_WC in
6353 [\\/]* | ?:[\\/]*)
6354 ac_cv_path_ac_pt_WC="$ac_pt_WC" # Let the user override the test with a path.
6355 ;;
6356 *)
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 case $as_dir in #(((
6362 '') as_dir=./ ;;
6363 */) ;;
6364 *) as_dir=$as_dir/ ;;
6365 esac
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
6370 break 2
6371 fi
6372done
6373 done
6374IFS=$as_save_IFS
6375
6376 ;;
6377esac ;;
6378esac
6379fi
6380ac_pt_WC=$ac_cv_path_ac_pt_WC
6381if test -n "$ac_pt_WC"; then
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_WC" >&5
6383printf "%s\n" "$ac_pt_WC" >&6; }
6384else
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386printf "%s\n" "no" >&6; }
6387fi
6388
6389 if test "x$ac_pt_WC" = x; then
6390 WC=""
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393yes:)
6394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396ac_tool_warned=yes ;;
6397esac
6398 WC=$ac_pt_WC
6399 fi
6400else
6401 WC="$ac_cv_path_WC"
6402fi
6403
6404if 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.
6406set dummy ${ac_tool_prefix}sort; ac_word=$2
6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408printf %s "checking for $ac_word... " >&6; }
6409if test ${ac_cv_path_SORT+y}
6410then :
6411 printf %s "(cached) " >&6
6412else case e in #(
6413 e) case $SORT in
6414 [\\/]* | ?:[\\/]*)
6415 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
6416 ;;
6417 *)
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 case $as_dir in #(((
6423 '') as_dir=./ ;;
6424 */) ;;
6425 *) as_dir=$as_dir/ ;;
6426 esac
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
6431 break 2
6432 fi
6433done
6434 done
6435IFS=$as_save_IFS
6436
6437 ;;
6438esac ;;
6439esac
6440fi
6441SORT=$ac_cv_path_SORT
6442if test -n "$SORT"; then
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
6444printf "%s\n" "$SORT" >&6; }
6445else
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447printf "%s\n" "no" >&6; }
6448fi
6449
6450
6451fi
6452if test -z "$ac_cv_path_SORT"; then
6453 ac_pt_SORT=$SORT
6454 # Extract the first word of "sort", so it can be a program name with args.
6455set dummy sort; ac_word=$2
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457printf %s "checking for $ac_word... " >&6; }
6458if test ${ac_cv_path_ac_pt_SORT+y}
6459then :
6460 printf %s "(cached) " >&6
6461else case e in #(
6462 e) case $ac_pt_SORT in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_ac_pt_SORT="$ac_pt_SORT" # Let the user override the test with a path.
6465 ;;
6466 *)
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6471 case $as_dir in #(((
6472 '') as_dir=./ ;;
6473 */) ;;
6474 *) as_dir=$as_dir/ ;;
6475 esac
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
6480 break 2
6481 fi
6482done
6483 done
6484IFS=$as_save_IFS
6485
6486 ;;
6487esac ;;
6488esac
6489fi
6490ac_pt_SORT=$ac_cv_path_ac_pt_SORT
6491if test -n "$ac_pt_SORT"; then
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SORT" >&5
6493printf "%s\n" "$ac_pt_SORT" >&6; }
6494else
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496printf "%s\n" "no" >&6; }
6497fi
6498
6499 if test "x$ac_pt_SORT" = x; then
6500 SORT=""
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508 SORT=$ac_pt_SORT
6509 fi
6510else
6511 SORT="$ac_cv_path_SORT"
6512fi
6513
6514
6515################################################################################
6516
6517ac_header_dirent=no
6518for 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
6521printf %s "checking for $ac_hdr that defines DIR... " >&6; }
6522if eval test \${$as_ac_Header+y}
6523then :
6524 printf %s "(cached) " >&6
6525else case e in #(
6526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h. */
6528#include <sys/types.h>
6529#include <$ac_hdr>
6530
6531int
6532main (void)
6533{
6534if ((DIR *) 0)
6535return 0;
6536 ;
6537 return 0;
6538}
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"
6541then :
6542 eval "$as_ac_Header=yes"
6543else case e in #(
6544 e) eval "$as_ac_Header=no" ;;
6545esac
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6548esac
6549fi
6550eval ac_res=\$$as_ac_Header
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552printf "%s\n" "$ac_res" >&6; }
6553if eval test \"x\$"$as_ac_Header"\" = x"yes"
6554then :
6555 cat >>confdefs.h <<_ACEOF
6556#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
6557_ACEOF
6558
6559ac_header_dirent=$ac_hdr; break
6560fi
6561
6562done
6563# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6564if test $ac_header_dirent = dirent.h; then
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6566printf %s "checking for library containing opendir... " >&6; }
6567if test ${ac_cv_search_opendir+y}
6568then :
6569 printf %s "(cached) " >&6
6570else case e in #(
6571 e) ac_func_search_save_LIBS=$LIBS
6572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
6574
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). */
6581#ifdef __cplusplus
6582extern "C"
6583#endif
6584char opendir (void);
6585int
6586main (void)
6587{
6588return opendir ();
6589 ;
6590 return 0;
6591}
6592_ACEOF
6593for ac_lib in '' dir
6594do
6595 if test -z "$ac_lib"; then
6596 ac_res="none required"
6597 else
6598 ac_res=-l$ac_lib
6599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6600 fi
6601 if ac_fn_c_try_link "$LINENO"
6602then :
6603 ac_cv_search_opendir=$ac_res
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.beam \
6606 conftest$ac_exeext
6607 if test ${ac_cv_search_opendir+y}
6608then :
6609 break
6610fi
6611done
6612if test ${ac_cv_search_opendir+y}
6613then :
6614
6615else case e in #(
6616 e) ac_cv_search_opendir=no ;;
6617esac
6618fi
6619rm conftest.$ac_ext
6620LIBS=$ac_func_search_save_LIBS ;;
6621esac
6622fi
6623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6624printf "%s\n" "$ac_cv_search_opendir" >&6; }
6625ac_res=$ac_cv_search_opendir
6626if test "$ac_res" != no
6627then :
6628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6629
6630fi
6631
6632else
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6634printf %s "checking for library containing opendir... " >&6; }
6635if test ${ac_cv_search_opendir+y}
6636then :
6637 printf %s "(cached) " >&6
6638else case e in #(
6639 e) ac_func_search_save_LIBS=$LIBS
6640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h. */
6642
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). */
6649#ifdef __cplusplus
6650extern "C"
6651#endif
6652char opendir (void);
6653int
6654main (void)
6655{
6656return opendir ();
6657 ;
6658 return 0;
6659}
6660_ACEOF
6661for ac_lib in '' x
6662do
6663 if test -z "$ac_lib"; then
6664 ac_res="none required"
6665 else
6666 ac_res=-l$ac_lib
6667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6668 fi
6669 if ac_fn_c_try_link "$LINENO"
6670then :
6671 ac_cv_search_opendir=$ac_res
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.beam \
6674 conftest$ac_exeext
6675 if test ${ac_cv_search_opendir+y}
6676then :
6677 break
6678fi
6679done
6680if test ${ac_cv_search_opendir+y}
6681then :
6682
6683else case e in #(
6684 e) ac_cv_search_opendir=no ;;
6685esac
6686fi
6687rm conftest.$ac_ext
6688LIBS=$ac_func_search_save_LIBS ;;
6689esac
6690fi
6691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6692printf "%s\n" "$ac_cv_search_opendir" >&6; }
6693ac_res=$ac_cv_search_opendir
6694if test "$ac_res" != no
6695then :
6696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6697
6698fi
6699
6700fi
6701
6702ac_header= ac_cache=
6703for ac_item in $ac_header_c_list
6704do
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
6709 fi
6710 ac_header= ac_cache=
6711 elif test $ac_header; then
6712 ac_cache=$ac_item
6713 else
6714 ac_header=$ac_item
6715 fi
6716done
6717
6718
6719
6720
6721
6722
6723
6724
6725if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6726then :
6727
6728printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6729
6730fi
6731
6732ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6733if test "x$ac_cv_header_sys_mkdev_h" = xyes
6734then :
6735
6736printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6737
6738fi
6739
6740if 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"
6742if test "x$ac_cv_header_sys_sysmacros_h" = xyes
6743then :
6744
6745printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6746
6747fi
6748
6749fi
6750
6751ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6752if test "x$ac_cv_type__Bool" = xyes
6753then :
6754
6755printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6756
6757
6758fi
6759
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
6761printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
6762if test ${ac_cv_header_stdbool_h+y}
6763then :
6764 printf %s "(cached) " >&6
6765else case e in #(
6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h. */
6768#include <stdbool.h>
6769
6770 /* "true" and "false" should be usable in #if expressions and
6771 integer constant expressions, and "bool" should be a valid
6772 type name.
6773
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
6778 them. */
6779
6780 #if !true
6781 #error "'true' is not true"
6782 #endif
6783 #if true != 1
6784 #error "'true' is not equal to 1"
6785 #endif
6786 char b[true == 1 ? 1 : -1];
6787 char c[true];
6788
6789 #if false
6790 #error "'false' is not false"
6791 #endif
6792 #if false != 0
6793 #error "'false' is not equal to 0"
6794 #endif
6795 char d[false == 0 ? 1 : -1];
6796
6797 enum { e = false, f = true, g = false * true, h = true * 256 };
6798
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];
6802
6803 struct sb { bool s: 1; bool t; } s;
6804 char l[sizeof s.t > 0 ? 1 : -1];
6805
6806 /* The following fails for
6807 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6808 bool m[h];
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
6814 */
6815 bool p = true;
6816 bool *pp = &p;
6817
6818int
6819main (void)
6820{
6821
6822 bool ps = &s;
6823 *pp |= p;
6824 *pp |= ! p;
6825
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);
6830
6831 ;
6832 return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_compile "$LINENO"
6836then :
6837 ac_cv_header_stdbool_h=yes
6838else case e in #(
6839 e) ac_cv_header_stdbool_h=no ;;
6840esac
6841fi
6842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6843esac
6844fi
6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6846printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
6847
6848if test $ac_cv_header_stdbool_h = yes; then
6849
6850printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
6851
6852fi
6853
6854
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
6856do :
6857 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6858ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6859if eval test \"x\$"$as_ac_Header"\" = x"yes"
6860then :
6861 cat >>confdefs.h <<_ACEOF
6862#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
6863_ACEOF
6864
6865else case e in #(
6866 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6867esac
6868fi
6869
6870done
6871
6872ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
6873if test "x$ac_cv_header_termios_h" = xyes
6874then :
6875 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
6876
6877fi
6878ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
6879if test "x$ac_cv_header_sys_statvfs_h" = xyes
6880then :
6881 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
6882
6883fi
6884ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
6885if test "x$ac_cv_header_sys_timerfd_h" = xyes
6886then :
6887 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
6888
6889fi
6890ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
6891if test "x$ac_cv_header_sys_vfs_h" = xyes
6892then :
6893 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
6894
6895fi
6896ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
6897if test "x$ac_cv_header_linux_magic_h" = xyes
6898then :
6899 printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h
6900
6901fi
6902ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
6903if test "x$ac_cv_header_linux_fiemap_h" = xyes
6904then :
6905 printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
6906
6907fi
6908
6909 for ac_header in libaio.h
6910do :
6911 ac_fn_c_check_header_compile "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
6912if test "x$ac_cv_header_libaio_h" = xyes
6913then :
6914 printf "%s\n" "#define HAVE_LIBAIO_H 1" >>confdefs.h
6915 LVM_NEEDS_LIBAIO_WARN=
6916else case e in #(
6917 e) LVM_NEEDS_LIBAIO_WARN=y ;;
6918esac
6919fi
6920
6921done
6922case "$host_os" in #(
6923 linux*) :
6924 for ac_header in asm/byteorder.h linux/fs.h malloc.h
6925do :
6926 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6927ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6928if eval test \"x\$"$as_ac_Header"\" = x"yes"
6929then :
6930 cat >>confdefs.h <<_ACEOF
6931#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
6932_ACEOF
6933
6934else case e in #(
6935 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6936esac
6937fi
6938
6939done ;; #(
6940 darwin*) :
6941 for ac_header in machine/endian.h sys/disk.h
6942do :
6943 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6944ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6945if eval test \"x\$"$as_ac_Header"\" = x"yes"
6946then :
6947 cat >>confdefs.h <<_ACEOF
6948#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
6949_ACEOF
6950
6951else case e in #(
6952 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6953esac
6954fi
6955
6956done ;; #(
6957 *) :
6958 ;;
6959esac
6960
6961################################################################################
6962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6963printf %s "checking for an ANSI C-conforming const... " >&6; }
6964if test ${ac_cv_c_const+y}
6965then :
6966 printf %s "(cached) " >&6
6967else case e in #(
6968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h. */
6970
6971int
6972main (void)
6973{
6974
6975#ifndef __cplusplus
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;
6981 char **ppc;
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
6988 expression */
6989 const char *g = "string";
6990 pcpcc = &g + (g ? g-g : 0);
6991 /* HPUX 7.0 cc rejects these. */
6992 ++pcpcc;
6993 ppc = (char**) pcpcc;
6994 pcpcc = (char const *const *) ppc;
6995 { /* SCO 3.2v4 cc rejects this sort of thing. */
6996 char tx;
6997 char *t = &tx;
6998 char const *s = 0 ? (char *) 0 : (char const *) 0;
6999
7000 *t++ = 0;
7001 if (s) return 0;
7002 }
7003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7004 int x[] = {25, 17};
7005 const int *foo = &x[0];
7006 ++foo;
7007 }
7008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7009 typedef const int *iptr;
7010 iptr p = 0;
7011 ++p;
7012 }
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;
7017 }
7018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7019 const int foo = 10;
7020 if (!foo) return 0;
7021 }
7022 return !cs[0] && !zero.x;
7023#endif
7024
7025 ;
7026 return 0;
7027}
7028_ACEOF
7029if ac_fn_c_try_compile "$LINENO"
7030then :
7031 ac_cv_c_const=yes
7032else case e in #(
7033 e) ac_cv_c_const=no ;;
7034esac
7035fi
7036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7037esac
7038fi
7039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7040printf "%s\n" "$ac_cv_c_const" >&6; }
7041if test $ac_cv_c_const = no; then
7042
7043printf "%s\n" "#define const /**/" >>confdefs.h
7044
7045fi
7046
7047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7048printf %s "checking for inline... " >&6; }
7049if test ${ac_cv_c_inline+y}
7050then :
7051 printf %s "(cached) " >&6
7052else case e in #(
7053 e) ac_cv_c_inline=no
7054for ac_kw in inline __inline__ __inline; do
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h. */
7057#ifndef __cplusplus
7058typedef int foo_t;
7059static $ac_kw foo_t static_foo (void) {return 0; }
7060$ac_kw foo_t foo (void) {return 0; }
7061#endif
7062
7063_ACEOF
7064if ac_fn_c_try_compile "$LINENO"
7065then :
7066 ac_cv_c_inline=$ac_kw
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7069 test "$ac_cv_c_inline" != no && break
7070done
7071 ;;
7072esac
7073fi
7074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7075printf "%s\n" "$ac_cv_c_inline" >&6; }
7076
7077case $ac_cv_c_inline in
7078 inline | yes) ;;
7079 *)
7080 case $ac_cv_c_inline in
7081 no) ac_val=;;
7082 *) ac_val=$ac_cv_c_inline;;
7083 esac
7084 cat >>confdefs.h <<_ACEOF
7085#ifndef __cplusplus
7086#define inline $ac_val
7087#endif
7088_ACEOF
7089 ;;
7090esac
7091
7092ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7093if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
7094then :
7095
7096printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
7097
7098
7099fi
7100
7101ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7102if test "x$ac_cv_type_ptrdiff_t" = xyes
7103then :
7104
7105printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
7106
7107
7108fi
7109
7110ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7111if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
7112then :
7113
7114printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
7115
7116
7117printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7118
7119else case e in #(
7120 e) case " $LIBOBJS " in
7121 *" fileblocks.$ac_objext "* ) ;;
7122 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7123 ;;
7124esac
7125 ;;
7126esac
7127fi
7128
7129
7130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7131printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7132if test ${ac_cv_struct_tm+y}
7133then :
7134 printf %s "(cached) " >&6
7135else case e in #(
7136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h. */
7138#include <sys/types.h>
7139#include <time.h>
7140
7141int
7142main (void)
7143{
7144struct tm tm;
7145 int *p = &tm.tm_sec;
7146 return !p;
7147 ;
7148 return 0;
7149}
7150_ACEOF
7151if ac_fn_c_try_compile "$LINENO"
7152then :
7153 ac_cv_struct_tm=time.h
7154else case e in #(
7155 e) ac_cv_struct_tm=sys/time.h ;;
7156esac
7157fi
7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7159esac
7160fi
7161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7162printf "%s\n" "$ac_cv_struct_tm" >&6; }
7163if test $ac_cv_struct_tm = sys/time.h; then
7164
7165printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
7166
7167fi
7168
7169ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7170if test "x$ac_cv_type_off_t" = xyes
7171then :
7172
7173else case e in #(
7174 e)
7175printf "%s\n" "#define off_t long int" >>confdefs.h
7176 ;;
7177esac
7178fi
7179
7180
7181 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7182"
7183if test "x$ac_cv_type_pid_t" = xyes
7184then :
7185
7186else case e in #(
7187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h. */
7189
7190 #if defined _WIN64 && !defined __CYGWIN__
7191 LLP64
7192 #endif
7193
7194int
7195main (void)
7196{
7197
7198 ;
7199 return 0;
7200}
7201
7202_ACEOF
7203if ac_fn_c_try_compile "$LINENO"
7204then :
7205 ac_pid_type='int'
7206else case e in #(
7207 e) ac_pid_type='__int64' ;;
7208esac
7209fi
7210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7211
7212printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7213
7214 ;;
7215esac
7216fi
7217
7218
7219ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7220if test "x$ac_cv_type_size_t" = xyes
7221then :
7222
7223else case e in #(
7224 e)
7225printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7226 ;;
7227esac
7228fi
7229
7230ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7231if test "x$ac_cv_type_mode_t" = xyes
7232then :
7233
7234else case e in #(
7235 e)
7236printf "%s\n" "#define mode_t int" >>confdefs.h
7237 ;;
7238esac
7239fi
7240
7241ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
7242case $ac_cv_c_int8_t in #(
7243 no|yes) ;; #(
7244 *)
7245
7246printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
7247;;
7248esac
7249
7250ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7251case $ac_cv_c_int16_t in #(
7252 no|yes) ;; #(
7253 *)
7254
7255printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
7256;;
7257esac
7258
7259ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7260case $ac_cv_c_int32_t in #(
7261 no|yes) ;; #(
7262 *)
7263
7264printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7265;;
7266esac
7267
7268ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7269case $ac_cv_c_int64_t in #(
7270 no|yes) ;; #(
7271 *)
7272
7273printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
7274;;
7275esac
7276
7277ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7278if test "x$ac_cv_type_ssize_t" = xyes
7279then :
7280
7281else case e in #(
7282 e)
7283printf "%s\n" "#define ssize_t int" >>confdefs.h
7284 ;;
7285esac
7286fi
7287
7288ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
7289if test "x$ac_cv_type_uid_t" = xyes
7290then :
7291
7292else case e in #(
7293 e)
7294printf "%s\n" "#define uid_t int" >>confdefs.h
7295 ;;
7296esac
7297fi
7298
7299ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
7300if test "x$ac_cv_type_gid_t" = xyes
7301then :
7302
7303else case e in #(
7304 e)
7305printf "%s\n" "#define gid_t int" >>confdefs.h
7306 ;;
7307esac
7308fi
7309
7310ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7311case $ac_cv_c_uint8_t in #(
7312 no|yes) ;; #(
7313 *)
7314
7315printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
7316
7317
7318printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
7319;;
7320 esac
7321
7322ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7323case $ac_cv_c_uint16_t in #(
7324 no|yes) ;; #(
7325 *)
7326
7327
7328printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
7329;;
7330 esac
7331
7332ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7333case $ac_cv_c_uint32_t in #(
7334 no|yes) ;; #(
7335 *)
7336
7337printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
7338
7339
7340printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
7341;;
7342 esac
7343
7344ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7345case $ac_cv_c_uint64_t in #(
7346 no|yes) ;; #(
7347 *)
7348
7349printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
7350
7351
7352printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
7353;;
7354 esac
7355
7356
7357
7358
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
7360printf %s "checking for __builtin_clz... " >&6; }
7361if test ${ax_cv_have___builtin_clz+y}
7362then :
7363 printf %s "(cached) " >&6
7364else case e in #(
7365 e)
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h. */
7368
7369int
7370main (void)
7371{
7372
7373 __builtin_clz(0)
7374
7375 ;
7376 return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_link "$LINENO"
7380then :
7381 ax_cv_have___builtin_clz=yes
7382else case e in #(
7383 e) ax_cv_have___builtin_clz=no ;;
7384esac
7385fi
7386rm -f core conftest.err conftest.$ac_objext conftest.beam \
7387 conftest$ac_exeext conftest.$ac_ext
7388 ;;
7389esac
7390fi
7391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5
7392printf "%s\n" "$ax_cv_have___builtin_clz" >&6; }
7393
7394 if test yes = $ax_cv_have___builtin_clz
7395then :
7396
7397printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
7398
7399fi
7400
7401
7402
7403
7404
7405
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
7407printf %s "checking for __builtin_clzll... " >&6; }
7408if test ${ax_cv_have___builtin_clzll+y}
7409then :
7410 printf %s "(cached) " >&6
7411else case e in #(
7412 e)
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h. */
7415
7416int
7417main (void)
7418{
7419
7420 __builtin_clzll(0)
7421
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426if ac_fn_c_try_link "$LINENO"
7427then :
7428 ax_cv_have___builtin_clzll=yes
7429else case e in #(
7430 e) ax_cv_have___builtin_clzll=no ;;
7431esac
7432fi
7433rm -f core conftest.err conftest.$ac_objext conftest.beam \
7434 conftest$ac_exeext conftest.$ac_ext
7435 ;;
7436esac
7437fi
7438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5
7439printf "%s\n" "$ax_cv_have___builtin_clzll" >&6; }
7440
7441 if test yes = $ax_cv_have___builtin_clzll
7442then :
7443
7444printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
7445
7446fi
7447
7448
7449
7450
7451
7452
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5
7454printf %s "checking for __builtin_ffs... " >&6; }
7455if test ${ax_cv_have___builtin_ffs+y}
7456then :
7457 printf %s "(cached) " >&6
7458else case e in #(
7459 e)
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h. */
7462
7463int
7464main (void)
7465{
7466
7467 __builtin_ffs(0)
7468
7469 ;
7470 return 0;
7471}
7472_ACEOF
7473if ac_fn_c_try_link "$LINENO"
7474then :
7475 ax_cv_have___builtin_ffs=yes
7476else case e in #(
7477 e) ax_cv_have___builtin_ffs=no ;;
7478esac
7479fi
7480rm -f core conftest.err conftest.$ac_objext conftest.beam \
7481 conftest$ac_exeext conftest.$ac_ext
7482 ;;
7483esac
7484fi
7485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5
7486printf "%s\n" "$ax_cv_have___builtin_ffs" >&6; }
7487
7488 if test yes = $ax_cv_have___builtin_ffs
7489then :
7490
7491printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h
7492
7493fi
7494
7495
7496
7497
7498
7499
7500printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
7501
7502
7503printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7504
7505
7506
7507################################################################################
7508
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
7510do :
7511 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
7512ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7513if eval test \"x\$"$as_ac_var"\" = x"yes"
7514then :
7515 cat >>confdefs.h <<_ACEOF
7516#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
7517_ACEOF
7518
7519else case e in #(
7520 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
7521esac
7522fi
7523
7524done
7525ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
7526if test "x$ac_cv_func_ffs" = xyes
7527then :
7528 printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
7529
7530fi
7531ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
7532if test "x$ac_cv_func_mallinfo2" = xyes
7533then :
7534 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
7535
7536fi
7537ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
7538if test "x$ac_cv_func_prlimit" = xyes
7539then :
7540 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
7541
7542fi
7543ac_fn_c_check_func "$LINENO" "versionsort" "ac_cv_func_versionsort"
7544if test "x$ac_cv_func_versionsort" = xyes
7545then :
7546 printf "%s\n" "#define HAVE_VERSIONSORT 1" >>confdefs.h
7547
7548fi
7549
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
7553printf %s "checking for working alloca.h... " >&6; }
7554if test ${ac_cv_working_alloca_h+y}
7555then :
7556 printf %s "(cached) " >&6
7557else case e in #(
7558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h. */
7560#include <alloca.h>
7561int
7562main (void)
7563{
7564char *p = (char *) alloca (2 * sizeof (int));
7565 if (p) return 0;
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570if ac_fn_c_try_link "$LINENO"
7571then :
7572 ac_cv_working_alloca_h=yes
7573else case e in #(
7574 e) ac_cv_working_alloca_h=no ;;
7575esac
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.beam \
7578 conftest$ac_exeext conftest.$ac_ext ;;
7579esac
7580fi
7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7582printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7583if test $ac_cv_working_alloca_h = yes; then
7584
7585printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7586
7587fi
7588
7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7590printf %s "checking for alloca... " >&6; }
7591if test ${ac_cv_func_alloca_works+y}
7592then :
7593 printf %s "(cached) " >&6
7594else case e in #(
7595 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
7596if test "$ac_cv_func_alloca_works" != yes
7597then :
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h. */
7600#include <stdlib.h>
7601#include <stddef.h>
7602#ifndef alloca
7603# ifdef __GNUC__
7604# define alloca __builtin_alloca
7605# elif defined _MSC_VER
7606# include <malloc.h>
7607# define alloca _alloca
7608# else
7609# ifdef __cplusplus
7610extern "C"
7611# endif
7612void *alloca (size_t);
7613# endif
7614#endif
7615
7616int
7617main (void)
7618{
7619char *p = (char *) alloca (1);
7620 if (p) return 0;
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625if ac_fn_c_try_link "$LINENO"
7626then :
7627 ac_cv_func_alloca_works=yes
7628fi
7629rm -f core conftest.err conftest.$ac_objext conftest.beam \
7630 conftest$ac_exeext conftest.$ac_ext
7631fi ;;
7632esac
7633fi
7634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7635printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7636
7637if test $ac_cv_func_alloca_works = yes; then
7638
7639printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7640
7641else
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.
7646
7647ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7648
7649printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7650
7651
7652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7653printf %s "checking stack direction for C alloca... " >&6; }
7654if test ${ac_cv_c_stack_direction+y}
7655then :
7656 printf %s "(cached) " >&6
7657else case e in #(
7658 e) if test "$cross_compiling" = yes
7659then :
7660 ac_cv_c_stack_direction=0
7661else case e in #(
7662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h. */
7664$ac_includes_default
7665int
7666find_stack_direction (int *addr, int depth)
7667{
7668 int dir, dummy = 0;
7669 if (! addr)
7670 addr = &dummy;
7671 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7672 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7673 return dir + dummy;
7674}
7675
7676int
7677main (int argc, char **argv)
7678{
7679 return find_stack_direction (0, argc + !argv + 20) < 0;
7680}
7681_ACEOF
7682if ac_fn_c_try_run "$LINENO"
7683then :
7684 ac_cv_c_stack_direction=1
7685else case e in #(
7686 e) ac_cv_c_stack_direction=-1 ;;
7687esac
7688fi
7689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7690 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7691esac
7692fi
7693 ;;
7694esac
7695fi
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7697printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7698printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7699
7700
7701fi
7702
7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7704printf %s "checking whether closedir returns void... " >&6; }
7705if test ${ac_cv_func_closedir_void+y}
7706then :
7707 printf %s "(cached) " >&6
7708else case e in #(
7709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h. */
7711
7712#include <$ac_header_dirent>
7713
7714int
7715main (void)
7716{
7717
7718 return closedir(0);
7719
7720 ;
7721 return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_compile "$LINENO"
7725then :
7726 ac_cv_func_closedir_void=no
7727else case e in #(
7728 e) ac_cv_func_closedir_void=yes ;;
7729esac
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7732esac
7733fi
7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7735printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
7736if test $ac_cv_func_closedir_void = yes; then
7737
7738printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
7739
7740fi
7741
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
7743printf %s "checking for working chown... " >&6; }
7744if test ${ac_cv_func_chown_works+y}
7745then :
7746 printf %s "(cached) " >&6
7747else case e in #(
7748 e) if test "$cross_compiling" = yes
7749then :
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 ;;
7755 esac
7756else case e in #(
7757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h. */
7759$ac_includes_default
7760#include <fcntl.h>
7761
7762int
7763main (void)
7764{
7765 char *f = "conftest.chown";
7766 struct stat before, after;
7767
7768 if (creat (f, 0600) < 0)
7769 return 1;
7770 if (stat (f, &before) < 0)
7771 return 1;
7772 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7773 return 1;
7774 if (stat (f, &after) < 0)
7775 return 1;
7776 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
7777
7778 ;
7779 return 0;
7780}
7781_ACEOF
7782if ac_fn_c_try_run "$LINENO"
7783then :
7784 ac_cv_func_chown_works=yes
7785else case e in #(
7786 e) ac_cv_func_chown_works=no ;;
7787esac
7788fi
7789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7790 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7791esac
7792fi
7793
7794rm -f conftest.chown
7795 ;;
7796esac
7797fi
7798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
7799printf "%s\n" "$ac_cv_func_chown_works" >&6; }
7800if test $ac_cv_func_chown_works = yes; then
7801
7802printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
7803
7804fi
7805
7806
7807ac_func=
7808for ac_item in $ac_func_c_list
7809do
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
7814 fi
7815 ac_func=
7816 else
7817 ac_func=$ac_item
7818 fi
7819done
7820
7821
7822
7823if test "x$ac_cv_func_fork" = xyes; then
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7825printf %s "checking for working fork... " >&6; }
7826if test ${ac_cv_func_fork_works+y}
7827then :
7828 printf %s "(cached) " >&6
7829else case e in #(
7830 e) if test "$cross_compiling" = yes
7831then :
7832 ac_cv_func_fork_works=cross
7833else case e in #(
7834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h. */
7836$ac_includes_default
7837int
7838main (void)
7839{
7840
7841 /* By R. Kuhlmann. */
7842 return fork () < 0;
7843
7844 ;
7845 return 0;
7846}
7847_ACEOF
7848if ac_fn_c_try_run "$LINENO"
7849then :
7850 ac_cv_func_fork_works=yes
7851else case e in #(
7852 e) ac_cv_func_fork_works=no ;;
7853esac
7854fi
7855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7856 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7857esac
7858fi
7859 ;;
7860esac
7861fi
7862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7863printf "%s\n" "$ac_cv_func_fork_works" >&6; }
7864
7865else
7866 ac_cv_func_fork_works=$ac_cv_func_fork
7867fi
7868if test "x$ac_cv_func_fork_works" = xcross; then
7869 case $host in
7870 *-*-amigaos* | *-*-msdosdjgpp*)
7871 # Override, as these systems have only a dummy fork() stub
7872 ac_cv_func_fork_works=no
7873 ;;
7874 *)
7875 ac_cv_func_fork_works=yes
7876 ;;
7877 esac
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7879printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7880fi
7881ac_cv_func_vfork_works=$ac_cv_func_vfork
7882if test "x$ac_cv_func_vfork" = xyes; then
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7884printf %s "checking for working vfork... " >&6; }
7885if test ${ac_cv_func_vfork_works+y}
7886then :
7887 printf %s "(cached) " >&6
7888else case e in #(
7889 e) if test "$cross_compiling" = yes
7890then :
7891 ac_cv_func_vfork_works=cross
7892else case e in #(
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
7897#include <signal.h>
7898#include <sys/wait.h>
7899#ifdef HAVE_VFORK_H
7900# include <vfork.h>
7901#endif
7902
7903static void
7904do_nothing (int sig)
7905{
7906 (void) sig;
7907}
7908
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. */
7915static void
7916sparc_address_test (int arg)
7917{
7918 static pid_t child;
7919 if (!child) {
7920 child = vfork ();
7921 if (child < 0) {
7922 perror ("vfork");
7923 _exit(2);
7924 }
7925 if (!child) {
7926 arg = getpid();
7927 write(-1, "", 0);
7928 _exit (arg);
7929 }
7930 }
7931}
7932
7933int
7934main (void)
7935{
7936 pid_t parent = getpid ();
7937 pid_t child;
7938
7939 sparc_address_test (0);
7940
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);
7945
7946 child = vfork ();
7947
7948 if (child == 0) {
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. */
7958 pid_t
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)
7965 _exit(1);
7966
7967 /* Alter the child's signal handler. */
7968 if (signal (SIGTERM, do_nothing) != SIG_DFL)
7969 _exit(1);
7970
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);
7976 } else {
7977 int status;
7978 struct stat st;
7979
7980 while (wait(&status) != child)
7981 ;
7982 return (
7983 /* Was there some problem with vforking? */
7984 child < 0
7985
7986 /* Did the child munge the parent's signal handler? */
7987 || signal (SIGTERM, SIG_DFL) != SIG_DFL
7988
7989 /* Did the child fail? (This shouldn't happen.) */
7990 || status
7991
7992 /* Did the vfork/compiler bug occur? */
7993 || parent != getpid()
7994
7995 /* Did the file descriptor bug occur? */
7996 || fstat(fileno(stdout), &st) != 0
7997 );
7998 }
7999}
8000_ACEOF
8001if ac_fn_c_try_run "$LINENO"
8002then :
8003 ac_cv_func_vfork_works=yes
8004else case e in #(
8005 e) ac_cv_func_vfork_works=no ;;
8006esac
8007fi
8008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8009 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8010esac
8011fi
8012 ;;
8013esac
8014fi
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8016printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
8017
8018fi;
8019if 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
8022printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8023fi
8024
8025if test "x$ac_cv_func_vfork_works" = xyes; then
8026
8027printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8028
8029else
8030
8031printf "%s\n" "#define vfork fork" >>confdefs.h
8032
8033fi
8034if test "x$ac_cv_func_fork_works" = xyes; then
8035
8036printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
8037
8038fi
8039
8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8041printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
8042if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
8043then :
8044 printf %s "(cached) " >&6
8045else case e in #(
8046 e) rm -f conftest.sym conftest.file
8047echo >conftest.file
8048if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8049 if test "$cross_compiling" = yes
8050then :
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 ;;
8056 esac
8057else case e in #(
8058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h. */
8060$ac_includes_default
8061int
8062main (void)
8063{
8064struct stat sbuf;
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;
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073if ac_fn_c_try_run "$LINENO"
8074then :
8075 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8076else case e in #(
8077 e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
8078esac
8079fi
8080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8081 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8082esac
8083fi
8084
8085else
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
8089fi
8090rm -f conftest.sym conftest.file
8091 ;;
8092esac
8093fi
8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8095printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8096
8097test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8098
8099printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
8100
8101
8102if 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"
8106 ;;
8107esac
8108
8109fi
8110
8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
8112printf %s "checking whether lstat accepts an empty string... " >&6; }
8113if test ${ac_cv_func_lstat_empty_string_bug+y}
8114then :
8115 printf %s "(cached) " >&6
8116else case e in #(
8117 e) if test "$cross_compiling" = yes
8118then :
8119 ac_cv_func_lstat_empty_string_bug=yes
8120else case e in #(
8121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h. */
8123$ac_includes_default
8124int
8125main (void)
8126{
8127struct stat sbuf;
8128 return lstat ("", &sbuf) == 0;
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_run "$LINENO"
8134then :
8135 ac_cv_func_lstat_empty_string_bug=no
8136else case e in #(
8137 e) ac_cv_func_lstat_empty_string_bug=yes ;;
8138esac
8139fi
8140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8141 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8142esac
8143fi
8144 ;;
8145esac
8146fi
8147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
8148printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
8149if test $ac_cv_func_lstat_empty_string_bug = yes; then
8150 case " $LIBOBJS " in
8151 *" lstat.$ac_objext "* ) ;;
8152 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8153 ;;
8154esac
8155
8156
8157printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
8158
8159fi
8160
8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8162printf %s "checking for GNU libc compatible malloc... " >&6; }
8163if test ${ac_cv_func_malloc_0_nonnull+y}
8164then :
8165 printf %s "(cached) " >&6
8166else case e in #(
8167 e) if test "$cross_compiling" = yes
8168then :
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 ;;
8176 esac
8177else case e in #(
8178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h. */
8180#include <stdlib.h>
8181
8182int
8183main (void)
8184{
8185void *p = malloc (0);
8186 int result = !p;
8187 free (p);
8188 return result;
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193if ac_fn_c_try_run "$LINENO"
8194then :
8195 ac_cv_func_malloc_0_nonnull=yes
8196else case e in #(
8197 e) ac_cv_func_malloc_0_nonnull=no ;;
8198esac
8199fi
8200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8201 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8202esac
8203fi
8204 ;;
8205esac
8206fi
8207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8208printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
8209if test $ac_cv_func_malloc_0_nonnull = yes
8210then :
8211
8212printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
8213
8214else case e in #(
8215 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
8216
8217 case " $LIBOBJS " in
8218 *" malloc.$ac_objext "* ) ;;
8219 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8220 ;;
8221esac
8222
8223
8224printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
8225 ;;
8226esac
8227fi
8228
8229
8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8231printf %s "checking for working memcmp... " >&6; }
8232if test ${ac_cv_func_memcmp_working+y}
8233then :
8234 printf %s "(cached) " >&6
8235else case e in #(
8236 e) if test "$cross_compiling" = yes
8237then :
8238 ac_cv_func_memcmp_working=no
8239else case e in #(
8240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h. */
8242$ac_includes_default
8243int
8244main (void)
8245{
8246
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)
8250 return 1;
8251
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. */
8255 {
8256 char foo[21];
8257 char bar[21];
8258 int i;
8259 for (i = 0; i < 4; i++)
8260 {
8261 char *a = foo + i;
8262 char *b = bar + i;
8263 strcpy (a, "--------01111111");
8264 strcpy (b, "--------10000000");
8265 if (memcmp (a, b, 16) >= 0)
8266 return 1;
8267 }
8268 return 0;
8269 }
8270
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275if ac_fn_c_try_run "$LINENO"
8276then :
8277 ac_cv_func_memcmp_working=yes
8278else case e in #(
8279 e) ac_cv_func_memcmp_working=no ;;
8280esac
8281fi
8282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8283 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8284esac
8285fi
8286 ;;
8287esac
8288fi
8289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8290printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
8291test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8292 *" memcmp.$ac_objext "* ) ;;
8293 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8294 ;;
8295esac
8296
8297
8298
8299
8300
8301
8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
8303printf %s "checking for working mktime... " >&6; }
8304if test ${ac_cv_func_working_mktime+y}
8305then :
8306 printf %s "(cached) " >&6
8307else case e in #(
8308 e) if test "$cross_compiling" = yes
8309then :
8310 ac_cv_func_working_mktime=no
8311else case e in #(
8312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h. */
8314/* Test program from Paul Eggert and Tony Leneis. */
8315#include <time.h>
8316#ifdef HAVE_SYS_TIME_H
8317# include <sys/time.h>
8318#endif
8319
8320#include <limits.h>
8321#include <stdlib.h>
8322
8323#ifdef HAVE_UNISTD_H
8324# include <unistd.h>
8325#endif
8326
8327#ifndef HAVE_ALARM
8328# define alarm(X) /* empty */
8329#endif
8330
8331/* Work around redefinition to rpl_putenv by other config tests. */
8332#undef putenv
8333
8334static time_t time_t_max;
8335static time_t time_t_min;
8336
8337/* Values we'll use to set the TZ environment variable. */
8338static 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"
8341};
8342#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8343
8344/* Return 0 if mktime fails to convert a date in the spring-forward gap.
8345 Based on a problem report from Andreas Jaeger. */
8346static int
8347spring_forward_gap (void)
8348{
8349 /* glibc (up to about 1998-10-07) failed this test. */
8350 struct tm tm;
8351
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");
8357
8358 tm.tm_year = 98;
8359 tm.tm_mon = 3;
8360 tm.tm_mday = 5;
8361 tm.tm_hour = 2;
8362 tm.tm_min = 0;
8363 tm.tm_sec = 0;
8364 tm.tm_isdst = -1;
8365 return mktime (&tm) != (time_t) -1;
8366}
8367
8368static int
8369mktime_test1 (time_t now)
8370{
8371 struct tm *lt;
8372 return ! (lt = localtime (&now)) || mktime (lt) == now;
8373}
8374
8375static int
8376mktime_test (time_t now)
8377{
8378 return (mktime_test1 (now)
8379 && mktime_test1 ((time_t) (time_t_max - now))
8380 && mktime_test1 ((time_t) (time_t_min + now)));
8381}
8382
8383static int
8384irix_6_4_bug (void)
8385{
8386 /* Based on code from Ariel Faigon. */
8387 struct tm tm;
8388 tm.tm_year = 96;
8389 tm.tm_mon = 3;
8390 tm.tm_mday = 0;
8391 tm.tm_hour = 0;
8392 tm.tm_min = 0;
8393 tm.tm_sec = 0;
8394 tm.tm_isdst = -1;
8395 mktime (&tm);
8396 return tm.tm_mon == 2 && tm.tm_mday == 31;
8397}
8398
8399static int
8400bigtime_test (int j)
8401{
8402 struct tm tm;
8403 time_t now;
8404 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8405 now = mktime (&tm);
8406 if (now != (time_t) -1)
8407 {
8408 struct tm *lt = localtime (&now);
8409 if (! (lt
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))))
8420 return 0;
8421 }
8422 return 1;
8423}
8424
8425static int
8426year_2050_test (void)
8427{
8428 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
8429 ignoring leap seconds. */
8430 unsigned long int answer = 2527315200UL;
8431
8432 struct tm tm;
8433 time_t t;
8434 tm.tm_year = 2050 - 1900;
8435 tm.tm_mon = 2 - 1;
8436 tm.tm_mday = 1;
8437 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
8438 tm.tm_isdst = -1;
8439
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");
8445
8446 t = mktime (&tm);
8447
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));
8453}
8454
8455int
8456main (void)
8457{
8458 time_t t, delta;
8459 int i, j;
8460
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. */
8464 alarm (60);
8465
8466 for (;;)
8467 {
8468 t = (time_t_max << 1) + 1;
8469 if (t <= time_t_max)
8470 break;
8471 time_t_max = t;
8472 }
8473 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
8474
8475 delta = time_t_max / 997; /* a suitable prime number */
8476 for (i = 0; i < N_STRINGS; i++)
8477 {
8478 if (tz_strings[i])
8479 putenv ((char*) tz_strings[i]);
8480
8481 for (t = 0; t <= time_t_max - delta; t += delta)
8482 if (! mktime_test (t))
8483 return 1;
8484 if (! (mktime_test ((time_t) 1)
8485 && mktime_test ((time_t) (60 * 60))
8486 && mktime_test ((time_t) (60 * 60 * 24))))
8487 return 1;
8488
8489 for (j = 1; ; j <<= 1)
8490 if (! bigtime_test (j))
8491 return 1;
8492 else if (INT_MAX / 2 < j)
8493 break;
8494 if (! bigtime_test (INT_MAX))
8495 return 1;
8496 }
8497 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
8498}
8499_ACEOF
8500if ac_fn_c_try_run "$LINENO"
8501then :
8502 ac_cv_func_working_mktime=yes
8503else case e in #(
8504 e) ac_cv_func_working_mktime=no ;;
8505esac
8506fi
8507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8508 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8509esac
8510fi
8511 ;;
8512esac
8513fi
8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
8515printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
8516if test $ac_cv_func_working_mktime = no; then
8517 case " $LIBOBJS " in
8518 *" mktime.$ac_objext "* ) ;;
8519 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
8520 ;;
8521esac
8522
8523fi
8524
8525
8526
8527
8528
8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8530printf %s "checking for working mmap... " >&6; }
8531if test ${ac_cv_func_mmap_fixed_mapped+y}
8532then :
8533 printf %s "(cached) " >&6
8534else case e in #(
8535 e) if test "$cross_compiling" = yes
8536then :
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 ;;
8542 esac
8543else case e in #(
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. */
8548#undef malloc
8549
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. */
8566
8567#include <fcntl.h>
8568#include <sys/mman.h>
8569
8570#ifndef getpagesize
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
8578int getpagesize ();
8579# else
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 */
8585# ifdef NBPG
8586# define getpagesize() NBPG * CLSIZE
8587# ifndef CLSIZE
8588# define CLSIZE 1
8589# endif /* no CLSIZE */
8590# else /* no NBPG */
8591# ifdef NBPC
8592# define getpagesize() NBPC
8593# else /* no NBPC */
8594# ifdef PAGESIZE
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 */
8603# endif
8604#endif
8605
8606int
8607main (void)
8608{
8609 char *data, *data2, *data3;
8610 const char *cdata2;
8611 long i, pagesize;
8612 int fd, fd2;
8613
8614 pagesize = getpagesize ();
8615
8616 /* First, make a file with some known garbage in it. */
8617 data = (char *) malloc (pagesize);
8618 if (!data)
8619 return 1;
8620 for (i = 0; i < pagesize; ++i)
8621 *(data + i) = rand ();
8622 umask (0);
8623 fd = creat ("conftest.mmap", 0600);
8624 if (fd < 0)
8625 return 2;
8626 if (write (fd, data, pagesize) != pagesize)
8627 return 3;
8628 close (fd);
8629
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);
8633 if (fd2 < 0)
8634 return 4;
8635 cdata2 = "";
8636 if (write (fd2, cdata2, 1) != 1)
8637 return 5;
8638 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8639 if (data2 == MAP_FAILED)
8640 return 6;
8641 for (i = 0; i < pagesize; ++i)
8642 if (*(data2 + i))
8643 return 7;
8644 close (fd2);
8645 /* 'return 8;' not currently used. */
8646
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);
8651 if (fd < 0)
8652 return 9;
8653 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8654 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8655 return 10;
8656 for (i = 0; i < pagesize; ++i)
8657 if (*(data + i) != *(data2 + i))
8658 return 11;
8659
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);
8666 if (!data3)
8667 return 12;
8668 if (read (fd, data3, pagesize) != pagesize)
8669 return 13;
8670 for (i = 0; i < pagesize; ++i)
8671 if (*(data + i) != *(data3 + i))
8672 return 14;
8673 close (fd);
8674 free (data);
8675 free (data3);
8676 return 0;
8677}
8678_ACEOF
8679if ac_fn_c_try_run "$LINENO"
8680then :
8681 ac_cv_func_mmap_fixed_mapped=yes
8682else case e in #(
8683 e) ac_cv_func_mmap_fixed_mapped=no ;;
8684esac
8685fi
8686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8687 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8688esac
8689fi
8690 ;;
8691esac
8692fi
8693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8694printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
8695if test $ac_cv_func_mmap_fixed_mapped = yes; then
8696
8697printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
8698
8699fi
8700rm -f conftest.mmap conftest.txt
8701
8702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8703printf %s "checking for GNU libc compatible realloc... " >&6; }
8704if test ${ac_cv_func_realloc_0_nonnull+y}
8705then :
8706 printf %s "(cached) " >&6
8707else case e in #(
8708 e) if test "$cross_compiling" = yes
8709then :
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 ;;
8717 esac
8718else case e in #(
8719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h. */
8721#include <stdlib.h>
8722
8723int
8724main (void)
8725{
8726void *p = realloc (0, 0);
8727 int result = !p;
8728 free (p);
8729 return result;
8730 ;
8731 return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_run "$LINENO"
8735then :
8736 ac_cv_func_realloc_0_nonnull=yes
8737else case e in #(
8738 e) ac_cv_func_realloc_0_nonnull=no ;;
8739esac
8740fi
8741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8742 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8743esac
8744fi
8745 ;;
8746esac
8747fi
8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8749printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
8750if test $ac_cv_func_realloc_0_nonnull = yes
8751then :
8752
8753printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
8754
8755else case e in #(
8756 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
8757
8758 case " $LIBOBJS " in
8759 *" realloc.$ac_objext "* ) ;;
8760 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8761 ;;
8762esac
8763
8764
8765printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
8766 ;;
8767esac
8768fi
8769
8770
8771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
8772printf %s "checking whether stat accepts an empty string... " >&6; }
8773if test ${ac_cv_func_stat_empty_string_bug+y}
8774then :
8775 printf %s "(cached) " >&6
8776else case e in #(
8777 e) if test "$cross_compiling" = yes
8778then :
8779 ac_cv_func_stat_empty_string_bug=yes
8780else case e in #(
8781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h. */
8783$ac_includes_default
8784int
8785main (void)
8786{
8787struct stat sbuf;
8788 return stat ("", &sbuf) == 0;
8789 ;
8790 return 0;
8791}
8792_ACEOF
8793if ac_fn_c_try_run "$LINENO"
8794then :
8795 ac_cv_func_stat_empty_string_bug=no
8796else case e in #(
8797 e) ac_cv_func_stat_empty_string_bug=yes ;;
8798esac
8799fi
8800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8801 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8802esac
8803fi
8804 ;;
8805esac
8806fi
8807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
8808printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
8809if test $ac_cv_func_stat_empty_string_bug = yes; then
8810 case " $LIBOBJS " in
8811 *" stat.$ac_objext "* ) ;;
8812 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8813 ;;
8814esac
8815
8816
8817printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
8818
8819fi
8820
8821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8822printf %s "checking for working strtod... " >&6; }
8823if test ${ac_cv_func_strtod+y}
8824then :
8825 printf %s "(cached) " >&6
8826else case e in #(
8827 e) if test "$cross_compiling" = yes
8828then :
8829 ac_cv_func_strtod=no
8830else case e in #(
8831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h. */
8833
8834$ac_includes_default
8835int
8836main (void)
8837{
8838 {
8839 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8840 char *string = " +69";
8841 char *term;
8842 double value;
8843 value = strtod (string, &term);
8844 if (value != 69 || term != (string + 4))
8845 return 1;
8846 }
8847
8848 {
8849 /* Under Solaris 2.4, strtod returns the wrong value for the
8850 terminating character under some conditions. */
8851 char *string = "NaN";
8852 char *term;
8853 strtod (string, &term);
8854 if (term != string && *(term - 1) == 0)
8855 return 1;
8856 }
8857 return 0;
8858}
8859
8860_ACEOF
8861if ac_fn_c_try_run "$LINENO"
8862then :
8863 ac_cv_func_strtod=yes
8864else case e in #(
8865 e) ac_cv_func_strtod=no ;;
8866esac
8867fi
8868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8869 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8870esac
8871fi
8872 ;;
8873esac
8874fi
8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
8876printf "%s\n" "$ac_cv_func_strtod" >&6; }
8877if test $ac_cv_func_strtod = no; then
8878 case " $LIBOBJS " in
8879 *" strtod.$ac_objext "* ) ;;
8880 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8881 ;;
8882esac
8883
8884ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8885if test "x$ac_cv_func_pow" = xyes
8886then :
8887
8888fi
8889
8890if test $ac_cv_func_pow = no; then
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
8892printf %s "checking for pow in -lm... " >&6; }
8893if test ${ac_cv_lib_m_pow+y}
8894then :
8895 printf %s "(cached) " >&6
8896else case e in #(
8897 e) ac_check_lib_save_LIBS=$LIBS
8898LIBS="-lm $LIBS"
8899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h. */
8901
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). */
8908#ifdef __cplusplus
8909extern "C"
8910#endif
8911char pow (void);
8912int
8913main (void)
8914{
8915return pow ();
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_link "$LINENO"
8921then :
8922 ac_cv_lib_m_pow=yes
8923else case e in #(
8924 e) ac_cv_lib_m_pow=no ;;
8925esac
8926fi
8927rm -f core conftest.err conftest.$ac_objext conftest.beam \
8928 conftest$ac_exeext conftest.$ac_ext
8929LIBS=$ac_check_lib_save_LIBS ;;
8930esac
8931fi
8932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
8933printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
8934if test "x$ac_cv_lib_m_pow" = xyes
8935then :
8936 POW_LIB=-lm
8937else case e in #(
8938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
8939printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
8940esac
8941fi
8942
8943fi
8944
8945fi
8946
8947
8948
8949if test "x$ac_cv_func_vprintf" = xno
8950then :
8951 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8952if test "x$ac_cv_func__doprnt" = xyes
8953then :
8954
8955printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
8956
8957fi
8958
8959fi
8960
8961################################################################################
8962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5
8963printf %s "checking whether to enable dependency tracking... " >&6; }
8964# Check whether --enable-dependency-tracking was given.
8965if test ${enable_dependency_tracking+y}
8966then :
8967 enableval=$enable_dependency_tracking; USE_TRACKING=$enableval
8968else case e in #(
8969 e) USE_TRACKING="yes" ;;
8970esac
8971fi
8972
8973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_TRACKING" >&5
8974printf "%s\n" "$USE_TRACKING" >&6; }
8975
8976################################################################################
8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build silently" >&5
8978printf %s "checking whether to build silently... " >&6; }
8979# Check whether --enable-silent-rules was given.
8980if test ${enable_silent_rules+y}
8981then :
8982 enableval=$enable_silent_rules; SILENT_RULES=$enableval
8983else case e in #(
8984 e) SILENT_RULES="yes" ;;
8985esac
8986fi
8987
8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SILENT_RULES" >&5
8989printf "%s\n" "$SILENT_RULES" >&6; }
8990
8991
8992################################################################################
8993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
8994printf %s "checking whether to use static linking... " >&6; }
8995# Check whether --enable-static_link was given.
8996if test ${enable_static_link+y}
8997then :
8998 enableval=$enable_static_link; STATIC_LINK=$enableval
8999else case e in #(
9000 e) STATIC_LINK="no" ;;
9001esac
9002fi
9003
9004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
9005printf "%s\n" "$STATIC_LINK" >&6; }
9006
9007################################################################################
9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic linking" >&5
9009printf %s "checking whether to use dynamic linking... " >&6; }
9010# Check whether --enable-shared was given.
9011if test ${enable_shared+y}
9012then :
9013 enableval=$enable_shared; SHARED_LINK=$enableval
9014else case e in #(
9015 e) SHARED_LINK="yes" ;;
9016esac
9017fi
9018
9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHARED_LINK" >&5
9020printf "%s\n" "$SHARED_LINK" >&6; }
9021
9022################################################################################
9023
9024
9025 ac_save_CFLAGS=$CFLAGS
9026 CFLAGS=-pie
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pie flag" >&5
9028printf %s "checking whether $CC accepts -pie flag... " >&6; }
9029if test ${ac_cv_flag_HAVE_PIE+y}
9030then :
9031 printf %s "(cached) " >&6
9032else case e in #(
9033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h. */
9035
9036int
9037main (void)
9038{
9039
9040 ;
9041 return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_compile "$LINENO"
9045then :
9046 ac_cv_flag_HAVE_PIE=yes
9047else case e in #(
9048 e) ac_cv_flag_HAVE_PIE=no ;;
9049esac
9050fi
9051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9052esac
9053fi
9054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_PIE" >&5
9055printf "%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
9059 :
9060 else
9061 :
9062 fi
9063
9064
9065
9066
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
9070printf %s "checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags... " >&6; }
9071if test ${ac_cv_flag_HAVE_FULL_RELRO+y}
9072then :
9073 printf %s "(cached) " >&6
9074else case e in #(
9075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076/* end confdefs.h. */
9077
9078int
9079main (void)
9080{
9081
9082 ;
9083 return 0;
9084}
9085_ACEOF
9086if ac_fn_c_try_link "$LINENO"
9087then :
9088 ac_cv_flag_HAVE_FULL_RELRO=yes
9089else case e in #(
9090 e) ac_cv_flag_HAVE_FULL_RELRO=no ;;
9091esac
9092fi
9093rm -f core conftest.err conftest.$ac_objext conftest.beam \
9094 conftest$ac_exeext conftest.$ac_ext ;;
9095esac
9096fi
9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_FULL_RELRO" >&5
9098printf "%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
9102 :
9103 else
9104 :
9105 fi
9106
9107
9108
9109################################################################################
9110
9111
9112################################################################################
9113test "$exec_prefix" = "NONE" && test "$prefix" = "NONE" && exec_prefix=""
9114
9115test "$prefix" = "NONE" && prefix=$ac_default_prefix
9116# Let make expand exec_prefix.
9117test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
9118
9119
9120
9121# Check whether --with-blkid was given.
9122if test ${with_blkid+y}
9123then :
9124 withval=$with_blkid;
9125else case e in #(
9126 e) with_blkid="yes" ;;
9127esac
9128fi
9129
9130
9131# Check whether --with-systemd was given.
9132if test ${with_systemd+y}
9133then :
9134 withval=$with_systemd;
9135else case e in #(
9136 e) with_systemd="yes" ;;
9137esac
9138fi
9139
9140
9141# Check whether --with-udev was given.
9142if test ${with_udev+y}
9143then :
9144 withval=$with_udev;
9145else case e in #(
9146 e) with_udev="yes" ;;
9147esac
9148fi
9149
9150
9151################################################################################
9152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
9153printf %s "checking file owner... " >&6; }
9154
9155# Check whether --with-user was given.
9156if test ${with_user+y}
9157then :
9158 withval=$with_user; OWNER=$withval
9159fi
9160
9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
9162printf "%s\n" "$OWNER" >&6; }
9163test -n "$OWNER" && INSTALL="$INSTALL -o $OWNER"
9164
9165################################################################################
9166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
9167printf %s "checking group owner... " >&6; }
9168
9169# Check whether --with-group was given.
9170if test ${with_group+y}
9171then :
9172 withval=$with_group; GROUP=$withval
9173fi
9174
9175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
9176printf "%s\n" "$GROUP" >&6; }
9177test -n "$GROUP" && INSTALL="$INSTALL -g $GROUP"
9178
9179################################################################################
9180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
9181printf %s "checking device node uid... " >&6; }
9182
9183
9184# Check whether --with-device-uid was given.
9185if test ${with_device_uid+y}
9186then :
9187 withval=$with_device_uid; DM_DEVICE_UID=$withval
9188else case e in #(
9189 e) DM_DEVICE_UID=0 ;;
9190esac
9191fi
9192
9193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
9194printf "%s\n" "$DM_DEVICE_UID" >&6; }
9195
9196printf "%s\n" "#define DM_DEVICE_UID $DM_DEVICE_UID" >>confdefs.h
9197
9198
9199################################################################################
9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
9201printf %s "checking device node gid... " >&6; }
9202
9203
9204# Check whether --with-device-gid was given.
9205if test ${with_device_gid+y}
9206then :
9207 withval=$with_device_gid; DM_DEVICE_GID=$withval
9208else case e in #(
9209 e) DM_DEVICE_GID=0 ;;
9210esac
9211fi
9212
9213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
9214printf "%s\n" "$DM_DEVICE_GID" >&6; }
9215
9216printf "%s\n" "#define DM_DEVICE_GID $DM_DEVICE_GID" >>confdefs.h
9217
9218
9219################################################################################
9220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
9221printf %s "checking device node mode... " >&6; }
9222
9223
9224# Check whether --with-device-mode was given.
9225if test ${with_device_mode+y}
9226then :
9227 withval=$with_device_mode; DM_DEVICE_MODE=$withval
9228else case e in #(
9229 e) DM_DEVICE_MODE=0600 ;;
9230esac
9231fi
9232
9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
9234printf "%s\n" "$DM_DEVICE_MODE" >&6; }
9235
9236printf "%s\n" "#define DM_DEVICE_MODE $DM_DEVICE_MODE" >>confdefs.h
9237
9238
9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
9240printf %s "checking when to create device nodes... " >&6; }
9241
9242# Check whether --with-device-nodes-on was given.
9243if test ${with_device_nodes_on+y}
9244then :
9245 withval=$with_device_nodes_on; ADD_NODE=$withval
9246else case e in #(
9247 e) ADD_NODE=resume ;;
9248esac
9249fi
9250
9251case "$ADD_NODE" in #(
9252 resume) :
9253 add_on=DM_ADD_NODE_ON_RESUME ;; #(
9254 create) :
9255 add_on=DM_ADD_NODE_ON_CREATE ;; #(
9256 *) :
9257 as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5 ;;
9258esac
9259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
9260printf "%s\n" "on $ADD_NODE" >&6; }
9261
9262printf "%s\n" "#define DEFAULT_DM_ADD_NODE $add_on" >>confdefs.h
9263
9264
9265
9266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for use_devicesfile" >&5
9267printf %s "checking default for use_devicesfile... " >&6; }
9268
9269# Check whether --with-default-use-devices-file was given.
9270if test ${with_default_use_devices_file+y}
9271then :
9272 withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$withval
9273else case e in #(
9274 e) DEFAULT_USE_DEVICES_FILE=0 ;;
9275esac
9276fi
9277
9278case "$DEFAULT_USE_DEVICES_FILE" in #(
9279 0|1) :
9280 ;; #(
9281 *) :
9282 as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5 ;;
9283esac
9284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_DEVICES_FILE" >&5
9285printf "%s\n" "$DEFAULT_USE_DEVICES_FILE" >&6; }
9286
9287printf "%s\n" "#define DEFAULT_USE_DEVICES_FILE $DEFAULT_USE_DEVICES_FILE" >>confdefs.h
9288
9289
9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
9291printf %s "checking default name mangling... " >&6; }
9292
9293# Check whether --with-default-name-mangling was given.
9294if test ${with_default_name_mangling+y}
9295then :
9296 withval=$with_default_name_mangling; MANGLING=$withval
9297else case e in #(
9298 e) MANGLING=auto ;;
9299esac
9300fi
9301
9302case "$MANGLING" in #(
9303 auto) :
9304 mangling=DM_STRING_MANGLING_AUTO ;; #(
9305 no|none|disabled) :
9306 mangling=DM_STRING_MANGLING_NONE ;; #(
9307 hex) :
9308 mangling=DM_STRING_MANGLING_HEX ;; #(
9309 *) :
9310 as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5 ;;
9311esac
9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
9313printf "%s\n" "$MANGLING" >&6; }
9314
9315printf "%s\n" "#define DEFAULT_DM_NAME_MANGLING $mangling" >>confdefs.h
9316
9317
9318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for event_activation" >&5
9319printf %s "checking default for event_activation... " >&6; }
9320
9321# Check whether --with-default-event-activation was given.
9322if test ${with_default_event_activation+y}
9323then :
9324 withval=$with_default_event_activation; DEFAULT_EVENT_ACTIVATION=$withval
9325else case e in #(
9326 e) DEFAULT_EVENT_ACTIVATION=1 ;;
9327esac
9328fi
9329
9330case "$DEFAULT_EVENT_ACTIVATION" in #(
9331 0|1) :
9332 ;; #(
9333 *) :
9334 as_fn_error $? "--with-default-event-activation parameter invalid" "$LINENO" 5 ;;
9335esac
9336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_EVENT_ACTIVATION" >&5
9337printf "%s\n" "$DEFAULT_EVENT_ACTIVATION" >&6; }
9338
9339printf "%s\n" "#define DEFAULT_EVENT_ACTIVATION $DEFAULT_EVENT_ACTIVATION" >>confdefs.h
9340
9341
9342################################################################################
9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
9344printf %s "checking whether to include snapshots... " >&6; }
9345
9346# Check whether --with-snapshots was given.
9347if test ${with_snapshots+y}
9348then :
9349 withval=$with_snapshots; SNAPSHOTS=$withval
9350else case e in #(
9351 e) SNAPSHOTS=internal ;;
9352esac
9353fi
9354
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
9356printf "%s\n" "$SNAPSHOTS" >&6; }
9357
9358case "$SNAPSHOTS" in #(
9359 no|none|shared) :
9360 ;; #(
9361 internal) :
9362
9363
9364printf "%s\n" "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
9365 ;; #(
9366 *) :
9367 as_fn_error $? "--with-snapshots parameter invalid" "$LINENO" 5 ;;
9368esac
9369
9370################################################################################
9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
9372printf %s "checking whether to include mirrors... " >&6; }
9373
9374# Check whether --with-mirrors was given.
9375if test ${with_mirrors+y}
9376then :
9377 withval=$with_mirrors; MIRRORS=$withval
9378else case e in #(
9379 e) MIRRORS=internal ;;
9380esac
9381fi
9382
9383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
9384printf "%s\n" "$MIRRORS" >&6; }
9385
9386case "$MIRRORS" in #(
9387 no|none|shared) :
9388 ;; #(
9389 internal) :
9390
9391
9392printf "%s\n" "#define MIRRORED_INTERNAL 1" >>confdefs.h
9393 ;; #(
9394 *) :
9395 as_fn_error $? "--with-mirrors parameter invalid" "$LINENO" 5 ;;
9396esac
9397
9398################################################################################
9399
9400# Check whether --with-default-mirror-segtype was given.
9401if test ${with_default_mirror_segtype+y}
9402then :
9403 withval=$with_default_mirror_segtype; DEFAULT_MIRROR_SEGTYPE=$withval
9404else case e in #(
9405 e) DEFAULT_MIRROR_SEGTYPE="raid1" ;;
9406esac
9407fi
9408
9409
9410# Check whether --with-default-raid10-segtype was given.
9411if test ${with_default_raid10_segtype+y}
9412then :
9413 withval=$with_default_raid10_segtype; DEFAULT_RAID10_SEGTYPE=$withval
9414else case e in #(
9415 e) DEFAULT_RAID10_SEGTYPE="raid10" ;;
9416esac
9417fi
9418
9419
9420
9421printf "%s\n" "#define RAID_INTERNAL 1" >>confdefs.h
9422
9423
9424
9425printf "%s\n" "#define DEFAULT_MIRROR_SEGTYPE \"$DEFAULT_MIRROR_SEGTYPE\"" >>confdefs.h
9426
9427
9428
9429printf "%s\n" "#define DEFAULT_RAID10_SEGTYPE \"$DEFAULT_RAID10_SEGTYPE\"" >>confdefs.h
9430
9431
9432################################################################################
9433
9434# Check whether --with-default-sparse-segtype was given.
9435if test ${with_default_sparse_segtype+y}
9436then :
9437 withval=$with_default_sparse_segtype;
9438 case "$withval" in #(
9439 thin|snapshot) :
9440 DEFAULT_SPARSE_SEGTYPE=$withval ;; #(
9441 *) :
9442 as_fn_error $? "--with-default-sparse-segtype parameter invalid" "$LINENO" 5 ;;
9443esac
9444
9445else case e in #(
9446 e) DEFAULT_SPARSE_SEGTYPE="thin" ;;
9447esac
9448fi
9449
9450
9451################################################################################
9452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
9453printf %s "checking whether to include thin provisioning... " >&6; }
9454
9455# Check whether --with-thin was given.
9456if test ${with_thin+y}
9457then :
9458 withval=$with_thin; THIN=$withval
9459else case e in #(
9460 e) THIN=internal ;;
9461esac
9462fi
9463
9464
9465# Check whether --with-thin-check was given.
9466if test ${with_thin_check+y}
9467then :
9468 withval=$with_thin_check; THIN_CHECK_CMD=$withval
9469else case e in #(
9470 e) THIN_CHECK_CMD="autodetect" ;;
9471esac
9472fi
9473
9474
9475# Check whether --with-thin-dump was given.
9476if test ${with_thin_dump+y}
9477then :
9478 withval=$with_thin_dump; THIN_DUMP_CMD=$withval
9479else case e in #(
9480 e) THIN_DUMP_CMD="autodetect" ;;
9481esac
9482fi
9483
9484
9485# Check whether --with-thin-repair was given.
9486if test ${with_thin_repair+y}
9487then :
9488 withval=$with_thin_repair; THIN_REPAIR_CMD=$withval
9489else case e in #(
9490 e) THIN_REPAIR_CMD="autodetect" ;;
9491esac
9492fi
9493
9494
9495# Check whether --with-thin-restore was given.
9496if test ${with_thin_restore+y}
9497then :
9498 withval=$with_thin_restore; THIN_RESTORE_CMD=$withval
9499else case e in #(
9500 e) THIN_RESTORE_CMD="autodetect" ;;
9501esac
9502fi
9503
9504
9505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
9506printf "%s\n" "$THIN" >&6; }
9507
9508case "$THIN" in #(
9509 no|none) :
9510 test "$DEFAULT_SPARSE_SEGTYPE" = "thin" && DEFAULT_SPARSE_SEGTYPE="snapshot" ;; #(
9511 shared) :
9512 ;; #(
9513 internal) :
9514
9515
9516printf "%s\n" "#define THIN_INTERNAL 1" >>confdefs.h
9517 ;; #(
9518 *) :
9519 as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
9520esac
9521
9522
9523printf "%s\n" "#define DEFAULT_SPARSE_SEGTYPE \"$DEFAULT_SPARSE_SEGTYPE\"" >>confdefs.h
9524
9525
9526# Check whether --enable-thin_check_needs_check was given.
9527if test ${enable_thin_check_needs_check+y}
9528then :
9529 enableval=$enable_thin_check_needs_check; THIN_CHECK_NEEDS_CHECK=$enableval
9530else case e in #(
9531 e) THIN_CHECK_NEEDS_CHECK="yes" ;;
9532esac
9533fi
9534
9535
9536# Test if necessary thin tools are available
9537# if not - use plain defaults and warn user
9538case "$THIN" in #(
9539 internal|shared) :
9540
9541 # Empty means a config way to ignore thin checking
9542 if test "$THIN_CHECK_CMD" = "autodetect"
9543then :
9544
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.
9547set dummy ${ac_tool_prefix}thin_check; ac_word=$2
9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549printf %s "checking for $ac_word... " >&6; }
9550if test ${ac_cv_path_THIN_CHECK_CMD+y}
9551then :
9552 printf %s "(cached) " >&6
9553else case e in #(
9554 e) case $THIN_CHECK_CMD in
9555 [\\/]* | ?:[\\/]*)
9556 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
9557 ;;
9558 *)
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH_SBIN
9561do
9562 IFS=$as_save_IFS
9563 case $as_dir in #(((
9564 '') as_dir=./ ;;
9565 */) ;;
9566 *) as_dir=$as_dir/ ;;
9567 esac
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
9572 break 2
9573 fi
9574done
9575 done
9576IFS=$as_save_IFS
9577
9578 ;;
9579esac ;;
9580esac
9581fi
9582THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
9583if test -n "$THIN_CHECK_CMD"; then
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
9585printf "%s\n" "$THIN_CHECK_CMD" >&6; }
9586else
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588printf "%s\n" "no" >&6; }
9589fi
9590
9591
9592fi
9593if 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.
9596set dummy thin_check; ac_word=$2
9597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598printf %s "checking for $ac_word... " >&6; }
9599if test ${ac_cv_path_ac_pt_THIN_CHECK_CMD+y}
9600then :
9601 printf %s "(cached) " >&6
9602else case e in #(
9603 e) case $ac_pt_THIN_CHECK_CMD in
9604 [\\/]* | ?:[\\/]*)
9605 ac_cv_path_ac_pt_THIN_CHECK_CMD="$ac_pt_THIN_CHECK_CMD" # Let the user override the test with a path.
9606 ;;
9607 *)
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH_SBIN
9610do
9611 IFS=$as_save_IFS
9612 case $as_dir in #(((
9613 '') as_dir=./ ;;
9614 */) ;;
9615 *) as_dir=$as_dir/ ;;
9616 esac
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
9621 break 2
9622 fi
9623done
9624 done
9625IFS=$as_save_IFS
9626
9627 ;;
9628esac ;;
9629esac
9630fi
9631ac_pt_THIN_CHECK_CMD=$ac_cv_path_ac_pt_THIN_CHECK_CMD
9632if test -n "$ac_pt_THIN_CHECK_CMD"; then
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_CHECK_CMD" >&5
9634printf "%s\n" "$ac_pt_THIN_CHECK_CMD" >&6; }
9635else
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637printf "%s\n" "no" >&6; }
9638fi
9639
9640 if test "x$ac_pt_THIN_CHECK_CMD" = x; then
9641 THIN_CHECK_CMD=""
9642 else
9643 case $cross_compiling:$ac_tool_warned in
9644yes:)
9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9646printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9647ac_tool_warned=yes ;;
9648esac
9649 THIN_CHECK_CMD=$ac_pt_THIN_CHECK_CMD
9650 fi
9651else
9652 THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD"
9653fi
9654
9655 if test -z "$THIN_CHECK_CMD"
9656then :
9657
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH_SBIN" >&5
9659printf "%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"
9662
9663fi
9664
9665fi
9666 if test "$THIN_CHECK_NEEDS_CHECK" = "yes" && test "$THIN_CONFIGURE_WARN" != "y"
9667then :
9668
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}')
9673
9674 if test -z "$THIN_CHECK_VSN_MAJOR" || test -z "$THIN_CHECK_VSN_MINOR"
9675then :
9676
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&5
9678printf "%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"
9681
9682elif test "$THIN_CHECK_VSN_MAJOR" -eq 0 && test "$THIN_CHECK_VSN_MINOR" -lt 3
9683then :
9684
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&5
9686printf "%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"
9689
9690fi
9691
9692fi
9693 # Empty means a config way to ignore thin dumping
9694 if test "$THIN_DUMP_CMD" = "autodetect"
9695then :
9696
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.
9699set dummy ${ac_tool_prefix}thin_dump; ac_word=$2
9700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701printf %s "checking for $ac_word... " >&6; }
9702if test ${ac_cv_path_THIN_DUMP_CMD+y}
9703then :
9704 printf %s "(cached) " >&6
9705else case e in #(
9706 e) case $THIN_DUMP_CMD in
9707 [\\/]* | ?:[\\/]*)
9708 ac_cv_path_THIN_DUMP_CMD="$THIN_DUMP_CMD" # Let the user override the test with a path.
9709 ;;
9710 *)
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712for as_dir in $PATH_SBIN
9713do
9714 IFS=$as_save_IFS
9715 case $as_dir in #(((
9716 '') as_dir=./ ;;
9717 */) ;;
9718 *) as_dir=$as_dir/ ;;
9719 esac
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
9724 break 2
9725 fi
9726done
9727 done
9728IFS=$as_save_IFS
9729
9730 ;;
9731esac ;;
9732esac
9733fi
9734THIN_DUMP_CMD=$ac_cv_path_THIN_DUMP_CMD
9735if test -n "$THIN_DUMP_CMD"; then
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_DUMP_CMD" >&5
9737printf "%s\n" "$THIN_DUMP_CMD" >&6; }
9738else
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740printf "%s\n" "no" >&6; }
9741fi
9742
9743
9744fi
9745if 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.
9748set dummy thin_dump; ac_word=$2
9749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750printf %s "checking for $ac_word... " >&6; }
9751if test ${ac_cv_path_ac_pt_THIN_DUMP_CMD+y}
9752then :
9753 printf %s "(cached) " >&6
9754else case e in #(
9755 e) case $ac_pt_THIN_DUMP_CMD in
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_ac_pt_THIN_DUMP_CMD="$ac_pt_THIN_DUMP_CMD" # Let the user override the test with a path.
9758 ;;
9759 *)
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761for as_dir in $PATH_SBIN
9762do
9763 IFS=$as_save_IFS
9764 case $as_dir in #(((
9765 '') as_dir=./ ;;
9766 */) ;;
9767 *) as_dir=$as_dir/ ;;
9768 esac
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
9773 break 2
9774 fi
9775done
9776 done
9777IFS=$as_save_IFS
9778
9779 ;;
9780esac ;;
9781esac
9782fi
9783ac_pt_THIN_DUMP_CMD=$ac_cv_path_ac_pt_THIN_DUMP_CMD
9784if test -n "$ac_pt_THIN_DUMP_CMD"; then
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_DUMP_CMD" >&5
9786printf "%s\n" "$ac_pt_THIN_DUMP_CMD" >&6; }
9787else
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789printf "%s\n" "no" >&6; }
9790fi
9791
9792 if test "x$ac_pt_THIN_DUMP_CMD" = x; then
9793 THIN_DUMP_CMD=""
9794 else
9795 case $cross_compiling:$ac_tool_warned in
9796yes:)
9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9799ac_tool_warned=yes ;;
9800esac
9801 THIN_DUMP_CMD=$ac_pt_THIN_DUMP_CMD
9802 fi
9803else
9804 THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD"
9805fi
9806
9807 if test -z "$THIN_DUMP_CMD"
9808then :
9809
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&5
9811printf "%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"
9814
9815fi
9816
9817fi
9818 # Empty means a config way to ignore thin repairing
9819 if test "$THIN_REPAIR_CMD" = "autodetect"
9820then :
9821
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.
9824set dummy ${ac_tool_prefix}thin_repair; ac_word=$2
9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826printf %s "checking for $ac_word... " >&6; }
9827if test ${ac_cv_path_THIN_REPAIR_CMD+y}
9828then :
9829 printf %s "(cached) " >&6
9830else case e in #(
9831 e) case $THIN_REPAIR_CMD in
9832 [\\/]* | ?:[\\/]*)
9833 ac_cv_path_THIN_REPAIR_CMD="$THIN_REPAIR_CMD" # Let the user override the test with a path.
9834 ;;
9835 *)
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH_SBIN
9838do
9839 IFS=$as_save_IFS
9840 case $as_dir in #(((
9841 '') as_dir=./ ;;
9842 */) ;;
9843 *) as_dir=$as_dir/ ;;
9844 esac
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
9849 break 2
9850 fi
9851done
9852 done
9853IFS=$as_save_IFS
9854
9855 ;;
9856esac ;;
9857esac
9858fi
9859THIN_REPAIR_CMD=$ac_cv_path_THIN_REPAIR_CMD
9860if test -n "$THIN_REPAIR_CMD"; then
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_REPAIR_CMD" >&5
9862printf "%s\n" "$THIN_REPAIR_CMD" >&6; }
9863else
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865printf "%s\n" "no" >&6; }
9866fi
9867
9868
9869fi
9870if 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.
9873set dummy thin_repair; ac_word=$2
9874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875printf %s "checking for $ac_word... " >&6; }
9876if test ${ac_cv_path_ac_pt_THIN_REPAIR_CMD+y}
9877then :
9878 printf %s "(cached) " >&6
9879else case e in #(
9880 e) case $ac_pt_THIN_REPAIR_CMD in
9881 [\\/]* | ?:[\\/]*)
9882 ac_cv_path_ac_pt_THIN_REPAIR_CMD="$ac_pt_THIN_REPAIR_CMD" # Let the user override the test with a path.
9883 ;;
9884 *)
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH_SBIN
9887do
9888 IFS=$as_save_IFS
9889 case $as_dir in #(((
9890 '') as_dir=./ ;;
9891 */) ;;
9892 *) as_dir=$as_dir/ ;;
9893 esac
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
9898 break 2
9899 fi
9900done
9901 done
9902IFS=$as_save_IFS
9903
9904 ;;
9905esac ;;
9906esac
9907fi
9908ac_pt_THIN_REPAIR_CMD=$ac_cv_path_ac_pt_THIN_REPAIR_CMD
9909if test -n "$ac_pt_THIN_REPAIR_CMD"; then
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_REPAIR_CMD" >&5
9911printf "%s\n" "$ac_pt_THIN_REPAIR_CMD" >&6; }
9912else
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914printf "%s\n" "no" >&6; }
9915fi
9916
9917 if test "x$ac_pt_THIN_REPAIR_CMD" = x; then
9918 THIN_REPAIR_CMD=""
9919 else
9920 case $cross_compiling:$ac_tool_warned in
9921yes:)
9922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9924ac_tool_warned=yes ;;
9925esac
9926 THIN_REPAIR_CMD=$ac_pt_THIN_REPAIR_CMD
9927 fi
9928else
9929 THIN_REPAIR_CMD="$ac_cv_path_THIN_REPAIR_CMD"
9930fi
9931
9932 if test -z "$THIN_REPAIR_CMD"
9933then :
9934
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&5
9936printf "%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"
9939
9940fi
9941
9942fi
9943 # Empty means a config way to ignore thin restoring
9944 if test "$THIN_RESTORE_CMD" = "autodetect"
9945then :
9946
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.
9949set dummy ${ac_tool_prefix}thin_restore; ac_word=$2
9950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951printf %s "checking for $ac_word... " >&6; }
9952if test ${ac_cv_path_THIN_RESTORE_CMD+y}
9953then :
9954 printf %s "(cached) " >&6
9955else case e in #(
9956 e) case $THIN_RESTORE_CMD in
9957 [\\/]* | ?:[\\/]*)
9958 ac_cv_path_THIN_RESTORE_CMD="$THIN_RESTORE_CMD" # Let the user override the test with a path.
9959 ;;
9960 *)
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962for as_dir in $PATH_SBIN
9963do
9964 IFS=$as_save_IFS
9965 case $as_dir in #(((
9966 '') as_dir=./ ;;
9967 */) ;;
9968 *) as_dir=$as_dir/ ;;
9969 esac
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
9974 break 2
9975 fi
9976done
9977 done
9978IFS=$as_save_IFS
9979
9980 ;;
9981esac ;;
9982esac
9983fi
9984THIN_RESTORE_CMD=$ac_cv_path_THIN_RESTORE_CMD
9985if test -n "$THIN_RESTORE_CMD"; then
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_RESTORE_CMD" >&5
9987printf "%s\n" "$THIN_RESTORE_CMD" >&6; }
9988else
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990printf "%s\n" "no" >&6; }
9991fi
9992
9993
9994fi
9995if 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.
9998set dummy thin_restore; ac_word=$2
9999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000printf %s "checking for $ac_word... " >&6; }
10001if test ${ac_cv_path_ac_pt_THIN_RESTORE_CMD+y}
10002then :
10003 printf %s "(cached) " >&6
10004else case e in #(
10005 e) case $ac_pt_THIN_RESTORE_CMD in
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_ac_pt_THIN_RESTORE_CMD="$ac_pt_THIN_RESTORE_CMD" # Let the user override the test with a path.
10008 ;;
10009 *)
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH_SBIN
10012do
10013 IFS=$as_save_IFS
10014 case $as_dir in #(((
10015 '') as_dir=./ ;;
10016 */) ;;
10017 *) as_dir=$as_dir/ ;;
10018 esac
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
10023 break 2
10024 fi
10025done
10026 done
10027IFS=$as_save_IFS
10028
10029 ;;
10030esac ;;
10031esac
10032fi
10033ac_pt_THIN_RESTORE_CMD=$ac_cv_path_ac_pt_THIN_RESTORE_CMD
10034if test -n "$ac_pt_THIN_RESTORE_CMD"; then
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_RESTORE_CMD" >&5
10036printf "%s\n" "$ac_pt_THIN_RESTORE_CMD" >&6; }
10037else
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039printf "%s\n" "no" >&6; }
10040fi
10041
10042 if test "x$ac_pt_THIN_RESTORE_CMD" = x; then
10043 THIN_RESTORE_CMD=""
10044 else
10045 case $cross_compiling:$ac_tool_warned in
10046yes:)
10047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10048printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10049ac_tool_warned=yes ;;
10050esac
10051 THIN_RESTORE_CMD=$ac_pt_THIN_RESTORE_CMD
10052 fi
10053else
10054 THIN_RESTORE_CMD="$ac_cv_path_THIN_RESTORE_CMD"
10055fi
10056
10057 if test -z "$THIN_RESTORE_CMD"
10058then :
10059
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&5
10061printf "%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"
10064
10065fi
10066
10067fi
10068
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
10070printf %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
10072printf "%s\n" "$THIN_CHECK_NEEDS_CHECK" >&6; }
10073 if test "$THIN_CHECK_NEEDS_CHECK" = "yes"
10074then :
10075
10076
10077printf "%s\n" "#define THIN_CHECK_NEEDS_CHECK 1" >>confdefs.h
10078
10079
10080fi
10081 ;; #(
10082 *) :
10083 ;;
10084esac
10085
10086
10087printf "%s\n" "#define THIN_CHECK_CMD \"$THIN_CHECK_CMD\"" >>confdefs.h
10088
10089
10090
10091printf "%s\n" "#define THIN_DUMP_CMD \"$THIN_DUMP_CMD\"" >>confdefs.h
10092
10093
10094
10095printf "%s\n" "#define THIN_REPAIR_CMD \"$THIN_REPAIR_CMD\"" >>confdefs.h
10096
10097
10098
10099printf "%s\n" "#define THIN_RESTORE_CMD \"$THIN_RESTORE_CMD\"" >>confdefs.h
10100
10101
10102################################################################################
10103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include cache" >&5
10104printf %s "checking whether to include cache... " >&6; }
10105
10106# Check whether --with-cache was given.
10107if test ${with_cache+y}
10108then :
10109 withval=$with_cache; CACHE=$withval
10110else case e in #(
10111 e) CACHE="internal" ;;
10112esac
10113fi
10114
10115
10116# Check whether --with-cache-check was given.
10117if test ${with_cache_check+y}
10118then :
10119 withval=$with_cache_check; CACHE_CHECK_CMD=$withval
10120else case e in #(
10121 e) CACHE_CHECK_CMD="autodetect" ;;
10122esac
10123fi
10124
10125
10126# Check whether --with-cache-dump was given.
10127if test ${with_cache_dump+y}
10128then :
10129 withval=$with_cache_dump; CACHE_DUMP_CMD=$withval
10130else case e in #(
10131 e) CACHE_DUMP_CMD="autodetect" ;;
10132esac
10133fi
10134
10135
10136# Check whether --with-cache-repair was given.
10137if test ${with_cache_repair+y}
10138then :
10139 withval=$with_cache_repair; CACHE_REPAIR_CMD=$withval
10140else case e in #(
10141 e) CACHE_REPAIR_CMD="autodetect" ;;
10142esac
10143fi
10144
10145
10146# Check whether --with-cache-restore was given.
10147if test ${with_cache_restore+y}
10148then :
10149 withval=$with_cache_restore; CACHE_RESTORE_CMD=$withval
10150else case e in #(
10151 e) CACHE_RESTORE_CMD="autodetect" ;;
10152esac
10153fi
10154
10155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE" >&5
10156printf "%s\n" "$CACHE" >&6; }
10157
10158case "$CACHE" in #(
10159 no|none|shared) :
10160 ;; #(
10161 internal) :
10162
10163
10164printf "%s\n" "#define CACHE_INTERNAL 1" >>confdefs.h
10165 ;; #(
10166 *) :
10167 as_fn_error $? "--with-cache parameter invalid" "$LINENO" 5 ;;
10168esac
10169
10170# Check whether --enable-cache_check_needs_check was given.
10171if test ${enable_cache_check_needs_check+y}
10172then :
10173 enableval=$enable_cache_check_needs_check; CACHE_CHECK_NEEDS_CHECK=$enableval
10174else case e in #(
10175 e) CACHE_CHECK_NEEDS_CHECK="yes" ;;
10176esac
10177fi
10178
10179
10180# Test if necessary cache tools are available
10181# if not - use plain defaults and warn user
10182case "$CACHE" in #(
10183 internal|shared) :
10184
10185 # Empty means a config way to ignore cache checking
10186 if test "$CACHE_CHECK_CMD" = "autodetect"
10187then :
10188
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.
10191set dummy ${ac_tool_prefix}cache_check; ac_word=$2
10192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193printf %s "checking for $ac_word... " >&6; }
10194if test ${ac_cv_path_CACHE_CHECK_CMD+y}
10195then :
10196 printf %s "(cached) " >&6
10197else case e in #(
10198 e) case $CACHE_CHECK_CMD in
10199 [\\/]* | ?:[\\/]*)
10200 ac_cv_path_CACHE_CHECK_CMD="$CACHE_CHECK_CMD" # Let the user override the test with a path.
10201 ;;
10202 *)
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204for as_dir in $PATH_SBIN
10205do
10206 IFS=$as_save_IFS
10207 case $as_dir in #(((
10208 '') as_dir=./ ;;
10209 */) ;;
10210 *) as_dir=$as_dir/ ;;
10211 esac
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
10216 break 2
10217 fi
10218done
10219 done
10220IFS=$as_save_IFS
10221
10222 ;;
10223esac ;;
10224esac
10225fi
10226CACHE_CHECK_CMD=$ac_cv_path_CACHE_CHECK_CMD
10227if test -n "$CACHE_CHECK_CMD"; then
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_CMD" >&5
10229printf "%s\n" "$CACHE_CHECK_CMD" >&6; }
10230else
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232printf "%s\n" "no" >&6; }
10233fi
10234
10235
10236fi
10237if 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.
10240set dummy cache_check; ac_word=$2
10241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242printf %s "checking for $ac_word... " >&6; }
10243if test ${ac_cv_path_ac_pt_CACHE_CHECK_CMD+y}
10244then :
10245 printf %s "(cached) " >&6
10246else case e in #(
10247 e) case $ac_pt_CACHE_CHECK_CMD in
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_ac_pt_CACHE_CHECK_CMD="$ac_pt_CACHE_CHECK_CMD" # Let the user override the test with a path.
10250 ;;
10251 *)
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253for as_dir in $PATH_SBIN
10254do
10255 IFS=$as_save_IFS
10256 case $as_dir in #(((
10257 '') as_dir=./ ;;
10258 */) ;;
10259 *) as_dir=$as_dir/ ;;
10260 esac
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
10265 break 2
10266 fi
10267done
10268 done
10269IFS=$as_save_IFS
10270
10271 ;;
10272esac ;;
10273esac
10274fi
10275ac_pt_CACHE_CHECK_CMD=$ac_cv_path_ac_pt_CACHE_CHECK_CMD
10276if test -n "$ac_pt_CACHE_CHECK_CMD"; then
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_CHECK_CMD" >&5
10278printf "%s\n" "$ac_pt_CACHE_CHECK_CMD" >&6; }
10279else
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281printf "%s\n" "no" >&6; }
10282fi
10283
10284 if test "x$ac_pt_CACHE_CHECK_CMD" = x; then
10285 CACHE_CHECK_CMD=""
10286 else
10287 case $cross_compiling:$ac_tool_warned in
10288yes:)
10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10291ac_tool_warned=yes ;;
10292esac
10293 CACHE_CHECK_CMD=$ac_pt_CACHE_CHECK_CMD
10294 fi
10295else
10296 CACHE_CHECK_CMD="$ac_cv_path_CACHE_CHECK_CMD"
10297fi
10298
10299 if test -z "$CACHE_CHECK_CMD"
10300then :
10301
10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache_check not found in path $PATH_SBIN" >&5
10303printf "%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"
10306
10307fi
10308
10309fi
10310 if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" && test "$CACHE_CONFIGURE_WARN" != "y"
10311then :
10312
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
10316 rm -f conftest.tmp
10317
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"
10323then :
10324
10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&5
10326printf "%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"
10329
10330elif test "$CACHE_CHECK_VSN_MAJOR" -eq 0
10331then :
10332
10333 if test "$CACHE_CHECK_VSN_MINOR" -lt 5 \
10334 || ( test "$CACHE_CHECK_VSN_MINOR" -eq 5 && test "$CACHE_CHECK_VSN_PATCH" -lt 4 )
10335then :
10336
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&5
10338printf "%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"
10341
10342fi
10343 if test "$CACHE_CHECK_VSN_MINOR" -lt 7
10344then :
10345
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
10347printf "%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
10349
10350fi
10351
10352fi
10353
10354fi
10355 # Empty means a config way to ignore cache dumping
10356 if test "$CACHE_DUMP_CMD" = "autodetect"
10357then :
10358
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.
10361set dummy ${ac_tool_prefix}cache_dump; ac_word=$2
10362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363printf %s "checking for $ac_word... " >&6; }
10364if test ${ac_cv_path_CACHE_DUMP_CMD+y}
10365then :
10366 printf %s "(cached) " >&6
10367else case e in #(
10368 e) case $CACHE_DUMP_CMD in
10369 [\\/]* | ?:[\\/]*)
10370 ac_cv_path_CACHE_DUMP_CMD="$CACHE_DUMP_CMD" # Let the user override the test with a path.
10371 ;;
10372 *)
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374for as_dir in $PATH_SBIN
10375do
10376 IFS=$as_save_IFS
10377 case $as_dir in #(((
10378 '') as_dir=./ ;;
10379 */) ;;
10380 *) as_dir=$as_dir/ ;;
10381 esac
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
10386 break 2
10387 fi
10388done
10389 done
10390IFS=$as_save_IFS
10391
10392 ;;
10393esac ;;
10394esac
10395fi
10396CACHE_DUMP_CMD=$ac_cv_path_CACHE_DUMP_CMD
10397if test -n "$CACHE_DUMP_CMD"; then
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_DUMP_CMD" >&5
10399printf "%s\n" "$CACHE_DUMP_CMD" >&6; }
10400else
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402printf "%s\n" "no" >&6; }
10403fi
10404
10405
10406fi
10407if 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.
10410set dummy cache_dump; ac_word=$2
10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412printf %s "checking for $ac_word... " >&6; }
10413if test ${ac_cv_path_ac_pt_CACHE_DUMP_CMD+y}
10414then :
10415 printf %s "(cached) " >&6
10416else case e in #(
10417 e) case $ac_pt_CACHE_DUMP_CMD in
10418 [\\/]* | ?:[\\/]*)
10419 ac_cv_path_ac_pt_CACHE_DUMP_CMD="$ac_pt_CACHE_DUMP_CMD" # Let the user override the test with a path.
10420 ;;
10421 *)
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH_SBIN
10424do
10425 IFS=$as_save_IFS
10426 case $as_dir in #(((
10427 '') as_dir=./ ;;
10428 */) ;;
10429 *) as_dir=$as_dir/ ;;
10430 esac
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
10435 break 2
10436 fi
10437done
10438 done
10439IFS=$as_save_IFS
10440
10441 ;;
10442esac ;;
10443esac
10444fi
10445ac_pt_CACHE_DUMP_CMD=$ac_cv_path_ac_pt_CACHE_DUMP_CMD
10446if test -n "$ac_pt_CACHE_DUMP_CMD"; then
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_DUMP_CMD" >&5
10448printf "%s\n" "$ac_pt_CACHE_DUMP_CMD" >&6; }
10449else
10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451printf "%s\n" "no" >&6; }
10452fi
10453
10454 if test "x$ac_pt_CACHE_DUMP_CMD" = x; then
10455 CACHE_DUMP_CMD=""
10456 else
10457 case $cross_compiling:$ac_tool_warned in
10458yes:)
10459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10460printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10461ac_tool_warned=yes ;;
10462esac
10463 CACHE_DUMP_CMD=$ac_pt_CACHE_DUMP_CMD
10464 fi
10465else
10466 CACHE_DUMP_CMD="$ac_cv_path_CACHE_DUMP_CMD"
10467fi
10468
10469 if test -z "$CACHE_DUMP_CMD"
10470then :
10471
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&5
10473printf "%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"
10476
10477fi
10478
10479fi
10480 # Empty means a config way to ignore cache repairing
10481 if test "$CACHE_REPAIR_CMD" = "autodetect"
10482then :
10483
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.
10486set dummy ${ac_tool_prefix}cache_repair; ac_word=$2
10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488printf %s "checking for $ac_word... " >&6; }
10489if test ${ac_cv_path_CACHE_REPAIR_CMD+y}
10490then :
10491 printf %s "(cached) " >&6
10492else case e in #(
10493 e) case $CACHE_REPAIR_CMD in
10494 [\\/]* | ?:[\\/]*)
10495 ac_cv_path_CACHE_REPAIR_CMD="$CACHE_REPAIR_CMD" # Let the user override the test with a path.
10496 ;;
10497 *)
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499for as_dir in $PATH_SBIN
10500do
10501 IFS=$as_save_IFS
10502 case $as_dir in #(((
10503 '') as_dir=./ ;;
10504 */) ;;
10505 *) as_dir=$as_dir/ ;;
10506 esac
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
10511 break 2
10512 fi
10513done
10514 done
10515IFS=$as_save_IFS
10516
10517 ;;
10518esac ;;
10519esac
10520fi
10521CACHE_REPAIR_CMD=$ac_cv_path_CACHE_REPAIR_CMD
10522if test -n "$CACHE_REPAIR_CMD"; then
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_REPAIR_CMD" >&5
10524printf "%s\n" "$CACHE_REPAIR_CMD" >&6; }
10525else
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527printf "%s\n" "no" >&6; }
10528fi
10529
10530
10531fi
10532if 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.
10535set dummy cache_repair; ac_word=$2
10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537printf %s "checking for $ac_word... " >&6; }
10538if test ${ac_cv_path_ac_pt_CACHE_REPAIR_CMD+y}
10539then :
10540 printf %s "(cached) " >&6
10541else case e in #(
10542 e) case $ac_pt_CACHE_REPAIR_CMD in
10543 [\\/]* | ?:[\\/]*)
10544 ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$ac_pt_CACHE_REPAIR_CMD" # Let the user override the test with a path.
10545 ;;
10546 *)
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $PATH_SBIN
10549do
10550 IFS=$as_save_IFS
10551 case $as_dir in #(((
10552 '') as_dir=./ ;;
10553 */) ;;
10554 *) as_dir=$as_dir/ ;;
10555 esac
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
10560 break 2
10561 fi
10562done
10563 done
10564IFS=$as_save_IFS
10565
10566 ;;
10567esac ;;
10568esac
10569fi
10570ac_pt_CACHE_REPAIR_CMD=$ac_cv_path_ac_pt_CACHE_REPAIR_CMD
10571if test -n "$ac_pt_CACHE_REPAIR_CMD"; then
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_REPAIR_CMD" >&5
10573printf "%s\n" "$ac_pt_CACHE_REPAIR_CMD" >&6; }
10574else
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576printf "%s\n" "no" >&6; }
10577fi
10578
10579 if test "x$ac_pt_CACHE_REPAIR_CMD" = x; then
10580 CACHE_REPAIR_CMD=""
10581 else
10582 case $cross_compiling:$ac_tool_warned in
10583yes:)
10584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10585printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10586ac_tool_warned=yes ;;
10587esac
10588 CACHE_REPAIR_CMD=$ac_pt_CACHE_REPAIR_CMD
10589 fi
10590else
10591 CACHE_REPAIR_CMD="$ac_cv_path_CACHE_REPAIR_CMD"
10592fi
10593
10594 if test -z "$CACHE_REPAIR_CMD"
10595then :
10596
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&5
10598printf "%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"
10601
10602fi
10603
10604fi
10605 # Empty means a config way to ignore cache restoring
10606 if test "$CACHE_RESTORE_CMD" = "autodetect"
10607then :
10608
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.
10611set dummy ${ac_tool_prefix}cache_restore; ac_word=$2
10612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613printf %s "checking for $ac_word... " >&6; }
10614if test ${ac_cv_path_CACHE_RESTORE_CMD+y}
10615then :
10616 printf %s "(cached) " >&6
10617else case e in #(
10618 e) case $CACHE_RESTORE_CMD in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_CACHE_RESTORE_CMD="$CACHE_RESTORE_CMD" # Let the user override the test with a path.
10621 ;;
10622 *)
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH_SBIN
10625do
10626 IFS=$as_save_IFS
10627 case $as_dir in #(((
10628 '') as_dir=./ ;;
10629 */) ;;
10630 *) as_dir=$as_dir/ ;;
10631 esac
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
10636 break 2
10637 fi
10638done
10639 done
10640IFS=$as_save_IFS
10641
10642 ;;
10643esac ;;
10644esac
10645fi
10646CACHE_RESTORE_CMD=$ac_cv_path_CACHE_RESTORE_CMD
10647if test -n "$CACHE_RESTORE_CMD"; then
10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_RESTORE_CMD" >&5
10649printf "%s\n" "$CACHE_RESTORE_CMD" >&6; }
10650else
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652printf "%s\n" "no" >&6; }
10653fi
10654
10655
10656fi
10657if 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.
10660set dummy cache_restore; ac_word=$2
10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662printf %s "checking for $ac_word... " >&6; }
10663if test ${ac_cv_path_ac_pt_CACHE_RESTORE_CMD+y}
10664then :
10665 printf %s "(cached) " >&6
10666else case e in #(
10667 e) case $ac_pt_CACHE_RESTORE_CMD in
10668 [\\/]* | ?:[\\/]*)
10669 ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$ac_pt_CACHE_RESTORE_CMD" # Let the user override the test with a path.
10670 ;;
10671 *)
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH_SBIN
10674do
10675 IFS=$as_save_IFS
10676 case $as_dir in #(((
10677 '') as_dir=./ ;;
10678 */) ;;
10679 *) as_dir=$as_dir/ ;;
10680 esac
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
10685 break 2
10686 fi
10687done
10688 done
10689IFS=$as_save_IFS
10690
10691 ;;
10692esac ;;
10693esac
10694fi
10695ac_pt_CACHE_RESTORE_CMD=$ac_cv_path_ac_pt_CACHE_RESTORE_CMD
10696if test -n "$ac_pt_CACHE_RESTORE_CMD"; then
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_RESTORE_CMD" >&5
10698printf "%s\n" "$ac_pt_CACHE_RESTORE_CMD" >&6; }
10699else
10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701printf "%s\n" "no" >&6; }
10702fi
10703
10704 if test "x$ac_pt_CACHE_RESTORE_CMD" = x; then
10705 CACHE_RESTORE_CMD=""
10706 else
10707 case $cross_compiling:$ac_tool_warned in
10708yes:)
10709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10711ac_tool_warned=yes ;;
10712esac
10713 CACHE_RESTORE_CMD=$ac_pt_CACHE_RESTORE_CMD
10714 fi
10715else
10716 CACHE_RESTORE_CMD="$ac_cv_path_CACHE_RESTORE_CMD"
10717fi
10718
10719 if test -z "$CACHE_RESTORE_CMD"
10720then :
10721
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&5
10723printf "%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"
10726
10727fi
10728
10729fi
10730
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
10732printf %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
10734printf "%s\n" "$CACHE_CHECK_NEEDS_CHECK" >&6; }
10735 if test "$CACHE_CHECK_NEEDS_CHECK" = "yes"
10736then :
10737
10738
10739printf "%s\n" "#define CACHE_CHECK_NEEDS_CHECK 1" >>confdefs.h
10740
10741
10742fi
10743 ;; #(
10744 *) :
10745 ;;
10746esac
10747
10748
10749printf "%s\n" "#define CACHE_CHECK_CMD \"$CACHE_CHECK_CMD\"" >>confdefs.h
10750
10751
10752
10753printf "%s\n" "#define CACHE_DUMP_CMD \"$CACHE_DUMP_CMD\"" >>confdefs.h
10754
10755
10756
10757printf "%s\n" "#define CACHE_REPAIR_CMD \"$CACHE_REPAIR_CMD\"" >>confdefs.h
10758
10759
10760
10761printf "%s\n" "#define CACHE_RESTORE_CMD \"$CACHE_RESTORE_CMD\"" >>confdefs.h
10762
10763
10764################################################################################
10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include vdo" >&5
10766printf %s "checking whether to include vdo... " >&6; }
10767
10768# Check whether --with-vdo was given.
10769if test ${with_vdo+y}
10770then :
10771 withval=$with_vdo; VDO=$withval
10772else case e in #(
10773 e) VDO="internal" ;;
10774esac
10775fi
10776
10777
10778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO" >&5
10779printf "%s\n" "$VDO" >&6; }
10780
10781
10782# Check whether --with-vdo-format was given.
10783if test ${with_vdo_format+y}
10784then :
10785 withval=$with_vdo_format; VDO_FORMAT_CMD=$withval
10786else case e in #(
10787 e) VDO_FORMAT_CMD="autodetect" ;;
10788esac
10789fi
10790
10791case "$VDO" in #(
10792 no|none) :
10793 ;; #(
10794 internal) :
10795
10796
10797printf "%s\n" "#define VDO_INTERNAL 1" >>confdefs.h
10798
10799 if test "$VDO_FORMAT_CMD" = "autodetect"
10800then :
10801
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.
10804set dummy ${ac_tool_prefix}vdoformat; ac_word=$2
10805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806printf %s "checking for $ac_word... " >&6; }
10807if test ${ac_cv_path_VDO_FORMAT_CMD+y}
10808then :
10809 printf %s "(cached) " >&6
10810else case e in #(
10811 e) case $VDO_FORMAT_CMD in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_VDO_FORMAT_CMD="$VDO_FORMAT_CMD" # Let the user override the test with a path.
10814 ;;
10815 *)
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
10820 case $as_dir in #(((
10821 '') as_dir=./ ;;
10822 */) ;;
10823 *) as_dir=$as_dir/ ;;
10824 esac
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
10829 break 2
10830 fi
10831done
10832 done
10833IFS=$as_save_IFS
10834
10835 ;;
10836esac ;;
10837esac
10838fi
10839VDO_FORMAT_CMD=$ac_cv_path_VDO_FORMAT_CMD
10840if test -n "$VDO_FORMAT_CMD"; then
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO_FORMAT_CMD" >&5
10842printf "%s\n" "$VDO_FORMAT_CMD" >&6; }
10843else
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845printf "%s\n" "no" >&6; }
10846fi
10847
10848
10849fi
10850if 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.
10853set dummy vdoformat; ac_word=$2
10854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855printf %s "checking for $ac_word... " >&6; }
10856if test ${ac_cv_path_ac_pt_VDO_FORMAT_CMD+y}
10857then :
10858 printf %s "(cached) " >&6
10859else case e in #(
10860 e) case $ac_pt_VDO_FORMAT_CMD in
10861 [\\/]* | ?:[\\/]*)
10862 ac_cv_path_ac_pt_VDO_FORMAT_CMD="$ac_pt_VDO_FORMAT_CMD" # Let the user override the test with a path.
10863 ;;
10864 *)
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 case $as_dir in #(((
10870 '') as_dir=./ ;;
10871 */) ;;
10872 *) as_dir=$as_dir/ ;;
10873 esac
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
10878 break 2
10879 fi
10880done
10881 done
10882IFS=$as_save_IFS
10883
10884 ;;
10885esac ;;
10886esac
10887fi
10888ac_pt_VDO_FORMAT_CMD=$ac_cv_path_ac_pt_VDO_FORMAT_CMD
10889if test -n "$ac_pt_VDO_FORMAT_CMD"; then
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_VDO_FORMAT_CMD" >&5
10891printf "%s\n" "$ac_pt_VDO_FORMAT_CMD" >&6; }
10892else
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894printf "%s\n" "no" >&6; }
10895fi
10896
10897 if test "x$ac_pt_VDO_FORMAT_CMD" = x; then
10898 VDO_FORMAT_CMD=""
10899 else
10900 case $cross_compiling:$ac_tool_warned in
10901yes:)
10902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904ac_tool_warned=yes ;;
10905esac
10906 VDO_FORMAT_CMD=$ac_pt_VDO_FORMAT_CMD
10907 fi
10908else
10909 VDO_FORMAT_CMD="$ac_cv_path_VDO_FORMAT_CMD"
10910fi
10911
10912 if test -z "$VDO_FORMAT_CMD"
10913then :
10914
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: vdoformat not found in path $PATH" >&5
10916printf "%s\n" "$as_me: WARNING: vdoformat not found in path $PATH" >&2;}
10917 VDO_FORMAT_CMD="/usr/bin/vdoformat"
10918 VDO_CONFIGURE_WARN=y
10919
10920fi
10921
10922fi ;; #(
10923 *) :
10924 as_fn_error $? "--with-vdo parameter invalid" "$LINENO" 5 ;;
10925esac
10926
10927
10928printf "%s\n" "#define VDO_FORMAT_CMD \"$VDO_FORMAT_CMD\"" >>confdefs.h
10929
10930#
10931# Do we need to use the API??
10932# Do we want to link lvm2 with a big library for vdoformatting ?
10933#
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])
10939#
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])
10945
10946################################################################################
10947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include writecache" >&5
10948printf %s "checking whether to include writecache... " >&6; }
10949
10950# Check whether --with-writecache was given.
10951if test ${with_writecache+y}
10952then :
10953 withval=$with_writecache; WRITECACHE=$withval
10954else case e in #(
10955 e) WRITECACHE="internal" ;;
10956esac
10957fi
10958
10959
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WRITECACHE" >&5
10961printf "%s\n" "$WRITECACHE" >&6; }
10962
10963case "$WRITECACHE" in #(
10964 no|none) :
10965 ;; #(
10966 internal) :
10967
10968
10969printf "%s\n" "#define WRITECACHE_INTERNAL 1" >>confdefs.h
10970 ;; #(
10971 *) :
10972 as_fn_error $? "--with-writecache parameter invalid" "$LINENO" 5 ;;
10973esac
10974
10975################################################################################
10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include integrity" >&5
10977printf %s "checking whether to include integrity... " >&6; }
10978
10979# Check whether --with-integrity was given.
10980if test ${with_integrity+y}
10981then :
10982 withval=$with_integrity; INTEGRITY=$withval
10983else case e in #(
10984 e) INTEGRITY="internal" ;;
10985esac
10986fi
10987
10988
10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTEGRITY" >&5
10990printf "%s\n" "$INTEGRITY" >&6; }
10991
10992case "$INTEGRITY" in #(
10993 no|none) :
10994 ;; #(
10995 internal) :
10996
10997
10998printf "%s\n" "#define INTEGRITY_INTERNAL 1" >>confdefs.h
10999 ;; #(
11000 *) :
11001 as_fn_error $? "--with-integrity parameter invalid" "$LINENO" 5 ;;
11002esac
11003
11004################################################################################
11005# Check whether --enable-readline was given.
11006if test ${enable_readline+y}
11007then :
11008 enableval=$enable_readline; READLINE=$enableval
11009else case e in #(
11010 e) READLINE="maybe" ;;
11011esac
11012fi
11013
11014
11015################################################################################
11016# Check whether --enable-editline was given.
11017if test ${enable_editline+y}
11018then :
11019 enableval=$enable_editline; EDITLINE=$enableval
11020else case e in #(
11021 e) EDITLINE="no" ;;
11022esac
11023fi
11024
11025
11026################################################################################
11027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
11028printf %s "checking whether to enable realtime support... " >&6; }
11029# Check whether --enable-realtime was given.
11030if test ${enable_realtime+y}
11031then :
11032 enableval=$enable_realtime; REALTIME=$enableval
11033else case e in #(
11034 e) REALTIME="yes" ;;
11035esac
11036fi
11037
11038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
11039printf "%s\n" "$REALTIME" >&6; }
11040
11041################################################################################
11042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
11043printf %s "checking whether to enable OCF resource agents... " >&6; }
11044# Check whether --enable-ocf was given.
11045if test ${enable_ocf+y}
11046then :
11047 enableval=$enable_ocf; OCF=$enableval
11048else case e in #(
11049 e) OCF="no" ;;
11050esac
11051fi
11052
11053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
11054printf "%s\n" "$OCF" >&6; }
11055
11056# Check whether --with-ocfdir was given.
11057if test ${with_ocfdir+y}
11058then :
11059 withval=$with_ocfdir; OCFDIR=$withval
11060else case e in #(
11061 e) OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' ;;
11062esac
11063fi
11064
11065
11066################################################################################
11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default run directory" >&5
11068printf %s "checking for default run directory... " >&6; }
11069RUN_DIR="/run"
11070if test ! -d "$RUN_DIR"
11071then :
11072 RUN_DIR="/var/run"
11073fi
11074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUN_DIR" >&5
11075printf "%s\n" "$RUN_DIR" >&6; }
11076
11077
11078# Check whether --with-default-pid-dir was given.
11079if test ${with_default_pid_dir+y}
11080then :
11081 withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval"
11082else case e in #(
11083 e) DEFAULT_PID_DIR=$RUN_DIR ;;
11084esac
11085fi
11086
11087
11088printf "%s\n" "#define DEFAULT_PID_DIR \"$DEFAULT_PID_DIR\"" >>confdefs.h
11089
11090
11091
11092
11093# Check whether --with-default-dm-run-dir was given.
11094if test ${with_default_dm_run_dir+y}
11095then :
11096 withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval"
11097else case e in #(
11098 e) DEFAULT_DM_RUN_DIR=$RUN_DIR ;;
11099esac
11100fi
11101
11102
11103printf "%s\n" "#define DEFAULT_DM_RUN_DIR \"$DEFAULT_DM_RUN_DIR\"" >>confdefs.h
11104
11105
11106
11107
11108# Check whether --with-default-run-dir was given.
11109if test ${with_default_run_dir+y}
11110then :
11111 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
11112else case e in #(
11113 e) DEFAULT_RUN_DIR="$RUN_DIR/lvm" ;;
11114esac
11115fi
11116
11117
11118printf "%s\n" "#define DEFAULT_RUN_DIR \"$DEFAULT_RUN_DIR\"" >>confdefs.h
11119
11120
11121################################################################################
11122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
11123printf %s "checking whether to build cluster mirror log daemon... " >&6; }
11124# Check whether --enable-cmirrord was given.
11125if test ${enable_cmirrord+y}
11126then :
11127 enableval=$enable_cmirrord; BUILD_CMIRRORD=$enableval
11128else case e in #(
11129 e) BUILD_CMIRRORD="no" ;;
11130esac
11131fi
11132
11133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CMIRRORD" >&5
11134printf "%s\n" "$BUILD_CMIRRORD" >&6; }
11135
11136################################################################################
11137if test "$BUILD_CMIRRORD" = "yes"
11138then :
11139
11140
11141# Check whether --with-cmirrord-pidfile was given.
11142if test ${with_cmirrord_pidfile+y}
11143then :
11144 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
11145else case e in #(
11146 e) CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" ;;
11147esac
11148fi
11149
11150
11151printf "%s\n" "#define CMIRRORD_PIDFILE \"$CMIRRORD_PIDFILE\"" >>confdefs.h
11152
11153
11154fi
11155
11156################################################################################
11157
11158
11159
11160
11161
11162
11163
11164if 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.
11167set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169printf %s "checking for $ac_word... " >&6; }
11170if test ${ac_cv_path_PKG_CONFIG+y}
11171then :
11172 printf %s "(cached) " >&6
11173else case e in #(
11174 e) case $PKG_CONFIG in
11175 [\\/]* | ?:[\\/]*)
11176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11177 ;;
11178 *)
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180for as_dir in $PATH
11181do
11182 IFS=$as_save_IFS
11183 case $as_dir in #(((
11184 '') as_dir=./ ;;
11185 */) ;;
11186 *) as_dir=$as_dir/ ;;
11187 esac
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
11192 break 2
11193 fi
11194done
11195 done
11196IFS=$as_save_IFS
11197
11198 ;;
11199esac ;;
11200esac
11201fi
11202PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11203if test -n "$PKG_CONFIG"; then
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11205printf "%s\n" "$PKG_CONFIG" >&6; }
11206else
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208printf "%s\n" "no" >&6; }
11209fi
11210
11211
11212fi
11213if 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.
11216set dummy pkg-config; ac_word=$2
11217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218printf %s "checking for $ac_word... " >&6; }
11219if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11220then :
11221 printf %s "(cached) " >&6
11222else case e in #(
11223 e) case $ac_pt_PKG_CONFIG in
11224 [\\/]* | ?:[\\/]*)
11225 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11226 ;;
11227 *)
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 case $as_dir in #(((
11233 '') as_dir=./ ;;
11234 */) ;;
11235 *) as_dir=$as_dir/ ;;
11236 esac
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
11241 break 2
11242 fi
11243done
11244 done
11245IFS=$as_save_IFS
11246
11247 ;;
11248esac ;;
11249esac
11250fi
11251ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11252if test -n "$ac_pt_PKG_CONFIG"; then
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11254printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
11255else
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257printf "%s\n" "no" >&6; }
11258fi
11259
11260 if test "x$ac_pt_PKG_CONFIG" = x; then
11261 PKG_CONFIG=""
11262 else
11263 case $cross_compiling:$ac_tool_warned in
11264yes:)
11265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11267ac_tool_warned=yes ;;
11268esac
11269 PKG_CONFIG=$ac_pt_PKG_CONFIG
11270 fi
11271else
11272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11273fi
11274
11275fi
11276if 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
11279printf %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
11282printf "%s\n" "yes" >&6; }
11283 else
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285printf "%s\n" "no" >&6; }
11286 PKG_CONFIG=""
11287 fi
11288fi
11289if test "$BUILD_CMIRRORD" = "yes" && test "$HAVE_CPG" != "yes"
11290then :
11291
11292
11293pkg_failed=no
11294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpg" >&5
11295printf %s "checking for libcpg... " >&6; }
11296
11297if 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
11303 ac_status=$?
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
11308else
11309 pkg_failed=yes
11310fi
11311 else
11312 pkg_failed=untried
11313fi
11314if 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
11320 ac_status=$?
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
11325else
11326 pkg_failed=yes
11327fi
11328 else
11329 pkg_failed=untried
11330fi
11331
11332
11333
11334if test $pkg_failed = yes; then
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336printf "%s\n" "no" >&6; }
11337
11338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11339 _pkg_short_errors_supported=yes
11340else
11341 _pkg_short_errors_supported=no
11342fi
11343 if test $_pkg_short_errors_supported = yes; then
11344 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpg" 2>&1`
11345 else
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpg" 2>&1`
11347 fi
11348 # Put the nasty error message in config.log where it belongs
11349 echo "$CPG_PKG_ERRORS" >&5
11350
11351 as_fn_error $? "Package requirements (libcpg) were not met:
11352
11353$CPG_PKG_ERRORS
11354
11355Consider adjusting the PKG_CONFIG_PATH environment variable if you
11356installed software in a non-standard prefix.
11357
11358Alternatively, you may set the environment variables CPG_CFLAGS
11359and CPG_LIBS to avoid the need to call pkg-config.
11360See the pkg-config man page for more details." "$LINENO" 5
11361elif test $pkg_failed = untried; then
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363printf "%s\n" "no" >&6; }
11364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11365printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11366as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11367is in your PATH or set the PKG_CONFIG environment variable to the full
11368path to pkg-config.
11369
11370Alternatively, you may set the environment variables CPG_CFLAGS
11371and CPG_LIBS to avoid the need to call pkg-config.
11372See the pkg-config man page for more details.
11373
11374To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11375See 'config.log' for more details" "$LINENO" 5; }
11376else
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
11380printf "%s\n" "yes" >&6; }
11381
11382fi
11383
11384fi
11385
11386################################################################################
11387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
11388printf %s "checking whether to enable debugging... " >&6; }
11389# Check whether --enable-debug was given.
11390if test ${enable_debug+y}
11391then :
11392 enableval=$enable_debug; DEBUG=$enableval
11393else case e in #(
11394 e) DEBUG="no" ;;
11395esac
11396fi
11397
11398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
11399printf "%s\n" "$DEBUG" >&6; }
11400
11401if test "$DEBUG" = "yes"
11402then :
11403 COPTIMISE_FLAG=""
11404else case e in #(
11405 e) CSCOPE_CMD="" ;;
11406esac
11407fi
11408
11409
11410
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
11414printf %s "checking whether $CC accepts -Wjump-misses-init flag... " >&6; }
11415if test ${ac_cv_flag_HAVE_WJUMP+y}
11416then :
11417 printf %s "(cached) " >&6
11418else case e in #(
11419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420/* end confdefs.h. */
11421
11422int
11423main (void)
11424{
11425
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430if ac_fn_c_try_compile "$LINENO"
11431then :
11432 ac_cv_flag_HAVE_WJUMP=yes
11433else case e in #(
11434 e) ac_cv_flag_HAVE_WJUMP=no ;;
11435esac
11436fi
11437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11438esac
11439fi
11440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WJUMP" >&5
11441printf "%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
11445 :
11446 else
11447 :
11448 fi
11449
11450
11451
11452
11453 ac_save_CFLAGS=$CFLAGS
11454 CFLAGS=-Wclobbered
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wclobbered flag" >&5
11456printf %s "checking whether $CC accepts -Wclobbered flag... " >&6; }
11457if test ${ac_cv_flag_HAVE_WCLOBBERED+y}
11458then :
11459 printf %s "(cached) " >&6
11460else case e in #(
11461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h. */
11463
11464int
11465main (void)
11466{
11467
11468 ;
11469 return 0;
11470}
11471_ACEOF
11472if ac_fn_c_try_compile "$LINENO"
11473then :
11474 ac_cv_flag_HAVE_WCLOBBERED=yes
11475else case e in #(
11476 e) ac_cv_flag_HAVE_WCLOBBERED=no ;;
11477esac
11478fi
11479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11480esac
11481fi
11482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WCLOBBERED" >&5
11483printf "%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
11487 :
11488 else
11489 :
11490 fi
11491
11492
11493
11494
11495 ac_save_CFLAGS=$CFLAGS
11496 CFLAGS=-Wsync-nand
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsync-nand flag" >&5
11498printf %s "checking whether $CC accepts -Wsync-nand flag... " >&6; }
11499if test ${ac_cv_flag_HAVE_WSYNCNAND+y}
11500then :
11501 printf %s "(cached) " >&6
11502else case e in #(
11503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504/* end confdefs.h. */
11505
11506int
11507main (void)
11508{
11509
11510 ;
11511 return 0;
11512}
11513_ACEOF
11514if ac_fn_c_try_compile "$LINENO"
11515then :
11516 ac_cv_flag_HAVE_WSYNCNAND=yes
11517else case e in #(
11518 e) ac_cv_flag_HAVE_WSYNCNAND=no ;;
11519esac
11520fi
11521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11522esac
11523fi
11524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WSYNCNAND" >&5
11525printf "%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
11529 :
11530 else
11531 :
11532 fi
11533
11534
11535
11536################################################################################
11537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
11538printf %s "checking for C optimisation flag... " >&6; }
11539
11540# Check whether --with-optimisation was given.
11541if test ${with_optimisation+y}
11542then :
11543 withval=$with_optimisation; COPTIMISE_FLAG=$withval
11544fi
11545
11546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
11547printf "%s\n" "$COPTIMISE_FLAG" >&6; }
11548
11549################################################################################
11550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use symbol versioning" >&5
11551printf %s "checking whether to use symbol versioning... " >&6; }
11552
11553# Check whether --with-symvers was given.
11554if test ${with_symvers+y}
11555then :
11556 withval=$with_symvers;
11557 case "$withval" in #(
11558 gnu|no) :
11559 symvers=$withval ;; #(
11560 *) :
11561 as_fn_error $? "--with-symvers parameter invalid" "$LINENO" 5 ;;
11562esac
11563else case e in #(
11564 e) symvers="gnu" ;;
11565esac
11566fi
11567
11568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $symvers" >&5
11569printf "%s\n" "$symvers" >&6; }
11570
11571if test "$GCC" = "yes" && test "$symvers" = "gnu"
11572then :
11573
11574
11575printf "%s\n" "#define GNU_SYMVER 1" >>confdefs.h
11576
11577 case "$host_os" in #(
11578 linux*) :
11579
11580 CLDFLAGS="-Wl,--version-script,.export.sym"
11581 LDDEPS="$LDDEPS .export.sym" ;; #(
11582 *) :
11583 ;;
11584esac
11585
11586fi
11587
11588################################################################################
11589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
11590printf %s "checking whether to gather gcov profiling data... " >&6; }
11591# Check whether --enable-profiling was given.
11592if test ${enable_profiling+y}
11593then :
11594 enableval=$enable_profiling; PROFILING=$enableval
11595else case e in #(
11596 e) PROFILING="no" ;;
11597esac
11598fi
11599
11600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
11601printf "%s\n" "$PROFILING" >&6; }
11602
11603if test "$PROFILING" = "yes"
11604then :
11605
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.
11609set dummy ${ac_tool_prefix}lcov; ac_word=$2
11610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611printf %s "checking for $ac_word... " >&6; }
11612if test ${ac_cv_path_LCOV+y}
11613then :
11614 printf %s "(cached) " >&6
11615else case e in #(
11616 e) case $LCOV in
11617 [\\/]* | ?:[\\/]*)
11618 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11619 ;;
11620 *)
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 case $as_dir in #(((
11626 '') as_dir=./ ;;
11627 */) ;;
11628 *) as_dir=$as_dir/ ;;
11629 esac
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
11634 break 2
11635 fi
11636done
11637 done
11638IFS=$as_save_IFS
11639
11640 ;;
11641esac ;;
11642esac
11643fi
11644LCOV=$ac_cv_path_LCOV
11645if test -n "$LCOV"; then
11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
11647printf "%s\n" "$LCOV" >&6; }
11648else
11649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650printf "%s\n" "no" >&6; }
11651fi
11652
11653
11654fi
11655if test -z "$ac_cv_path_LCOV"; then
11656 ac_pt_LCOV=$LCOV
11657 # Extract the first word of "lcov", so it can be a program name with args.
11658set dummy lcov; ac_word=$2
11659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660printf %s "checking for $ac_word... " >&6; }
11661if test ${ac_cv_path_ac_pt_LCOV+y}
11662then :
11663 printf %s "(cached) " >&6
11664else case e in #(
11665 e) case $ac_pt_LCOV in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_ac_pt_LCOV="$ac_pt_LCOV" # Let the user override the test with a path.
11668 ;;
11669 *)
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $PATH
11672do
11673 IFS=$as_save_IFS
11674 case $as_dir in #(((
11675 '') as_dir=./ ;;
11676 */) ;;
11677 *) as_dir=$as_dir/ ;;
11678 esac
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
11683 break 2
11684 fi
11685done
11686 done
11687IFS=$as_save_IFS
11688
11689 ;;
11690esac ;;
11691esac
11692fi
11693ac_pt_LCOV=$ac_cv_path_ac_pt_LCOV
11694if test -n "$ac_pt_LCOV"; then
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LCOV" >&5
11696printf "%s\n" "$ac_pt_LCOV" >&6; }
11697else
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699printf "%s\n" "no" >&6; }
11700fi
11701
11702 if test "x$ac_pt_LCOV" = x; then
11703 LCOV=""
11704 else
11705 case $cross_compiling:$ac_tool_warned in
11706yes:)
11707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709ac_tool_warned=yes ;;
11710esac
11711 LCOV=$ac_pt_LCOV
11712 fi
11713else
11714 LCOV="$ac_cv_path_LCOV"
11715fi
11716
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.
11719set dummy ${ac_tool_prefix}genhtml; ac_word=$2
11720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721printf %s "checking for $ac_word... " >&6; }
11722if test ${ac_cv_path_GENHTML+y}
11723then :
11724 printf %s "(cached) " >&6
11725else case e in #(
11726 e) case $GENHTML in
11727 [\\/]* | ?:[\\/]*)
11728 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11729 ;;
11730 *)
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732for as_dir in $PATH
11733do
11734 IFS=$as_save_IFS
11735 case $as_dir in #(((
11736 '') as_dir=./ ;;
11737 */) ;;
11738 *) as_dir=$as_dir/ ;;
11739 esac
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
11744 break 2
11745 fi
11746done
11747 done
11748IFS=$as_save_IFS
11749
11750 ;;
11751esac ;;
11752esac
11753fi
11754GENHTML=$ac_cv_path_GENHTML
11755if test -n "$GENHTML"; then
11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
11757printf "%s\n" "$GENHTML" >&6; }
11758else
11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760printf "%s\n" "no" >&6; }
11761fi
11762
11763
11764fi
11765if 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.
11768set dummy genhtml; ac_word=$2
11769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770printf %s "checking for $ac_word... " >&6; }
11771if test ${ac_cv_path_ac_pt_GENHTML+y}
11772then :
11773 printf %s "(cached) " >&6
11774else case e in #(
11775 e) case $ac_pt_GENHTML in
11776 [\\/]* | ?:[\\/]*)
11777 ac_cv_path_ac_pt_GENHTML="$ac_pt_GENHTML" # Let the user override the test with a path.
11778 ;;
11779 *)
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783 IFS=$as_save_IFS
11784 case $as_dir in #(((
11785 '') as_dir=./ ;;
11786 */) ;;
11787 *) as_dir=$as_dir/ ;;
11788 esac
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
11793 break 2
11794 fi
11795done
11796 done
11797IFS=$as_save_IFS
11798
11799 ;;
11800esac ;;
11801esac
11802fi
11803ac_pt_GENHTML=$ac_cv_path_ac_pt_GENHTML
11804if test -n "$ac_pt_GENHTML"; then
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENHTML" >&5
11806printf "%s\n" "$ac_pt_GENHTML" >&6; }
11807else
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809printf "%s\n" "no" >&6; }
11810fi
11811
11812 if test "x$ac_pt_GENHTML" = x; then
11813 GENHTML=""
11814 else
11815 case $cross_compiling:$ac_tool_warned in
11816yes:)
11817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11819ac_tool_warned=yes ;;
11820esac
11821 GENHTML=$ac_pt_GENHTML
11822 fi
11823else
11824 GENHTML="$ac_cv_path_GENHTML"
11825fi
11826
11827 if test -z "$LCOV" || test -z "$GENHTML"
11828then :
11829
11830 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
11831
11832fi
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.
11835set dummy ${ac_tool_prefix}genpng; ac_word=$2
11836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837printf %s "checking for $ac_word... " >&6; }
11838if test ${ac_cv_path_GENPNG+y}
11839then :
11840 printf %s "(cached) " >&6
11841else case e in #(
11842 e) case $GENPNG in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
11845 ;;
11846 *)
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $PATH
11849do
11850 IFS=$as_save_IFS
11851 case $as_dir in #(((
11852 '') as_dir=./ ;;
11853 */) ;;
11854 *) as_dir=$as_dir/ ;;
11855 esac
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
11860 break 2
11861 fi
11862done
11863 done
11864IFS=$as_save_IFS
11865
11866 ;;
11867esac ;;
11868esac
11869fi
11870GENPNG=$ac_cv_path_GENPNG
11871if test -n "$GENPNG"; then
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
11873printf "%s\n" "$GENPNG" >&6; }
11874else
11875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876printf "%s\n" "no" >&6; }
11877fi
11878
11879
11880fi
11881if 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.
11884set dummy genpng; ac_word=$2
11885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886printf %s "checking for $ac_word... " >&6; }
11887if test ${ac_cv_path_ac_pt_GENPNG+y}
11888then :
11889 printf %s "(cached) " >&6
11890else case e in #(
11891 e) case $ac_pt_GENPNG in
11892 [\\/]* | ?:[\\/]*)
11893 ac_cv_path_ac_pt_GENPNG="$ac_pt_GENPNG" # Let the user override the test with a path.
11894 ;;
11895 *)
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899 IFS=$as_save_IFS
11900 case $as_dir in #(((
11901 '') as_dir=./ ;;
11902 */) ;;
11903 *) as_dir=$as_dir/ ;;
11904 esac
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
11909 break 2
11910 fi
11911done
11912 done
11913IFS=$as_save_IFS
11914
11915 ;;
11916esac ;;
11917esac
11918fi
11919ac_pt_GENPNG=$ac_cv_path_ac_pt_GENPNG
11920if test -n "$ac_pt_GENPNG"; then
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENPNG" >&5
11922printf "%s\n" "$ac_pt_GENPNG" >&6; }
11923else
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925printf "%s\n" "no" >&6; }
11926fi
11927
11928 if test "x$ac_pt_GENPNG" = x; then
11929 GENPNG=""
11930 else
11931 case $cross_compiling:$ac_tool_warned in
11932yes:)
11933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11934printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11935ac_tool_warned=yes ;;
11936esac
11937 GENPNG=$ac_pt_GENPNG
11938 fi
11939else
11940 GENPNG="$ac_cv_path_GENPNG"
11941fi
11942
11943 if test -n "$GENPNG"
11944then :
11945
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
11947printf %s "checking whether $GENPNG has all required modules... " >&6; }
11948 if "$GENPNG" --help > /dev/null 2>&1
11949then :
11950
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11952printf "%s\n" "ok" >&6; }
11953 GENHTML="$GENHTML --frames"
11954
11955else case e in #(
11956 e)
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
11958printf "%s\n" "not supported" >&6; }
11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
11960printf "%s\n" "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
11961 GENPNG=
11962 ;;
11963esac
11964fi
11965
11966fi
11967
11968fi
11969
11970################################################################################
11971TESTSUITE_DATA='${datarootdir}/lvm2-testsuite'
11972# double eval needed ${datarootdir} -> ${prefix}/share -> real path
11973
11974printf "%s\n" "#define TESTSUITE_DATA \"$(eval echo $(eval echo $TESTSUITE_DATA))\"" >>confdefs.h
11975
11976
11977################################################################################
11978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
11979printf %s "checking whether to enable valgrind awareness of pools... " >&6; }
11980# Check whether --enable-valgrind_pool was given.
11981if test ${enable_valgrind_pool+y}
11982then :
11983 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
11984else case e in #(
11985 e) VALGRIND_POOL="no" ;;
11986esac
11987fi
11988
11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
11990printf "%s\n" "$VALGRIND_POOL" >&6; }
11991
11992
11993pkg_failed=no
11994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
11995printf %s "checking for valgrind... " >&6; }
11996
11997if 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
12003 ac_status=$?
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
12008else
12009 pkg_failed=yes
12010fi
12011 else
12012 pkg_failed=untried
12013fi
12014if 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
12020 ac_status=$?
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
12025else
12026 pkg_failed=yes
12027fi
12028 else
12029 pkg_failed=untried
12030fi
12031
12032
12033
12034if test $pkg_failed = yes; then
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036printf "%s\n" "no" >&6; }
12037
12038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12039 _pkg_short_errors_supported=yes
12040else
12041 _pkg_short_errors_supported=no
12042fi
12043 if test $_pkg_short_errors_supported = yes; then
12044 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
12045 else
12046 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
12047 fi
12048 # Put the nasty error message in config.log where it belongs
12049 echo "$VALGRIND_PKG_ERRORS" >&5
12050
12051
12052 if test "$VALGRIND_POOL" = "yes"
12053then :
12054 as_fn_error $? "bailing out" "$LINENO" 5
12055fi
12056
12057elif test $pkg_failed = untried; then
12058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059printf "%s\n" "no" >&6; }
12060
12061 if test "$VALGRIND_POOL" = "yes"
12062then :
12063 as_fn_error $? "bailing out" "$LINENO" 5
12064fi
12065
12066else
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
12070printf "%s\n" "yes" >&6; }
12071 HAVE_VALGRIND="yes"
12072fi
12073
12074
12075if test "$HAVE_VALGRIND" = "yes"
12076then :
12077
12078
12079printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h
12080
12081
12082fi
12083
12084if test "$VALGRIND_POOL" = "yes"
12085then :
12086
12087
12088printf "%s\n" "#define VALGRIND_POOL 1" >>confdefs.h
12089
12090
12091fi
12092
12093################################################################################
12094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
12095printf %s "checking whether to use device-mapper... " >&6; }
12096# Check whether --enable-devmapper was given.
12097if test ${enable_devmapper+y}
12098then :
12099 enableval=$enable_devmapper; DEVMAPPER=$enableval
12100fi
12101
12102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
12103printf "%s\n" "$DEVMAPPER" >&6; }
12104
12105if test "$DEVMAPPER" = "yes"
12106then :
12107
12108
12109printf "%s\n" "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
12110
12111
12112fi
12113
12114################################################################################
12115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmpolld" >&5
12116printf %s "checking whether to build lvmpolld... " >&6; }
12117# Check whether --enable-lvmpolld was given.
12118if test ${enable_lvmpolld+y}
12119then :
12120 enableval=$enable_lvmpolld; BUILD_LVMPOLLD=$enableval
12121else case e in #(
12122 e) BUILD_LVMPOLLD="no" ;;
12123esac
12124fi
12125
12126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMPOLLD" >&5
12127printf "%s\n" "$BUILD_LVMPOLLD" >&6; }
12128
12129################################################################################
12130BUILD_LVMLOCKD=no
12131
12132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdsanlock" >&5
12133printf %s "checking whether to build lvmlockdsanlock... " >&6; }
12134# Check whether --enable-lvmlockd-sanlock was given.
12135if test ${enable_lvmlockd_sanlock+y}
12136then :
12137 enableval=$enable_lvmlockd_sanlock; BUILD_LOCKDSANLOCK=$enableval
12138else case e in #(
12139 e) BUILD_LOCKDSANLOCK="no" ;;
12140esac
12141fi
12142
12143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDSANLOCK" >&5
12144printf "%s\n" "$BUILD_LOCKDSANLOCK" >&6; }
12145
12146if test "$BUILD_LOCKDSANLOCK" = "yes"
12147then :
12148
12149
12150pkg_failed=no
12151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsanlock_client >= 3.7.0" >&5
12152printf %s "checking for libsanlock_client >= 3.7.0... " >&6; }
12153
12154if 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
12160 ac_status=$?
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
12165else
12166 pkg_failed=yes
12167fi
12168 else
12169 pkg_failed=untried
12170fi
12171if 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
12177 ac_status=$?
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
12182else
12183 pkg_failed=yes
12184fi
12185 else
12186 pkg_failed=untried
12187fi
12188
12189
12190
12191if test $pkg_failed = yes; then
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193printf "%s\n" "no" >&6; }
12194
12195if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12196 _pkg_short_errors_supported=yes
12197else
12198 _pkg_short_errors_supported=no
12199fi
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`
12202 else
12203 LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1`
12204 fi
12205 # Put the nasty error message in config.log where it belongs
12206 echo "$LIBSANLOCKCLIENT_PKG_ERRORS" >&5
12207
12208 as_fn_error $? "Package requirements (libsanlock_client >= 3.7.0) were not met:
12209
12210$LIBSANLOCKCLIENT_PKG_ERRORS
12211
12212Consider adjusting the PKG_CONFIG_PATH environment variable if you
12213installed software in a non-standard prefix.
12214
12215Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS
12216and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config.
12217See the pkg-config man page for more details." "$LINENO" 5
12218elif test $pkg_failed = untried; then
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220printf "%s\n" "no" >&6; }
12221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12222printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12223as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12224is in your PATH or set the PKG_CONFIG environment variable to the full
12225path to pkg-config.
12226
12227Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS
12228and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config.
12229See the pkg-config man page for more details.
12230
12231To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12232See 'config.log' for more details" "$LINENO" 5; }
12233else
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
12237printf "%s\n" "yes" >&6; }
12238 BUILD_LVMLOCKD="yes"
12239fi
12240
12241printf "%s\n" "#define LOCKDSANLOCK_SUPPORT 1" >>confdefs.h
12242
12243
12244fi
12245
12246################################################################################
12247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlm" >&5
12248printf %s "checking whether to build lvmlockddlm... " >&6; }
12249# Check whether --enable-lvmlockd-dlm was given.
12250if test ${enable_lvmlockd_dlm+y}
12251then :
12252 enableval=$enable_lvmlockd_dlm; BUILD_LOCKDDLM=$enableval
12253else case e in #(
12254 e) BUILD_LOCKDDLM="no" ;;
12255esac
12256fi
12257
12258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM" >&5
12259printf "%s\n" "$BUILD_LOCKDDLM" >&6; }
12260
12261if test "$BUILD_LOCKDDLM" = "yes"
12262then :
12263
12264
12265pkg_failed=no
12266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlm_lt" >&5
12267printf %s "checking for libdlm_lt... " >&6; }
12268
12269if 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
12275 ac_status=$?
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
12280else
12281 pkg_failed=yes
12282fi
12283 else
12284 pkg_failed=untried
12285fi
12286if 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
12292 ac_status=$?
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
12297else
12298 pkg_failed=yes
12299fi
12300 else
12301 pkg_failed=untried
12302fi
12303
12304
12305
12306if test $pkg_failed = yes; then
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308printf "%s\n" "no" >&6; }
12309
12310if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12311 _pkg_short_errors_supported=yes
12312else
12313 _pkg_short_errors_supported=no
12314fi
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`
12317 else
12318 LIBDLM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlm_lt" 2>&1`
12319 fi
12320 # Put the nasty error message in config.log where it belongs
12321 echo "$LIBDLM_PKG_ERRORS" >&5
12322
12323 as_fn_error $? "Package requirements (libdlm_lt) were not met:
12324
12325$LIBDLM_PKG_ERRORS
12326
12327Consider adjusting the PKG_CONFIG_PATH environment variable if you
12328installed software in a non-standard prefix.
12329
12330Alternatively, you may set the environment variables LIBDLM_CFLAGS
12331and LIBDLM_LIBS to avoid the need to call pkg-config.
12332See the pkg-config man page for more details." "$LINENO" 5
12333elif test $pkg_failed = untried; then
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335printf "%s\n" "no" >&6; }
12336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12337printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12338as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12339is in your PATH or set the PKG_CONFIG environment variable to the full
12340path to pkg-config.
12341
12342Alternatively, you may set the environment variables LIBDLM_CFLAGS
12343and LIBDLM_LIBS to avoid the need to call pkg-config.
12344See the pkg-config man page for more details.
12345
12346To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12347See 'config.log' for more details" "$LINENO" 5; }
12348else
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
12352printf "%s\n" "yes" >&6; }
12353 BUILD_LVMLOCKD="yes"
12354fi
12355
12356printf "%s\n" "#define LOCKDDLM_SUPPORT 1" >>confdefs.h
12357
12358 case "$LIBDLM_LIBS" in #(
12359 *lpthread*) :
12360
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&5
12362printf "%s\n" "replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&6; }
12363 LIBDLM_LIBS="${LIBDLM_LIBS%%ldlm*}ldlm_lt" ;; #(
12364 *) :
12365 ;;
12366esac
12367
12368fi
12369
12370################################################################################
12371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlmcontrol" >&5
12372printf %s "checking whether to build lvmlockddlmcontrol... " >&6; }
12373# Check whether --enable-lvmlockd-dlmcontrol was given.
12374if test ${enable_lvmlockd_dlmcontrol+y}
12375then :
12376 enableval=$enable_lvmlockd_dlmcontrol; BUILD_LOCKDDLM_CONTROL=$enableval
12377else case e in #(
12378 e) BUILD_LOCKDDLM_CONTROL="no" ;;
12379esac
12380fi
12381
12382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM_CONTROL" >&5
12383printf "%s\n" "$BUILD_LOCKDDLM_CONTROL" >&6; }
12384
12385if test "$BUILD_LOCKDDLM_CONTROL" = "yes"
12386then :
12387
12388
12389pkg_failed=no
12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlmcontrol >= 3.2" >&5
12391printf %s "checking for libdlmcontrol >= 3.2... " >&6; }
12392
12393if 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
12399 ac_status=$?
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
12404else
12405 pkg_failed=yes
12406fi
12407 else
12408 pkg_failed=untried
12409fi
12410if 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
12416 ac_status=$?
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
12421else
12422 pkg_failed=yes
12423fi
12424 else
12425 pkg_failed=untried
12426fi
12427
12428
12429
12430if test $pkg_failed = yes; then
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432printf "%s\n" "no" >&6; }
12433
12434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12435 _pkg_short_errors_supported=yes
12436else
12437 _pkg_short_errors_supported=no
12438fi
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`
12441 else
12442 LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1`
12443 fi
12444 # Put the nasty error message in config.log where it belongs
12445 echo "$LIBDLMCONTROL_PKG_ERRORS" >&5
12446
12447 as_fn_error $? "Package requirements (libdlmcontrol >= 3.2) were not met:
12448
12449$LIBDLMCONTROL_PKG_ERRORS
12450
12451Consider adjusting the PKG_CONFIG_PATH environment variable if you
12452installed software in a non-standard prefix.
12453
12454Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS
12455and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config.
12456See the pkg-config man page for more details." "$LINENO" 5
12457elif test $pkg_failed = untried; then
12458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459printf "%s\n" "no" >&6; }
12460 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12461printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12462as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12463is in your PATH or set the PKG_CONFIG environment variable to the full
12464path to pkg-config.
12465
12466Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS
12467and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config.
12468See the pkg-config man page for more details.
12469
12470To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12471See 'config.log' for more details" "$LINENO" 5; }
12472else
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
12476printf "%s\n" "yes" >&6; }
12477 BUILD_LVMLOCKD="yes"
12478fi
12479
12480printf "%s\n" "#define LOCKDDLM_CONTROL_SUPPORT 1" >>confdefs.h
12481
12482
12483fi
12484
12485################################################################################
12486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdidm" >&5
12487printf %s "checking whether to build lvmlockdidm... " >&6; }
12488# Check whether --enable-lvmlockd-idm was given.
12489if test ${enable_lvmlockd_idm+y}
12490then :
12491 enableval=$enable_lvmlockd_idm; BUILD_LOCKDIDM=$enableval
12492else case e in #(
12493 e) BUILD_LOCKDIDM="no" ;;
12494esac
12495fi
12496
12497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDIDM" >&5
12498printf "%s\n" "$BUILD_LOCKDIDM" >&6; }
12499
12500if test "$BUILD_LOCKDIDM" = "yes"
12501then :
12502
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
12506 ac_status=$?
12507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508 test $ac_status = 0; }; then
12509
12510
12511pkg_failed=no
12512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseagate_ilm >= 0.1.0" >&5
12513printf %s "checking for libseagate_ilm >= 0.1.0... " >&6; }
12514
12515if 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
12521 ac_status=$?
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
12526else
12527 pkg_failed=yes
12528fi
12529 else
12530 pkg_failed=untried
12531fi
12532if 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
12538 ac_status=$?
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
12543else
12544 pkg_failed=yes
12545fi
12546 else
12547 pkg_failed=untried
12548fi
12549
12550
12551
12552if test $pkg_failed = yes; then
12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554printf "%s\n" "no" >&6; }
12555
12556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12557 _pkg_short_errors_supported=yes
12558else
12559 _pkg_short_errors_supported=no
12560fi
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`
12563 else
12564 LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1`
12565 fi
12566 # Put the nasty error message in config.log where it belongs
12567 echo "$LIBSEAGATEILM_PKG_ERRORS" >&5
12568
12569 as_fn_error $? "Package requirements (libseagate_ilm >= 0.1.0) were not met:
12570
12571$LIBSEAGATEILM_PKG_ERRORS
12572
12573Consider adjusting the PKG_CONFIG_PATH environment variable if you
12574installed software in a non-standard prefix.
12575
12576Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS
12577and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config.
12578See the pkg-config man page for more details." "$LINENO" 5
12579elif test $pkg_failed = untried; then
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581printf "%s\n" "no" >&6; }
12582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12583printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12584as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12585is in your PATH or set the PKG_CONFIG environment variable to the full
12586path to pkg-config.
12587
12588Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS
12589and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config.
12590See the pkg-config man page for more details.
12591
12592To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12593See 'config.log' for more details" "$LINENO" 5; }
12594else
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
12598printf "%s\n" "yes" >&6; }
12599 BUILD_LVMLOCKD="yes"
12600fi
12601
12602printf "%s\n" "#define LOCKDIDM_SUPPORT 1" >>confdefs.h
12603
12604 if test -z "$LIBSEAGATEILM_LIBS"
12605then :
12606 LIBSEAGATEILM_LIBS="-lseagate_ilm"
12607fi
12608
12609else
12610 $bailout
12611fi
12612
12613fi
12614
12615################################################################################
12616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockd" >&5
12617printf %s "checking whether to build lvmlockd... " >&6; }
12618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMLOCKD" >&5
12619printf "%s\n" "$BUILD_LVMLOCKD" >&6; }
12620
12621DEFAULT_USE_LVMLOCKD=0
12622if test "$BUILD_LVMLOCKD" = "yes"
12623then :
12624
12625 if test "$LVMPOLLD" = "no"
12626then :
12627 as_fn_error $? "cannot build lvmlockd with --disable-lvmpolld." "$LINENO" 5
12628fi
12629 if test "$BUILD_LVMPOLLD" = "no"
12630then :
12631 BUILD_LVMPOLLD=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabling lvmpolld - required by lvmlockd." >&5
12632printf "%s\n" "$as_me: WARNING: Enabling lvmpolld - required by lvmlockd." >&2;}
12633fi
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmlockd" >&5
12635printf %s "checking defaults for use_lvmlockd... " >&6; }
12636 # Check whether --enable-use_lvmlockd was given.
12637if test ${enable_use_lvmlockd+y}
12638then :
12639 enableval=$enable_use_lvmlockd; use_lvmlockd=$enableval
12640else case e in #(
12641 e) use_lvmlockd="yes" ;;
12642esac
12643fi
12644
12645 if test "$use_lvmlockd" = "yes"
12646then :
12647 DEFAULT_USE_LVMLOCKD=1
12648fi
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMLOCKD" >&5
12650printf "%s\n" "$DEFAULT_USE_LVMLOCKD" >&6; }
12651
12652printf "%s\n" "#define LVMLOCKD_SUPPORT 1" >>confdefs.h
12653
12654
12655
12656# Check whether --with-lvmlockd-pidfile was given.
12657if test ${with_lvmlockd_pidfile+y}
12658then :
12659 withval=$with_lvmlockd_pidfile; LVMLOCKD_PIDFILE=$withval
12660else case e in #(
12661 e) LVMLOCKD_PIDFILE="$DEFAULT_PID_DIR/lvmlockd.pid" ;;
12662esac
12663fi
12664
12665
12666printf "%s\n" "#define LVMLOCKD_PIDFILE \"$LVMLOCKD_PIDFILE\"" >>confdefs.h
12667
12668
12669fi
12670
12671printf "%s\n" "#define DEFAULT_USE_LVMLOCKD $DEFAULT_USE_LVMLOCKD" >>confdefs.h
12672
12673
12674################################################################################
12675DEFAULT_USE_LVMPOLLD=0
12676if test "$BUILD_LVMPOLLD" = "yes"
12677then :
12678
12679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmpolld" >&5
12680printf %s "checking defaults for use_lvmpolld... " >&6; }
12681 # Check whether --enable-use_lvmpolld was given.
12682if test ${enable_use_lvmpolld+y}
12683then :
12684 enableval=$enable_use_lvmpolld; use_lvmpolld=$enableval
12685else case e in #(
12686 e) use_lvmpolld="yes" ;;
12687esac
12688fi
12689
12690 if test "$use_lvmpolld" = "yes"
12691then :
12692 DEFAULT_USE_LVMPOLLD=1
12693fi
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMPOLLD" >&5
12695printf "%s\n" "$DEFAULT_USE_LVMPOLLD" >&6; }
12696
12697printf "%s\n" "#define LVMPOLLD_SUPPORT 1" >>confdefs.h
12698
12699
12700
12701# Check whether --with-lvmpolld-pidfile was given.
12702if test ${with_lvmpolld_pidfile+y}
12703then :
12704 withval=$with_lvmpolld_pidfile; LVMPOLLD_PIDFILE=$withval
12705else case e in #(
12706 e) LVMPOLLD_PIDFILE="$DEFAULT_PID_DIR/lvmpolld.pid" ;;
12707esac
12708fi
12709
12710
12711printf "%s\n" "#define LVMPOLLD_PIDFILE \"$LVMPOLLD_PIDFILE\"" >>confdefs.h
12712
12713
12714fi
12715
12716printf "%s\n" "#define DEFAULT_USE_LVMPOLLD $DEFAULT_USE_LVMPOLLD" >>confdefs.h
12717
12718
12719
12720SYSTEMD_MIN_VERSION=0
12721NOTIFYDBUS_SUPPORT="no"
12722SYSTEMD_JOURNAL_SUPPORT="no"
12723APP_MACHINEID_SUPPORT="no"
12724if test "$with_systemd" = "yes"
12725then :
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
12729 ac_status=$?
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"
12733fi
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
12737 ac_status=$?
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"
12741fi
12742fi
12743
12744################################################################################
12745if test "$SYSTEMD_JOURNAL_SUPPORT" != "no"
12746then :
12747 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
12748if test "x$ac_cv_header_systemd_sd_journal_h" = xyes
12749then :
12750 SYSTEMD_JOURNAL_SUPPORT="yes"
12751else case e in #(
12752 e) SYSTEMD_JOURNAL_SUPPORT="no" ;;
12753esac
12754fi
12755
12756fi
12757# Check whether --enable-systemd-journal was given.
12758if test ${enable_systemd_journal+y}
12759then :
12760 enableval=$enable_systemd_journal; if test "$enableval" = "yes" && test "$SYSTEMD_JOURNAL_SUPPORT" = "no"
12761then :
12762 as_fn_error $? "--enable-systemd-journal requires systemd/sd-journal.h and systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5
12763fi
12764 SYSTEMD_JOURNAL_SUPPORT=$enableval
12765fi
12766
12767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to log to systemd journal" >&5
12768printf %s "checking whether to log to systemd journal... " >&6; }
12769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_JOURNAL_SUPPORT" >&5
12770printf "%s\n" "$SYSTEMD_JOURNAL_SUPPORT" >&6; }
12771
12772if test "$SYSTEMD_JOURNAL_SUPPORT" = "yes"
12773then :
12774
12775printf "%s\n" "#define SYSTEMD_JOURNAL_SUPPORT 1" >>confdefs.h
12776
12777fi
12778
12779################################################################################
12780if test "$APP_MACHINEID_SUPPORT" != "no"
12781then :
12782 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default"
12783if test "x$ac_cv_header_systemd_sd_id128_h" = xyes
12784then :
12785 APP_MACHINEID_SUPPORT="yes"
12786else case e in #(
12787 e) APP_MACHINEID_SUPPORT="no" ;;
12788esac
12789fi
12790
12791fi
12792# Check whether --enable-app-machineid was given.
12793if test ${enable_app_machineid+y}
12794then :
12795 enableval=$enable_app_machineid; if test "$enableval" = "yes" && test "$APP_MACHINEID_SUPPORT" = "no"
12796then :
12797 as_fn_error $? "--enable-app-machineid requires systemd/sd-id128.h and systemd >= 234. (--with-systemd=$with_systemd)" "$LINENO" 5
12798fi
12799 APP_MACHINEID_SUPPORT=$enableval
12800fi
12801
12802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support systemd appmachineid" >&5
12803printf %s "checking whether to support systemd appmachineid... " >&6; }
12804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5
12805printf "%s\n" "$APP_MACHINEID_SUPPORT" >&6; }
12806
12807if test "$APP_MACHINEID_SUPPORT" = "yes"
12808then :
12809
12810printf "%s\n" "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h
12811
12812fi
12813
12814################################################################################
12815
12816# Check whether --with-systemd-run was given.
12817if test ${with_systemd_run+y}
12818then :
12819 withval=$with_systemd_run; SYSTEMD_RUN_CMD=$withval
12820else case e in #(
12821 e) SYSTEMD_RUN_CMD="autodetect" ;;
12822esac
12823fi
12824
12825if test "$SYSTEMD_RUN_CMD" = "autodetect"
12826then :
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.
12829set dummy ${ac_tool_prefix}systemd-run; ac_word=$2
12830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831printf %s "checking for $ac_word... " >&6; }
12832if test ${ac_cv_path_SYSTEMD_RUN_CMD+y}
12833then :
12834 printf %s "(cached) " >&6
12835else case e in #(
12836 e) case $SYSTEMD_RUN_CMD in
12837 [\\/]* | ?:[\\/]*)
12838 ac_cv_path_SYSTEMD_RUN_CMD="$SYSTEMD_RUN_CMD" # Let the user override the test with a path.
12839 ;;
12840 *)
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 case $as_dir in #(((
12846 '') as_dir=./ ;;
12847 */) ;;
12848 *) as_dir=$as_dir/ ;;
12849 esac
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
12854 break 2
12855 fi
12856done
12857 done
12858IFS=$as_save_IFS
12859
12860 ;;
12861esac ;;
12862esac
12863fi
12864SYSTEMD_RUN_CMD=$ac_cv_path_SYSTEMD_RUN_CMD
12865if test -n "$SYSTEMD_RUN_CMD"; then
12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5
12867printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; }
12868else
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870printf "%s\n" "no" >&6; }
12871fi
12872
12873
12874fi
12875if 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.
12878set dummy systemd-run; ac_word=$2
12879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880printf %s "checking for $ac_word... " >&6; }
12881if test ${ac_cv_path_ac_pt_SYSTEMD_RUN_CMD+y}
12882then :
12883 printf %s "(cached) " >&6
12884else case e in #(
12885 e) case $ac_pt_SYSTEMD_RUN_CMD in
12886 [\\/]* | ?:[\\/]*)
12887 ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$ac_pt_SYSTEMD_RUN_CMD" # Let the user override the test with a path.
12888 ;;
12889 *)
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893 IFS=$as_save_IFS
12894 case $as_dir in #(((
12895 '') as_dir=./ ;;
12896 */) ;;
12897 *) as_dir=$as_dir/ ;;
12898 esac
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
12903 break 2
12904 fi
12905done
12906 done
12907IFS=$as_save_IFS
12908
12909 ;;
12910esac ;;
12911esac
12912fi
12913ac_pt_SYSTEMD_RUN_CMD=$ac_cv_path_ac_pt_SYSTEMD_RUN_CMD
12914if test -n "$ac_pt_SYSTEMD_RUN_CMD"; then
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SYSTEMD_RUN_CMD" >&5
12916printf "%s\n" "$ac_pt_SYSTEMD_RUN_CMD" >&6; }
12917else
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919printf "%s\n" "no" >&6; }
12920fi
12921
12922 if test "x$ac_pt_SYSTEMD_RUN_CMD" = x; then
12923 SYSTEMD_RUN_CMD=""
12924 else
12925 case $cross_compiling:$ac_tool_warned in
12926yes:)
12927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12929ac_tool_warned=yes ;;
12930esac
12931 SYSTEMD_RUN_CMD=$ac_pt_SYSTEMD_RUN_CMD
12932 fi
12933else
12934 SYSTEMD_RUN_CMD="$ac_cv_path_SYSTEMD_RUN_CMD"
12935fi
12936
12937fi
12938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for app running udev background service" >&5
12939printf %s "checking for app running udev background service... " >&6; }
12940if test -z "$SYSTEMD_RUN_CMD"
12941then :
12942 SYSTEMD_RUN_CMD="/usr/bin/systemd-run"
12943fi
12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5
12945printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; }
12946
12947################################################################################
12948
12949# TODO: possibly detect right version of blkid with BLKID_SUBLKS_FSINFO support
12950# so lvresize can check detected flag here
12951#
12952DEFAULT_USE_BLKID_WIPING=0
12953# Check whether --enable-blkid_wiping was given.
12954if test ${enable_blkid_wiping+y}
12955then :
12956 enableval=$enable_blkid_wiping; BLKID_WIPING=$enableval
12957else case e in #(
12958 e) if test "$with_blkid" = "yes"
12959then :
12960 BLKID_WIPING="maybe"
12961else case e in #(
12962 e) BLKID_WIPING="no" ;;
12963esac
12964fi ;;
12965esac
12966fi
12967
12968
12969if test "$BLKID_WIPING" != "no"
12970then :
12971
12972
12973pkg_failed=no
12974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.24" >&5
12975printf %s "checking for blkid >= 2.24... " >&6; }
12976
12977if 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
12983 ac_status=$?
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
12988else
12989 pkg_failed=yes
12990fi
12991 else
12992 pkg_failed=untried
12993fi
12994if 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
13000 ac_status=$?
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
13005else
13006 pkg_failed=yes
13007fi
13008 else
13009 pkg_failed=untried
13010fi
13011
13012
13013
13014if test $pkg_failed = yes; then
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016printf "%s\n" "no" >&6; }
13017
13018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13019 _pkg_short_errors_supported=yes
13020else
13021 _pkg_short_errors_supported=no
13022fi
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`
13025 else
13026 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
13027 fi
13028 # Put the nasty error message in config.log where it belongs
13029 echo "$BLKID_PKG_ERRORS" >&5
13030
13031 if test "$BLKID_WIPING" = "yes"
13032then :
13033 BLKID_WIPING="error"
13034else case e in #(
13035 e) BLKID_WIPING="no" ;;
13036esac
13037fi
13038elif test $pkg_failed = untried; then
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040printf "%s\n" "no" >&6; }
13041 if test "$BLKID_WIPING" = "yes"
13042then :
13043 BLKID_WIPING="error"
13044else case e in #(
13045 e) BLKID_WIPING="no" ;;
13046esac
13047fi
13048else
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
13052printf "%s\n" "yes" >&6; }
13053
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid.h defines BLKID_SUBLKS_FSINFO." >&5
13055printf %s "checking for blkid.h defines BLKID_SUBLKS_FSINFO.... " >&6; }
13056if test ${ac_cv_have_blkid_sublks_fsinfo+y}
13057then :
13058 printf %s "(cached) " >&6
13059else case e in #(
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
13065#endif
13066
13067int
13068main (void)
13069{
13070
13071 ;
13072 return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_compile "$LINENO"
13076then :
13077 ac_cv_have_blkid_sublks_fsinfo="yes"
13078else case e in #(
13079 e) ac_cv_have_blkid_sublks_fsinfo="no" ;;
13080esac
13081fi
13082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13083esac
13084fi
13085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkid_sublks_fsinfo" >&5
13086printf "%s\n" "$ac_cv_have_blkid_sublks_fsinfo" >&6; }
13087
13088 if test $ac_cv_have_blkid_sublks_fsinfo = yes
13089then :
13090
13091printf "%s\n" "#define HAVE_BLKID_SUBLKS_FSINFO 1" >>confdefs.h
13092
13093fi
13094
13095 if test "$with_blkid" = "no"
13096then :
13097 BLKID_WIPING="error"
13098else case e in #(
13099 e)
13100 BLKID_WIPING="yes"
13101 BLKID_PC="blkid"
13102 DEFAULT_USE_BLKID_WIPING=1
13103 # pkg_config --static does not really work ATM...
13104 BLKID_STATIC_LIBS=$("$PKG_CONFIG" --static --libs blkid)
13105
13106printf "%s\n" "#define BLKID_WIPING_SUPPORT 1" >>confdefs.h
13107
13108 ;;
13109esac
13110fi
13111
13112fi
13113
13114fi
13115
13116if test "$BLKID_WIPING" = "error"
13117then :
13118 as_fn_error $? "--enable-blkid_wiping requires blkid library >= 2.24. (--with-blkid=$with_blkid)" "$LINENO" 5
13119fi
13120
13121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libblkid detection of signatures when wiping" >&5
13122printf %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
13124printf "%s\n" "$BLKID_WIPING" >&6; }
13125
13126printf "%s\n" "#define DEFAULT_USE_BLKID_WIPING $DEFAULT_USE_BLKID_WIPING" >>confdefs.h
13127
13128
13129################################################################################
13130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronization with udev processing" >&5
13131printf %s "checking whether to enable synchronization with udev processing... " >&6; }
13132# Check whether --enable-udev_sync was given.
13133if test ${enable_udev_sync+y}
13134then :
13135 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
13136else case e in #(
13137 e) UDEV_SYNC="no" ;;
13138esac
13139fi
13140
13141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
13142printf "%s\n" "$UDEV_SYNC" >&6; }
13143if test "$UDEV_SYNC" = "yes" && test "$with_udev" = "no"
13144then :
13145 as_fn_error $? "--enable-udev_sync requires udev >= 143. (--with-udev=$with_udev)" "$LINENO" 5
13146fi
13147
13148if test "$UDEV_SYNC" = "yes"
13149then :
13150
13151
13152pkg_failed=no
13153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 143" >&5
13154printf %s "checking for libudev >= 143... " >&6; }
13155
13156if 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
13162 ac_status=$?
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
13167else
13168 pkg_failed=yes
13169fi
13170 else
13171 pkg_failed=untried
13172fi
13173if 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
13179 ac_status=$?
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
13184else
13185 pkg_failed=yes
13186fi
13187 else
13188 pkg_failed=untried
13189fi
13190
13191
13192
13193if test $pkg_failed = yes; then
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195printf "%s\n" "no" >&6; }
13196
13197if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13198 _pkg_short_errors_supported=yes
13199else
13200 _pkg_short_errors_supported=no
13201fi
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`
13204 else
13205 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
13206 fi
13207 # Put the nasty error message in config.log where it belongs
13208 echo "$UDEV_PKG_ERRORS" >&5
13209
13210 as_fn_error $? "Package requirements (libudev >= 143) were not met:
13211
13212$UDEV_PKG_ERRORS
13213
13214Consider adjusting the PKG_CONFIG_PATH environment variable if you
13215installed software in a non-standard prefix.
13216
13217Alternatively, you may set the environment variables UDEV_CFLAGS
13218and UDEV_LIBS to avoid the need to call pkg-config.
13219See the pkg-config man page for more details." "$LINENO" 5
13220elif test $pkg_failed = untried; then
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222printf "%s\n" "no" >&6; }
13223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13224printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13225as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13226is in your PATH or set the PKG_CONFIG environment variable to the full
13227path to pkg-config.
13228
13229Alternatively, you may set the environment variables UDEV_CFLAGS
13230and UDEV_LIBS to avoid the need to call pkg-config.
13231See the pkg-config man page for more details.
13232
13233To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13234See 'config.log' for more details" "$LINENO" 5; }
13235else
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
13239printf "%s\n" "yes" >&6; }
13240 UDEV_PC="libudev"
13241fi
13242 UDEV_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libudev)
13243
13244printf "%s\n" "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
13245
13246
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_device_get_is_initialized in -ludev" >&5
13248printf %s "checking for udev_device_get_is_initialized in -ludev... " >&6; }
13249if test ${ac_cv_lib_udev_udev_device_get_is_initialized+y}
13250then :
13251 printf %s "(cached) " >&6
13252else case e in #(
13253 e) ac_check_lib_save_LIBS=$LIBS
13254LIBS="-ludev $LIBS"
13255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h. */
13257
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). */
13264#ifdef __cplusplus
13265extern "C"
13266#endif
13267char udev_device_get_is_initialized (void);
13268int
13269main (void)
13270{
13271return udev_device_get_is_initialized ();
13272 ;
13273 return 0;
13274}
13275_ACEOF
13276if ac_fn_c_try_link "$LINENO"
13277then :
13278 ac_cv_lib_udev_udev_device_get_is_initialized=yes
13279else case e in #(
13280 e) ac_cv_lib_udev_udev_device_get_is_initialized=no ;;
13281esac
13282fi
13283rm -f core conftest.err conftest.$ac_objext conftest.beam \
13284 conftest$ac_exeext conftest.$ac_ext
13285LIBS=$ac_check_lib_save_LIBS ;;
13286esac
13287fi
13288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_get_is_initialized" >&5
13289printf "%s\n" "$ac_cv_lib_udev_udev_device_get_is_initialized" >&6; }
13290if test "x$ac_cv_lib_udev_udev_device_get_is_initialized" = xyes
13291then :
13292
13293printf "%s\n" "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
13294
13295fi
13296
13297 LIBS=$ac_check_lib_save_LIBS
13298
13299fi
13300
13301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronization" >&5
13302printf %s "checking whether to enable installation of udev rules required for synchronization... " >&6; }
13303# Check whether --enable-udev_rules was given.
13304if test ${enable_udev_rules+y}
13305then :
13306 enableval=$enable_udev_rules; UDEV_RULES=$enableval
13307else case e in #(
13308 e) UDEV_RULES=$UDEV_SYNC ;;
13309esac
13310fi
13311
13312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
13313printf "%s\n" "$UDEV_RULES" >&6; }
13314
13315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
13316printf %s "checking whether to enable executable path detection in udev rules... " >&6; }
13317# Check whether --enable-udev_rule_exec_detection was given.
13318if test ${enable_udev_rule_exec_detection+y}
13319then :
13320 enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval
13321else case e in #(
13322 e) UDEV_RULE_EXEC_DETECTION="no" ;;
13323esac
13324fi
13325
13326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
13327printf "%s\n" "$UDEV_RULE_EXEC_DETECTION" >&6; }
13328
13329if test "$UDEV_RULE" != "no"
13330then :
13331
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
13335 ac_status=$?
13336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; then
13338
13339 UDEV_HAS_BUILTIN_BLKID="yes"
13340
13341else
13342
13343 UDEV_HAS_BUILTIN_BLKID="no"
13344
13345fi
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
13347printf %s "checking whether udev supports built-in blkid... " >&6; }
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
13349printf "%s\n" "$UDEV_HAS_BUILTIN_BLKID" >&6; }
13350
13351fi
13352
13353################################################################################
13354# Check whether --enable-units-compat was given.
13355if test ${enable_units_compat+y}
13356then :
13357 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
13358else case e in #(
13359 e) UNITS_COMPAT="no" ;;
13360esac
13361fi
13362
13363
13364if test "$UNITS_COMPAT" = "yes"
13365then :
13366
13367
13368printf "%s\n" "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
13369
13370
13371fi
13372
13373################################################################################
13374# Check whether --enable-ioctl was given.
13375if test ${enable_ioctl+y}
13376then :
13377 enableval=$enable_ioctl; DM_IOCTLS=$enableval
13378fi
13379
13380if test "$DM_IOCTLS" = "yes"
13381then :
13382
13383printf "%s\n" "#define DM_IOCTLS 1" >>confdefs.h
13384
13385fi
13386
13387################################################################################
13388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
13389printf %s "checking whether to enable O_DIRECT... " >&6; }
13390# Check whether --enable-o_direct was given.
13391if test ${enable_o_direct+y}
13392then :
13393 enableval=$enable_o_direct; ODIRECT=$enableval
13394fi
13395
13396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
13397printf "%s\n" "$ODIRECT" >&6; }
13398
13399if test "$ODIRECT" = "yes"
13400then :
13401
13402
13403printf "%s\n" "#define O_DIRECT_SUPPORT 1" >>confdefs.h
13404
13405
13406fi
13407
13408################################################################################
13409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include Python D-Bus support" >&5
13410printf %s "checking whether to include Python D-Bus support... " >&6; }
13411# Check whether --enable-dbus-service was given.
13412if test ${enable_dbus_service+y}
13413then :
13414 enableval=$enable_dbus_service; BUILD_LVMDBUSD=$enableval
13415else case e in #(
13416 e) BUILD_LVMDBUSD="no" ;;
13417esac
13418fi
13419
13420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMDBUSD" >&5
13421printf "%s\n" "$BUILD_LVMDBUSD" >&6; }
13422
13423################################################################################
13424# Check whether --enable-notify-dbus was given.
13425if test ${enable_notify_dbus+y}
13426then :
13427 enableval=$enable_notify_dbus; NOTIFYDBUS_SUPPORT=$enableval
13428fi
13429
13430
13431if test "$NOTIFYDBUS_SUPPORT" = "maybe"
13432then :
13433 if test "$BUILD_LVMDBUSD" = "yes"
13434then :
13435 NOTIFYDBUS_SUPPORT="yes"
13436else case e in #(
13437 e) NOTIFYDBUS_SUPPORT="no" ;;
13438esac
13439fi
13440fi
13441
13442if test "$NOTIFYDBUS_SUPPORT" = "yes"
13443then :
13444 if test "$SYSTEMD_MIN_VERSION" -lt 221
13445then :
13446 as_fn_error $? "--enable-notify-dbus requires systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5
13447fi
13448
13449printf "%s\n" "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h
13450
13451fi
13452
13453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5
13454printf %s "checking whether to build notifydbus... " >&6; }
13455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5
13456printf "%s\n" "$NOTIFYDBUS_SUPPORT" >&6; }
13457
13458################################################################################
13459if test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes"
13460then :
13461
13462
13463pkg_failed=no
13464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
13465printf %s "checking for libsystemd... " >&6; }
13466
13467if 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
13473 ac_status=$?
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
13478else
13479 pkg_failed=yes
13480fi
13481 else
13482 pkg_failed=untried
13483fi
13484if 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
13490 ac_status=$?
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
13495else
13496 pkg_failed=yes
13497fi
13498 else
13499 pkg_failed=untried
13500fi
13501
13502
13503
13504if test $pkg_failed = yes; then
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506printf "%s\n" "no" >&6; }
13507
13508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13509 _pkg_short_errors_supported=yes
13510else
13511 _pkg_short_errors_supported=no
13512fi
13513 if test $_pkg_short_errors_supported = yes; then
13514 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
13515 else
13516 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
13517 fi
13518 # Put the nasty error message in config.log where it belongs
13519 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
13520
13521 as_fn_error $? "Package requirements (libsystemd) were not met:
13522
13523$LIBSYSTEMD_PKG_ERRORS
13524
13525Consider adjusting the PKG_CONFIG_PATH environment variable if you
13526installed software in a non-standard prefix.
13527
13528Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13529and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13530See the pkg-config man page for more details." "$LINENO" 5
13531elif test $pkg_failed = untried; then
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533printf "%s\n" "no" >&6; }
13534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13535printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13536as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13537is in your PATH or set the PKG_CONFIG environment variable to the full
13538path to pkg-config.
13539
13540Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13541and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13542See the pkg-config man page for more details.
13543
13544To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13545See 'config.log' for more details" "$LINENO" 5; }
13546else
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
13550printf "%s\n" "yes" >&6; }
13551
13552fi
13553
13554fi
13555
13556################################################################################
13557
13558if test "$BUILD_LVMDBUSD" = "yes"
13559then :
13560
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
13564
13565
13566
13567
13568
13569
13570
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
13574printf %s "checking whether $PYTHON version is >= 3... " >&6; }
13575 prog="import sys
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
13579minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13580minverhex = 0
13581# xrange is not present in Python 3.0 and range returns an iterator
13582for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13583sys.exit(sys.hexversion < minverhex)"
13584 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13585 ($PYTHON -c "$prog") >&5 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }
13589then :
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591printf "%s\n" "yes" >&6; }
13592else case e in #(
13593 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594printf "%s\n" "no" >&6; }
13595 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
13596esac
13597fi
13598 am_display_PYTHON=$PYTHON
13599 else
13600 # Otherwise, try each interpreter until we find one that satisfies
13601 # VERSION.
13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
13603printf %s "checking for a Python interpreter with version >= 3... " >&6; }
13604if test ${am_cv_pathless_PYTHON+y}
13605then :
13606 printf %s "(cached) " >&6
13607else case e in #(
13608 e)
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
13611 prog="import sys
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
13615minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13616minverhex = 0
13617# xrange is not present in Python 3.0 and range returns an iterator
13618for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13619sys.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
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }
13625then :
13626 break
13627fi
13628 done ;;
13629esac
13630fi
13631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13632printf "%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
13635 PYTHON=:
13636 else
13637 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13638set dummy $am_cv_pathless_PYTHON; ac_word=$2
13639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640printf %s "checking for $ac_word... " >&6; }
13641if test ${ac_cv_path_PYTHON+y}
13642then :
13643 printf %s "(cached) " >&6
13644else case e in #(
13645 e) case $PYTHON in
13646 [\\/]* | ?:[\\/]*)
13647 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13648 ;;
13649 *)
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $PATH
13652do
13653 IFS=$as_save_IFS
13654 case $as_dir in #(((
13655 '') as_dir=./ ;;
13656 */) ;;
13657 *) as_dir=$as_dir/ ;;
13658 esac
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
13663 break 2
13664 fi
13665done
13666 done
13667IFS=$as_save_IFS
13668
13669 ;;
13670esac ;;
13671esac
13672fi
13673PYTHON=$ac_cv_path_PYTHON
13674if test -n "$PYTHON"; then
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13676printf "%s\n" "$PYTHON" >&6; }
13677else
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679printf "%s\n" "no" >&6; }
13680fi
13681
13682
13683 fi
13684 am_display_PYTHON=$am_cv_pathless_PYTHON
13685 fi
13686
13687
13688 if test "$PYTHON" = :; then
13689 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13690 else
13691
13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13693printf %s "checking for $am_display_PYTHON version... " >&6; }
13694if test ${am_cv_python_version+y}
13695then :
13696 printf %s "(cached) " >&6
13697else case e in #(
13698 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
13699esac
13700fi
13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13702printf "%s\n" "$am_cv_python_version" >&6; }
13703 PYTHON_VERSION=$am_cv_python_version
13704
13705
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13707printf %s "checking for $am_display_PYTHON platform... " >&6; }
13708if test ${am_cv_python_platform+y}
13709then :
13710 printf %s "(cached) " >&6
13711else case e in #(
13712 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
13713esac
13714fi
13715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13716printf "%s\n" "$am_cv_python_platform" >&6; }
13717 PYTHON_PLATFORM=$am_cv_python_platform
13718
13719
13720 if test "x$prefix" = xNONE; then
13721 am__usable_prefix=$ac_default_prefix
13722 else
13723 am__usable_prefix=$prefix
13724 fi
13725
13726 # Allow user to request using sys.* values from Python,
13727 # instead of the GNU $prefix values.
13728
13729# Check whether --with-python-sys-prefix was given.
13730if test ${with_python_sys_prefix+y}
13731then :
13732 withval=$with_python_sys_prefix; am_use_python_sys=:
13733else case e in #(
13734 e) am_use_python_sys=false ;;
13735esac
13736fi
13737
13738
13739 # Allow user to override whatever the default Python prefix is.
13740
13741# Check whether --with-python_prefix was given.
13742if test ${with_python_prefix+y}
13743then :
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
13747printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
13749printf "%s\n" "$am_cv_python_prefix" >&6; }
13750else case e in #(
13751 e)
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
13755printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
13756if test ${am_cv_python_prefix+y}
13757then :
13758 printf %s "(cached) " >&6
13759else case e in #(
13760 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
13761esac
13762fi
13763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
13764printf "%s\n" "$am_cv_python_prefix" >&6; }
13765
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},"`
13770 ;;
13771 *)
13772 am_python_prefix_subst=$am_cv_python_prefix
13773 ;;
13774 esac
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
13779printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
13781printf "%s\n" "$am_python_prefix" >&6; }
13782 fi ;;
13783esac
13784fi
13785
13786 # Substituting python_prefix_subst value.
13787 PYTHON_PREFIX=$am_python_prefix_subst
13788
13789
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.
13792
13793# Check whether --with-python_exec_prefix was given.
13794if test ${with_python_exec_prefix+y}
13795then :
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
13799printf %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
13801printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
13802else case e in #(
13803 e)
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"
13807then :
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
13811printf %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
13813printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
13814else case e in #(
13815 e)
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
13820 else
13821 am__usable_exec_prefix=$exec_prefix
13822 fi
13823 #
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
13826printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
13827if test ${am_cv_python_exec_prefix+y}
13828then :
13829 printf %s "(cached) " >&6
13830else case e in #(
13831 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
13832esac
13833fi
13834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13835printf "%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},"`
13840 ;;
13841 *)
13842 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
13843 ;;
13844 esac
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
13849printf %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
13851printf "%s\n" "$am_python_exec_prefix" >&6; }
13852 fi ;;
13853esac
13854fi ;;
13855esac
13856fi
13857
13858 # Substituting python_exec_prefix_subst.
13859 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
13860
13861
13862 # Factor out some code duplication into this shell variable.
13863 am_python_setup_sysconfig="\
13864import sys
13865# Prefer sysconfig over distutils.sysconfig, for better compatibility
13866# with python 3.x. See automake bug#10227.
13867try:
13868 import sysconfig
13869except ImportError:
13870 can_use_sysconfig = 0
13871else:
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>
13875try:
13876 from platform import python_implementation
13877 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13878 can_use_sysconfig = 0
13879except ImportError:
13880 pass"
13881
13882
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
13884printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
13885if test ${am_cv_python_pythondir+y}
13886then :
13887 printf %s "(cached) " >&6
13888else case e in #(
13889 e) if test "x$am_cv_python_prefix" = x; then
13890 am_py_prefix=$am__usable_prefix
13891 else
13892 am_py_prefix=$am_cv_python_prefix
13893 fi
13894 am_cv_python_pythondir=`$PYTHON -c "
13895$am_python_setup_sysconfig
13896if can_use_sysconfig:
13897 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13898else:
13899 from distutils import sysconfig
13900 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13901sys.stdout.write(sitedir)"`
13902 #
13903 case $am_cv_python_pythondir in
13904 $am_py_prefix*)
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},"`
13907 ;;
13908 *)
13909 case $am_py_prefix in
13910 /usr|/System*) ;;
13911 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
13912 ;;
13913 esac
13914 ;;
13915 esac
13916 ;;
13917esac
13918fi
13919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13920printf "%s\n" "$am_cv_python_pythondir" >&6; }
13921 pythondir=$am_cv_python_pythondir
13922
13923
13924 pkgpythondir=\${pythondir}/$PACKAGE
13925
13926
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
13928printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
13929if test ${am_cv_python_pyexecdir+y}
13930then :
13931 printf %s "(cached) " >&6
13932else case e in #(
13933 e) if test "x$am_cv_python_exec_prefix" = x; then
13934 am_py_exec_prefix=$am__usable_exec_prefix
13935 else
13936 am_py_exec_prefix=$am_cv_python_exec_prefix
13937 fi
13938 am_cv_python_pyexecdir=`$PYTHON -c "
13939$am_python_setup_sysconfig
13940if can_use_sysconfig:
13941 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
13942else:
13943 from distutils import sysconfig
13944 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
13945sys.stdout.write(sitedir)"`
13946 #
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},"`
13951 ;;
13952 *)
13953 case $am_py_exec_prefix in
13954 /usr|/System*) ;;
13955 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
13956 ;;
13957 esac
13958 ;;
13959 esac
13960 ;;
13961esac
13962fi
13963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13964printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
13965 pyexecdir=$am_cv_python_pyexecdir
13966
13967
13968 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13969
13970
13971
13972 fi
13973
13974 PYTHON3=$PYTHON
13975 if test -z "$PYTHON3"
13976then :
13977
13978 as_fn_error $? "python3 is required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5
13979
13980fi
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.
13983set dummy ${ac_tool_prefix}python3-config; ac_word=$2
13984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13985printf %s "checking for $ac_word... " >&6; }
13986if test ${ac_cv_path_PYTHON3_CONFIG+y}
13987then :
13988 printf %s "(cached) " >&6
13989else case e in #(
13990 e) case $PYTHON3_CONFIG in
13991 [\\/]* | ?:[\\/]*)
13992 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
13993 ;;
13994 *)
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996for as_dir in $PATH
13997do
13998 IFS=$as_save_IFS
13999 case $as_dir in #(((
14000 '') as_dir=./ ;;
14001 */) ;;
14002 *) as_dir=$as_dir/ ;;
14003 esac
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
14008 break 2
14009 fi
14010done
14011 done
14012IFS=$as_save_IFS
14013
14014 ;;
14015esac ;;
14016esac
14017fi
14018PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
14019if test -n "$PYTHON3_CONFIG"; then
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
14021printf "%s\n" "$PYTHON3_CONFIG" >&6; }
14022else
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024printf "%s\n" "no" >&6; }
14025fi
14026
14027
14028fi
14029if 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.
14032set dummy python3-config; ac_word=$2
14033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034printf %s "checking for $ac_word... " >&6; }
14035if test ${ac_cv_path_ac_pt_PYTHON3_CONFIG+y}
14036then :
14037 printf %s "(cached) " >&6
14038else case e in #(
14039 e) case $ac_pt_PYTHON3_CONFIG in
14040 [\\/]* | ?:[\\/]*)
14041 ac_cv_path_ac_pt_PYTHON3_CONFIG="$ac_pt_PYTHON3_CONFIG" # Let the user override the test with a path.
14042 ;;
14043 *)
14044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045for as_dir in $PATH
14046do
14047 IFS=$as_save_IFS
14048 case $as_dir in #(((
14049 '') as_dir=./ ;;
14050 */) ;;
14051 *) as_dir=$as_dir/ ;;
14052 esac
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
14057 break 2
14058 fi
14059done
14060 done
14061IFS=$as_save_IFS
14062
14063 ;;
14064esac ;;
14065esac
14066fi
14067ac_pt_PYTHON3_CONFIG=$ac_cv_path_ac_pt_PYTHON3_CONFIG
14068if test -n "$ac_pt_PYTHON3_CONFIG"; then
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON3_CONFIG" >&5
14070printf "%s\n" "$ac_pt_PYTHON3_CONFIG" >&6; }
14071else
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073printf "%s\n" "no" >&6; }
14074fi
14075
14076 if test "x$ac_pt_PYTHON3_CONFIG" = x; then
14077 PYTHON3_CONFIG=""
14078 else
14079 case $cross_compiling:$ac_tool_warned in
14080yes:)
14081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14083ac_tool_warned=yes ;;
14084esac
14085 PYTHON3_CONFIG=$ac_pt_PYTHON3_CONFIG
14086 fi
14087else
14088 PYTHON3_CONFIG="$ac_cv_path_PYTHON3_CONFIG"
14089fi
14090
14091 if test -z "$PYTHON3_CONFIG"
14092then :
14093
14094 as_fn_error $? "python3 headers are required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5
14095
14096fi
14097 PYTHON3DIR=$pythondir
14098 if test "$PYTHON3_BINDINGS" = "yes"
14099then :
14100 PYTHON_BINDINGS="yes"
14101fi
14102
14103 # To get this macro, install autoconf-archive package then run autoreconf
14104
14105 if test -z $PYTHON;
14106 then
14107 if test -z "python3";
14108 then
14109 PYTHON="python3"
14110 else
14111 PYTHON="python3"
14112 fi
14113 fi
14114 PYTHON_NAME=`basename $PYTHON`
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyudev" >&5
14116printf %s "checking $PYTHON_NAME module: pyudev... " >&6; }
14117 $PYTHON -c "import pyudev" 2>/dev/null
14118 if test $? -eq 0;
14119 then
14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121printf "%s\n" "yes" >&6; }
14122 eval HAVE_PYMOD_PYUDEV=yes
14123 else
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125printf "%s\n" "no" >&6; }
14126 eval HAVE_PYMOD_PYUDEV=no
14127 #
14128 if test -n "Required"
14129 then
14130 as_fn_error $? "failed to find required module pyudev" "$LINENO" 5
14131 exit 1
14132 fi
14133 fi
14134
14135
14136 if test -z $PYTHON;
14137 then
14138 if test -z "python3";
14139 then
14140 PYTHON="python3"
14141 else
14142 PYTHON="python3"
14143 fi
14144 fi
14145 PYTHON_NAME=`basename $PYTHON`
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: dbus" >&5
14147printf %s "checking $PYTHON_NAME module: dbus... " >&6; }
14148 $PYTHON -c "import dbus" 2>/dev/null
14149 if test $? -eq 0;
14150 then
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14152printf "%s\n" "yes" >&6; }
14153 eval HAVE_PYMOD_DBUS=yes
14154 else
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156printf "%s\n" "no" >&6; }
14157 eval HAVE_PYMOD_DBUS=no
14158 #
14159 if test -n "Required"
14160 then
14161 as_fn_error $? "failed to find required module dbus" "$LINENO" 5
14162 exit 1
14163 fi
14164 fi
14165
14166
14167fi
14168
14169################################################################################
14170# Check whether --enable-pkgconfig was given.
14171if test ${enable_pkgconfig+y}
14172then :
14173 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14174else case e in #(
14175 e) PKGCONFIG="no" ;;
14176esac
14177fi
14178
14179
14180################################################################################
14181# Check whether --enable-write_install was given.
14182if test ${enable_write_install+y}
14183then :
14184 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14185else case e in #(
14186 e) WRITE_INSTALL="no" ;;
14187esac
14188fi
14189
14190
14191################################################################################
14192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
14193printf %s "checking whether to install fsadm... " >&6; }
14194# Check whether --enable-fsadm was given.
14195if test ${enable_fsadm+y}
14196then :
14197 enableval=$enable_fsadm; FSADM=$enableval
14198fi
14199
14200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
14201printf "%s\n" "$FSADM" >&6; }
14202
14203
14204################################################################################
14205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5
14206printf %s "checking whether to install lvm_import_vdo... " >&6; }
14207# Check whether --enable-lvmimportvdo was given.
14208if test ${enable_lvmimportvdo+y}
14209then :
14210 enableval=$enable_lvmimportvdo; LVMIMPORTVDO=$enableval
14211fi
14212
14213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LVMIMPORTVDO" >&5
14214printf "%s\n" "$LVMIMPORTVDO" >&6; }
14215
14216################################################################################
14217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5
14218printf %s "checking whether to install blkdeactivate... " >&6; }
14219# Check whether --enable-blkdeactivate was given.
14220if test ${enable_blkdeactivate+y}
14221then :
14222 enableval=$enable_blkdeactivate; BLKDEACTIVATE=$enableval
14223fi
14224
14225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKDEACTIVATE" >&5
14226printf "%s\n" "$BLKDEACTIVATE" >&6; }
14227
14228################################################################################
14229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
14230printf %s "checking whether to use dmeventd... " >&6; }
14231# Check whether --enable-dmeventd was given.
14232if test ${enable_dmeventd+y}
14233then :
14234 enableval=$enable_dmeventd; BUILD_DMEVENTD=$enableval
14235else case e in #(
14236 e) BUILD_DMEVENTD="no" ;;
14237esac
14238fi
14239
14240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMEVENTD" >&5
14241printf "%s\n" "$BUILD_DMEVENTD" >&6; }
14242
14243if test "$BUILD_DMEVENTD" = "yes"
14244then :
14245
14246 if test "$MIRRORS" != "internal"
14247then :
14248 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal" "$LINENO" 5
14249fi
14250
14251printf "%s\n" "#define DMEVENTD 1" >>confdefs.h
14252
14253fi
14254
14255################################################################################
14256# Check whether --enable-cmdlib was given.
14257if test ${enable_cmdlib+y}
14258then :
14259 enableval=$enable_cmdlib; CMDLIB=$enableval
14260else case e in #(
14261 e) CMDLIB="maybe" ;;
14262esac
14263fi
14264
14265
14266if test "$BUILD_DMEVENTD" = "yes"
14267then :
14268 if test "$CMDLIB" = "no"
14269then :
14270 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well" "$LINENO" 5
14271else case e in #(
14272 e) CMDLIB="yes" ;;
14273esac
14274fi
14275fi
14276
14277if test "$CMDLIB" != "yes"
14278then :
14279 CMDLIB="no" LVM2CMD_LIB=
14280else case e in #(
14281 e) LVM2CMD_LIB="-llvm2cmd" ;;
14282esac
14283fi
14284
14285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
14286printf %s "checking whether to compile liblvm2cmd.so... " >&6; }
14287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
14288printf "%s\n" "$CMDLIB" >&6; }
14289
14290if test "$CMDLIB" == "yes" && test "$SHARED_LINK" = "no"
14291then :
14292 as_fn_error $? "--enable-cmdlib requires dynamic linking." "$LINENO" 5
14293fi
14294
14295
14296################################################################################
14297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build dmfilemapd" >&5
14298printf %s "checking whether to build dmfilemapd... " >&6; }
14299# Check whether --enable-dmfilemapd was given.
14300if test ${enable_dmfilemapd+y}
14301then :
14302 enableval=$enable_dmfilemapd; BUILD_DMFILEMAPD=$enableval
14303else case e in #(
14304 e) BUILD_DMFILEMAPD="no" ;;
14305esac
14306fi
14307
14308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMFILEMAPD" >&5
14309printf "%s\n" "$BUILD_DMFILEMAPD" >&6; }
14310
14311if test "$BUILD_DMFILEMAPD" = "yes"
14312then :
14313 ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
14314if test "x$ac_cv_header_linux_fiemap_h" = xyes
14315then :
14316
14317else case e in #(
14318 e) as_fn_error $? "--enable-dmfilemapd requires fiemap.h" "$LINENO" 5 ;;
14319esac
14320fi
14321
14322
14323printf "%s\n" "#define DMFILEMAPD 1" >>confdefs.h
14324
14325fi
14326
14327################################################################################
14328
14329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
14330printf %s "checking for getline in -lc... " >&6; }
14331if test ${ac_cv_lib_c_getline+y}
14332then :
14333 printf %s "(cached) " >&6
14334else case e in #(
14335 e) ac_check_lib_save_LIBS=$LIBS
14336LIBS="-lc $LIBS"
14337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338/* end confdefs.h. */
14339
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). */
14346#ifdef __cplusplus
14347extern "C"
14348#endif
14349char getline (void);
14350int
14351main (void)
14352{
14353return getline ();
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_link "$LINENO"
14359then :
14360 ac_cv_lib_c_getline=yes
14361else case e in #(
14362 e) ac_cv_lib_c_getline=no ;;
14363esac
14364fi
14365rm -f core conftest.err conftest.$ac_objext conftest.beam \
14366 conftest$ac_exeext conftest.$ac_ext
14367LIBS=$ac_check_lib_save_LIBS ;;
14368esac
14369fi
14370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
14371printf "%s\n" "$ac_cv_lib_c_getline" >&6; }
14372if test "x$ac_cv_lib_c_getline" = xyes
14373then :
14374
14375printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
14376
14377fi
14378
14379
14380################################################################################
14381
14382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
14383printf %s "checking for canonicalize_file_name in -lc... " >&6; }
14384if test ${ac_cv_lib_c_canonicalize_file_name+y}
14385then :
14386 printf %s "(cached) " >&6
14387else case e in #(
14388 e) ac_check_lib_save_LIBS=$LIBS
14389LIBS="-lc $LIBS"
14390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391/* end confdefs.h. */
14392
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). */
14399#ifdef __cplusplus
14400extern "C"
14401#endif
14402char canonicalize_file_name (void);
14403int
14404main (void)
14405{
14406return canonicalize_file_name ();
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411if ac_fn_c_try_link "$LINENO"
14412then :
14413 ac_cv_lib_c_canonicalize_file_name=yes
14414else case e in #(
14415 e) ac_cv_lib_c_canonicalize_file_name=no ;;
14416esac
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.beam \
14419 conftest$ac_exeext conftest.$ac_ext
14420LIBS=$ac_check_lib_save_LIBS ;;
14421esac
14422fi
14423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14424printf "%s\n" "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14425if test "x$ac_cv_lib_c_canonicalize_file_name" = xyes
14426then :
14427
14428printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14429
14430fi
14431
14432
14433################################################################################
14434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14435printf %s "checking for dlopen in -ldl... " >&6; }
14436if test ${ac_cv_lib_dl_dlopen+y}
14437then :
14438 printf %s "(cached) " >&6
14439else case e in #(
14440 e) ac_check_lib_save_LIBS=$LIBS
14441LIBS="-ldl $LIBS"
14442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h. */
14444
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). */
14451#ifdef __cplusplus
14452extern "C"
14453#endif
14454char dlopen (void);
14455int
14456main (void)
14457{
14458return dlopen ();
14459 ;
14460 return 0;
14461}
14462_ACEOF
14463if ac_fn_c_try_link "$LINENO"
14464then :
14465 ac_cv_lib_dl_dlopen=yes
14466else case e in #(
14467 e) ac_cv_lib_dl_dlopen=no ;;
14468esac
14469fi
14470rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471 conftest$ac_exeext conftest.$ac_ext
14472LIBS=$ac_check_lib_save_LIBS ;;
14473esac
14474fi
14475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14476printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14477if test "x$ac_cv_lib_dl_dlopen" = xyes
14478then :
14479
14480printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
14481
14482 DL_LIBS="-ldl"
14483 HAVE_LIBDL="yes"
14484else case e in #(
14485 e) DL_LIBS=
14486 HAVE_LIBDL="no" ;;
14487esac
14488fi
14489
14490
14491################################################################################
14492if ( test "$LVM1" = "shared" || test "$POOL" = "shared" ) && test "$STATIC_LINK" = "yes"
14493then :
14494
14495 as_fn_error $? "Features cannot be 'shared' when building statically" "$LINENO" 5
14496
14497fi
14498
14499################################################################################
14500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
14501printf %s "checking for log10 in -lm... " >&6; }
14502if test ${ac_cv_lib_m_log10+y}
14503then :
14504 printf %s "(cached) " >&6
14505else case e in #(
14506 e) ac_check_lib_save_LIBS=$LIBS
14507LIBS="-lm $LIBS"
14508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h. */
14510
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). */
14517#ifdef __cplusplus
14518extern "C"
14519#endif
14520char log10 (void);
14521int
14522main (void)
14523{
14524return log10 ();
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529if ac_fn_c_try_link "$LINENO"
14530then :
14531 ac_cv_lib_m_log10=yes
14532else case e in #(
14533 e) ac_cv_lib_m_log10=no ;;
14534esac
14535fi
14536rm -f core conftest.err conftest.$ac_objext conftest.beam \
14537 conftest$ac_exeext conftest.$ac_ext
14538LIBS=$ac_check_lib_save_LIBS ;;
14539esac
14540fi
14541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
14542printf "%s\n" "$ac_cv_lib_m_log10" >&6; }
14543if test "x$ac_cv_lib_m_log10" = xyes
14544then :
14545 M_LIBS="-lm"
14546else case e in #(
14547 e) hard_bailout ;;
14548esac
14549fi
14550
14551
14552################################################################################
14553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
14554printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; }
14555if test ${ac_cv_lib_pthread_pthread_mutex_lock+y}
14556then :
14557 printf %s "(cached) " >&6
14558else case e in #(
14559 e) ac_check_lib_save_LIBS=$LIBS
14560LIBS="-lpthread $LIBS"
14561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h. */
14563
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). */
14570#ifdef __cplusplus
14571extern "C"
14572#endif
14573char pthread_mutex_lock (void);
14574int
14575main (void)
14576{
14577return pthread_mutex_lock ();
14578 ;
14579 return 0;
14580}
14581_ACEOF
14582if ac_fn_c_try_link "$LINENO"
14583then :
14584 ac_cv_lib_pthread_pthread_mutex_lock=yes
14585else case e in #(
14586 e) ac_cv_lib_pthread_pthread_mutex_lock=no ;;
14587esac
14588fi
14589rm -f core conftest.err conftest.$ac_objext conftest.beam \
14590 conftest$ac_exeext conftest.$ac_ext
14591LIBS=$ac_check_lib_save_LIBS ;;
14592esac
14593fi
14594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
14595printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
14596if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes
14597then :
14598 PTHREAD_LIBS="-lpthread"
14599else case e in #(
14600 e) hard_bailout ;;
14601esac
14602fi
14603
14604
14605################################################################################
14606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
14607printf %s "checking whether to enable selinux support... " >&6; }
14608# Check whether --enable-selinux was given.
14609if test ${enable_selinux+y}
14610then :
14611 enableval=$enable_selinux; SELINUX=$enableval
14612fi
14613
14614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
14615printf "%s\n" "$SELINUX" >&6; }
14616
14617################################################################################
14618if test "$SELINUX" = "yes"
14619then :
14620
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
14622printf %s "checking for sepol_check_context in -lsepol... " >&6; }
14623if test ${ac_cv_lib_sepol_sepol_check_context+y}
14624then :
14625 printf %s "(cached) " >&6
14626else case e in #(
14627 e) ac_check_lib_save_LIBS=$LIBS
14628LIBS="-lsepol $LIBS"
14629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630/* end confdefs.h. */
14631
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). */
14638#ifdef __cplusplus
14639extern "C"
14640#endif
14641char sepol_check_context (void);
14642int
14643main (void)
14644{
14645return sepol_check_context ();
14646 ;
14647 return 0;
14648}
14649_ACEOF
14650if ac_fn_c_try_link "$LINENO"
14651then :
14652 ac_cv_lib_sepol_sepol_check_context=yes
14653else case e in #(
14654 e) ac_cv_lib_sepol_sepol_check_context=no ;;
14655esac
14656fi
14657rm -f core conftest.err conftest.$ac_objext conftest.beam \
14658 conftest$ac_exeext conftest.$ac_ext
14659LIBS=$ac_check_lib_save_LIBS ;;
14660esac
14661fi
14662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
14663printf "%s\n" "$ac_cv_lib_sepol_sepol_check_context" >&6; }
14664if test "x$ac_cv_lib_sepol_sepol_check_context" = xyes
14665then :
14666
14667
14668printf "%s\n" "#define HAVE_SEPOL 1" >>confdefs.h
14669
14670 SEPOL_LIBS="-lsepol"
14671fi
14672
14673
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
14677 ac_status=$?
14678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; then
14680
14681pkg_failed=no
14682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libselinux" >&5
14683printf %s "checking for libselinux... " >&6; }
14684
14685if 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
14691 ac_status=$?
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
14696else
14697 pkg_failed=yes
14698fi
14699 else
14700 pkg_failed=untried
14701fi
14702if 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
14708 ac_status=$?
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
14713else
14714 pkg_failed=yes
14715fi
14716 else
14717 pkg_failed=untried
14718fi
14719
14720
14721
14722if test $pkg_failed = yes; then
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724printf "%s\n" "no" >&6; }
14725
14726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14727 _pkg_short_errors_supported=yes
14728else
14729 _pkg_short_errors_supported=no
14730fi
14731 if test $_pkg_short_errors_supported = yes; then
14732 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
14733 else
14734 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
14735 fi
14736 # Put the nasty error message in config.log where it belongs
14737 echo "$SELINUX_PKG_ERRORS" >&5
14738
14739 as_fn_error $? "Package requirements (libselinux) were not met:
14740
14741$SELINUX_PKG_ERRORS
14742
14743Consider adjusting the PKG_CONFIG_PATH environment variable if you
14744installed software in a non-standard prefix.
14745
14746Alternatively, you may set the environment variables SELINUX_CFLAGS
14747and SELINUX_LIBS to avoid the need to call pkg-config.
14748See the pkg-config man page for more details." "$LINENO" 5
14749elif test $pkg_failed = untried; then
14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14751printf "%s\n" "no" >&6; }
14752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14753printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14754as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14755is in your PATH or set the PKG_CONFIG environment variable to the full
14756path to pkg-config.
14757
14758Alternatively, you may set the environment variables SELINUX_CFLAGS
14759and SELINUX_LIBS to avoid the need to call pkg-config.
14760See the pkg-config man page for more details.
14761
14762To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14763See 'config.log' for more details" "$LINENO" 5; }
14764else
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
14768printf "%s\n" "yes" >&6; }
14769 SELINUX_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libselinux)
14770fi
14771fi
14772
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
14774printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
14775if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
14776then :
14777 printf %s "(cached) " >&6
14778else case e in #(
14779 e) ac_check_lib_save_LIBS=$LIBS
14780LIBS="-lselinux $LIBS"
14781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782/* end confdefs.h. */
14783
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). */
14790#ifdef __cplusplus
14791extern "C"
14792#endif
14793char is_selinux_enabled (void);
14794int
14795main (void)
14796{
14797return is_selinux_enabled ();
14798 ;
14799 return 0;
14800}
14801_ACEOF
14802if ac_fn_c_try_link "$LINENO"
14803then :
14804 ac_cv_lib_selinux_is_selinux_enabled=yes
14805else case e in #(
14806 e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
14807esac
14808fi
14809rm -f core conftest.err conftest.$ac_objext conftest.beam \
14810 conftest$ac_exeext conftest.$ac_ext
14811LIBS=$ac_check_lib_save_LIBS ;;
14812esac
14813fi
14814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
14815printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
14816if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
14817then :
14818
14819 for ac_header in selinux/selinux.h
14820do :
14821 ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14822if test "x$ac_cv_header_selinux_selinux_h" = xyes
14823then :
14824 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h
14825
14826else case e in #(
14827 e) hard_bailout ;;
14828esac
14829fi
14830
14831done
14832 ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
14833if test "x$ac_cv_header_selinux_label_h" = xyes
14834then :
14835 printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h
14836
14837fi
14838
14839
14840printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
14841
14842 SELINUX_LIBS=${SELINUX_LIBS:--lselinux}
14843 SELINUX_STATIC_LIBS=${SELINUX_STATIC_LIBS:-$SELINUX_LIBS $SEPOL_LIBS}
14844 SELINUX_PC="libselinux"
14845 HAVE_SELINUX=yes
14846else case e in #(
14847 e)
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
14849printf "%s\n" "$as_me: WARNING: Disabling selinux" >&2;}
14850 SELINUX_LIBS=
14851 SELINUX_STATIC_LIBS=
14852 SELINUX_PC=
14853 HAVE_SELINUX=no ;;
14854esac
14855fi
14856
14857
14858fi
14859
14860################################################################################
14861
14862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BLKZEROOUT in sys/ioctl.h." >&5
14863printf %s "checking for BLKZEROOUT in sys/ioctl.h.... " >&6; }
14864if test ${ac_cv_have_blkzeroout+y}
14865then :
14866 printf %s "(cached) " >&6
14867else case e in #(
14868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869/* end confdefs.h. */
14870#include <sys/ioctl.h>
14871#include <linux/fs.h>
14872int bar(void) { return ioctl(0, BLKZEROOUT, 0); }
14873
14874int
14875main (void)
14876{
14877
14878 ;
14879 return 0;
14880}
14881_ACEOF
14882if ac_fn_c_try_compile "$LINENO"
14883then :
14884 ac_cv_have_blkzeroout="yes"
14885else case e in #(
14886 e) ac_cv_have_blkzeroout="no" ;;
14887esac
14888fi
14889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14890esac
14891fi
14892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkzeroout" >&5
14893printf "%s\n" "$ac_cv_have_blkzeroout" >&6; }
14894
14895
14896# Check whether --enable-blkzeroout was given.
14897if test ${enable_blkzeroout+y}
14898then :
14899 enableval=$enable_blkzeroout; BLKZEROOUT=$enableval
14900else case e in #(
14901 e) BLKZEROOUT="yes" ;;
14902esac
14903fi
14904
14905
14906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use BLKZEROOUT for device zeroing" >&5
14907printf %s "checking whether to use BLKZEROOUT for device zeroing... " >&6; }
14908if test "$BLKZEROOUT" = "yes"
14909then :
14910
14911 if test $ac_cv_have_blkzeroout = yes
14912then :
14913
14914printf "%s\n" "#define HAVE_BLKZEROOUT 1" >>confdefs.h
14915
14916else case e in #(
14917 e) BLKZEROOUT="no" ;;
14918esac
14919fi
14920
14921fi
14922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKZEROOUT" >&5
14923printf "%s\n" "$BLKZEROOUT" >&6; }
14924
14925
14926################################################################################
14927RT_LIBS=
14928HAVE_REALTIME=no
14929if test "$REALTIME" = "yes"
14930then :
14931
14932
14933 for ac_func in clock_gettime
14934do :
14935 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14936if test "x$ac_cv_func_clock_gettime" = xyes
14937then :
14938 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14939 HAVE_REALTIME=yes
14940fi
14941
14942done
14943
14944 if test "$HAVE_REALTIME" != "yes"
14945then :
14946 # try again with -lrt
14947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14948printf %s "checking for clock_gettime in -lrt... " >&6; }
14949if test ${ac_cv_lib_rt_clock_gettime+y}
14950then :
14951 printf %s "(cached) " >&6
14952else case e in #(
14953 e) ac_check_lib_save_LIBS=$LIBS
14954LIBS="-lrt $LIBS"
14955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956/* end confdefs.h. */
14957
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). */
14964#ifdef __cplusplus
14965extern "C"
14966#endif
14967char clock_gettime (void);
14968int
14969main (void)
14970{
14971return clock_gettime ();
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976if ac_fn_c_try_link "$LINENO"
14977then :
14978 ac_cv_lib_rt_clock_gettime=yes
14979else case e in #(
14980 e) ac_cv_lib_rt_clock_gettime=no ;;
14981esac
14982fi
14983rm -f core conftest.err conftest.$ac_objext conftest.beam \
14984 conftest$ac_exeext conftest.$ac_ext
14985LIBS=$ac_check_lib_save_LIBS ;;
14986esac
14987fi
14988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14989printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
14990if test "x$ac_cv_lib_rt_clock_gettime" = xyes
14991then :
14992 RT_LIBS="-lrt"; HAVE_REALTIME=yes
14993fi
14994
14995fi
14996
14997 if test "$HAVE_REALTIME" = "yes"
14998then :
14999
15000
15001printf "%s\n" "#define HAVE_REALTIME 1" >>confdefs.h
15002
15003
15004else case e in #(
15005 e)
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
15007printf "%s\n" "$as_me: WARNING: Disabling realtime clock" >&2;}
15008 ;;
15009esac
15010fi
15011
15012fi
15013
15014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5
15015printf %s "checking for struct stat has st_ctim.... " >&6; }
15016if test ${ac_cv_stat_st_ctim+y}
15017then :
15018 printf %s "(cached) " >&6
15019else case e in #(
15020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022#include <sys/stat.h>
15023long bar(void) { struct stat s; return (long)(s.st_ctim.tv_sec + s.st_ctim.tv_nsec);}
15024
15025int
15026main (void)
15027{
15028
15029 ;
15030 return 0;
15031}
15032_ACEOF
15033if ac_fn_c_try_compile "$LINENO"
15034then :
15035 ac_cv_stat_st_ctim=yes
15036else case e in #(
15037 e) ac_cv_stat_st_ctim=no ;;
15038esac
15039fi
15040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15041esac
15042fi
15043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_st_ctim" >&5
15044printf "%s\n" "$ac_cv_stat_st_ctim" >&6; }
15045
15046if test $ac_cv_stat_st_ctim = yes
15047then :
15048
15049printf "%s\n" "#define HAVE_STAT_ST_CTIM 1" >>confdefs.h
15050
15051fi
15052
15053################################################################################
15054 for ac_header in getopt.h
15055do :
15056 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15057if test "x$ac_cv_header_getopt_h" = xyes
15058then :
15059 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
15060
15061printf "%s\n" "#define HAVE_GETOPTLONG 1" >>confdefs.h
15062
15063fi
15064
15065done
15066
15067################################################################################
15068if test "$EDITLINE" = "yes"
15069then :
15070
15071
15072pkg_failed=no
15073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
15074printf %s "checking for libedit... " >&6; }
15075
15076if 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
15082 ac_status=$?
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
15087else
15088 pkg_failed=yes
15089fi
15090 else
15091 pkg_failed=untried
15092fi
15093if 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
15099 ac_status=$?
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
15104else
15105 pkg_failed=yes
15106fi
15107 else
15108 pkg_failed=untried
15109fi
15110
15111
15112
15113if test $pkg_failed = yes; then
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115printf "%s\n" "no" >&6; }
15116
15117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15118 _pkg_short_errors_supported=yes
15119else
15120 _pkg_short_errors_supported=no
15121fi
15122 if test $_pkg_short_errors_supported = yes; then
15123 EDITLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
15124 else
15125 EDITLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
15126 fi
15127 # Put the nasty error message in config.log where it belongs
15128 echo "$EDITLINE_PKG_ERRORS" >&5
15129
15130 as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5
15131
15132elif test $pkg_failed = untried; then
15133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134printf "%s\n" "no" >&6; }
15135 as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5
15136
15137else
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
15141printf "%s\n" "yes" >&6; }
15142
15143
15144printf "%s\n" "#define EDITLINE_SUPPORT 1" >>confdefs.h
15145
15146fi
15147
15148fi
15149
15150################################################################################
15151if test "$READLINE" != "no"
15152then :
15153
15154 lvm_saved_libs=$LIBS
15155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
15156printf %s "checking for library containing tgetent... " >&6; }
15157if test ${ac_cv_search_tgetent+y}
15158then :
15159 printf %s "(cached) " >&6
15160else case e in #(
15161 e) ac_func_search_save_LIBS=$LIBS
15162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163/* end confdefs.h. */
15164
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). */
15171#ifdef __cplusplus
15172extern "C"
15173#endif
15174char tgetent (void);
15175int
15176main (void)
15177{
15178return tgetent ();
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183for ac_lib in '' tinfo ncurses curses termcap termlib
15184do
15185 if test -z "$ac_lib"; then
15186 ac_res="none required"
15187 else
15188 ac_res=-l$ac_lib
15189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15190 fi
15191 if ac_fn_c_try_link "$LINENO"
15192then :
15193 ac_cv_search_tgetent=$ac_res
15194fi
15195rm -f core conftest.err conftest.$ac_objext conftest.beam \
15196 conftest$ac_exeext
15197 if test ${ac_cv_search_tgetent+y}
15198then :
15199 break
15200fi
15201done
15202if test ${ac_cv_search_tgetent+y}
15203then :
15204
15205else case e in #(
15206 e) ac_cv_search_tgetent=no ;;
15207esac
15208fi
15209rm conftest.$ac_ext
15210LIBS=$ac_func_search_save_LIBS ;;
15211esac
15212fi
15213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
15214printf "%s\n" "$ac_cv_search_tgetent" >&6; }
15215ac_res=$ac_cv_search_tgetent
15216if test "$ac_res" != no
15217then :
15218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15219 READLINE_LIBS=$ac_cv_search_tgetent
15220else case e in #(
15221 e)
15222 if test "$READLINE" = "yes"
15223then :
15224
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
15227support with --disable-readline or download and install termcap from:
15228 ftp.gnu.org/gnu/termcap
15229Note: 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).
15231Note: (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
15233
15234fi
15235 ;;
15236esac
15237fi
15238
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15240printf %s "checking for readline in -lreadline... " >&6; }
15241if test ${ac_cv_lib_readline_readline+y}
15242then :
15243 printf %s "(cached) " >&6
15244else case e in #(
15245 e) ac_check_lib_save_LIBS=$LIBS
15246LIBS="-lreadline $LIBS"
15247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h. */
15249
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). */
15256#ifdef __cplusplus
15257extern "C"
15258#endif
15259char readline (void);
15260int
15261main (void)
15262{
15263return readline ();
15264 ;
15265 return 0;
15266}
15267_ACEOF
15268if ac_fn_c_try_link "$LINENO"
15269then :
15270 ac_cv_lib_readline_readline=yes
15271else case e in #(
15272 e) ac_cv_lib_readline_readline=no ;;
15273esac
15274fi
15275rm -f core conftest.err conftest.$ac_objext conftest.beam \
15276 conftest$ac_exeext conftest.$ac_ext
15277LIBS=$ac_check_lib_save_LIBS ;;
15278esac
15279fi
15280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15281printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15282if test "x$ac_cv_lib_readline_readline" = xyes
15283then :
15284
15285
15286printf "%s\n" "#define READLINE_SUPPORT 1" >>confdefs.h
15287
15288 READLINE="yes"
15289 LIBS=$lvm_saved_libs
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
15291printf %s "checking for rl_line_buffer in -lreadline... " >&6; }
15292if test ${ac_cv_lib_readline_rl_line_buffer+y}
15293then :
15294 printf %s "(cached) " >&6
15295else case e in #(
15296 e) ac_check_lib_save_LIBS=$LIBS
15297LIBS="-lreadline $LIBS"
15298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299/* end confdefs.h. */
15300
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). */
15307#ifdef __cplusplus
15308extern "C"
15309#endif
15310char rl_line_buffer (void);
15311int
15312main (void)
15313{
15314return rl_line_buffer ();
15315 ;
15316 return 0;
15317}
15318_ACEOF
15319if ac_fn_c_try_link "$LINENO"
15320then :
15321 ac_cv_lib_readline_rl_line_buffer=yes
15322else case e in #(
15323 e) ac_cv_lib_readline_rl_line_buffer=no ;;
15324esac
15325fi
15326rm -f core conftest.err conftest.$ac_objext conftest.beam \
15327 conftest$ac_exeext conftest.$ac_ext
15328LIBS=$ac_check_lib_save_LIBS ;;
15329esac
15330fi
15331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15332printf "%s\n" "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15333if test "x$ac_cv_lib_readline_rl_line_buffer" = xyes
15334then :
15335 READLINE_LIBS="-lreadline"
15336else case e in #(
15337 e)
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
15339printf "%s\n" "linking -lreadline with $READLINE_LIBS needed" >&6; }
15340 READLINE_LIBS="-lreadline $READLINE_LIBS"
15341 ;;
15342esac
15343fi
15344
15345else case e in #(
15346 e)
15347 READLINE_LIBS=
15348 if test "$READLINE" = "yes"
15349then :
15350
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
15353support with --disable-readline or download and install readline from:
15354 ftp.gnu.org/gnu/readline
15355Note: if you are using precompiled packages you will also need the development
15356package as well (which may be called readline-devel or something similar)." "$LINENO" 5
15357
15358fi
15359 ;;
15360esac
15361fi
15362
15363 LIBS="$READLINE_LIBS $lvm_saved_libs"
15364 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
15365if test "x$ac_cv_func_rl_completion_matches" = xyes
15366then :
15367 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
15368
15369fi
15370
15371 LIBS=$lvm_saved_libs
15372
15373fi
15374
15375################################################################################
15376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
15377printf %s "checking whether to enable internationalisation... " >&6; }
15378# Check whether --enable-nls was given.
15379if test ${enable_nls+y}
15380then :
15381 enableval=$enable_nls; INTL=$enableval
15382else case e in #(
15383 e) INTL="no" ;;
15384esac
15385fi
15386
15387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
15388printf "%s\n" "$INTL" >&6; }
15389
15390if test "$INTL" = "yes"
15391then :
15392
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.
15397set dummy ${ac_tool_prefix}msgfmt; ac_word=$2
15398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15399printf %s "checking for $ac_word... " >&6; }
15400if test ${ac_cv_path_MSGFMT+y}
15401then :
15402 printf %s "(cached) " >&6
15403else case e in #(
15404 e) case $MSGFMT in
15405 [\\/]* | ?:[\\/]*)
15406 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15407 ;;
15408 *)
15409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410for as_dir in $PATH
15411do
15412 IFS=$as_save_IFS
15413 case $as_dir in #(((
15414 '') as_dir=./ ;;
15415 */) ;;
15416 *) as_dir=$as_dir/ ;;
15417 esac
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
15422 break 2
15423 fi
15424done
15425 done
15426IFS=$as_save_IFS
15427
15428 ;;
15429esac ;;
15430esac
15431fi
15432MSGFMT=$ac_cv_path_MSGFMT
15433if test -n "$MSGFMT"; then
15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15435printf "%s\n" "$MSGFMT" >&6; }
15436else
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438printf "%s\n" "no" >&6; }
15439fi
15440
15441
15442fi
15443if 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.
15446set dummy msgfmt; ac_word=$2
15447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448printf %s "checking for $ac_word... " >&6; }
15449if test ${ac_cv_path_ac_pt_MSGFMT+y}
15450then :
15451 printf %s "(cached) " >&6
15452else case e in #(
15453 e) case $ac_pt_MSGFMT in
15454 [\\/]* | ?:[\\/]*)
15455 ac_cv_path_ac_pt_MSGFMT="$ac_pt_MSGFMT" # Let the user override the test with a path.
15456 ;;
15457 *)
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459for as_dir in $PATH
15460do
15461 IFS=$as_save_IFS
15462 case $as_dir in #(((
15463 '') as_dir=./ ;;
15464 */) ;;
15465 *) as_dir=$as_dir/ ;;
15466 esac
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
15471 break 2
15472 fi
15473done
15474 done
15475IFS=$as_save_IFS
15476
15477 ;;
15478esac ;;
15479esac
15480fi
15481ac_pt_MSGFMT=$ac_cv_path_ac_pt_MSGFMT
15482if test -n "$ac_pt_MSGFMT"; then
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MSGFMT" >&5
15484printf "%s\n" "$ac_pt_MSGFMT" >&6; }
15485else
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487printf "%s\n" "no" >&6; }
15488fi
15489
15490 if test "x$ac_pt_MSGFMT" = x; then
15491 MSGFMT=""
15492 else
15493 case $cross_compiling:$ac_tool_warned in
15494yes:)
15495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15496printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15497ac_tool_warned=yes ;;
15498esac
15499 MSGFMT=$ac_pt_MSGFMT
15500 fi
15501else
15502 MSGFMT="$ac_cv_path_MSGFMT"
15503fi
15504
15505
15506 if test -z "$MSGFMT"
15507then :
15508 as_fn_error $? "msgfmt not found in path $PATH" "$LINENO" 5
15509fi
15510
15511
15512# Check whether --with-localedir was given.
15513if test ${with_localedir+y}
15514then :
15515 withval=$with_localedir; localedir=$withval
15516else case e in #(
15517 e) localedir=${localedir-'${datarootdir}/locale'} ;;
15518esac
15519fi
15520
15521
15522printf "%s\n" "#define INTL_PACKAGE \"$INTL_PACKAGE\"" >>confdefs.h
15523
15524 # double eval needed ${datarootdir} -> ${prefix}/share -> real path
15525
15526printf "%s\n" "#define LOCALEDIR \"$(eval echo $(eval echo $localedir))\"" >>confdefs.h
15527
15528
15529fi
15530
15531################################################################################
15532
15533# Check whether --with-confdir was given.
15534if test ${with_confdir+y}
15535then :
15536 withval=$with_confdir; CONFDIR=$withval
15537else case e in #(
15538 e) CONFDIR='/etc' ;;
15539esac
15540fi
15541
15542
15543printf "%s\n" "#define DEFAULT_ETC_DIR \"$CONFDIR\"" >>confdefs.h
15544
15545
15546
15547# Check whether --with-staticdir was given.
15548if test ${with_staticdir+y}
15549then :
15550 withval=$with_staticdir; STATICDIR=$withval
15551else case e in #(
15552 e) STATICDIR='${exec_prefix}/sbin' ;;
15553esac
15554fi
15555
15556
15557
15558# Check whether --with-usrlibdir was given.
15559if test ${with_usrlibdir+y}
15560then :
15561 withval=$with_usrlibdir; usrlibdir=$withval
15562else case e in #(
15563 e) usrlibdir='${prefix}/lib' ;;
15564esac
15565fi
15566
15567
15568
15569# Check whether --with-usrsbindir was given.
15570if test ${with_usrsbindir+y}
15571then :
15572 withval=$with_usrsbindir; usrsbindir=$withval
15573else case e in #(
15574 e) usrsbindir='${prefix}/sbin' ;;
15575esac
15576fi
15577
15578
15579
15580# Check whether --with-libexecdir was given.
15581if test ${with_libexecdir+y}
15582then :
15583 withval=$with_libexecdir; libexecdir=$withval
15584else case e in #(
15585 e) libexecdir='${prefix}/libexec' ;;
15586esac
15587fi
15588
15589
15590################################################################################
15591
15592# Check whether --with-udev_prefix was given.
15593if test ${with_udev_prefix+y}
15594then :
15595 withval=$with_udev_prefix; udev_prefix=$withval
15596else case e in #(
15597 e) udev_prefix='${exec_prefix}' ;;
15598esac
15599fi
15600
15601
15602
15603# Check whether --with-udevdir was given.
15604if test ${with_udevdir+y}
15605then :
15606 withval=$with_udevdir; udevdir=$withval
15607else case e in #(
15608 e) udevdir='${udev_prefix}/lib/udev/rules.d' ;;
15609esac
15610fi
15611
15612
15613################################################################################
15614
15615# Check whether --with-systemdsystemunitdir was given.
15616if test ${with_systemdsystemunitdir+y}
15617then :
15618 withval=$with_systemdsystemunitdir;
15619fi
15620
15621
15622if test -z "$with_systemdsystemunitdir"
15623then :
15624
15625if 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
15631 ac_status=$?
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
15636else
15637 pkg_failed=yes
15638fi
15639 else
15640 pkg_failed=untried
15641fi
15642systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
15643
15644if test "x$systemdsystemunitdir" = x""
15645then :
15646 systemdsystemunitdir='${exec_prefix}/lib/systemd/system'
15647fi
15648else case e in #(
15649 e) systemdsystemunitdir="$with_systemdsystemunitdir" ;;
15650esac
15651fi
15652
15653
15654if 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
15660 ac_status=$?
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
15665else
15666 pkg_failed=yes
15667fi
15668 else
15669 pkg_failed=untried
15670fi
15671systemdutildir=$pkg_cv_systemdutildir
15672
15673if test "x$systemdutildir" = x""
15674then :
15675 systemdutildir='${exec_prefix}/lib/systemd'
15676fi
15677
15678################################################################################
15679
15680# Check whether --with-tmpfilesdir was given.
15681if test ${with_tmpfilesdir+y}
15682then :
15683 withval=$with_tmpfilesdir; tmpfilesdir=$withval
15684else case e in #(
15685 e) tmpfilesdir='${prefix}/lib/tmpfiles.d' ;;
15686esac
15687fi
15688
15689
15690################################################################################
15691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel modules directory" >&5
15692printf %s "checking for kernel modules directory... " >&6; }
15693
15694# Check whether --with-modulesdir was given.
15695if test ${with_modulesdir+y}
15696then :
15697 withval=$with_modulesdir; modulesdir=$withval
15698else case e in #(
15699 e) modulesdir="/lib/modules" ;;
15700esac
15701fi
15702
15703
15704printf "%s\n" "#define MODULES_PATH \"$modulesdir\"" >>confdefs.h
15705
15706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $modulesdir" >&5
15707printf "%s\n" "$modulesdir" >&6; }
15708
15709################################################################################
15710if test "$READLINE" = "yes"
15711then :
15712
15713 for ac_header in readline/readline.h readline/history.h
15714do :
15715 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
15716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15717if eval test \"x\$"$as_ac_Header"\" = x"yes"
15718then :
15719 cat >>confdefs.h <<_ACEOF
15720#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
15721_ACEOF
15722
15723else case e in #(
15724 e) hard_bailout ;;
15725esac
15726fi
15727
15728done
15729
15730fi
15731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
15732printf %s "checking whether to enable readline... " >&6; }
15733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
15734printf "%s\n" "$READLINE" >&6; }
15735
15736if test "$EDITLINE" = "yes"
15737then :
15738
15739 for ac_header in editline/readline.h
15740do :
15741 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
15742if test "x$ac_cv_header_editline_readline_h" = xyes
15743then :
15744 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
15745
15746else case e in #(
15747 e) hard_bailout ;;
15748esac
15749fi
15750
15751done
15752
15753fi
15754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable editline" >&5
15755printf %s "checking whether to enable editline... " >&6; }
15756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EDITLINE" >&5
15757printf "%s\n" "$EDITLINE" >&6; }
15758
15759if test "$BUILD_CMIRRORD" = "yes"
15760then :
15761
15762
15763 for ac_func in atexit
15764do :
15765 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
15766if test "x$ac_cv_func_atexit" = xyes
15767then :
15768 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
15769
15770else case e in #(
15771 e) hard_bailout ;;
15772esac
15773fi
15774
15775done
15776
15777fi
15778
15779if test "$BUILD_LVMLOCKD" = "yes"
15780then :
15781
15782 if test "$HAVE_REALTIME" != "yes"
15783then :
15784
15785 as_fn_error $? "Realtime clock support is mandatory for lvmlockd." "$LINENO" 5
15786fi
15787
15788 for ac_func in strtoull
15789do :
15790 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
15791if test "x$ac_cv_func_strtoull" = xyes
15792then :
15793 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
15794
15795else case e in #(
15796 e) hard_bailout ;;
15797esac
15798fi
15799
15800done
15801
15802fi
15803
15804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
15805printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
15806if test ${ac_cv_c_undeclared_builtin_options+y}
15807then :
15808 printf %s "(cached) " >&6
15809else case e in #(
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. */
15817
15818int
15819main (void)
15820{
15821(void) strchr;
15822 ;
15823 return 0;
15824}
15825_ACEOF
15826if ac_fn_c_try_compile "$LINENO"
15827then :
15828
15829else case e in #(
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. */
15837#include <float.h>
15838#include <limits.h>
15839#include <stdarg.h>
15840#include <stddef.h>
15841extern void ac_decl (int, char *);
15842
15843int
15844main (void)
15845{
15846(void) ac_decl (0, (char *) 0);
15847 (void) ac_decl;
15848
15849 ;
15850 return 0;
15851}
15852_ACEOF
15853if ac_fn_c_try_compile "$LINENO"
15854then :
15855 if test x"$ac_arg" = x
15856then :
15857 ac_cv_c_undeclared_builtin_options='none needed'
15858else case e in #(
15859 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
15860esac
15861fi
15862 break
15863fi
15864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15865esac
15866fi
15867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15868 done
15869 CFLAGS=$ac_save_CFLAGS
15870 ;;
15871esac
15872fi
15873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15874printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15875 case $ac_cv_c_undeclared_builtin_options in #(
15876 'cannot detect') :
15877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15878printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15879as_fn_error $? "cannot make $CC report undeclared builtins
15880See 'config.log' for more details" "$LINENO" 5; } ;; #(
15881 'none needed') :
15882 ac_c_undeclared_builtin_options='' ;; #(
15883 *) :
15884 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15885esac
15886
15887ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15888if test "x$ac_cv_have_decl_strerror_r" = xyes
15889then :
15890 ac_have_decl=1
15891else case e in #(
15892 e) ac_have_decl=0 ;;
15893esac
15894fi
15895printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
15896
15897if test "$BUILD_LVMPOLLD" = "yes"
15898then :
15899
15900
15901 for ac_func in strpbrk
15902do :
15903 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15904if test "x$ac_cv_func_strpbrk" = xyes
15905then :
15906 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
15907
15908else case e in #(
15909 e) hard_bailout ;;
15910esac
15911fi
15912
15913done
15914
15915if 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.)
15919
15920printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
15921
15922fi
15923
15924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15925printf %s "checking whether strerror_r returns char *... " >&6; }
15926if test ${ac_cv_func_strerror_r_char_p+y}
15927then :
15928 printf %s "(cached) " >&6
15929else case e in #(
15930 e)
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>
15936int
15937main (void)
15938{
15939
15940 char buf[100];
15941 char x = *strerror_r (0, buf, sizeof buf);
15942 char *p = strerror_r (0, buf, sizeof buf);
15943 return !p || x;
15944
15945 ;
15946 return 0;
15947}
15948_ACEOF
15949if ac_fn_c_try_compile "$LINENO"
15950then :
15951 ac_cv_func_strerror_r_char_p=yes
15952fi
15953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15954
15955 fi
15956 ;;
15957esac
15958fi
15959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15960printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
15961if test $ac_cv_func_strerror_r_char_p = yes; then
15962
15963printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15964
15965fi
15966
15967
15968fi
15969
15970if test "$BUILD_DMEVENTD" = "yes"
15971then :
15972
15973 for ac_header in arpa/inet.h
15974do :
15975 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15976if test "x$ac_cv_header_arpa_inet_h" = xyes
15977then :
15978 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
15979
15980else case e in #(
15981 e) hard_bailout ;;
15982esac
15983fi
15984
15985done
15986
15987fi
15988
15989if test "$HAVE_LIBDL" = "yes"
15990then :
15991
15992 for ac_header in dlfcn.h
15993do :
15994 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
15995if test "x$ac_cv_header_dlfcn_h" = xyes
15996then :
15997 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15998
15999else case e in #(
16000 e) hard_bailout ;;
16001esac
16002fi
16003
16004done
16005
16006fi
16007
16008if test "$INTL" = "yes"
16009then :
16010
16011 for ac_header in libintl.h
16012do :
16013 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16014if test "x$ac_cv_header_libintl_h" = xyes
16015then :
16016 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
16017
16018else case e in #(
16019 e) hard_bailout ;;
16020esac
16021fi
16022
16023done
16024
16025fi
16026
16027if test "$UDEV_SYNC" = "yes"
16028then :
16029
16030 for ac_header in sys/ipc.h sys/sem.h
16031do :
16032 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
16033ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16034if eval test \"x\$"$as_ac_Header"\" = x"yes"
16035then :
16036 cat >>confdefs.h <<_ACEOF
16037#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
16038_ACEOF
16039
16040else case e in #(
16041 e) hard_bailout ;;
16042esac
16043fi
16044
16045done
16046
16047fi
16048
16049if test "$BUILD_DMFILEMAPD" = "yes"
16050then :
16051
16052 for ac_header in sys/inotify.h
16053do :
16054 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
16055if test "x$ac_cv_header_sys_inotify_h" = xyes
16056then :
16057 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
16058
16059else case e in #(
16060 e) hard_bailout ;;
16061esac
16062fi
16063
16064done
16065
16066fi
16067
16068################################################################################
16069if 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.
16071set dummy ${ac_tool_prefix}modprobe; ac_word=$2
16072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16073printf %s "checking for $ac_word... " >&6; }
16074if test ${ac_cv_path_MODPROBE_CMD+y}
16075then :
16076 printf %s "(cached) " >&6
16077else case e in #(
16078 e) case $MODPROBE_CMD in
16079 [\\/]* | ?:[\\/]*)
16080 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
16081 ;;
16082 *)
16083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16084for as_dir in $PATH_SBIN
16085do
16086 IFS=$as_save_IFS
16087 case $as_dir in #(((
16088 '') as_dir=./ ;;
16089 */) ;;
16090 *) as_dir=$as_dir/ ;;
16091 esac
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
16096 break 2
16097 fi
16098done
16099 done
16100IFS=$as_save_IFS
16101
16102 ;;
16103esac ;;
16104esac
16105fi
16106MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
16107if test -n "$MODPROBE_CMD"; then
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
16109printf "%s\n" "$MODPROBE_CMD" >&6; }
16110else
16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112printf "%s\n" "no" >&6; }
16113fi
16114
16115
16116fi
16117if 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.
16120set dummy modprobe; ac_word=$2
16121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122printf %s "checking for $ac_word... " >&6; }
16123if test ${ac_cv_path_ac_pt_MODPROBE_CMD+y}
16124then :
16125 printf %s "(cached) " >&6
16126else case e in #(
16127 e) case $ac_pt_MODPROBE_CMD in
16128 [\\/]* | ?:[\\/]*)
16129 ac_cv_path_ac_pt_MODPROBE_CMD="$ac_pt_MODPROBE_CMD" # Let the user override the test with a path.
16130 ;;
16131 *)
16132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16133for as_dir in $PATH_SBIN
16134do
16135 IFS=$as_save_IFS
16136 case $as_dir in #(((
16137 '') as_dir=./ ;;
16138 */) ;;
16139 *) as_dir=$as_dir/ ;;
16140 esac
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
16145 break 2
16146 fi
16147done
16148 done
16149IFS=$as_save_IFS
16150
16151 ;;
16152esac ;;
16153esac
16154fi
16155ac_pt_MODPROBE_CMD=$ac_cv_path_ac_pt_MODPROBE_CMD
16156if test -n "$ac_pt_MODPROBE_CMD"; then
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MODPROBE_CMD" >&5
16158printf "%s\n" "$ac_pt_MODPROBE_CMD" >&6; }
16159else
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161printf "%s\n" "no" >&6; }
16162fi
16163
16164 if test "x$ac_pt_MODPROBE_CMD" = x; then
16165 MODPROBE_CMD=""
16166 else
16167 case $cross_compiling:$ac_tool_warned in
16168yes:)
16169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16171ac_tool_warned=yes ;;
16172esac
16173 MODPROBE_CMD=$ac_pt_MODPROBE_CMD
16174 fi
16175else
16176 MODPROBE_CMD="$ac_cv_path_MODPROBE_CMD"
16177fi
16178
16179
16180if test -n "$MODPROBE_CMD"
16181then :
16182
16183
16184printf "%s\n" "#define MODPROBE_CMD \"$MODPROBE_CMD\"" >>confdefs.h
16185
16186
16187fi
16188
16189SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))"
16190
16191SBINDIR="$(eval echo $(eval echo $sbindir))"
16192LVM_PATH="$SBINDIR/lvm"
16193
16194printf "%s\n" "#define LVM_PATH \"$LVM_PATH\"" >>confdefs.h
16195
16196
16197LVMCONFIG_PATH="$SBINDIR/lvmconfig"
16198
16199printf "%s\n" "#define LVMCONFIG_PATH \"$LVMCONFIG_PATH\"" >>confdefs.h
16200
16201
16202USRSBINDIR="$(eval echo $(eval echo $usrsbindir))"
16203
16204FSADM_PATH="$SBINDIR/fsadm"
16205
16206printf "%s\n" "#define FSADM_PATH \"$FSADM_PATH\"" >>confdefs.h
16207
16208
16209LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo"
16210
16211printf "%s\n" "#define LVMIMPORTVDO_PATH \"$LVMIMPORTVDO_PATH\"" >>confdefs.h
16212
16213
16214LIBEXECDIR="$(eval echo $(eval echo $libexecdir))"
16215
16216LVRESIZE_FS_HELPER_PATH="$LIBEXECDIR/lvresize_fs_helper"
16217
16218printf "%s\n" "#define LVRESIZE_FS_HELPER_PATH \"$LVRESIZE_FS_HELPER_PATH\"" >>confdefs.h
16219
16220
16221################################################################################
16222
16223# Check whether --with-dmeventd-pidfile was given.
16224if test ${with_dmeventd_pidfile+y}
16225then :
16226 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
16227else case e in #(
16228 e) DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" ;;
16229esac
16230fi
16231
16232
16233# Check whether --with-dmeventd-path was given.
16234if test ${with_dmeventd_path+y}
16235then :
16236 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
16237else case e in #(
16238 e) DMEVENTD_PATH="$SBINDIR/dmeventd" ;;
16239esac
16240fi
16241
16242
16243# Check whether --with-dmeventd-exit-on-path was given.
16244if test ${with_dmeventd_exit_on_path+y}
16245then :
16246 withval=$with_dmeventd_exit_on_path; DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval
16247else case e in #(
16248 e) DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin" ;;
16249esac
16250fi
16251
16252
16253if test "$BUILD_DMEVENTD" = "yes"
16254then :
16255
16256
16257printf "%s\n" "#define DMEVENTD_PIDFILE \"$DMEVENTD_PIDFILE\"" >>confdefs.h
16258
16259
16260printf "%s\n" "#define DMEVENTD_PATH \"$DMEVENTD_PATH\"" >>confdefs.h
16261
16262
16263printf "%s\n" "#define DEFAULT_DMEVENTD_EXIT_ON_PATH \"$DEFAULT_DMEVENTD_EXIT_ON_PATH\"" >>confdefs.h
16264
16265
16266fi
16267
16268################################################################################
16269
16270# Check whether --with-default-system-dir was given.
16271if test ${with_default_system_dir+y}
16272then :
16273 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
16274else case e in #(
16275 e) DEFAULT_SYS_DIR="/etc/lvm" ;;
16276esac
16277fi
16278
16279
16280printf "%s\n" "#define DEFAULT_SYS_DIR \"$DEFAULT_SYS_DIR\"" >>confdefs.h
16281
16282
16283
16284# Check whether --with-default-profile-subdir was given.
16285if test ${with_default_profile_subdir+y}
16286then :
16287 withval=$with_default_profile_subdir; DEFAULT_PROFILE_SUBDIR=$withval
16288else case e in #(
16289 e) DEFAULT_PROFILE_SUBDIR="profile" ;;
16290esac
16291fi
16292
16293
16294printf "%s\n" "#define DEFAULT_PROFILE_SUBDIR \"$DEFAULT_PROFILE_SUBDIR\"" >>confdefs.h
16295
16296
16297
16298# Check whether --with-default-archive-subdir was given.
16299if test ${with_default_archive_subdir+y}
16300then :
16301 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
16302else case e in #(
16303 e) DEFAULT_ARCHIVE_SUBDIR="archive" ;;
16304esac
16305fi
16306
16307
16308printf "%s\n" "#define DEFAULT_ARCHIVE_SUBDIR \"$DEFAULT_ARCHIVE_SUBDIR\"" >>confdefs.h
16309
16310
16311
16312# Check whether --with-default-backup-subdir was given.
16313if test ${with_default_backup_subdir+y}
16314then :
16315 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
16316else case e in #(
16317 e) DEFAULT_BACKUP_SUBDIR="backup" ;;
16318esac
16319fi
16320
16321
16322printf "%s\n" "#define DEFAULT_BACKUP_SUBDIR \"$DEFAULT_BACKUP_SUBDIR\"" >>confdefs.h
16323
16324
16325
16326# Check whether --with-default-cache-subdir was given.
16327if test ${with_default_cache_subdir+y}
16328then :
16329 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
16330else case e in #(
16331 e) DEFAULT_CACHE_SUBDIR="cache" ;;
16332esac
16333fi
16334
16335
16336printf "%s\n" "#define DEFAULT_CACHE_SUBDIR \"$DEFAULT_CACHE_SUBDIR\"" >>confdefs.h
16337
16338
16339# Select default system locking dir, prefer /run/lock over /var/lock
16340DEFAULT_SYS_LOCK_DIR="$RUN_DIR/lock"
16341test -d "$DEFAULT_SYS_LOCK_DIR" || DEFAULT_SYS_LOCK_DIR="/var/lock"
16342
16343# Support configurable locking subdir for lvm
16344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default lock directory" >&5
16345printf %s "checking for default lock directory... " >&6; }
16346
16347# Check whether --with-default-locking-dir was given.
16348if test ${with_default_locking_dir+y}
16349then :
16350 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
16351else case e in #(
16352 e) DEFAULT_LOCK_DIR="$DEFAULT_SYS_LOCK_DIR/lvm" ;;
16353esac
16354fi
16355
16356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_LOCK_DIR" >&5
16357printf "%s\n" "$DEFAULT_LOCK_DIR" >&6; }
16358
16359printf "%s\n" "#define DEFAULT_LOCK_DIR \"$DEFAULT_LOCK_DIR\"" >>confdefs.h
16360
16361
16362# No --with configure setting, but store in the main configure.h
16363
16364printf "%s\n" "#define DEFAULT_PROC_DIR \"/proc\"" >>confdefs.h
16365
16366
16367################################################################################
16368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
16369printf %s "checking for kernel interface choice... " >&6; }
16370
16371# Check whether --with-interface was given.
16372if test ${with_interface+y}
16373then :
16374 withval=$with_interface; interface=$withval
16375else case e in #(
16376 e) interface="ioctl" ;;
16377esac
16378fi
16379
16380if test "$interface" != "ioctl"
16381then :
16382 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
16383fi
16384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
16385printf "%s\n" "$interface" >&6; }
16386
16387################################################################################
16388read DM_LIB_VERSION < "$srcdir"/VERSION_DM 2>/dev/null || DM_LIB_VERSION="Unknown"
16389
16390printf "%s\n" "#define DM_LIB_VERSION \"$DM_LIB_VERSION\"" >>confdefs.h
16391
16392
16393DM_LIB_PATCHLEVEL=$($AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}' "$srcdir"/VERSION_DM)
16394
16395read VER < "$srcdir"/VERSION 2>/dev/null || VER=Unknown
16396
16397LVM_VERSION=\"$VER\"
16398LVM_RELEASE_DATE="\"$(echo $VER | $SED 's/.* (//;s/).*//')\""
16399VER=$(echo "$VER" | $AWK '{print $1}')
16400LVM_RELEASE="\"$(echo "$VER" | $AWK -F '-' '{print $2}')\""
16401VER=$(echo "$VER" | $AWK -F '-' '{print $1}')
16402LVM_MAJOR=$(echo "$VER" | $AWK -F '.' '{print $1}')
16403LVM_MINOR=$(echo "$VER" | $AWK -F '.' '{print $2}')
16404LVM_PATCHLEVEL=$(echo "$VER" | $AWK -F '[(.]' '{print $3}')
16405LVM_LIBAPI=$(echo "$VER" | $AWK -F '[()]' '{print $2}')
16406
16407
16408printf "%s\n" "#define LVM_CONFIGURE_LINE \"$CONFIGURE_LINE\"" >>confdefs.h
16409
16410
16411################################################################################
16412# Allow users to override default location for libaio
16413# there seems to be no pkg-config support available
16414AIO_CFLAGS=${AIO_CFLAGS:-}
16415AIO_LIBS=${AIO_LIBS:--laio}
16416
16417
16418
16419
16420
16421
16422################################################################################
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566################################################################################
16567ac_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"
16568
16569cat >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.
16575#
16576# config.status only pays attention to the cache file if you give it
16577# the --recheck option to rerun configure.
16578#
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.
16582
16583_ACEOF
16584
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.
16590(
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
16593 case $ac_val in #(
16594 *${as_nl}*)
16595 case $ac_var in #(
16596 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16597printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16598 esac
16599 case $ac_var in #(
16600 _ | IFS | as_nl) ;; #(
16601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16602 *) { eval $ac_var=; unset $ac_var;} ;;
16603 esac ;;
16604 esac
16605 done
16606
16607 (set) 2>&1 |
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 \.
16612 sed -n \
16613 "s/'/'\\\\''/g;
16614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16615 ;; #(
16616 *)
16617 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16619 ;;
16620 esac |
16621 sort
16622) |
16623 sed '
16624 /^ac_cv_env_/b end
16625 t clear
16626 :clear
16627 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16628 t end
16629 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16630 :end' >>confcache
16631if 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
16635printf "%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"
16638 else
16639 case $cache_file in #(
16640 */* | ?:*)
16641 mv -f confcache "$cache_file"$$ &&
16642 mv -f "$cache_file"$$ "$cache_file" ;; #(
16643 *)
16644 mv -f confcache "$cache_file" ;;
16645 esac
16646 fi
16647 fi
16648 else
16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16650printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16651 fi
16652fi
16653rm -f confcache
16654
16655test "x$prefix" = xNONE && prefix=$ac_default_prefix
16656# Let make expand exec_prefix.
16657test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16658
16659DEFS=-DHAVE_CONFIG_H
16660
16661ac_libobjs=
16662ac_ltlibobjs=
16663U=
16664for 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'
16672done
16673LIBOBJS=$ac_libobjs
16674
16675LTLIBOBJS=$ac_ltlibobjs
16676
16677
16678
16679: "${CONFIG_STATUS=./config.status}"
16680ac_write_fail=0
16681ac_clean_files_save=$ac_clean_files
16682ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16684printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16685as_write_fail=0
16686cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16687#! $SHELL
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.
16692
16693debug=false
16694ac_cs_recheck=false
16695ac_cs_silent=false
16696
16697SHELL=\${CONFIG_SHELL-$SHELL}
16698export SHELL
16699_ASEOF
16700cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16701## -------------------- ##
16702## M4sh Initialization. ##
16703## -------------------- ##
16704
16705# Be more Bourne compatible
16706DUALCASE=1; export DUALCASE # for MKS sh
16707if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16708then :
16709 emulate sh
16710 NULLCMD=:
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
16715else case e in #(
16716 e) case `(set -o) 2>/dev/null` in #(
16717 *posix*) :
16718 set -o posix ;; #(
16719 *) :
16720 ;;
16721esac ;;
16722esac
16723fi
16724
16725
16726
16727# Reset variables that may have inherited troublesome values from
16728# the environment.
16729
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.
16734as_nl='
16735'
16736export as_nl
16737IFS=" "" $as_nl"
16738
16739PS1='$ '
16740PS2='> '
16741PS4='+ '
16742
16743# Ensure predictable behavior from utilities with locale-dependent output.
16744LC_ALL=C
16745export LC_ALL
16746LANGUAGE=C
16747export LANGUAGE
16748
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).
16754for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16755do eval test \${$as_var+y} \
16756 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16757done
16758
16759# Ensure that fds 0, 1, and 2 are open.
16760if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16761if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16762if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16763
16764# The user is always right.
16765if ${PATH_SEPARATOR+false} :; then
16766 PATH_SEPARATOR=:
16767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16769 PATH_SEPARATOR=';'
16770 }
16771fi
16772
16773
16774# Find who we are. Look in the path if we contain no directory separator.
16775as_myself=
16776case $0 in #((
16777 *[\\/]* ) as_myself=$0 ;;
16778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779for as_dir in $PATH
16780do
16781 IFS=$as_save_IFS
16782 case $as_dir in #(((
16783 '') as_dir=./ ;;
16784 */) ;;
16785 *) as_dir=$as_dir/ ;;
16786 esac
16787 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16788 done
16789IFS=$as_save_IFS
16790
16791 ;;
16792esac
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.
16795if test "x$as_myself" = x; then
16796 as_myself=$0
16797fi
16798if test ! -f "$as_myself"; then
16799 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16800 exit 1
16801fi
16802
16803
16804
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.
16810as_fn_error ()
16811{
16812 as_status=$1; test $as_status -eq 0 && as_status=1
16813 if test "$4"; then
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
16816 fi
16817 printf "%s\n" "$as_me: error: $2" >&2
16818 as_fn_exit $as_status
16819} # as_fn_error
16820
16821
16822# as_fn_set_status STATUS
16823# -----------------------
16824# Set $? to STATUS, without forking.
16825as_fn_set_status ()
16826{
16827 return $1
16828} # as_fn_set_status
16829
16830# as_fn_exit STATUS
16831# -----------------
16832# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16833as_fn_exit ()
16834{
16835 set +e
16836 as_fn_set_status $1
16837 exit $1
16838} # as_fn_exit
16839
16840# as_fn_unset VAR
16841# ---------------
16842# Portably unset VAR.
16843as_fn_unset ()
16844{
16845 { eval $1=; unset $1;}
16846}
16847as_unset=as_fn_unset
16848
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
16854# implementations.
16855if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16856then :
16857 eval 'as_fn_append ()
16858 {
16859 eval $1+=\$2
16860 }'
16861else case e in #(
16862 e) as_fn_append ()
16863 {
16864 eval $1=\$$1\$2
16865 } ;;
16866esac
16867fi # as_fn_append
16868
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.
16874if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16875then :
16876 eval 'as_fn_arith ()
16877 {
16878 as_val=$(( $* ))
16879 }'
16880else case e in #(
16881 e) as_fn_arith ()
16882 {
16883 as_val=`expr "$@" || test $? -eq 1`
16884 } ;;
16885esac
16886fi # as_fn_arith
16887
16888
16889if expr a : '\(a\)' >/dev/null 2>&1 &&
16890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16891 as_expr=expr
16892else
16893 as_expr=false
16894fi
16895
16896if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16897 as_basename=basename
16898else
16899 as_basename=false
16900fi
16901
16902if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16903 as_dirname=dirname
16904else
16905 as_dirname=false
16906fi
16907
16908as_me=`$as_basename -- "$0" ||
16909$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16910 X"$0" : 'X\(//\)$' \| \
16911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16912printf "%s\n" X/"$0" |
16913 sed '/^.*\/\([^/][^/]*\)\/*$/{
16914 s//\1/
16915 q
16916 }
16917 /^X\/\(\/\/\)$/{
16918 s//\1/
16919 q
16920 }
16921 /^X\/\(\/\).*/{
16922 s//\1/
16923 q
16924 }
16925 s/.*/./; q'`
16926
16927# Avoid depending upon Character Ranges.
16928as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16929as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16930as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16931as_cr_digits='0123456789'
16932as_cr_alnum=$as_cr_Letters$as_cr_digits
16933
16934
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.
16938ECHO_C= ECHO_N= ECHO_T=
16939case `echo -n x` in #(((((
16940-n*)
16941 case `echo 'xy\c'` in
16942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16943 xy) ECHO_C='\c';;
16944 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16945 ECHO_T=' ';;
16946 esac;;
16947*)
16948 ECHO_N='-n';;
16949esac
16950
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.
16954as_echo='printf %s\n'
16955as_echo_n='printf %s'
16956
16957rm -f conf$$ conf$$.exe conf$$.file
16958if test -d conf$$.dir; then
16959 rm -f conf$$.dir/conf$$.file
16960else
16961 rm -f conf$$.dir
16962 mkdir conf$$.dir 2>/dev/null
16963fi
16964if (echo >conf$$.file) 2>/dev/null; then
16965 if ln -s conf$$.file conf$$ 2>/dev/null; then
16966 as_ln_s='ln -s'
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 ||
16972 as_ln_s='cp -pR'
16973 elif ln conf$$.file conf$$ 2>/dev/null; then
16974 as_ln_s=ln
16975 else
16976 as_ln_s='cp -pR'
16977 fi
16978else
16979 as_ln_s='cp -pR'
16980fi
16981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16982rmdir conf$$.dir 2>/dev/null
16983
16984
16985# as_fn_mkdir_p
16986# -------------
16987# Create "$as_dir" as a directory, including parents if necessary.
16988as_fn_mkdir_p ()
16989{
16990
16991 case $as_dir in #(
16992 -*) as_dir=./$as_dir;;
16993 esac
16994 test -d "$as_dir" || eval $as_mkdir_p || {
16995 as_dirs=
16996 while :; do
16997 case $as_dir in #(
16998 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16999 *) as_qdir=$as_dir;;
17000 esac
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 ||
17007printf "%s\n" X"$as_dir" |
17008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17009 s//\1/
17010 q
17011 }
17012 /^X\(\/\/\)[^/].*/{
17013 s//\1/
17014 q
17015 }
17016 /^X\(\/\/\)$/{
17017 s//\1/
17018 q
17019 }
17020 /^X\(\/\).*/{
17021 s//\1/
17022 q
17023 }
17024 s/.*/./; q'`
17025 test -d "$as_dir" && break
17026 done
17027 test -z "$as_dirs" || eval "mkdir $as_dirs"
17028 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17029
17030
17031} # as_fn_mkdir_p
17032if mkdir -p . 2>/dev/null; then
17033 as_mkdir_p='mkdir -p "$as_dir"'
17034else
17035 test -d ./-p && rmdir ./-p
17036 as_mkdir_p=false
17037fi
17038
17039
17040# as_fn_executable_p FILE
17041# -----------------------
17042# Test if FILE is an executable regular file.
17043as_fn_executable_p ()
17044{
17045 test -f "$1" && test -x "$1"
17046} # as_fn_executable_p
17047as_test_x='test -x'
17048as_executable_p=as_fn_executable_p
17049
17050# Sed expression to map a string onto a valid CPP name.
17051as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17052as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17053
17054# Sed expression to map a string onto a valid variable name.
17055as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17056as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17057
17058
17059exec 6>&1
17060## ----------------------------------- ##
17061## Main body of $CONFIG_STATUS script. ##
17062## ----------------------------------- ##
17063_ASEOF
17064test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17065
17066cat >>$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.
17070ac_log="
17071This file was extended by $as_me, which was
17072generated by GNU Autoconf 2.72. Invocation command line was
17073
17074 CONFIG_FILES = $CONFIG_FILES
17075 CONFIG_HEADERS = $CONFIG_HEADERS
17076 CONFIG_LINKS = $CONFIG_LINKS
17077 CONFIG_COMMANDS = $CONFIG_COMMANDS
17078 $ $0 $@
17079
17080on `(hostname || uname -n) 2>/dev/null | sed 1q`
17081"
17082
17083_ACEOF
17084
17085case $ac_config_files in *"
17086"*) set x $ac_config_files; shift; ac_config_files=$*;;
17087esac
17088
17089case $ac_config_headers in *"
17090"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17091esac
17092
17093
17094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095# Files that config.status was made for.
17096config_files="$ac_config_files"
17097config_headers="$ac_config_headers"
17098
17099_ACEOF
17100
17101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17102ac_cs_usage="\
17103'$as_me' instantiates files and other configuration actions
17104from templates according to the current configuration. Unless the files
17105and actions are specified as TAGs, all are instantiated by default.
17106
17107Usage: $0 [OPTION]... [TAG]...
17108
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
17120
17121Configuration files:
17122$config_files
17123
17124Configuration headers:
17125$config_headers
17126
17127Report bugs to the package provider."
17128
17129_ACEOF
17130ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17131ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133ac_cs_config='$ac_cs_config_escaped'
17134ac_cs_version="\\
17135config.status
17136configured by $0, generated by GNU Autoconf 2.72,
17137 with options \\"\$ac_cs_config\\"
17138
17139Copyright (C) 2023 Free Software Foundation, Inc.
17140This config.status script is free software; the Free Software Foundation
17141gives unlimited permission to copy, distribute and modify it."
17142
17143ac_pwd='$ac_pwd'
17144srcdir='$srcdir'
17145INSTALL='$INSTALL'
17146MKDIR_P='$MKDIR_P'
17147AWK='$AWK'
17148test -n "\$AWK" || AWK=awk
17149_ACEOF
17150
17151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152# The default lists apply if the user does not specify any file.
17153ac_need_defaults=:
17154while test $# != 0
17155do
17156 case $1 in
17157 --*=?*)
17158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17159 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17160 ac_shift=:
17161 ;;
17162 --*=)
17163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17164 ac_optarg=
17165 ac_shift=:
17166 ;;
17167 *)
17168 ac_option=$1
17169 ac_optarg=$2
17170 ac_shift=shift
17171 ;;
17172 esac
17173
17174 case $ac_option in
17175 # Handling of the options.
17176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17177 ac_cs_recheck=: ;;
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 )
17183 debug=: ;;
17184 --file | --fil | --fi | --f )
17185 $ac_shift
17186 case $ac_optarg in
17187 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17188 '') as_fn_error $? "missing file argument" ;;
17189 esac
17190 as_fn_append CONFIG_FILES " '$ac_optarg'"
17191 ac_need_defaults=false;;
17192 --header | --heade | --head | --hea )
17193 $ac_shift
17194 case $ac_optarg in
17195 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17196 esac
17197 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17198 ac_need_defaults=false;;
17199 --he | --h)
17200 # Conflict between --help and --header
17201 as_fn_error $? "ambiguous option: '$1'
17202Try '$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)
17207 ac_cs_silent=: ;;
17208
17209 # This is an error.
17210 -*) as_fn_error $? "unrecognized option: '$1'
17211Try '$0 --help' for more information." ;;
17212
17213 *) as_fn_append ac_config_targets " $1"
17214 ac_need_defaults=false ;;
17215
17216 esac
17217 shift
17218done
17219
17220ac_configure_extra_args=
17221
17222if $ac_cs_silent; then
17223 exec 6>/dev/null
17224 ac_configure_extra_args="$ac_configure_extra_args --silent"
17225fi
17226
17227_ACEOF
17228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229if \$ac_cs_recheck; then
17230 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17231 shift
17232 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17233 CONFIG_SHELL='$SHELL'
17234 export CONFIG_SHELL
17235 exec "\$@"
17236fi
17237
17238_ACEOF
17239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17240exec 5>>config.log
17241{
17242 echo
17243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17244## Running $as_me. ##
17245_ASBOX
17246 printf "%s\n" "$ac_log"
17247} >&5
17248
17249_ACEOF
17250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17251_ACEOF
17252
17253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17254
17255# Handling of arguments.
17256for ac_config_target in $ac_config_targets
17257do
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" ;;
17320
17321 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17322 esac
17323done
17324
17325
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.
17330if $ac_need_defaults; then
17331 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17332 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17333fi
17334
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'.
17341$debug ||
17342{
17343 tmp= ac_tmp=
17344 trap 'exit_status=$?
17345 : "${ac_tmp:=$tmp}"
17346 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17347' 0
17348 trap 'as_fn_exit 1' 1 2 13 15
17349}
17350# Create a (secure) tmp directory for tmp files.
17351
17352{
17353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17354 test -d "$tmp"
17355} ||
17356{
17357 tmp=./conf$$-$RANDOM
17358 (umask 077 && mkdir "$tmp")
17359} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17360ac_tmp=$tmp
17361
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'.
17365if test -n "$CONFIG_FILES"; then
17366
17367
17368ac_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.
17372if test "x$ac_cr" = x; then
17373 eval ac_cr=\$\'\\r\'
17374fi
17375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17377 ac_cs_awk_cr='\\r'
17378else
17379 ac_cs_awk_cr=$ac_cr
17380fi
17381
17382echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17383_ACEOF
17384
17385
17386{
17387 echo "cat >conf$$subs.awk <<_ACEOF" &&
17388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17389 echo "_ACEOF"
17390} >conf$$subs.sh ||
17391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17392ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17393ac_delim='%!_!# '
17394for 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
17397
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
17400 break
17401 elif $ac_last_try; then
17402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17403 else
17404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17405 fi
17406done
17407rm -f conf$$subs.sh
17408
17409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17410cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17411_ACEOF
17412sed -n '
17413h
17414s/^/S["/; s/!.*/"]=/
17415p
17416g
17417s/^[^!]*!//
17418:repl
17419t repl
17420s/'"$ac_delim"'$//
17421t delim
17422:nl
17423h
17424s/\(.\{148\}\)..*/\1/
17425t more1
17426s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17427p
17428n
17429b repl
17430:more1
17431s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17432p
17433g
17434s/.\{148\}//
17435t nl
17436:delim
17437h
17438s/\(.\{148\}\)..*/\1/
17439t more2
17440s/["\\]/\\&/g; s/^/"/; s/$/"/
17441p
17442b
17443:more2
17444s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17445p
17446g
17447s/.\{148\}//
17448t delim
17449' <conf$$subs.awk | sed '
17450/^[^""]/{
17451 N
17452 s/\n//
17453}
17454' >>$CONFIG_STATUS || ac_write_fail=1
17455rm -f conf$$subs.awk
17456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17457_ACAWK
17458cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17459 for (key in S) S_is_set[key] = 1
17460 FS = "\a"
17461
17462}
17463{
17464 line = $ 0
17465 nfields = split(line, field, "@")
17466 substed = 0
17467 len = length(field[1])
17468 for (i = 2; i < nfields; i++) {
17469 key = field[i]
17470 keylen = length(key)
17471 if (S_is_set[key]) {
17472 value = S[key]
17473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17474 len += length(value) + length(field[++i])
17475 substed = 1
17476 } else
17477 len += 1 + keylen
17478 }
17479
17480 print line
17481}
17482
17483_ACAWK
17484_ACEOF
17485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17488else
17489 cat
17490fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17492_ACEOF
17493
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).
17498if test "x$srcdir" = x.; then
17499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17500h
17501s///
17502s/^/:/
17503s/[ ]*$/:/
17504s/:\$(srcdir):/:/g
17505s/:\${srcdir}:/:/g
17506s/:@srcdir@:/:/g
17507s/^:*//
17508s/:*$//
17509x
17510s/\(=[ ]*\).*/\1/
17511G
17512s/\n//
17513s/^[^=]*=[ ]*$//
17514}'
17515fi
17516
17517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17518fi # test -n "$CONFIG_FILES"
17519
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'.
17523if test -n "$CONFIG_HEADERS"; then
17524cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17525BEGIN {
17526_ACEOF
17527
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.
17531
17532# Create a delimiter string that does not exist in confdefs.h, to ease
17533# handling of long lines.
17534ac_delim='%!_!# '
17535for ac_last_try in false false :; do
17536 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17537 if test -z "$ac_tt"; then
17538 break
17539 elif $ac_last_try; then
17540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17541 else
17542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17543 fi
17544done
17545
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.
17549
17550ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17551sed -n '
17552s/.\{148\}/&'"$ac_delim"'/g
17553t rset
17554:rset
17555s/^[ ]*#[ ]*define[ ][ ]*/ /
17556t def
17557d
17558:def
17559s/\\$//
17560t bsnl
17561s/["\\]/\\&/g
17562s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17563D["\1"]=" \3"/p
17564s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17565d
17566:bsnl
17567s/["\\]/\\&/g
17568s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17569D["\1"]=" \3\\\\\\n"\\/p
17570t cont
17571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17572t cont
17573d
17574:cont
17575n
17576s/.\{148\}/&'"$ac_delim"'/g
17577t clear
17578:clear
17579s/\\$//
17580t bsnlc
17581s/["\\]/\\&/g; s/^/"/; s/$/"/p
17582d
17583:bsnlc
17584s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17585b cont
17586' <confdefs.h | sed '
17587s/'"$ac_delim"'/"\\\
17588"/g' >>$CONFIG_STATUS || ac_write_fail=1
17589
17590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17591 for (key in D) D_is_set[key] = 1
17592 FS = "\a"
17593}
17594/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17595 line = \$ 0
17596 split(line, arg, " ")
17597 if (arg[1] == "#") {
17598 defundef = arg[2]
17599 mac1 = arg[3]
17600 } else {
17601 defundef = substr(arg[1], 2)
17602 mac1 = arg[2]
17603 }
17604 split(mac1, mac2, "(") #)
17605 macro = mac2[1]
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]
17610 next
17611 } else {
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, "*/"
17617 next
17618 }
17619 }
17620}
17621{ print }
17622_ACAWK
17623_ACEOF
17624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17626fi # test -n "$CONFIG_HEADERS"
17627
17628
17629eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17630shift
17631for ac_tag
17632do
17633 case $ac_tag in
17634 :[FHLC]) ac_mode=$ac_tag; continue;;
17635 esac
17636 case $ac_mode$ac_tag in
17637 :[FHL]*:*);;
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;;
17641 esac
17642 ac_save_IFS=$IFS
17643 IFS=:
17644 set x $ac_tag
17645 IFS=$ac_save_IFS
17646 shift
17647 ac_file=$1
17648 shift
17649
17650 case $ac_mode in
17651 :L) ac_source=$1;;
17652 :[FH])
17653 ac_file_inputs=
17654 for ac_f
17655 do
17656 case $ac_f 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 ':'.
17661 test -f "$ac_f" ||
17662 case $ac_f in
17663 [\\/$]*) false;;
17664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17665 esac ||
17666 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17667 esac
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'"
17670 done
17671
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'
17677 `' by configure.'
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
17681printf "%s\n" "$as_me: creating $ac_file" >&6;}
17682 fi
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;;
17689 esac
17690
17691 case $ac_tag in
17692 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17694 esac
17695 ;;
17696 esac
17697
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 ||
17703printf "%s\n" X"$ac_file" |
17704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17705 s//\1/
17706 q
17707 }
17708 /^X\(\/\/\)[^/].*/{
17709 s//\1/
17710 q
17711 }
17712 /^X\(\/\/\)$/{
17713 s//\1/
17714 q
17715 }
17716 /^X\(\/\).*/{
17717 s//\1/
17718 q
17719 }
17720 s/.*/./; q'`
17721 as_dir="$ac_dir"; as_fn_mkdir_p
17722 ac_builddir=.
17723
17724case "$ac_dir" in
17725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17726*)
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/ ;;
17733 esac ;;
17734esac
17735ac_abs_top_builddir=$ac_pwd
17736ac_abs_builddir=$ac_pwd$ac_dir_suffix
17737# for backward compatibility:
17738ac_top_builddir=$ac_top_build_prefix
17739
17740case $srcdir in
17741 .) # We are building in place.
17742 ac_srcdir=.
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 ;;
17753esac
17754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17755
17756
17757 case $ac_mode in
17758 :F)
17759 #
17760 # CONFIG_FILE
17761 #
17762
17763 case $INSTALL in
17764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17766 esac
17767 ac_MKDIR_P=$MKDIR_P
17768 case $MKDIR_P in
17769 [\\/$]* | ?:[\\/]* ) ;;
17770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17771 esac
17772_ACEOF
17773
17774cat >>$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.
17777ac_datarootdir_hack=; ac_datarootdir_seen=
17778ac_sed_dataroot='
17779/datarootdir/ {
17780 p
17781 q
17782}
17783/@datadir@/p
17784/@docdir@/p
17785/@infodir@/p
17786/@localedir@/p
17787/@mandir@/p'
17788case `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
17792printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17793_ACEOF
17794cat >>$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' ;;
17802esac
17803_ACEOF
17804
17805# Neutralize VPATH when '$srcdir' = '.'.
17806# Shell code in configure.ac might set extrasub.
17807# FIXME: do we really want to maintain this feature?
17808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17809ac_sed_extra="$ac_vpsub
17810$extrasub
17811_ACEOF
17812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17813:t
17814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17815s|@configure_input@|$ac_sed_conf_input|;t t
17816s&@top_builddir@&$ac_top_builddir_sub&;t t
17817s&@top_build_prefix@&$ac_top_build_prefix&;t t
17818s&@srcdir@&$ac_srcdir&;t t
17819s&@abs_srcdir@&$ac_abs_srcdir&;t t
17820s&@top_srcdir@&$ac_top_srcdir&;t t
17821s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17822s&@builddir@&$ac_builddir&;t t
17823s&@abs_builddir@&$ac_abs_builddir&;t t
17824s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17825s&@INSTALL@&$ac_INSTALL&;t t
17826s&@MKDIR_P@&$ac_MKDIR_P&;t t
17827$ac_datarootdir_hack
17828"
17829eval 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
17831
17832test -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'
17837which seems to be undefined. Please make sure it is defined" >&5
17838printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17839which seems to be undefined. Please make sure it is defined" >&2;}
17840
17841 rm -f "$ac_tmp/stdin"
17842 case $ac_file in
17843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17845 esac \
17846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17847 ;;
17848 :H)
17849 #
17850 # CONFIG_HEADER
17851 #
17852 if test x"$ac_file" != x-; then
17853 {
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
17860printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17861 else
17862 rm -f "$ac_file"
17863 mv "$ac_tmp/config.h" "$ac_file" \
17864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17865 fi
17866 else
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
17870 fi
17871 ;;
17872
17873
17874 esac
17875
17876done # for ac_tag
17877
17878
17879as_fn_exit 0
17880_ACEOF
17881ac_clean_files=$ac_clean_files_save
17882
17883test $ac_write_fail = 0 ||
17884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17885
17886
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.
17895if test "$no_create" != yes; then
17896 ac_cs_success=:
17897 ac_config_status_args=
17898 test "$silent" = yes &&
17899 ac_config_status_args="$ac_config_status_args --quiet"
17900 exec 5>/dev/null
17901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17902 exec 5>>config.log
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
17906fi
17907if 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
17909printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17910fi
17911
17912
17913if test -n "$THIN_CONFIGURE_WARN"
17914then :
17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5
17916printf "%s\n" "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;}
17917fi
17918
17919if test -n "$THIN_CHECK_VERSION_WARN"
17920then :
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
17922printf "%s\n" "$as_me: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&2;}
17923fi
17924
17925if test -n "$CACHE_CONFIGURE_WARN"
17926then :
17927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5
17928printf "%s\n" "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;}
17929fi
17930
17931if test -n "$CACHE_CHECK_VERSION_WARN"
17932then :
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
17934printf "%s\n" "$as_me: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&2;}
17935fi
17936
17937if test -n "$VDO_CONFIGURE_WARN"
17938then :
17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&5
17940printf "%s\n" "$as_me: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&2;}
17941fi
17942
17943if test -n "$LVM_NEEDS_LIBAIO_WARN"
17944then :
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&5
17946printf "%s\n" "$as_me: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&2;}
17947fi
17948
17949if test "$ODIRECT" != "yes"
17950then :
17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17952printf "%s\n" "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
17953fi
17954
17955if test "$BUILD_LVMDBUSD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no"
17956then :
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building D-Bus support without D-Bus notifications!" >&5
17958printf "%s\n" "$as_me: WARNING: Building D-Bus support without D-Bus notifications!" >&2;}
17959fi
17960
This page took 0.149276 seconds and 6 git commands to generate.