2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_default_prefix
=/usr
596 ac_subst_vars
='LTLIBOBJS
656 DEFAULT_DATA_ALIGNMENT
658 DEFAULT_BACKUP_SUBDIR
659 DEFAULT_ARCHIVE_SUBDIR
773 program_transform_name
786 enable_option_checking
808 with_cmirrord_pidfile
836 with_dmeventd_pidfile
839 with_default_system_dir
840 with_default_archive_subdir
841 with_default_backup_subdir
842 with_default_cache_subdir
843 with_default_locking_dir
844 with_default_data_alignment
847 ac_precious_vars
='build_alias
885 # Initialize some variables set by options.
887 ac_init_version
=false
888 ac_unrecognized_opts
=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
899 program_transform_name
=s
,x
,x
,
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir
='${exec_prefix}/bin'
914 sbindir
='${exec_prefix}/sbin'
915 libexecdir
='${exec_prefix}/libexec'
916 datarootdir
='${prefix}/share'
917 datadir
='${datarootdir}'
918 sysconfdir
='${prefix}/etc'
919 sharedstatedir
='${prefix}/com'
920 localstatedir
='${prefix}/var'
921 includedir
='${prefix}/include'
922 oldincludedir
='/usr/include'
923 docdir
='${datarootdir}/doc/${PACKAGE}'
924 infodir
='${datarootdir}/info'
929 libdir
='${exec_prefix}/lib'
930 localedir
='${datarootdir}/locale'
931 mandir
='${datarootdir}/man'
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\
$ac_option
945 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 # Accept the important Cygnus configure options, so we can diagnose typos.
951 case $ac_dashdash$ac_option in
955 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
957 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
960 -build |
--build |
--buil |
--bui |
--bu)
961 ac_prev
=build_alias
;;
962 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
963 build_alias
=$ac_optarg ;;
965 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
966 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
967 ac_prev
=cache_file
;;
968 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
969 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
970 cache_file
=$ac_optarg ;;
973 cache_file
=config.cache
;;
975 -datadir |
--datadir |
--datadi |
--datad)
977 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
978 datadir
=$ac_optarg ;;
980 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
981 |
--dataroo |
--dataro |
--datar)
982 ac_prev
=datarootdir
;;
983 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
984 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
985 datarootdir
=$ac_optarg ;;
987 -disable-* |
--disable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error $?
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=no
;;
1003 -docdir |
--docdir |
--docdi |
--doc |
--do)
1005 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1006 docdir
=$ac_optarg ;;
1008 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1010 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1011 dvidir
=$ac_optarg ;;
1013 -enable-* |
--enable-*)
1014 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1017 as_fn_error $?
"invalid feature name: $ac_useropt"
1018 ac_useropt_orig
=$ac_useropt
1019 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_
$ac_useropt"
1024 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep
=', ';;
1027 eval enable_
$ac_useropt=\
$ac_optarg ;;
1029 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1030 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1031 |
--exec |
--exe |
--ex)
1032 ac_prev
=exec_prefix
;;
1033 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1034 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1035 |
--exec=* |
--exe=* |
--ex=*)
1036 exec_prefix
=$ac_optarg ;;
1038 -gas |
--gas |
--ga |
--g)
1039 # Obsolete; use --with-gas.
1042 -help |
--help |
--hel |
--he |
-h)
1043 ac_init_help
=long
;;
1044 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1045 ac_init_help
=recursive
;;
1046 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1047 ac_init_help
=short
;;
1049 -host |
--host |
--hos |
--ho)
1050 ac_prev
=host_alias
;;
1051 -host=* |
--host=* |
--hos=* |
--ho=*)
1052 host_alias
=$ac_optarg ;;
1054 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1056 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1058 htmldir
=$ac_optarg ;;
1060 -includedir |
--includedir |
--includedi |
--included |
--include \
1061 |
--includ |
--inclu |
--incl |
--inc)
1062 ac_prev
=includedir
;;
1063 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1064 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1065 includedir
=$ac_optarg ;;
1067 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1069 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1070 infodir
=$ac_optarg ;;
1072 -libdir |
--libdir |
--libdi |
--libd)
1074 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1075 libdir
=$ac_optarg ;;
1077 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1078 |
--libexe |
--libex |
--libe)
1079 ac_prev
=libexecdir
;;
1080 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1081 |
--libexe=* |
--libex=* |
--libe=*)
1082 libexecdir
=$ac_optarg ;;
1084 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1085 ac_prev
=localedir
;;
1086 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1087 localedir
=$ac_optarg ;;
1089 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1090 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1091 ac_prev
=localstatedir
;;
1092 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1093 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1094 localstatedir
=$ac_optarg ;;
1096 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1098 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1099 mandir
=$ac_optarg ;;
1101 -nfp |
--nfp |
--nf)
1102 # Obsolete; use --without-fp.
1105 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1106 |
--no-cr |
--no-c |
-n)
1109 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1110 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1113 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1114 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1115 |
--oldin |
--oldi |
--old |
--ol |
--o)
1116 ac_prev
=oldincludedir
;;
1117 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1118 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1119 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1120 oldincludedir
=$ac_optarg ;;
1122 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1124 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1125 prefix
=$ac_optarg ;;
1127 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1128 |
--program-pre |
--program-pr |
--program-p)
1129 ac_prev
=program_prefix
;;
1130 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1131 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1132 program_prefix
=$ac_optarg ;;
1134 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1135 |
--program-suf |
--program-su |
--program-s)
1136 ac_prev
=program_suffix
;;
1137 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1138 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1139 program_suffix
=$ac_optarg ;;
1141 -program-transform-name |
--program-transform-name \
1142 |
--program-transform-nam |
--program-transform-na \
1143 |
--program-transform-n |
--program-transform- \
1144 |
--program-transform |
--program-transfor \
1145 |
--program-transfo |
--program-transf \
1146 |
--program-trans |
--program-tran \
1147 |
--progr-tra |
--program-tr |
--program-t)
1148 ac_prev
=program_transform_name
;;
1149 -program-transform-name=* |
--program-transform-name=* \
1150 |
--program-transform-nam=* |
--program-transform-na=* \
1151 |
--program-transform-n=* |
--program-transform-=* \
1152 |
--program-transform=* |
--program-transfor=* \
1153 |
--program-transfo=* |
--program-transf=* \
1154 |
--program-trans=* |
--program-tran=* \
1155 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1156 program_transform_name
=$ac_optarg ;;
1158 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1160 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1161 pdfdir
=$ac_optarg ;;
1163 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1165 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1168 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1169 |
-silent |
--silent |
--silen |
--sile |
--sil)
1172 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1174 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1176 sbindir
=$ac_optarg ;;
1178 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1179 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1180 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1182 ac_prev
=sharedstatedir
;;
1183 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1184 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1185 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1187 sharedstatedir
=$ac_optarg ;;
1189 -site |
--site |
--sit)
1191 -site=* |
--site=* |
--sit=*)
1194 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1196 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1197 srcdir
=$ac_optarg ;;
1199 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1200 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1201 ac_prev
=sysconfdir
;;
1202 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1203 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1204 sysconfdir
=$ac_optarg ;;
1206 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1207 ac_prev
=target_alias
;;
1208 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1209 target_alias
=$ac_optarg ;;
1211 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1214 -version |
--version |
--versio |
--versi |
--vers |
-V)
1215 ac_init_version
=: ;;
1218 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1221 as_fn_error $?
"invalid package name: $ac_useropt"
1222 ac_useropt_orig
=$ac_useropt
1223 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep
=', ';;
1231 eval with_
$ac_useropt=\
$ac_optarg ;;
1233 -without-* |
--without-*)
1234 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1237 as_fn_error $?
"invalid package name: $ac_useropt"
1238 ac_useropt_orig
=$ac_useropt
1239 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep
=', ';;
1247 eval with_
$ac_useropt=no
;;
1250 # Obsolete; use --with-x.
1253 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1254 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1255 ac_prev
=x_includes
;;
1256 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1257 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1258 x_includes
=$ac_optarg ;;
1260 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1261 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1262 ac_prev
=x_libraries
;;
1263 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1264 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1265 x_libraries
=$ac_optarg ;;
1267 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information"
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1276 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1278 eval $ac_envvar=\
$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 if test -n "$ac_prev"; then
1293 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error $?
"missing argument to $ac_option"
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1300 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 # Check all directory arguments for consistency.
1306 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val
=\$
$ac_var
1312 # Remove trailing slashes.
1315 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\
$ac_val;;
1318 # Be sure to have absolute directory names.
1320 [\\/$
]* | ?
:[\\/]* ) continue;;
1321 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1323 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1331 target
=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x
; then
1335 if test "x$build_alias" = x
; then
1336 cross_compiling
=maybe
1337 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used" >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1345 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1347 test "$silent" = yes && exec 6>/dev
/null
1350 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di
=`ls -di .` &&
1352 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $?
"working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $?
"pwd does not report name of working directory"
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted
=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir
=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1390 ac_srcdir_defaulted
=no
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1394 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1396 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1408 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 for ac_var
in $ac_precious_vars; do
1411 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1413 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1418 # Report the --help message.
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1424 \`configure' configures this package to adapt to many kinds of systems.
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1431 Defaults for the options are specified in brackets.
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1455 For better control, use the options below.
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1482 --build=BUILD configure
for building on BUILD
[guessed
]
1483 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1484 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1488 if test -n "$ac_init_help"; then
1493 --disable-option-checking ignore unrecognized
--enable/--with options
1494 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1495 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1496 --enable-static_link use this to link the tools to their libraries
1497 statically
(default is dynamic linking
1498 --enable-lvm1_fallback use this to fall back and use LVM1 binaries
if
1499 device-mapper is missing from the kernel
1500 --disable-readline disable readline support
1501 --enable-realtime enable realtime
clock support
1502 --enable-ocf enable Open Cluster Framework
(OCF
) compliant
1504 --enable-cmirrord enable the cluster mirror log daemon
1505 --enable-debug enable debugging
1506 --enable-profiling gather gcov profiling data
1507 --enable-testing enable testing targets
in the makefile
1508 --enable-valgrind-pool enable valgrind awareness of pools
1509 --disable-devmapper disable LVM2 device-mapper interaction
1510 --enable-udev_sync enable synchronisation with udev processing
1511 --enable-udev_rules install rule files needed
for udev synchronisation
1512 --enable-compat enable support
for old device-mapper versions
1513 --enable-units-compat enable output compatibility with old versions that
1514 that
do not use KiB-style unit suffixes
1515 --disable-driver disable calls to device-mapper
in the kernel
1516 --disable-o_direct disable O_DIRECT
1517 --enable-applib build application library
1518 --enable-cmdlib build shared
command library
1519 --enable-pkgconfig install pkgconfig support
1520 --enable-write_install install user writable files
1521 --disable-fsadm disable fsadm
1522 --enable-dmeventd enable the device-mapper event daemon
1523 --disable-selinux disable selinux support
1524 --enable-nls enable Native Language Support
1527 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1528 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1529 --with-user=USER
set the owner of installed files
[[USER
=]]
1530 --with-group=GROUP
set the group owner of installed files
[[GROUP
=]]
1531 --with-device-uid=UID
set the owner used
for new device nodes
[[UID
=0]]
1532 --with-device-gid=GID
set the group used
for new device nodes
[[GID
=0]]
1533 --with-device-mode=MODE
set the mode used
for new device nodes
[[MODE
=0600]]
1534 --with-device-nodes-on=ON
1535 create nodes on resume or create
[[ON
=resume
]]
1536 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1538 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1540 --with-cluster=TYPE cluster LVM locking support
: internal
/shared
/none
1542 --with-snapshots=TYPE snapshot support
: internal
/shared
/none
1544 --with-mirrors=TYPE mirror support
: internal
/shared
/none
1546 --with-replicators=TYPE replicator support
: internal
/shared
/none
1548 --with-ocfdir=DIR
install OCF files
in DIR
1549 [[PREFIX
/lib
/ocf
/resource.d
/lvm2
]]
1550 --with-clvmd=TYPE build cluster LVM Daemon
1551 The following cluster manager combinations are valid
:
1552 * cman
,gulm
(RHEL4 or equivalent
)
1553 * cman
(RHEL5 or equivalent
)
1554 * cman
,corosync
,openais
(or selection of them
)
1555 * singlenode
(localhost only
)
1557 * none
(disable build
)
1559 --with-clvmd-pidfile=PATH
1560 clvmd pidfile
[[/var
/run
/clvmd.pid
]]
1561 --with-cmirrord-pidfile=PATH
1562 cmirrord pidfile
[[/var
/run
/cmirrord.pid
]]
1563 --with-optimisation=OPT C optimisation flag
[[OPT
=-O2]]
1564 --with-localedir=DIR translation files
in DIR
[[PREFIX
/share
/locale
]]
1565 --with-confdir=DIR configuration files
in DIR
[[/etc
]]
1566 --with-staticdir=DIR static binaries
in DIR
[[EPREFIX
/sbin
]]
1567 --with-usrlibdir=DIR usrlib
in DIR
[[PREFIX
/lib
]]
1568 --with-usrsbindir=DIR usrsbin executables
in DIR
[[PREFIX
/sbin
]]
1569 --with-udev-prefix=UPREFIX
1570 install udev rule files
in UPREFIX
[[EPREFIX
]]
1571 --with-udevdir=DIR udev rules
in DIR
[[UPREFIX
/lib
/udev
/rules.d
]]
1572 --with-dmeventd-pidfile=PATH
1573 dmeventd pidfile
[[/var
/run
/dmeventd.pid
]]
1574 --with-dmeventd-path=PATH
1575 dmeventd path
[[EPREFIX
/sbin
/dmeventd
]]
1576 --with-default-run-dir=DIR Default run directory
[/var
/run
/lvm
]
1577 --with-default-system-dir=DIR
1578 default LVM system directory
[[/etc
/lvm
]]
1579 --with-default-archive-subdir=SUBDIR
1580 default metadata archive subdir
[[archive
]]
1581 --with-default-backup-subdir=SUBDIR
1582 default metadata backup subdir
[[backup
]]
1583 --with-default-cache-subdir=SUBDIR
1584 default metadata cache subdir
[[cache
]]
1585 --with-default-locking-dir=DIR
1586 default locking directory
[[/var
/lock
/lvm
]]
1587 --with-default-data-alignment=NUM
1588 set the default data alignment
in MiB
[[1]]
1589 --with-interface=IFACE choose kernel interface
(ioctl
) [[ioctl
]]
1591 Some influential environment variables
:
1592 CC C compiler
command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1595 nonstandard directory
<lib dir
>
1596 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1597 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1598 you have headers
in a nonstandard directory
<include dir
>
1600 PKG_CONFIG path to pkg-config utility
1602 directories to add to pkg-config
's search path
1604 path overriding pkg-config's built-in search path
1605 PKGCONFIGINIT_CFLAGS
1606 C compiler flags
for PKGCONFIGINIT
, overriding pkg-config
1608 linker flags
for PKGCONFIGINIT
, overriding pkg-config
1609 CCS_CFLAGS C compiler flags
for CCS
, overriding pkg-config
1610 CCS_LIBS linker flags
for CCS
, overriding pkg-config
1611 GULM_CFLAGS C compiler flags
for GULM
, overriding pkg-config
1612 GULM_LIBS linker flags
for GULM
, overriding pkg-config
1613 CMAN_CFLAGS C compiler flags
for CMAN
, overriding pkg-config
1614 CMAN_LIBS linker flags
for CMAN
, overriding pkg-config
1616 C compiler flags
for COROSYNC
, overriding pkg-config
1618 linker flags
for COROSYNC
, overriding pkg-config
1620 C compiler flags
for QUORUM
, overriding pkg-config
1621 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1623 C compiler flags
for SALCK
, overriding pkg-config
1624 SALCK_LIBS linker flags
for SALCK
, overriding pkg-config
1626 C compiler flags
for CONFDB
, overriding pkg-config
1627 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1628 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1629 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1630 DLM_CFLAGS C compiler flags
for DLM
, overriding pkg-config
1631 DLM_LIBS linker flags
for DLM
, overriding pkg-config
1633 C compiler flags
for SACKPT
, overriding pkg-config
1634 SACKPT_LIBS linker flags
for SACKPT
, overriding pkg-config
1635 UDEV_CFLAGS C compiler flags
for UDEV
, overriding pkg-config
1636 UDEV_LIBS linker flags
for UDEV
, overriding pkg-config
1638 Use these variables to override the choices made by
`configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1641 Report bugs to the package provider.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1671 .) # We are building in place.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1705 generated by GNU Autoconf 2.66
1707 Copyright (C) 2010 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1728 *) ac_try_echo
=$ac_try;;
1730 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1734 if test -s conftest.err
; then
1735 grep -v '^ *+' conftest.err
>conftest.er1
1736 cat conftest.er1
>&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.
$ac_objext; then :
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.
$ac_ext >&5
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1752 as_fn_set_status
$ac_retval
1754 } # ac_fn_c_try_compile
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } >/dev/null && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 as_fn_set_status $ac_retval
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1803 *) ac_try_echo
=$ac_try;;
1805 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1809 if test -s conftest.err
; then
1810 grep -v '^ *+' conftest.err
>conftest.er1
1811 cat conftest.er1
>&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest
$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 $as_test_x conftest
$ac_exeext
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.
$ac_ext >&5
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1835 as_fn_set_status
$ac_retval
1837 } # ac_fn_c_try_link
1839 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842 # the include files in INCLUDES and setting the cache variable VAR
1844 ac_fn_c_check_header_mongrel
()
1846 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1847 if eval "test \"\${$3+set}\"" = set; then :
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval "test \"\${$3+set}\"" = set; then :
1851 $as_echo_n "(cached) " >&6
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 # Is the header compilable?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859 $as_echo_n "checking $2 usability... " >&6; }
1860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1865 if ac_fn_c_try_compile
"$LINENO"; then :
1866 ac_header_compiler
=yes
1868 ac_header_compiler
=no
1870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1872 $as_echo "$ac_header_compiler" >&6; }
1874 # Is the header present?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876 $as_echo_n "checking $2 presence... " >&6; }
1877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1881 if ac_fn_c_try_cpp
"$LINENO"; then :
1882 ac_header_preproc
=yes
1884 ac_header_preproc
=no
1886 rm -f conftest.err conftest.
$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1888 $as_echo "$ac_header_preproc" >&6; }
1890 # So? What about this header?
1891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1902 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1906 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 $as_echo_n "(cached) " >&6
1916 eval "$3=\$ac_header_compiler"
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1924 } # ac_fn_c_check_header_mongrel
1926 # ac_fn_c_try_run LINENO
1927 # ----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929 # that executables *can* be run.
1932 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1933 if { { ac_try
="$ac_link"
1935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>&5
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1944 { { case "(($ac_try" in
1945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1946 *) ac_try_echo
=$ac_try;;
1948 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_try") 2>&5
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; }; }; then :
1956 $as_echo "$as_me: program exited with status $ac_status" >&5
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1960 ac_retval
=$ac_status
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1964 as_fn_set_status
$ac_retval
1968 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1969 # -------------------------------------------------------
1970 # Tests whether HEADER exists and can be compiled using the include files in
1971 # INCLUDES, setting the cache variable VAR accordingly.
1972 ac_fn_c_check_header_compile
()
1974 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval "test \"\${$3+set}\"" = set; then :
1978 $as_echo_n "(cached) " >&6
1980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1997 } # ac_fn_c_check_header_compile
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member
()
2005 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval "test \"\${$4+set}\"" = set; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2024 if ac_fn_c_try_compile
"$LINENO"; then :
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2034 if (sizeof ac_aggr.$3)
2040 if ac_fn_c_try_compile
"$LINENO"; then :
2045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2054 } # ac_fn_c_check_member
2056 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057 # -------------------------------------------
2058 # Tests whether TYPE exists after having included INCLUDES, setting cache
2059 # variable VAR accordingly.
2060 ac_fn_c_check_type
()
2062 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2081 if ac_fn_c_try_compile
"$LINENO"; then :
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2094 if ac_fn_c_try_compile
"$LINENO"; then :
2099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2108 } # ac_fn_c_check_type
2110 # ac_fn_c_find_intX_t LINENO BITS VAR
2111 # -----------------------------------
2112 # Finds a signed integer type with width BITS, setting cache variable VAR
2114 ac_fn_c_find_intX_t
()
2116 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2118 $as_echo_n "checking for int$2_t... " >&6; }
2119 if eval "test \"\${$3+set}\"" = set; then :
2120 $as_echo_n "(cached) " >&6
2123 # Order is important - never check a type that is potentially smaller
2124 # than half of the expected target width.
2125 for ac_type
in int
$2_t 'int' 'long int' \
2126 'long long int' 'short int' 'signed char'; do
2127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $ac_includes_default
2130 enum { N = $2 / 2 - 1 };
2134 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2149 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2150 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2157 if ac_fn_c_try_compile
"$LINENO"; then :
2164 eval "$3=\$ac_type" ;;
2167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2170 if eval test \"x\$
"$3"\" = x
"no"; then :
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2182 } # ac_fn_c_find_intX_t
2184 # ac_fn_c_find_uintX_t LINENO BITS VAR
2185 # ------------------------------------
2186 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2188 ac_fn_c_find_uintX_t
()
2190 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2192 $as_echo_n "checking for uint$2_t... " >&6; }
2193 if eval "test \"\${$3+set}\"" = set; then :
2194 $as_echo_n "(cached) " >&6
2197 # Order is important - never check a type that is potentially smaller
2198 # than half of the expected target width.
2199 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2200 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $ac_includes_default
2207 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2214 if ac_fn_c_try_compile
"$LINENO"; then :
2219 eval "$3=\$ac_type" ;;
2222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 if eval test \"x\$
"$3"\" = x
"no"; then :
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2235 } # ac_fn_c_find_uintX_t
2237 # ac_fn_c_check_func LINENO FUNC VAR
2238 # ----------------------------------
2239 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2240 ac_fn_c_check_func
()
2242 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if eval "test \"\${$3+set}\"" = set; then :
2246 $as_echo_n "(cached) " >&6
2248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2252 #define $2 innocuous_$2
2254 /* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $2 (); below.
2256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2257 <limits.h> exists even on freestanding compilers. */
2260 # include <limits.h>
2262 # include <assert.h>
2267 /* Override any GCC internal prototype to avoid an error.
2268 Use char because int might match the return type of a GCC
2269 builtin and then its argument prototype would still apply. */
2274 /* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277 #if defined __stub_$2 || defined __stub___$2
2289 if ac_fn_c_try_link
"$LINENO"; then :
2294 rm -f core conftest.err conftest.
$ac_objext \
2295 conftest
$ac_exeext conftest.
$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2302 } # ac_fn_c_check_func
2303 cat >config.log
<<_ACEOF
2304 This file contains any messages produced by compilers while
2305 running configure, to aid debugging if configure makes a mistake.
2307 It was created by $as_me, which was
2308 generated by GNU Autoconf 2.66. Invocation command line was
2320 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2326 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2329 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir
=.
2344 $as_echo "PATH: $as_dir"
2360 # Keep a trace of the command line.
2361 # Strip out --no-create and --no-recursion so they do not pile up.
2362 # Strip out --silent because we don't want to record it for future runs.
2363 # Also quote any args containing shell meta-characters.
2364 # Make two passes to allow for proper duplicate-argument suppression.
2368 ac_must_keep_next
=false
2374 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2376 |
-silent |
--silent |
--silen |
--sile |
--sil)
2379 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2384 as_fn_append ac_configure_args1
" '$ac_arg'"
2385 if test $ac_must_keep_next = true
; then
2386 ac_must_keep_next
=false
# Got value, back to normal.
2389 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2390 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2391 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2392 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2397 -* ) ac_must_keep_next
=true
;;
2400 as_fn_append ac_configure_args
" '$ac_arg'"
2405 { ac_configure_args0
=; unset ac_configure_args0
;}
2406 { ac_configure_args1
=; unset ac_configure_args1
;}
2408 # When interrupted or exit'd, cleanup temporary files, and complete
2409 # config.log. We remove comments because anyway the quotes in there
2410 # would cause problems or look ugly.
2411 # WARNING: Use '\'' to represent an apostrophe within the trap.
2412 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413 trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2418 $as_echo "## ---------------- ##
2419 ## Cache variables. ##
2420 ## ---------------- ##"
2422 # The following way of writing the cache mishandles newlines in values,
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454 $as_echo "## ----------------- ##
2455 ## Output variables. ##
2456 ## ----------------- ##"
2458 for ac_var in $ac_subst_vars
2460 eval ac_val=\$$ac_var
2462 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 $as_echo "$ac_var='\''$ac_val'\''"
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470 ## File substitutions. ##
2471 ## ------------------- ##"
2473 for ac_var
in $ac_subst_files
2475 eval ac_val
=\$
$ac_var
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 $as_echo "$ac_var='\''$ac_val'\''"
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2500 for ac_signal
in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2506 rm -f -r conftest
* confdefs.h
2508 $as_echo "/* confdefs.h */" > confdefs.h
2510 # Predefined preprocessor variables.
2512 cat >>confdefs.h
<<_ACEOF
2513 #define PACKAGE_NAME "$PACKAGE_NAME"
2516 cat >>confdefs.h
<<_ACEOF
2517 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2520 cat >>confdefs.h
<<_ACEOF
2521 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2524 cat >>confdefs.h
<<_ACEOF
2525 #define PACKAGE_STRING "$PACKAGE_STRING"
2528 cat >>confdefs.h
<<_ACEOF
2529 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2532 cat >>confdefs.h
<<_ACEOF
2533 #define PACKAGE_URL "$PACKAGE_URL"
2537 # Let the site file select an alternate cache file if it wants to.
2538 # Prefer an explicitly selected file to automatically selected ones.
2541 if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2545 */*) ac_site_file1
=$CONFIG_SITE;;
2546 *) ac_site_file1
=.
/$CONFIG_SITE;;
2548 elif test "x$prefix" != xNONE
; then
2549 ac_site_file1
=$prefix/share
/config.site
2550 ac_site_file2
=$prefix/etc
/config.site
2552 ac_site_file1
=$ac_default_prefix/share
/config.site
2553 ac_site_file2
=$ac_default_prefix/etc
/config.site
2555 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2557 test "x$ac_site_file" = xNONE
&& continue
2558 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2563 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 as_fn_error $?
"failed to load site script $ac_site_file
2566 See \`config.log' for more details" "$LINENO" 5; }
2570 if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575 $as_echo "$as_me: loading cache $cache_file" >&6;}
2577 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2578 *) .
"./$cache_file";;
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583 $as_echo "$as_me: creating cache $cache_file" >&6;}
2587 as_fn_append ac_header_list
" stdlib.h"
2588 as_fn_append ac_header_list
" unistd.h"
2589 as_fn_append ac_header_list
" sys/param.h"
2590 # Check that the precious variables saved in the cache have kept the same
2592 ac_cache_corrupted
=false
2593 for ac_var
in $ac_precious_vars; do
2594 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2595 eval ac_new_set
=\
$ac_env_${ac_var}_set
2596 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2597 eval ac_new_val
=\
$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted
=: ;;
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted
=: ;;
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w
=`echo x $ac_old_val`
2612 ac_new_val_w
=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted
=:
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\
$ac_old_val
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2631 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg
=$ac_var=$ac_new_val ;;
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2640 if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2652 ac_cpp
='$CPP $CPPFLAGS'
2653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2659 ac_config_headers
="$ac_config_headers lib/misc/configure.h"
2662 ################################################################################
2664 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2665 if test -f "$ac_dir/install-sh"; then
2667 ac_install_sh
="$ac_aux_dir/install-sh -c"
2669 elif test -f "$ac_dir/install.sh"; then
2671 ac_install_sh
="$ac_aux_dir/install.sh -c"
2673 elif test -f "$ac_dir/shtool"; then
2675 ac_install_sh
="$ac_aux_dir/shtool install -c"
2679 if test -z "$ac_aux_dir"; then
2680 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2683 # These three variables are undocumented and unsupported,
2684 # and are intended to be withdrawn in a future Autoconf release.
2685 # They can cause serious problems if a builder's source tree is in a directory
2686 # whose full name contains unusual characters.
2687 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2693 ################################################################################
2694 # Make sure we can run config.sub.
2695 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2696 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2699 $as_echo_n "checking build system type... " >&6; }
2700 if test "${ac_cv_build+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 ac_build_alias
=$build_alias
2704 test "x$ac_build_alias" = x
&&
2705 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2706 test "x$ac_build_alias" = x
&&
2707 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2708 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2709 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2713 $as_echo "$ac_cv_build" >&6; }
2714 case $ac_cv_build in
2716 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2719 ac_save_IFS
=$IFS; IFS
='-'
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2729 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2733 $as_echo_n "checking host system type... " >&6; }
2734 if test "${ac_cv_host+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test "x$host_alias" = x
; then
2738 ac_cv_host
=$ac_cv_build
2740 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2741 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2746 $as_echo "$ac_cv_host" >&6; }
2749 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2752 ac_save_IFS
=$IFS; IFS
='-'
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2762 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2766 $as_echo_n "checking target system type... " >&6; }
2767 if test "${ac_cv_target+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2770 if test "x$target_alias" = x
; then
2771 ac_cv_target
=$ac_cv_host
2773 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2774 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2779 $as_echo "$ac_cv_target" >&6; }
2780 case $ac_cv_target in
2782 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2784 target
=$ac_cv_target
2785 ac_save_IFS
=$IFS; IFS
='-'
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2795 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2798 # The aliases save the names the user supplied, while $host etc.
2799 # will get canonicalized.
2800 test -n "$target_alias" &&
2801 test "$program_prefix$program_suffix$program_transform_name" = \
2803 program_prefix
=${target_alias}-
2808 COPTIMISE_FLAG
="-O2"
2809 CLDFLAGS
="$CLDFLAGS -Wl,--version-script,.export.sym"
2810 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
2811 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
2812 LDDEPS
="$LDDEPS .export.sym"
2813 LDFLAGS
="$LDFLAGS -Wl,--export-dynamic"
2823 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
2824 COPTIMISE_FLAG
="-O2"
2825 CLDFLAGS
="$CLDFLAGS"
2826 CLDWHOLEARCHIVE
="-all_load"
2838 ################################################################################
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2840 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2841 if test "${ac_cv_path_SED+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2844 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2845 for ac_i
in 1 2 3 4 5 6 7; do
2846 ac_script
="$ac_script$as_nl$ac_script"
2848 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2849 { ac_script
=; unset ac_script
;}
2850 if test -z "$SED"; then
2851 ac_path_SED_found
=false
2852 # Loop through the user's path and test for each of PROGNAME-LIST
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir
=.
2858 for ac_prog
in sed gsed
; do
2859 for ac_exec_ext
in '' $ac_executable_extensions; do
2860 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2861 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
2862 # Check for GNU ac_path_SED and select it if it is found.
2863 # Check for GNU $ac_path_SED
2864 case `"$ac_path_SED" --version 2>&1` in
2866 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2869 $as_echo_n 0123456789 >"conftest.in"
2872 cat "conftest.in" "conftest.in" >"conftest.tmp"
2873 mv "conftest.tmp" "conftest.in"
2874 cp "conftest.in" "conftest.nl"
2875 $as_echo '' >> "conftest.nl"
2876 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2877 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2878 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2879 if test $ac_count -gt ${ac_path_SED_max-0}; then
2880 # Best one so far, save it but keep looking for a better one
2881 ac_cv_path_SED
="$ac_path_SED"
2882 ac_path_SED_max
=$ac_count
2884 # 10*(2^10) chars as input seems more than enough
2885 test $ac_count -gt 10 && break
2887 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2890 $ac_path_SED_found && break 3
2895 if test -z "$ac_cv_path_SED"; then
2896 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2904 $as_echo "$ac_cv_path_SED" >&6; }
2905 SED
="$ac_cv_path_SED"
2908 for ac_prog
in gawk mawk nawk
awk
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy
$ac_prog; ac_word
=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_AWK+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir
=.
2925 for ac_exec_ext
in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_AWK
="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940 $as_echo "$AWK" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$AWK" && break
2951 ac_cpp
='$CPP $CPPFLAGS'
2952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_CC+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC
="$CC" # Let the user override the test.
2966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir
=.
2971 for ac_exec_ext
in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2994 if test -z "$ac_cv_prog_CC"; then
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc
; ac_word
=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir
=.
3011 for ac_exec_ext
in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_CC
="gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3032 if test "x$ac_ct_CC" = x
; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned
=yes ;;
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC
="$CC" # Let the user override the test.
3059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir
=.
3064 for ac_exec_ext
in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3088 if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc
; ac_word
=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC
="$CC" # Let the user override the test.
3100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir
=.
3105 for ac_exec_ext
in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected
=yes
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy
$ac_cv_prog_CC
3123 if test $# != 0; then
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3128 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 for ac_prog
in cl.exe
3148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC
="$CC" # Let the user override the test.
3158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir
=.
3163 for ac_exec_ext
in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3185 test -n "$CC" && break
3188 if test -z "$CC"; then
3190 for ac_prog
in cl.exe
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy
$ac_prog; ac_word
=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir
=.
3207 for ac_exec_ext
in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC
="$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$ac_ct_CC" && break
3232 if test "x$ac_ct_CC" = x
; then
3235 case $cross_compiling:$ac_tool_warned in
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned
=yes ;;
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $?
"no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257 for ac_option
in --version -v -V -qversion; do
3258 { { ac_try
="$ac_compiler $ac_option >&5"
3260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 if test -s conftest.err; then
3269 ... rest of stderr output deleted ...
3270 10q' conftest.err >conftest.er1
3271 cat conftest.er1 >&5
3273 rm -f conftest.er1 conftest.err
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { { ac_try="$ac_link_default"
3313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3314 *) ac_try_echo
=$ac_try;;
3316 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link_default") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3327 for ac_file
in $ac_files ''
3329 test -f "$ac_file" ||
continue
3331 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3334 # We found the default executable, but exeext='' is most
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3340 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3352 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3357 if test -z "$ac_file"; then :
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error
77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext
=$ac_cv_exeext
3377 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3378 ac_clean_files
=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try
="$ac_link"
3383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3393 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 for ac_file
in conftest.exe conftest conftest.
*; do
3397 test -f "$ac_file" ||
continue
3399 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3400 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3411 rm -f conftest conftest
$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3415 rm -f conftest.
$ac_ext
3416 EXEEXT
=$ac_cv_exeext
3418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3424 FILE *f = fopen ("conftest.out", "w");
3425 return ferror (f) || fclose (f) != 0;
3431 ac_clean_files
="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437 { { ac_try
="$ac_link"
3439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 if { ac_try='./conftest$ac_cv_exeext'
3449 { { case "(($ac_try" in
3450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3451 *) ac_try_echo
=$ac_try;;
3453 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_try") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; }; then
3461 if test "$cross_compiling" = maybe
; then
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $?
"cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3475 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3476 ac_clean_files
=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if test "${ac_cv_objext+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try
="$ac_compile"
3496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compile") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3520 See \
`config.log' for more details" "$LINENO" 5; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3547 if ac_fn_c_try_compile "$LINENO"; then :
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if test "${ac_cv_prog_cc_g+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 if ac_fn_c_try_compile "$LINENO"; then :
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_cv_prog_cc_c89=no
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3670 s = g (p, va_arg (v,int));
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 CC="$ac_save_CC $ac_arg"
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_c89=$ac_arg
3710 rm -f core conftest.err conftest.$ac_objext
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3713 rm -f conftest.$ac_ext
3718 case "x$ac_cv_prog_cc_c89" in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3726 CC="$CC $ac_cv_prog_cc_c89"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3748 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3753 if test -z "$CPP"; then
3754 if test "${ac_cv_prog_CPP+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3757 # Double quotes because CPP needs to be expanded
3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 for ac_c_preproc_warn_flag in '' yes
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3772 # include <limits.h>
3774 # include <assert.h>
3778 if ac_fn_c_try_cpp "$LINENO"; then :
3781 # Broken: fails on valid input.
3784 rm -f conftest.err conftest.$ac_ext
3786 # OK, works on sane cases. Now check whether nonexistent headers
3787 # can be detected and how.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #include <ac_nonexistent.h>
3792 if ac_fn_c_try_cpp "$LINENO"; then :
3793 # Broken: success on invalid input.
3796 # Passes both tests.
3800 rm -f conftest.err conftest.$ac_ext
3803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3804 rm -f conftest.err conftest.
$ac_ext
3805 if $ac_preproc_ok; then :
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3818 $as_echo "$CPP" >&6; }
3820 for ac_c_preproc_warn_flag
in '' yes
3822 # Use a header file that comes with gcc, so configuring glibc
3823 # with a fresh cross-compiler works.
3824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3825 # <limits.h> exists even on freestanding compilers.
3826 # On the NeXT, cc -E runs the code through the compiler's parser,
3827 # not just through cpp. "Syntax error" is here to catch this case.
3828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3831 # include <limits.h>
3833 # include <assert.h>
3837 if ac_fn_c_try_cpp
"$LINENO"; then :
3840 # Broken: fails on valid input.
3843 rm -f conftest.err conftest.
$ac_ext
3845 # OK, works on sane cases. Now check whether nonexistent headers
3846 # can be detected and how.
3847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3851 if ac_fn_c_try_cpp
"$LINENO"; then :
3852 # Broken: success on invalid input.
3855 # Passes both tests.
3859 rm -f conftest.err conftest.
$ac_ext
3862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3863 rm -f conftest.err conftest.
$ac_ext
3864 if $ac_preproc_ok; then :
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3870 See \`config.log' for more details" "$LINENO" 5; }
3874 ac_cpp
='$CPP $CPPFLAGS'
3875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3881 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3882 if test "${ac_cv_path_GREP+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3885 if test -z "$GREP"; then
3886 ac_path_GREP_found
=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3889 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3892 test -z "$as_dir" && as_dir
=.
3893 for ac_prog
in grep ggrep
; do
3894 for ac_exec_ext
in '' $ac_executable_extensions; do
3895 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3897 # Check for GNU ac_path_GREP and select it if it is found.
3898 # Check for GNU $ac_path_GREP
3899 case `"$ac_path_GREP" --version 2>&1` in
3901 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3904 $as_echo_n 0123456789 >"conftest.in"
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'GREP' >> "conftest.nl"
3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3912 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3913 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_GREP
="$ac_path_GREP"
3917 ac_path_GREP_max
=$ac_count
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3922 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3925 $ac_path_GREP_found && break 3
3930 if test -z "$ac_cv_path_GREP"; then
3931 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3934 ac_cv_path_GREP
=$GREP
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3939 $as_echo "$ac_cv_path_GREP" >&6; }
3940 GREP
="$ac_cv_path_GREP"
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3944 $as_echo_n "checking for egrep... " >&6; }
3945 if test "${ac_cv_path_EGREP+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3948 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3949 then ac_cv_path_EGREP
="$GREP -E"
3951 if test -z "$EGREP"; then
3952 ac_path_EGREP_found
=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3955 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3958 test -z "$as_dir" && as_dir
=.
3959 for ac_prog
in egrep; do
3960 for ac_exec_ext
in '' $ac_executable_extensions; do
3961 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3963 # Check for GNU ac_path_EGREP and select it if it is found.
3964 # Check for GNU $ac_path_EGREP
3965 case `"$ac_path_EGREP" --version 2>&1` in
3967 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3970 $as_echo_n 0123456789 >"conftest.in"
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'EGREP' >> "conftest.nl"
3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3978 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3979 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_EGREP
="$ac_path_EGREP"
3983 ac_path_EGREP_max
=$ac_count
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3988 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3991 $ac_path_EGREP_found && break 3
3996 if test -z "$ac_cv_path_EGREP"; then
3997 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4000 ac_cv_path_EGREP
=$EGREP
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4006 $as_echo "$ac_cv_path_EGREP" >&6; }
4007 EGREP
="$ac_cv_path_EGREP"
4010 if test $ac_cv_c_compiler_gnu = yes; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4012 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4013 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4016 ac_pattern
="Autoconf.*'x'"
4017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4024 ac_cv_prog_gcc_traditional
=yes
4026 ac_cv_prog_gcc_traditional
=no
4031 if test $ac_cv_prog_gcc_traditional = no
; then
4032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4039 ac_cv_prog_gcc_traditional
=yes
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4046 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4047 if test $ac_cv_prog_gcc_traditional = yes; then
4048 CC
="$CC -traditional"
4052 # Find a good install program. We prefer a C program (faster),
4053 # so one script is as good as another. But avoid the broken or
4054 # incompatible versions:
4055 # SysV /etc/install, /usr/sbin/install
4056 # SunOS /usr/etc/install
4057 # IRIX /sbin/install
4059 # AmigaOS /C/install, which installs bootblocks on floppy discs
4060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4063 # OS/2's system install, which has a completely different semantic
4064 # ./install, which can be erroneously created by make from ./install.sh.
4065 # Reject install programs that cannot install multiple files.
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4067 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4068 if test -z "$INSTALL"; then
4069 if test "${ac_cv_path_install+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir
=.
4077 # Account for people who put trailing slashes in PATH elements.
4078 case $as_dir/ in #((
4079 .
/ | .
// |
/[cC
]/* | \
4080 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4081 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4084 # OSF1 and SCO ODT 3.0 have their own names for install.
4085 # Don't use installbsd from OSF since it installs stuff as root
4087 for ac_prog
in ginstall scoinst
install; do
4088 for ac_exec_ext
in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4090 if test $ac_prog = install &&
4091 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4092 # AIX install. It has an incompatible calling convention.
4094 elif test $ac_prog = install &&
4095 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4096 # program-specific install script used by HP pwplus--don't use.
4099 rm -rf conftest.one conftest.two conftest.dir
4100 echo one
> conftest.one
4101 echo two
> conftest.two
4103 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4104 test -s conftest.one
&& test -s conftest.two
&&
4105 test -s conftest.dir
/conftest.one
&&
4106 test -s conftest.dir
/conftest.two
4108 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4121 rm -rf conftest.one conftest.two conftest.dir
4124 if test "${ac_cv_path_install+set}" = set; then
4125 INSTALL
=$ac_cv_path_install
4127 # As a last resort, use the slow shell script. Don't cache a
4128 # value for INSTALL within a source directory, because that will
4129 # break other packages using the cache if that directory is
4130 # removed, or if the value is a relative name.
4131 INSTALL
=$ac_install_sh
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4135 $as_echo "$INSTALL" >&6; }
4137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4138 # It thinks the first close brace ends the variable substitution.
4139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4143 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4146 $as_echo_n "checking whether ln -s works... " >&6; }
4148 if test "$LN_S" = "ln -s"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4153 $as_echo "no, using $LN_S" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4157 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4159 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4160 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4161 $as_echo_n "(cached) " >&6
4163 cat >conftest.
make <<\_ACEOF
4166 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4168 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4169 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4171 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4173 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4177 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 SET_MAKE
="MAKE=${MAKE-make}"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4188 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4189 if test -z "$MKDIR_P"; then
4190 if test "${ac_cv_path_mkdir+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4197 test -z "$as_dir" && as_dir
=.
4198 for ac_prog
in mkdir gmkdir
; do
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4201 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4202 'mkdir (GNU coreutils) '* | \
4203 'mkdir (coreutils) '* | \
4204 'mkdir (fileutils) '4.1*)
4205 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4215 test -d .
/--version && rmdir .
/--version
4216 if test "${ac_cv_path_mkdir+set}" = set; then
4217 MKDIR_P
="$ac_cv_path_mkdir -p"
4219 # As a last resort, use the slow shell script. Don't cache a
4220 # value for MKDIR_P within a source directory, because that will
4221 # break other packages using the cache if that directory is
4222 # removed, or if the value is a relative name.
4223 MKDIR_P
="$ac_install_sh -d"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4227 $as_echo "$MKDIR_P" >&6; }
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4231 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$RANLIB"; then
4238 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir
=.
4245 for ac_exec_ext
in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 RANLIB
=$ac_cv_prog_RANLIB
4258 if test -n "$RANLIB"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4260 $as_echo "$RANLIB" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4268 if test -z "$ac_cv_prog_RANLIB"; then
4269 ac_ct_RANLIB
=$RANLIB
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib
; ac_word
=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4277 if test -n "$ac_ct_RANLIB"; then
4278 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir
=.
4285 for ac_exec_ext
in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4298 if test -n "$ac_ct_RANLIB"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4300 $as_echo "$ac_ct_RANLIB" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4306 if test "x$ac_ct_RANLIB" = x
; then
4309 case $cross_compiling:$ac_tool_warned in
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4313 ac_tool_warned
=yes ;;
4315 RANLIB
=$ac_ct_RANLIB
4318 RANLIB
="$ac_cv_prog_RANLIB"
4321 # Extract the first word of "cflow", so it can be a program name with args.
4322 set dummy cflow
; ac_word
=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4330 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
4333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir
=.
4338 for ac_exec_ext
in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
4352 if test -n "$CFLOW_CMD"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4354 $as_echo "$CFLOW_CMD" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 # Extract the first word of "cscope", so it can be a program name with args.
4362 set dummy cscope
; ac_word
=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4370 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_exec_ext
in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
4392 if test -n "$CSCOPE_CMD"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4394 $as_echo "$CSCOPE_CMD" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4402 ################################################################################
4404 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4405 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4407 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4408 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4409 $as_echo_n "(cached) " >&6
4411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <sys/types.h>
4425 if ac_fn_c_try_compile
"$LINENO"; then :
4426 eval "$as_ac_Header=yes"
4428 eval "$as_ac_Header=no"
4430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4432 eval ac_res
=\$
$as_ac_Header
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4434 $as_echo "$ac_res" >&6; }
4435 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4436 cat >>confdefs.h
<<_ACEOF
4437 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4440 ac_header_dirent
=$ac_hdr; break
4444 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4445 if test $ac_header_dirent = dirent.h
; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4447 $as_echo_n "checking for library containing opendir... " >&6; }
4448 if test "${ac_cv_search_opendir+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4451 ac_func_search_save_LIBS
=$LIBS
4452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4455 /* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4470 for ac_lib
in '' dir
; do
4471 if test -z "$ac_lib"; then
4472 ac_res
="none required"
4475 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4477 if ac_fn_c_try_link
"$LINENO"; then :
4478 ac_cv_search_opendir
=$ac_res
4480 rm -f core conftest.err conftest.
$ac_objext \
4482 if test "${ac_cv_search_opendir+set}" = set; then :
4486 if test "${ac_cv_search_opendir+set}" = set; then :
4489 ac_cv_search_opendir
=no
4492 LIBS
=$ac_func_search_save_LIBS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4495 $as_echo "$ac_cv_search_opendir" >&6; }
4496 ac_res
=$ac_cv_search_opendir
4497 if test "$ac_res" != no
; then :
4498 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4504 $as_echo_n "checking for library containing opendir... " >&6; }
4505 if test "${ac_cv_search_opendir+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4508 ac_func_search_save_LIBS
=$LIBS
4509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4512 /* Override any GCC internal prototype to avoid an error.
4513 Use char because int might match the return type of a GCC
4514 builtin and then its argument prototype would still apply. */
4527 for ac_lib
in '' x
; do
4528 if test -z "$ac_lib"; then
4529 ac_res
="none required"
4532 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4534 if ac_fn_c_try_link
"$LINENO"; then :
4535 ac_cv_search_opendir
=$ac_res
4537 rm -f core conftest.err conftest.
$ac_objext \
4539 if test "${ac_cv_search_opendir+set}" = set; then :
4543 if test "${ac_cv_search_opendir+set}" = set; then :
4546 ac_cv_search_opendir
=no
4549 LIBS
=$ac_func_search_save_LIBS
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4552 $as_echo "$ac_cv_search_opendir" >&6; }
4553 ac_res
=$ac_cv_search_opendir
4554 if test "$ac_res" != no
; then :
4555 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562 $as_echo_n "checking for ANSI C header files... " >&6; }
4563 if test "${ac_cv_header_stdc+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4581 if ac_fn_c_try_compile
"$LINENO"; then :
4582 ac_cv_header_stdc
=yes
4584 ac_cv_header_stdc
=no
4586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4588 if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev
/null
2>&1; then :
4599 ac_cv_header_stdc
=no
4605 if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev
/null
2>&1; then :
4616 ac_cv_header_stdc
=no
4622 if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4631 #if ((' ' & 0x0FF) == 0x020)
4632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4635 # define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4654 if ac_fn_c_try_run
"$LINENO"; then :
4657 ac_cv_header_stdc
=no
4659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666 $as_echo "$ac_cv_header_stdc" >&6; }
4667 if test $ac_cv_header_stdc = yes; then
4669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4675 inttypes.h stdint.h unistd.h
4677 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4680 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4681 cat >>confdefs.h
<<_ACEOF
4682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4691 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4692 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <sys/types.h>
4701 return makedev(0, 0);
4706 if ac_fn_c_try_link
"$LINENO"; then :
4707 ac_cv_header_sys_types_h_makedev
=yes
4709 ac_cv_header_sys_types_h_makedev
=no
4711 rm -f core conftest.err conftest.
$ac_objext \
4712 conftest
$ac_exeext conftest.
$ac_ext
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4716 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4718 if test $ac_cv_header_sys_types_h_makedev = no
; then
4719 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4720 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
4722 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4728 if test $ac_cv_header_sys_mkdev_h = no
; then
4729 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4730 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
4732 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4741 $as_echo_n "checking for ANSI C header files... " >&6; }
4742 if test "${ac_cv_header_stdc+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4760 if ac_fn_c_try_compile
"$LINENO"; then :
4761 ac_cv_header_stdc
=yes
4763 ac_cv_header_stdc
=no
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 if test $ac_cv_header_stdc = yes; then
4768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4775 $EGREP "memchr" >/dev
/null
2>&1; then :
4778 ac_cv_header_stdc
=no
4784 if test $ac_cv_header_stdc = yes; then
4785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 $EGREP "free" >/dev
/null
2>&1; then :
4795 ac_cv_header_stdc
=no
4801 if test $ac_cv_header_stdc = yes; then
4802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4803 if test "$cross_compiling" = yes; then :
4806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4810 #if ((' ' & 0x0FF) == 0x020)
4811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4814 # define ISLOWER(c) \
4815 (('a' <= (c) && (c) <= 'i') \
4816 || ('j' <= (c) && (c) <= 'r') \
4817 || ('s' <= (c) && (c) <= 'z'))
4818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826 for (i = 0; i < 256; i++)
4827 if (XOR (islower (i), ISLOWER (i))
4828 || toupper (i) != TOUPPER (i))
4833 if ac_fn_c_try_run
"$LINENO"; then :
4836 ac_cv_header_stdc
=no
4838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4845 $as_echo "$ac_cv_header_stdc" >&6; }
4846 if test $ac_cv_header_stdc = yes; then
4848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4853 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4854 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #include <sys/types.h>
4860 #include <sys/wait.h>
4862 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4865 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4873 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4878 if ac_fn_c_try_compile
"$LINENO"; then :
4879 ac_cv_header_sys_wait_h
=yes
4881 ac_cv_header_sys_wait_h
=no
4883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4886 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4887 if test $ac_cv_header_sys_wait_h = yes; then
4889 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4894 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4895 if test "${ac_cv_header_time+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <sys/time.h>
4907 if ((struct tm *) 0)
4913 if ac_fn_c_try_compile
"$LINENO"; then :
4914 ac_cv_header_time
=yes
4916 ac_cv_header_time
=no
4918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4921 $as_echo "$ac_cv_header_time" >&6; }
4922 if test $ac_cv_header_time = yes; then
4924 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4929 for ac_header
in locale.h stddef.h syslog.h sys
/file.h sys
/time.h assert.h \
4930 langinfo.h libgen.h signal.h sys
/mman.h sys
/resource.h sys
/utsname.h \
4933 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4934 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4935 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4936 cat >>confdefs.h
<<_ACEOF
4937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941 as_fn_error $?
"bailing out" "$LINENO" 5
4949 for ac_header
in asm
/byteorder.h linux
/fs.h malloc.h
4951 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4952 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4953 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4954 cat >>confdefs.h
<<_ACEOF
4955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4959 as_fn_error $?
"bailing out" "$LINENO" 5
4965 for ac_header
in machine
/endian.h sys
/disk.h
4967 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4968 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4969 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4970 cat >>confdefs.h
<<_ACEOF
4971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975 as_fn_error $?
"bailing out" "$LINENO" 5
4982 for ac_header
in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4983 stdarg.h stdio.h stdlib.h string.h sys
/ioctl.h sys
/param.h sys
/stat.h \
4984 sys
/types.h unistd.h
4986 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4988 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4989 cat >>confdefs.h
<<_ACEOF
4990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994 as_fn_error $?
"bailing out" "$LINENO" 5
4999 for ac_header
in termios.h sys
/statvfs.h
5001 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5003 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5004 cat >>confdefs.h
<<_ACEOF
5005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5013 ################################################################################
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5015 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5016 if test "${ac_cv_c_const+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5025 /* FIXME: Include the comments suggested by Paul. */
5027 /* Ultrix mips cc rejects this. */
5028 typedef int charset[2];
5030 /* SunOS 4.1.1 cc rejects this. */
5031 char const *const *pcpcc;
5033 /* NEC SVR4.0.2 mips cc rejects this. */
5034 struct point {int x, y;};
5035 static struct point const zero = {0,0};
5036 /* AIX XL C 1.02.0.0 rejects this.
5037 It does not let you subtract one const X* pointer from another in
5038 an arm of an if-expression whose if-part is not a constant
5040 const char *g = "string";
5041 pcpcc = &g + (g ? g-g : 0);
5042 /* HPUX 7.0 cc rejects these. */
5044 ppc = (char**) pcpcc;
5045 pcpcc = (char const *const *) ppc;
5046 { /* SCO 3.2v4 cc rejects this. */
5048 char const *s = 0 ? (char *) 0 : (char const *) 0;
5053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5055 const int *foo = &x[0];
5058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5059 typedef const int *iptr;
5063 { /* AIX XL C 1.02.0.0 rejects this saying
5064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5065 struct s { int j; const int *ap[3]; };
5066 struct s *b; b->j = 5;
5068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5072 return !cs[0] && !zero.x;
5079 if ac_fn_c_try_compile
"$LINENO"; then :
5084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5087 $as_echo "$ac_cv_c_const" >&6; }
5088 if test $ac_cv_c_const = no
; then
5090 $as_echo "#define const /**/" >>confdefs.h
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5095 $as_echo_n "checking for inline... " >&6; }
5096 if test "${ac_cv_c_inline+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5100 for ac_kw
in inline __inline__ __inline
; do
5101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5105 static $ac_kw foo_t static_foo () {return 0; }
5106 $ac_kw foo_t foo () {return 0; }
5110 if ac_fn_c_try_compile
"$LINENO"; then :
5111 ac_cv_c_inline
=$ac_kw
5113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5114 test "$ac_cv_c_inline" != no
&& break
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5119 $as_echo "$ac_cv_c_inline" >&6; }
5121 case $ac_cv_c_inline in
5124 case $ac_cv_c_inline in
5126 *) ac_val
=$ac_cv_c_inline;;
5128 cat >>confdefs.h
<<_ACEOF
5130 #define inline $ac_val
5136 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5137 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5139 cat >>confdefs.h
<<_ACEOF
5140 #define HAVE_STRUCT_STAT_ST_RDEV 1
5146 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5147 if test "x$ac_cv_type_off_t" = x
""yes; then :
5151 cat >>confdefs.h
<<_ACEOF
5152 #define off_t long int
5157 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5158 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5162 cat >>confdefs.h
<<_ACEOF
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5169 $as_echo_n "checking return type of signal handlers... " >&6; }
5170 if test "${ac_cv_type_signal+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <sys/types.h>
5181 return *(signal (0, 0)) (0) == 1;
5186 if ac_fn_c_try_compile
"$LINENO"; then :
5187 ac_cv_type_signal
=int
5189 ac_cv_type_signal
=void
5191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5194 $as_echo "$ac_cv_type_signal" >&6; }
5196 cat >>confdefs.h
<<_ACEOF
5197 #define RETSIGTYPE $ac_cv_type_signal
5201 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5202 if test "x$ac_cv_type_size_t" = x
""yes; then :
5206 cat >>confdefs.h
<<_ACEOF
5207 #define size_t unsigned int
5212 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5213 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5217 cat >>confdefs.h
<<_ACEOF
5223 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5224 case $ac_cv_c_int8_t in #(
5228 cat >>confdefs.h
<<_ACEOF
5229 #define int8_t $ac_cv_c_int8_t
5234 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5235 case $ac_cv_c_int16_t in #(
5239 cat >>confdefs.h
<<_ACEOF
5240 #define int16_t $ac_cv_c_int16_t
5245 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5246 case $ac_cv_c_int32_t in #(
5250 cat >>confdefs.h
<<_ACEOF
5251 #define int32_t $ac_cv_c_int32_t
5256 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5257 case $ac_cv_c_int64_t in #(
5261 cat >>confdefs.h
<<_ACEOF
5262 #define int64_t $ac_cv_c_int64_t
5267 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5268 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5272 cat >>confdefs.h
<<_ACEOF
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5279 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5280 if test "${ac_cv_type_uid_t+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "uid_t" >/dev
/null
2>&1; then :
5290 ac_cv_type_uid_t
=yes
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5298 $as_echo "$ac_cv_type_uid_t" >&6; }
5299 if test $ac_cv_type_uid_t = no
; then
5301 $as_echo "#define uid_t int" >>confdefs.h
5304 $as_echo "#define gid_t int" >>confdefs.h
5308 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5309 case $ac_cv_c_uint8_t in #(
5313 $as_echo "#define _UINT8_T 1" >>confdefs.h
5316 cat >>confdefs.h
<<_ACEOF
5317 #define uint8_t $ac_cv_c_uint8_t
5322 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5323 case $ac_cv_c_uint16_t in #(
5328 cat >>confdefs.h
<<_ACEOF
5329 #define uint16_t $ac_cv_c_uint16_t
5334 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5335 case $ac_cv_c_uint32_t in #(
5339 $as_echo "#define _UINT32_T 1" >>confdefs.h
5342 cat >>confdefs.h
<<_ACEOF
5343 #define uint32_t $ac_cv_c_uint32_t
5348 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5349 case $ac_cv_c_uint64_t in #(
5353 $as_echo "#define _UINT64_T 1" >>confdefs.h
5356 cat >>confdefs.h
<<_ACEOF
5357 #define uint64_t $ac_cv_c_uint64_t
5362 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5363 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5365 cat >>confdefs.h
<<_ACEOF
5366 #define HAVE_STRUCT_STAT_ST_RDEV 1
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5373 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5374 if test "${ac_cv_struct_tm+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <sys/types.h>
5386 int *p = &tm.tm_sec;
5392 if ac_fn_c_try_compile
"$LINENO"; then :
5393 ac_cv_struct_tm
=time.h
5395 ac_cv_struct_tm
=sys
/time.h
5397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5400 $as_echo "$ac_cv_struct_tm" >&6; }
5401 if test $ac_cv_struct_tm = sys
/time.h
; then
5403 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5408 ################################################################################
5409 for ac_func
in ftruncate gethostname getpagesize \
5410 gettimeofday memset mkdir
mkfifo rmdir munmap nl_langinfo setenv setlocale \
5411 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5412 strstr strtol strtoul uname
5414 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5415 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5416 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5417 cat >>confdefs.h
<<_ACEOF
5418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5422 as_fn_error $?
"bailing out" "$LINENO" 5
5426 for ac_func
in siginterrupt
5428 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5429 if test "x$ac_cv_func_siginterrupt" = x
""yes; then :
5430 cat >>confdefs.h
<<_ACEOF
5431 #define HAVE_SIGINTERRUPT 1
5437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5438 # for constant arguments. Useless!
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5440 $as_echo_n "checking for working alloca.h... " >&6; }
5441 if test "${ac_cv_working_alloca_h+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5450 char *p = (char *) alloca (2 * sizeof (int));
5456 if ac_fn_c_try_link
"$LINENO"; then :
5457 ac_cv_working_alloca_h
=yes
5459 ac_cv_working_alloca_h
=no
5461 rm -f core conftest.err conftest.
$ac_objext \
5462 conftest
$ac_exeext conftest.
$ac_ext
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5465 $as_echo "$ac_cv_working_alloca_h" >&6; }
5466 if test $ac_cv_working_alloca_h = yes; then
5468 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5473 $as_echo_n "checking for alloca... " >&6; }
5474 if test "${ac_cv_func_alloca_works+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5480 # define alloca __builtin_alloca
5483 # include <malloc.h>
5484 # define alloca _alloca
5486 # ifdef HAVE_ALLOCA_H
5487 # include <alloca.h>
5492 # ifndef alloca /* predefined by HP cc +Olibcalls */
5503 char *p = (char *) alloca (1);
5509 if ac_fn_c_try_link
"$LINENO"; then :
5510 ac_cv_func_alloca_works
=yes
5512 ac_cv_func_alloca_works
=no
5514 rm -f core conftest.err conftest.
$ac_objext \
5515 conftest
$ac_exeext conftest.
$ac_ext
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5518 $as_echo "$ac_cv_func_alloca_works" >&6; }
5520 if test $ac_cv_func_alloca_works = yes; then
5522 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5526 # that cause trouble. Some versions do not even contain alloca or
5527 # contain a buggy version. If you still want to use their alloca,
5528 # use ar to extract alloca.o from them instead of compiling alloca.c.
5530 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5532 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5536 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5537 if test "${ac_cv_os_cray+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #if defined CRAY && ! defined CRAY2
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "webecray" >/dev
/null
2>&1; then :
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5559 $as_echo "$ac_cv_os_cray" >&6; }
5560 if test $ac_cv_os_cray = yes; then
5561 for ac_func
in _getb67 GETB67 getb67
; do
5562 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5563 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5564 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5566 cat >>confdefs.h
<<_ACEOF
5567 #define CRAY_STACKSEG_END $ac_func
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5577 $as_echo_n "checking stack direction for C alloca... " >&6; }
5578 if test "${ac_cv_c_stack_direction+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5581 if test "$cross_compiling" = yes; then :
5582 ac_cv_c_stack_direction
=0
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 $ac_includes_default
5588 find_stack_direction ()
5590 static char *addr = 0;
5595 return find_stack_direction ();
5598 return (&dummy > addr) ? 1 : -1;
5604 return find_stack_direction () < 0;
5607 if ac_fn_c_try_run
"$LINENO"; then :
5608 ac_cv_c_stack_direction
=1
5610 ac_cv_c_stack_direction
=-1
5612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5618 $as_echo "$ac_cv_c_stack_direction" >&6; }
5619 cat >>confdefs.h
<<_ACEOF
5620 #define STACK_DIRECTION $ac_cv_c_stack_direction
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5627 $as_echo_n "checking whether closedir returns void... " >&6; }
5628 if test "${ac_cv_func_closedir_void+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5631 if test "$cross_compiling" = yes; then :
5632 ac_cv_func_closedir_void
=yes
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 $ac_includes_default
5637 #include <$ac_header_dirent>
5645 return closedir (opendir (".")) != 0;
5650 if ac_fn_c_try_run
"$LINENO"; then :
5651 ac_cv_func_closedir_void
=no
5653 ac_cv_func_closedir_void
=yes
5655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5656 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5661 $as_echo "$ac_cv_func_closedir_void" >&6; }
5662 if test $ac_cv_func_closedir_void = yes; then
5664 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5668 for ac_header
in unistd.h
5670 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5671 if test "x$ac_cv_header_unistd_h" = x
""yes; then :
5672 cat >>confdefs.h
<<_ACEOF
5673 #define HAVE_UNISTD_H 1
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5681 $as_echo_n "checking for working chown... " >&6; }
5682 if test "${ac_cv_func_chown_works+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5685 if test "$cross_compiling" = yes; then :
5686 ac_cv_func_chown_works
=no
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 $ac_includes_default
5696 char *f = "conftest.chown";
5697 struct stat before, after;
5699 if (creat (f, 0600) < 0)
5701 if (stat (f, &before) < 0)
5703 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5705 if (stat (f, &after) < 0)
5707 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5713 if ac_fn_c_try_run
"$LINENO"; then :
5714 ac_cv_func_chown_works
=yes
5716 ac_cv_func_chown_works
=no
5718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5722 rm -f conftest.chown
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5726 $as_echo "$ac_cv_func_chown_works" >&6; }
5727 if test $ac_cv_func_chown_works = yes; then
5729 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5733 for ac_header
in vfork.h
5735 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5736 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5737 cat >>confdefs.h
<<_ACEOF
5738 #define HAVE_VFORK_H 1
5745 for ac_func
in fork vfork
5747 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5748 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5749 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5750 cat >>confdefs.h
<<_ACEOF
5751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5757 if test "x$ac_cv_func_fork" = xyes
; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5759 $as_echo_n "checking for working fork... " >&6; }
5760 if test "${ac_cv_func_fork_works+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 if test "$cross_compiling" = yes; then :
5764 ac_cv_func_fork_works
=cross
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 $ac_includes_default
5773 /* By Ruediger Kuhlmann. */
5780 if ac_fn_c_try_run
"$LINENO"; then :
5781 ac_cv_func_fork_works
=yes
5783 ac_cv_func_fork_works
=no
5785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5791 $as_echo "$ac_cv_func_fork_works" >&6; }
5794 ac_cv_func_fork_works
=$ac_cv_func_fork
5796 if test "x$ac_cv_func_fork_works" = xcross
; then
5798 *-*-amigaos* |
*-*-msdosdjgpp*)
5799 # Override, as these systems have only a dummy fork() stub
5800 ac_cv_func_fork_works
=no
5803 ac_cv_func_fork_works
=yes
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5809 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5810 if test "x$ac_cv_func_vfork" = xyes
; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5812 $as_echo_n "checking for working vfork... " >&6; }
5813 if test "${ac_cv_func_vfork_works+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 if test "$cross_compiling" = yes; then :
5817 ac_cv_func_vfork_works
=cross
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 /* Thanks to Paul Eggert for this test. */
5822 $ac_includes_default
5823 #include <sys/wait.h>
5827 /* On some sparc systems, changes by the child to local and incoming
5828 argument registers are propagated back to the parent. The compiler
5829 is told about this with #include <vfork.h>, but some compilers
5830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5831 static variable whose address is put into a register that is
5832 clobbered by the vfork. */
5835 sparc_address_test (int arg)
5837 sparc_address_test (arg) int arg;
5858 pid_t parent = getpid ();
5861 sparc_address_test (0);
5866 /* Here is another test for sparc vfork register problems. This
5867 test uses lots of local variables, at least as many local
5868 variables as main has allocated so far including compiler
5869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5871 reuse the register of parent for one of the local variables,
5872 since it will think that parent can't possibly be used any more
5873 in this routine. Assigning to the local variable will thus
5874 munge parent in the parent process. */
5876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5878 /* Convince the compiler that p..p7 are live; otherwise, it might
5879 use the same hardware register for all 8 local variables. */
5880 if (p != p1 || p != p2 || p != p3 || p != p4
5881 || p != p5 || p != p6 || p != p7)
5884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5885 from child file descriptors. If the child closes a descriptor
5886 before it execs or exits, this munges the parent's descriptor
5887 as well. Test for this by closing stdout in the child. */
5888 _exit(close(fileno(stdout)) != 0);
5893 while (wait(&status) != child)
5896 /* Was there some problem with vforking? */
5899 /* Did the child fail? (This shouldn't happen.) */
5902 /* Did the vfork/compiler bug occur? */
5903 || parent != getpid()
5905 /* Did the file descriptor bug occur? */
5906 || fstat(fileno(stdout), &st) != 0
5911 if ac_fn_c_try_run
"$LINENO"; then :
5912 ac_cv_func_vfork_works
=yes
5914 ac_cv_func_vfork_works
=no
5916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5922 $as_echo "$ac_cv_func_vfork_works" >&6; }
5925 if test "x$ac_cv_func_fork_works" = xcross
; then
5926 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5931 if test "x$ac_cv_func_vfork_works" = xyes
; then
5933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5937 $as_echo "#define vfork fork" >>confdefs.h
5940 if test "x$ac_cv_func_fork_works" = xyes
; then
5942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5947 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5948 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5951 rm -f conftest.sym conftest.
file
5953 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
5954 if test "$cross_compiling" = yes; then :
5955 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 $ac_includes_default
5964 /* Linux will dereference the symlink and fail, as required by POSIX.
5965 That is better in the sense that it means we will not
5966 have to compile and use the lstat wrapper. */
5967 return lstat ("conftest.sym/", &sbuf) == 0;
5972 if ac_fn_c_try_run
"$LINENO"; then :
5973 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
5975 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5982 # If the `ln -s' command failed, then we probably don't even
5983 # have an lstat function.
5984 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5986 rm -f conftest.sym conftest.
file
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5990 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5992 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5994 cat >>confdefs.h
<<_ACEOF
5995 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5999 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
6000 case " $LIBOBJS " in
6001 *" lstat.$ac_objext "* ) ;;
6002 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6009 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6010 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6013 if test "$cross_compiling" = yes; then :
6014 ac_cv_func_lstat_empty_string_bug
=yes
6016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 $ac_includes_default
6023 return lstat ("", &sbuf) == 0;
6028 if ac_fn_c_try_run
"$LINENO"; then :
6029 ac_cv_func_lstat_empty_string_bug
=no
6031 ac_cv_func_lstat_empty_string_bug
=yes
6033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6034 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6039 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6040 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6041 case " $LIBOBJS " in
6042 *" lstat.$ac_objext "* ) ;;
6043 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6048 cat >>confdefs.h
<<_ACEOF
6049 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6054 for ac_header
in stdlib.h
6056 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6057 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6058 cat >>confdefs.h
<<_ACEOF
6059 #define HAVE_STDLIB_H 1
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6067 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6068 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6071 if test "$cross_compiling" = yes; then :
6072 ac_cv_func_malloc_0_nonnull
=no
6074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6077 # include <stdlib.h>
6085 return ! malloc (0);
6090 if ac_fn_c_try_run
"$LINENO"; then :
6091 ac_cv_func_malloc_0_nonnull
=yes
6093 ac_cv_func_malloc_0_nonnull
=no
6095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6101 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6102 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6104 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6107 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6109 case " $LIBOBJS " in
6110 *" malloc.$ac_objext "* ) ;;
6111 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6116 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6122 $as_echo_n "checking for working memcmp... " >&6; }
6123 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6126 if test "$cross_compiling" = yes; then :
6127 ac_cv_func_memcmp_working
=no
6129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 $ac_includes_default
6136 /* Some versions of memcmp are not 8-bit clean. */
6137 char c0 = '\100', c1 = '\200', c2 = '\201';
6138 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6141 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6142 or more and with at least one buffer not starting on a 4-byte boundary.
6143 William Lewis provided this test program. */
6148 for (i = 0; i < 4; i++)
6152 strcpy (a, "--------01111111");
6153 strcpy (b, "--------10000000");
6154 if (memcmp (a, b, 16) >= 0)
6164 if ac_fn_c_try_run
"$LINENO"; then :
6165 ac_cv_func_memcmp_working
=yes
6167 ac_cv_func_memcmp_working
=no
6169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6175 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6176 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6177 *" memcmp.$ac_objext "* ) ;;
6178 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6186 for ac_header
in $ac_header_list
6188 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6189 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6191 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6192 cat >>confdefs.h
<<_ACEOF
6193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207 for ac_func
in getpagesize
6209 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6210 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6211 cat >>confdefs.h
<<_ACEOF
6212 #define HAVE_GETPAGESIZE 1
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6219 $as_echo_n "checking for working mmap... " >&6; }
6220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6223 if test "$cross_compiling" = yes; then :
6224 ac_cv_func_mmap_fixed_mapped
=no
6226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 $ac_includes_default
6229 /* malloc might have been renamed as rpl_malloc. */
6232 /* Thanks to Mike Haertel and Jim Avera for this test.
6233 Here is a matrix of mmap possibilities:
6234 mmap private not fixed
6235 mmap private fixed at somewhere currently unmapped
6236 mmap private fixed at somewhere already mapped
6237 mmap shared not fixed
6238 mmap shared fixed at somewhere currently unmapped
6239 mmap shared fixed at somewhere already mapped
6240 For private mappings, we should verify that changes cannot be read()
6241 back from the file, nor mmap's back from the file at a different
6242 address. (There have been systems where private was not correctly
6243 implemented like the infamous i386 svr4.0, and systems where the
6244 VM page cache was not coherent with the file system buffer cache
6245 like early versions of FreeBSD and possibly contemporary NetBSD.)
6246 For shared mappings, we should conversely verify that changes get
6247 propagated back to all the places they're supposed to be.
6249 Grep wants private fixed already mapped.
6250 The main things grep needs to know about mmap are:
6251 * does it exist and is it safe to write into the mmap'd area
6252 * how to use it (BSD variants) */
6255 #include <sys/mman.h>
6257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6261 /* This mess was copied from the GNU getpagesize.h. */
6262 #ifndef HAVE_GETPAGESIZE
6263 # ifdef _SC_PAGESIZE
6264 # define getpagesize() sysconf(_SC_PAGESIZE)
6265 # else /* no _SC_PAGESIZE */
6266 # ifdef HAVE_SYS_PARAM_H
6267 # include <sys/param.h>
6268 # ifdef EXEC_PAGESIZE
6269 # define getpagesize() EXEC_PAGESIZE
6270 # else /* no EXEC_PAGESIZE */
6272 # define getpagesize() NBPG * CLSIZE
6275 # endif /* no CLSIZE */
6276 # else /* no NBPG */
6278 # define getpagesize() NBPC
6279 # else /* no NBPC */
6281 # define getpagesize() PAGESIZE
6282 # endif /* PAGESIZE */
6283 # endif /* no NBPC */
6284 # endif /* no NBPG */
6285 # endif /* no EXEC_PAGESIZE */
6286 # else /* no HAVE_SYS_PARAM_H */
6287 # define getpagesize() 8192 /* punt totally */
6288 # endif /* no HAVE_SYS_PARAM_H */
6289 # endif /* no _SC_PAGESIZE */
6291 #endif /* no HAVE_GETPAGESIZE */
6296 char *data, *data2, *data3;
6301 pagesize = getpagesize ();
6303 /* First, make a file with some known garbage in it. */
6304 data = (char *) malloc (pagesize);
6307 for (i = 0; i < pagesize; ++i)
6308 *(data + i) = rand ();
6310 fd = creat ("conftest.mmap", 0600);
6313 if (write (fd, data, pagesize) != pagesize)
6317 /* Next, check that the tail of a page is zero-filled. File must have
6318 non-zero length, otherwise we risk SIGBUS for entire page. */
6319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6323 if (write (fd2, cdata2, 1) != 1)
6325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6326 if (data2 == MAP_FAILED)
6328 for (i = 0; i < pagesize; ++i)
6332 if (munmap (data2, pagesize))
6335 /* Next, try to mmap the file at a fixed address which already has
6336 something else allocated at it. If we can, also make sure that
6337 we see the same garbage. */
6338 fd = open ("conftest.mmap", O_RDWR);
6341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6344 for (i = 0; i < pagesize; ++i)
6345 if (*(data + i) != *(data2 + i))
6348 /* Finally, make sure that changes to the mapped area do not
6349 percolate back to the file as seen by read(). (This is a bug on
6350 some variants of i386 svr4.0.) */
6351 for (i = 0; i < pagesize; ++i)
6352 *(data2 + i) = *(data2 + i) + 1;
6353 data3 = (char *) malloc (pagesize);
6356 if (read (fd, data3, pagesize) != pagesize)
6358 for (i = 0; i < pagesize; ++i)
6359 if (*(data + i) != *(data3 + i))
6365 if ac_fn_c_try_run
"$LINENO"; then :
6366 ac_cv_func_mmap_fixed_mapped
=yes
6368 ac_cv_func_mmap_fixed_mapped
=no
6370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6382 rm -f conftest.mmap conftest.txt
6384 for ac_header
in stdlib.h
6386 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6387 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6388 cat >>confdefs.h
<<_ACEOF
6389 #define HAVE_STDLIB_H 1
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6397 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6398 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6401 if test "$cross_compiling" = yes; then :
6402 ac_cv_func_realloc_0_nonnull
=no
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6407 # include <stdlib.h>
6415 return ! realloc (0, 0);
6420 if ac_fn_c_try_run
"$LINENO"; then :
6421 ac_cv_func_realloc_0_nonnull
=yes
6423 ac_cv_func_realloc_0_nonnull
=no
6425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6431 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6432 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6434 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6437 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6439 case " $LIBOBJS " in
6440 *" realloc.$ac_objext "* ) ;;
6441 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6446 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6452 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6453 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 if test "$cross_compiling" = yes; then :
6457 ac_cv_func_stat_empty_string_bug
=yes
6459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 $ac_includes_default
6466 return stat ("", &sbuf) == 0;
6471 if ac_fn_c_try_run
"$LINENO"; then :
6472 ac_cv_func_stat_empty_string_bug
=no
6474 ac_cv_func_stat_empty_string_bug
=yes
6476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6482 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6483 if test $ac_cv_func_stat_empty_string_bug = yes; then
6484 case " $LIBOBJS " in
6485 *" stat.$ac_objext "* ) ;;
6486 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
6491 cat >>confdefs.h
<<_ACEOF
6492 #define HAVE_STAT_EMPTY_STRING_BUG 1
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6498 $as_echo_n "checking for working strtod... " >&6; }
6499 if test "${ac_cv_func_strtod+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6502 if test "$cross_compiling" = yes; then :
6503 ac_cv_func_strtod
=no
6505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6508 $ac_includes_default
6516 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6517 char *string = " +69";
6520 value = strtod (string, &term);
6521 if (value != 69 || term != (string + 4))
6526 /* Under Solaris 2.4, strtod returns the wrong value for the
6527 terminating character under some conditions. */
6528 char *string = "NaN";
6530 strtod (string, &term);
6531 if (term != string && *(term - 1) == 0)
6538 if ac_fn_c_try_run
"$LINENO"; then :
6539 ac_cv_func_strtod
=yes
6541 ac_cv_func_strtod
=no
6543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6549 $as_echo "$ac_cv_func_strtod" >&6; }
6550 if test $ac_cv_func_strtod = no
; then
6551 case " $LIBOBJS " in
6552 *" strtod.$ac_objext "* ) ;;
6553 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
6557 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
6558 if test "x$ac_cv_func_pow" = x
""yes; then :
6562 if test $ac_cv_func_pow = no
; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6564 $as_echo_n "checking for pow in -lm... " >&6; }
6565 if test "${ac_cv_lib_m_pow+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6568 ac_check_lib_save_LIBS
=$LIBS
6570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6573 /* Override any GCC internal prototype to avoid an error.
6574 Use char because int might match the return type of a GCC
6575 builtin and then its argument prototype would still apply. */
6588 if ac_fn_c_try_link
"$LINENO"; then :
6593 rm -f core conftest.err conftest.
$ac_objext \
6594 conftest
$ac_exeext conftest.
$ac_ext
6595 LIBS
=$ac_check_lib_save_LIBS
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6598 $as_echo "$ac_cv_lib_m_pow" >&6; }
6599 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6603 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6610 for ac_func
in vprintf
6612 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6613 if test "x$ac_cv_func_vprintf" = x
""yes; then :
6614 cat >>confdefs.h
<<_ACEOF
6615 #define HAVE_VPRINTF 1
6618 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6619 if test "x$ac_cv_func__doprnt" = x
""yes; then :
6621 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6630 ################################################################################
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6632 $as_echo_n "checking whether to use static linking... " >&6; }
6633 # Check whether --enable-static_link was given.
6634 if test "${enable_static_link+set}" = set; then :
6635 enableval
=$enable_static_link; STATIC_LINK
=$enableval
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6641 $as_echo "$STATIC_LINK" >&6; }
6643 ################################################################################
6646 ################################################################################
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6648 $as_echo_n "checking file owner... " >&6; }
6650 # Check whether --with-user was given.
6651 if test "${with_user+set}" = set; then :
6652 withval
=$with_user; OWNER
=$withval
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6656 $as_echo "$OWNER" >&6; }
6658 if test x
$OWNER != x
; then
6659 INSTALL
="$INSTALL -o $OWNER"
6662 ################################################################################
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6664 $as_echo_n "checking group owner... " >&6; }
6666 # Check whether --with-group was given.
6667 if test "${with_group+set}" = set; then :
6668 withval
=$with_group; GROUP
=$withval
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6672 $as_echo "$GROUP" >&6; }
6674 if test x
$GROUP != x
; then
6675 INSTALL
="$INSTALL -g $GROUP"
6678 ################################################################################
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6680 $as_echo_n "checking device node uid... " >&6; }
6683 # Check whether --with-device-uid was given.
6684 if test "${with_device_uid+set}" = set; then :
6685 withval
=$with_device_uid; DM_DEVICE_UID
=$withval
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6691 $as_echo "$DM_DEVICE_UID" >&6; }
6693 ################################################################################
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6695 $as_echo_n "checking device node gid... " >&6; }
6698 # Check whether --with-device-gid was given.
6699 if test "${with_device_gid+set}" = set; then :
6700 withval
=$with_device_gid; DM_DEVICE_GID
=$withval
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6706 $as_echo "$DM_DEVICE_GID" >&6; }
6708 ################################################################################
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6710 $as_echo_n "checking device node mode... " >&6; }
6713 # Check whether --with-device-mode was given.
6714 if test "${with_device_mode+set}" = set; then :
6715 withval
=$with_device_mode; DM_DEVICE_MODE
=$withval
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6721 $as_echo "$DM_DEVICE_MODE" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6724 $as_echo_n "checking when to create device nodes... " >&6; }
6726 # Check whether --with-device-nodes-on was given.
6727 if test "${with_device_nodes_on+set}" = set; then :
6728 withval
=$with_device_nodes_on; ADD_NODE
=$withval
6734 resume
) add_on
=DM_ADD_NODE_ON_RESUME
;;
6735 create
) add_on
=DM_ADD_NODE_ON_CREATE
;;
6736 *) as_fn_error $?
"--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6739 $as_echo "on $ADD_NODE" >&6; }
6741 cat >>confdefs.h
<<_ACEOF
6742 #define DEFAULT_DM_ADD_NODE $add_on
6746 ################################################################################
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6748 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6749 # Check whether --enable-lvm1_fallback was given.
6750 if test "${enable_lvm1_fallback+set}" = set; then :
6751 enableval
=$enable_lvm1_fallback; LVM1_FALLBACK
=$enableval
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6757 $as_echo "$LVM1_FALLBACK" >&6; }
6759 if test x
$LVM1_FALLBACK = xyes
; then
6761 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6765 ################################################################################
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6767 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6769 # Check whether --with-lvm1 was given.
6770 if test "${with_lvm1+set}" = set; then :
6771 withval
=$with_lvm1; LVM1
=$withval
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6777 $as_echo "$LVM1" >&6; }
6779 if [ "x$LVM1" != xnone
-a "x$LVM1" != xinternal
-a "x$LVM1" != xshared
];
6780 then as_fn_error $?
"--with-lvm1 parameter invalid
6784 if test x
$LVM1 = xinternal
; then
6786 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6790 ################################################################################
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6792 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6794 # Check whether --with-pool was given.
6795 if test "${with_pool+set}" = set; then :
6796 withval
=$with_pool; POOL
=$withval
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6802 $as_echo "$POOL" >&6; }
6804 if [ "x$POOL" != xnone
-a "x$POOL" != xinternal
-a "x$POOL" != xshared
];
6805 then as_fn_error $?
"--with-pool parameter invalid
6809 if test x
$POOL = xinternal
; then
6811 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6815 ################################################################################
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6817 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6819 # Check whether --with-cluster was given.
6820 if test "${with_cluster+set}" = set; then :
6821 withval
=$with_cluster; CLUSTER
=$withval
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6825 $as_echo "$CLUSTER" >&6; }
6827 if [ "x$CLUSTER" != xnone
-a "x$CLUSTER" != xinternal
-a "x$CLUSTER" != xshared
];
6828 then as_fn_error $?
"--with-cluster parameter invalid
6832 if test x
$CLUSTER = xinternal
; then
6834 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6838 ################################################################################
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6840 $as_echo_n "checking whether to include snapshots... " >&6; }
6842 # Check whether --with-snapshots was given.
6843 if test "${with_snapshots+set}" = set; then :
6844 withval
=$with_snapshots; SNAPSHOTS
=$withval
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6850 $as_echo "$SNAPSHOTS" >&6; }
6852 if [ "x$SNAPSHOTS" != xnone
-a "x$SNAPSHOTS" != xinternal
-a "x$SNAPSHOTS" != xshared
];
6853 then as_fn_error $?
"--with-snapshots parameter invalid
6857 if test x
$SNAPSHOTS = xinternal
; then
6859 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6863 ################################################################################
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6865 $as_echo_n "checking whether to include mirrors... " >&6; }
6867 # Check whether --with-mirrors was given.
6868 if test "${with_mirrors+set}" = set; then :
6869 withval
=$with_mirrors; MIRRORS
=$withval
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6875 $as_echo "$MIRRORS" >&6; }
6877 if [ "x$MIRRORS" != xnone
-a "x$MIRRORS" != xinternal
-a "x$MIRRORS" != xshared
];
6878 then as_fn_error $?
"--with-mirrors parameter invalid
6882 if test x
$MIRRORS = xinternal
; then
6884 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6888 ################################################################################
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6890 $as_echo_n "checking whether to include replicators... " >&6; }
6892 # Check whether --with-replicators was given.
6893 if test "${with_replicators+set}" = set; then :
6894 withval
=$with_replicators; REPLICATORS
=$withval
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6900 $as_echo "$REPLICATORS" >&6; }
6902 case "$REPLICATORS" in
6905 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6907 *) as_fn_error $?
"--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6910 ################################################################################
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6912 $as_echo_n "checking whether to enable readline... " >&6; }
6913 # Check whether --enable-readline was given.
6914 if test "${enable_readline+set}" = set; then :
6915 enableval
=$enable_readline; READLINE
=$enableval
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6921 $as_echo "$READLINE" >&6; }
6923 ################################################################################
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6925 $as_echo_n "checking whether to enable realtime support... " >&6; }
6926 # Check whether --enable-realtime was given.
6927 if test "${enable_realtime+set}" = set; then :
6928 enableval
=$enable_realtime; REALTIME
=$enableval
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6932 $as_echo "$REALTIME" >&6; }
6934 ################################################################################
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6936 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6937 # Check whether --enable-ocf was given.
6938 if test "${enable_ocf+set}" = set; then :
6939 enableval
=$enable_ocf; OCF
=$enableval
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6945 $as_echo "$OCF" >&6; }
6947 # Check whether --with-ocfdir was given.
6948 if test "${with_ocfdir+set}" = set; then :
6949 withval
=$with_ocfdir; OCFDIR
=$withval
6951 OCFDIR
='${prefix}/lib/ocf/resource.d/lvm2'
6955 ################################################################################
6963 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6966 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6974 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir
=.
6982 for ac_exec_ext
in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6996 if test -n "$PKG_CONFIG"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6998 $as_echo "$PKG_CONFIG" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7006 if test -z "$ac_cv_path_PKG_CONFIG"; then
7007 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7008 # Extract the first word of "pkg-config", so it can be a program name with args.
7009 set dummy pkg-config
; ac_word
=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7015 case $ac_pt_PKG_CONFIG in
7017 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir
=.
7025 for ac_exec_ext
in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7039 if test -n "$ac_pt_PKG_CONFIG"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7041 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7047 if test "x$ac_pt_PKG_CONFIG" = x
; then
7050 case $cross_compiling:$ac_tool_warned in
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned
=yes ;;
7056 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7059 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7063 if test -n "$PKG_CONFIG"; then
7064 _pkg_min_version
=0.9.0
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7066 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7069 $as_echo "yes" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7079 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7081 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7082 pkg_cv_PKGCONFIGINIT_CFLAGS
="$PKGCONFIGINIT_CFLAGS"
7083 elif test -n "$PKG_CONFIG"; then
7084 if test -n "$PKG_CONFIG" && \
7085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7086 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; }; then
7090 pkg_cv_PKGCONFIGINIT_CFLAGS
=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7097 if test -n "$PKGCONFIGINIT_LIBS"; then
7098 pkg_cv_PKGCONFIGINIT_LIBS
="$PKGCONFIGINIT_LIBS"
7099 elif test -n "$PKG_CONFIG"; then
7100 if test -n "$PKG_CONFIG" && \
7101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7102 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 pkg_cv_PKGCONFIGINIT_LIBS
=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7116 if test $pkg_failed = yes; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7121 _pkg_short_errors_supported
=yes
7123 _pkg_short_errors_supported
=no
7125 if test $_pkg_short_errors_supported = yes; then
7126 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7128 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7130 # Put the nasty error message in config.log where it belongs
7131 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7134 $as_echo "pkg-config initialized" >&6; }
7135 elif test $pkg_failed = untried
; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7139 $as_echo "pkg-config initialized" >&6; }
7141 PKGCONFIGINIT_CFLAGS
=$pkg_cv_PKGCONFIGINIT_CFLAGS
7142 PKGCONFIGINIT_LIBS
=$pkg_cv_PKGCONFIGINIT_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7150 ################################################################################
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7152 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7154 # Check whether --with-clvmd was given.
7155 if test "${with_clvmd+set}" = set; then :
7156 withval
=$with_clvmd; CLVMD
=$withval
7161 if test x
$CLVMD = xyes
; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7165 $as_echo "$CLVMD" >&6; }
7167 if test x
$CLVMD != xnone
&& test x
$CLUSTER = xnone
; then
7171 if test x
$CLVMD != xnone
&& test x
$PKGCONFIG_INIT != x1
; then
7176 CLVMD_NEEDS_QDISKD
=no
7178 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7180 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS lock_gulmd"
7181 CLVMD_NEEDS_QDISKD
=yes
7183 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7185 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7186 CLVMD_NEEDS_QDISKD
=yes
7188 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7190 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7192 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7194 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7196 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7197 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7200 if test x
$BUILDGULM = xyes
; then
7201 if test x
$BUILDCOROSYNC = xyes || \
7202 test x
$BUILDOPENAIS = xyes
; then
7203 as_fn_error $?
"requested clvmd configuration is not valid" "$LINENO" 5
7212 as_fn_error $?
"bailing out" "$LINENO" 5
7215 if test x
$CLVMD = xall
; then
7216 bailout
=soft_bailout
7222 bailout
=hard_bailout
7225 check_lib_no_libs
() {
7231 as_ac_Lib
=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7233 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7234 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7235 $as_echo_n "(cached) " >&6
7237 ac_check_lib_save_LIBS
=$LIBS
7238 LIBS
="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7242 /* Override any GCC internal prototype to avoid an error.
7243 Use char because int might match the return type of a GCC
7244 builtin and then its argument prototype would still apply. */
7248 char $lib_no_libs_arg2 ();
7252 return $lib_no_libs_arg2 ();
7257 if ac_fn_c_try_link
"$LINENO"; then :
7258 eval "$as_ac_Lib=yes"
7260 eval "$as_ac_Lib=no"
7262 rm -f core conftest.err conftest.
$ac_objext \
7263 conftest
$ac_exeext conftest.
$ac_ext
7264 LIBS
=$ac_check_lib_save_LIBS
7266 eval ac_res
=\$
$as_ac_Lib
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7268 $as_echo "$ac_res" >&6; }
7269 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
7270 cat >>confdefs.h
<<_ACEOF
7271 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7274 LIBS
="-l$lib_no_libs_arg1 $LIBS"
7280 LIBS
=$ac_check_lib_save_LIBS
7283 if test x
$BUILDGULM = xyes
; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7287 $as_echo_n "checking for CCS... " >&6; }
7289 if test -n "$CCS_CFLAGS"; then
7290 pkg_cv_CCS_CFLAGS
="$CCS_CFLAGS"
7291 elif test -n "$PKG_CONFIG"; then
7292 if test -n "$PKG_CONFIG" && \
7293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7294 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; }; then
7298 pkg_cv_CCS_CFLAGS
=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
7305 if test -n "$CCS_LIBS"; then
7306 pkg_cv_CCS_LIBS
="$CCS_LIBS"
7307 elif test -n "$PKG_CONFIG"; then
7308 if test -n "$PKG_CONFIG" && \
7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7310 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }; then
7314 pkg_cv_CCS_LIBS
=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7324 if test $pkg_failed = yes; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7328 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7329 _pkg_short_errors_supported
=yes
7331 _pkg_short_errors_supported
=no
7333 if test $_pkg_short_errors_supported = yes; then
7334 CCS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7336 CCS_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7338 # Put the nasty error message in config.log where it belongs
7339 echo "$CCS_PKG_ERRORS" >&5
7342 for ac_header
in ccs.h
7344 ac_fn_c_check_header_mongrel
"$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7345 if test "x$ac_cv_header_ccs_h" = x
""yes; then :
7346 cat >>confdefs.h
<<_ACEOF
7347 #define HAVE_CCS_H 1
7356 check_lib_no_libs ccs ccs_connect
7357 if test $NOTFOUND = 0; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7359 $as_echo "no pkg for libccs, using -lccs" >&6; }
7363 elif test $pkg_failed = untried
; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7367 for ac_header
in ccs.h
7369 ac_fn_c_check_header_mongrel
"$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7370 if test "x$ac_cv_header_ccs_h" = x
""yes; then :
7371 cat >>confdefs.h
<<_ACEOF
7372 #define HAVE_CCS_H 1
7381 check_lib_no_libs ccs ccs_connect
7382 if test $NOTFOUND = 0; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7384 $as_echo "no pkg for libccs, using -lccs" >&6; }
7389 CCS_CFLAGS
=$pkg_cv_CCS_CFLAGS
7390 CCS_LIBS
=$pkg_cv_CCS_LIBS
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392 $as_echo "yes" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7398 $as_echo_n "checking for GULM... " >&6; }
7400 if test -n "$GULM_CFLAGS"; then
7401 pkg_cv_GULM_CFLAGS
="$GULM_CFLAGS"
7402 elif test -n "$PKG_CONFIG"; then
7403 if test -n "$PKG_CONFIG" && \
7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7405 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 pkg_cv_GULM_CFLAGS
=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7416 if test -n "$GULM_LIBS"; then
7417 pkg_cv_GULM_LIBS
="$GULM_LIBS"
7418 elif test -n "$PKG_CONFIG"; then
7419 if test -n "$PKG_CONFIG" && \
7420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7421 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 pkg_cv_GULM_LIBS
=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7435 if test $pkg_failed = yes; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7439 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7440 _pkg_short_errors_supported
=yes
7442 _pkg_short_errors_supported
=no
7444 if test $_pkg_short_errors_supported = yes; then
7445 GULM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7447 GULM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7449 # Put the nasty error message in config.log where it belongs
7450 echo "$GULM_PKG_ERRORS" >&5
7453 for ac_header
in libgulm.h
7455 ac_fn_c_check_header_mongrel
"$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7456 if test "x$ac_cv_header_libgulm_h" = x
""yes; then :
7457 cat >>confdefs.h
<<_ACEOF
7458 #define HAVE_LIBGULM_H 1
7467 check_lib_no_libs gulm lg_core_login
7468 if test $NOTFOUND = 0; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7470 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7474 elif test $pkg_failed = untried
; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7478 for ac_header
in libgulm.h
7480 ac_fn_c_check_header_mongrel
"$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7481 if test "x$ac_cv_header_libgulm_h" = x
""yes; then :
7482 cat >>confdefs.h
<<_ACEOF
7483 #define HAVE_LIBGULM_H 1
7492 check_lib_no_libs gulm lg_core_login
7493 if test $NOTFOUND = 0; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7495 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7500 GULM_CFLAGS
=$pkg_cv_GULM_CFLAGS
7501 GULM_LIBS
=$pkg_cv_GULM_LIBS
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }
7508 if test x
$BUILDCMAN = xyes
; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7512 $as_echo_n "checking for CMAN... " >&6; }
7514 if test -n "$CMAN_CFLAGS"; then
7515 pkg_cv_CMAN_CFLAGS
="$CMAN_CFLAGS"
7516 elif test -n "$PKG_CONFIG"; then
7517 if test -n "$PKG_CONFIG" && \
7518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7519 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 pkg_cv_CMAN_CFLAGS
=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7530 if test -n "$CMAN_LIBS"; then
7531 pkg_cv_CMAN_LIBS
="$CMAN_LIBS"
7532 elif test -n "$PKG_CONFIG"; then
7533 if test -n "$PKG_CONFIG" && \
7534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7535 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; }; then
7539 pkg_cv_CMAN_LIBS
=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7549 if test $pkg_failed = yes; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7554 _pkg_short_errors_supported
=yes
7556 _pkg_short_errors_supported
=no
7558 if test $_pkg_short_errors_supported = yes; then
7559 CMAN_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7561 CMAN_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7563 # Put the nasty error message in config.log where it belongs
7564 echo "$CMAN_PKG_ERRORS" >&5
7567 for ac_header
in libcman.h
7569 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7570 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7571 cat >>confdefs.h
<<_ACEOF
7572 #define HAVE_LIBCMAN_H 1
7581 check_lib_no_libs cman cman_init
7582 if test $NOTFOUND = 0; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7584 $as_echo "no pkg for libcman, using -lcman" >&6; }
7588 elif test $pkg_failed = untried
; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7592 for ac_header
in libcman.h
7594 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7595 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7596 cat >>confdefs.h
<<_ACEOF
7597 #define HAVE_LIBCMAN_H 1
7606 check_lib_no_libs cman cman_init
7607 if test $NOTFOUND = 0; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7609 $as_echo "no pkg for libcman, using -lcman" >&6; }
7614 CMAN_CFLAGS
=$pkg_cv_CMAN_CFLAGS
7615 CMAN_LIBS
=$pkg_cv_CMAN_LIBS
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617 $as_echo "yes" >&6; }
7624 if test x
$BUILDCOROSYNC = xyes || \
7625 test x
$BUILDOPENAIS = xyes
; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7629 $as_echo_n "checking for COROSYNC... " >&6; }
7631 if test -n "$COROSYNC_CFLAGS"; then
7632 pkg_cv_COROSYNC_CFLAGS
="$COROSYNC_CFLAGS"
7633 elif test -n "$PKG_CONFIG"; then
7634 if test -n "$PKG_CONFIG" && \
7635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7636 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }; then
7640 pkg_cv_COROSYNC_CFLAGS
=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7647 if test -n "$COROSYNC_LIBS"; then
7648 pkg_cv_COROSYNC_LIBS
="$COROSYNC_LIBS"
7649 elif test -n "$PKG_CONFIG"; then
7650 if test -n "$PKG_CONFIG" && \
7651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7652 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 pkg_cv_COROSYNC_LIBS
=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7666 if test $pkg_failed = yes; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7671 _pkg_short_errors_supported
=yes
7673 _pkg_short_errors_supported
=no
7675 if test $_pkg_short_errors_supported = yes; then
7676 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7678 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7680 # Put the nasty error message in config.log where it belongs
7681 echo "$COROSYNC_PKG_ERRORS" >&5
7684 elif test $pkg_failed = untried
; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 COROSYNC_CFLAGS
=$pkg_cv_COROSYNC_CFLAGS
7690 COROSYNC_LIBS
=$pkg_cv_COROSYNC_LIBS
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7698 if test x
$BUILDCOROSYNC = xyes
; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7702 $as_echo_n "checking for QUORUM... " >&6; }
7704 if test -n "$QUORUM_CFLAGS"; then
7705 pkg_cv_QUORUM_CFLAGS
="$QUORUM_CFLAGS"
7706 elif test -n "$PKG_CONFIG"; then
7707 if test -n "$PKG_CONFIG" && \
7708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7709 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 pkg_cv_QUORUM_CFLAGS
=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7720 if test -n "$QUORUM_LIBS"; then
7721 pkg_cv_QUORUM_LIBS
="$QUORUM_LIBS"
7722 elif test -n "$PKG_CONFIG"; then
7723 if test -n "$PKG_CONFIG" && \
7724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7725 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; }; then
7729 pkg_cv_QUORUM_LIBS
=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7739 if test $pkg_failed = yes; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7744 _pkg_short_errors_supported
=yes
7746 _pkg_short_errors_supported
=no
7748 if test $_pkg_short_errors_supported = yes; then
7749 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7751 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7753 # Put the nasty error message in config.log where it belongs
7754 echo "$QUORUM_PKG_ERRORS" >&5
7757 elif test $pkg_failed = untried
; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7762 QUORUM_CFLAGS
=$pkg_cv_QUORUM_CFLAGS
7763 QUORUM_LIBS
=$pkg_cv_QUORUM_LIBS
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765 $as_echo "yes" >&6; }
7772 if test x
$BUILDOPENAIS = xyes
; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7776 $as_echo_n "checking for SALCK... " >&6; }
7778 if test -n "$SALCK_CFLAGS"; then
7779 pkg_cv_SALCK_CFLAGS
="$SALCK_CFLAGS"
7780 elif test -n "$PKG_CONFIG"; then
7781 if test -n "$PKG_CONFIG" && \
7782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7783 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 pkg_cv_SALCK_CFLAGS
=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7794 if test -n "$SALCK_LIBS"; then
7795 pkg_cv_SALCK_LIBS
="$SALCK_LIBS"
7796 elif test -n "$PKG_CONFIG"; then
7797 if test -n "$PKG_CONFIG" && \
7798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7799 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 pkg_cv_SALCK_LIBS
=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7813 if test $pkg_failed = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7817 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7818 _pkg_short_errors_supported
=yes
7820 _pkg_short_errors_supported
=no
7822 if test $_pkg_short_errors_supported = yes; then
7823 SALCK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7825 SALCK_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7827 # Put the nasty error message in config.log where it belongs
7828 echo "$SALCK_PKG_ERRORS" >&5
7831 elif test $pkg_failed = untried
; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7836 SALCK_CFLAGS
=$pkg_cv_SALCK_CFLAGS
7837 SALCK_LIBS
=$pkg_cv_SALCK_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7839 $as_echo "yes" >&6; }
7847 if test x
$CHECKCONFDB = xyes
; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7851 $as_echo_n "checking for CONFDB... " >&6; }
7853 if test -n "$CONFDB_CFLAGS"; then
7854 pkg_cv_CONFDB_CFLAGS
="$CONFDB_CFLAGS"
7855 elif test -n "$PKG_CONFIG"; then
7856 if test -n "$PKG_CONFIG" && \
7857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7858 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 pkg_cv_CONFDB_CFLAGS
=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7869 if test -n "$CONFDB_LIBS"; then
7870 pkg_cv_CONFDB_LIBS
="$CONFDB_LIBS"
7871 elif test -n "$PKG_CONFIG"; then
7872 if test -n "$PKG_CONFIG" && \
7873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7874 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }; then
7878 pkg_cv_CONFDB_LIBS
=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7888 if test $pkg_failed = yes; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7892 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7893 _pkg_short_errors_supported
=yes
7895 _pkg_short_errors_supported
=no
7897 if test $_pkg_short_errors_supported = yes; then
7898 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7900 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7902 # Put the nasty error message in config.log where it belongs
7903 echo "$CONFDB_PKG_ERRORS" >&5
7906 elif test $pkg_failed = untried
; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 CONFDB_CFLAGS
=$pkg_cv_CONFDB_CFLAGS
7912 CONFDB_LIBS
=$pkg_cv_CONFDB_LIBS
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7918 for ac_header
in corosync
/confdb.h
7920 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7921 if test "x$ac_cv_header_corosync_confdb_h" = x
""yes; then :
7922 cat >>confdefs.h
<<_ACEOF
7923 #define HAVE_COROSYNC_CONFDB_H 1
7933 if test x
$HAVE_CONFDB != xyes
&& \
7934 test x
$HAVE_CONFDB_H = xyes
; then
7935 check_lib_no_libs confdb confdb_initialize
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7937 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7938 CONFDB_LIBS
="-lconfdb"
7942 if test x
$BUILDCOROSYNC = xyes
&& \
7943 test x
$HAVE_CONFDB != xyes
&&
7944 test x
$CLVMD != xall
; then
7945 as_fn_error $?
"bailing out... confdb library is required" "$LINENO" 5
7949 if test x
$CHECKCPG = xyes
; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7953 $as_echo_n "checking for CPG... " >&6; }
7955 if test -n "$CPG_CFLAGS"; then
7956 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
7957 elif test -n "$PKG_CONFIG"; then
7958 if test -n "$PKG_CONFIG" && \
7959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7960 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; then
7964 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7971 if test -n "$CPG_LIBS"; then
7972 pkg_cv_CPG_LIBS
="$CPG_LIBS"
7973 elif test -n "$PKG_CONFIG"; then
7974 if test -n "$PKG_CONFIG" && \
7975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7976 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }; then
7980 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7990 if test $pkg_failed = yes; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7995 _pkg_short_errors_supported
=yes
7997 _pkg_short_errors_supported
=no
7999 if test $_pkg_short_errors_supported = yes; then
8000 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8002 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8004 # Put the nasty error message in config.log where it belongs
8005 echo "$CPG_PKG_ERRORS" >&5
8008 elif test $pkg_failed = untried
; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8013 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8014 CPG_LIBS
=$pkg_cv_CPG_LIBS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8016 $as_echo "yes" >&6; }
8021 if test x
$CHECKDLM = xyes
; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8025 $as_echo_n "checking for DLM... " >&6; }
8027 if test -n "$DLM_CFLAGS"; then
8028 pkg_cv_DLM_CFLAGS
="$DLM_CFLAGS"
8029 elif test -n "$PKG_CONFIG"; then
8030 if test -n "$PKG_CONFIG" && \
8031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8032 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035 test $ac_status = 0; }; then
8036 pkg_cv_DLM_CFLAGS
=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8043 if test -n "$DLM_LIBS"; then
8044 pkg_cv_DLM_LIBS
="$DLM_LIBS"
8045 elif test -n "$PKG_CONFIG"; then
8046 if test -n "$PKG_CONFIG" && \
8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8048 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 pkg_cv_DLM_LIBS
=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8062 if test $pkg_failed = yes; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8066 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8067 _pkg_short_errors_supported
=yes
8069 _pkg_short_errors_supported
=no
8071 if test $_pkg_short_errors_supported = yes; then
8072 DLM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8074 DLM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8076 # Put the nasty error message in config.log where it belongs
8077 echo "$DLM_PKG_ERRORS" >&5
8080 for ac_header
in libdlm.h
8082 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8083 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8084 cat >>confdefs.h
<<_ACEOF
8085 #define HAVE_LIBDLM_H 1
8094 check_lib_no_libs dlm dlm_lock
-lpthread
8095 if test $NOTFOUND = 0; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8097 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8098 DLM_LIBS
="-ldlm -lpthread"
8101 elif test $pkg_failed = untried
; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8105 for ac_header
in libdlm.h
8107 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8108 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8109 cat >>confdefs.h
<<_ACEOF
8110 #define HAVE_LIBDLM_H 1
8119 check_lib_no_libs dlm dlm_lock
-lpthread
8120 if test $NOTFOUND = 0; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8122 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8123 DLM_LIBS
="-ldlm -lpthread"
8127 DLM_CFLAGS
=$pkg_cv_DLM_CFLAGS
8128 DLM_LIBS
=$pkg_cv_DLM_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8135 if test x
$CLVMD = xall
; then
8138 CLVMD_NEEDS_QDISKD
=no
8139 if test x
$HAVE_CCS = xyes
&& \
8140 test x
$HAVE_GULM = xyes
; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8142 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
8144 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS lock_gulmd"
8145 CLVMD_NEEDS_QDISKD
=yes
8147 if test x
$HAVE_CMAN = xyes
&& \
8148 test x
$HAVE_DLM = xyes
; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8150 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8152 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
8153 CLVMD_NEEDS_QDISKD
=yes
8155 if test x
$HAVE_COROSYNC = xyes
&& \
8156 test x
$HAVE_QUORUM = xyes
&& \
8157 test x
$HAVE_CPG = xyes
&& \
8158 test x
$HAVE_DLM = xyes
&& \
8159 test x
$HAVE_CONFDB = xyes
; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8161 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8162 CLVMD
="$CLVMD,corosync"
8163 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
8165 if test x
$HAVE_COROSYNC = xyes
&& \
8166 test x
$HAVE_CPG = xyes
&& \
8167 test x
$HAVE_SALCK = xyes
; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8169 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8170 CLVMD
="$CLVMD,openais"
8171 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
8173 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
8174 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
8176 if test x
$CLVMD = xnone
; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8178 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8182 ################################################################################
8183 if test "x$CLVMD" != xnone
; then
8185 # Check whether --with-clvmd-pidfile was given.
8186 if test "${with_clvmd_pidfile+set}" = set; then :
8187 withval
=$with_clvmd_pidfile; CLVMD_PIDFILE
=$withval
8189 CLVMD_PIDFILE
="/var/run/clvmd.pid"
8193 cat >>confdefs.h
<<_ACEOF
8194 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8199 ################################################################################
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8201 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8202 # Check whether --enable-cmirrord was given.
8203 if test "${enable_cmirrord+set}" = set; then :
8204 enableval
=$enable_cmirrord; CMIRRORD
=$enableval
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8210 $as_echo "$CMIRRORD" >&6; }
8212 BUILD_CMIRRORD
=$CMIRRORD
8214 ################################################################################
8215 if test "x$BUILD_CMIRRORD" = xyes
; then
8217 # Check whether --with-cmirrord-pidfile was given.
8218 if test "${with_cmirrord_pidfile+set}" = set; then :
8219 withval
=$with_cmirrord_pidfile; CMIRRORD_PIDFILE
=$withval
8221 CMIRRORD_PIDFILE
="/var/run/cmirrord.pid"
8225 cat >>confdefs.h
<<_ACEOF
8226 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8231 ################################################################################
8232 if [ "x$BUILD_CMIRRORD" = xyes
]; then
8233 if test x
$PKGCONFIG_INIT != x1
; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8239 $as_echo_n "checking for SACKPT... " >&6; }
8241 if test -n "$SACKPT_CFLAGS"; then
8242 pkg_cv_SACKPT_CFLAGS
="$SACKPT_CFLAGS"
8243 elif test -n "$PKG_CONFIG"; then
8244 if test -n "$PKG_CONFIG" && \
8245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8246 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8249 test $ac_status = 0; }; then
8250 pkg_cv_SACKPT_CFLAGS
=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8257 if test -n "$SACKPT_LIBS"; then
8258 pkg_cv_SACKPT_LIBS
="$SACKPT_LIBS"
8259 elif test -n "$PKG_CONFIG"; then
8260 if test -n "$PKG_CONFIG" && \
8261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8262 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; }; then
8266 pkg_cv_SACKPT_LIBS
=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8276 if test $pkg_failed = yes; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8281 _pkg_short_errors_supported
=yes
8283 _pkg_short_errors_supported
=no
8285 if test $_pkg_short_errors_supported = yes; then
8286 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8288 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8290 # Put the nasty error message in config.log where it belongs
8291 echo "$SACKPT_PKG_ERRORS" >&5
8293 as_fn_error $?
"Package requirements (libSaCkpt) were not met:
8297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8298 installed software in a non-standard prefix.
8300 Alternatively, you may set the environment variables SACKPT_CFLAGS
8301 and SACKPT_LIBS to avoid the need to call pkg-config.
8302 See the pkg-config man page for more details." "$LINENO" 5
8304 elif test $pkg_failed = untried
; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8309 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8310 is in your PATH or set the PKG_CONFIG environment variable to the full
8313 Alternatively, you may set the environment variables SACKPT_CFLAGS
8314 and SACKPT_LIBS to avoid the need to call pkg-config.
8315 See the pkg-config man page for more details.
8317 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8318 See \`config.log' for more details" "$LINENO" 5; }
8321 SACKPT_CFLAGS
=$pkg_cv_SACKPT_CFLAGS
8322 SACKPT_LIBS
=$pkg_cv_SACKPT_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8324 $as_echo "yes" >&6; }
8327 if test x
$HAVE_CPG != xyes
; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8331 $as_echo_n "checking for CPG... " >&6; }
8333 if test -n "$CPG_CFLAGS"; then
8334 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8335 elif test -n "$PKG_CONFIG"; then
8336 if test -n "$PKG_CONFIG" && \
8337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8338 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341 test $ac_status = 0; }; then
8342 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8349 if test -n "$CPG_LIBS"; then
8350 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8351 elif test -n "$PKG_CONFIG"; then
8352 if test -n "$PKG_CONFIG" && \
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8354 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }; then
8358 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8368 if test $pkg_failed = yes; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8373 _pkg_short_errors_supported
=yes
8375 _pkg_short_errors_supported
=no
8377 if test $_pkg_short_errors_supported = yes; then
8378 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8380 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8382 # Put the nasty error message in config.log where it belongs
8383 echo "$CPG_PKG_ERRORS" >&5
8385 as_fn_error $?
"Package requirements (libcpg) were not met:
8389 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8390 installed software in a non-standard prefix.
8392 Alternatively, you may set the environment variables CPG_CFLAGS
8393 and CPG_LIBS to avoid the need to call pkg-config.
8394 See the pkg-config man page for more details." "$LINENO" 5
8396 elif test $pkg_failed = untried
; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8401 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8402 is in your PATH or set the PKG_CONFIG environment variable to the full
8405 Alternatively, you may set the environment variables CPG_CFLAGS
8406 and CPG_LIBS to avoid the need to call pkg-config.
8407 See the pkg-config man page for more details.
8409 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8410 See \`config.log' for more details" "$LINENO" 5; }
8413 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8414 CPG_LIBS
=$pkg_cv_CPG_LIBS
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416 $as_echo "yes" >&6; }
8422 ################################################################################
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8424 $as_echo_n "checking whether to enable debugging... " >&6; }
8425 # Check whether --enable-debug was given.
8426 if test "${enable_debug+set}" = set; then :
8427 enableval
=$enable_debug; DEBUG
=$enableval
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8433 $as_echo "$DEBUG" >&6; }
8435 if test x
$DEBUG = xyes
; then
8441 ################################################################################
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8443 $as_echo_n "checking for C optimisation flag... " >&6; }
8445 # Check whether --with-optimisation was given.
8446 if test "${with_optimisation+set}" = set; then :
8447 withval
=$with_optimisation; COPTIMISE_FLAG
=$withval
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8451 $as_echo "$COPTIMISE_FLAG" >&6; }
8453 ################################################################################
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8455 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8456 # Check whether --enable-profiling was given.
8457 if test "${enable_profiling+set}" = set; then :
8458 enableval
=$enable_profiling; PROFILING
=$enableval
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8464 $as_echo "$PROFILING" >&6; }
8466 if test "x$PROFILING" = xyes
; then
8467 COPTIMISE_FLAG
="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8468 # Extract the first word of "lcov", so it can be a program name with args.
8469 set dummy lcov
; ac_word
=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if test "${ac_cv_path_LCOV+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8477 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
8480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8484 test -z "$as_dir" && as_dir
=.
8485 for ac_exec_ext
in '' $ac_executable_extensions; do
8486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 LCOV
=$ac_cv_path_LCOV
8499 if test -n "$LCOV"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8501 $as_echo "$LCOV" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8508 # Extract the first word of "genhtml", so it can be a program name with args.
8509 set dummy genhtml
; ac_word
=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_path_GENHTML+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8517 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
8520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8524 test -z "$as_dir" && as_dir
=.
8525 for ac_exec_ext
in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 GENHTML
=$ac_cv_path_GENHTML
8539 if test -n "$GENHTML"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8541 $as_echo "$GENHTML" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8548 if test -z "$LCOV" -o -z "$GENHTML"; then
8549 as_fn_error $?
"lcov and genhtml are required for profiling" "$LINENO" 5
8551 # Extract the first word of "genpng", so it can be a program name with args.
8552 set dummy genpng
; ac_word
=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_path_GENPNG+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8560 ac_cv_path_GENPNG
="$GENPNG" # Let the user override the test with a path.
8563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir
=.
8568 for ac_exec_ext
in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_path_GENPNG
="$as_dir/$ac_word$ac_exec_ext"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 GENPNG
=$ac_cv_path_GENPNG
8582 if test -n "$GENPNG"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8584 $as_echo "$GENPNG" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8591 if test -n "$GENPNG"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8593 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8594 if $GENPNG --help > /dev
/null
2>&1 ; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8596 $as_echo "ok" >&6; }
8597 GENHTML
="$GENHTML --frames"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8600 $as_echo "not supported" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8602 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8608 ################################################################################
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8610 $as_echo_n "checking whether to enable unit testing... " >&6; }
8611 # Check whether --enable-testing was given.
8612 if test "${enable_testing+set}" = set; then :
8613 enableval
=$enable_testing; TESTING
=$enableval
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8619 $as_echo "$TESTING" >&6; }
8621 if test "$TESTING" = yes; then
8622 # Extract the first word of "ruby1.9", so it can be a program name with args.
8623 set dummy ruby1.9
; ac_word
=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_path_RUBY19+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8631 ac_cv_path_RUBY19
="$RUBY19" # Let the user override the test with a path.
8634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8638 test -z "$as_dir" && as_dir
=.
8639 for ac_exec_ext
in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_path_RUBY19
="$as_dir/$ac_word$ac_exec_ext"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 RUBY19
=$ac_cv_path_RUBY19
8653 if test -n "$RUBY19"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8655 $as_echo "$RUBY19" >&6; }
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8662 # Extract the first word of "valgrind", so it can be a program name with args.
8663 set dummy valgrind
; ac_word
=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8671 ac_cv_path_VALGRIND
="$VALGRIND" # Let the user override the test with a path.
8674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8678 test -z "$as_dir" && as_dir
=.
8679 for ac_exec_ext
in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_VALGRIND
="$as_dir/$ac_word$ac_exec_ext"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 VALGRIND
=$ac_cv_path_VALGRIND
8693 if test -n "$VALGRIND"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8695 $as_echo "$VALGRIND" >&6; }
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8702 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8703 as_fn_error $?
"ruby1.9 and valgrind are required for testing" "$LINENO" 5
8707 ################################################################################
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8709 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8710 # Check whether --enable-valgrind_pool was given.
8711 if test "${enable_valgrind_pool+set}" = set; then :
8712 enableval
=$enable_valgrind_pool; VALGRIND_POOL
=$enableval
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8718 $as_echo "$VALGRIND_POOL" >&6; }
8720 if test "$VALGRIND_POOL" = yes; then
8721 for ac_header
in valgrind
/memcheck.h
8723 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8724 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
8725 cat >>confdefs.h
<<_ACEOF
8726 #define HAVE_VALGRIND_MEMCHECK_H 1
8730 as_fn_error $?
"bailing out" "$LINENO" 5
8736 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8740 ################################################################################
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8742 $as_echo_n "checking whether to use device-mapper... " >&6; }
8743 # Check whether --enable-devmapper was given.
8744 if test "${enable_devmapper+set}" = set; then :
8745 enableval
=$enable_devmapper; DEVMAPPER
=$enableval
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8749 $as_echo "$DEVMAPPER" >&6; }
8751 if test x
$DEVMAPPER = xyes
; then
8753 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8757 ################################################################################
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8759 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8760 # Check whether --enable-udev_sync was given.
8761 if test "${enable_udev_sync+set}" = set; then :
8762 enableval
=$enable_udev_sync; UDEV_SYNC
=$enableval
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8768 $as_echo "$UDEV_SYNC" >&6; }
8770 if test x
$UDEV_SYNC = xyes
; then
8771 if test x
$PKGCONFIG_INIT != x1
; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8777 $as_echo_n "checking for UDEV... " >&6; }
8779 if test -n "$UDEV_CFLAGS"; then
8780 pkg_cv_UDEV_CFLAGS
="$UDEV_CFLAGS"
8781 elif test -n "$PKG_CONFIG"; then
8782 if test -n "$PKG_CONFIG" && \
8783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8784 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 pkg_cv_UDEV_CFLAGS
=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8795 if test -n "$UDEV_LIBS"; then
8796 pkg_cv_UDEV_LIBS
="$UDEV_LIBS"
8797 elif test -n "$PKG_CONFIG"; then
8798 if test -n "$PKG_CONFIG" && \
8799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8800 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8803 test $ac_status = 0; }; then
8804 pkg_cv_UDEV_LIBS
=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8814 if test $pkg_failed = yes; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8819 _pkg_short_errors_supported
=yes
8821 _pkg_short_errors_supported
=no
8823 if test $_pkg_short_errors_supported = yes; then
8824 UDEV_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8826 UDEV_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8828 # Put the nasty error message in config.log where it belongs
8829 echo "$UDEV_PKG_ERRORS" >&5
8831 as_fn_error $?
"Package requirements (libudev >= 143) were not met:
8835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8836 installed software in a non-standard prefix.
8838 Alternatively, you may set the environment variables UDEV_CFLAGS
8839 and UDEV_LIBS to avoid the need to call pkg-config.
8840 See the pkg-config man page for more details." "$LINENO" 5
8842 elif test $pkg_failed = untried
; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8847 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8848 is in your PATH or set the PKG_CONFIG environment variable to the full
8851 Alternatively, you may set the environment variables UDEV_CFLAGS
8852 and UDEV_LIBS to avoid the need to call pkg-config.
8853 See the pkg-config man page for more details.
8855 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8856 See \`config.log' for more details" "$LINENO" 5; }
8859 UDEV_CFLAGS
=$pkg_cv_UDEV_CFLAGS
8860 UDEV_LIBS
=$pkg_cv_UDEV_LIBS
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8862 $as_echo "yes" >&6; }
8866 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8871 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8872 # Check whether --enable-udev_rules was given.
8873 if test "${enable_udev_rules+set}" = set; then :
8874 enableval
=$enable_udev_rules; UDEV_RULES
=$enableval
8876 UDEV_RULES
=$UDEV_SYNC
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8880 $as_echo "$UDEV_RULES" >&6; }
8882 ################################################################################
8883 # Check whether --enable-compat was given.
8884 if test "${enable_compat+set}" = set; then :
8885 enableval
=$enable_compat; DM_COMPAT
=$enableval
8891 ################################################################################
8892 # Check whether --enable-units-compat was given.
8893 if test "${enable_units_compat+set}" = set; then :
8894 enableval
=$enable_units_compat; UNITS_COMPAT
=$enableval
8900 if test x
$UNITS_COMPAT = xyes
; then
8902 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8906 ################################################################################
8907 # Check whether --enable-ioctl was given.
8908 if test "${enable_ioctl+set}" = set; then :
8909 enableval
=$enable_ioctl; DM_IOCTLS
=$enableval
8913 ################################################################################
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8915 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8916 # Check whether --enable-o_direct was given.
8917 if test "${enable_o_direct+set}" = set; then :
8918 enableval
=$enable_o_direct; ODIRECT
=$enableval
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8922 $as_echo "$ODIRECT" >&6; }
8924 if test x
$ODIRECT = xyes
; then
8926 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8930 ################################################################################
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8932 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8933 # Check whether --enable-applib was given.
8934 if test "${enable_applib+set}" = set; then :
8935 enableval
=$enable_applib; APPLIB
=$enableval
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8941 $as_echo "$APPLIB" >&6; }
8943 test x
$APPLIB = xyes \
8944 && LVM2APP_LIB
=-llvm2app \
8947 ################################################################################
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8949 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8950 # Check whether --enable-cmdlib was given.
8951 if test "${enable_cmdlib+set}" = set; then :
8952 enableval
=$enable_cmdlib; CMDLIB
=$enableval
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8958 $as_echo "$CMDLIB" >&6; }
8960 test x
$CMDLIB = xyes \
8961 && LVM2CMD_LIB
=-llvm2cmd \
8964 ################################################################################
8965 # Check whether --enable-pkgconfig was given.
8966 if test "${enable_pkgconfig+set}" = set; then :
8967 enableval
=$enable_pkgconfig; PKGCONFIG
=$enableval
8973 ################################################################################
8974 # Check whether --enable-write_install was given.
8975 if test "${enable_write_install+set}" = set; then :
8976 enableval
=$enable_write_install; WRITE_INSTALL
=$enableval
8982 ################################################################################
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8984 $as_echo_n "checking whether to install fsadm... " >&6; }
8985 # Check whether --enable-fsadm was given.
8986 if test "${enable_fsadm+set}" = set; then :
8987 enableval
=$enable_fsadm; FSADM
=$enableval
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8991 $as_echo "$FSADM" >&6; }
8993 ################################################################################
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8995 $as_echo_n "checking whether to use dmeventd... " >&6; }
8996 # Check whether --enable-dmeventd was given.
8997 if test "${enable_dmeventd+set}" = set; then :
8998 enableval
=$enable_dmeventd; DMEVENTD
=$enableval
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9002 $as_echo "$DMEVENTD" >&6; }
9004 BUILD_DMEVENTD
=$DMEVENTD
9006 if test x
$DMEVENTD = xyes
; then
9007 if test x
$MIRRORS != xinternal
; then
9008 as_fn_error $?
"--enable-dmeventd currently requires --with-mirrors=internal
9011 if test x
$CMDLIB = xno
; then
9012 as_fn_error $?
"--enable-dmeventd requires --enable-cmdlib to be used as well
9017 if test x
$DMEVENTD = xyes
; then
9019 $as_echo "#define DMEVENTD 1" >>confdefs.h
9023 ################################################################################
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9026 $as_echo_n "checking for getline in -lc... " >&6; }
9027 if test "${ac_cv_lib_c_getline+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9030 ac_check_lib_save_LIBS
=$LIBS
9032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9035 /* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9050 if ac_fn_c_try_link
"$LINENO"; then :
9051 ac_cv_lib_c_getline
=yes
9053 ac_cv_lib_c_getline
=no
9055 rm -f core conftest.err conftest.
$ac_objext \
9056 conftest
$ac_exeext conftest.
$ac_ext
9057 LIBS
=$ac_check_lib_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9060 $as_echo "$ac_cv_lib_c_getline" >&6; }
9061 if test "x$ac_cv_lib_c_getline" = x
""yes; then :
9063 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9068 ################################################################################
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9071 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9072 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9075 ac_check_lib_save_LIBS
=$LIBS
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9086 char canonicalize_file_name ();
9090 return canonicalize_file_name ();
9095 if ac_fn_c_try_link
"$LINENO"; then :
9096 ac_cv_lib_c_canonicalize_file_name
=yes
9098 ac_cv_lib_c_canonicalize_file_name
=no
9100 rm -f core conftest.err conftest.
$ac_objext \
9101 conftest
$ac_exeext conftest.
$ac_ext
9102 LIBS
=$ac_check_lib_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9105 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9106 if test "x$ac_cv_lib_c_canonicalize_file_name" = x
""yes; then :
9108 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9113 ################################################################################
9114 if [ "x$exec_prefix" = xNONE
-a "x$prefix" = xNONE
];
9115 then exec_prefix
="";
9118 ################################################################################
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9124 ac_check_lib_save_LIBS
=$LIBS
9126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9144 if ac_fn_c_try_link
"$LINENO"; then :
9145 ac_cv_lib_dl_dlopen
=yes
9147 ac_cv_lib_dl_dlopen
=no
9149 rm -f core conftest.err conftest.
$ac_objext \
9150 conftest
$ac_exeext conftest.
$ac_ext
9151 LIBS
=$ac_check_lib_save_LIBS
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9155 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9158 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9169 ################################################################################
9170 if [ \
( "x$LVM1" = xshared
-o "x$POOL" = xshared
-o "x$CLUSTER" = xshared \
9171 -o "x$SNAPSHOTS" = xshared
-o "x$MIRRORS" = xshared \
9172 \
) -a "x$STATIC_LINK" = xyes
];
9173 then as_fn_error $?
"Features cannot be 'shared' when building statically
9177 ################################################################################
9178 if [ "$DMEVENTD" = yes -o "$CLVMD" != none
] ; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9180 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9181 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9184 ac_check_lib_save_LIBS
=$LIBS
9185 LIBS
="-lpthread $LIBS"
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9195 char pthread_mutex_lock ();
9199 return pthread_mutex_lock ();
9204 if ac_fn_c_try_link
"$LINENO"; then :
9205 ac_cv_lib_pthread_pthread_mutex_lock
=yes
9207 ac_cv_lib_pthread_pthread_mutex_lock
=no
9209 rm -f core conftest.err conftest.
$ac_objext \
9210 conftest
$ac_exeext conftest.
$ac_ext
9211 LIBS
=$ac_check_lib_save_LIBS
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9214 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9215 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x
""yes; then :
9216 PTHREAD_LIBS
="-lpthread"
9223 ################################################################################
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9225 $as_echo_n "checking whether to enable selinux support... " >&6; }
9226 # Check whether --enable-selinux was given.
9227 if test "${enable_selinux+set}" = set; then :
9228 enableval
=$enable_selinux; SELINUX
=$enableval
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9232 $as_echo "$SELINUX" >&6; }
9234 ################################################################################
9235 if test x
$SELINUX = xyes
; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9237 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9238 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 ac_check_lib_save_LIBS
=$LIBS
9242 LIBS
="-lsepol $LIBS"
9243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9246 /* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
9252 char sepol_check_context ();
9256 return sepol_check_context ();
9261 if ac_fn_c_try_link
"$LINENO"; then :
9262 ac_cv_lib_sepol_sepol_check_context
=yes
9264 ac_cv_lib_sepol_sepol_check_context
=no
9266 rm -f core conftest.err conftest.
$ac_objext \
9267 conftest
$ac_exeext conftest.
$ac_ext
9268 LIBS
=$ac_check_lib_save_LIBS
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9271 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9272 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then :
9275 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9277 SELINUX_LIBS
="-lsepol"
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9282 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9283 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9286 ac_check_lib_save_LIBS
=$LIBS
9287 LIBS
="-lselinux $LIBS"
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9297 char is_selinux_enabled ();
9301 return is_selinux_enabled ();
9306 if ac_fn_c_try_link
"$LINENO"; then :
9307 ac_cv_lib_selinux_is_selinux_enabled
=yes
9309 ac_cv_lib_selinux_is_selinux_enabled
=no
9311 rm -f core conftest.err conftest.
$ac_objext \
9312 conftest
$ac_exeext conftest.
$ac_ext
9313 LIBS
=$ac_check_lib_save_LIBS
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9316 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9317 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
9319 for ac_header
in selinux
/selinux.h
9321 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9322 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
9323 cat >>confdefs.h
<<_ACEOF
9324 #define HAVE_SELINUX_SELINUX_H 1
9333 for ac_header
in selinux
/label.h
9335 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9336 if test "x$ac_cv_header_selinux_label_h" = x
""yes; then :
9337 cat >>confdefs.h
<<_ACEOF
9338 #define HAVE_SELINUX_LABEL_H 1
9346 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9348 SELINUX_LIBS
="-lselinux $SELINUX_LIBS"
9349 SELINUX_PC
="libselinux"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9354 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9362 ################################################################################
9363 if test x
$REALTIME = xyes
; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9365 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9366 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9369 ac_check_lib_save_LIBS
=$LIBS
9371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9380 char clock_gettime ();
9384 return clock_gettime ();
9389 if ac_fn_c_try_link
"$LINENO"; then :
9390 ac_cv_lib_rt_clock_gettime
=yes
9392 ac_cv_lib_rt_clock_gettime
=no
9394 rm -f core conftest.err conftest.
$ac_objext \
9395 conftest
$ac_exeext conftest.
$ac_ext
9396 LIBS
=$ac_check_lib_save_LIBS
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9399 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9400 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
9407 if test x
$HAVE_REALTIME = xyes
; then
9409 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9414 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9418 ################################################################################
9419 for ac_header
in getopt.h
9421 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9422 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9423 cat >>confdefs.h
<<_ACEOF
9424 #define HAVE_GETOPT_H 1
9427 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9434 ################################################################################
9435 if test x
$READLINE != xno
; then
9436 lvm_saved_libs
=$LIBS
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9438 $as_echo_n "checking for library containing tgetent... " >&6; }
9439 if test "${ac_cv_search_tgetent+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9442 ac_func_search_save_LIBS
=$LIBS
9443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9461 for ac_lib
in '' tinfo ncurses curses termcap termlib
; do
9462 if test -z "$ac_lib"; then
9463 ac_res
="none required"
9466 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9468 if ac_fn_c_try_link
"$LINENO"; then :
9469 ac_cv_search_tgetent
=$ac_res
9471 rm -f core conftest.err conftest.
$ac_objext \
9473 if test "${ac_cv_search_tgetent+set}" = set; then :
9477 if test "${ac_cv_search_tgetent+set}" = set; then :
9480 ac_cv_search_tgetent
=no
9483 LIBS
=$ac_func_search_save_LIBS
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9486 $as_echo "$ac_cv_search_tgetent" >&6; }
9487 ac_res
=$ac_cv_search_tgetent
9488 if test "$ac_res" != no
; then :
9489 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9490 READLINE_LIBS
=$ac_cv_search_tgetent
9493 if test "$READLINE" = yes; then
9494 as_fn_error $?
"termcap could not be found which is required for the
9495 --enable-readline option (which is enabled by default). Either disable readline
9496 support with --disable-readline or download and install termcap from:
9497 ftp.gnu.org/gnu/termcap
9498 Note: if you are using precompiled packages you will also need the development
9499 package as well (which may be called termcap-devel or something similar).
9500 Note: (n)curses also seems to work as a substitute for termcap. This was
9501 not found either - but you could try installing that as well." "$LINENO" 5
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9506 $as_echo_n "checking for readline in -lreadline... " >&6; }
9507 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9510 ac_check_lib_save_LIBS
=$LIBS
9511 LIBS
="-lreadline $LIBS"
9512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9530 if ac_fn_c_try_link
"$LINENO"; then :
9531 ac_cv_lib_readline_readline
=yes
9533 ac_cv_lib_readline_readline
=no
9535 rm -f core conftest.err conftest.
$ac_objext \
9536 conftest
$ac_exeext conftest.
$ac_ext
9537 LIBS
=$ac_check_lib_save_LIBS
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9540 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9541 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
9544 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9546 LIBS
=$lvm_saved_libs
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9548 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9549 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9552 ac_check_lib_save_LIBS
=$LIBS
9553 LIBS
="-lreadline $LIBS"
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9563 char rl_line_buffer ();
9567 return rl_line_buffer ();
9572 if ac_fn_c_try_link
"$LINENO"; then :
9573 ac_cv_lib_readline_rl_line_buffer
=yes
9575 ac_cv_lib_readline_rl_line_buffer
=no
9577 rm -f core conftest.err conftest.
$ac_objext \
9578 conftest
$ac_exeext conftest.
$ac_ext
9579 LIBS
=$ac_check_lib_save_LIBS
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9582 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9583 if test "x$ac_cv_lib_readline_rl_line_buffer" = x
""yes; then :
9584 READLINE_LIBS
="-lreadline"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9588 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9589 READLINE_LIBS
="-lreadline $READLINE_LIBS"
9596 if test "$READLINE" = yes; then
9597 as_fn_error $?
"GNU Readline could not be found which is required for the
9598 --enable-readline option (which is enabled by default). Either disable readline
9599 support with --disable-readline or download and install readline from:
9600 ftp.gnu.org/gnu/readline
9601 Note: if you are using precompiled packages you will also need the development
9602 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9606 LIBS
="$READLINE_LIBS $lvm_saved_libs"
9607 for ac_func
in rl_completion_matches
9609 ac_fn_c_check_func
"$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9610 if test "x$ac_cv_func_rl_completion_matches" = x
""yes; then :
9611 cat >>confdefs.h
<<_ACEOF
9612 #define HAVE_RL_COMPLETION_MATCHES 1
9618 LIBS
=$lvm_saved_libs
9621 ################################################################################
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9623 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9624 # Check whether --enable-nls was given.
9625 if test "${enable_nls+set}" = set; then :
9626 enableval
=$enable_nls; INTL
=$enableval
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9632 $as_echo "$INTL" >&6; }
9634 if test x
$INTL = xyes
; then
9635 # FIXME - Move this - can be device-mapper too
9637 # Extract the first word of "msgfmt", so it can be a program name with args.
9638 set dummy msgfmt
; ac_word
=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9646 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
9649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir
=.
9654 for ac_exec_ext
in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 MSGFMT
=$ac_cv_path_MSGFMT
9668 if test -n "$MSGFMT"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9670 $as_echo "$MSGFMT" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9677 if [ "x$MSGFMT" == x
];
9678 then as_fn_error $?
"msgfmt not found in path $PATH
9683 # Check whether --with-localedir was given.
9684 if test "${with_localedir+set}" = set; then :
9685 withval
=$with_localedir; LOCALEDIR
=$withval
9687 LOCALEDIR
='${prefix}/share/locale'
9692 ################################################################################
9694 # Check whether --with-confdir was given.
9695 if test "${with_confdir+set}" = set; then :
9696 withval
=$with_confdir; CONFDIR
=$withval
9703 # Check whether --with-staticdir was given.
9704 if test "${with_staticdir+set}" = set; then :
9705 withval
=$with_staticdir; STATICDIR
=$withval
9707 STATICDIR
='${exec_prefix}/sbin'
9712 # Check whether --with-usrlibdir was given.
9713 if test "${with_usrlibdir+set}" = set; then :
9714 withval
=$with_usrlibdir; usrlibdir
=$withval
9716 usrlibdir
='${prefix}/lib'
9721 # Check whether --with-usrsbindir was given.
9722 if test "${with_usrsbindir+set}" = set; then :
9723 withval
=$with_usrsbindir; usrsbindir
=$withval
9725 usrsbindir
='${prefix}/sbin'
9729 ################################################################################
9731 # Check whether --with-udev_prefix was given.
9732 if test "${with_udev_prefix+set}" = set; then :
9733 withval
=$with_udev_prefix; udev_prefix
=$withval
9735 udev_prefix
='${exec_prefix}'
9740 # Check whether --with-udevdir was given.
9741 if test "${with_udevdir+set}" = set; then :
9742 withval
=$with_udevdir; udevdir
=$withval
9744 udevdir
='${udev_prefix}/lib/udev/rules.d'
9748 ################################################################################
9749 if test x
$READLINE = xyes
; then
9750 for ac_header
in readline
/readline.h readline
/history.h
9752 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9753 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9754 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9755 cat >>confdefs.h
<<_ACEOF
9756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9760 as_fn_error $?
"bailing out" "$LINENO" 5
9767 if test x
$CLVMD != xnone
; then
9768 for ac_header
in mntent.h netdb.h netinet
/in.h pthread.h search.h sys
/mount.h sys
/socket.h sys
/uio.h sys
/un.h utmpx.h
9770 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9772 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9773 cat >>confdefs.h
<<_ACEOF
9774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9778 as_fn_error $?
"bailing out" "$LINENO" 5
9783 for ac_func
in dup2 getmntent memmove
select socket
9785 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9786 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9787 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9788 cat >>confdefs.h
<<_ACEOF
9789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9793 as_fn_error $?
"bailing out" "$LINENO" 5
9797 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9798 # -lseq on Dynix/PTX, -lgen on Unixware.
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9800 $as_echo_n "checking for library containing getmntent... " >&6; }
9801 if test "${ac_cv_search_getmntent+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9804 ac_func_search_save_LIBS
=$LIBS
9805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9818 return getmntent ();
9823 for ac_lib
in '' sun
seq gen
; do
9824 if test -z "$ac_lib"; then
9825 ac_res
="none required"
9828 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9830 if ac_fn_c_try_link
"$LINENO"; then :
9831 ac_cv_search_getmntent
=$ac_res
9833 rm -f core conftest.err conftest.
$ac_objext \
9835 if test "${ac_cv_search_getmntent+set}" = set; then :
9839 if test "${ac_cv_search_getmntent+set}" = set; then :
9842 ac_cv_search_getmntent
=no
9845 LIBS
=$ac_func_search_save_LIBS
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9848 $as_echo "$ac_cv_search_getmntent" >&6; }
9849 ac_res
=$ac_cv_search_getmntent
9850 if test "$ac_res" != no
; then :
9851 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9852 ac_cv_func_getmntent
=yes
9854 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9857 ac_cv_func_getmntent
=no
9861 for ac_header
in sys
/select.h sys
/socket.h
9863 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9865 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9866 cat >>confdefs.h
<<_ACEOF
9867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9875 $as_echo_n "checking types of arguments for select... " >&6; }
9876 if test "${ac_cv_func_select_args+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9879 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
9880 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9881 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
9882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 $ac_includes_default
9885 #ifdef HAVE_SYS_SELECT_H
9886 # include <sys/select.h>
9888 #ifdef HAVE_SYS_SOCKET_H
9889 # include <sys/socket.h>
9895 extern int select ($ac_arg1,
9896 $ac_arg234, $ac_arg234, $ac_arg234,
9902 if ac_fn_c_try_compile
"$LINENO"; then :
9903 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9909 # Provide a safe default value.
9910 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9914 $as_echo "$ac_cv_func_select_args" >&6; }
9915 ac_save_IFS
=$IFS; IFS
=','
9916 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9920 cat >>confdefs.h
<<_ACEOF
9921 #define SELECT_TYPE_ARG1 $1
9925 cat >>confdefs.h
<<_ACEOF
9926 #define SELECT_TYPE_ARG234 ($2)
9930 cat >>confdefs.h
<<_ACEOF
9931 #define SELECT_TYPE_ARG5 ($3)
9938 if test x
$CLUSTER != xnone
; then
9939 for ac_header
in sys
/socket.h sys
/un.h
9941 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9943 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9944 cat >>confdefs.h
<<_ACEOF
9945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9949 as_fn_error $?
"bailing out" "$LINENO" 5
9954 for ac_func
in socket
9956 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
9957 if test "x$ac_cv_func_socket" = x
""yes; then :
9958 cat >>confdefs.h
<<_ACEOF
9959 #define HAVE_SOCKET 1
9963 as_fn_error $?
"bailing out" "$LINENO" 5
9969 if test x
$DMEVENTD = xyes
; then
9970 for ac_header
in arpa
/inet.h
9972 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9973 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
9974 cat >>confdefs.h
<<_ACEOF
9975 #define HAVE_ARPA_INET_H 1
9979 as_fn_error $?
"bailing out" "$LINENO" 5
9986 if test x
$HAVE_LIBDL = xyes
; then
9987 for ac_header
in dlfcn.h
9989 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9990 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
9991 cat >>confdefs.h
<<_ACEOF
9992 #define HAVE_DLFCN_H 1
9996 as_fn_error $?
"bailing out" "$LINENO" 5
10003 if test x
$INTL = xyes
; then
10004 for ac_header
in libintl.h
10006 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10007 if test "x$ac_cv_header_libintl_h" = x
""yes; then :
10008 cat >>confdefs.h
<<_ACEOF
10009 #define HAVE_LIBINTL_H 1
10013 as_fn_error $?
"bailing out" "$LINENO" 5
10020 if test x
$UDEV_SYNC = xyes
; then
10021 for ac_header
in sys
/ipc.h sys
/sem.h
10023 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10024 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10025 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10026 cat >>confdefs.h
<<_ACEOF
10027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10031 as_fn_error $?
"bailing out" "$LINENO" 5
10038 ################################################################################
10039 # Extract the first word of "modprobe", so it can be a program name with args.
10040 set dummy modprobe
; ac_word
=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10046 case $MODPROBE_CMD in
10048 ac_cv_path_MODPROBE_CMD
="$MODPROBE_CMD" # Let the user override the test with a path.
10051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10052 for as_dir
in $PATH
10055 test -z "$as_dir" && as_dir
=.
10056 for ac_exec_ext
in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_path_MODPROBE_CMD
="$as_dir/$ac_word$ac_exec_ext"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 MODPROBE_CMD
=$ac_cv_path_MODPROBE_CMD
10070 if test -n "$MODPROBE_CMD"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10072 $as_echo "$MODPROBE_CMD" >&6; }
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10080 if test x
$MODPROBE_CMD != x
; then
10082 cat >>confdefs.h
<<_ACEOF
10083 #define MODPROBE_CMD "$MODPROBE_CMD"
10089 lvm_exec_prefix
=$exec_prefix
10090 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$prefix
10091 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$ac_default_prefix
10093 cat >>confdefs.h
<<_ACEOF
10094 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
10098 if test "$CLVMD" != none
; then
10099 clvmd_prefix
=$ac_default_prefix
10100 test "$prefix" != NONE
&& clvmd_prefix
=$prefix
10102 cat >>confdefs.h
<<_ACEOF
10103 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10108 ################################################################################
10109 if test "$BUILD_DMEVENTD" = yes; then
10111 # Check whether --with-dmeventd-pidfile was given.
10112 if test "${with_dmeventd_pidfile+set}" = set; then :
10113 withval
=$with_dmeventd_pidfile; DMEVENTD_PIDFILE
=$withval
10115 DMEVENTD_PIDFILE
="/var/run/dmeventd.pid"
10119 cat >>confdefs.h
<<_ACEOF
10120 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10125 if test "$BUILD_DMEVENTD" = yes; then
10127 # Check whether --with-dmeventd-path was given.
10128 if test "${with_dmeventd_path+set}" = set; then :
10129 withval
=$with_dmeventd_path; DMEVENTD_PATH
=$withval
10131 DMEVENTD_PATH
="$lvm_exec_prefix/sbin/dmeventd"
10135 cat >>confdefs.h
<<_ACEOF
10136 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10143 # Check whether --with-default-run-dir was given.
10144 if test "${with_default_run_dir+set}" = set; then :
10145 withval
=$with_default_run_dir; DEFAULT_RUN_DIR
="$withval"
10147 DEFAULT_RUN_DIR
="/var/run/lvm"
10150 cat >>confdefs.h
<<_ACEOF
10151 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10155 ################################################################################
10157 # Check whether --with-default-system-dir was given.
10158 if test "${with_default_system_dir+set}" = set; then :
10159 withval
=$with_default_system_dir; DEFAULT_SYS_DIR
=$withval
10161 DEFAULT_SYS_DIR
="/etc/lvm"
10165 cat >>confdefs.h
<<_ACEOF
10166 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10171 # Check whether --with-default-archive-subdir was given.
10172 if test "${with_default_archive_subdir+set}" = set; then :
10173 withval
=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR
=$withval
10175 DEFAULT_ARCHIVE_SUBDIR
=archive
10179 cat >>confdefs.h
<<_ACEOF
10180 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10185 # Check whether --with-default-backup-subdir was given.
10186 if test "${with_default_backup_subdir+set}" = set; then :
10187 withval
=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR
=$withval
10189 DEFAULT_BACKUP_SUBDIR
=backup
10193 cat >>confdefs.h
<<_ACEOF
10194 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10199 # Check whether --with-default-cache-subdir was given.
10200 if test "${with_default_cache_subdir+set}" = set; then :
10201 withval
=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR
=$withval
10203 DEFAULT_CACHE_SUBDIR
=cache
10207 cat >>confdefs.h
<<_ACEOF
10208 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10213 # Check whether --with-default-locking-dir was given.
10214 if test "${with_default_locking_dir+set}" = set; then :
10215 withval
=$with_default_locking_dir; DEFAULT_LOCK_DIR
=$withval
10217 DEFAULT_LOCK_DIR
="/var/lock/lvm"
10221 cat >>confdefs.h
<<_ACEOF
10222 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10226 ################################################################################
10228 # Check whether --with-default-data-alignment was given.
10229 if test "${with_default_data_alignment+set}" = set; then :
10230 withval
=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT
=$withval
10232 DEFAULT_DATA_ALIGNMENT
=1
10236 cat >>confdefs.h
<<_ACEOF
10237 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10241 ################################################################################
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10243 $as_echo_n "checking for kernel interface choice... " >&6; }
10245 # Check whether --with-interface was given.
10246 if test "${with_interface+set}" = set; then :
10247 withval
=$with_interface; interface
=$withval
10252 if [ "x$interface" != xioctl
];
10254 as_fn_error $?
"--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10257 $as_echo "$interface" >&6; }
10259 ################################################################################
10260 DM_LIB_VERSION
="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10262 cat >>confdefs.h
<<_ACEOF
10263 #define DM_LIB_VERSION $DM_LIB_VERSION
10267 DM_LIB_PATCHLEVEL
=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10269 LVM_VERSION
="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10271 VER
=`cat "$srcdir"/VERSION`
10272 LVM_RELEASE_DATE
="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10273 VER
=`echo "$VER" | $AWK '{print $1}'`
10274 LVM_RELEASE
="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10275 VER
=`echo "$VER" | $AWK -F '-' '{print $1}'`
10276 LVM_MAJOR
=`echo "$VER" | $AWK -F '.' '{print $1}'`
10277 LVM_MINOR
=`echo "$VER" | $AWK -F '.' '{print $2}'`
10278 LVM_PATCHLEVEL
=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10279 LVM_LIBAPI
=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10281 ################################################################################
10385 ################################################################################
10386 ac_config_files
="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10388 cat >confcache
<<\_ACEOF
10389 # This file is a shell script that caches the results of configure
10390 # tests run on this system so they can be shared between configure
10391 # scripts and configure runs, see configure's option --config-cache.
10392 # It is not useful on other systems. If it contains results you don't
10393 # want to keep, you may remove or edit it.
10395 # config.status only pays attention to the cache file if you give it
10396 # the --recheck option to rerun configure.
10398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10400 # following values.
10404 # The following way of writing the cache mishandles newlines in values,
10405 # but we know of no workaround that is simple, portable, and efficient.
10406 # So, we kill variables containing newlines.
10407 # Ultrix sh set writes to stderr and can't be redirected directly,
10408 # and sets the high bit in the cache file unless we assign to the vars.
10410 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10411 eval ac_val
=\$
$ac_var
10415 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10419 _ | IFS | as_nl
) ;; #(
10420 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10421 *) { eval $ac_var=; unset $ac_var;} ;;
10427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10428 *${as_nl}ac_space
=\
*)
10429 # `set' does not quote correctly, so add quotes: double-quote
10430 # substitution turns \\\\ into \\, and sed turns \\ into \.
10433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10436 # `set' quotes correctly as required by POSIX, so do not add quotes.
10437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10450 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10451 if test -w "$cache_file"; then
10452 test "x$cache_file" != "x/dev/null" &&
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10454 $as_echo "$as_me: updating cache $cache_file" >&6;}
10455 cat confcache
>$cache_file
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10458 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10463 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10464 # Let make expand exec_prefix.
10465 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10467 DEFS
=-DHAVE_CONFIG_H
10472 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10473 # 1. Remove the extension, and $U if already installed.
10474 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10475 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10477 # will be set to the directory where LIBOBJS objects are built.
10478 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10479 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10481 LIBOBJS
=$ac_libobjs
10483 LTLIBOBJS
=$ac_ltlibobjs
10487 : ${CONFIG_STATUS=./config.status}
10489 ac_clean_files_save
=$ac_clean_files
10490 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10496 # Generated by $as_me.
10497 # Run this file to recreate the current configuration.
10498 # Compiler output produced by configure, useful for debugging
10499 # configure, is in config.log if it exists.
10502 ac_cs_recheck=false
10505 SHELL=\${CONFIG_SHELL-$SHELL}
10508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10509 ## -------------------- ##
10510 ## M4sh Initialization. ##
10511 ## -------------------- ##
10513 # Be more Bourne compatible
10514 DUALCASE
=1; export DUALCASE
# for MKS sh
10515 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10519 # is contrary to our usage. Disable this feature.
10520 alias -g '${1+"$@"}'='"$@"'
10521 setopt NO_GLOB_SUBST
10523 case `(set -o) 2>/dev/null` in #(
10535 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10536 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10539 # Prefer a ksh shell builtin over an external printf program on Solaris,
10540 # but without wasting forks for bash or zsh.
10541 if test -z "$BASH_VERSION$ZSH_VERSION" \
10542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10543 as_echo='print
-r --'
10544 as_echo_n='print
-rn --'
10545 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10546 as_echo='printf %s
\n'
10547 as_echo_n='printf %s
'
10549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10550 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10551 as_echo_n='/usr
/ucb
/echo -n'
10553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10554 as_echo_n_body='eval
10558 expr "X$arg" : "X\\(.*\\)$as_nl";
10559 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10561 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10563 export as_echo_n_body
10564 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10566 export as_echo_body
10567 as_echo='sh
-c $as_echo_body as_echo
'
10570 # The user is always right.
10571 if test "${PATH_SEPARATOR+set}" != set; then
10573 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10574 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10581 # We need space, tab and new line, in precisely that order. Quoting is
10582 # there to prevent editors from complaining about space-tab.
10583 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10584 # splitting by setting IFS to empty value.)
10587 # Find who we are. Look in the path if we contain no directory separator.
10589 *[\\/]* ) as_myself=$0 ;;
10590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10594 test -z "$as_dir" && as_dir=.
10595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10601 # We did not find ourselves, most probably we were run as `sh COMMAND'
10602 # in which case we are not to be found in the path.
10603 if test "x$as_myself" = x
; then
10606 if test ! -f "$as_myself"; then
10607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10611 # Unset variables that we do not need and which cause bugs (e.g. in
10612 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10613 # suppresses any "Segmentation fault" message there. '((' could
10614 # trigger a bug in pdksh 5.2.14.
10615 for as_var
in BASH_ENV ENV MAIL MAILPATH
10616 do eval test x\
${$as_var+set} = xset \
10617 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10630 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10633 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10634 # ----------------------------------------
10635 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10636 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10637 # script with STATUS, using 1 if that was 0.
10640 as_status
=$1; test $as_status -eq 0 && as_status
=1
10642 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10645 $as_echo "$as_me: error: $2" >&2
10646 as_fn_exit
$as_status
10650 # as_fn_set_status STATUS
10651 # -----------------------
10652 # Set $? to STATUS, without forking.
10653 as_fn_set_status
()
10656 } # as_fn_set_status
10658 # as_fn_exit STATUS
10659 # -----------------
10660 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10664 as_fn_set_status
$1
10670 # Portably unset VAR.
10673 { eval $1=; unset $1;}
10675 as_unset
=as_fn_unset
10676 # as_fn_append VAR VALUE
10677 # ----------------------
10678 # Append the text in VALUE to the end of the definition contained in VAR. Take
10679 # advantage of any shell optimizations that allow amortized linear growth over
10680 # repeated appends, instead of the typical quadratic growth present in naive
10682 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10683 eval 'as_fn_append ()
10694 # as_fn_arith ARG...
10695 # ------------------
10696 # Perform arithmetic evaluation on the ARGs, and store the result in the
10697 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10698 # must be portable across $(()) and expr.
10699 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10700 eval 'as_fn_arith ()
10707 as_val
=`expr "$@" || test $? -eq 1`
10712 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10713 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10719 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10720 as_basename
=basename
10725 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10731 as_me
=`$as_basename -- "$0" ||
10732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10733 X"$0" : 'X\(//\)$' \| \
10734 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10736 sed '/^.*\/\([^/][^/]*\)\/*$/{
10750 # Avoid depending upon Character Ranges.
10751 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10752 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10753 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10754 as_cr_digits
='0123456789'
10755 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10757 ECHO_C
= ECHO_N
= ECHO_T
=
10758 case `echo -n x` in #(((((
10760 case `echo 'xy\c'` in
10761 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10763 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10770 rm -f conf$$ conf$$.exe conf$$.
file
10771 if test -d conf$$.dir
; then
10772 rm -f conf$$.dir
/conf$$.
file
10775 mkdir conf$$.dir
2>/dev
/null
10777 if (echo >conf$$.
file) 2>/dev
/null
; then
10778 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10780 # ... but there are two gotchas:
10781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10783 # In both cases, we have to default to `cp -p'.
10784 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10786 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10794 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10795 rmdir conf$$.dir
2>/dev
/null
10800 # Create "$as_dir" as a directory, including parents if necessary.
10805 -*) as_dir
=.
/$as_dir;;
10807 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10811 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10812 *) as_qdir
=$as_dir;;
10814 as_dirs
="'$as_qdir' $as_dirs"
10815 as_dir
=`$as_dirname -- "$as_dir" ||
10816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10817 X"$as_dir" : 'X\(//\)[^/]' \| \
10818 X"$as_dir" : 'X\(//\)$' \| \
10819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10820 $as_echo X"$as_dir" |
10821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10825 /^X\(\/\/\)[^/].*/{
10838 test -d "$as_dir" && break
10840 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10841 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10845 if mkdir
-p .
2>/dev
/null
; then
10846 as_mkdir_p
='mkdir -p "$as_dir"'
10848 test -d .
/-p && rmdir .
/-p
10852 if test -x / >/dev
/null
2>&1; then
10853 as_test_x
='test -x'
10855 if ls -dL / >/dev
/null
2>&1; then
10862 if test -d "$1"; then
10868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10869 ???[sx]*):;;*)false;;esac;fi
10873 as_executable_p
=$as_test_x
10875 # Sed expression to map a string onto a valid CPP name.
10876 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10878 # Sed expression to map a string onto a valid variable name.
10879 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10883 ## ----------------------------------- ##
10884 ## Main body of $CONFIG_STATUS script. ##
10885 ## ----------------------------------- ##
10887 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10890 # Save the log message, to keep $0 and so on meaningful, and to
10891 # report actual input values of CONFIG_FILES etc. instead of their
10892 # values after options handling.
10894 This file was extended by $as_me, which was
10895 generated by GNU Autoconf 2.66. Invocation command line was
10897 CONFIG_FILES = $CONFIG_FILES
10898 CONFIG_HEADERS = $CONFIG_HEADERS
10899 CONFIG_LINKS = $CONFIG_LINKS
10900 CONFIG_COMMANDS = $CONFIG_COMMANDS
10903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10908 case $ac_config_files in *"
10909 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10912 case $ac_config_headers in *"
10913 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10918 # Files that config.status was made for.
10919 config_files="$ac_config_files"
10920 config_headers="$ac_config_headers"
10924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10926 \`$as_me' instantiates files and other configuration actions
10927 from templates according to the current configuration. Unless the files
10928 and actions are specified as TAGs, all are instantiated by default.
10930 Usage: $0 [OPTION]... [TAG]...
10932 -h, --help print this help, then exit
10933 -V, --version print version number and configuration settings, then exit
10934 --config print configuration, then exit
10935 -q, --quiet, --silent
10936 do not print progress messages
10937 -d, --debug don't remove temporary files
10938 --recheck update $as_me by reconfiguring in the same conditions
10939 --file=FILE[:TEMPLATE]
10940 instantiate the configuration file FILE
10941 --header=FILE[:TEMPLATE]
10942 instantiate the configuration header FILE
10944 Configuration files:
10947 Configuration headers:
10950 Report bugs to the package provider."
10953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10954 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10957 configured by $0, generated by GNU Autoconf 2.66,
10958 with options \\"\$ac_cs_config\\"
10960 Copyright (C) 2010 Free Software Foundation, Inc.
10961 This config.status script is free software; the Free Software Foundation
10962 gives unlimited permission to copy, distribute and modify it."
10969 test -n "\$AWK" || AWK=awk
10972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10973 # The default lists apply if the user does not specify any file.
10979 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10980 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10991 # Handling of the options.
10992 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10994 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10995 $as_echo "$ac_cs_version"; exit ;;
10996 --config |
--confi |
--conf |
--con |
--co |
--c )
10997 $as_echo "$ac_cs_config"; exit ;;
10998 --debug |
--debu |
--deb |
--de |
--d |
-d )
11000 --file |
--fil |
--fi |
--f )
11003 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11005 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11006 ac_need_defaults
=false
;;
11007 --header |
--heade |
--head |
--hea )
11010 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11012 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11013 ac_need_defaults
=false
;;
11015 # Conflict between --help and --header
11016 as_fn_error $?
"ambiguous option: \`$1'
11017 Try \`$0 --help' for more information.";;
11018 --help |
--hel |
-h )
11019 $as_echo "$ac_cs_usage"; exit ;;
11020 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11021 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11024 # This is an error.
11025 -*) as_fn_error $?
"unrecognized option: \`$1'
11026 Try \`$0 --help' for more information." ;;
11028 *) as_fn_append ac_config_targets
" $1"
11029 ac_need_defaults
=false
;;
11035 ac_configure_extra_args
=
11037 if $ac_cs_silent; then
11039 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11044 if \$ac_cs_recheck; then
11045 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11047 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11048 CONFIG_SHELL='$SHELL'
11049 export CONFIG_SHELL
11054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11059 ## Running $as_me. ##
11065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11070 # Handling of arguments.
11071 for ac_config_target
in $ac_config_targets
11073 case $ac_config_target in
11074 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
11075 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11076 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
11077 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
11078 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11079 "daemons/cmirrord/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11080 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11081 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11082 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11083 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11084 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11085 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11086 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
11087 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
11088 "include/.symlinks") CONFIG_FILES
="$CONFIG_FILES include/.symlinks" ;;
11089 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
11090 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
11091 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
11092 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
11093 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
11094 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
11095 "lib/replicator/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/replicator/Makefile" ;;
11096 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11097 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
11098 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
11099 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11100 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
11101 "liblvm/liblvm2app.pc") CONFIG_FILES
="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11102 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
11103 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
11104 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11105 "scripts/cmirrord_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11106 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11107 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11108 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11109 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
11110 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
11111 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
11112 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
11113 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
11114 "unit-tests/datastruct/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11115 "unit-tests/regex/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11116 "unit-tests/mm/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11118 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11123 # If the user did not use the arguments to specify the items to instantiate,
11124 # then the envvar interface is used. Set only those that are not.
11125 # We use the long form for the default assignment because of an extremely
11126 # bizarre bug on SunOS 4.1.3.
11127 if $ac_need_defaults; then
11128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11132 # Have a temporary directory for convenience. Make it in the build tree
11133 # simply because there is no reason against having it here, and in addition,
11134 # creating and moving files from /tmp can sometimes cause problems.
11135 # Hook for its removal unless debugging.
11136 # Note that there is a small window in which the directory will not be cleaned:
11137 # after its creation but before its name has been assigned to `$tmp'.
11141 trap 'exit_status=$?
11142 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11144 trap 'as_fn_exit 1' 1 2 13 15
11146 # Create a (secure) tmp directory for tmp files.
11149 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11150 test -n "$tmp" && test -d "$tmp"
11153 tmp
=.
/conf$$
-$RANDOM
11154 (umask 077 && mkdir
"$tmp")
11155 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11157 # Set up the scripts for CONFIG_FILES section.
11158 # No need to generate them if there are no CONFIG_FILES.
11159 # This happens for instance with `./config.status config.h'.
11160 if test -n "$CONFIG_FILES"; then
11163 ac_cr
=`echo X | tr X '\015'`
11164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11165 # But we know of no other shell where ac_cr would be empty at this
11166 # point, so we can use a bashism as a fallback.
11167 if test "x$ac_cr" = x
; then
11168 eval ac_cr
=\$
\'\\r
\'
11170 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11174 ac_cs_awk_cr
=$ac_cr
11177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11182 echo "cat >conf$$subs.awk <<_ACEOF" &&
11183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11185 } >conf$$subs.sh ||
11186 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11189 for ac_last_try in false false false false false :; do
11190 . ./conf$$subs.sh ||
11191 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11193 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11194 if test $ac_delim_n = $ac_delim_num; then
11196 elif $ac_last_try; then
11197 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11199 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11202 rm -f conf$$subs.sh
11204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11205 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
11209 s/^/S["/; s
/!.
*/"]=/
11219 s/\(.\{148\}\)..*/\1/
11221 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11226 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11233 s/\(.\{148\}\)..*/\1/
11235 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11239 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11244 ' <conf$$subs.awk | sed '
11249 ' >>$CONFIG_STATUS || ac_write_fail=1
11250 rm -f conf$$subs.awk
11251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11253 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
11254 for (key in S) S_is_set[key] = 1
11260 nfields = split(line, field, "@
")
11262 len = length(field[1])
11263 for (i = 2; i < nfields; i++) {
11265 keylen = length(key)
11266 if (S_is_set[key]) {
11268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11269 len += length(value) + length(field[++i])
11280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11281 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11282 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11285 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
11286 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11291 # trailing colons and then remove the whole line if VPATH becomes empty
11292 # (actually we leave an empty line to preserve line numbers).
11293 if test "x
$srcdir" = x.; then
11294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11313 fi # test -n "$CONFIG_FILES"
11315 # Set up the scripts for CONFIG_HEADERS section.
11316 # No need to generate them if there are no CONFIG_HEADERS.
11317 # This happens for instance with `./config.status Makefile'.
11318 if test -n "$CONFIG_HEADERS"; then
11319 cat >"$tmp/defines.
awk" <<\_ACAWK ||
11323 # Transform confdefs.h into an awk script `defines.awk', embedded as
11324 # here-document in config.status, that substitutes the proper values into
11325 # config.h.in to produce config.h.
11327 # Create a delimiter string that does not exist in confdefs.h, to ease
11328 # handling of long lines.
11330 for ac_last_try in false false :; do
11331 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
11332 if test -z "$ac_t"; then
11334 elif $ac_last_try; then
11335 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11337 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11341 # For the awk script, D is an array of macro values keyed by name,
11342 # likewise P contains macro parameters if any. Preserve backslash
11343 # newline sequences.
11345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11347 s/.\{148\}/&'"$ac_delim"'/g
11350 s/^[ ]*#[ ]*define[ ][ ]*/ /
11357 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11359 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11364 D["\
1"]=" \
3\\\\\\n
"\\/p
11366 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11371 s/.\{148\}/&'"$ac_delim"'/g
11376 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11379 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11381 ' <confdefs.h | sed '
11382 s/'"$ac_delim"'/"\\\
11383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 for (key in D) D_is_set[key] = 1
11389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11391 split(line, arg, " ")
11392 if (arg[1] == "#") {
11396 defundef
= substr
(arg
[1], 2)
11399 split(mac1
, mac2
, "(") #)
11401 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11402 if (D_is_set
[macro
]) {
11403 # Preserve the white space surrounding the "#".
11404 print prefix
"define", macro P
[macro
] D
[macro
]
11407 # Replace #undef with comments. This is necessary, for example,
11408 # in the case of _POSIX_SOURCE, which is predefined and required
11409 # on some systems where configure will not decide to define it.
11410 if (defundef
== "undef") {
11411 print
"/*", prefix defundef
, macro
, "*/"
11419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11420 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11421 fi # test -n "$CONFIG_HEADERS"
11424 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11429 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11431 case $ac_mode$ac_tag in
11433 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11434 :[FH
]-) ac_tag
=-:-;;
11435 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11452 -) ac_f
="$tmp/stdin";;
11453 *) # Look for the file first in the build tree, then in the source tree
11454 # (if the path is not absolute). The absolute path cannot be DOS-style,
11455 # because $ac_f cannot contain `:'.
11459 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11461 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11463 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11464 as_fn_append ac_file_inputs
" '$ac_f'"
11467 # Let's still pretend it is `configure' which instantiates (i.e., don't
11468 # use $as_me), people would be surprised to read:
11469 # /* config.h. Generated by config.status. */
11470 configure_input
='Generated from '`
11471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11473 if test x
"$ac_file" != x-
; then
11474 configure_input
="$ac_file. $configure_input"
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11476 $as_echo "$as_me: creating $ac_file" >&6;}
11478 # Neutralize special characters interpreted by sed in replacement strings.
11479 case $configure_input in #(
11480 *\
&* |
*\|
* |
*\\* )
11481 ac_sed_conf_input
=`$as_echo "$configure_input" |
11482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11483 *) ac_sed_conf_input
=$configure_input;;
11487 *:-:* |
*:-) cat >"$tmp/stdin" \
11488 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11493 ac_dir
=`$as_dirname -- "$ac_file" ||
11494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11495 X"$ac_file" : 'X\(//\)[^/]' \| \
11496 X"$ac_file" : 'X\(//\)$' \| \
11497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11498 $as_echo X"$ac_file" |
11499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11503 /^X\(\/\/\)[^/].*/{
11516 as_dir
="$ac_dir"; as_fn_mkdir_p
11520 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11522 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11523 # A ".." for each directory in $ac_dir_suffix.
11524 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11525 case $ac_top_builddir_sub in
11526 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11527 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11530 ac_abs_top_builddir
=$ac_pwd
11531 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11532 # for backward compatibility:
11533 ac_top_builddir
=$ac_top_build_prefix
11536 .
) # We are building in place.
11538 ac_top_srcdir
=$ac_top_builddir_sub
11539 ac_abs_top_srcdir
=$ac_pwd ;;
11540 [\\/]* | ?
:[\\/]* ) # Absolute name.
11541 ac_srcdir
=$srcdir$ac_dir_suffix;
11542 ac_top_srcdir
=$srcdir
11543 ac_abs_top_srcdir
=$srcdir ;;
11544 *) # Relative name.
11545 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11546 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11547 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11549 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11559 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11560 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11562 ac_MKDIR_P
=$MKDIR_P
11564 [\\/$
]* | ?
:[\\/]* ) ;;
11565 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11570 # If the template does not know about datarootdir, expand it.
11571 # FIXME: This hack should be removed a few years after 2.60.
11572 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11584 *datarootdir
*) ac_datarootdir_seen
=yes;;
11585 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11590 ac_datarootdir_hack='
11591 s&@datadir@&$datadir&g
11592 s&@docdir@&$docdir&g
11593 s&@infodir@&$infodir&g
11594 s&@localedir@&$localedir&g
11595 s&@mandir@&$mandir&g
11596 s&\\\${datarootdir}&$datarootdir&g' ;;
11600 # Neutralize VPATH when `$srcdir' = `.'.
11601 # Shell code in configure.ac might set extrasub.
11602 # FIXME: do we really want to maintain this feature?
11603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11604 ac_sed_extra="$ac_vpsub
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11609 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11610 s|@configure_input@|
$ac_sed_conf_input|
;t t
11611 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11612 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11613 s
&@srcdir@
&$ac_srcdir&;t t
11614 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11615 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11616 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11617 s
&@builddir@
&$ac_builddir&;t t
11618 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11619 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11620 s
&@INSTALL@
&$ac_INSTALL&;t t
11621 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11622 $ac_datarootdir_hack
11624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
11625 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11628 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11631 which seems to be undefined. Please make sure it is defined" >&5
11632 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11633 which seems to be undefined. Please make sure it is defined" >&2;}
11637 -) cat "$tmp/out" && rm -f "$tmp/out";;
11638 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11646 if test x"$ac_file" != x-; then
11648 $as_echo "/* $configure_input */" \
11649 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11650 } >"$tmp/config.h" \
11651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11652 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11654 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11657 mv "$tmp/config.h" "$ac_file" \
11658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11661 $as_echo "/* $configure_input */" \
11662 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11663 || as_fn_error $? "could not create -" "$LINENO" 5
11675 ac_clean_files=$ac_clean_files_save
11677 test $ac_write_fail = 0 ||
11678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11681 # configure is writing to config.log, and then calls config.status.
11682 # config.status does its own redirection, appending to config.log.
11683 # Unfortunately, on DOS this fails, as config.log is still kept open
11684 # by configure, so config.status won't be able to
write to it
; its
11685 # output is simply discarded. So we exec the FD to /dev/null,
11686 # effectively closing config.log, so it can be properly (re)opened and
11687 # appended to by config.status. When coming back to configure, we
11688 # need to make the FD available again.
11689 if test "$no_create" != yes; then
11691 ac_config_status_args
=
11692 test "$silent" = yes &&
11693 ac_config_status_args
="$ac_config_status_args --quiet"
11695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11698 # would make configure fail if this is the last instruction.
11699 $ac_cs_success || as_fn_exit
1
11701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11703 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11707 if test x
$ODIRECT != xyes
; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11709 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}