]> sourceware.org Git - lvm2.git/blame - configure
veritysetup: Remove code as now in cryptsetup.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
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'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
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.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
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.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
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.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test 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
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
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 :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
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
209fi; }
210IFS=$as_save_IFS
211
212
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
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."
230 else
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."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
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
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
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.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
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.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
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
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
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. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
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; }
ad6254c5 443
f11781c5
AK
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).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
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 ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
4417a8bd 599tmpfilesdir
e587cb6a 600systemdsystemunitdir
a5f46f6a
AK
601udevdir
602udev_prefix
ec6a6fbe
AK
603tmpdir
604kernelvsn
605missingkernel
606kerneldir
607interface
6e5c1f75 608DMEVENTD_PIDFILE
23b059e7 609WRITE_INSTALL
b559a1e6 610UDEV_HAS_BUILTIN_BLKID
0878503f 611UDEV_SYNC
a5f46f6a 612UDEV_RULES
f7f0854e 613UDEV_PC
3ba4a195 614THIN
54b362f9 615TESTING
ec6a6fbe
AK
616STATIC_LINK
617STATICDIR
618SNAPSHOTS
f7f0854e 619SELINUX_PC
e1b8a236 620SELINUX_LIBS
cac52ca4 621REPLICATORS
539f4a77 622READLINE_LIBS
cac52ca4 623RAID
f30875db 624PTHREAD_LIBS
ec6a6fbe
AK
625POOL
626PKGCONFIG
606d0858 627OCFDIR
37ddf259 628OCF
ec6a6fbe
AK
629MIRRORS
630LVM_RELEASE_DATE
631LVM_RELEASE
d2c11605 632LVM_PATH
ec6a6fbe
AK
633LVM_PATCHLEVEL
634LVM_MINOR
635LVM_MAJOR
bf456146 636LVM_LIBAPI
ec6a6fbe 637LVM_VERSION
ec6a6fbe
AK
638LVM1_FALLBACK
639LVM1
640LOCALEDIR
641LIB_SUFFIX
642LDDEPS
643JOBS
644INTL_PACKAGE
645INTL
ec6a6fbe
AK
646HAVE_REALTIME
647HAVE_LIBDL
ec6a6fbe 648FSADM
bf09a320 649ELDFLAGS
ec6a6fbe
AK
650DM_LIB_PATCHLEVEL
651DM_LIB_VERSION
652DM_IOCTLS
653DM_DEVICE_UID
654DM_DEVICE_MODE
655DM_DEVICE_GID
656DM_COMPAT
d1e8046f 657DMEVENTD_PATH
ec6a6fbe 658DMEVENTD
19a2c6e0 659DL_LIBS
ec6a6fbe 660DEVMAPPER
b1f08e51 661DEFAULT_RUN_DIR
3399ae32 662DEFAULT_LOCK_DIR
fea55602 663DEFAULT_DATA_ALIGNMENT
3399ae32
AK
664DEFAULT_CACHE_SUBDIR
665DEFAULT_BACKUP_SUBDIR
666DEFAULT_ARCHIVE_SUBDIR
667DEFAULT_SYS_DIR
ec6a6fbe
AK
668DEBUG
669COPTIMISE_FLAG
e2997b73 670CONFDIR
ec6a6fbe 671CMDLIB
d2c11605 672CLVMD_PATH
c89bc357 673CLVMD_CMANAGERS
ec6a6fbe
AK
674CLVMD
675CLUSTER
676CLDWHOLEARCHIVE
677CLDNOWHOLEARCHIVE
678CLDFLAGS
cdd50823 679BUILD_LVMETAD
ec6a6fbe 680BUILD_DMEVENTD
66fd4529 681BUILD_CMIRRORD
572fefeb 682APPLIB
ec6a6fbe
AK
683MODPROBE_CMD
684MSGFMT
685LVM2CMD_LIB
572fefeb 686LVM2APP_LIB
d93275eb
PR
687UDEV_LIBS
688UDEV_CFLAGS
426fc742
PR
689CUNIT_LIBS
690CUNIT_CFLAGS
fd4728e1 691GENPNG
ec6a6fbe
AK
692GENHTML
693LCOV
90c80887
AK
694SACKPT_LIBS
695SACKPT_CFLAGS
a946372e
AK
696DLM_LIBS
697DLM_CFLAGS
e2997b73
AK
698CPG_LIBS
699CPG_CFLAGS
b6d7a484
AK
700CMAP_LIBS
701CMAP_CFLAGS
e2997b73
AK
702CONFDB_LIBS
703CONFDB_CFLAGS
a946372e
AK
704SALCK_LIBS
705SALCK_CFLAGS
e2997b73
AK
706QUORUM_LIBS
707QUORUM_CFLAGS
a946372e
AK
708COROSYNC_LIBS
709COROSYNC_CFLAGS
710CMAN_LIBS
711CMAN_CFLAGS
a946372e
AK
712PKGCONFIGINIT_LIBS
713PKGCONFIGINIT_CFLAGS
f11781c5
AK
714PKG_CONFIG_LIBDIR
715PKG_CONFIG_PATH
e2997b73 716PKG_CONFIG
f61cacad 717THIN_CHECK_CMD
ec6a6fbe
AK
718POW_LIB
719LIBOBJS
720ALLOCA
721CSCOPE_CMD
722CFLOW_CMD
723RANLIB
724MKDIR_P
725SET_MAKE
726LN_S
727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730EGREP
731GREP
732CPP
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740AWK
741SED
742target_os
743target_vendor
744target_cpu
745target
746host_os
747host_vendor
748host_cpu
749host
750build_os
751build_vendor
752build_cpu
753build
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
f11781c5 784PACKAGE_URL
ec6a6fbe
AK
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
ad6254c5 792ac_subst_files=''
ec6a6fbe
AK
793ac_user_opts='
794enable_option_checking
795enable_static_link
796with_user
797with_group
798with_device_uid
799with_device_gid
800with_device_mode
d0df875d 801with_device_nodes_on
c64d7cd3 802with_default_name_mangling
ec6a6fbe
AK
803enable_lvm1_fallback
804with_lvm1
805with_pool
806with_cluster
807with_snapshots
808with_mirrors
cac52ca4 809with_raid
8fea97b7 810with_replicators
3ba4a195 811with_thin
f61cacad 812with_thin_check
ec6a6fbe
AK
813enable_readline
814enable_realtime
37ddf259 815enable_ocf
606d0858 816with_ocfdir
ec6a6fbe 817with_clvmd
8c4e8a18 818with_clvmd_pidfile
66fd4529
AK
819enable_cmirrord
820with_cmirrord_pidfile
ec6a6fbe
AK
821enable_debug
822with_optimisation
823enable_profiling
54b362f9 824enable_testing
d1e8046f 825enable_valgrind_pool
ec6a6fbe 826enable_devmapper
cdd50823 827enable_lvmetad
a5f46f6a
AK
828enable_udev_sync
829enable_udev_rules
ec6a6fbe 830enable_compat
95eaa683 831enable_units_compat
ec6a6fbe
AK
832enable_ioctl
833enable_o_direct
572fefeb 834enable_applib
ec6a6fbe
AK
835enable_cmdlib
836enable_pkgconfig
23b059e7 837enable_write_install
ec6a6fbe
AK
838enable_fsadm
839enable_dmeventd
840enable_selinux
841enable_nls
842with_localedir
843with_confdir
844with_staticdir
845with_usrlibdir
846with_usrsbindir
a5f46f6a 847with_udev_prefix
78ce7acc 848with_udevdir
e587cb6a 849with_systemdsystemunitdir
4417a8bd 850with_tmpfilesdir
ec6a6fbe
AK
851with_dmeventd_pidfile
852with_dmeventd_path
8bae0a1e 853with_default_run_dir
3399ae32
AK
854with_default_system_dir
855with_default_archive_subdir
856with_default_backup_subdir
857with_default_cache_subdir
858with_default_locking_dir
fea55602 859with_default_data_alignment
ec6a6fbe
AK
860with_interface
861'
7a197a62
AK
862 ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
25fbec5b 868LIBS
7a197a62 869CPPFLAGS
e2997b73
AK
870CPP
871PKG_CONFIG
f11781c5
AK
872PKG_CONFIG_PATH
873PKG_CONFIG_LIBDIR
a946372e
AK
874PKGCONFIGINIT_CFLAGS
875PKGCONFIGINIT_LIBS
a946372e
AK
876CMAN_CFLAGS
877CMAN_LIBS
878COROSYNC_CFLAGS
879COROSYNC_LIBS
e2997b73
AK
880QUORUM_CFLAGS
881QUORUM_LIBS
a946372e
AK
882SALCK_CFLAGS
883SALCK_LIBS
e2997b73
AK
884CONFDB_CFLAGS
885CONFDB_LIBS
b6d7a484
AK
886CMAP_CFLAGS
887CMAP_LIBS
e2997b73 888CPG_CFLAGS
a946372e
AK
889CPG_LIBS
890DLM_CFLAGS
90c80887
AK
891DLM_LIBS
892SACKPT_CFLAGS
d93275eb 893SACKPT_LIBS
426fc742
PR
894CUNIT_CFLAGS
895CUNIT_LIBS
d93275eb 896UDEV_CFLAGS
05fb5158 897UDEV_LIBS'
7a197a62 898
795ca3e5
AK
899
900# Initialize some variables set by options.
ad6254c5
AK
901ac_init_help=
902ac_init_version=false
ec6a6fbe
AK
903ac_unrecognized_opts=
904ac_unrecognized_sep=
795ca3e5
AK
905# The variables have the same names as the options, with
906# dashes changed to underlines.
ad6254c5 907cache_file=/dev/null
795ca3e5 908exec_prefix=NONE
795ca3e5 909no_create=
795ca3e5
AK
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
795ca3e5
AK
918verbose=
919x_includes=NONE
920x_libraries=NONE
ad6254c5
AK
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 927# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
7a197a62
AK
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
795ca3e5
AK
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
795ca3e5
AK
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
7a197a62
AK
938docdir='${datarootdir}/doc/${PACKAGE}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
795ca3e5 947
795ca3e5 948ac_prev=
7a197a62 949ac_dashdash=
795ca3e5
AK
950for ac_option
951do
795ca3e5
AK
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
7a197a62 954 eval $ac_prev=\$ac_option
795ca3e5
AK
955 ac_prev=
956 continue
957 fi
958
7a197a62
AK
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
795ca3e5
AK
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
7a197a62
AK
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
795ca3e5
AK
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 973 bindir=$ac_optarg ;;
795ca3e5
AK
974
975 -build | --build | --buil | --bui | --bu)
ad6254c5 976 ac_prev=build_alias ;;
795ca3e5 977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 978 build_alias=$ac_optarg ;;
795ca3e5
AK
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
795ca3e5 989
7a197a62 990 -datadir | --datadir | --datadi | --datad)
795ca3e5 991 ac_prev=datadir ;;
7a197a62 992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 993 datadir=$ac_optarg ;;
795ca3e5 994
7a197a62
AK
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
795ca3e5 1002 -disable-* | --disable-*)
ec6a6fbe 1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1004 # Reject names that are not valid shell variable names.
ec6a6fbe 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1006 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"enable_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
7a197a62
AK
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
795ca3e5
AK
1027
1028 -enable-* | --enable-*)
ec6a6fbe 1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1030 # Reject names that are not valid shell variable names.
ec6a6fbe 1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1032 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"enable_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
ad6254c5 1051 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
ad6254c5
AK
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
795ca3e5
AK
1063
1064 -host | --host | --hos | --ho)
ad6254c5 1065 ac_prev=host_alias ;;
795ca3e5 1066 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1067 host_alias=$ac_optarg ;;
795ca3e5 1068
7a197a62
AK
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
795ca3e5
AK
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1080 includedir=$ac_optarg ;;
795ca3e5
AK
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1085 infodir=$ac_optarg ;;
795ca3e5
AK
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1090 libdir=$ac_optarg ;;
795ca3e5
AK
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1097 libexecdir=$ac_optarg ;;
795ca3e5 1098
7a197a62
AK
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
795ca3e5 1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1105 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1109 localstatedir=$ac_optarg ;;
795ca3e5
AK
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1114 mandir=$ac_optarg ;;
795ca3e5
AK
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1121 | --no-cr | --no-c | -n)
795ca3e5
AK
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1135 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1140 prefix=$ac_optarg ;;
795ca3e5
AK
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1147 program_prefix=$ac_optarg ;;
795ca3e5
AK
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1154 program_suffix=$ac_optarg ;;
795ca3e5
AK
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1171 program_transform_name=$ac_optarg ;;
795ca3e5 1172
7a197a62
AK
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
795ca3e5
AK
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
ad6254c5 1191 sbindir=$ac_optarg ;;
795ca3e5
AK
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
ad6254c5 1202 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
ad6254c5 1207 site=$ac_optarg ;;
795ca3e5
AK
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1212 srcdir=$ac_optarg ;;
795ca3e5
AK
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1219 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1222 ac_prev=target_alias ;;
795ca3e5 1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1224 target_alias=$ac_optarg ;;
795ca3e5
AK
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
ad6254c5
AK
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
795ca3e5
AK
1231
1232 -with-* | --with-*)
ec6a6fbe 1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1234 # Reject names that are not valid shell variable names.
ec6a6fbe 1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1236 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241"with_$ac_useropt"
1242"*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1247
1248 -without-* | --without-*)
ec6a6fbe 1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1250 # Reject names that are not valid shell variable names.
ec6a6fbe 1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1252 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257"with_$ac_useropt"
1258"*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
795ca3e5
AK
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1273 x_includes=$ac_optarg ;;
795ca3e5
AK
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1280 x_libraries=$ac_optarg ;;
795ca3e5 1281
f11781c5
AK
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283Try \`$0 --help' for more information"
795ca3e5
AK
1284 ;;
1285
ad6254c5
AK
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
f11781c5
AK
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
7a197a62 1293 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1294 export $ac_envvar ;;
1295
795ca3e5 1296 *)
ad6254c5 1297 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1301 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1302 ;;
1303
1304 esac
1305done
1306
1307if test -n "$ac_prev"; then
ad6254c5 1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1309 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1310fi
795ca3e5 1311
ec6a6fbe
AK
1312if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
f11781c5 1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318fi
1319
1320# Check all directory arguments for consistency.
7a197a62
AK
1321for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
795ca3e5 1325do
7a197a62 1326 eval ac_val=\$$ac_var
ec6a6fbe
AK
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
ad6254c5 1334 case $ac_val in
7a197a62
AK
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1337 esac
f11781c5 1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1339done
1340
ad6254c5
AK
1341# There might be people who depend on the old broken behavior: `$host'
1342# used to hold the argument of --host etc.
1343# FIXME: To remove some day.
1344build=$build_alias
1345host=$host_alias
1346target=$target_alias
1347
1348# FIXME: To remove some day.
1349if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
f11781c5
AK
1352 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357fi
8106cdd5 1358
ad6254c5
AK
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
795ca3e5 1363
795ca3e5 1364
7a197a62
AK
1365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1368 as_fn_error $? "working directory cannot be determined"
7a197a62 1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1370 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1371
1372
795ca3e5
AK
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
7a197a62 1376 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
7a197a62
AK
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
795ca3e5 1400 srcdir=$ac_confdir
7a197a62 1401 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1402 srcdir=..
1403 fi
1404else
1405 ac_srcdir_defaulted=no
1406fi
7a197a62
AK
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1410fi
7a197a62
AK
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
f11781c5 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1414 pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
ad6254c5
AK
1431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439\`configure' configures this package to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
f11781c5 1453 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
ad6254c5
AK
1459Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1461 [$ac_default_prefix]
ad6254c5 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1463 [PREFIX]
ad6254c5
AK
1464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
ec6a6fbe
AK
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1492_ACEOF
1493
1494 cat <<\_ACEOF
1495
1496System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500_ACEOF
1501fi
1502
1503if test -n "$ac_init_help"; then
1504
1505 cat <<\_ACEOF
1506
1507Optional Features:
ec6a6fbe 1508 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1511 --enable-static_link use this to link the tools to their libraries
1512 statically (default is dynamic linking
1513 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1514 device-mapper is missing from the kernel
71082be4
ZK
1515 --disable-readline disable readline support
1516 --enable-realtime enable realtime clock support
37ddf259
AK
1517 --enable-ocf enable Open Cluster Framework (OCF) compliant
1518 resource agents
71082be4
ZK
1519 --enable-cmirrord enable the cluster mirror log daemon
1520 --enable-debug enable debugging
1521 --enable-profiling gather gcov profiling data
54b362f9 1522 --enable-testing enable testing targets in the makefile
d1e8046f 1523 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1524 --disable-devmapper disable LVM2 device-mapper interaction
d38de32b 1525 --enable-lvmetad enable the LVM Metadata Daemon
71082be4
ZK
1526 --enable-udev_sync enable synchronisation with udev processing
1527 --enable-udev_rules install rule files needed for udev synchronisation
1528 --enable-compat enable support for old device-mapper versions
1529 --enable-units-compat enable output compatibility with old versions that
1530 that do not use KiB-style unit suffixes
1531 --disable-driver disable calls to device-mapper in the kernel
1532 --disable-o_direct disable O_DIRECT
1533 --enable-applib build application library
1534 --enable-cmdlib build shared command library
1535 --enable-pkgconfig install pkgconfig support
1536 --enable-write_install install user writable files
1537 --disable-fsadm disable fsadm
1538 --enable-dmeventd enable the device-mapper event daemon
1539 --disable-selinux disable selinux support
1540 --enable-nls enable Native Language Support
ad6254c5
AK
1541
1542Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1545 --with-user=USER set the owner of installed files [[USER=]]
1546 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1547 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1548 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1549 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1550 --with-device-nodes-on=ON
1551 create nodes on resume or create [[ON=resume]]
c64d7cd3
PR
1552 --with-default-name-mangling=MANGLING
1553 default name mangling: auto/none/hex
1554 [[MANGLING=auto]]
ad6254c5 1555 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1556 [[TYPE=internal]]
ad6254c5 1557 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1558 [[TYPE=internal]]
71082be4 1559 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1560 [[TYPE=internal]]
71082be4 1561 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1562 [[TYPE=internal]]
71082be4 1563 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1564 [[TYPE=internal]]
cac52ca4
JEB
1565 --with-raid=TYPE mirror support: internal/shared/none
1566 [[TYPE=internal]]
71082be4 1567 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1568 [[TYPE=none]]
3ba4a195
ZK
1569 --with-thin=TYPE thin provisioning support: internal/shared/none
1570 [[TYPE=none]]
f61cacad 1571 --with-thin-check=PATH thin_check tool: [[autodetect]]
606d0858
AK
1572 --with-ocfdir=DIR install OCF files in DIR
1573 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1574 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1575 The following cluster manager combinations are valid:
a946372e
AK
1576 * cman (RHEL5 or equivalent)
1577 * cman,corosync,openais (or selection of them)
1091650a 1578 * singlenode (localhost only)
a946372e
AK
1579 * all (autodetect)
1580 * none (disable build)
71082be4 1581 [TYPE=none]
8c4e8a18 1582 --with-clvmd-pidfile=PATH
f11781c5 1583 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1584 --with-cmirrord-pidfile=PATH
f11781c5
AK
1585 cmirrord pidfile [[/var/run/cmirrord.pid]]
1586 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1587 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1588 --with-confdir=DIR configuration files in DIR [[/etc]]
1589 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1590 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1591 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1592 --with-udev-prefix=UPREFIX
f11781c5
AK
1593 install udev rule files in UPREFIX [[EPREFIX]]
1594 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
e587cb6a
PR
1595 --with-systemdsystemunitdir=DIR
1596 systemd service files in DIR
4417a8bd
PR
1597 --with-tmpfilesdir=DIR install configuration files for management of
1598 volatile files and directories in DIR
1599 [[SYSCONFDIR/tmpfiles.d]]
71082be4 1600 --with-dmeventd-pidfile=PATH
f11781c5 1601 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1602 --with-dmeventd-path=PATH
f11781c5 1603 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1604 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1605 --with-default-system-dir=DIR
f11781c5 1606 default LVM system directory [[/etc/lvm]]
71082be4 1607 --with-default-archive-subdir=SUBDIR
f11781c5 1608 default metadata archive subdir [[archive]]
71082be4 1609 --with-default-backup-subdir=SUBDIR
f11781c5 1610 default metadata backup subdir [[backup]]
71082be4 1611 --with-default-cache-subdir=SUBDIR
f11781c5 1612 default metadata cache subdir [[cache]]
71082be4 1613 --with-default-locking-dir=DIR
f11781c5 1614 default locking directory [[/var/lock/lvm]]
fea55602 1615 --with-default-data-alignment=NUM
f11781c5
AK
1616 set the default data alignment in MiB [[1]]
1617 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1618
1619Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
25fbec5b 1624 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1626 you have headers in a nonstandard directory <include dir>
ad6254c5 1627 CPP C preprocessor
e2997b73 1628 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1629 PKG_CONFIG_PATH
1630 directories to add to pkg-config's search path
1631 PKG_CONFIG_LIBDIR
1632 path overriding pkg-config's built-in search path
a946372e
AK
1633 PKGCONFIGINIT_CFLAGS
1634 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1635 PKGCONFIGINIT_LIBS
1636 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1637 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1638 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1639 COROSYNC_CFLAGS
1640 C compiler flags for COROSYNC, overriding pkg-config
1641 COROSYNC_LIBS
1642 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1643 QUORUM_CFLAGS
1644 C compiler flags for QUORUM, overriding pkg-config
1645 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1646 SALCK_CFLAGS
1647 C compiler flags for SALCK, overriding pkg-config
1648 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1649 CONFDB_CFLAGS
1650 C compiler flags for CONFDB, overriding pkg-config
1651 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
b6d7a484
AK
1652 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1653 CMAP_LIBS linker flags for CMAP, overriding pkg-config
e2997b73
AK
1654 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1655 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1656 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1657 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1658 SACKPT_CFLAGS
1659 C compiler flags for SACKPT, overriding pkg-config
1660 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
426fc742
PR
1661 CUNIT_CFLAGS
1662 C compiler flags for CUNIT, overriding pkg-config
1663 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
d93275eb
PR
1664 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1665 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1666
1667Use these variables to override the choices made by `configure' or to help
1668it to find libraries and programs with nonstandard names/locations.
1669
f11781c5 1670Report bugs to the package provider.
ad6254c5 1671_ACEOF
7a197a62 1672ac_status=$?
ad6254c5
AK
1673fi
1674
1675if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
ad6254c5 1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 continue
ad6254c5
AK
1681 ac_builddir=.
1682
7a197a62
AK
1683case "$ac_dir" in
1684.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685*)
ec6a6fbe 1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1687 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 esac ;;
1693esac
1694ac_abs_top_builddir=$ac_pwd
1695ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696# for backward compatibility:
1697ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1698
1699case $srcdir in
7a197a62 1700 .) # We are building in place.
ad6254c5 1701 ac_srcdir=.
7a197a62
AK
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1705 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1708 *) # Relative name.
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1712esac
7a197a62
AK
1713ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1714
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1721 echo &&
1722 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1723 else
ec6a6fbe 1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1725 fi || ac_status=$?
1726 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1727 done
1728fi
1729
7a197a62 1730test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1731if $ac_init_version; then
1732 cat <<\_ACEOF
7a197a62 1733configure
f11781c5 1734generated by GNU Autoconf 2.66
ad6254c5 1735
f11781c5 1736Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1737This configure script is free software; the Free Software Foundation
1738gives unlimited permission to copy, distribute and modify it.
1739_ACEOF
7a197a62 1740 exit
ad6254c5 1741fi
ad6254c5 1742
f11781c5
AK
1743## ------------------------ ##
1744## Autoconf initialization. ##
1745## ------------------------ ##
ad6254c5 1746
f11781c5
AK
1747# ac_fn_c_try_compile LINENO
1748# --------------------------
1749# Try to compile conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_compile ()
ad6254c5 1751{
f11781c5
AK
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1777
f11781c5
AK
1778 ac_retval=1
1779fi
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 as_fn_set_status $ac_retval
ad6254c5 1782
f11781c5 1783} # ac_fn_c_try_compile
ad6254c5 1784
f11781c5
AK
1785# ac_fn_c_try_cpp LINENO
1786# ----------------------
1787# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_cpp ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } >/dev/null && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811else
1812 $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1814
f11781c5
AK
1815 ac_retval=1
1816fi
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 as_fn_set_status $ac_retval
ad6254c5 1819
f11781c5 1820} # ac_fn_c_try_cpp
d911ec67 1821
f11781c5
AK
1822# ac_fn_c_try_link LINENO
1823# -----------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded.
1825ac_fn_c_try_link ()
d911ec67 1826{
f11781c5
AK
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
d911ec67
AK
1830case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833esac
f11781c5
AK
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
d911ec67 1837 ac_status=$?
f11781c5
AK
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 $as_test_x conftest$ac_exeext
1850 }; then :
1851 ac_retval=0
d911ec67 1852else
f11781c5 1853 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
f11781c5 1856 ac_retval=1
d911ec67 1857fi
f11781c5
AK
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
d911ec67 1865
f11781c5 1866} # ac_fn_c_try_link
d911ec67 1867
f11781c5
AK
1868# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1869# -------------------------------------------------------
1870# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1871# the include files in INCLUDES and setting the cache variable VAR
1872# accordingly.
1873ac_fn_c_check_header_mongrel ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if eval "test \"\${$3+set}\"" = set; then :
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1880 $as_echo_n "(cached) " >&6
1881fi
f11781c5
AK
1882eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1884$as_echo "$ac_res" >&6; }
1885else
1886 # Is the header compilable?
f11781c5
AK
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1888$as_echo_n "checking $2 usability... " >&6; }
1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1890/* end confdefs.h. */
f11781c5
AK
1891$4
1892#include <$2>
d911ec67 1893_ACEOF
f11781c5 1894if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1895 ac_header_compiler=yes
1896else
f11781c5 1897 ac_header_compiler=no
d911ec67 1898fi
d911ec67 1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1901$as_echo "$ac_header_compiler" >&6; }
1902
1903# Is the header present?
f11781c5
AK
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1905$as_echo_n "checking $2 presence... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1907/* end confdefs.h. */
f11781c5 1908#include <$2>
d911ec67 1909_ACEOF
f11781c5 1910if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1911 ac_header_preproc=yes
1912else
d911ec67
AK
1913 ac_header_preproc=no
1914fi
d911ec67 1915rm -f conftest.err conftest.$ac_ext
f11781c5 1916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1917$as_echo "$ac_header_preproc" >&6; }
1918
1919# So? What about this header?
f11781c5 1920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1921 yes:no: )
f11781c5
AK
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1923$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1926 ;;
1927 no:yes:* )
f11781c5
AK
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1929$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1931$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1933$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1935$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1938 ;;
1939esac
f11781c5
AK
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1943 $as_echo_n "(cached) " >&6
1944else
f11781c5 1945 eval "$3=\$ac_header_compiler"
d911ec67 1946fi
f11781c5
AK
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1949$as_echo "$ac_res" >&6; }
ad6254c5 1950fi
f11781c5 1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1952
f11781c5 1953} # ac_fn_c_check_header_mongrel
ad6254c5 1954
f11781c5
AK
1955# ac_fn_c_try_run LINENO
1956# ----------------------
1957# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1958# that executables *can* be run.
1959ac_fn_c_try_run ()
ad6254c5 1960{
f11781c5
AK
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_link"
7a197a62
AK
1963case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966esac
f11781c5
AK
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
7a197a62 1969 (eval "$ac_link") 2>&5
ad6254c5 1970 ac_status=$?
f11781c5
AK
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1973 { { case "(($ac_try" in
7a197a62
AK
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976esac
f11781c5
AK
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
7a197a62 1979 (eval "$ac_try") 2>&5
ad6254c5 1980 ac_status=$?
f11781c5
AK
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; }; }; then :
1983 ac_retval=0
ad6254c5 1984else
ec6a6fbe 1985 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1986 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
f11781c5 1989 ac_retval=$ac_status
ad6254c5 1990fi
f11781c5
AK
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
ad6254c5 1994
f11781c5 1995} # ac_fn_c_try_run
ad6254c5 1996
f11781c5
AK
1997# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1998# -------------------------------------------------------
1999# Tests whether HEADER exists and can be compiled using the include files in
2000# INCLUDES, setting the cache variable VAR accordingly.
2001ac_fn_c_check_header_compile ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
2006if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2007 $as_echo_n "(cached) " >&6
ad6254c5 2008else
f11781c5 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2010/* end confdefs.h. */
f11781c5
AK
2011$4
2012#include <$2>
ad6254c5 2013_ACEOF
f11781c5
AK
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$3=yes"
ad6254c5 2016else
f11781c5 2017 eval "$3=no"
ad6254c5 2018fi
7a197a62 2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2020fi
f11781c5
AK
2021eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2023$as_echo "$ac_res" >&6; }
f11781c5 2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2025
f11781c5 2026} # ac_fn_c_check_header_compile
ad6254c5 2027
f11781c5
AK
2028# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2029# ----------------------------------------------------
2030# Tries to find if the field MEMBER exists in type AGGR, after including
2031# INCLUDES, setting cache variable VAR accordingly.
2032ac_fn_c_check_member ()
2033{
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2036$as_echo_n "checking for $2.$3... " >&6; }
2037if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2038 $as_echo_n "(cached) " >&6
795ca3e5 2039else
f11781c5
AK
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$5
2043int
2044main ()
2045{
2046static $2 ac_aggr;
2047if (ac_aggr.$3)
2048return 0;
2049 ;
2050 return 0;
2051}
ad6254c5 2052_ACEOF
f11781c5
AK
2053if ac_fn_c_try_compile "$LINENO"; then :
2054 eval "$4=yes"
2055else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2057/* end confdefs.h. */
f11781c5
AK
2058$5
2059int
2060main ()
2061{
2062static $2 ac_aggr;
2063if (sizeof ac_aggr.$3)
2064return 0;
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070 eval "$4=yes"
2071else
2072 eval "$4=no"
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078eval ac_res=\$$4
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080$as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082
2083} # ac_fn_c_check_member
795ca3e5 2084
f11781c5
AK
2085# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2086# -------------------------------------------
2087# Tests whether TYPE exists after having included INCLUDES, setting cache
2088# variable VAR accordingly.
2089ac_fn_c_check_type ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093$as_echo_n "checking for $2... " >&6; }
2094if eval "test \"\${$3+set}\"" = set; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 eval "$3=no"
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100$4
ad6254c5
AK
2101int
2102main ()
2103{
f11781c5
AK
2104if (sizeof ($2))
2105 return 0;
ad6254c5
AK
2106 ;
2107 return 0;
2108}
2109_ACEOF
f11781c5
AK
2110if ac_fn_c_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h. */
2113$4
2114int
2115main ()
2116{
2117if (sizeof (($2)))
2118 return 0;
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2124
f11781c5
AK
2125else
2126 eval "$3=yes"
795ca3e5 2127fi
f11781c5
AK
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2131fi
f11781c5
AK
2132eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2134$as_echo "$ac_res" >&6; }
f11781c5 2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2136
f11781c5 2137} # ac_fn_c_check_type
ad6254c5 2138
f11781c5
AK
2139# ac_fn_c_find_intX_t LINENO BITS VAR
2140# -----------------------------------
2141# Finds a signed integer type with width BITS, setting cache variable VAR
2142# accordingly.
2143ac_fn_c_find_intX_t ()
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2147$as_echo_n "checking for int$2_t... " >&6; }
2148if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2149 $as_echo_n "(cached) " >&6
ad6254c5 2150else
f11781c5
AK
2151 eval "$3=no"
2152 # Order is important - never check a type that is potentially smaller
2153 # than half of the expected target width.
2154 for ac_type in int$2_t 'int' 'long int' \
2155 'long long int' 'short int' 'signed char'; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2157/* end confdefs.h. */
2158$ac_includes_default
f11781c5 2159 enum { N = $2 / 2 - 1 };
7a197a62
AK
2160int
2161main ()
2162{
f11781c5
AK
2163static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2164test_array [0] = 0
7a197a62 2165
f11781c5
AK
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173$ac_includes_default
2174 enum { N = $2 / 2 - 1 };
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2179 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2180test_array [0] = 0
7a197a62
AK
2181
2182 ;
2183 return 0;
2184}
ad6254c5 2185_ACEOF
f11781c5 2186if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2187
f11781c5
AK
2188else
2189 case $ac_type in #(
2190 int$2_t) :
2191 eval "$3=yes" ;; #(
2192 *) :
2193 eval "$3=\$ac_type" ;;
2194esac
ad6254c5 2195fi
f11781c5 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2197fi
f11781c5
AK
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2200
2201else
f11781c5 2202 break
ad6254c5 2203fi
f11781c5 2204 done
ad6254c5 2205fi
f11781c5
AK
2206eval ac_res=\$$3
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208$as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210
2211} # ac_fn_c_find_intX_t
2212
2213# ac_fn_c_find_uintX_t LINENO BITS VAR
2214# ------------------------------------
2215# Finds an unsigned integer type with width BITS, setting cache variable VAR
2216# accordingly.
2217ac_fn_c_find_uintX_t ()
2218{
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2221$as_echo_n "checking for uint$2_t... " >&6; }
2222if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2223 $as_echo_n "(cached) " >&6
ad6254c5 2224else
f11781c5
AK
2225 eval "$3=no"
2226 # Order is important - never check a type that is potentially smaller
2227 # than half of the expected target width.
2228 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2229 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2231/* end confdefs.h. */
7a197a62 2232$ac_includes_default
ad6254c5
AK
2233int
2234main ()
2235{
f11781c5
AK
2236static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2237test_array [0] = 0
ad6254c5 2238
f11781c5
AK
2239 ;
2240 return 0;
ad6254c5
AK
2241}
2242_ACEOF
f11781c5
AK
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 case $ac_type in #(
2245 uint$2_t) :
2246 eval "$3=yes" ;; #(
2247 *) :
2248 eval "$3=\$ac_type" ;;
7a197a62 2249esac
ad6254c5 2250fi
f11781c5
AK
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2253
f11781c5
AK
2254else
2255 break
ad6254c5 2256fi
f11781c5 2257 done
ad6254c5 2258fi
f11781c5
AK
2259eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261$as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2263
f11781c5 2264} # ac_fn_c_find_uintX_t
ad6254c5 2265
f11781c5
AK
2266# ac_fn_c_check_func LINENO FUNC VAR
2267# ----------------------------------
2268# Tests whether FUNC exists, setting the cache variable VAR accordingly
2269ac_fn_c_check_func ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273$as_echo_n "checking for $2... " >&6; }
2274if eval "test \"\${$3+set}\"" = set; then :
2275 $as_echo_n "(cached) " >&6
ad6254c5 2276else
f11781c5
AK
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2281#define $2 innocuous_$2
ad6254c5 2282
f11781c5
AK
2283/* System header to define __stub macros and hopefully few prototypes,
2284 which can conflict with char $2 (); below.
2285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2286 <limits.h> exists even on freestanding compilers. */
ad6254c5 2287
f11781c5
AK
2288#ifdef __STDC__
2289# include <limits.h>
2290#else
2291# include <assert.h>
2292#endif
ad6254c5 2293
f11781c5
AK
2294#undef $2
2295
2296/* Override any GCC internal prototype to avoid an error.
2297 Use char because int might match the return type of a GCC
2298 builtin and then its argument prototype would still apply. */
2299#ifdef __cplusplus
2300extern "C"
2301#endif
2302char $2 ();
2303/* The GNU C library defines this for functions which it implements
2304 to always fail with ENOSYS. Some functions are actually named
2305 something starting with __ and the normal name is an alias. */
2306#if defined __stub_$2 || defined __stub___$2
2307choke me
2308#endif
ad6254c5 2309
ad6254c5
AK
2310int
2311main ()
2312{
f11781c5 2313return $2 ();
ad6254c5
AK
2314 ;
2315 return 0;
2316}
2317_ACEOF
f11781c5
AK
2318if ac_fn_c_try_link "$LINENO"; then :
2319 eval "$3=yes"
ad6254c5 2320else
f11781c5 2321 eval "$3=no"
ad6254c5 2322fi
f11781c5
AK
2323rm -f core conftest.err conftest.$ac_objext \
2324 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2325fi
f11781c5
AK
2326eval ac_res=\$$3
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2330
f11781c5
AK
2331} # ac_fn_c_check_func
2332cat >config.log <<_ACEOF
2333This file contains any messages produced by compilers while
2334running configure, to aid debugging if configure makes a mistake.
7a197a62 2335
f11781c5
AK
2336It was created by $as_me, which was
2337generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2338
f11781c5 2339 $ $0 $@
ad6254c5 2340
ad6254c5 2341_ACEOF
f11781c5
AK
2342exec 5>>config.log
2343{
2344cat <<_ASUNAME
2345## --------- ##
2346## Platform. ##
2347## --------- ##
ad6254c5 2348
f11781c5
AK
2349hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2354
f11781c5
AK
2355/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2357
f11781c5
AK
2358/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2359/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2360/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2362/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2363/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2364/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2365
2366_ASUNAME
2367
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 $as_echo "PATH: $as_dir"
2374 done
2375IFS=$as_save_IFS
2376
2377} >&5
2378
2379cat >&5 <<_ACEOF
2380
2381
2382## ----------- ##
2383## Core tests. ##
2384## ----------- ##
ad6254c5 2385
ad6254c5 2386_ACEOF
ad6254c5 2387
7a197a62 2388
f11781c5
AK
2389# Keep a trace of the command line.
2390# Strip out --no-create and --no-recursion so they do not pile up.
2391# Strip out --silent because we don't want to record it for future runs.
2392# Also quote any args containing shell meta-characters.
2393# Make two passes to allow for proper duplicate-argument suppression.
2394ac_configure_args=
2395ac_configure_args0=
2396ac_configure_args1=
2397ac_must_keep_next=false
2398for ac_pass in 1 2
2399do
2400 for ac_arg
2401 do
2402 case $ac_arg in
2403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405 | -silent | --silent | --silen | --sile | --sil)
2406 continue ;;
2407 *\'*)
2408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 esac
2410 case $ac_pass in
2411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412 2)
2413 as_fn_append ac_configure_args1 " '$ac_arg'"
2414 if test $ac_must_keep_next = true; then
2415 ac_must_keep_next=false # Got value, back to normal.
2416 else
2417 case $ac_arg in
2418 *=* | --config-cache | -C | -disable-* | --disable-* \
2419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421 | -with-* | --with-* | -without-* | --without-* | --x)
2422 case "$ac_configure_args0 " in
2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424 esac
2425 ;;
2426 -* ) ac_must_keep_next=true ;;
2427 esac
2428 fi
2429 as_fn_append ac_configure_args " '$ac_arg'"
2430 ;;
2431 esac
2432 done
2433done
2434{ ac_configure_args0=; unset ac_configure_args0;}
2435{ ac_configure_args1=; unset ac_configure_args1;}
2436
2437# When interrupted or exit'd, cleanup temporary files, and complete
2438# config.log. We remove comments because anyway the quotes in there
2439# would cause problems or look ugly.
2440# WARNING: Use '\'' to represent an apostrophe within the trap.
2441# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442trap 'exit_status=$?
2443 # Save into config.log some information that might help in debugging.
2444 {
2445 echo
2446
2447 $as_echo "## ---------------- ##
2448## Cache variables. ##
2449## ---------------- ##"
2450 echo
2451 # The following way of writing the cache mishandles newlines in values,
2452(
2453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in #(
2456 *${as_nl}*)
2457 case $ac_var in #(
2458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460 esac
2461 case $ac_var in #(
2462 _ | IFS | as_nl) ;; #(
2463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464 *) { eval $ac_var=; unset $ac_var;} ;;
2465 esac ;;
2466 esac
2467 done
2468 (set) 2>&1 |
2469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470 *${as_nl}ac_space=\ *)
2471 sed -n \
2472 "s/'\''/'\''\\\\'\'''\''/g;
2473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474 ;; #(
2475 *)
2476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477 ;;
2478 esac |
2479 sort
2480)
2481 echo
2482
2483 $as_echo "## ----------------- ##
2484## Output variables. ##
2485## ----------------- ##"
2486 echo
2487 for ac_var in $ac_subst_vars
2488 do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
2496
2497 if test -n "$ac_subst_files"; then
2498 $as_echo "## ------------------- ##
2499## File substitutions. ##
2500## ------------------- ##"
2501 echo
2502 for ac_var in $ac_subst_files
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 $as_echo "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511 fi
2512
2513 if test -s confdefs.h; then
2514 $as_echo "## ----------- ##
2515## confdefs.h. ##
2516## ----------- ##"
2517 echo
2518 cat confdefs.h
2519 echo
2520 fi
2521 test "$ac_signal" != 0 &&
2522 $as_echo "$as_me: caught signal $ac_signal"
2523 $as_echo "$as_me: exit $exit_status"
2524 } >&5
2525 rm -f core *.core core.conftest.* &&
2526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527 exit $exit_status
2528' 0
2529for ac_signal in 1 2 13 15; do
2530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531done
2532ac_signal=0
2533
2534# confdefs.h avoids OS command line length limits that DEFS can exceed.
2535rm -f -r conftest* confdefs.h
7a197a62 2536
f11781c5 2537$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2538
f11781c5 2539# Predefined preprocessor variables.
ad6254c5
AK
2540
2541cat >>confdefs.h <<_ACEOF
f11781c5 2542#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2543_ACEOF
2544
f11781c5
AK
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2547_ACEOF
ad6254c5 2548
f11781c5
AK
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2551_ACEOF
f11781c5
AK
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2555_ACEOF
ad6254c5 2556
f11781c5
AK
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559_ACEOF
7a197a62 2560
f11781c5
AK
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_URL "$PACKAGE_URL"
2563_ACEOF
ad6254c5 2564
7a197a62 2565
f11781c5
AK
2566# Let the site file select an alternate cache file if it wants to.
2567# Prefer an explicitly selected file to automatically selected ones.
2568ac_site_file1=NONE
2569ac_site_file2=NONE
2570if test -n "$CONFIG_SITE"; then
2571 # We do not want a PATH search for config.site.
2572 case $CONFIG_SITE in #((
2573 -*) ac_site_file1=./$CONFIG_SITE;;
2574 */*) ac_site_file1=$CONFIG_SITE;;
2575 *) ac_site_file1=./$CONFIG_SITE;;
2576 esac
2577elif test "x$prefix" != xNONE; then
2578 ac_site_file1=$prefix/share/config.site
2579 ac_site_file2=$prefix/etc/config.site
ad6254c5 2580else
f11781c5
AK
2581 ac_site_file1=$ac_default_prefix/share/config.site
2582 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2583fi
f11781c5
AK
2584for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585do
2586 test "x$ac_site_file" = xNONE && continue
2587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590 sed 's/^/| /' "$ac_site_file" >&5
2591 . "$ac_site_file" \
2592 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594as_fn_error $? "failed to load site script $ac_site_file
2595See \`config.log' for more details" "$LINENO" 5; }
2596 fi
2597done
ad6254c5 2598
f11781c5
AK
2599if test -r "$cache_file"; then
2600 # Some versions of bash will fail to source /dev/null (special files
2601 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604$as_echo "$as_me: loading cache $cache_file" >&6;}
2605 case $cache_file in
2606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607 *) . "./$cache_file";;
2608 esac
2609 fi
2610else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612$as_echo "$as_me: creating cache $cache_file" >&6;}
2613 >$cache_file
ad6254c5 2614fi
ad6254c5 2615
f11781c5
AK
2616as_fn_append ac_header_list " stdlib.h"
2617as_fn_append ac_header_list " unistd.h"
2618as_fn_append ac_header_list " sys/param.h"
2619# Check that the precious variables saved in the cache have kept the same
2620# value.
2621ac_cache_corrupted=false
2622for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2637 *)
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2667 fi
2668done
2669if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2675fi
f11781c5
AK
2676## -------------------- ##
2677## Main body of script. ##
2678## -------------------- ##
ad6254c5 2679
f11781c5
AK
2680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2685
ad6254c5 2686
ad6254c5 2687
f11781c5 2688ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2689
2690
f11781c5
AK
2691################################################################################
2692ac_aux_dir=
2693for ac_dir in autoconf "$srcdir"/autoconf; do
2694 if test -f "$ac_dir/install-sh"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/install-sh -c"
2697 break
2698 elif test -f "$ac_dir/install.sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install.sh -c"
2701 break
2702 elif test -f "$ac_dir/shtool"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/shtool install -c"
2705 break
2706 fi
2707done
2708if test -z "$ac_aux_dir"; then
2709 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2710fi
ad6254c5 2711
f11781c5
AK
2712# These three variables are undocumented and unsupported,
2713# and are intended to be withdrawn in a future Autoconf release.
2714# They can cause serious problems if a builder's source tree is in a directory
2715# whose full name contains unusual characters.
2716ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2717ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2718ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2719
ad6254c5 2720
8a2fc586 2721
f11781c5
AK
2722################################################################################
2723# Make sure we can run config.sub.
2724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2725 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2726
f11781c5
AK
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2728$as_echo_n "checking build system type... " >&6; }
2729if test "${ac_cv_build+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 ac_build_alias=$build_alias
2733test "x$ac_build_alias" = x &&
2734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2735test "x$ac_build_alias" = x &&
2736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2737ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2739
2740fi
f11781c5
AK
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2742$as_echo "$ac_cv_build" >&6; }
2743case $ac_cv_build in
2744*-*-*) ;;
2745*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2746esac
2747build=$ac_cv_build
2748ac_save_IFS=$IFS; IFS='-'
2749set x $ac_cv_build
2750shift
2751build_cpu=$1
2752build_vendor=$2
2753shift; shift
2754# Remember, the first character of IFS is used to create $*,
2755# except with old shells:
2756build_os=$*
2757IFS=$ac_save_IFS
2758case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2759
2760
f11781c5
AK
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2762$as_echo_n "checking host system type... " >&6; }
2763if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2764 $as_echo_n "(cached) " >&6
ad6254c5 2765else
f11781c5
AK
2766 if test "x$host_alias" = x; then
2767 ac_cv_host=$ac_cv_build
ad6254c5 2768else
f11781c5
AK
2769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2771fi
ad6254c5 2772
f11781c5
AK
2773fi
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2775$as_echo "$ac_cv_host" >&6; }
2776case $ac_cv_host in
2777*-*-*) ;;
2778*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2779esac
2780host=$ac_cv_host
2781ac_save_IFS=$IFS; IFS='-'
2782set x $ac_cv_host
2783shift
2784host_cpu=$1
2785host_vendor=$2
2786shift; shift
2787# Remember, the first character of IFS is used to create $*,
2788# except with old shells:
2789host_os=$*
2790IFS=$ac_save_IFS
2791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2792
ad6254c5 2793
f11781c5
AK
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2795$as_echo_n "checking target system type... " >&6; }
2796if test "${ac_cv_target+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
ad6254c5 2798else
f11781c5
AK
2799 if test "x$target_alias" = x; then
2800 ac_cv_target=$ac_cv_host
2801else
2802 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2804fi
7a197a62 2805
ad6254c5 2806fi
f11781c5
AK
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2808$as_echo "$ac_cv_target" >&6; }
2809case $ac_cv_target in
2810*-*-*) ;;
2811*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2812esac
f11781c5
AK
2813target=$ac_cv_target
2814ac_save_IFS=$IFS; IFS='-'
2815set x $ac_cv_target
2816shift
2817target_cpu=$1
2818target_vendor=$2
2819shift; shift
2820# Remember, the first character of IFS is used to create $*,
2821# except with old shells:
2822target_os=$*
2823IFS=$ac_save_IFS
2824case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2825
ad6254c5 2826
f11781c5
AK
2827# The aliases save the names the user supplied, while $host etc.
2828# will get canonicalized.
2829test -n "$target_alias" &&
2830 test "$program_prefix$program_suffix$program_transform_name" = \
2831 NONENONEs,x,x, &&
2832 program_prefix=${target_alias}-
ad6254c5 2833
f11781c5
AK
2834case "$host_os" in
2835 linux*)
2836 CFLAGS="$CFLAGS"
2837 COPTIMISE_FLAG="-O2"
2838 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2839 ELDFLAGS="-Wl,--export-dynamic"
2840 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2841 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2842 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2843 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2844 LIB_SUFFIX=so
2845 DEVMAPPER=yes
cdd50823 2846 LVMETAD=no
f11781c5
AK
2847 ODIRECT=yes
2848 DM_IOCTLS=yes
2849 SELINUX=yes
2850 CLUSTER=internal
2851 FSADM=yes
2852 ;;
2853 darwin*)
2854 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2855 COPTIMISE_FLAG="-O2"
2856 CLDFLAGS="$CLDFLAGS"
bf09a320 2857 ELDFLAGS=
f11781c5
AK
2858 CLDWHOLEARCHIVE="-all_load"
2859 CLDNOWHOLEARCHIVE=
2860 LIB_SUFFIX=dylib
2861 DEVMAPPER=yes
2862 ODIRECT=no
2863 DM_IOCTLS=no
2864 SELINUX=no
2865 CLUSTER=none
2866 FSADM=no
2867 ;;
2868esac
ad6254c5 2869
f11781c5
AK
2870################################################################################
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2872$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2873if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2874 $as_echo_n "(cached) " >&6
ad6254c5 2875else
f11781c5
AK
2876 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2877 for ac_i in 1 2 3 4 5 6 7; do
2878 ac_script="$ac_script$as_nl$ac_script"
2879 done
2880 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2881 { ac_script=; unset ac_script;}
2882 if test -z "$SED"; then
2883 ac_path_SED_found=false
2884 # Loop through the user's path and test for each of PROGNAME-LIST
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_prog in sed gsed; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2893 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2894# Check for GNU ac_path_SED and select it if it is found.
2895 # Check for GNU $ac_path_SED
2896case `"$ac_path_SED" --version 2>&1` in
2897*GNU*)
2898 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2899*)
2900 ac_count=0
2901 $as_echo_n 0123456789 >"conftest.in"
2902 while :
2903 do
2904 cat "conftest.in" "conftest.in" >"conftest.tmp"
2905 mv "conftest.tmp" "conftest.in"
2906 cp "conftest.in" "conftest.nl"
2907 $as_echo '' >> "conftest.nl"
2908 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2910 as_fn_arith $ac_count + 1 && ac_count=$as_val
2911 if test $ac_count -gt ${ac_path_SED_max-0}; then
2912 # Best one so far, save it but keep looking for a better one
2913 ac_cv_path_SED="$ac_path_SED"
2914 ac_path_SED_max=$ac_count
2915 fi
2916 # 10*(2^10) chars as input seems more than enough
2917 test $ac_count -gt 10 && break
2918 done
2919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2920esac
ad6254c5 2921
f11781c5
AK
2922 $ac_path_SED_found && break 3
2923 done
2924 done
2925 done
2926IFS=$as_save_IFS
2927 if test -z "$ac_cv_path_SED"; then
2928 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2929 fi
2930else
2931 ac_cv_path_SED=$SED
ad6254c5 2932fi
7a197a62 2933
f11781c5
AK
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2936$as_echo "$ac_cv_path_SED" >&6; }
2937 SED="$ac_cv_path_SED"
2938 rm -f conftest.sed
ad6254c5 2939
f11781c5
AK
2940for ac_prog in gawk mawk nawk awk
2941do
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943set dummy $ac_prog; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_AWK+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
ad6254c5 2948else
f11781c5
AK
2949 if test -n "$AWK"; then
2950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_AWK="$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964 done
2965IFS=$as_save_IFS
ad6254c5 2966
ad6254c5 2967fi
ad6254c5 2968fi
f11781c5
AK
2969AWK=$ac_cv_prog_AWK
2970if test -n "$AWK"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972$as_echo "$AWK" >&6; }
2973else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
ad6254c5 2976fi
ad6254c5 2977
ad6254c5 2978
f11781c5 2979 test -n "$AWK" && break
ad6254c5
AK
2980done
2981
f11781c5
AK
2982ac_ext=c
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989set dummy ${ac_tool_prefix}gcc; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
2992if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2993 $as_echo_n "(cached) " >&6
ad6254c5 2994else
f11781c5
AK
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2997else
f11781c5
AK
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009done
3010 done
3011IFS=$as_save_IFS
ad6254c5 3012
ad6254c5 3013fi
ad6254c5 3014fi
f11781c5
AK
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018$as_echo "$CC" >&6; }
3019else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
ad6254c5 3022fi
ad6254c5 3023
f11781c5
AK
3024
3025fi
3026if test -z "$ac_cv_prog_CC"; then
3027 ac_ct_CC=$CC
3028 # Extract the first word of "gcc", so it can be a program name with args.
3029set dummy gcc; ac_word=$2
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3033 $as_echo_n "(cached) " >&6
ad6254c5 3034else
f11781c5
AK
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3037else
f11781c5
AK
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049done
3050 done
3051IFS=$as_save_IFS
d911ec67 3052
d911ec67 3053fi
d911ec67 3054fi
f11781c5
AK
3055ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058$as_echo "$ac_ct_CC" >&6; }
3059else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
d911ec67 3062fi
d911ec67 3063
f11781c5
AK
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068yes:)
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071ac_tool_warned=yes ;;
3072esac
3073 CC=$ac_ct_CC
3074 fi
3075else
3076 CC="$ac_cv_prog_CC"
d911ec67 3077fi
d911ec67 3078
f11781c5
AK
3079if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}cc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3086 $as_echo_n "(cached) " >&6
d911ec67 3087else
f11781c5
AK
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3090else
f11781c5
AK
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC="${ac_tool_prefix}cc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102done
3103 done
3104IFS=$as_save_IFS
d911ec67 3105
f11781c5
AK
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
d911ec67
AK
3115fi
3116
d911ec67 3117
f11781c5
AK
3118 fi
3119fi
3120if test -z "$CC"; then
3121 # Extract the first word of "cc", so it can be a program name with args.
3122set dummy cc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
d911ec67 3127else
f11781c5
AK
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131 ac_prog_rejected=no
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140 ac_prog_rejected=yes
3141 continue
3142 fi
3143 ac_cv_prog_CC="cc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147done
3148 done
3149IFS=$as_save_IFS
d911ec67 3150
f11781c5
AK
3151if test $ac_prog_rejected = yes; then
3152 # We found a bogon in the path, so make sure we never use it.
3153 set dummy $ac_cv_prog_CC
3154 shift
3155 if test $# != 0; then
3156 # We chose a different compiler from the bogus one.
3157 # However, it has the same basename, so the bogon will be chosen
3158 # first if we set CC to just the basename; use the full file name.
3159 shift
3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3161 fi
3162fi
3163fi
3164fi
3165CC=$ac_cv_prog_CC
3166if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168$as_echo "$CC" >&6; }
3169else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
d911ec67
AK
3172fi
3173
d911ec67 3174
f11781c5
AK
3175fi
3176if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 for ac_prog in cl.exe
3179 do
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3185 $as_echo_n "(cached) " >&6
3186else
f11781c5
AK
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201done
3202 done
3203IFS=$as_save_IFS
d911ec67
AK
3204
3205fi
f11781c5
AK
3206fi
3207CC=$ac_cv_prog_CC
3208if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210$as_echo "$CC" >&6; }
3211else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
d911ec67
AK
3214fi
3215
d911ec67 3216
f11781c5
AK
3217 test -n "$CC" && break
3218 done
3219fi
3220if test -z "$CC"; then
3221 ac_ct_CC=$CC
3222 for ac_prog in cl.exe
3223do
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225set dummy $ac_prog; ac_word=$2
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
3228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3229 $as_echo_n "(cached) " >&6
3230else
f11781c5
AK
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3233else
f11781c5
AK
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_CC="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245done
3246 done
3247IFS=$as_save_IFS
ad6254c5 3248
ad6254c5 3249fi
ad6254c5 3250fi
f11781c5
AK
3251ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252if test -n "$ac_ct_CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254$as_echo "$ac_ct_CC" >&6; }
3255else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
ad6254c5 3258fi
ad6254c5 3259
d911ec67 3260
f11781c5
AK
3261 test -n "$ac_ct_CC" && break
3262done
d911ec67 3263
f11781c5
AK
3264 if test "x$ac_ct_CC" = x; then
3265 CC=""
3266 else
3267 case $cross_compiling:$ac_tool_warned in
3268yes:)
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271ac_tool_warned=yes ;;
d911ec67 3272esac
f11781c5
AK
3273 CC=$ac_ct_CC
3274 fi
3275fi
ad6254c5
AK
3276
3277fi
d911ec67
AK
3278
3279
f11781c5
AK
3280test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282as_fn_error $? "no acceptable C compiler found in \$PATH
3283See \`config.log' for more details" "$LINENO" 5; }
3284
3285# Provide some information about the compiler.
3286$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3287set X $ac_compile
3288ac_compiler=$2
3289for ac_option in --version -v -V -qversion; do
3290 { { ac_try="$ac_compiler $ac_option >&5"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3298 ac_status=$?
3299 if test -s conftest.err; then
3300 sed '10a\
3301... rest of stderr output deleted ...
3302 10q' conftest.err >conftest.er1
3303 cat conftest.er1 >&5
3304 fi
3305 rm -f conftest.er1 conftest.err
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }
3308done
ad6254c5 3309
f11781c5 3310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3311/* end confdefs.h. */
f11781c5 3312
ad6254c5
AK
3313int
3314main ()
3315{
f11781c5 3316
ad6254c5
AK
3317 ;
3318 return 0;
3319}
3320_ACEOF
f11781c5
AK
3321ac_clean_files_save=$ac_clean_files
3322ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3323# Try to create an executable without -o first, disregard a.out.
3324# It will help us diagnose broken compilers, and finding out an intuition
3325# of exeext.
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3327$as_echo_n "checking whether the C compiler works... " >&6; }
3328ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3329
3330# The possible output files:
3331ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3332
3333ac_rmfiles=
3334for ac_file in $ac_files
3335do
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3339 esac
3340done
3341rm -f $ac_rmfiles
3342
3343if { { ac_try="$ac_link_default"
7a197a62
AK
3344case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
f11781c5
AK
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link_default") 2>&5
ad6254c5 3351 ac_status=$?
f11781c5
AK
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; then :
3354 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3355# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3356# in a Makefile. We should not override ac_cv_exeext if it was cached,
3357# so that the user can short-circuit this test for compilers unknown to
3358# Autoconf.
3359for ac_file in $ac_files ''
3360do
3361 test -f "$ac_file" || continue
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3364 ;;
3365 [ab].out )
3366 # We found the default executable, but exeext='' is most
3367 # certainly right.
3368 break;;
3369 *.* )
3370 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3371 then :; else
3372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373 fi
3374 # We set ac_cv_exeext here because the later test for it is not
3375 # safe: cross compilers may not add the suffix if given an `-o'
3376 # argument, so we may need to know it at that point already.
3377 # Even if this section looks crufty: it has the advantage of
3378 # actually working.
3379 break;;
3380 * )
3381 break;;
3382 esac
3383done
3384test "$ac_cv_exeext" = no && ac_cv_exeext=
3385
ad6254c5 3386else
f11781c5
AK
3387 ac_file=''
3388fi
3389if test -z "$ac_file"; then :
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
ec6a6fbe 3392$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
f11781c5
AK
3395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error 77 "C compiler cannot create executables
3398See \`config.log' for more details" "$LINENO" 5; }
3399else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401$as_echo "yes" >&6; }
ad6254c5 3402fi
f11781c5
AK
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404$as_echo_n "checking for C compiler default output file name... " >&6; }
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3406$as_echo "$ac_file" >&6; }
3407ac_exeext=$ac_cv_exeext
7a197a62 3408
f11781c5
AK
3409rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3410ac_clean_files=$ac_clean_files_save
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3412$as_echo_n "checking for suffix of executables... " >&6; }
3413if { { ac_try="$ac_link"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
8a2fc586 3417esac
f11781c5
AK
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; then :
3424 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3426# work properly (i.e., refer to `conftest.exe'), while it won't with
3427# `rm'.
3428for ac_file in conftest.exe conftest conftest.*; do
3429 test -f "$ac_file" || continue
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 break;;
3434 * ) break;;
3435 esac
3436done
3437else
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3441See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3442fi
f11781c5
AK
3443rm -f conftest conftest$ac_cv_exeext
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3445$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3446
f11781c5
AK
3447rm -f conftest.$ac_ext
3448EXEEXT=$ac_cv_exeext
3449ac_exeext=$EXEEXT
3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3451/* end confdefs.h. */
f11781c5 3452#include <stdio.h>
ad6254c5 3453int
f11781c5 3454main ()
ad6254c5 3455{
f11781c5
AK
3456FILE *f = fopen ("conftest.out", "w");
3457 return ferror (f) || fclose (f) != 0;
ad6254c5 3458
f11781c5 3459 ;
7a197a62 3460 return 0;
ad6254c5 3461}
ad6254c5 3462_ACEOF
f11781c5
AK
3463ac_clean_files="$ac_clean_files conftest.out"
3464# Check that the compiler produces executables we can run. If not, either
3465# the compiler is broken, or we cross compile.
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3467$as_echo_n "checking whether we are cross compiling... " >&6; }
3468if test "$cross_compiling" != yes; then
3469 { { ac_try="$ac_link"
7a197a62
AK
3470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
f11781c5
AK
3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
7a197a62 3476 (eval "$ac_link") 2>&5
ad6254c5 3477 ac_status=$?
f11781c5
AK
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3480 if { ac_try='./conftest$ac_cv_exeext'
3481 { { case "(($ac_try" in
7a197a62
AK
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484esac
f11781c5
AK
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
7a197a62 3487 (eval "$ac_try") 2>&5
ad6254c5 3488 ac_status=$?
f11781c5
AK
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; }; then
3491 cross_compiling=no
3492 else
3493 if test "$cross_compiling" = maybe; then
3494 cross_compiling=yes
3495 else
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error $? "cannot run C compiled programs.
3499If you meant to cross compile, use \`--host'.
3500See \`config.log' for more details" "$LINENO" 5; }
3501 fi
3502 fi
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3505$as_echo "$cross_compiling" >&6; }
3506
3507rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3508ac_clean_files=$ac_clean_files_save
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3510$as_echo_n "checking for suffix of object files... " >&6; }
3511if test "${ac_cv_objext+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h. */
ad6254c5
AK
3516
3517int
3518main ()
3519{
f11781c5 3520
ad6254c5
AK
3521 ;
3522 return 0;
3523}
3524_ACEOF
f11781c5
AK
3525rm -f conftest.o conftest.obj
3526if { { ac_try="$ac_compile"
7a197a62
AK
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
f11781c5
AK
3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532$as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compile") 2>&5
ad6254c5 3534 ac_status=$?
f11781c5
AK
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 for ac_file in conftest.o conftest.obj conftest.*; do
3538 test -f "$ac_file" || continue;
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542 break;;
3543 esac
3544done
ad6254c5 3545else
ec6a6fbe 3546 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3547sed 's/^/| /' conftest.$ac_ext >&5
3548
f11781c5
AK
3549{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot compute suffix of object files: cannot compile
3552See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3553fi
f11781c5 3554rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3555fi
f11781c5
AK
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3557$as_echo "$ac_cv_objext" >&6; }
3558OBJEXT=$ac_cv_objext
3559ac_objext=$OBJEXT
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3561$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3563 $as_echo_n "(cached) " >&6
ad6254c5 3564else
f11781c5 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3566/* end confdefs.h. */
3567
ad6254c5
AK
3568int
3569main ()
3570{
f11781c5
AK
3571#ifndef __GNUC__
3572 choke me
3573#endif
3574
ad6254c5
AK
3575 ;
3576 return 0;
3577}
3578_ACEOF
f11781c5
AK
3579if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_compiler_gnu=yes
ad6254c5 3581else
f11781c5 3582 ac_compiler_gnu=no
ad6254c5 3583fi
f11781c5
AK
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3586
d0191583 3587fi
f11781c5
AK
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3589$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590if test $ac_compiler_gnu = yes; then
3591 GCC=yes
d0191583 3592else
f11781c5 3593 GCC=
d0191583 3594fi
f11781c5
AK
3595ac_test_CFLAGS=${CFLAGS+set}
3596ac_save_CFLAGS=$CFLAGS
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3598$as_echo_n "checking whether $CC accepts -g... " >&6; }
3599if test "${ac_cv_prog_cc_g+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3604 ac_cv_prog_cc_g=no
3605 CFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h. */
72b2cb61 3608
f11781c5
AK
3609int
3610main ()
3611{
72b2cb61 3612
f11781c5
AK
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_g=yes
3619else
3620 CFLAGS=""
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
ad6254c5 3623
f11781c5
AK
3624int
3625main ()
3626{
ad6254c5 3627
f11781c5
AK
3628 ;
3629 return 0;
3630}
d0191583 3631_ACEOF
f11781c5
AK
3632if ac_fn_c_try_compile "$LINENO"; then :
3633
3634else
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3636 CFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3638/* end confdefs.h. */
7a197a62 3639
f11781c5
AK
3640int
3641main ()
3642{
ad6254c5 3643
f11781c5
AK
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_g=yes
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659$as_echo "$ac_cv_prog_cc_g" >&6; }
3660if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3664 CFLAGS="-g -O2"
3665 else
3666 CFLAGS="-g"
3667 fi
3668else
3669 if test "$GCC" = yes; then
3670 CFLAGS="-O2"
3671 else
3672 CFLAGS=
3673 fi
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3676$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3677if test "${ac_cv_prog_cc_c89+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679else
3680 ac_cv_prog_cc_c89=no
3681ac_save_CC=$CC
3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h. */
3684#include <stdarg.h>
3685#include <stdio.h>
3686#include <sys/types.h>
3687#include <sys/stat.h>
3688/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3689struct buf { int x; };
3690FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691static char *e (p, i)
3692 char **p;
3693 int i;
3694{
3695 return p[i];
3696}
3697static char *f (char * (*g) (char **, int), char **p, ...)
3698{
3699 char *s;
3700 va_list v;
3701 va_start (v,p);
3702 s = g (p, va_arg (v,int));
3703 va_end (v);
3704 return s;
3705}
ad6254c5 3706
f11781c5
AK
3707/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3708 function prototypes and stuff, but not '\xHH' hex character constants.
3709 These don't provoke an error unfortunately, instead are silently treated
3710 as 'x'. The following induces an error, until -std is added to get
3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3712 array size at least. It's necessary to write '\x00'==0 to get something
3713 that's true only with -std. */
3714int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3715
f11781c5
AK
3716/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717 inside strings and character constants. */
3718#define FOO(x) 'x'
3719int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3720
f11781c5
AK
3721int test (int i, double x);
3722struct s1 {int (*f) (int a);};
3723struct s2 {int (*f) (double a);};
3724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725int argc;
3726char **argv;
d0191583
JM
3727int
3728main ()
3729{
f11781c5 3730return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3731 ;
3732 return 0;
3733}
72b2cb61 3734_ACEOF
f11781c5
AK
3735for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737do
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_prog_cc_c89=$ac_arg
3741fi
3742rm -f core conftest.err conftest.$ac_objext
3743 test "x$ac_cv_prog_cc_c89" != "xno" && break
3744done
3745rm -f conftest.$ac_ext
3746CC=$ac_save_CC
3747
3748fi
3749# AC_CACHE_VAL
3750case "x$ac_cv_prog_cc_c89" in
3751 x)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753$as_echo "none needed" >&6; } ;;
3754 xno)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756$as_echo "unsupported" >&6; } ;;
3757 *)
3758 CC="$CC $ac_cv_prog_cc_c89"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3761esac
f11781c5
AK
3762if test "x$ac_cv_prog_cc_c89" != xno; then :
3763
3764fi
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3771
ad6254c5 3772
7a197a62 3773
f11781c5
AK
3774ac_ext=c
3775ac_cpp='$CPP $CPPFLAGS'
3776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3780$as_echo_n "checking how to run the C preprocessor... " >&6; }
3781# On Suns, sometimes $CPP names a directory.
3782if test -n "$CPP" && test -d "$CPP"; then
3783 CPP=
3784fi
3785if test -z "$CPP"; then
3786 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3787 $as_echo_n "(cached) " >&6
ad6254c5 3788else
f11781c5
AK
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 do
3792 ac_preproc_ok=false
3793for ac_c_preproc_warn_flag in '' yes
3794do
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3802/* end confdefs.h. */
d0191583
JM
3803#ifdef __STDC__
3804# include <limits.h>
3805#else
3806# include <assert.h>
3807#endif
f11781c5
AK
3808 Syntax error
3809_ACEOF
3810if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3811
f11781c5
AK
3812else
3813 # Broken: fails on valid input.
3814continue
3815fi
3816rm -f conftest.err conftest.$ac_ext
d0191583 3817
f11781c5
AK
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h. */
3822#include <ac_nonexistent.h>
72b2cb61 3823_ACEOF
f11781c5
AK
3824if ac_fn_c_try_cpp "$LINENO"; then :
3825 # Broken: success on invalid input.
3826continue
d0191583 3827else
f11781c5
AK
3828 # Passes both tests.
3829ac_preproc_ok=:
3830break
ad6254c5 3831fi
f11781c5 3832rm -f conftest.err conftest.$ac_ext
ad6254c5 3833
f11781c5
AK
3834done
3835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836rm -f conftest.err conftest.$ac_ext
3837if $ac_preproc_ok; then :
3838 break
7a197a62
AK
3839fi
3840
f11781c5
AK
3841 done
3842 ac_cv_prog_CPP=$CPP
ad6254c5 3843
7a197a62 3844fi
f11781c5
AK
3845 CPP=$ac_cv_prog_CPP
3846else
3847 ac_cv_prog_CPP=$CPP
d0191583 3848fi
f11781c5
AK
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3850$as_echo "$CPP" >&6; }
3851ac_preproc_ok=false
3852for ac_c_preproc_warn_flag in '' yes
3853do
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h. */
3862#ifdef __STDC__
3863# include <limits.h>
3864#else
3865# include <assert.h>
3866#endif
3867 Syntax error
3868_ACEOF
3869if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3870
9c961554 3871else
f11781c5
AK
3872 # Broken: fails on valid input.
3873continue
9c961554 3874fi
f11781c5 3875rm -f conftest.err conftest.$ac_ext
9c961554 3876
f11781c5
AK
3877 # OK, works on sane cases. Now check whether nonexistent headers
3878 # can be detected and how.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h. */
3881#include <ac_nonexistent.h>
3882_ACEOF
3883if ac_fn_c_try_cpp "$LINENO"; then :
3884 # Broken: success on invalid input.
3885continue
3886else
3887 # Passes both tests.
3888ac_preproc_ok=:
3889break
3890fi
3891rm -f conftest.err conftest.$ac_ext
ad6254c5 3892
f11781c5
AK
3893done
3894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895rm -f conftest.err conftest.$ac_ext
3896if $ac_preproc_ok; then :
d0191583 3897
f11781c5
AK
3898else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3902See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3903fi
3904
f11781c5
AK
3905ac_ext=c
3906ac_cpp='$CPP $CPPFLAGS'
3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3910
ad6254c5 3911
f11781c5
AK
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3913$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914if test "${ac_cv_path_GREP+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916else
3917 if test -z "$GREP"; then
3918 ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929# Check for GNU ac_path_GREP and select it if it is found.
3930 # Check for GNU $ac_path_GREP
3931case `"$ac_path_GREP" --version 2>&1` in
3932*GNU*)
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934*)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo 'GREP' >> "conftest.nl"
3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 as_fn_arith $ac_count + 1 && ac_count=$as_val
3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955esac
ad6254c5 3956
f11781c5
AK
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960 done
3961IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_GREP"; then
3963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964 fi
3965else
3966 ac_cv_path_GREP=$GREP
7a197a62
AK
3967fi
3968
d0191583 3969fi
f11781c5
AK
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3971$as_echo "$ac_cv_path_GREP" >&6; }
3972 GREP="$ac_cv_path_GREP"
ad6254c5 3973
24bbc4d7 3974
f11781c5
AK
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3976$as_echo_n "checking for egrep... " >&6; }
3977if test "${ac_cv_path_EGREP+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979else
3980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3981 then ac_cv_path_EGREP="$GREP -E"
3982 else
3983 if test -z "$EGREP"; then
3984 ac_path_EGREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in egrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3995# Check for GNU ac_path_EGREP and select it if it is found.
3996 # Check for GNU $ac_path_EGREP
3997case `"$ac_path_EGREP" --version 2>&1` in
3998*GNU*)
3999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4000*)
4001 ac_count=0
4002 $as_echo_n 0123456789 >"conftest.in"
4003 while :
4004 do
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 $as_echo 'EGREP' >> "conftest.nl"
4009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 as_fn_arith $ac_count + 1 && ac_count=$as_val
4012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_EGREP="$ac_path_EGREP"
4015 ac_path_EGREP_max=$ac_count
4016 fi
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4019 done
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021esac
24bbc4d7 4022
f11781c5
AK
4023 $ac_path_EGREP_found && break 3
4024 done
4025 done
4026 done
4027IFS=$as_save_IFS
4028 if test -z "$ac_cv_path_EGREP"; then
4029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030 fi
24bbc4d7 4031else
f11781c5 4032 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4033fi
4034
f11781c5 4035 fi
24bbc4d7 4036fi
f11781c5
AK
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4038$as_echo "$ac_cv_path_EGREP" >&6; }
4039 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4040
4041
f11781c5
AK
4042if test $ac_cv_c_compiler_gnu = yes; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4044$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4045if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
93bd259b 4047else
f11781c5
AK
4048 ac_pattern="Autoconf.*'x'"
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
4051#include <sgtty.h>
4052Autoconf TIOCGETP
4053_ACEOF
4054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4056 ac_cv_prog_gcc_traditional=yes
d0191583 4057else
f11781c5 4058 ac_cv_prog_gcc_traditional=no
7a197a62 4059fi
f11781c5 4060rm -f conftest*
7a197a62 4061
72b2cb61 4062
f11781c5
AK
4063 if test $ac_cv_prog_gcc_traditional = no; then
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h. */
4066#include <termio.h>
4067Autoconf TCGETA
72b2cb61 4068_ACEOF
f11781c5
AK
4069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4071 ac_cv_prog_gcc_traditional=yes
ad6254c5 4072fi
f11781c5 4073rm -f conftest*
ad6254c5 4074
f11781c5 4075 fi
7a197a62 4076fi
f11781c5
AK
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4078$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4079 if test $ac_cv_prog_gcc_traditional = yes; then
4080 CC="$CC -traditional"
4081 fi
ad6254c5
AK
4082fi
4083
f11781c5
AK
4084# Find a good install program. We prefer a C program (faster),
4085# so one script is as good as another. But avoid the broken or
4086# incompatible versions:
4087# SysV /etc/install, /usr/sbin/install
4088# SunOS /usr/etc/install
4089# IRIX /sbin/install
4090# AIX /bin/install
4091# AmigaOS /C/install, which installs bootblocks on floppy discs
4092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4093# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4095# OS/2's system install, which has a completely different semantic
4096# ./install, which can be erroneously created by make from ./install.sh.
4097# Reject install programs that cannot install multiple files.
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4099$as_echo_n "checking for a BSD-compatible install... " >&6; }
4100if test -z "$INSTALL"; then
4101if test "${ac_cv_path_install+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
ad6254c5 4103else
f11781c5
AK
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 # Account for people who put trailing slashes in PATH elements.
4110case $as_dir/ in #((
4111 ./ | .// | /[cC]/* | \
4112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4113 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4114 /usr/ucb/* ) ;;
4115 *)
4116 # OSF1 and SCO ODT 3.0 have their own names for install.
4117 # Don't use installbsd from OSF since it installs stuff as root
4118 # by default.
4119 for ac_prog in ginstall scoinst install; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4122 if test $ac_prog = install &&
4123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4124 # AIX install. It has an incompatible calling convention.
4125 :
4126 elif test $ac_prog = install &&
4127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128 # program-specific install script used by HP pwplus--don't use.
4129 :
4130 else
4131 rm -rf conftest.one conftest.two conftest.dir
4132 echo one > conftest.one
4133 echo two > conftest.two
4134 mkdir conftest.dir
4135 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4136 test -s conftest.one && test -s conftest.two &&
4137 test -s conftest.dir/conftest.one &&
4138 test -s conftest.dir/conftest.two
4139 then
4140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141 break 3
4142 fi
4143 fi
4144 fi
4145 done
4146 done
4147 ;;
4148esac
7a197a62 4149
f11781c5
AK
4150 done
4151IFS=$as_save_IFS
d0191583 4152
f11781c5 4153rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4154
4155fi
f11781c5
AK
4156 if test "${ac_cv_path_install+set}" = set; then
4157 INSTALL=$ac_cv_path_install
4158 else
4159 # As a last resort, use the slow shell script. Don't cache a
4160 # value for INSTALL within a source directory, because that will
4161 # break other packages using the cache if that directory is
4162 # removed, or if the value is a relative name.
4163 INSTALL=$ac_install_sh
4164 fi
7a197a62 4165fi
f11781c5
AK
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4167$as_echo "$INSTALL" >&6; }
7a197a62 4168
f11781c5
AK
4169# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4170# It thinks the first close brace ends the variable substitution.
4171test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4172
f11781c5 4173test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4174
f11781c5 4175test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4176
f11781c5
AK
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4178$as_echo_n "checking whether ln -s works... " >&6; }
4179LN_S=$as_ln_s
4180if test "$LN_S" = "ln -s"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4182$as_echo "yes" >&6; }
4183else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4185$as_echo "no, using $LN_S" >&6; }
15d91f5a 4186fi
ad6254c5 4187
f11781c5
AK
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4189$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4190set x ${MAKE-make}
4191ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4192if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4193 $as_echo_n "(cached) " >&6
d0191583 4194else
f11781c5
AK
4195 cat >conftest.make <<\_ACEOF
4196SHELL = /bin/sh
4197all:
4198 @echo '@@@%%%=$(MAKE)=@@@%%%'
4199_ACEOF
4200# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4201case `${MAKE-make} -f conftest.make 2>/dev/null` in
4202 *@@@%%%=?*=@@@%%%*)
4203 eval ac_cv_prog_make_${ac_make}_set=yes;;
4204 *)
4205 eval ac_cv_prog_make_${ac_make}_set=no;;
4206esac
4207rm -f conftest.make
4208fi
4209if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4211$as_echo "yes" >&6; }
4212 SET_MAKE=
4213else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4217fi
4218
f11781c5
AK
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4220$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4221if test -z "$MKDIR_P"; then
4222 if test "${ac_cv_path_mkdir+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in mkdir gmkdir; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4234 'mkdir (GNU coreutils) '* | \
4235 'mkdir (coreutils) '* | \
4236 'mkdir (fileutils) '4.1*)
4237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4238 break 3;;
4239 esac
4240 done
4241 done
4242 done
4243IFS=$as_save_IFS
d0191583 4244
f11781c5 4245fi
ad6254c5 4246
f11781c5
AK
4247 test -d ./--version && rmdir ./--version
4248 if test "${ac_cv_path_mkdir+set}" = set; then
4249 MKDIR_P="$ac_cv_path_mkdir -p"
4250 else
4251 # As a last resort, use the slow shell script. Don't cache a
4252 # value for MKDIR_P within a source directory, because that will
4253 # break other packages using the cache if that directory is
4254 # removed, or if the value is a relative name.
4255 MKDIR_P="$ac_install_sh -d"
4256 fi
ad6254c5 4257fi
f11781c5
AK
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4259$as_echo "$MKDIR_P" >&6; }
7a197a62 4260
f11781c5
AK
4261if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if test "${ac_cv_prog_RANLIB+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$RANLIB"; then
4270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283done
4284 done
4285IFS=$as_save_IFS
d0191583 4286
f11781c5
AK
4287fi
4288fi
4289RANLIB=$ac_cv_prog_RANLIB
4290if test -n "$RANLIB"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4292$as_echo "$RANLIB" >&6; }
d0191583 4293else
f11781c5
AK
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
ad6254c5 4296fi
ad6254c5 4297
8a2fc586 4298
d0191583 4299fi
f11781c5
AK
4300if test -z "$ac_cv_prog_RANLIB"; then
4301 ac_ct_RANLIB=$RANLIB
4302 # Extract the first word of "ranlib", so it can be a program name with args.
4303set dummy ranlib; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308else
4309 if test -n "$ac_ct_RANLIB"; then
4310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_ac_ct_RANLIB="ranlib"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323done
4324 done
4325IFS=$as_save_IFS
8a2fc586 4326
f11781c5
AK
4327fi
4328fi
4329ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4330if test -n "$ac_ct_RANLIB"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4332$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4333else
f11781c5
AK
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
8fea97b7
ZK
4336fi
4337
f11781c5
AK
4338 if test "x$ac_ct_RANLIB" = x; then
4339 RANLIB=":"
4340 else
4341 case $cross_compiling:$ac_tool_warned in
4342yes:)
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345ac_tool_warned=yes ;;
8fea97b7 4346esac
f11781c5
AK
4347 RANLIB=$ac_ct_RANLIB
4348 fi
d0191583 4349else
f11781c5 4350 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4351fi
8a2fc586 4352
f11781c5
AK
4353# Extract the first word of "cflow", so it can be a program name with args.
4354set dummy cflow; ac_word=$2
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356$as_echo_n "checking for $ac_word... " >&6; }
4357if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359else
4360 case $CFLOW_CMD in
4361 [\\/]* | ?:[\\/]*)
4362 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4363 ;;
4364 *)
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377 done
4378IFS=$as_save_IFS
8a2fc586 4379
f11781c5
AK
4380 ;;
4381esac
ad6254c5 4382fi
f11781c5
AK
4383CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4384if test -n "$CFLOW_CMD"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4386$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4387else
f11781c5
AK
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
37ddf259
AK
4390fi
4391
e2997b73 4392
f11781c5
AK
4393# Extract the first word of "cscope", so it can be a program name with args.
4394set dummy cscope; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4396$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4397if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4398 $as_echo_n "(cached) " >&6
4399else
f11781c5 4400 case $CSCOPE_CMD in
e2997b73 4401 [\\/]* | ?:[\\/]*)
f11781c5 4402 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4403 ;;
4404 *)
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
f11781c5 4410 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4412 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4414 break 2
4415 fi
4416done
f11781c5 4417 done
e2997b73
AK
4418IFS=$as_save_IFS
4419
4420 ;;
4421esac
4422fi
f11781c5
AK
4423CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4424if test -n "$CSCOPE_CMD"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4426$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4427else
f11781c5 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4429$as_echo "no" >&6; }
4430fi
f11781c5
AK
4431
4432
4433
4434################################################################################
4435ac_header_dirent=no
4436for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4437 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4439$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4440if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445#include <sys/types.h>
4446#include <$ac_hdr>
4447
4448int
4449main ()
4450{
4451if ((DIR *) 0)
4452return 0;
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457if ac_fn_c_try_compile "$LINENO"; then :
4458 eval "$as_ac_Header=yes"
4459else
4460 eval "$as_ac_Header=no"
4461fi
4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463fi
4464eval ac_res=\$$as_ac_Header
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4466$as_echo "$ac_res" >&6; }
4467if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4468 cat >>confdefs.h <<_ACEOF
4469#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4470_ACEOF
4471
4472ac_header_dirent=$ac_hdr; break
4473fi
4474
4475done
4476# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4477if test $ac_header_dirent = dirent.h; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4479$as_echo_n "checking for library containing opendir... " >&6; }
4480if test "${ac_cv_search_opendir+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482else
4483 ac_func_search_save_LIBS=$LIBS
4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h. */
4486
4487/* Override any GCC internal prototype to avoid an error.
4488 Use char because int might match the return type of a GCC
4489 builtin and then its argument prototype would still apply. */
4490#ifdef __cplusplus
4491extern "C"
4492#endif
4493char opendir ();
4494int
4495main ()
4496{
4497return opendir ();
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502for ac_lib in '' dir; do
4503 if test -z "$ac_lib"; then
4504 ac_res="none required"
4505 else
4506 ac_res=-l$ac_lib
4507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4508 fi
4509 if ac_fn_c_try_link "$LINENO"; then :
4510 ac_cv_search_opendir=$ac_res
4511fi
4512rm -f core conftest.err conftest.$ac_objext \
4513 conftest$ac_exeext
4514 if test "${ac_cv_search_opendir+set}" = set; then :
4515 break
4516fi
4517done
4518if test "${ac_cv_search_opendir+set}" = set; then :
4519
4520else
4521 ac_cv_search_opendir=no
4522fi
4523rm conftest.$ac_ext
4524LIBS=$ac_func_search_save_LIBS
4525fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4527$as_echo "$ac_cv_search_opendir" >&6; }
4528ac_res=$ac_cv_search_opendir
4529if test "$ac_res" != no; then :
4530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4531
4532fi
f11781c5
AK
4533
4534else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4536$as_echo_n "checking for library containing opendir... " >&6; }
4537if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4538 $as_echo_n "(cached) " >&6
4539else
f11781c5
AK
4540 ac_func_search_save_LIBS=$LIBS
4541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h. */
e2997b73 4543
f11781c5
AK
4544/* Override any GCC internal prototype to avoid an error.
4545 Use char because int might match the return type of a GCC
4546 builtin and then its argument prototype would still apply. */
4547#ifdef __cplusplus
4548extern "C"
4549#endif
4550char opendir ();
4551int
4552main ()
4553{
4554return opendir ();
4555 ;
4556 return 0;
4557}
4558_ACEOF
4559for ac_lib in '' x; do
4560 if test -z "$ac_lib"; then
4561 ac_res="none required"
4562 else
4563 ac_res=-l$ac_lib
4564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4565 fi
4566 if ac_fn_c_try_link "$LINENO"; then :
4567 ac_cv_search_opendir=$ac_res
e2997b73 4568fi
f11781c5
AK
4569rm -f core conftest.err conftest.$ac_objext \
4570 conftest$ac_exeext
4571 if test "${ac_cv_search_opendir+set}" = set; then :
4572 break
e2997b73 4573fi
f11781c5
AK
4574done
4575if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4576
e2997b73 4577else
f11781c5
AK
4578 ac_cv_search_opendir=no
4579fi
4580rm conftest.$ac_ext
4581LIBS=$ac_func_search_save_LIBS
e2997b73 4582fi
f11781c5
AK
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4584$as_echo "$ac_cv_search_opendir" >&6; }
4585ac_res=$ac_cv_search_opendir
4586if test "$ac_res" != no; then :
4587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4588
4589fi
8c4e8a18 4590
e2997b73
AK
4591fi
4592
f11781c5
AK
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4594$as_echo_n "checking for ANSI C header files... " >&6; }
4595if test "${ac_cv_header_stdc+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597else
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h. */
4600#include <stdlib.h>
4601#include <stdarg.h>
4602#include <string.h>
4603#include <float.h>
e2997b73 4604
f11781c5
AK
4605int
4606main ()
4607{
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_header_stdc=yes
e2997b73 4615else
f11781c5 4616 ac_cv_header_stdc=no
e2997b73 4617fi
f11781c5
AK
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619
4620if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h. */
4624#include <string.h>
4625
4626_ACEOF
4627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "memchr" >/dev/null 2>&1; then :
4629
e2997b73 4630else
f11781c5 4631 ac_cv_header_stdc=no
e2997b73 4632fi
f11781c5 4633rm -f conftest*
e2997b73 4634
f11781c5 4635fi
e2997b73 4636
f11781c5
AK
4637if test $ac_cv_header_stdc = yes; then
4638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641#include <stdlib.h>
e2997b73 4642
f11781c5
AK
4643_ACEOF
4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4646
e2997b73 4647else
f11781c5 4648 ac_cv_header_stdc=no
e2997b73 4649fi
f11781c5 4650rm -f conftest*
e2997b73 4651
e2997b73 4652fi
90c80887 4653
f11781c5
AK
4654if test $ac_cv_header_stdc = yes; then
4655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4656 if test "$cross_compiling" = yes; then :
4657 :
4658else
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h. */
4661#include <ctype.h>
4662#include <stdlib.h>
4663#if ((' ' & 0x0FF) == 0x020)
4664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666#else
4667# define ISLOWER(c) \
4668 (('a' <= (c) && (c) <= 'i') \
4669 || ('j' <= (c) && (c) <= 'r') \
4670 || ('s' <= (c) && (c) <= 'z'))
4671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672#endif
4673
4674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4675int
4676main ()
4677{
4678 int i;
4679 for (i = 0; i < 256; i++)
4680 if (XOR (islower (i), ISLOWER (i))
4681 || toupper (i) != TOUPPER (i))
4682 return 2;
4683 return 0;
4684}
4685_ACEOF
4686if ac_fn_c_try_run "$LINENO"; then :
90c80887 4687
90c80887 4688else
f11781c5 4689 ac_cv_header_stdc=no
90c80887 4690fi
f11781c5
AK
4691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4692 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4693fi
90c80887 4694
90c80887 4695fi
90c80887 4696fi
f11781c5
AK
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4698$as_echo "$ac_cv_header_stdc" >&6; }
4699if test $ac_cv_header_stdc = yes; then
90c80887 4700
f11781c5 4701$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4702
90c80887 4703fi
f11781c5
AK
4704
4705# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4706for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4707 inttypes.h stdint.h unistd.h
4708do :
4709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4711"
4712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4713 cat >>confdefs.h <<_ACEOF
4714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4715_ACEOF
4716
90c80887 4717fi
f11781c5
AK
4718
4719done
4720
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4723$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4724if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h. */
4729#include <sys/types.h>
4730int
4731main ()
4732{
4733return makedev(0, 0);
4734 ;
4735 return 0;
4736}
4737_ACEOF
4738if ac_fn_c_try_link "$LINENO"; then :
4739 ac_cv_header_sys_types_h_makedev=yes
4740else
4741 ac_cv_header_sys_types_h_makedev=no
90c80887 4742fi
f11781c5
AK
4743rm -f core conftest.err conftest.$ac_objext \
4744 conftest$ac_exeext conftest.$ac_ext
4745
90c80887 4746fi
f11781c5
AK
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4748$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4749
4750if test $ac_cv_header_sys_types_h_makedev = no; then
4751ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4752if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4753
4754$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4755
a946372e 4756fi
e2997b73 4757
e2997b73 4758
a946372e 4759
f11781c5
AK
4760 if test $ac_cv_header_sys_mkdev_h = no; then
4761 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4762if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4763
4764$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4765
e2997b73 4766fi
a946372e 4767
a946372e 4768
f11781c5
AK
4769 fi
4770fi
4771
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4773$as_echo_n "checking for ANSI C header files... " >&6; }
4774if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4775 $as_echo_n "(cached) " >&6
4776else
f11781c5 4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4778/* end confdefs.h. */
f11781c5
AK
4779#include <stdlib.h>
4780#include <stdarg.h>
4781#include <string.h>
4782#include <float.h>
a946372e 4783
a946372e
AK
4784int
4785main ()
4786{
f11781c5 4787
a946372e
AK
4788 ;
4789 return 0;
4790}
4791_ACEOF
f11781c5
AK
4792if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_header_stdc=yes
e2997b73 4794else
f11781c5
AK
4795 ac_cv_header_stdc=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798
4799if test $ac_cv_header_stdc = yes; then
4800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803#include <string.h>
4804
4805_ACEOF
4806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4808
f11781c5
AK
4809else
4810 ac_cv_header_stdc=no
a946372e 4811fi
f11781c5 4812rm -f conftest*
e2997b73 4813
a946372e 4814fi
e2997b73 4815
f11781c5
AK
4816if test $ac_cv_header_stdc = yes; then
4817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h. */
4820#include <stdlib.h>
4821
4822_ACEOF
4823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4825
e2997b73 4826else
f11781c5 4827 ac_cv_header_stdc=no
e2997b73 4828fi
f11781c5 4829rm -f conftest*
e2997b73 4830
f11781c5 4831fi
a946372e 4832
f11781c5
AK
4833if test $ac_cv_header_stdc = yes; then
4834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4835 if test "$cross_compiling" = yes; then :
4836 :
4837else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h. */
4840#include <ctype.h>
4841#include <stdlib.h>
4842#if ((' ' & 0x0FF) == 0x020)
4843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4845#else
4846# define ISLOWER(c) \
4847 (('a' <= (c) && (c) <= 'i') \
4848 || ('j' <= (c) && (c) <= 'r') \
4849 || ('s' <= (c) && (c) <= 'z'))
4850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4851#endif
e2997b73 4852
f11781c5
AK
4853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4854int
4855main ()
4856{
4857 int i;
4858 for (i = 0; i < 256; i++)
4859 if (XOR (islower (i), ISLOWER (i))
4860 || toupper (i) != TOUPPER (i))
4861 return 2;
4862 return 0;
4863}
4864_ACEOF
4865if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4866
e2997b73 4867else
f11781c5 4868 ac_cv_header_stdc=no
e2997b73 4869fi
f11781c5
AK
4870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4871 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4872fi
f11781c5 4873
e2997b73 4874fi
e2997b73 4875fi
f11781c5
AK
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4877$as_echo "$ac_cv_header_stdc" >&6; }
4878if test $ac_cv_header_stdc = yes; then
e2997b73 4879
f11781c5 4880$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4881
f11781c5 4882fi
e2997b73 4883
f11781c5
AK
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4885$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4886if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888else
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h. */
4891#include <sys/types.h>
4892#include <sys/wait.h>
4893#ifndef WEXITSTATUS
4894# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4895#endif
4896#ifndef WIFEXITED
4897# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4898#endif
e2997b73 4899
f11781c5
AK
4900int
4901main ()
4902{
4903 int s;
4904 wait (&s);
4905 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4906 ;
4907 return 0;
4908}
4909_ACEOF
4910if ac_fn_c_try_compile "$LINENO"; then :
4911 ac_cv_header_sys_wait_h=yes
e2997b73 4912else
f11781c5 4913 ac_cv_header_sys_wait_h=no
e2997b73 4914fi
f11781c5
AK
4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4918$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4919if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4920
f11781c5 4921$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4922
d0191583 4923fi
f11781c5
AK
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4926$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4927if test "${ac_cv_header_time+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
fc54be10 4929else
f11781c5 4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4931/* end confdefs.h. */
f11781c5
AK
4932#include <sys/types.h>
4933#include <sys/time.h>
4934#include <time.h>
4935
4936int
4937main ()
4938{
4939if ((struct tm *) 0)
4940return 0;
4941 ;
4942 return 0;
4943}
a946372e 4944_ACEOF
f11781c5
AK
4945if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_header_time=yes
a946372e 4947else
f11781c5
AK
4948 ac_cv_header_time=no
4949fi
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4953$as_echo "$ac_cv_header_time" >&6; }
4954if test $ac_cv_header_time = yes; then
4955
4956$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4957
4958fi
4959
4960
4961for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4962 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4963 sys/wait.h time.h
4964do :
4965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4968 cat >>confdefs.h <<_ACEOF
4969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4970_ACEOF
d0191583 4971
f11781c5
AK
4972else
4973 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4974fi
4975
f11781c5 4976done
fddafd51 4977
f11781c5
AK
4978
4979case "$host_os" in
4980 linux*)
4981 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4982do :
4983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4986 cat >>confdefs.h <<_ACEOF
4987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4988_ACEOF
a946372e 4989
f11781c5
AK
4990else
4991 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4992fi
4993
f11781c5
AK
4994done
4995 ;;
4996 darwin*)
4997 for ac_header in machine/endian.h sys/disk.h
4998do :
4999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5002 cat >>confdefs.h <<_ACEOF
5003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004_ACEOF
a946372e 5005
f11781c5
AK
5006else
5007 as_fn_error $? "bailing out" "$LINENO" 5
5008fi
a946372e 5009
f11781c5
AK
5010done
5011 ;;
a946372e 5012esac
f11781c5
AK
5013
5014for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5015 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5016 sys/types.h unistd.h
5017do :
5018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5021 cat >>confdefs.h <<_ACEOF
5022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023_ACEOF
5024
a946372e 5025else
f11781c5 5026 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5027fi
a946372e 5028
f11781c5
AK
5029done
5030
5031for ac_header in termios.h sys/statvfs.h
5032do :
5033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5034ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5035if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5036 cat >>confdefs.h <<_ACEOF
5037#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038_ACEOF
5039
a946372e
AK
5040fi
5041
5042done
5043
a946372e 5044
f11781c5
AK
5045################################################################################
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5047$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5048if test "${ac_cv_c_const+set}" = set; then :
a946372e 5049 $as_echo_n "(cached) " >&6
a946372e 5050else
f11781c5 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5052/* end confdefs.h. */
a946372e 5053
f11781c5
AK
5054int
5055main ()
5056{
5057/* FIXME: Include the comments suggested by Paul. */
5058#ifndef __cplusplus
5059 /* Ultrix mips cc rejects this. */
5060 typedef int charset[2];
5061 const charset cs;
5062 /* SunOS 4.1.1 cc rejects this. */
5063 char const *const *pcpcc;
5064 char **ppc;
5065 /* NEC SVR4.0.2 mips cc rejects this. */
5066 struct point {int x, y;};
5067 static struct point const zero = {0,0};
5068 /* AIX XL C 1.02.0.0 rejects this.
5069 It does not let you subtract one const X* pointer from another in
5070 an arm of an if-expression whose if-part is not a constant
5071 expression */
5072 const char *g = "string";
5073 pcpcc = &g + (g ? g-g : 0);
5074 /* HPUX 7.0 cc rejects these. */
5075 ++pcpcc;
5076 ppc = (char**) pcpcc;
5077 pcpcc = (char const *const *) ppc;
5078 { /* SCO 3.2v4 cc rejects this. */
5079 char *t;
5080 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5081
f11781c5
AK
5082 *t++ = 0;
5083 if (s) return 0;
5084 }
5085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5086 int x[] = {25, 17};
5087 const int *foo = &x[0];
5088 ++foo;
5089 }
5090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5091 typedef const int *iptr;
5092 iptr p = 0;
5093 ++p;
5094 }
5095 { /* AIX XL C 1.02.0.0 rejects this saying
5096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5097 struct s { int j; const int *ap[3]; };
5098 struct s *b; b->j = 5;
5099 }
5100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5101 const int foo = 10;
5102 if (!foo) return 0;
5103 }
5104 return !cs[0] && !zero.x;
5105#endif
a946372e 5106
f11781c5
AK
5107 ;
5108 return 0;
5109}
a946372e 5110_ACEOF
f11781c5
AK
5111if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_c_const=yes
a946372e 5113else
f11781c5
AK
5114 ac_cv_c_const=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5117fi
f11781c5
AK
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5119$as_echo "$ac_cv_c_const" >&6; }
5120if test $ac_cv_c_const = no; then
a946372e 5121
f11781c5 5122$as_echo "#define const /**/" >>confdefs.h
a946372e 5123
f11781c5 5124fi
a946372e 5125
f11781c5
AK
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5127$as_echo_n "checking for inline... " >&6; }
5128if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5129 $as_echo_n "(cached) " >&6
5130else
f11781c5
AK
5131 ac_cv_c_inline=no
5132for ac_kw in inline __inline__ __inline; do
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h. */
5135#ifndef __cplusplus
5136typedef int foo_t;
5137static $ac_kw foo_t static_foo () {return 0; }
5138$ac_kw foo_t foo () {return 0; }
5139#endif
5140
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_c_inline=$ac_kw
a946372e 5144fi
f11781c5
AK
5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 test "$ac_cv_c_inline" != no && break
5147done
a946372e
AK
5148
5149fi
f11781c5
AK
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5151$as_echo "$ac_cv_c_inline" >&6; }
5152
5153case $ac_cv_c_inline in
5154 inline | yes) ;;
5155 *)
5156 case $ac_cv_c_inline in
5157 no) ac_val=;;
5158 *) ac_val=$ac_cv_c_inline;;
5159 esac
5160 cat >>confdefs.h <<_ACEOF
5161#ifndef __cplusplus
5162#define inline $ac_val
5163#endif
5164_ACEOF
5165 ;;
5166esac
5167
5168ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5169if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5170
5171cat >>confdefs.h <<_ACEOF
5172#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5173_ACEOF
5174
f11781c5 5175
a946372e
AK
5176fi
5177
f11781c5
AK
5178ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5179if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5180
a946372e 5181else
f11781c5
AK
5182
5183cat >>confdefs.h <<_ACEOF
5184#define off_t long int
5185_ACEOF
5186
a946372e
AK
5187fi
5188
f11781c5
AK
5189ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5190if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5191
a946372e 5192else
f11781c5
AK
5193
5194cat >>confdefs.h <<_ACEOF
5195#define pid_t int
5196_ACEOF
5197
5198fi
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5201$as_echo_n "checking return type of signal handlers... " >&6; }
5202if test "${ac_cv_type_signal+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
a946372e 5204else
f11781c5
AK
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h. */
5207#include <sys/types.h>
5208#include <signal.h>
5209
5210int
5211main ()
5212{
5213return *(signal (0, 0)) (0) == 1;
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"; then :
5219 ac_cv_type_signal=int
5220else
5221 ac_cv_type_signal=void
a946372e 5222fi
f11781c5 5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5224fi
f11781c5
AK
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5226$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5227
f11781c5
AK
5228cat >>confdefs.h <<_ACEOF
5229#define RETSIGTYPE $ac_cv_type_signal
5230_ACEOF
a946372e
AK
5231
5232
f11781c5
AK
5233ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5234if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5235
a946372e 5236else
a946372e 5237
f11781c5
AK
5238cat >>confdefs.h <<_ACEOF
5239#define size_t unsigned int
5240_ACEOF
a946372e 5241
a946372e 5242fi
f11781c5
AK
5243
5244ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5245if test "x$ac_cv_type_mode_t" = x""yes; then :
5246
a946372e 5247else
f11781c5
AK
5248
5249cat >>confdefs.h <<_ACEOF
5250#define mode_t int
a946372e 5251_ACEOF
a946372e 5252
a946372e
AK
5253fi
5254
f11781c5
AK
5255ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5256case $ac_cv_c_int8_t in #(
5257 no|yes) ;; #(
5258 *)
a946372e 5259
f11781c5
AK
5260cat >>confdefs.h <<_ACEOF
5261#define int8_t $ac_cv_c_int8_t
a946372e 5262_ACEOF
f11781c5 5263;;
a946372e 5264esac
a946372e 5265
f11781c5
AK
5266ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5267case $ac_cv_c_int16_t in #(
5268 no|yes) ;; #(
5269 *)
a946372e 5270
f11781c5
AK
5271cat >>confdefs.h <<_ACEOF
5272#define int16_t $ac_cv_c_int16_t
5273_ACEOF
5274;;
5275esac
a946372e 5276
f11781c5
AK
5277ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5278case $ac_cv_c_int32_t in #(
5279 no|yes) ;; #(
5280 *)
a946372e 5281
f11781c5
AK
5282cat >>confdefs.h <<_ACEOF
5283#define int32_t $ac_cv_c_int32_t
5284_ACEOF
5285;;
a946372e 5286esac
a946372e 5287
f11781c5
AK
5288ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5289case $ac_cv_c_int64_t in #(
5290 no|yes) ;; #(
5291 *)
5292
5293cat >>confdefs.h <<_ACEOF
5294#define int64_t $ac_cv_c_int64_t
a946372e 5295_ACEOF
f11781c5
AK
5296;;
5297esac
5298
5299ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5300if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5301
5302else
a946372e 5303
f11781c5
AK
5304cat >>confdefs.h <<_ACEOF
5305#define ssize_t int
5306_ACEOF
a946372e 5307
f11781c5 5308fi
a946372e 5309
f11781c5
AK
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5311$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5312if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5313 $as_echo_n "(cached) " >&6
a946372e 5314else
f11781c5 5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5316/* end confdefs.h. */
f11781c5
AK
5317#include <sys/types.h>
5318
a946372e 5319_ACEOF
f11781c5
AK
5320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "uid_t" >/dev/null 2>&1; then :
5322 ac_cv_type_uid_t=yes
a946372e 5323else
f11781c5
AK
5324 ac_cv_type_uid_t=no
5325fi
5326rm -f conftest*
a946372e 5327
a946372e 5328fi
f11781c5
AK
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5330$as_echo "$ac_cv_type_uid_t" >&6; }
5331if test $ac_cv_type_uid_t = no; then
a946372e 5332
f11781c5 5333$as_echo "#define uid_t int" >>confdefs.h
a946372e 5334
f11781c5
AK
5335
5336$as_echo "#define gid_t int" >>confdefs.h
5337
5338fi
5339
5340ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5341case $ac_cv_c_uint8_t in #(
5342 no|yes) ;; #(
5343 *)
5344
5345$as_echo "#define _UINT8_T 1" >>confdefs.h
5346
5347
5348cat >>confdefs.h <<_ACEOF
5349#define uint8_t $ac_cv_c_uint8_t
a946372e 5350_ACEOF
f11781c5
AK
5351;;
5352 esac
5353
5354ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5355case $ac_cv_c_uint16_t in #(
5356 no|yes) ;; #(
5357 *)
5358
5359
5360cat >>confdefs.h <<_ACEOF
5361#define uint16_t $ac_cv_c_uint16_t
a946372e 5362_ACEOF
f11781c5
AK
5363;;
5364 esac
a946372e 5365
f11781c5
AK
5366ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5367case $ac_cv_c_uint32_t in #(
5368 no|yes) ;; #(
5369 *)
a946372e 5370
f11781c5 5371$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5372
a946372e 5373
f11781c5
AK
5374cat >>confdefs.h <<_ACEOF
5375#define uint32_t $ac_cv_c_uint32_t
5376_ACEOF
5377;;
5378 esac
5379
5380ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5381case $ac_cv_c_uint64_t in #(
5382 no|yes) ;; #(
5383 *)
5384
5385$as_echo "#define _UINT64_T 1" >>confdefs.h
5386
5387
5388cat >>confdefs.h <<_ACEOF
5389#define uint64_t $ac_cv_c_uint64_t
5390_ACEOF
5391;;
5392 esac
5393
5394ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5395if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5396
5397cat >>confdefs.h <<_ACEOF
5398#define HAVE_STRUCT_STAT_ST_RDEV 1
5399_ACEOF
5400
5401
5402fi
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5405$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5406if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5407 $as_echo_n "(cached) " >&6
5408else
f11781c5
AK
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h. */
5411#include <sys/types.h>
5412#include <time.h>
5413
5414int
5415main ()
5416{
5417struct tm tm;
5418 int *p = &tm.tm_sec;
5419 return !p;
5420 ;
5421 return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"; then :
5425 ac_cv_struct_tm=time.h
5426else
5427 ac_cv_struct_tm=sys/time.h
a946372e 5428fi
f11781c5
AK
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5432$as_echo "$ac_cv_struct_tm" >&6; }
5433if test $ac_cv_struct_tm = sys/time.h; then
5434
5435$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5436
5437fi
f11781c5
AK
5438
5439
5440################################################################################
5441for ac_func in ftruncate gethostname getpagesize \
5442 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5443 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5444 strstr strtol strtoul uname
5445do :
5446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5447ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5448if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5449 cat >>confdefs.h <<_ACEOF
f11781c5 5450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5451_ACEOF
5452
5453else
f11781c5 5454 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5455fi
a946372e
AK
5456done
5457
f11781c5
AK
5458for ac_func in siginterrupt
5459do :
5460 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5461if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5462 cat >>confdefs.h <<_ACEOF
5463#define HAVE_SIGINTERRUPT 1
5464_ACEOF
a946372e 5465
f11781c5
AK
5466fi
5467done
a946372e 5468
f11781c5
AK
5469# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5470# for constant arguments. Useless!
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5472$as_echo_n "checking for working alloca.h... " >&6; }
5473if test "${ac_cv_working_alloca_h+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
a946372e 5475else
f11781c5
AK
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h. */
5478#include <alloca.h>
5479int
5480main ()
5481{
5482char *p = (char *) alloca (2 * sizeof (int));
5483 if (p) return 0;
5484 ;
5485 return 0;
5486}
5487_ACEOF
5488if ac_fn_c_try_link "$LINENO"; then :
5489 ac_cv_working_alloca_h=yes
a946372e 5490else
f11781c5 5491 ac_cv_working_alloca_h=no
a946372e 5492fi
f11781c5
AK
5493rm -f core conftest.err conftest.$ac_objext \
5494 conftest$ac_exeext conftest.$ac_ext
a946372e 5495fi
f11781c5
AK
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5497$as_echo "$ac_cv_working_alloca_h" >&6; }
5498if test $ac_cv_working_alloca_h = yes; then
a946372e 5499
f11781c5 5500$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5501
a946372e 5502fi
a946372e 5503
f11781c5
AK
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5505$as_echo_n "checking for alloca... " >&6; }
5506if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5507 $as_echo_n "(cached) " >&6
a946372e 5508else
f11781c5 5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5510/* end confdefs.h. */
f11781c5
AK
5511#ifdef __GNUC__
5512# define alloca __builtin_alloca
5513#else
5514# ifdef _MSC_VER
5515# include <malloc.h>
5516# define alloca _alloca
5517# else
5518# ifdef HAVE_ALLOCA_H
5519# include <alloca.h>
5520# else
5521# ifdef _AIX
5522 #pragma alloca
5523# else
5524# ifndef alloca /* predefined by HP cc +Olibcalls */
5525char *alloca ();
5526# endif
5527# endif
5528# endif
5529# endif
5530#endif
a946372e 5531
f11781c5
AK
5532int
5533main ()
5534{
5535char *p = (char *) alloca (1);
5536 if (p) return 0;
5537 ;
5538 return 0;
5539}
a946372e 5540_ACEOF
f11781c5
AK
5541if ac_fn_c_try_link "$LINENO"; then :
5542 ac_cv_func_alloca_works=yes
a946372e 5543else
f11781c5 5544 ac_cv_func_alloca_works=no
a946372e 5545fi
f11781c5
AK
5546rm -f core conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5550$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5551
f11781c5 5552if test $ac_cv_func_alloca_works = yes; then
a946372e 5553
f11781c5 5554$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5555
a946372e 5556else
f11781c5
AK
5557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5558# that cause trouble. Some versions do not even contain alloca or
5559# contain a buggy version. If you still want to use their alloca,
5560# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5561
f11781c5 5562ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5563
f11781c5 5564$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5565
a946372e 5566
f11781c5
AK
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5568$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5569if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5570 $as_echo_n "(cached) " >&6
a946372e 5571else
f11781c5 5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5573/* end confdefs.h. */
f11781c5
AK
5574#if defined CRAY && ! defined CRAY2
5575webecray
5576#else
5577wenotbecray
5578#endif
5579
a946372e 5580_ACEOF
f11781c5
AK
5581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582 $EGREP "webecray" >/dev/null 2>&1; then :
5583 ac_cv_os_cray=yes
a946372e 5584else
f11781c5 5585 ac_cv_os_cray=no
a946372e 5586fi
f11781c5 5587rm -f conftest*
a946372e 5588
f11781c5
AK
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5591$as_echo "$ac_cv_os_cray" >&6; }
5592if test $ac_cv_os_cray = yes; then
5593 for ac_func in _getb67 GETB67 getb67; do
5594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5596if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5597
f11781c5
AK
5598cat >>confdefs.h <<_ACEOF
5599#define CRAY_STACKSEG_END $ac_func
a946372e 5600_ACEOF
a946372e 5601
f11781c5 5602 break
a946372e
AK
5603fi
5604
f11781c5
AK
5605 done
5606fi
a946372e 5607
f11781c5
AK
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5609$as_echo_n "checking stack direction for C alloca... " >&6; }
5610if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5611 $as_echo_n "(cached) " >&6
5612else
f11781c5
AK
5613 if test "$cross_compiling" = yes; then :
5614 ac_cv_c_stack_direction=0
5615else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h. */
5618$ac_includes_default
5619int
5620find_stack_direction ()
5621{
5622 static char *addr = 0;
5623 auto char dummy;
5624 if (addr == 0)
5625 {
5626 addr = &dummy;
5627 return find_stack_direction ();
5628 }
5629 else
5630 return (&dummy > addr) ? 1 : -1;
5631}
5632
5633int
5634main ()
5635{
5636 return find_stack_direction () < 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_run "$LINENO"; then :
5640 ac_cv_c_stack_direction=1
5641else
5642 ac_cv_c_stack_direction=-1
5643fi
5644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5645 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5646fi
a946372e
AK
5647
5648fi
f11781c5
AK
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5650$as_echo "$ac_cv_c_stack_direction" >&6; }
5651cat >>confdefs.h <<_ACEOF
5652#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5653_ACEOF
5654
f11781c5 5655
a946372e
AK
5656fi
5657
f11781c5
AK
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5659$as_echo_n "checking whether closedir returns void... " >&6; }
5660if test "${ac_cv_func_closedir_void+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 if test "$cross_compiling" = yes; then :
5664 ac_cv_func_closedir_void=yes
5665else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668$ac_includes_default
5669#include <$ac_header_dirent>
5670#ifndef __cplusplus
5671int closedir ();
5672#endif
a946372e 5673
f11781c5
AK
5674int
5675main ()
5676{
5677return closedir (opendir (".")) != 0;
5678 ;
5679 return 0;
5680}
5681_ACEOF
5682if ac_fn_c_try_run "$LINENO"; then :
5683 ac_cv_func_closedir_void=no
a946372e 5684else
f11781c5 5685 ac_cv_func_closedir_void=yes
a946372e 5686fi
f11781c5
AK
5687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5688 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5689fi
5690
f11781c5
AK
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5693$as_echo "$ac_cv_func_closedir_void" >&6; }
5694if test $ac_cv_func_closedir_void = yes; then
a946372e 5695
f11781c5 5696$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5697
a946372e
AK
5698fi
5699
f11781c5
AK
5700for ac_header in unistd.h
5701do :
5702 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5703if test "x$ac_cv_header_unistd_h" = x""yes; then :
5704 cat >>confdefs.h <<_ACEOF
5705#define HAVE_UNISTD_H 1
5706_ACEOF
a946372e 5707
f11781c5 5708fi
a946372e 5709
f11781c5 5710done
a946372e 5711
f11781c5
AK
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5713$as_echo_n "checking for working chown... " >&6; }
5714if test "${ac_cv_func_chown_works+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
a946372e 5716else
f11781c5
AK
5717 if test "$cross_compiling" = yes; then :
5718 ac_cv_func_chown_works=no
a946372e 5719else
f11781c5
AK
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722$ac_includes_default
5723#include <fcntl.h>
a946372e 5724
f11781c5
AK
5725int
5726main ()
5727{
5728 char *f = "conftest.chown";
5729 struct stat before, after;
a946372e 5730
f11781c5
AK
5731 if (creat (f, 0600) < 0)
5732 return 1;
5733 if (stat (f, &before) < 0)
5734 return 1;
5735 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5736 return 1;
5737 if (stat (f, &after) < 0)
5738 return 1;
5739 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5740
f11781c5
AK
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_run "$LINENO"; then :
5746 ac_cv_func_chown_works=yes
a946372e 5747else
f11781c5 5748 ac_cv_func_chown_works=no
a946372e 5749fi
f11781c5
AK
5750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5751 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5752fi
5753
f11781c5 5754rm -f conftest.chown
a946372e 5755
f11781c5
AK
5756fi
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5758$as_echo "$ac_cv_func_chown_works" >&6; }
5759if test $ac_cv_func_chown_works = yes; then
a946372e 5760
f11781c5 5761$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5762
a946372e 5763fi
a946372e 5764
f11781c5
AK
5765for ac_header in vfork.h
5766do :
5767 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5768if test "x$ac_cv_header_vfork_h" = x""yes; then :
5769 cat >>confdefs.h <<_ACEOF
5770#define HAVE_VFORK_H 1
5771_ACEOF
a946372e 5772
f11781c5 5773fi
a946372e 5774
f11781c5 5775done
a946372e 5776
f11781c5
AK
5777for ac_func in fork vfork
5778do :
5779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5780ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5781if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5782 cat >>confdefs.h <<_ACEOF
5783#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5784_ACEOF
a946372e 5785
f11781c5
AK
5786fi
5787done
a946372e 5788
f11781c5
AK
5789if test "x$ac_cv_func_fork" = xyes; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5791$as_echo_n "checking for working fork... " >&6; }
5792if test "${ac_cv_func_fork_works+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794else
5795 if test "$cross_compiling" = yes; then :
5796 ac_cv_func_fork_works=cross
5797else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */
5800$ac_includes_default
5801int
5802main ()
5803{
a946372e 5804
f11781c5
AK
5805 /* By Ruediger Kuhlmann. */
5806 return fork () < 0;
a946372e 5807
f11781c5
AK
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_run "$LINENO"; then :
5813 ac_cv_func_fork_works=yes
a946372e 5814else
f11781c5
AK
5815 ac_cv_func_fork_works=no
5816fi
5817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5818 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5819fi
a946372e 5820
f11781c5
AK
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5823$as_echo "$ac_cv_func_fork_works" >&6; }
5824
a946372e 5825else
f11781c5 5826 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5827fi
f11781c5
AK
5828if test "x$ac_cv_func_fork_works" = xcross; then
5829 case $host in
5830 *-*-amigaos* | *-*-msdosdjgpp*)
5831 # Override, as these systems have only a dummy fork() stub
5832 ac_cv_func_fork_works=no
5833 ;;
5834 *)
5835 ac_cv_func_fork_works=yes
5836 ;;
5837 esac
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5839$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5840fi
f11781c5
AK
5841ac_cv_func_vfork_works=$ac_cv_func_vfork
5842if test "x$ac_cv_func_vfork" = xyes; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5844$as_echo_n "checking for working vfork... " >&6; }
5845if test "${ac_cv_func_vfork_works+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847else
5848 if test "$cross_compiling" = yes; then :
5849 ac_cv_func_vfork_works=cross
5850else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853/* Thanks to Paul Eggert for this test. */
5854$ac_includes_default
5855#include <sys/wait.h>
5856#ifdef HAVE_VFORK_H
5857# include <vfork.h>
5858#endif
5859/* On some sparc systems, changes by the child to local and incoming
5860 argument registers are propagated back to the parent. The compiler
5861 is told about this with #include <vfork.h>, but some compilers
5862 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5863 static variable whose address is put into a register that is
5864 clobbered by the vfork. */
5865static void
5866#ifdef __cplusplus
5867sparc_address_test (int arg)
5868# else
5869sparc_address_test (arg) int arg;
5870#endif
5871{
5872 static pid_t child;
5873 if (!child) {
5874 child = vfork ();
5875 if (child < 0) {
5876 perror ("vfork");
5877 _exit(2);
5878 }
5879 if (!child) {
5880 arg = getpid();
5881 write(-1, "", 0);
5882 _exit (arg);
5883 }
5884 }
5885}
a946372e 5886
f11781c5
AK
5887int
5888main ()
5889{
5890 pid_t parent = getpid ();
5891 pid_t child;
a946372e 5892
f11781c5 5893 sparc_address_test (0);
a946372e 5894
f11781c5 5895 child = vfork ();
a946372e 5896
f11781c5
AK
5897 if (child == 0) {
5898 /* Here is another test for sparc vfork register problems. This
5899 test uses lots of local variables, at least as many local
5900 variables as main has allocated so far including compiler
5901 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5902 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5903 reuse the register of parent for one of the local variables,
5904 since it will think that parent can't possibly be used any more
5905 in this routine. Assigning to the local variable will thus
5906 munge parent in the parent process. */
5907 pid_t
5908 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5909 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5910 /* Convince the compiler that p..p7 are live; otherwise, it might
5911 use the same hardware register for all 8 local variables. */
5912 if (p != p1 || p != p2 || p != p3 || p != p4
5913 || p != p5 || p != p6 || p != p7)
5914 _exit(1);
a946372e 5915
f11781c5
AK
5916 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5917 from child file descriptors. If the child closes a descriptor
5918 before it execs or exits, this munges the parent's descriptor
5919 as well. Test for this by closing stdout in the child. */
5920 _exit(close(fileno(stdout)) != 0);
5921 } else {
5922 int status;
5923 struct stat st;
5924
5925 while (wait(&status) != child)
5926 ;
5927 return (
5928 /* Was there some problem with vforking? */
5929 child < 0
5930
5931 /* Did the child fail? (This shouldn't happen.) */
5932 || status
5933
5934 /* Did the vfork/compiler bug occur? */
5935 || parent != getpid()
5936
5937 /* Did the file descriptor bug occur? */
5938 || fstat(fileno(stdout), &st) != 0
5939 );
5940 }
5941}
5942_ACEOF
5943if ac_fn_c_try_run "$LINENO"; then :
5944 ac_cv_func_vfork_works=yes
a946372e 5945else
f11781c5 5946 ac_cv_func_vfork_works=no
a946372e 5947fi
f11781c5
AK
5948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5949 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5950fi
f11781c5 5951
a946372e 5952fi
f11781c5
AK
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5954$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5955
f11781c5
AK
5956fi;
5957if test "x$ac_cv_func_fork_works" = xcross; then
5958 ac_cv_func_vfork_works=$ac_cv_func_vfork
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5960$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5961fi
a946372e 5962
f11781c5 5963if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5964
f11781c5 5965$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5966
a946372e 5967else
a946372e 5968
f11781c5
AK
5969$as_echo "#define vfork fork" >>confdefs.h
5970
a946372e 5971fi
f11781c5 5972if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5973
f11781c5 5974$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5975
a946372e 5976fi
f11781c5
AK
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5979$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5980if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
a946372e 5982else
f11781c5
AK
5983 rm -f conftest.sym conftest.file
5984echo >conftest.file
5985if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5986 if test "$cross_compiling" = yes; then :
5987 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5988else
f11781c5 5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5990/* end confdefs.h. */
f11781c5
AK
5991$ac_includes_default
5992int
5993main ()
5994{
5995struct stat sbuf;
5996 /* Linux will dereference the symlink and fail, as required by POSIX.
5997 That is better in the sense that it means we will not
5998 have to compile and use the lstat wrapper. */
5999 return lstat ("conftest.sym/", &sbuf) == 0;
6000 ;
6001 return 0;
6002}
a946372e 6003_ACEOF
f11781c5
AK
6004if ac_fn_c_try_run "$LINENO"; then :
6005 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 6006else
f11781c5 6007 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6008fi
f11781c5
AK
6009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6010 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6011fi
a946372e 6012
a946372e 6013else
f11781c5
AK
6014 # If the `ln -s' command failed, then we probably don't even
6015 # have an lstat function.
6016 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6017fi
f11781c5 6018rm -f conftest.sym conftest.file
a946372e 6019
f11781c5
AK
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6022$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 6023
f11781c5 6024test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 6025
f11781c5
AK
6026cat >>confdefs.h <<_ACEOF
6027#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6028_ACEOF
a946372e 6029
a946372e 6030
f11781c5
AK
6031if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6032 case " $LIBOBJS " in
6033 *" lstat.$ac_objext "* ) ;;
6034 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6035 ;;
6036esac
a946372e 6037
f11781c5 6038fi
a946372e 6039
f11781c5
AK
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6041$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6042if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
a946372e 6044else
f11781c5
AK
6045 if test "$cross_compiling" = yes; then :
6046 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6047else
f11781c5
AK
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h. */
6050$ac_includes_default
6051int
6052main ()
6053{
6054struct stat sbuf;
6055 return lstat ("", &sbuf) == 0;
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060if ac_fn_c_try_run "$LINENO"; then :
6061 ac_cv_func_lstat_empty_string_bug=no
6062else
6063 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6064fi
f11781c5
AK
6065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6066 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6067fi
6068
f11781c5
AK
6069fi
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6071$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6072if test $ac_cv_func_lstat_empty_string_bug = yes; then
6073 case " $LIBOBJS " in
6074 *" lstat.$ac_objext "* ) ;;
6075 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6076 ;;
6077esac
a946372e
AK
6078
6079
f11781c5
AK
6080cat >>confdefs.h <<_ACEOF
6081#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6082_ACEOF
a946372e 6083
a946372e 6084fi
a946372e 6085
f11781c5
AK
6086for ac_header in stdlib.h
6087do :
6088 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6089if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6090 cat >>confdefs.h <<_ACEOF
6091#define HAVE_STDLIB_H 1
6092_ACEOF
6093
a946372e
AK
6094fi
6095
f11781c5 6096done
a946372e 6097
f11781c5
AK
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6099$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6100if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6102else
6103 if test "$cross_compiling" = yes; then :
6104 ac_cv_func_malloc_0_nonnull=no
6105else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h. */
6108#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6109# include <stdlib.h>
6110#else
6111char *malloc ();
6112#endif
a946372e 6113
f11781c5
AK
6114int
6115main ()
6116{
6117return ! malloc (0);
6118 ;
6119 return 0;
6120}
6121_ACEOF
6122if ac_fn_c_try_run "$LINENO"; then :
6123 ac_cv_func_malloc_0_nonnull=yes
a946372e 6124else
f11781c5 6125 ac_cv_func_malloc_0_nonnull=no
a946372e 6126fi
f11781c5
AK
6127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6128 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6129fi
f11781c5 6130
a946372e 6131fi
f11781c5
AK
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6133$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6134if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6135
f11781c5 6136$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6137
f11781c5
AK
6138else
6139 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6140
f11781c5
AK
6141 case " $LIBOBJS " in
6142 *" malloc.$ac_objext "* ) ;;
6143 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6144 ;;
6145esac
6146
6147
6148$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6149
a946372e 6150fi
a946372e 6151
a946372e 6152
f11781c5
AK
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6154$as_echo_n "checking for working memcmp... " >&6; }
6155if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6156 $as_echo_n "(cached) " >&6
a946372e 6157else
f11781c5
AK
6158 if test "$cross_compiling" = yes; then :
6159 ac_cv_func_memcmp_working=no
6160else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6162/* end confdefs.h. */
6163$ac_includes_default
f11781c5
AK
6164int
6165main ()
6166{
a946372e 6167
f11781c5
AK
6168 /* Some versions of memcmp are not 8-bit clean. */
6169 char c0 = '\100', c1 = '\200', c2 = '\201';
6170 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6171 return 1;
a946372e 6172
f11781c5
AK
6173 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6174 or more and with at least one buffer not starting on a 4-byte boundary.
6175 William Lewis provided this test program. */
6176 {
6177 char foo[21];
6178 char bar[21];
6179 int i;
6180 for (i = 0; i < 4; i++)
6181 {
6182 char *a = foo + i;
6183 char *b = bar + i;
6184 strcpy (a, "--------01111111");
6185 strcpy (b, "--------10000000");
6186 if (memcmp (a, b, 16) >= 0)
6187 return 1;
6188 }
6189 return 0;
6190 }
a946372e 6191
f11781c5
AK
6192 ;
6193 return 0;
6194}
a946372e 6195_ACEOF
f11781c5
AK
6196if ac_fn_c_try_run "$LINENO"; then :
6197 ac_cv_func_memcmp_working=yes
a946372e 6198else
f11781c5
AK
6199 ac_cv_func_memcmp_working=no
6200fi
6201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6202 conftest.$ac_objext conftest.beam conftest.$ac_ext
6203fi
a946372e 6204
a946372e 6205fi
f11781c5
AK
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6207$as_echo "$ac_cv_func_memcmp_working" >&6; }
6208test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6209 *" memcmp.$ac_objext "* ) ;;
6210 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6211 ;;
6212esac
a946372e 6213
a946372e 6214
a946372e 6215
a946372e 6216
f11781c5
AK
6217
6218 for ac_header in $ac_header_list
6219do :
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6222"
6223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6224 cat >>confdefs.h <<_ACEOF
6225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226_ACEOF
6227
a946372e
AK
6228fi
6229
6230done
6231
a946372e 6232
f11781c5
AK
6233
6234
6235
6236
6237
6238
6239for ac_func in getpagesize
6240do :
6241 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6242if test "x$ac_cv_func_getpagesize" = x""yes; then :
6243 cat >>confdefs.h <<_ACEOF
6244#define HAVE_GETPAGESIZE 1
6245_ACEOF
6246
a946372e 6247fi
f11781c5
AK
6248done
6249
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6251$as_echo_n "checking for working mmap... " >&6; }
6252if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
a946372e 6254else
f11781c5
AK
6255 if test "$cross_compiling" = yes; then :
6256 ac_cv_func_mmap_fixed_mapped=no
6257else
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6259/* end confdefs.h. */
6260$ac_includes_default
f11781c5
AK
6261/* malloc might have been renamed as rpl_malloc. */
6262#undef malloc
6263
6264/* Thanks to Mike Haertel and Jim Avera for this test.
6265 Here is a matrix of mmap possibilities:
6266 mmap private not fixed
6267 mmap private fixed at somewhere currently unmapped
6268 mmap private fixed at somewhere already mapped
6269 mmap shared not fixed
6270 mmap shared fixed at somewhere currently unmapped
6271 mmap shared fixed at somewhere already mapped
6272 For private mappings, we should verify that changes cannot be read()
6273 back from the file, nor mmap's back from the file at a different
6274 address. (There have been systems where private was not correctly
6275 implemented like the infamous i386 svr4.0, and systems where the
6276 VM page cache was not coherent with the file system buffer cache
6277 like early versions of FreeBSD and possibly contemporary NetBSD.)
6278 For shared mappings, we should conversely verify that changes get
6279 propagated back to all the places they're supposed to be.
6280
6281 Grep wants private fixed already mapped.
6282 The main things grep needs to know about mmap are:
6283 * does it exist and is it safe to write into the mmap'd area
6284 * how to use it (BSD variants) */
6285
6286#include <fcntl.h>
6287#include <sys/mman.h>
6288
6289#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6290char *malloc ();
6291#endif
6292
6293/* This mess was copied from the GNU getpagesize.h. */
6294#ifndef HAVE_GETPAGESIZE
6295# ifdef _SC_PAGESIZE
6296# define getpagesize() sysconf(_SC_PAGESIZE)
6297# else /* no _SC_PAGESIZE */
6298# ifdef HAVE_SYS_PARAM_H
6299# include <sys/param.h>
6300# ifdef EXEC_PAGESIZE
6301# define getpagesize() EXEC_PAGESIZE
6302# else /* no EXEC_PAGESIZE */
6303# ifdef NBPG
6304# define getpagesize() NBPG * CLSIZE
6305# ifndef CLSIZE
6306# define CLSIZE 1
6307# endif /* no CLSIZE */
6308# else /* no NBPG */
6309# ifdef NBPC
6310# define getpagesize() NBPC
6311# else /* no NBPC */
6312# ifdef PAGESIZE
6313# define getpagesize() PAGESIZE
6314# endif /* PAGESIZE */
6315# endif /* no NBPC */
6316# endif /* no NBPG */
6317# endif /* no EXEC_PAGESIZE */
6318# else /* no HAVE_SYS_PARAM_H */
6319# define getpagesize() 8192 /* punt totally */
6320# endif /* no HAVE_SYS_PARAM_H */
6321# endif /* no _SC_PAGESIZE */
6322
6323#endif /* no HAVE_GETPAGESIZE */
6324
6325int
6326main ()
6327{
6328 char *data, *data2, *data3;
6329 const char *cdata2;
6330 int i, pagesize;
6331 int fd, fd2;
6332
6333 pagesize = getpagesize ();
6334
6335 /* First, make a file with some known garbage in it. */
6336 data = (char *) malloc (pagesize);
6337 if (!data)
6338 return 1;
6339 for (i = 0; i < pagesize; ++i)
6340 *(data + i) = rand ();
6341 umask (0);
6342 fd = creat ("conftest.mmap", 0600);
6343 if (fd < 0)
6344 return 2;
6345 if (write (fd, data, pagesize) != pagesize)
6346 return 3;
6347 close (fd);
6348
6349 /* Next, check that the tail of a page is zero-filled. File must have
6350 non-zero length, otherwise we risk SIGBUS for entire page. */
6351 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6352 if (fd2 < 0)
6353 return 4;
6354 cdata2 = "";
6355 if (write (fd2, cdata2, 1) != 1)
6356 return 5;
6357 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6358 if (data2 == MAP_FAILED)
6359 return 6;
6360 for (i = 0; i < pagesize; ++i)
6361 if (*(data2 + i))
6362 return 7;
6363 close (fd2);
6364 if (munmap (data2, pagesize))
6365 return 8;
6366
6367 /* Next, try to mmap the file at a fixed address which already has
6368 something else allocated at it. If we can, also make sure that
6369 we see the same garbage. */
6370 fd = open ("conftest.mmap", O_RDWR);
6371 if (fd < 0)
6372 return 9;
6373 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6374 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6375 return 10;
6376 for (i = 0; i < pagesize; ++i)
6377 if (*(data + i) != *(data2 + i))
6378 return 11;
6379
6380 /* Finally, make sure that changes to the mapped area do not
6381 percolate back to the file as seen by read(). (This is a bug on
6382 some variants of i386 svr4.0.) */
6383 for (i = 0; i < pagesize; ++i)
6384 *(data2 + i) = *(data2 + i) + 1;
6385 data3 = (char *) malloc (pagesize);
6386 if (!data3)
6387 return 12;
6388 if (read (fd, data3, pagesize) != pagesize)
6389 return 13;
6390 for (i = 0; i < pagesize; ++i)
6391 if (*(data + i) != *(data3 + i))
6392 return 14;
6393 close (fd);
6394 return 0;
6395}
a946372e 6396_ACEOF
f11781c5
AK
6397if ac_fn_c_try_run "$LINENO"; then :
6398 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6399else
f11781c5
AK
6400 ac_cv_func_mmap_fixed_mapped=no
6401fi
6402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6403 conftest.$ac_objext conftest.beam conftest.$ac_ext
6404fi
a946372e 6405
a946372e 6406fi
f11781c5
AK
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6408$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6409if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6410
f11781c5 6411$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6412
f11781c5
AK
6413fi
6414rm -f conftest.mmap conftest.txt
6415
6416for ac_header in stdlib.h
6417do :
6418 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6419if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421#define HAVE_STDLIB_H 1
a946372e 6422_ACEOF
f11781c5
AK
6423
6424fi
6425
6426done
6427
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6429$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6430if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6432else
6433 if test "$cross_compiling" = yes; then :
6434 ac_cv_func_realloc_0_nonnull=no
6435else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6437/* end confdefs.h. */
f11781c5
AK
6438#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6439# include <stdlib.h>
6440#else
6441char *realloc ();
6442#endif
6443
6444int
6445main ()
6446{
6447return ! realloc (0, 0);
6448 ;
6449 return 0;
6450}
a946372e 6451_ACEOF
f11781c5
AK
6452if ac_fn_c_try_run "$LINENO"; then :
6453 ac_cv_func_realloc_0_nonnull=yes
a946372e 6454else
f11781c5
AK
6455 ac_cv_func_realloc_0_nonnull=no
6456fi
6457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6458 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6459fi
6460
f11781c5
AK
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6463$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6464if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6465
f11781c5 6466$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6467
a946372e 6468else
f11781c5
AK
6469 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6470
6471 case " $LIBOBJS " in
6472 *" realloc.$ac_objext "* ) ;;
6473 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6474 ;;
6475esac
a946372e 6476
a946372e 6477
f11781c5
AK
6478$as_echo "#define realloc rpl_realloc" >>confdefs.h
6479
a946372e
AK
6480fi
6481
a946372e 6482
f11781c5
AK
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6484$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6485if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
a946372e 6487else
f11781c5
AK
6488 if test "$cross_compiling" = yes; then :
6489 ac_cv_func_stat_empty_string_bug=yes
6490else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h. */
6493$ac_includes_default
6494int
6495main ()
6496{
6497struct stat sbuf;
6498 return stat ("", &sbuf) == 0;
6499 ;
6500 return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_run "$LINENO"; then :
6504 ac_cv_func_stat_empty_string_bug=no
6505else
6506 ac_cv_func_stat_empty_string_bug=yes
a946372e 6507fi
f11781c5
AK
6508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6509 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6510fi
6511
8c4e8a18 6512fi
f11781c5
AK
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6514$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6515if test $ac_cv_func_stat_empty_string_bug = yes; then
6516 case " $LIBOBJS " in
6517 *" stat.$ac_objext "* ) ;;
6518 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6519 ;;
6520esac
8c4e8a18
FDN
6521
6522
6523cat >>confdefs.h <<_ACEOF
f11781c5 6524#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6525_ACEOF
6526
6527fi
6528
f11781c5
AK
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6530$as_echo_n "checking for working strtod... " >&6; }
6531if test "${ac_cv_func_strtod+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
66fd4529 6533else
f11781c5
AK
6534 if test "$cross_compiling" = yes; then :
6535 ac_cv_func_strtod=no
6536else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
66fd4529 6539
f11781c5
AK
6540$ac_includes_default
6541#ifndef strtod
6542double strtod ();
6543#endif
6544int
6545main()
6546{
6547 {
6548 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6549 char *string = " +69";
6550 char *term;
6551 double value;
6552 value = strtod (string, &term);
6553 if (value != 69 || term != (string + 4))
6554 return 1;
6555 }
66fd4529 6556
f11781c5
AK
6557 {
6558 /* Under Solaris 2.4, strtod returns the wrong value for the
6559 terminating character under some conditions. */
6560 char *string = "NaN";
6561 char *term;
6562 strtod (string, &term);
6563 if (term != string && *(term - 1) == 0)
6564 return 1;
6565 }
6566 return 0;
6567}
66fd4529 6568
f11781c5
AK
6569_ACEOF
6570if ac_fn_c_try_run "$LINENO"; then :
6571 ac_cv_func_strtod=yes
66fd4529 6572else
f11781c5
AK
6573 ac_cv_func_strtod=no
6574fi
6575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6576 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6577fi
6578
f11781c5
AK
6579fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6581$as_echo "$ac_cv_func_strtod" >&6; }
6582if test $ac_cv_func_strtod = no; then
6583 case " $LIBOBJS " in
6584 *" strtod.$ac_objext "* ) ;;
6585 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6586 ;;
6587esac
71082be4 6588
f11781c5
AK
6589ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6590if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6591
66fd4529 6592fi
a946372e 6593
f11781c5
AK
6594if test $ac_cv_func_pow = no; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6596$as_echo_n "checking for pow in -lm... " >&6; }
6597if test "${ac_cv_lib_m_pow+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599else
6600 ac_check_lib_save_LIBS=$LIBS
6601LIBS="-lm $LIBS"
6602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h. */
90c80887 6604
f11781c5
AK
6605/* Override any GCC internal prototype to avoid an error.
6606 Use char because int might match the return type of a GCC
6607 builtin and then its argument prototype would still apply. */
6608#ifdef __cplusplus
6609extern "C"
6610#endif
6611char pow ();
6612int
6613main ()
6614{
6615return pow ();
6616 ;
6617 return 0;
6618}
6619_ACEOF
6620if ac_fn_c_try_link "$LINENO"; then :
6621 ac_cv_lib_m_pow=yes
90c80887 6622else
f11781c5 6623 ac_cv_lib_m_pow=no
90c80887 6624fi
f11781c5
AK
6625rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_check_lib_save_LIBS
90c80887 6628fi
f11781c5
AK
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6630$as_echo "$ac_cv_lib_m_pow" >&6; }
6631if test "x$ac_cv_lib_m_pow" = x""yes; then :
6632 POW_LIB=-lm
90c80887 6633else
f11781c5
AK
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6635$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6636fi
f11781c5 6637
90c80887
AK
6638fi
6639
f11781c5
AK
6640fi
6641
6642for ac_func in vprintf
6643do :
6644 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6645if test "x$ac_cv_func_vprintf" = x""yes; then :
6646 cat >>confdefs.h <<_ACEOF
6647#define HAVE_VPRINTF 1
6648_ACEOF
90c80887 6649
f11781c5
AK
6650ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6651if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6652
f11781c5 6653$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6654
90c80887 6655fi
90c80887 6656
f11781c5
AK
6657fi
6658done
90c80887 6659
90c80887 6660
90c80887 6661
f11781c5
AK
6662################################################################################
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6664$as_echo_n "checking whether to use static linking... " >&6; }
6665# Check whether --enable-static_link was given.
6666if test "${enable_static_link+set}" = set; then :
6667 enableval=$enable_static_link; STATIC_LINK=$enableval
6668else
6669 STATIC_LINK=no
6670fi
90c80887 6671
f11781c5
AK
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6673$as_echo "$STATIC_LINK" >&6; }
90c80887 6674
f11781c5 6675################################################################################
90c80887 6676
90c80887 6677
f11781c5
AK
6678################################################################################
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6680$as_echo_n "checking file owner... " >&6; }
90c80887 6681
f11781c5
AK
6682# Check whether --with-user was given.
6683if test "${with_user+set}" = set; then :
6684 withval=$with_user; OWNER=$withval
6685fi
90c80887 6686
f11781c5
AK
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6688$as_echo "$OWNER" >&6; }
90c80887 6689
f11781c5
AK
6690if test x$OWNER != x; then
6691 INSTALL="$INSTALL -o $OWNER"
90c80887 6692fi
a946372e 6693
f11781c5
AK
6694################################################################################
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6696$as_echo_n "checking group owner... " >&6; }
a946372e 6697
f11781c5
AK
6698# Check whether --with-group was given.
6699if test "${with_group+set}" = set; then :
6700 withval=$with_group; GROUP=$withval
a946372e 6701fi
f11781c5
AK
6702
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6704$as_echo "$GROUP" >&6; }
6705
6706if test x$GROUP != x; then
6707 INSTALL="$INSTALL -g $GROUP"
a946372e 6708fi
f11781c5
AK
6709
6710################################################################################
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6712$as_echo_n "checking device node uid... " >&6; }
6713
6714
6715# Check whether --with-device-uid was given.
6716if test "${with_device_uid+set}" = set; then :
6717 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6718else
f11781c5 6719 DM_DEVICE_UID=0
a946372e
AK
6720fi
6721
f11781c5
AK
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6723$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6724
f11781c5
AK
6725################################################################################
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6727$as_echo_n "checking device node gid... " >&6; }
a946372e 6728
a946372e 6729
f11781c5
AK
6730# Check whether --with-device-gid was given.
6731if test "${with_device_gid+set}" = set; then :
6732 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6733else
f11781c5 6734 DM_DEVICE_GID=0
a946372e 6735fi
a946372e 6736
f11781c5
AK
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6738$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6739
f11781c5
AK
6740################################################################################
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6742$as_echo_n "checking device node mode... " >&6; }
90c80887 6743
90c80887 6744
f11781c5
AK
6745# Check whether --with-device-mode was given.
6746if test "${with_device_mode+set}" = set; then :
6747 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6748else
6749 DM_DEVICE_MODE=0600
6750fi
90c80887 6751
f11781c5
AK
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6753$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6754
d0df875d
ZK
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6756$as_echo_n "checking when to create device nodes... " >&6; }
6757
6758# Check whether --with-device-nodes-on was given.
6759if test "${with_device_nodes_on+set}" = set; then :
6760 withval=$with_device_nodes_on; ADD_NODE=$withval
6761else
6762 ADD_NODE=resume
6763fi
6764
6765case "$ADD_NODE" in
6766 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6767 create) add_on=DM_ADD_NODE_ON_CREATE;;
6768 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6769esac
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6771$as_echo "on $ADD_NODE" >&6; }
6772
6773cat >>confdefs.h <<_ACEOF
6774#define DEFAULT_DM_ADD_NODE $add_on
6775_ACEOF
6776
6777
c64d7cd3
PR
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6779$as_echo_n "checking default name mangling... " >&6; }
6780
6781# Check whether --with-default-name-mangling was given.
6782if test "${with_default_name_mangling+set}" = set; then :
6783 withval=$with_default_name_mangling; MANGLING=$withval
6784else
6785 MANGLING=auto
6786fi
6787
6788case "$MANGLING" in
6789 auto) mangling=DM_STRING_MANGLING_AUTO;;
6790 disabled) mangling=DM_STRING_MANGLING_NONE;;
6791 hex) mangling=DM_STRING_MANGLING_HEX;;
6792 *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6793esac
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6795$as_echo "$MANGLING" >&6; }
6796
6797cat >>confdefs.h <<_ACEOF
6798#define DEFAULT_DM_NAME_MANGLING $mangling
6799_ACEOF
6800
6801
f11781c5
AK
6802################################################################################
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6804$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6805# Check whether --enable-lvm1_fallback was given.
6806if test "${enable_lvm1_fallback+set}" = set; then :
6807 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6808else
6809 LVM1_FALLBACK=no
6810fi
90c80887 6811
f11781c5
AK
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6813$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6814
f11781c5 6815if test x$LVM1_FALLBACK = xyes; then
90c80887 6816
f11781c5 6817$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6818
f11781c5 6819fi
90c80887 6820
f11781c5
AK
6821################################################################################
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6823$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6824
6825# Check whether --with-lvm1 was given.
6826if test "${with_lvm1+set}" = set; then :
6827 withval=$with_lvm1; LVM1=$withval
a946372e 6828else
f11781c5 6829 LVM1=internal
a946372e 6830fi
f11781c5
AK
6831
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6833$as_echo "$LVM1" >&6; }
6834
6835if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6836 then as_fn_error $? "--with-lvm1 parameter invalid
6837" "$LINENO" 5
6838fi;
6839
6840if test x$LVM1 = xinternal; then
6841
6842$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6843
a946372e
AK
6844fi
6845
6846################################################################################
f11781c5
AK
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6848$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6849
6850# Check whether --with-pool was given.
6851if test "${with_pool+set}" = set; then :
6852 withval=$with_pool; POOL=$withval
a946372e 6853else
f11781c5 6854 POOL=internal
a946372e
AK
6855fi
6856
f11781c5
AK
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6858$as_echo "$POOL" >&6; }
6859
6860if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6861 then as_fn_error $? "--with-pool parameter invalid
6862" "$LINENO" 5
6863fi;
6864
6865if test x$POOL = xinternal; then
6866
6867$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6868
a946372e
AK
6869fi
6870
6871################################################################################
f11781c5
AK
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6873$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6874
f11781c5
AK
6875# Check whether --with-cluster was given.
6876if test "${with_cluster+set}" = set; then :
6877 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6878fi
6879
f11781c5
AK
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6881$as_echo "$CLUSTER" >&6; }
a946372e 6882
f11781c5
AK
6883if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6884 then as_fn_error $? "--with-cluster parameter invalid
6885" "$LINENO" 5
6886fi;
fddafd51 6887
f11781c5 6888if test x$CLUSTER = xinternal; then
5556819a 6889
f11781c5 6890$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6891
fddafd51 6892fi
f11781c5
AK
6893
6894################################################################################
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6896$as_echo_n "checking whether to include snapshots... " >&6; }
6897
6898# Check whether --with-snapshots was given.
6899if test "${with_snapshots+set}" = set; then :
6900 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6901else
f11781c5 6902 SNAPSHOTS=internal
fddafd51
ZK
6903fi
6904
f11781c5
AK
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6906$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6907
f11781c5
AK
6908if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6909 then as_fn_error $? "--with-snapshots parameter invalid
6910" "$LINENO" 5
6911fi;
fddafd51 6912
f11781c5
AK
6913if test x$SNAPSHOTS = xinternal; then
6914
6915$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6916
6917fi
6918
6919################################################################################
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6921$as_echo_n "checking whether to include mirrors... " >&6; }
6922
6923# Check whether --with-mirrors was given.
6924if test "${with_mirrors+set}" = set; then :
6925 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6926else
f11781c5 6927 MIRRORS=internal
fddafd51
ZK
6928fi
6929
f11781c5
AK
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6931$as_echo "$MIRRORS" >&6; }
fddafd51 6932
f11781c5
AK
6933if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6934 then as_fn_error $? "--with-mirrors parameter invalid
6935" "$LINENO" 5
6936fi;
6937
6938if test x$MIRRORS = xinternal; then
6939
6940$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6941
6942fi
6943
cac52ca4
JEB
6944################################################################################
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6946$as_echo_n "checking whether to include raid... " >&6; }
6947
6948# Check whether --with-raid was given.
6949if test "${with_raid+set}" = set; then :
6950 withval=$with_raid; RAID=$withval
6951else
6952 RAID=internal
6953fi
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6956$as_echo "$RAID" >&6; }
6957
6958if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6959 then as_fn_error $? "--with-raid parameter invalid
6960" "$LINENO" 5
6961fi;
6962
6963if test x$RAID = xinternal; then
6964
6965$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6966
6967fi
6968
f11781c5
AK
6969################################################################################
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6971$as_echo_n "checking whether to include replicators... " >&6; }
6972
6973# Check whether --with-replicators was given.
6974if test "${with_replicators+set}" = set; then :
6975 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6976else
f11781c5
AK
6977 REPLICATORS=none
6978fi
fd4728e1 6979
f11781c5
AK
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6981$as_echo "$REPLICATORS" >&6; }
6982
6983case "$REPLICATORS" in
6984 none|shared) ;;
6985 internal)
6986$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6987 ;;
6988 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6989esac
f11781c5 6990
3ba4a195
ZK
6991################################################################################
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6993$as_echo_n "checking whether to include thin provisioning... " >&6; }
6994
6995# Check whether --with-thin was given.
6996if test "${with_thin+set}" = set; then :
6997 withval=$with_thin; THIN=$withval
6998else
6999 THIN=none
7000fi
7001
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
7003$as_echo "$THIN" >&6; }
7004
7005case "$THIN" in
7006 none|shared) ;;
7007 internal)
7008$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7009 ;;
7010 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7011esac
7012
f61cacad
ZK
7013case "$THIN" in
7014 internal|shared)
7015
7016# Check whether --with-thin-check was given.
7017if test "${with_thin_check+set}" = set; then :
7018 withval=$with_thin_check; THIN_CHECK_CMD=$withval
7019else
7020 THIN_CHECK_CMD="autodetect"
7021fi
7022
7023 # Empty means a config way to ignore thin checking
7024 if test "$THIN_CHECK_CMD" = "autodetect"; then
7025 # Extract the first word of "thin_check", so it can be a program name with args.
7026set dummy thin_check; ac_word=$2
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028$as_echo_n "checking for $ac_word... " >&6; }
7029if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7031else
7032 case $THIN_CHECK_CMD in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048done
7049 done
7050IFS=$as_save_IFS
7051
7052 ;;
7053esac
7054fi
7055THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
7056if test -n "$THIN_CHECK_CMD"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
7058$as_echo "$THIN_CHECK_CMD" >&6; }
7059else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064
7065 test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5
7066 fi
909887be
ZK
7067 ;;
7068esac
f61cacad
ZK
7069
7070
7071cat >>confdefs.h <<_ACEOF
7072#define THIN_CHECK_CMD "$THIN_CHECK_CMD"
7073_ACEOF
7074
f61cacad
ZK
7075
7076
f11781c5
AK
7077################################################################################
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7079$as_echo_n "checking whether to enable readline... " >&6; }
7080# Check whether --enable-readline was given.
7081if test "${enable_readline+set}" = set; then :
7082 enableval=$enable_readline; READLINE=$enableval
fd4728e1 7083else
f11781c5 7084 READLINE=maybe
fd4728e1
ZK
7085fi
7086
f11781c5
AK
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7088$as_echo "$READLINE" >&6; }
fd4728e1 7089
f11781c5
AK
7090################################################################################
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7092$as_echo_n "checking whether to enable realtime support... " >&6; }
7093# Check whether --enable-realtime was given.
7094if test "${enable_realtime+set}" = set; then :
7095 enableval=$enable_realtime; REALTIME=$enableval
5556819a 7096fi
d0191583 7097
f11781c5
AK
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7099$as_echo "$REALTIME" >&6; }
7100
54b362f9 7101################################################################################
f11781c5
AK
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7103$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7104# Check whether --enable-ocf was given.
7105if test "${enable_ocf+set}" = set; then :
7106 enableval=$enable_ocf; OCF=$enableval
54b362f9 7107else
f11781c5 7108 OCF=no
54b362f9
AK
7109fi
7110
f11781c5
AK
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7112$as_echo "$OCF" >&6; }
54b362f9 7113
606d0858
AK
7114# Check whether --with-ocfdir was given.
7115if test "${with_ocfdir+set}" = set; then :
7116 withval=$with_ocfdir; OCFDIR=$withval
7117else
7118 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7119fi
7120
7121
f11781c5
AK
7122################################################################################
7123pkg_config_init() {
7124
7125
7126
7127
7128
7129
7130if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7133set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7135$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7136if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7137 $as_echo_n "(cached) " >&6
7138else
f11781c5 7139 case $PKG_CONFIG in
54b362f9 7140 [\\/]* | ?:[\\/]*)
f11781c5 7141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7142 ;;
7143 *)
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
f11781c5 7149 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7153 break 2
7154 fi
7155done
f11781c5 7156 done
54b362f9
AK
7157IFS=$as_save_IFS
7158
7159 ;;
7160esac
7161fi
f11781c5
AK
7162PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7163if test -n "$PKG_CONFIG"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7165$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7166else
f11781c5 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7168$as_echo "no" >&6; }
7169fi
7170
7171
f11781c5
AK
7172fi
7173if test -z "$ac_cv_path_PKG_CONFIG"; then
7174 ac_pt_PKG_CONFIG=$PKG_CONFIG
7175 # Extract the first word of "pkg-config", so it can be a program name with args.
7176set dummy pkg-config; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7178$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7179if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7180 $as_echo_n "(cached) " >&6
7181else
f11781c5 7182 case $ac_pt_PKG_CONFIG in
54b362f9 7183 [\\/]* | ?:[\\/]*)
f11781c5 7184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7185 ;;
7186 *)
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
f11781c5 7192 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7196 break 2
7197 fi
7198done
f11781c5 7199 done
54b362f9
AK
7200IFS=$as_save_IFS
7201
7202 ;;
7203esac
7204fi
f11781c5
AK
7205ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7206if test -n "$ac_pt_PKG_CONFIG"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7208$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7209else
f11781c5 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7211$as_echo "no" >&6; }
7212fi
7213
f11781c5
AK
7214 if test "x$ac_pt_PKG_CONFIG" = x; then
7215 PKG_CONFIG=""
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218yes:)
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221ac_tool_warned=yes ;;
7222esac
7223 PKG_CONFIG=$ac_pt_PKG_CONFIG
7224 fi
d1e8046f 7225else
f11781c5 7226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7227fi
7228
f11781c5
AK
7229fi
7230if test -n "$PKG_CONFIG"; then
7231 _pkg_min_version=0.9.0
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7233$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236$as_echo "yes" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240 PKG_CONFIG=""
7241 fi
7242fi
d1e8046f 7243
f11781c5
AK
7244pkg_failed=no
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7246$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7247
f11781c5
AK
7248if test -n "$PKGCONFIGINIT_CFLAGS"; then
7249 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7250 elif test -n "$PKG_CONFIG"; then
7251 if test -n "$PKG_CONFIG" && \
7252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7253 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7258else
f11781c5
AK
7259 pkg_failed=yes
7260fi
7261 else
7262 pkg_failed=untried
7263fi
7264if test -n "$PKGCONFIGINIT_LIBS"; then
7265 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7266 elif test -n "$PKG_CONFIG"; then
7267 if test -n "$PKG_CONFIG" && \
7268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7269 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7270 ac_status=$?
f11781c5
AK
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7274else
f11781c5
AK
7275 pkg_failed=yes
7276fi
7277 else
7278 pkg_failed=untried
d1e8046f
AK
7279fi
7280
d1e8046f 7281
f11781c5
AK
7282
7283if test $pkg_failed = yes; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286
7287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7288 _pkg_short_errors_supported=yes
7289else
7290 _pkg_short_errors_supported=no
7291fi
7292 if test $_pkg_short_errors_supported = yes; then
7293 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7294 else
7295 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7296 fi
7297 # Put the nasty error message in config.log where it belongs
7298 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7301$as_echo "pkg-config initialized" >&6; }
7302elif test $pkg_failed = untried; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7306$as_echo "pkg-config initialized" >&6; }
d1e8046f 7307else
f11781c5
AK
7308 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7309 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7311$as_echo "yes" >&6; }
d1e8046f 7312
d1e8046f 7313fi
f11781c5
AK
7314 PKGCONFIG_INIT=1
7315}
d1e8046f 7316
f11781c5
AK
7317################################################################################
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7319$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7320
f11781c5
AK
7321# Check whether --with-clvmd was given.
7322if test "${with_clvmd+set}" = set; then :
7323 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7324else
f11781c5 7325 CLVMD=none
d1e8046f 7326fi
d1e8046f 7327
f11781c5
AK
7328if test x$CLVMD = xyes; then
7329 CLVMD=all
d1e8046f 7330fi
f11781c5
AK
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7332$as_echo "$CLVMD" >&6; }
d1e8046f 7333
f11781c5
AK
7334if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7335 CLUSTER=internal
d1e8046f
AK
7336fi
7337
f11781c5
AK
7338if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7339 pkg_config_init
7340fi
d1e8046f 7341
f11781c5
AK
7342CLVMD_CMANAGERS=""
7343CLVMD_NEEDS_QDISKD=no
d1e8046f 7344
f11781c5 7345if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7346 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7347fi
f11781c5
AK
7348if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7349 BUILDCMAN=yes
7350 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7351 CLVMD_NEEDS_QDISKD=yes
7352fi
7353if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7354 BUILDCOROSYNC=yes
7355 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7356fi
7357if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7358 BUILDOPENAIS=yes
7359 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7360fi
7361if test x$CLVMD_NEEDS_QDISKD != xno; then
7362 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7363fi
7364
f11781c5
AK
7365soft_bailout() {
7366 NOTFOUND=1
7367}
ad6254c5 7368
f11781c5
AK
7369hard_bailout() {
7370 as_fn_error $? "bailing out" "$LINENO" 5
7371}
ad6254c5 7372
f11781c5
AK
7373if test x$CLVMD = xall; then
7374 bailout=soft_bailout
f11781c5
AK
7375 BUILDCMAN=yes
7376 BUILDCOROSYNC=yes
7377 BUILDOPENAIS=yes
a5f46f6a 7378else
f11781c5 7379 bailout=hard_bailout
a5f46f6a
AK
7380fi
7381
f11781c5
AK
7382check_lib_no_libs() {
7383 lib_no_libs_arg1=$1
7384 shift
7385 lib_no_libs_arg2=$1
7386 shift
7387 lib_no_libs_args=$@
7388 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7390$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7391if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7392 $as_echo_n "(cached) " >&6
7393else
7394 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7395LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7397/* end confdefs.h. */
7398
7399/* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7402#ifdef __cplusplus
7403extern "C"
7404#endif
f11781c5 7405char $lib_no_libs_arg2 ();
90c80887
AK
7406int
7407main ()
7408{
f11781c5 7409return $lib_no_libs_arg2 ();
90c80887
AK
7410 ;
7411 return 0;
7412}
7413_ACEOF
f11781c5
AK
7414if ac_fn_c_try_link "$LINENO"; then :
7415 eval "$as_ac_Lib=yes"
90c80887 7416else
f11781c5 7417 eval "$as_ac_Lib=no"
90c80887 7418fi
f11781c5
AK
7419rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7421LIBS=$ac_check_lib_save_LIBS
7422fi
f11781c5
AK
7423eval ac_res=\$$as_ac_Lib
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7425$as_echo "$ac_res" >&6; }
7426if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7427 cat >>confdefs.h <<_ACEOF
7428#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7429_ACEOF
7430
7431 LIBS="-l$lib_no_libs_arg1 $LIBS"
7432
90c80887 7433else
f11781c5 7434 $bailout
90c80887
AK
7435fi
7436
f11781c5
AK
7437 LIBS=$ac_check_lib_save_LIBS
7438}
90c80887 7439
f11781c5 7440if test x$BUILDCMAN = xyes; then
ad6254c5 7441
f11781c5
AK
7442pkg_failed=no
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7444$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7445
f11781c5
AK
7446if test -n "$CMAN_CFLAGS"; then
7447 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7448 elif test -n "$PKG_CONFIG"; then
7449 if test -n "$PKG_CONFIG" && \
7450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7451 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7452 ac_status=$?
7453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7454 test $ac_status = 0; }; then
7455 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7456else
7457 pkg_failed=yes
ad6254c5 7458fi
f11781c5
AK
7459 else
7460 pkg_failed=untried
ad6254c5 7461fi
f11781c5
AK
7462if test -n "$CMAN_LIBS"; then
7463 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7464 elif test -n "$PKG_CONFIG"; then
7465 if test -n "$PKG_CONFIG" && \
7466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7467 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7468 ac_status=$?
f11781c5
AK
7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470 test $ac_status = 0; }; then
7471 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7472else
f11781c5
AK
7473 pkg_failed=yes
7474fi
7475 else
7476 pkg_failed=untried
93bd259b
AK
7477fi
7478
f11781c5
AK
7479
7480
7481if test $pkg_failed = yes; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483$as_echo "no" >&6; }
7484
7485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7486 _pkg_short_errors_supported=yes
7487else
7488 _pkg_short_errors_supported=no
93bd259b 7489fi
f11781c5
AK
7490 if test $_pkg_short_errors_supported = yes; then
7491 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7492 else
7493 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7494 fi
7495 # Put the nasty error message in config.log where it belongs
7496 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7497
f11781c5
AK
7498 NOTFOUND=0
7499 for ac_header in libcman.h
7500do :
7501 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7502if test "x$ac_cv_header_libcman_h" = x""yes; then :
7503 cat >>confdefs.h <<_ACEOF
7504#define HAVE_LIBCMAN_H 1
93bd259b
AK
7505_ACEOF
7506
f11781c5
AK
7507else
7508 $bailout
93bd259b
AK
7509fi
7510
f11781c5 7511done
93bd259b 7512
f11781c5
AK
7513 check_lib_no_libs cman cman_init
7514 if test $NOTFOUND = 0; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7516$as_echo "no pkg for libcman, using -lcman" >&6; }
7517 CMAN_LIBS="-lcman"
7518 HAVE_CMAN=yes
7519 fi
7520elif test $pkg_failed = untried; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
7523 NOTFOUND=0
7524 for ac_header in libcman.h
7525do :
7526 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7527if test "x$ac_cv_header_libcman_h" = x""yes; then :
7528 cat >>confdefs.h <<_ACEOF
7529#define HAVE_LIBCMAN_H 1
93bd259b 7530_ACEOF
93bd259b 7531
93bd259b 7532else
f11781c5 7533 $bailout
93bd259b
AK
7534fi
7535
f11781c5
AK
7536done
7537
7538 check_lib_no_libs cman cman_init
7539 if test $NOTFOUND = 0; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7541$as_echo "no pkg for libcman, using -lcman" >&6; }
7542 CMAN_LIBS="-lcman"
7543 HAVE_CMAN=yes
7544 fi
7545else
7546 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7547 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7549$as_echo "yes" >&6; }
7550 HAVE_CMAN=yes
93bd259b 7551fi
f11781c5
AK
7552 CHECKCONFDB=yes
7553 CHECKDLM=yes
93bd259b
AK
7554fi
7555
f11781c5
AK
7556if test x$BUILDCOROSYNC = xyes || \
7557 test x$BUILDOPENAIS = xyes; then
93bd259b 7558
f11781c5
AK
7559pkg_failed=no
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7561$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7562
f11781c5
AK
7563if test -n "$COROSYNC_CFLAGS"; then
7564 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7565 elif test -n "$PKG_CONFIG"; then
7566 if test -n "$PKG_CONFIG" && \
7567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7568 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7569 ac_status=$?
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }; then
7572 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7573else
f11781c5
AK
7574 pkg_failed=yes
7575fi
7576 else
7577 pkg_failed=untried
7578fi
7579if test -n "$COROSYNC_LIBS"; then
7580 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7581 elif test -n "$PKG_CONFIG"; then
7582 if test -n "$PKG_CONFIG" && \
7583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7584 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7585 ac_status=$?
f11781c5
AK
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7589else
f11781c5 7590 pkg_failed=yes
ad6254c5 7591fi
f11781c5
AK
7592 else
7593 pkg_failed=untried
ad6254c5 7594fi
ad6254c5 7595
72b2cb61 7596
72b2cb61 7597
f11781c5
AK
7598if test $pkg_failed = yes; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
19a2c6e0 7601
f11781c5
AK
7602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7603 _pkg_short_errors_supported=yes
7604else
7605 _pkg_short_errors_supported=no
ad6254c5 7606fi
f11781c5
AK
7607 if test $_pkg_short_errors_supported = yes; then
7608 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7609 else
7610 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7611 fi
7612 # Put the nasty error message in config.log where it belongs
7613 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7614
f11781c5
AK
7615 $bailout
7616elif test $pkg_failed = untried; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619 $bailout
7620else
7621 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7622 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7624$as_echo "yes" >&6; }
7625 HAVE_COROSYNC=yes
7626fi
7627 CHECKCONFDB=yes
b6d7a484 7628 CHECKCMAP=yes
ad6254c5
AK
7629fi
7630
f11781c5 7631if test x$BUILDCOROSYNC = xyes; then
f30875db 7632
f11781c5
AK
7633pkg_failed=no
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7635$as_echo_n "checking for QUORUM... " >&6; }
7636
7637if test -n "$QUORUM_CFLAGS"; then
7638 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7639 elif test -n "$PKG_CONFIG"; then
7640 if test -n "$PKG_CONFIG" && \
7641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7642 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7643 ac_status=$?
f11781c5
AK
7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; }; then
7646 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7647else
f11781c5 7648 pkg_failed=yes
f30875db 7649fi
f11781c5
AK
7650 else
7651 pkg_failed=untried
f30875db 7652fi
f11781c5
AK
7653if test -n "$QUORUM_LIBS"; then
7654 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7655 elif test -n "$PKG_CONFIG"; then
7656 if test -n "$PKG_CONFIG" && \
7657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7658 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7659 ac_status=$?
7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; }; then
7662 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7663else
f11781c5 7664 pkg_failed=yes
f30875db 7665fi
f11781c5
AK
7666 else
7667 pkg_failed=untried
7668fi
7669
f30875db 7670
f11781c5
AK
7671
7672if test $pkg_failed = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
7675
7676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7677 _pkg_short_errors_supported=yes
7678else
7679 _pkg_short_errors_supported=no
f30875db 7680fi
f11781c5
AK
7681 if test $_pkg_short_errors_supported = yes; then
7682 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7683 else
7684 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7685 fi
7686 # Put the nasty error message in config.log where it belongs
7687 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7688
f11781c5
AK
7689 $bailout
7690elif test $pkg_failed = untried; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693 $bailout
7694else
7695 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7696 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7698$as_echo "yes" >&6; }
7699 HAVE_QUORUM=yes
7700fi
7701 CHECKCPG=yes
7702 CHECKDLM=yes
d0191583
JM
7703fi
7704
f11781c5 7705if test x$BUILDOPENAIS = xyes; then
d0191583 7706
f11781c5
AK
7707pkg_failed=no
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7709$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7710
f11781c5
AK
7711if test -n "$SALCK_CFLAGS"; then
7712 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7713 elif test -n "$PKG_CONFIG"; then
7714 if test -n "$PKG_CONFIG" && \
7715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7716 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; then
7720 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7721else
7722 pkg_failed=yes
7723fi
7724 else
7725 pkg_failed=untried
7726fi
7727if test -n "$SALCK_LIBS"; then
7728 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7729 elif test -n "$PKG_CONFIG"; then
7730 if test -n "$PKG_CONFIG" && \
7731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7732 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7733 ac_status=$?
f11781c5
AK
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; }; then
7736 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7737else
f11781c5 7738 pkg_failed=yes
8a2fc586 7739fi
f11781c5
AK
7740 else
7741 pkg_failed=untried
8a2fc586 7742fi
d0191583 7743
d0191583 7744
f8f6ec92 7745
f11781c5
AK
7746if test $pkg_failed = yes; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748$as_echo "no" >&6; }
8a2fc586 7749
f11781c5
AK
7750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7751 _pkg_short_errors_supported=yes
ad6254c5 7752else
f11781c5
AK
7753 _pkg_short_errors_supported=no
7754fi
7755 if test $_pkg_short_errors_supported = yes; then
7756 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7757 else
7758 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7759 fi
7760 # Put the nasty error message in config.log where it belongs
7761 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7762
f11781c5
AK
7763 $bailout
7764elif test $pkg_failed = untried; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767 $bailout
ad6254c5 7768else
f11781c5
AK
7769 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7770 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7772$as_echo "yes" >&6; }
7773 HAVE_SALCK=yes
ad6254c5 7774fi
f11781c5 7775 CHECKCPG=yes
ad6254c5 7776fi
ad6254c5 7777
72b2cb61 7778
f8f6ec92 7779
f11781c5 7780if test x$CHECKCONFDB = xyes; then
f8f6ec92 7781
f11781c5
AK
7782pkg_failed=no
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7784$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7785
f11781c5
AK
7786if test -n "$CONFDB_CFLAGS"; then
7787 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7788 elif test -n "$PKG_CONFIG"; then
7789 if test -n "$PKG_CONFIG" && \
7790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7791 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7792 ac_status=$?
f11781c5
AK
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7796else
f11781c5
AK
7797 pkg_failed=yes
7798fi
7799 else
7800 pkg_failed=untried
7801fi
7802if test -n "$CONFDB_LIBS"; then
7803 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7804 elif test -n "$PKG_CONFIG"; then
7805 if test -n "$PKG_CONFIG" && \
7806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7807 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7808 ac_status=$?
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; }; then
7811 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7812else
7813 pkg_failed=yes
7814fi
7815 else
7816 pkg_failed=untried
f8f6ec92
ZK
7817fi
7818
f8f6ec92 7819
66e941e8 7820
f11781c5
AK
7821if test $pkg_failed = yes; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824
7825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7826 _pkg_short_errors_supported=yes
f8f6ec92 7827else
f11781c5 7828 _pkg_short_errors_supported=no
66e941e8 7829fi
f11781c5
AK
7830 if test $_pkg_short_errors_supported = yes; then
7831 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7832 else
7833 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7834 fi
7835 # Put the nasty error message in config.log where it belongs
7836 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7837
f11781c5
AK
7838 HAVE_CONFDB=no
7839elif test $pkg_failed = untried; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
7842 HAVE_CONFDB=no
7843else
7844 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7845 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847$as_echo "yes" >&6; }
7848 HAVE_CONFDB=yes
66e941e8 7849fi
f11781c5
AK
7850
7851 for ac_header in corosync/confdb.h
7852do :
7853 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7854if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7855 cat >>confdefs.h <<_ACEOF
f11781c5 7856#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7857_ACEOF
f11781c5 7858 HAVE_CONFDB_H=yes
66e941e8 7859else
f11781c5 7860 HAVE_CONFDB_H=no
66e941e8 7861fi
dd1f2c09
MB
7862
7863done
7864
7865
f11781c5
AK
7866 if test x$HAVE_CONFDB != xyes && \
7867 test x$HAVE_CONFDB_H = xyes; then
7868 check_lib_no_libs confdb confdb_initialize
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7870$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7871 CONFDB_LIBS="-lconfdb"
7872 HAVE_CONFDB=yes
7873 fi
b6d7a484
AK
7874fi
7875
7876
7877if test x$CHECKCMAP = xyes; then
7878
7879pkg_failed=no
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7881$as_echo_n "checking for CMAP... " >&6; }
7882
7883if test -n "$CMAP_CFLAGS"; then
7884 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7885 elif test -n "$PKG_CONFIG"; then
7886 if test -n "$PKG_CONFIG" && \
7887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7888 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; then
7892 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7893else
7894 pkg_failed=yes
7895fi
7896 else
7897 pkg_failed=untried
7898fi
7899if test -n "$CMAP_LIBS"; then
7900 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7901 elif test -n "$PKG_CONFIG"; then
7902 if test -n "$PKG_CONFIG" && \
7903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7904 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7905 ac_status=$?
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; }; then
7908 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7909else
7910 pkg_failed=yes
7911fi
7912 else
7913 pkg_failed=untried
7914fi
7915
7916
7917
7918if test $pkg_failed = yes; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
f11781c5 7921
b6d7a484
AK
7922if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7923 _pkg_short_errors_supported=yes
7924else
7925 _pkg_short_errors_supported=no
7926fi
7927 if test $_pkg_short_errors_supported = yes; then
7928 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7929 else
7930 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7931 fi
7932 # Put the nasty error message in config.log where it belongs
7933 echo "$CMAP_PKG_ERRORS" >&5
7934
7935 HAVE_CMAP=no
7936elif test $pkg_failed = untried; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938$as_echo "no" >&6; }
7939 HAVE_CMAP=no
7940else
7941 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
7942 CMAP_LIBS=$pkg_cv_CMAP_LIBS
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944$as_echo "yes" >&6; }
7945 HAVE_CMAP=yes
7946fi
7947
7948 for ac_header in corosync/cmap.h
7949do :
7950 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7951if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
7952 cat >>confdefs.h <<_ACEOF
7953#define HAVE_COROSYNC_CMAP_H 1
7954_ACEOF
7955 HAVE_CMAP_H=yes
7956else
7957 HAVE_CMAP_H=no
7958fi
7959
7960done
7961
7962
7963 if test x$HAVE_CMAP != xyes && \
7964 test x$HAVE_CMAP_H = xyes; then
7965 check_lib_no_libs cmap cmap_initialize
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7967$as_echo "no pkg for cmap, using -lcmap" >&6; }
7968 CMAP_LIBS="-lcmap"
7969 HAVE_CMAP=yes
7970 fi
7971fi
7972
7973if test x$BUILDCOROSYNC = xyes; then
7974 if test x$HAVE_CMAP != xyes && \
7975 test x$HAVE_CONFDB != xyes && \
f11781c5 7976 test x$CLVMD != xall; then
b6d7a484 7977 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
f11781c5 7978 fi
dd1f2c09 7979fi
f11781c5
AK
7980
7981if test x$CHECKCPG = xyes; then
7982
7983pkg_failed=no
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7985$as_echo_n "checking for CPG... " >&6; }
7986
7987if test -n "$CPG_CFLAGS"; then
7988 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7989 elif test -n "$PKG_CONFIG"; then
7990 if test -n "$PKG_CONFIG" && \
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7992 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7993 ac_status=$?
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7997else
f11781c5
AK
7998 pkg_failed=yes
7999fi
8000 else
8001 pkg_failed=untried
8002fi
8003if test -n "$CPG_LIBS"; then
8004 pkg_cv_CPG_LIBS="$CPG_LIBS"
8005 elif test -n "$PKG_CONFIG"; then
8006 if test -n "$PKG_CONFIG" && \
8007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8008 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 8009 ac_status=$?
f11781c5
AK
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 8013else
f11781c5
AK
8014 pkg_failed=yes
8015fi
8016 else
8017 pkg_failed=untried
8018fi
8019
8020
8021
8022if test $pkg_failed = yes; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024$as_echo "no" >&6; }
8025
8026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8027 _pkg_short_errors_supported=yes
8028else
8029 _pkg_short_errors_supported=no
8030fi
8031 if test $_pkg_short_errors_supported = yes; then
8032 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8033 else
8034 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8035 fi
8036 # Put the nasty error message in config.log where it belongs
8037 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8038
f11781c5
AK
8039 $bailout
8040elif test $pkg_failed = untried; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043 $bailout
8044else
8045 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8046 CPG_LIBS=$pkg_cv_CPG_LIBS
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8048$as_echo "yes" >&6; }
8049 HAVE_CPG=yes
8050fi
dd1f2c09
MB
8051fi
8052
f11781c5 8053if test x$CHECKDLM = xyes; then
dd1f2c09 8054
f11781c5
AK
8055pkg_failed=no
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8057$as_echo_n "checking for DLM... " >&6; }
8058
8059if test -n "$DLM_CFLAGS"; then
8060 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8061 elif test -n "$PKG_CONFIG"; then
8062 if test -n "$PKG_CONFIG" && \
8063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8064 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8065 ac_status=$?
f11781c5
AK
8066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8067 test $ac_status = 0; }; then
8068 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8069else
f11781c5
AK
8070 pkg_failed=yes
8071fi
8072 else
8073 pkg_failed=untried
8074fi
8075if test -n "$DLM_LIBS"; then
8076 pkg_cv_DLM_LIBS="$DLM_LIBS"
8077 elif test -n "$PKG_CONFIG"; then
8078 if test -n "$PKG_CONFIG" && \
8079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8080 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8085else
8086 pkg_failed=yes
8087fi
8088 else
8089 pkg_failed=untried
dd1f2c09
MB
8090fi
8091
dd1f2c09 8092
dd1f2c09 8093
f11781c5
AK
8094if test $pkg_failed = yes; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096$as_echo "no" >&6; }
8097
8098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8099 _pkg_short_errors_supported=yes
dd1f2c09 8100else
f11781c5 8101 _pkg_short_errors_supported=no
dd1f2c09 8102fi
f11781c5
AK
8103 if test $_pkg_short_errors_supported = yes; then
8104 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8105 else
8106 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8107 fi
8108 # Put the nasty error message in config.log where it belongs
8109 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8110
f11781c5
AK
8111 NOTFOUND=0
8112 for ac_header in libdlm.h
8113do :
8114 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8115if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8116 cat >>confdefs.h <<_ACEOF
f11781c5 8117#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8118_ACEOF
8119
f11781c5
AK
8120else
8121 $bailout
dd1f2c09 8122fi
f8f6ec92
ZK
8123
8124done
8125
f11781c5
AK
8126 check_lib_no_libs dlm dlm_lock -lpthread
8127 if test $NOTFOUND = 0; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8129$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8130 DLM_LIBS="-ldlm -lpthread"
8131 HAVE_DLM=yes
8132 fi
8133elif test $pkg_failed = untried; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135$as_echo "no" >&6; }
8136 NOTFOUND=0
8137 for ac_header in libdlm.h
8138do :
8139 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8140if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8141 cat >>confdefs.h <<_ACEOF
8142#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8143_ACEOF
8144
f8f6ec92 8145else
f11781c5 8146 $bailout
ad6254c5
AK
8147fi
8148
f11781c5 8149done
8b1a3214 8150
f11781c5
AK
8151 check_lib_no_libs dlm dlm_lock -lpthread
8152 if test $NOTFOUND = 0; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8154$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8155 DLM_LIBS="-ldlm -lpthread"
8156 HAVE_DLM=yes
8157 fi
8b1a3214 8158else
f11781c5
AK
8159 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8160 DLM_LIBS=$pkg_cv_DLM_LIBS
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8162$as_echo "yes" >&6; }
8163 HAVE_DLM=yes
8b1a3214 8164fi
8b1a3214
AK
8165fi
8166
f11781c5
AK
8167if test x$CLVMD = xall; then
8168 CLVMD=none
8169 CLVMD_CMANAGERS=""
8170 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
8171 if test x$HAVE_CMAN = xyes && \
8172 test x$HAVE_DLM = xyes; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8174$as_echo "Enabling clvmd cman cluster manager" >&6; }
8175 CLVMD="$CLVMD,cman"
8176 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8177 CLVMD_NEEDS_QDISKD=yes
8178 fi
8179 if test x$HAVE_COROSYNC = xyes && \
8180 test x$HAVE_QUORUM = xyes && \
8181 test x$HAVE_CPG = xyes && \
b6d7a484
AK
8182 test x$HAVE_DLM = xyes; then
8183 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
f11781c5
AK
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8185$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8186 CLVMD="$CLVMD,corosync"
8187 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
b6d7a484 8188 fi
f11781c5
AK
8189 fi
8190 if test x$HAVE_COROSYNC = xyes && \
8191 test x$HAVE_CPG = xyes && \
8192 test x$HAVE_SALCK = xyes; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8194$as_echo "Enabling clvmd openais cluster manager" >&6; }
8195 CLVMD="$CLVMD,openais"
8196 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8197 fi
8198 if test x$CLVMD_NEEDS_QDISKD != xno; then
8199 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8200 fi
8201 if test x$CLVMD = xnone; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8203$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8204 fi
8205fi
8206
75fad6ea
MB
8207if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8208 if test x$HAVE_CMAP = xyes; then
8209 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8210 fi
8211fi
8212
ad6254c5 8213################################################################################
f11781c5 8214if test "x$CLVMD" != xnone; then
ad6254c5 8215
f11781c5
AK
8216# Check whether --with-clvmd-pidfile was given.
8217if test "${with_clvmd_pidfile+set}" = set; then :
8218 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8219else
f11781c5 8220 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8221fi
7a197a62 8222
ad6254c5 8223
f11781c5
AK
8224cat >>confdefs.h <<_ACEOF
8225#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8226_ACEOF
ad6254c5 8227
ad6254c5 8228fi
7a197a62 8229
f11781c5
AK
8230################################################################################
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8232$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8233# Check whether --enable-cmirrord was given.
8234if test "${enable_cmirrord+set}" = set; then :
8235 enableval=$enable_cmirrord; CMIRRORD=$enableval
8236else
8237 CMIRRORD=no
8238fi
8239
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8241$as_echo "$CMIRRORD" >&6; }
ad6254c5 8242
f11781c5 8243BUILD_CMIRRORD=$CMIRRORD
7a197a62 8244
f11781c5
AK
8245################################################################################
8246if test "x$BUILD_CMIRRORD" = xyes; then
8247
8248# Check whether --with-cmirrord-pidfile was given.
8249if test "${with_cmirrord_pidfile+set}" = set; then :
8250 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8251else
f11781c5 8252 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8253fi
ad6254c5 8254
72b2cb61 8255
f11781c5
AK
8256cat >>confdefs.h <<_ACEOF
8257#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8258_ACEOF
8259
ad6254c5
AK
8260fi
8261
f11781c5
AK
8262################################################################################
8263if [ "x$BUILD_CMIRRORD" = xyes ]; then
8264 if test x$PKGCONFIG_INIT != x1; then
8265 pkg_config_init
8266 fi
ad6254c5 8267
62e38da1
JEB
8268
8269$as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h
8270
8271
f11781c5
AK
8272pkg_failed=no
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8274$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8275
f11781c5
AK
8276if test -n "$SACKPT_CFLAGS"; then
8277 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8278 elif test -n "$PKG_CONFIG"; then
8279 if test -n "$PKG_CONFIG" && \
8280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8281 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8282 ac_status=$?
8283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8284 test $ac_status = 0; }; then
8285 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8286else
f11781c5
AK
8287 pkg_failed=yes
8288fi
8289 else
8290 pkg_failed=untried
8291fi
8292if test -n "$SACKPT_LIBS"; then
8293 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8294 elif test -n "$PKG_CONFIG"; then
8295 if test -n "$PKG_CONFIG" && \
8296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8297 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8298 ac_status=$?
f11781c5
AK
8299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8300 test $ac_status = 0; }; then
8301 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8302else
f11781c5
AK
8303 pkg_failed=yes
8304fi
8305 else
8306 pkg_failed=untried
8307fi
539f4a77
ZK
8308
8309
539f4a77 8310
f11781c5
AK
8311if test $pkg_failed = yes; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314
8315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8316 _pkg_short_errors_supported=yes
539f4a77 8317else
f11781c5 8318 _pkg_short_errors_supported=no
539f4a77 8319fi
f11781c5
AK
8320 if test $_pkg_short_errors_supported = yes; then
8321 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8322 else
8323 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8324 fi
8325 # Put the nasty error message in config.log where it belongs
8326 echo "$SACKPT_PKG_ERRORS" >&5
8327
62e38da1
JEB
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8329$as_echo "no libSaCkpt, compiling without it" >&6; }
f11781c5 8330
62e38da1 8331$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
f11781c5
AK
8332
8333elif test $pkg_failed = untried; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335$as_echo "no" >&6; }
62e38da1
JEB
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8337$as_echo "no libSaCkpt, compiling without it" >&6; }
f11781c5 8338
62e38da1 8339$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
f11781c5 8340
539f4a77 8341else
f11781c5
AK
8342 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8343 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8345$as_echo "yes" >&6; }
62e38da1 8346 HAVE_SACKPT=yes
539f4a77 8347fi
62e38da1 8348
f11781c5 8349 if test x$HAVE_CPG != xyes; then
539f4a77 8350
f11781c5
AK
8351pkg_failed=no
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8353$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8354
f11781c5
AK
8355if test -n "$CPG_CFLAGS"; then
8356 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8357 elif test -n "$PKG_CONFIG"; then
8358 if test -n "$PKG_CONFIG" && \
8359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8360 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8361 ac_status=$?
f11781c5
AK
8362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8363 test $ac_status = 0; }; then
8364 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8365else
f11781c5
AK
8366 pkg_failed=yes
8367fi
8368 else
8369 pkg_failed=untried
8370fi
8371if test -n "$CPG_LIBS"; then
8372 pkg_cv_CPG_LIBS="$CPG_LIBS"
8373 elif test -n "$PKG_CONFIG"; then
8374 if test -n "$PKG_CONFIG" && \
8375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8376 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8377 ac_status=$?
8378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8379 test $ac_status = 0; }; then
8380 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8381else
8382 pkg_failed=yes
8383fi
8384 else
8385 pkg_failed=untried
8386fi
8387
8388
8389
8390if test $pkg_failed = yes; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
ad6254c5 8393
f11781c5
AK
8394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8395 _pkg_short_errors_supported=yes
8396else
8397 _pkg_short_errors_supported=no
ad6254c5 8398fi
f11781c5
AK
8399 if test $_pkg_short_errors_supported = yes; then
8400 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8401 else
8402 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8403 fi
8404 # Put the nasty error message in config.log where it belongs
8405 echo "$CPG_PKG_ERRORS" >&5
8406
8407 as_fn_error $? "Package requirements (libcpg) were not met:
8408
8409$CPG_PKG_ERRORS
8410
8411Consider adjusting the PKG_CONFIG_PATH environment variable if you
8412installed software in a non-standard prefix.
8413
8414Alternatively, you may set the environment variables CPG_CFLAGS
8415and CPG_LIBS to avoid the need to call pkg-config.
8416See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8417
f11781c5
AK
8418elif test $pkg_failed = untried; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420$as_echo "no" >&6; }
8421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8423as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8424is in your PATH or set the PKG_CONFIG environment variable to the full
8425path to pkg-config.
539f4a77 8426
f11781c5
AK
8427Alternatively, you may set the environment variables CPG_CFLAGS
8428and CPG_LIBS to avoid the need to call pkg-config.
8429See the pkg-config man page for more details.
539f4a77 8430
f11781c5
AK
8431To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8432See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8433
539f4a77 8434else
f11781c5
AK
8435 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8436 CPG_LIBS=$pkg_cv_CPG_LIBS
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8438$as_echo "yes" >&6; }
bc1024f8 8439
f11781c5
AK
8440fi
8441 fi
8442fi
8443
8444################################################################################
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8446$as_echo_n "checking whether to enable debugging... " >&6; }
8447# Check whether --enable-debug was given.
8448if test "${enable_debug+set}" = set; then :
8449 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8450else
f11781c5
AK
8451 DEBUG=no
8452fi
8453
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8455$as_echo "$DEBUG" >&6; }
539f4a77 8456
f11781c5
AK
8457if test x$DEBUG = xyes; then
8458 COPTIMISE_FLAG=
8459else
8460 CSCOPE_CMD=
06e459df
JM
8461fi
8462
f11781c5
AK
8463################################################################################
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8465$as_echo_n "checking for C optimisation flag... " >&6; }
8466
8467# Check whether --with-optimisation was given.
8468if test "${with_optimisation+set}" = set; then :
8469 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8470fi
539f4a77 8471
f11781c5
AK
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8473$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8474
f11781c5
AK
8475################################################################################
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8477$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8478# Check whether --enable-profiling was given.
8479if test "${enable_profiling+set}" = set; then :
8480 enableval=$enable_profiling; PROFILING=$enableval
8481else
8482 PROFILING=no
539f4a77
ZK
8483fi
8484
f11781c5
AK
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8486$as_echo "$PROFILING" >&6; }
8487
8488if test "x$PROFILING" = xyes; then
8489 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8490 # Extract the first word of "lcov", so it can be a program name with args.
8491set dummy lcov; ac_word=$2
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493$as_echo_n "checking for $ac_word... " >&6; }
8494if test "${ac_cv_path_LCOV+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
539f4a77 8496else
f11781c5
AK
8497 case $LCOV in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8500 ;;
8501 *)
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513done
8514 done
8515IFS=$as_save_IFS
539f4a77 8516
f11781c5
AK
8517 ;;
8518esac
8519fi
8520LCOV=$ac_cv_path_LCOV
8521if test -n "$LCOV"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8523$as_echo "$LCOV" >&6; }
8524else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
539f4a77
ZK
8527fi
8528
bc1024f8 8529
f11781c5
AK
8530 # Extract the first word of "genhtml", so it can be a program name with args.
8531set dummy genhtml; ac_word=$2
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533$as_echo_n "checking for $ac_word... " >&6; }
8534if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8535 $as_echo_n "(cached) " >&6
ad6254c5 8536else
f11781c5
AK
8537 case $GENHTML in
8538 [\\/]* | ?:[\\/]*)
8539 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8540 ;;
8541 *)
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553done
8554 done
8555IFS=$as_save_IFS
8a2fc586 8556
f11781c5
AK
8557 ;;
8558esac
8559fi
8560GENHTML=$ac_cv_path_GENHTML
8561if test -n "$GENHTML"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8563$as_echo "$GENHTML" >&6; }
8564else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8a2fc586 8568
8a2fc586 8569
f11781c5
AK
8570 if test -z "$LCOV" -o -z "$GENHTML"; then
8571 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8572 fi
8573 # Extract the first word of "genpng", so it can be a program name with args.
8574set dummy genpng; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if test "${ac_cv_path_GENPNG+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579else
8580 case $GENPNG in
8581 [\\/]* | ?:[\\/]*)
8582 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8583 ;;
8584 *)
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596done
8597 done
8598IFS=$as_save_IFS
ad6254c5 8599
f11781c5 8600 ;;
7a197a62 8601esac
f11781c5
AK
8602fi
8603GENPNG=$ac_cv_path_GENPNG
8604if test -n "$GENPNG"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8606$as_echo "$GENPNG" >&6; }
ad6254c5 8607else
f11781c5
AK
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
8610fi
8611
8612
8613 if test -n "$GENPNG"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8615$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8616 if $GENPNG --help > /dev/null 2>&1 ; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8618$as_echo "ok" >&6; }
8619 GENHTML="$GENHTML --frames"
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8622$as_echo "not supported" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8624$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8625 GENPNG=
8626 fi
8627 fi
8628fi
ad6254c5 8629
f11781c5
AK
8630################################################################################
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8632$as_echo_n "checking whether to enable unit testing... " >&6; }
8633# Check whether --enable-testing was given.
8634if test "${enable_testing+set}" = set; then :
8635 enableval=$enable_testing; TESTING=$enableval
8636else
8637 TESTING=no
ad6254c5 8638fi
7a197a62 8639
f11781c5
AK
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8641$as_echo "$TESTING" >&6; }
72b2cb61 8642
f11781c5 8643if test "$TESTING" = yes; then
426fc742
PR
8644
8645pkg_failed=no
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8647$as_echo_n "checking for CUNIT... " >&6; }
8648
8649if test -n "$CUNIT_CFLAGS"; then
8650 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8651 elif test -n "$PKG_CONFIG"; then
8652 if test -n "$PKG_CONFIG" && \
8653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8654 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8655 ac_status=$?
8656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8657 test $ac_status = 0; }; then
8658 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8659else
8660 pkg_failed=yes
8661fi
8662 else
8663 pkg_failed=untried
8664fi
8665if test -n "$CUNIT_LIBS"; then
8666 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8667 elif test -n "$PKG_CONFIG"; then
8668 if test -n "$PKG_CONFIG" && \
8669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8670 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8671 ac_status=$?
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; }; then
8674 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
ad6254c5 8675else
426fc742
PR
8676 pkg_failed=yes
8677fi
8678 else
8679 pkg_failed=untried
ad6254c5
AK
8680fi
8681
7a197a62 8682
426fc742
PR
8683
8684if test $pkg_failed = yes; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
8687
8688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8689 _pkg_short_errors_supported=yes
8690else
8691 _pkg_short_errors_supported=no
8692fi
8693 if test $_pkg_short_errors_supported = yes; then
8694 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8695 else
8696 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8697 fi
8698 # Put the nasty error message in config.log where it belongs
8699 echo "$CUNIT_PKG_ERRORS" >&5
8700
8701 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8702
8703$CUNIT_PKG_ERRORS
8704
8705Consider adjusting the PKG_CONFIG_PATH environment variable if you
8706installed software in a non-standard prefix.
8707
8708Alternatively, you may set the environment variables CUNIT_CFLAGS
8709and CUNIT_LIBS to avoid the need to call pkg-config.
8710See the pkg-config man page for more details." "$LINENO" 5
8711
8712elif test $pkg_failed = untried; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714$as_echo "no" >&6; }
8715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8717as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8718is in your PATH or set the PKG_CONFIG environment variable to the full
8719path to pkg-config.
8720
8721Alternatively, you may set the environment variables CUNIT_CFLAGS
8722and CUNIT_LIBS to avoid the need to call pkg-config.
8723See the pkg-config man page for more details.
8724
8725To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8726See \`config.log' for more details" "$LINENO" 5; }
8727
8728else
8729 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8730 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8732$as_echo "yes" >&6; }
8733
8734fi
f11781c5 8735fi
ad6254c5 8736
f11781c5
AK
8737################################################################################
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8739$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8740# Check whether --enable-valgrind_pool was given.
8741if test "${enable_valgrind_pool+set}" = set; then :
8742 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8743else
8744 VALGRIND_POOL=no
8745fi
8746
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8748$as_echo "$VALGRIND_POOL" >&6; }
8749
8750if test "$VALGRIND_POOL" = yes; then
8751 for ac_header in valgrind/memcheck.h
8752do :
8753 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8754if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8755 cat >>confdefs.h <<_ACEOF
8756#define HAVE_VALGRIND_MEMCHECK_H 1
8757_ACEOF
ad6254c5 8758
ad6254c5 8759else
f11781c5 8760 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8761fi
8762
f11781c5
AK
8763done
8764
8765
8766$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8767
ad6254c5
AK
8768fi
8769
8770################################################################################
f11781c5
AK
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8772$as_echo_n "checking whether to use device-mapper... " >&6; }
8773# Check whether --enable-devmapper was given.
8774if test "${enable_devmapper+set}" = set; then :
8775 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8776fi
8777
f11781c5
AK
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8779$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8780
f11781c5 8781if test x$DEVMAPPER = xyes; then
ad6254c5 8782
f11781c5
AK
8783$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8784
8785fi
8786
cdd50823
ZK
8787################################################################################
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8789$as_echo_n "checking whether to build LVMetaD... " >&6; }
8790# Check whether --enable-lvmetad was given.
8791if test "${enable_lvmetad+set}" = set; then :
8792 enableval=$enable_lvmetad; LVMETAD=$enableval
8793fi
8794
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8796$as_echo "$LVMETAD" >&6; }
8797
8798BUILD_LVMETAD=$LVMETAD
8799
7126d8c2
AK
8800if test x$BUILD_LVMETAD = xyes; then
8801
8802$as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h
8803
8804fi
8805
f11781c5
AK
8806################################################################################
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8808$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8809# Check whether --enable-udev_sync was given.
8810if test "${enable_udev_sync+set}" = set; then :
8811 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8812else
f11781c5 8813 UDEV_SYNC=no
7a197a62 8814fi
ad6254c5 8815
f11781c5
AK
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8817$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8818
f11781c5 8819if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8820 if test x$PKGCONFIG_INIT != x1; then
8821 pkg_config_init
8822 fi
7a197a62 8823
d93275eb
PR
8824pkg_failed=no
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8826$as_echo_n "checking for UDEV... " >&6; }
8827
8828if test -n "$UDEV_CFLAGS"; then
8829 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8830 elif test -n "$PKG_CONFIG"; then
8831 if test -n "$PKG_CONFIG" && \
8832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8833 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8834 ac_status=$?
8835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8836 test $ac_status = 0; }; then
8837 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8838else
d93275eb 8839 pkg_failed=yes
f11781c5 8840fi
d93275eb
PR
8841 else
8842 pkg_failed=untried
f11781c5 8843fi
d93275eb
PR
8844if test -n "$UDEV_LIBS"; then
8845 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8846 elif test -n "$PKG_CONFIG"; then
8847 if test -n "$PKG_CONFIG" && \
8848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8849 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8850 ac_status=$?
8851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8852 test $ac_status = 0; }; then
8853 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8854else
d93275eb 8855 pkg_failed=yes
68f2de6d 8856fi
d93275eb
PR
8857 else
8858 pkg_failed=untried
8859fi
8860
8861
8862
8863if test $pkg_failed = yes; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866
8867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8868 _pkg_short_errors_supported=yes
8869else
8870 _pkg_short_errors_supported=no
8871fi
8872 if test $_pkg_short_errors_supported = yes; then
8873 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8874 else
8875 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8876 fi
8877 # Put the nasty error message in config.log where it belongs
8878 echo "$UDEV_PKG_ERRORS" >&5
8879
8880 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8881
8882$UDEV_PKG_ERRORS
8883
8884Consider adjusting the PKG_CONFIG_PATH environment variable if you
8885installed software in a non-standard prefix.
8886
8887Alternatively, you may set the environment variables UDEV_CFLAGS
8888and UDEV_LIBS to avoid the need to call pkg-config.
8889See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8890
d93275eb
PR
8891elif test $pkg_failed = untried; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
8894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8896as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8897is in your PATH or set the PKG_CONFIG environment variable to the full
8898path to pkg-config.
8899
8900Alternatively, you may set the environment variables UDEV_CFLAGS
8901and UDEV_LIBS to avoid the need to call pkg-config.
8902See the pkg-config man page for more details.
8903
8904To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8905See \`config.log' for more details" "$LINENO" 5; }
8906
8907else
8908 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8909 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8911$as_echo "yes" >&6; }
8912 UDEV_PC="libudev"
8913fi
68f2de6d 8914
f11781c5 8915$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8916
f11781c5
AK
8917fi
8918
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8920$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8921# Check whether --enable-udev_rules was given.
8922if test "${enable_udev_rules+set}" = set; then :
8923 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8924else
f11781c5 8925 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8926fi
8927
f11781c5
AK
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8929$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8930
b559a1e6
PR
8931if test x$UDEV_RULES = xyes; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5
8933$as_echo_n "checking whether udev supports builtin blkid... " >&6; }
8934 udev_version=$(udevadm info --version 2>/dev/null)
8935 if test -n "$udev_version" && test "$udev_version" -ge 176; then
8936 UDEV_HAS_BUILTIN_BLKID=yes
8937 else
8938 UDEV_HAS_BUILTIN_BLKID=no
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
8941$as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
8942fi
8943
a5f46f6a 8944################################################################################
f11781c5
AK
8945# Check whether --enable-compat was given.
8946if test "${enable_compat+set}" = set; then :
8947 enableval=$enable_compat; DM_COMPAT=$enableval
8948else
8949 DM_COMPAT=no
8950fi
a5f46f6a 8951
f11781c5 8952
2061c0ec
AK
8953if test x$DM_COMPAT = xyes; then
8954 as_fn_error $? "--enable-compat is not currently supported.
8955Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8956ioctl protocol is supported.
8957 " "$LINENO" 5
8958fi
8959
f11781c5
AK
8960################################################################################
8961# Check whether --enable-units-compat was given.
8962if test "${enable_units_compat+set}" = set; then :
8963 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8964else
f11781c5 8965 UNITS_COMPAT=no
a5f46f6a
AK
8966fi
8967
8968
f11781c5 8969if test x$UNITS_COMPAT = xyes; then
78ce7acc 8970
f11781c5
AK
8971$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8972
8973fi
8974
8975################################################################################
8976# Check whether --enable-ioctl was given.
8977if test "${enable_ioctl+set}" = set; then :
8978 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8979fi
8980
a5f46f6a 8981
ad6254c5 8982################################################################################
f11781c5
AK
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8984$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8985# Check whether --enable-o_direct was given.
8986if test "${enable_o_direct+set}" = set; then :
8987 enableval=$enable_o_direct; ODIRECT=$enableval
8988fi
ad6254c5 8989
f11781c5
AK
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8991$as_echo "$ODIRECT" >&6; }
8992
8993if test x$ODIRECT = xyes; then
8994
8995$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8996
ad6254c5 8997fi
ad6254c5 8998
f11781c5
AK
8999################################################################################
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
9001$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9002# Check whether --enable-applib was given.
9003if test "${enable_applib+set}" = set; then :
9004 enableval=$enable_applib; APPLIB=$enableval
9005else
9006 APPLIB=no
ad6254c5 9007fi
7a197a62 9008
f11781c5
AK
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
9010$as_echo "$APPLIB" >&6; }
ad6254c5 9011
f11781c5
AK
9012test x$APPLIB = xyes \
9013 && LVM2APP_LIB=-llvm2app \
9014 || LVM2APP_LIB=
ad6254c5 9015
f11781c5
AK
9016################################################################################
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
9018$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9019# Check whether --enable-cmdlib was given.
9020if test "${enable_cmdlib+set}" = set; then :
9021 enableval=$enable_cmdlib; CMDLIB=$enableval
9022else
9023 CMDLIB=no
ad6254c5 9024fi
7a197a62 9025
f11781c5
AK
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
9027$as_echo "$CMDLIB" >&6; }
7a197a62 9028
f11781c5
AK
9029test x$CMDLIB = xyes \
9030 && LVM2CMD_LIB=-llvm2cmd \
9031 || LVM2CMD_LIB=
9032
9033################################################################################
9034# Check whether --enable-pkgconfig was given.
9035if test "${enable_pkgconfig+set}" = set; then :
9036 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 9037else
f11781c5 9038 PKGCONFIG=no
ad6254c5 9039fi
ad6254c5 9040
ad6254c5 9041
f11781c5
AK
9042################################################################################
9043# Check whether --enable-write_install was given.
9044if test "${enable_write_install+set}" = set; then :
9045 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 9046else
f11781c5 9047 WRITE_INSTALL=no
ad6254c5
AK
9048fi
9049
ad6254c5 9050
f11781c5
AK
9051################################################################################
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9053$as_echo_n "checking whether to install fsadm... " >&6; }
9054# Check whether --enable-fsadm was given.
9055if test "${enable_fsadm+set}" = set; then :
9056 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
9057fi
9058
f11781c5
AK
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9060$as_echo "$FSADM" >&6; }
ad6254c5 9061
f11781c5
AK
9062################################################################################
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9064$as_echo_n "checking whether to use dmeventd... " >&6; }
9065# Check whether --enable-dmeventd was given.
9066if test "${enable_dmeventd+set}" = set; then :
9067 enableval=$enable_dmeventd; DMEVENTD=$enableval
9068fi
ad6254c5 9069
f11781c5
AK
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9071$as_echo "$DMEVENTD" >&6; }
ad6254c5 9072
f11781c5 9073BUILD_DMEVENTD=$DMEVENTD
ad6254c5 9074
f11781c5
AK
9075if test x$DMEVENTD = xyes; then
9076 if test x$MIRRORS != xinternal; then
9077 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9078 " "$LINENO" 5
9079 fi
9080 if test x$CMDLIB = xno; then
9081 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9082 " "$LINENO" 5
9083 fi
9084fi
ad6254c5 9085
f11781c5 9086if test x$DMEVENTD = xyes; then
ad6254c5 9087
f11781c5 9088$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 9089
f11781c5 9090fi
ad6254c5 9091
f11781c5 9092################################################################################
ad6254c5 9093
f11781c5
AK
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9095$as_echo_n "checking for getline in -lc... " >&6; }
9096if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 9097 $as_echo_n "(cached) " >&6
ad6254c5 9098else
f11781c5
AK
9099 ac_check_lib_save_LIBS=$LIBS
9100LIBS="-lc $LIBS"
9101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9102/* end confdefs.h. */
f11781c5
AK
9103
9104/* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9107#ifdef __cplusplus
9108extern "C"
9109#endif
9110char getline ();
9111int
9112main ()
9113{
9114return getline ();
9115 ;
9116 return 0;
9117}
ad6254c5 9118_ACEOF
f11781c5
AK
9119if ac_fn_c_try_link "$LINENO"; then :
9120 ac_cv_lib_c_getline=yes
ad6254c5 9121else
f11781c5
AK
9122 ac_cv_lib_c_getline=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126LIBS=$ac_check_lib_save_LIBS
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9129$as_echo "$ac_cv_lib_c_getline" >&6; }
9130if test "x$ac_cv_lib_c_getline" = x""yes; then :
9131
9132$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9133
ad6254c5 9134fi
7a197a62 9135
ad6254c5 9136
f11781c5
AK
9137################################################################################
9138
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9140$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9141if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9143else
9144 ac_check_lib_save_LIBS=$LIBS
9145LIBS="-lc $LIBS"
9146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9147/* end confdefs.h. */
f11781c5
AK
9148
9149/* Override any GCC internal prototype to avoid an error.
9150 Use char because int might match the return type of a GCC
9151 builtin and then its argument prototype would still apply. */
9152#ifdef __cplusplus
9153extern "C"
9154#endif
9155char canonicalize_file_name ();
9156int
9157main ()
9158{
9159return canonicalize_file_name ();
9160 ;
9161 return 0;
9162}
ad6254c5 9163_ACEOF
f11781c5
AK
9164if ac_fn_c_try_link "$LINENO"; then :
9165 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9166else
f11781c5
AK
9167 ac_cv_lib_c_canonicalize_file_name=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171LIBS=$ac_check_lib_save_LIBS
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9174$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9175if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9176
9177$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9178
ad6254c5 9179fi
7a197a62 9180
ad6254c5 9181
f11781c5
AK
9182################################################################################
9183if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9184 then exec_prefix="";
9185fi;
7a197a62 9186
f11781c5
AK
9187################################################################################
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9189$as_echo_n "checking for dlopen in -ldl... " >&6; }
9190if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9191 $as_echo_n "(cached) " >&6
ad6254c5 9192else
f11781c5
AK
9193 ac_check_lib_save_LIBS=$LIBS
9194LIBS="-ldl $LIBS"
9195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h. */
ad6254c5 9197
f11781c5
AK
9198/* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201#ifdef __cplusplus
9202extern "C"
9203#endif
9204char dlopen ();
9205int
9206main ()
9207{
9208return dlopen ();
9209 ;
9210 return 0;
9211}
ad6254c5 9212_ACEOF
f11781c5
AK
9213if ac_fn_c_try_link "$LINENO"; then :
9214 ac_cv_lib_dl_dlopen=yes
ad6254c5 9215else
f11781c5 9216 ac_cv_lib_dl_dlopen=no
795ca3e5 9217fi
f11781c5
AK
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220LIBS=$ac_check_lib_save_LIBS
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9223$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9224if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9225
ad6254c5 9226
f11781c5 9227$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9228
f11781c5
AK
9229 DL_LIBS="-ldl"
9230 HAVE_LIBDL=yes
9231else
795ca3e5 9232
f11781c5
AK
9233 DL_LIBS=
9234 HAVE_LIBDL=no
9235fi
8106cdd5 9236
ad6254c5 9237
f11781c5
AK
9238################################################################################
9239if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9240 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9241 -o "x$RAID" = xshared \
f11781c5
AK
9242 \) -a "x$STATIC_LINK" = xyes ];
9243 then as_fn_error $? "Features cannot be 'shared' when building statically
9244" "$LINENO" 5
9245fi
ad6254c5 9246
f11781c5
AK
9247################################################################################
9248if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9250$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9251if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9252 $as_echo_n "(cached) " >&6
795ca3e5 9253else
f11781c5
AK
9254 ac_check_lib_save_LIBS=$LIBS
9255LIBS="-lpthread $LIBS"
9256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9257/* end confdefs.h. */
8a2fc586 9258
f11781c5
AK
9259/* Override any GCC internal prototype to avoid an error.
9260 Use char because int might match the return type of a GCC
9261 builtin and then its argument prototype would still apply. */
9262#ifdef __cplusplus
9263extern "C"
ad6254c5 9264#endif
f11781c5
AK
9265char pthread_mutex_lock ();
9266int
9267main ()
9268{
9269return pthread_mutex_lock ();
9270 ;
9271 return 0;
9272}
9273_ACEOF
9274if ac_fn_c_try_link "$LINENO"; then :
9275 ac_cv_lib_pthread_pthread_mutex_lock=yes
9276else
9277 ac_cv_lib_pthread_pthread_mutex_lock=no
9278fi
9279rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281LIBS=$ac_check_lib_save_LIBS
9282fi
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9284$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9285if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9286 PTHREAD_LIBS="-lpthread"
9287else
9288 hard_bailout
9289fi
9290
9291fi
9292
9293################################################################################
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9295$as_echo_n "checking whether to enable selinux support... " >&6; }
9296# Check whether --enable-selinux was given.
9297if test "${enable_selinux+set}" = set; then :
9298 enableval=$enable_selinux; SELINUX=$enableval
9299fi
9300
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9302$as_echo "$SELINUX" >&6; }
8a2fc586 9303
f11781c5
AK
9304################################################################################
9305if test x$SELINUX = xyes; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9307$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9308if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9310else
9311 ac_check_lib_save_LIBS=$LIBS
9312LIBS="-lsepol $LIBS"
9313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h. */
8a2fc586 9315
7a197a62
AK
9316/* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9319#ifdef __cplusplus
9320extern "C"
ad6254c5 9321#endif
f11781c5 9322char sepol_check_context ();
ad6254c5
AK
9323int
9324main ()
9325{
f11781c5 9326return sepol_check_context ();
ad6254c5
AK
9327 ;
9328 return 0;
9329}
9330_ACEOF
f11781c5
AK
9331if ac_fn_c_try_link "$LINENO"; then :
9332 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9333else
f11781c5
AK
9334 ac_cv_lib_sepol_sepol_check_context=no
9335fi
9336rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338LIBS=$ac_check_lib_save_LIBS
80992638 9339fi
f11781c5
AK
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9341$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9342if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9343
80992638 9344
f11781c5
AK
9345$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9346
9347 SELINUX_LIBS="-lsepol"
8106cdd5 9348fi
795ca3e5 9349
f11781c5
AK
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9352$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9353if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9354 $as_echo_n "(cached) " >&6
25fbec5b 9355else
f11781c5
AK
9356 ac_check_lib_save_LIBS=$LIBS
9357LIBS="-lselinux $LIBS"
9358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9359/* end confdefs.h. */
80992638 9360
7a197a62
AK
9361/* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
ad6254c5 9363 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9364#ifdef __cplusplus
9365extern "C"
9366#endif
f11781c5 9367char is_selinux_enabled ();
ad6254c5
AK
9368int
9369main ()
9370{
f11781c5 9371return is_selinux_enabled ();
ad6254c5
AK
9372 ;
9373 return 0;
9374}
9375_ACEOF
f11781c5
AK
9376if ac_fn_c_try_link "$LINENO"; then :
9377 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9378else
f11781c5 9379 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9380fi
f11781c5
AK
9381rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383LIBS=$ac_check_lib_save_LIBS
25fbec5b 9384fi
f11781c5
AK
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9386$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9387if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9388
f11781c5
AK
9389 for ac_header in selinux/selinux.h
9390do :
9391 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9392if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9395_ACEOF
795ca3e5 9396
25fbec5b 9397else
f11781c5 9398 hard_bailout
795ca3e5 9399fi
795ca3e5 9400
f11781c5 9401done
795ca3e5 9402
f11781c5
AK
9403 for ac_header in selinux/label.h
9404do :
9405 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9406if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9407 cat >>confdefs.h <<_ACEOF
9408#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9409_ACEOF
ad6254c5 9410
ad6254c5 9411fi
7a197a62 9412
f11781c5 9413done
7a197a62 9414
ad6254c5 9415
f11781c5 9416$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9417
f11781c5
AK
9418 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9419 SELINUX_PC="libselinux"
9420 HAVE_SELINUX=yes
ad6254c5 9421else
8106cdd5 9422
f11781c5
AK
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9424$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9425 SELINUX_LIBS=
9426 SELINUX_PC=
9427 HAVE_SELINUX=no
795ca3e5 9428fi
ad6254c5 9429
795ca3e5
AK
9430fi
9431
f11781c5
AK
9432################################################################################
9433if test x$REALTIME = xyes; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9435$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9436if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9437 $as_echo_n "(cached) " >&6
26e7f2e0 9438else
f11781c5
AK
9439 ac_check_lib_save_LIBS=$LIBS
9440LIBS="-lrt $LIBS"
9441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9442/* end confdefs.h. */
ad6254c5 9443
f11781c5
AK
9444/* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447#ifdef __cplusplus
9448extern "C"
9449#endif
9450char clock_gettime ();
ad6254c5
AK
9451int
9452main ()
9453{
f11781c5 9454return clock_gettime ();
ad6254c5
AK
9455 ;
9456 return 0;
9457}
9458_ACEOF
f11781c5
AK
9459if ac_fn_c_try_link "$LINENO"; then :
9460 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9461else
f11781c5 9462 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9463fi
f11781c5
AK
9464rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9467fi
f11781c5
AK
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9469$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9470if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9471 HAVE_REALTIME=yes
9472else
9473 HAVE_REALTIME=no
8106cdd5 9474fi
ad6254c5 9475
ad6254c5 9476
f11781c5 9477 if test x$HAVE_REALTIME = xyes; then
7a197a62 9478
f11781c5 9479$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9480
f11781c5
AK
9481 LIBS="-lrt $LIBS"
9482 else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9484$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9485 fi
9486fi
9487
9488################################################################################
9489for ac_header in getopt.h
9490do :
9491 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9492if test "x$ac_cv_header_getopt_h" = x""yes; then :
9493 cat >>confdefs.h <<_ACEOF
9494#define HAVE_GETOPT_H 1
9495_ACEOF
9496
9497$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9498
ad6254c5 9499fi
7a197a62 9500
f11781c5 9501done
ad6254c5 9502
7a197a62 9503
f11781c5
AK
9504################################################################################
9505if test x$READLINE != xno; then
9506 lvm_saved_libs=$LIBS
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9508$as_echo_n "checking for library containing tgetent... " >&6; }
9509if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9510 $as_echo_n "(cached) " >&6
ad6254c5 9511else
f11781c5
AK
9512 ac_func_search_save_LIBS=$LIBS
9513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514/* end confdefs.h. */
ad6254c5 9515
f11781c5
AK
9516/* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519#ifdef __cplusplus
9520extern "C"
9521#endif
9522char tgetent ();
9523int
9524main ()
9525{
9526return tgetent ();
9527 ;
9528 return 0;
9529}
ad6254c5 9530_ACEOF
f11781c5
AK
9531for ac_lib in '' tinfo ncurses curses termcap termlib; do
9532 if test -z "$ac_lib"; then
9533 ac_res="none required"
9534 else
9535 ac_res=-l$ac_lib
9536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9537 fi
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 ac_cv_search_tgetent=$ac_res
9540fi
9541rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext
9543 if test "${ac_cv_search_tgetent+set}" = set; then :
9544 break
9545fi
9546done
9547if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9548
80992638 9549else
f11781c5 9550 ac_cv_search_tgetent=no
b896caa1 9551fi
f11781c5
AK
9552rm conftest.$ac_ext
9553LIBS=$ac_func_search_save_LIBS
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9556$as_echo "$ac_cv_search_tgetent" >&6; }
9557ac_res=$ac_cv_search_tgetent
9558if test "$ac_res" != no; then :
9559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9560 READLINE_LIBS=$ac_cv_search_tgetent
9561else
ad6254c5 9562
f11781c5
AK
9563 if test "$READLINE" = yes; then
9564 as_fn_error $? "termcap could not be found which is required for the
9565--enable-readline option (which is enabled by default). Either disable readline
9566support with --disable-readline or download and install termcap from:
9567 ftp.gnu.org/gnu/termcap
9568Note: if you are using precompiled packages you will also need the development
9569 package as well (which may be called termcap-devel or something similar).
9570Note: (n)curses also seems to work as a substitute for termcap. This was
9571 not found either - but you could try installing that as well." "$LINENO" 5
9572 fi
9573fi
b896caa1 9574
f11781c5
AK
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9576$as_echo_n "checking for readline in -lreadline... " >&6; }
9577if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9578 $as_echo_n "(cached) " >&6
795ca3e5 9579else
f11781c5
AK
9580 ac_check_lib_save_LIBS=$LIBS
9581LIBS="-lreadline $LIBS"
9582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9583/* end confdefs.h. */
8a2fc586 9584
f11781c5
AK
9585/* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588#ifdef __cplusplus
9589extern "C"
ad6254c5 9590#endif
f11781c5
AK
9591char readline ();
9592int
9593main ()
9594{
9595return readline ();
9596 ;
9597 return 0;
9598}
9599_ACEOF
9600if ac_fn_c_try_link "$LINENO"; then :
9601 ac_cv_lib_readline_readline=yes
9602else
9603 ac_cv_lib_readline_readline=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607LIBS=$ac_check_lib_save_LIBS
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9610$as_echo "$ac_cv_lib_readline_readline" >&6; }
9611if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9612
8a2fc586 9613
f11781c5
AK
9614$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9615
9616 LIBS=$lvm_saved_libs
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9618$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9619if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621else
9622 ac_check_lib_save_LIBS=$LIBS
9623LIBS="-lreadline $LIBS"
9624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625/* end confdefs.h. */
8a2fc586 9626
7a197a62
AK
9627/* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9630#ifdef __cplusplus
9631extern "C"
ad6254c5 9632#endif
f11781c5 9633char rl_line_buffer ();
ad6254c5
AK
9634int
9635main ()
9636{
f11781c5 9637return rl_line_buffer ();
ad6254c5
AK
9638 ;
9639 return 0;
9640}
9641_ACEOF
f11781c5
AK
9642if ac_fn_c_try_link "$LINENO"; then :
9643 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9644else
f11781c5
AK
9645 ac_cv_lib_readline_rl_line_buffer=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649LIBS=$ac_check_lib_save_LIBS
9650fi
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9652$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9653if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9654 READLINE_LIBS="-lreadline"
9655else
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9658$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9659 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9660
ad6254c5 9661fi
7a197a62 9662
f11781c5
AK
9663else
9664
9665 READLINE_LIBS=
9666 if test "$READLINE" = yes; then
9667 as_fn_error $? "GNU Readline could not be found which is required for the
9668--enable-readline option (which is enabled by default). Either disable readline
9669support with --disable-readline or download and install readline from:
9670 ftp.gnu.org/gnu/readline
9671Note: if you are using precompiled packages you will also need the development
9672package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9673 fi
ad6254c5 9674fi
f11781c5
AK
9675
9676 LIBS="$READLINE_LIBS $lvm_saved_libs"
9677 for ac_func in rl_completion_matches
9678do :
9679 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9680if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9681 cat >>confdefs.h <<_ACEOF
f11781c5 9682#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9683_ACEOF
9684
ad6254c5
AK
9685fi
9686done
9687
f11781c5 9688 LIBS=$lvm_saved_libs
ad6254c5
AK
9689fi
9690
f11781c5
AK
9691################################################################################
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9693$as_echo_n "checking whether to enable internationalisation... " >&6; }
9694# Check whether --enable-nls was given.
9695if test "${enable_nls+set}" = set; then :
9696 enableval=$enable_nls; INTL=$enableval
9697else
9698 INTL=no
9699fi
d911ec67 9700
f11781c5
AK
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9702$as_echo "$INTL" >&6; }
9703
9704if test x$INTL = xyes; then
9705# FIXME - Move this - can be device-mapper too
9706 INTL_PACKAGE="lvm2"
9707 # Extract the first word of "msgfmt", so it can be a program name with args.
9708set dummy msgfmt; ac_word=$2
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710$as_echo_n "checking for $ac_word... " >&6; }
9711if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9712 $as_echo_n "(cached) " >&6
d911ec67 9713else
f11781c5
AK
9714 case $MSGFMT in
9715 [\\/]* | ?:[\\/]*)
9716 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9717 ;;
9718 *)
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720for as_dir in $PATH
9721do
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 break 2
9729 fi
9730done
9731 done
9732IFS=$as_save_IFS
9733
9734 ;;
d911ec67 9735esac
f11781c5
AK
9736fi
9737MSGFMT=$ac_cv_path_MSGFMT
9738if test -n "$MSGFMT"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9740$as_echo "$MSGFMT" >&6; }
d911ec67 9741else
f11781c5
AK
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9744fi
d911ec67 9745
f11781c5
AK
9746
9747 if [ "x$MSGFMT" == x ];
9748 then as_fn_error $? "msgfmt not found in path $PATH
9749 " "$LINENO" 5
9750 fi;
9751
9752
9753# Check whether --with-localedir was given.
9754if test "${with_localedir+set}" = set; then :
9755 withval=$with_localedir; LOCALEDIR=$withval
9756else
9757 LOCALEDIR='${prefix}/share/locale'
9758fi
9759
9760fi
9761
9762################################################################################
9763
9764# Check whether --with-confdir was given.
9765if test "${with_confdir+set}" = set; then :
9766 withval=$with_confdir; CONFDIR=$withval
9767else
9768 CONFDIR="/etc"
9769fi
9770
9771
9772
9773# Check whether --with-staticdir was given.
9774if test "${with_staticdir+set}" = set; then :
9775 withval=$with_staticdir; STATICDIR=$withval
9776else
9777 STATICDIR='${exec_prefix}/sbin'
9778fi
9779
9780
9781
9782# Check whether --with-usrlibdir was given.
9783if test "${with_usrlibdir+set}" = set; then :
9784 withval=$with_usrlibdir; usrlibdir=$withval
9785else
9786 usrlibdir='${prefix}/lib'
d911ec67
AK
9787fi
9788
d911ec67 9789
d911ec67 9790
f11781c5
AK
9791# Check whether --with-usrsbindir was given.
9792if test "${with_usrsbindir+set}" = set; then :
9793 withval=$with_usrsbindir; usrsbindir=$withval
9794else
9795 usrsbindir='${prefix}/sbin'
d911ec67
AK
9796fi
9797
d911ec67 9798
f11781c5 9799################################################################################
d911ec67 9800
f11781c5
AK
9801# Check whether --with-udev_prefix was given.
9802if test "${with_udev_prefix+set}" = set; then :
9803 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9804else
f11781c5 9805 udev_prefix='${exec_prefix}'
d911ec67 9806fi
d911ec67 9807
f11781c5
AK
9808
9809
9810# Check whether --with-udevdir was given.
9811if test "${with_udevdir+set}" = set; then :
9812 withval=$with_udevdir; udevdir=$withval
9813else
9814 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9815fi
f11781c5
AK
9816
9817
e587cb6a
PR
9818################################################################################
9819
9820# Check whether --with-systemdsystemunitdir was given.
9821if test "${with_systemdsystemunitdir+set}" = set; then :
9822 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9823else
767ce95a
ZK
9824 test x$PKGCONFIG_INIT != x1 && pkg_config_init
9825 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
e587cb6a
PR
9826fi
9827
9828
9829if test -n "$pkg_systemdsystemunitdir"; then
9830 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9831fi
9832
9833if test -z "$systemdsystemunitdir"; then
9834 systemdsystemunitdir='/lib/systemd/system';
9835fi
4417a8bd
PR
9836################################################################################
9837
9838# Check whether --with-tmpfilesdir was given.
9839if test "${with_tmpfilesdir+set}" = set; then :
9840 withval=$with_tmpfilesdir; tmpfilesdir=$withval
9841else
9842 tmpfilesdir='${sysconfdir}/tmpfiles.d'
9843fi
9844
f11781c5
AK
9845################################################################################
9846if test x$READLINE = xyes; then
9847 for ac_header in readline/readline.h readline/history.h
9848do :
9849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9851if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9852 cat >>confdefs.h <<_ACEOF
9853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9854_ACEOF
9855
9856else
f11781c5 9857 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9858fi
9859
9860done
9861
9862fi
9863
f11781c5
AK
9864if test x$CLVMD != xnone; then
9865 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
9866do :
9867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9868ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9870 cat >>confdefs.h <<_ACEOF
9871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9872_ACEOF
ad6254c5 9873
f11781c5
AK
9874else
9875 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9876fi
7a197a62 9877
f11781c5 9878done
ad6254c5 9879
f11781c5
AK
9880 for ac_func in dup2 getmntent memmove select socket
9881do :
9882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9883ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9884if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9885 cat >>confdefs.h <<_ACEOF
9886#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9887_ACEOF
ad6254c5 9888
f11781c5
AK
9889else
9890 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9891fi
f11781c5 9892done
7a197a62 9893
f11781c5
AK
9894 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9895# -lseq on Dynix/PTX, -lgen on Unixware.
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9897$as_echo_n "checking for library containing getmntent... " >&6; }
9898if test "${ac_cv_search_getmntent+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900else
9901 ac_func_search_save_LIBS=$LIBS
9902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h. */
ad6254c5 9904
f11781c5
AK
9905/* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908#ifdef __cplusplus
9909extern "C"
9910#endif
9911char getmntent ();
9912int
9913main ()
9914{
9915return getmntent ();
9916 ;
9917 return 0;
9918}
9919_ACEOF
9920for ac_lib in '' sun seq gen; do
9921 if test -z "$ac_lib"; then
9922 ac_res="none required"
9923 else
9924 ac_res=-l$ac_lib
9925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9926 fi
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 ac_cv_search_getmntent=$ac_res
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext
9932 if test "${ac_cv_search_getmntent+set}" = set; then :
9933 break
9934fi
9935done
9936if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9937
ad6254c5 9938else
f11781c5 9939 ac_cv_search_getmntent=no
795ca3e5 9940fi
f11781c5
AK
9941rm conftest.$ac_ext
9942LIBS=$ac_func_search_save_LIBS
9943fi
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9945$as_echo "$ac_cv_search_getmntent" >&6; }
9946ac_res=$ac_cv_search_getmntent
9947if test "$ac_res" != no; then :
9948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9949 ac_cv_func_getmntent=yes
9950
9951$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9952
f11781c5
AK
9953else
9954 ac_cv_func_getmntent=no
8106cdd5 9955fi
f11781c5
AK
9956
9957
9958 for ac_header in sys/select.h sys/socket.h
9959do :
9960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9963 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9965_ACEOF
795ca3e5 9966
795ca3e5
AK
9967fi
9968
ad6254c5 9969done
80992638 9970
f11781c5
AK
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9972$as_echo_n "checking types of arguments for select... " >&6; }
9973if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9974 $as_echo_n "(cached) " >&6
83912faa 9975else
f11781c5
AK
9976 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9977 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9978 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9980/* end confdefs.h. */
9981$ac_includes_default
f11781c5
AK
9982#ifdef HAVE_SYS_SELECT_H
9983# include <sys/select.h>
9984#endif
9985#ifdef HAVE_SYS_SOCKET_H
9986# include <sys/socket.h>
9987#endif
9988
9989int
9990main ()
9991{
9992extern int select ($ac_arg1,
9993 $ac_arg234, $ac_arg234, $ac_arg234,
9994 $ac_arg5);
9995 ;
9996 return 0;
9997}
ad6254c5 9998_ACEOF
f11781c5
AK
9999if ac_fn_c_try_compile "$LINENO"; then :
10000 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 done
10004 done
10005done
10006# Provide a safe default value.
10007: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 10008
ad6254c5 10009fi
f11781c5
AK
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10011$as_echo "$ac_cv_func_select_args" >&6; }
10012ac_save_IFS=$IFS; IFS=','
10013set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10014IFS=$ac_save_IFS
10015shift
7a197a62 10016
f11781c5
AK
10017cat >>confdefs.h <<_ACEOF
10018#define SELECT_TYPE_ARG1 $1
10019_ACEOF
ad6254c5 10020
f11781c5
AK
10021
10022cat >>confdefs.h <<_ACEOF
10023#define SELECT_TYPE_ARG234 ($2)
ad6254c5 10024_ACEOF
f11781c5
AK
10025
10026
10027cat >>confdefs.h <<_ACEOF
10028#define SELECT_TYPE_ARG5 ($3)
ad6254c5 10029_ACEOF
ad6254c5 10030
f11781c5
AK
10031rm -f conftest*
10032
ad6254c5 10033fi
7a197a62 10034
f11781c5
AK
10035if test x$CLUSTER != xnone; then
10036 for ac_header in sys/socket.h sys/un.h
10037do :
10038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10039ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10041 cat >>confdefs.h <<_ACEOF
10042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10043_ACEOF
ad6254c5 10044
f11781c5
AK
10045else
10046 as_fn_error $? "bailing out" "$LINENO" 5
10047fi
10048
10049done
10050
10051 for ac_func in socket
10052do :
10053 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10054if test "x$ac_cv_func_socket" = x""yes; then :
10055 cat >>confdefs.h <<_ACEOF
10056#define HAVE_SOCKET 1
10057_ACEOF
7a197a62 10058
80992638 10059else
f11781c5 10060 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 10061fi
f11781c5 10062done
83912faa 10063
69792976 10064fi
f11781c5
AK
10065
10066if test x$DMEVENTD = xyes; then
10067 for ac_header in arpa/inet.h
10068do :
10069 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10070if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 10071 cat >>confdefs.h <<_ACEOF
f11781c5 10072#define HAVE_ARPA_INET_H 1
ad6254c5 10073_ACEOF
69792976 10074
69792976 10075else
f11781c5 10076 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
10077fi
10078
ad6254c5 10079done
69792976 10080
ad6254c5
AK
10081fi
10082
f11781c5
AK
10083if test x$HAVE_LIBDL = xyes; then
10084 for ac_header in dlfcn.h
10085do :
10086 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10087if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10088 cat >>confdefs.h <<_ACEOF
10089#define HAVE_DLFCN_H 1
a5f46f6a 10090_ACEOF
a5f46f6a 10091
f11781c5
AK
10092else
10093 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10094fi
10095
f11781c5 10096done
a5f46f6a 10097
a5f46f6a
AK
10098fi
10099
f11781c5
AK
10100if test x$INTL = xyes; then
10101 for ac_header in libintl.h
10102do :
10103 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10104if test "x$ac_cv_header_libintl_h" = x""yes; then :
10105 cat >>confdefs.h <<_ACEOF
10106#define HAVE_LIBINTL_H 1
10107_ACEOF
a5f46f6a 10108
a5f46f6a 10109else
f11781c5 10110 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 10111fi
f11781c5
AK
10112
10113done
a5f46f6a
AK
10114
10115fi
f11781c5
AK
10116
10117if test x$UDEV_SYNC = xyes; then
10118 for ac_header in sys/ipc.h sys/sem.h
10119do :
10120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10123 cat >>confdefs.h <<_ACEOF
10124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10125_ACEOF
10126
10127else
f11781c5 10128 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10129fi
10130
10131done
10132
10133fi
10134
a653923f
AK
10135################################################################################
10136# Extract the first word of "modprobe", so it can be a program name with args.
10137set dummy modprobe; ac_word=$2
f11781c5 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10139$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10140if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10141 $as_echo_n "(cached) " >&6
72b2cb61
AK
10142else
10143 case $MODPROBE_CMD in
10144 [\\/]* | ?:[\\/]*)
10145 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10146 ;;
10147 *)
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149for as_dir in $PATH
10150do
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
f11781c5 10153 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10155 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10157 break 2
10158 fi
10159done
f11781c5 10160 done
7a197a62 10161IFS=$as_save_IFS
72b2cb61
AK
10162
10163 ;;
10164esac
10165fi
10166MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10167if test -n "$MODPROBE_CMD"; then
f11781c5 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10169$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10170else
f11781c5 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10172$as_echo "no" >&6; }
72b2cb61
AK
10173fi
10174
a653923f 10175
7a197a62 10176
a653923f 10177if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10178
10179cat >>confdefs.h <<_ACEOF
10180#define MODPROBE_CMD "$MODPROBE_CMD"
10181_ACEOF
10182
a653923f
AK
10183fi
10184
b5c2529b 10185
a9b601e2
ZK
10186lvm_exec_prefix=$exec_prefix
10187test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10188test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 10189LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 10190
b5c2529b 10191cat >>confdefs.h <<_ACEOF
d2c11605 10192#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
10193_ACEOF
10194
10195
10196if test "$CLVMD" != none; then
10197 clvmd_prefix=$ac_default_prefix
d2c11605 10198 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
10199 test "$prefix" != NONE && clvmd_prefix=$prefix
10200
10201cat >>confdefs.h <<_ACEOF
d2c11605 10202#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
10203_ACEOF
10204
10205fi
10206
80992638 10207################################################################################
93bd259b
AK
10208if test "$BUILD_DMEVENTD" = yes; then
10209
10210# Check whether --with-dmeventd-pidfile was given.
f11781c5 10211if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10212 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10213else
71082be4 10214 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10215fi
10216
93bd259b 10217
71082be4
ZK
10218cat >>confdefs.h <<_ACEOF
10219#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10220_ACEOF
93bd259b 10221
71082be4 10222fi
93bd259b
AK
10223
10224if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10225
10226# Check whether --with-dmeventd-path was given.
f11781c5 10227if test "${with_dmeventd_path+set}" = set; then :
71082be4 10228 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10229else
71082be4 10230 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10231fi
10232
93bd259b 10233
71082be4
ZK
10234cat >>confdefs.h <<_ACEOF
10235#define DMEVENTD_PATH "$DMEVENTD_PATH"
10236_ACEOF
3399ae32 10237
71082be4 10238fi
3399ae32 10239
8bae0a1e
AK
10240
10241
8bae0a1e 10242# Check whether --with-default-run-dir was given.
f11781c5 10243if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10244 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10245else
10246 DEFAULT_RUN_DIR="/var/run/lvm"
10247fi
10248
10249cat >>confdefs.h <<_ACEOF
10250#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10251_ACEOF
10252
10253
71082be4 10254################################################################################
3399ae32
AK
10255
10256# Check whether --with-default-system-dir was given.
f11781c5 10257if test "${with_default_system_dir+set}" = set; then :
71082be4 10258 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10259else
71082be4 10260 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10261fi
10262
71082be4 10263
3399ae32
AK
10264cat >>confdefs.h <<_ACEOF
10265#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10266_ACEOF
10267
10268
10269
3399ae32 10270# Check whether --with-default-archive-subdir was given.
f11781c5 10271if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10272 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10273else
71082be4 10274 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10275fi
10276
71082be4 10277
3399ae32
AK
10278cat >>confdefs.h <<_ACEOF
10279#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10280_ACEOF
10281
10282
10283
3399ae32 10284# Check whether --with-default-backup-subdir was given.
f11781c5 10285if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10286 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10287else
71082be4 10288 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10289fi
10290
71082be4 10291
3399ae32
AK
10292cat >>confdefs.h <<_ACEOF
10293#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10294_ACEOF
10295
10296
10297
3399ae32 10298# Check whether --with-default-cache-subdir was given.
f11781c5 10299if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10300 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10301else
71082be4 10302 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10303fi
10304
71082be4 10305
3399ae32
AK
10306cat >>confdefs.h <<_ACEOF
10307#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10308_ACEOF
10309
10310
10311
3399ae32 10312# Check whether --with-default-locking-dir was given.
f11781c5 10313if test "${with_default_locking_dir+set}" = set; then :
71082be4 10314 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10315else
71082be4 10316 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10317fi
10318
71082be4 10319
3399ae32
AK
10320cat >>confdefs.h <<_ACEOF
10321#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10322_ACEOF
10323
10324
fea55602
DW
10325################################################################################
10326
10327# Check whether --with-default-data-alignment was given.
f11781c5 10328if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10329 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10330else
10331 DEFAULT_DATA_ALIGNMENT=1
10332fi
10333
10334
10335cat >>confdefs.h <<_ACEOF
10336#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10337_ACEOF
10338
10339
93bd259b 10340################################################################################
f11781c5 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10342$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10343
10344# Check whether --with-interface was given.
f11781c5 10345if test "${with_interface+set}" = set; then :
71082be4 10346 withval=$with_interface; interface=$withval
93bd259b 10347else
71082be4 10348 interface=ioctl
93bd259b
AK
10349fi
10350
10351if [ "x$interface" != xioctl ];
10352then
f11781c5 10353 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10354fi
f11781c5 10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10356$as_echo "$interface" >&6; }
93bd259b
AK
10357
10358################################################################################
db8b5af9 10359DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10360
10361cat >>confdefs.h <<_ACEOF
10362#define DM_LIB_VERSION $DM_LIB_VERSION
10363_ACEOF
10364
10365
db8b5af9 10366DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10367
db8b5af9 10368LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10369
db8b5af9 10370VER=`cat "$srcdir"/VERSION`
bf456146 10371LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10372VER=`echo "$VER" | $AWK '{print $1}'`
10373LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10374VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10375LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10376LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10377LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10378LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10379
80992638 10380################################################################################
fae0c576 10381
83912faa 10382
795ca3e5
AK
10383
10384
10385
10386
10387
10388
5a52dca9 10389
8ef2b021 10390
199e490e 10391
69792976
AK
10392
10393
10394
d0191583 10395
69792976 10396
8106cdd5
AK
10397
10398
10399
10400
10401
d68a82ec 10402
036f273a 10403
7d1552c9 10404
8106cdd5 10405
0a62c911 10406
8106cdd5 10407
4a7f3eb2 10408
4922197a
AK
10409
10410
d8ac0fbc 10411
1a9ea74d 10412
8a2fc586
AK
10413
10414
d0191583 10415
93bd259b
AK
10416
10417
10418
10419
10420
d0191583
JM
10421
10422
10423
10424
10425
8a2fc586 10426
19a2c6e0 10427
f7f0854e
ZK
10428
10429
3ceb7608 10430
8ce0cbda 10431
8b1a3214 10432
ec6a6fbe
AK
10433
10434
10435
10436
e2997b73
AK
10437
10438
10439
10440
10441
10442
a946372e
AK
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
ec6a6fbe 10454
cac52ca4 10455
d3c8211f 10456
7e3fe830 10457
a5f46f6a
AK
10458
10459
10460
572fefeb 10461
90c80887 10462
3399ae32
AK
10463
10464
10465
10466
10467
90c80887 10468
bf456146 10469
e1b8a236 10470
0878503f 10471
8fea97b7 10472
54b362f9 10473
b1f08e51 10474
d1e8046f 10475
fea55602 10476
c89bc357 10477
6e5c1f75 10478
3ba4a195 10479
d2c11605
ZK
10480
10481
cdd50823 10482
426fc742
PR
10483
10484
b6d7a484
AK
10485
10486
bf09a320 10487
e587cb6a 10488
b559a1e6 10489
4417a8bd 10490
f61cacad 10491
68f2de6d
AK
10492
10493
80992638 10494################################################################################
05fb5158 10495ac_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/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/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_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10496
ad6254c5 10497cat >confcache <<\_ACEOF
795ca3e5
AK
10498# This file is a shell script that caches the results of configure
10499# tests run on this system so they can be shared between configure
ad6254c5
AK
10500# scripts and configure runs, see configure's option --config-cache.
10501# It is not useful on other systems. If it contains results you don't
10502# want to keep, you may remove or edit it.
795ca3e5 10503#
ad6254c5
AK
10504# config.status only pays attention to the cache file if you give it
10505# the --recheck option to rerun configure.
795ca3e5 10506#
ad6254c5
AK
10507# `ac_cv_env_foo' variables (set or unset) will be overridden when
10508# loading this file, other *unset* `ac_cv_foo' will be assigned the
10509# following values.
10510
10511_ACEOF
10512
795ca3e5
AK
10513# The following way of writing the cache mishandles newlines in values,
10514# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10515# So, we kill variables containing newlines.
795ca3e5
AK
10516# Ultrix sh set writes to stderr and can't be redirected directly,
10517# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10518(
10519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10520 eval ac_val=\$$ac_var
10521 case $ac_val in #(
10522 *${as_nl}*)
10523 case $ac_var in #(
f11781c5 10524 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10525$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10526 esac
10527 case $ac_var in #(
10528 _ | IFS | as_nl) ;; #(
ec6a6fbe 10529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10530 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10531 esac ;;
10532 esac
10533 done
10534
ad6254c5 10535 (set) 2>&1 |
7a197a62
AK
10536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10537 *${as_nl}ac_space=\ *)
f11781c5
AK
10538 # `set' does not quote correctly, so add quotes: double-quote
10539 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10540 sed -n \
8a2fc586
AK
10541 "s/'/'\\\\''/g;
10542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10543 ;; #(
ad6254c5
AK
10544 *)
10545 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10547 ;;
7a197a62
AK
10548 esac |
10549 sort
10550) |
ad6254c5 10551 sed '
7a197a62 10552 /^ac_cv_env_/b end
ad6254c5 10553 t clear
7a197a62 10554 :clear
ad6254c5
AK
10555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10556 t end
7a197a62
AK
10557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10558 :end' >>confcache
10559if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10560 if test -w "$cache_file"; then
10561 test "x$cache_file" != "x/dev/null" &&
f11781c5 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10563$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10564 cat confcache >$cache_file
795ca3e5 10565 else
f11781c5 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10567$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10568 fi
10569fi
10570rm -f confcache
10571
795ca3e5
AK
10572test "x$prefix" = xNONE && prefix=$ac_default_prefix
10573# Let make expand exec_prefix.
10574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10575
72b2cb61 10576DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10577
10578ac_libobjs=
10579ac_ltlibobjs=
f11781c5 10580U=
ad6254c5
AK
10581for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10582 # 1. Remove the extension, and $U if already installed.
7a197a62 10583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10586 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10589done
10590LIBOBJS=$ac_libobjs
80992638 10591
ad6254c5
AK
10592LTLIBOBJS=$ac_ltlibobjs
10593
10594
10595
10596: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10597ac_write_fail=0
ad6254c5
AK
10598ac_clean_files_save=$ac_clean_files
10599ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10600{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10601$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10602as_write_fail=0
10603cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10604#! $SHELL
10605# Generated by $as_me.
795ca3e5 10606# Run this file to recreate the current configuration.
795ca3e5 10607# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10608# configure, is in config.log if it exists.
10609
10610debug=false
10611ac_cs_recheck=false
10612ac_cs_silent=false
ad6254c5 10613
f11781c5
AK
10614SHELL=\${CONFIG_SHELL-$SHELL}
10615export SHELL
10616_ASEOF
10617cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10618## -------------------- ##
10619## M4sh Initialization. ##
10620## -------------------- ##
ad6254c5 10621
25fbec5b
AK
10622# Be more Bourne compatible
10623DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10624if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10625 emulate sh
10626 NULLCMD=:
ec6a6fbe 10627 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10628 # is contrary to our usage. Disable this feature.
10629 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10630 setopt NO_GLOB_SUBST
10631else
f11781c5
AK
10632 case `(set -o) 2>/dev/null` in #(
10633 *posix*) :
10634 set -o posix ;; #(
10635 *) :
10636 ;;
25fbec5b 10637esac
7a197a62 10638fi
25fbec5b
AK
10639
10640
ec6a6fbe
AK
10641as_nl='
10642'
10643export as_nl
10644# Printing a long string crashes Solaris 7 /usr/bin/printf.
10645as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10648# Prefer a ksh shell builtin over an external printf program on Solaris,
10649# but without wasting forks for bash or zsh.
10650if test -z "$BASH_VERSION$ZSH_VERSION" \
10651 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10652 as_echo='print -r --'
10653 as_echo_n='print -rn --'
10654elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10655 as_echo='printf %s\n'
10656 as_echo_n='printf %s'
10657else
10658 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10659 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10660 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10661 else
ec6a6fbe
AK
10662 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10663 as_echo_n_body='eval
10664 arg=$1;
f11781c5 10665 case $arg in #(
ec6a6fbe
AK
10666 *"$as_nl"*)
10667 expr "X$arg" : "X\\(.*\\)$as_nl";
10668 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10669 esac;
10670 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10671 '
10672 export as_echo_n_body
10673 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10674 fi
ec6a6fbe
AK
10675 export as_echo_body
10676 as_echo='sh -c $as_echo_body as_echo'
10677fi
10678
10679# The user is always right.
10680if test "${PATH_SEPARATOR+set}" != set; then
10681 PATH_SEPARATOR=:
10682 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10683 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10684 PATH_SEPARATOR=';'
10685 }
ad6254c5
AK
10686fi
10687
ad6254c5 10688
7a197a62
AK
10689# IFS
10690# We need space, tab and new line, in precisely that order. Quoting is
10691# there to prevent editors from complaining about space-tab.
10692# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10693# splitting by setting IFS to empty value.)
7a197a62
AK
10694IFS=" "" $as_nl"
10695
10696# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10697case $0 in #((
7a197a62
AK
10698 *[\\/]* ) as_myself=$0 ;;
10699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700for as_dir in $PATH
10701do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
f11781c5
AK
10704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10705 done
7a197a62
AK
10706IFS=$as_save_IFS
10707
10708 ;;
10709esac
10710# We did not find ourselves, most probably we were run as `sh COMMAND'
10711# in which case we are not to be found in the path.
10712if test "x$as_myself" = x; then
10713 as_myself=$0
10714fi
10715if test ! -f "$as_myself"; then
ec6a6fbe 10716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10717 exit 1
7a197a62
AK
10718fi
10719
f11781c5
AK
10720# Unset variables that we do not need and which cause bugs (e.g. in
10721# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10722# suppresses any "Segmentation fault" message there. '((' could
10723# trigger a bug in pdksh 5.2.14.
10724for as_var in BASH_ENV ENV MAIL MAILPATH
10725do eval test x\${$as_var+set} = xset \
10726 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10727done
ad6254c5
AK
10728PS1='$ '
10729PS2='> '
10730PS4='+ '
10731
10732# NLS nuisances.
ec6a6fbe
AK
10733LC_ALL=C
10734export LC_ALL
10735LANGUAGE=C
10736export LANGUAGE
8106cdd5 10737
f11781c5
AK
10738# CDPATH.
10739(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10740
10741
10742# as_fn_error STATUS ERROR [LINENO LOG_FD]
10743# ----------------------------------------
10744# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10745# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10746# script with STATUS, using 1 if that was 0.
10747as_fn_error ()
10748{
10749 as_status=$1; test $as_status -eq 0 && as_status=1
10750 if test "$4"; then
10751 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10752 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10753 fi
10754 $as_echo "$as_me: error: $2" >&2
10755 as_fn_exit $as_status
10756} # as_fn_error
10757
10758
10759# as_fn_set_status STATUS
10760# -----------------------
10761# Set $? to STATUS, without forking.
10762as_fn_set_status ()
10763{
10764 return $1
10765} # as_fn_set_status
10766
10767# as_fn_exit STATUS
10768# -----------------
10769# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10770as_fn_exit ()
10771{
10772 set +e
10773 as_fn_set_status $1
10774 exit $1
10775} # as_fn_exit
10776
10777# as_fn_unset VAR
10778# ---------------
10779# Portably unset VAR.
10780as_fn_unset ()
10781{
10782 { eval $1=; unset $1;}
10783}
10784as_unset=as_fn_unset
10785# as_fn_append VAR VALUE
10786# ----------------------
10787# Append the text in VALUE to the end of the definition contained in VAR. Take
10788# advantage of any shell optimizations that allow amortized linear growth over
10789# repeated appends, instead of the typical quadratic growth present in naive
10790# implementations.
10791if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10792 eval 'as_fn_append ()
10793 {
10794 eval $1+=\$2
10795 }'
10796else
10797 as_fn_append ()
10798 {
10799 eval $1=\$$1\$2
10800 }
10801fi # as_fn_append
10802
10803# as_fn_arith ARG...
10804# ------------------
10805# Perform arithmetic evaluation on the ARGs, and store the result in the
10806# global $as_val. Take advantage of shells that can avoid forks. The arguments
10807# must be portable across $(()) and expr.
10808if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10809 eval 'as_fn_arith ()
10810 {
10811 as_val=$(( $* ))
10812 }'
10813else
10814 as_fn_arith ()
10815 {
10816 as_val=`expr "$@" || test $? -eq 1`
10817 }
10818fi # as_fn_arith
10819
10820
7a197a62
AK
10821if expr a : '\(a\)' >/dev/null 2>&1 &&
10822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10823 as_expr=expr
10824else
10825 as_expr=false
10826fi
8106cdd5 10827
7a197a62 10828if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10829 as_basename=basename
10830else
10831 as_basename=false
10832fi
10833
f11781c5
AK
10834if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10835 as_dirname=dirname
10836else
10837 as_dirname=false
10838fi
ad6254c5 10839
7a197a62 10840as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10841$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10842 X"$0" : 'X\(//\)$' \| \
7a197a62 10843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10844$as_echo X/"$0" |
7a197a62
AK
10845 sed '/^.*\/\([^/][^/]*\)\/*$/{
10846 s//\1/
10847 q
10848 }
10849 /^X\/\(\/\/\)$/{
10850 s//\1/
10851 q
10852 }
10853 /^X\/\(\/\).*/{
10854 s//\1/
10855 q
10856 }
10857 s/.*/./; q'`
ad6254c5 10858
f11781c5
AK
10859# Avoid depending upon Character Ranges.
10860as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10861as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10862as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10863as_cr_digits='0123456789'
10864as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10865
10866ECHO_C= ECHO_N= ECHO_T=
f11781c5 10867case `echo -n x` in #(((((
7a197a62 10868-n*)
f11781c5 10869 case `echo 'xy\c'` in
7a197a62 10870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10871 xy) ECHO_C='\c';;
10872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10873 ECHO_T=' ';;
7a197a62
AK
10874 esac;;
10875*)
10876 ECHO_N='-n';;
ad6254c5 10877esac
80992638 10878
ad6254c5 10879rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10880if test -d conf$$.dir; then
10881 rm -f conf$$.dir/conf$$.file
10882else
10883 rm -f conf$$.dir
ec6a6fbe
AK
10884 mkdir conf$$.dir 2>/dev/null
10885fi
10886if (echo >conf$$.file) 2>/dev/null; then
10887 if ln -s conf$$.file conf$$ 2>/dev/null; then
10888 as_ln_s='ln -s'
10889 # ... but there are two gotchas:
10890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10892 # In both cases, we have to default to `cp -p'.
10893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10894 as_ln_s='cp -p'
10895 elif ln conf$$.file conf$$ 2>/dev/null; then
10896 as_ln_s=ln
10897 else
ad6254c5 10898 as_ln_s='cp -p'
ec6a6fbe 10899 fi
ad6254c5
AK
10900else
10901 as_ln_s='cp -p'
10902fi
7a197a62
AK
10903rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10904rmdir conf$$.dir 2>/dev/null
8106cdd5 10905
f11781c5
AK
10906
10907# as_fn_mkdir_p
10908# -------------
10909# Create "$as_dir" as a directory, including parents if necessary.
10910as_fn_mkdir_p ()
10911{
10912
10913 case $as_dir in #(
10914 -*) as_dir=./$as_dir;;
10915 esac
10916 test -d "$as_dir" || eval $as_mkdir_p || {
10917 as_dirs=
10918 while :; do
10919 case $as_dir in #(
10920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10921 *) as_qdir=$as_dir;;
10922 esac
10923 as_dirs="'$as_qdir' $as_dirs"
10924 as_dir=`$as_dirname -- "$as_dir" ||
10925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10926 X"$as_dir" : 'X\(//\)[^/]' \| \
10927 X"$as_dir" : 'X\(//\)$' \| \
10928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10929$as_echo X"$as_dir" |
10930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10931 s//\1/
10932 q
10933 }
10934 /^X\(\/\/\)[^/].*/{
10935 s//\1/
10936 q
10937 }
10938 /^X\(\/\/\)$/{
10939 s//\1/
10940 q
10941 }
10942 /^X\(\/\).*/{
10943 s//\1/
10944 q
10945 }
10946 s/.*/./; q'`
10947 test -d "$as_dir" && break
10948 done
10949 test -z "$as_dirs" || eval "mkdir $as_dirs"
10950 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10951
10952
10953} # as_fn_mkdir_p
ad6254c5 10954if mkdir -p . 2>/dev/null; then
f11781c5 10955 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10956else
8a2fc586 10957 test -d ./-p && rmdir ./-p
ad6254c5
AK
10958 as_mkdir_p=false
10959fi
10960
25fbec5b
AK
10961if test -x / >/dev/null 2>&1; then
10962 as_test_x='test -x'
7a197a62 10963else
25fbec5b
AK
10964 if ls -dL / >/dev/null 2>&1; then
10965 as_ls_L_option=L
10966 else
10967 as_ls_L_option=
10968 fi
10969 as_test_x='
10970 eval sh -c '\''
10971 if test -d "$1"; then
ec6a6fbe 10972 test -d "$1/.";
25fbec5b 10973 else
f11781c5 10974 case $1 in #(
ec6a6fbe 10975 -*)set "./$1";;
25fbec5b 10976 esac;
f11781c5 10977 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10978 ???[sx]*):;;*)false;;esac;fi
10979 '\'' sh
10980 '
7a197a62 10981fi
25fbec5b 10982as_executable_p=$as_test_x
ad6254c5
AK
10983
10984# Sed expression to map a string onto a valid CPP name.
8a2fc586 10985as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10986
10987# Sed expression to map a string onto a valid variable name.
8a2fc586 10988as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10989
10990
ad6254c5 10991exec 6>&1
f11781c5
AK
10992## ----------------------------------- ##
10993## Main body of $CONFIG_STATUS script. ##
10994## ----------------------------------- ##
10995_ASEOF
10996test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10997
f11781c5
AK
10998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10999# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 11000# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11001# values after options handling.
11002ac_log="
ad6254c5 11003This file was extended by $as_me, which was
f11781c5 11004generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
11005
11006 CONFIG_FILES = $CONFIG_FILES
11007 CONFIG_HEADERS = $CONFIG_HEADERS
11008 CONFIG_LINKS = $CONFIG_LINKS
11009 CONFIG_COMMANDS = $CONFIG_COMMANDS
11010 $ $0 $@
11011
7a197a62
AK
11012on `(hostname || uname -n) 2>/dev/null | sed 1q`
11013"
11014
ad6254c5
AK
11015_ACEOF
11016
ec6a6fbe
AK
11017case $ac_config_files in *"
11018"*) set x $ac_config_files; shift; ac_config_files=$*;;
11019esac
11020
11021case $ac_config_headers in *"
11022"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11023esac
11024
11025
11026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11027# Files that config.status was made for.
68f2de6d
AK
11028config_files="$ac_config_files"
11029config_headers="$ac_config_headers"
ad6254c5 11030
7a197a62 11031_ACEOF
ad6254c5 11032
ec6a6fbe 11033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 11034ac_cs_usage="\
f11781c5
AK
11035\`$as_me' instantiates files and other configuration actions
11036from templates according to the current configuration. Unless the files
11037and actions are specified as TAGs, all are instantiated by default.
ad6254c5 11038
f11781c5 11039Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
11040
11041 -h, --help print this help, then exit
25fbec5b 11042 -V, --version print version number and configuration settings, then exit
f11781c5 11043 --config print configuration, then exit
ec6a6fbe
AK
11044 -q, --quiet, --silent
11045 do not print progress messages
ad6254c5
AK
11046 -d, --debug don't remove temporary files
11047 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
11048 --file=FILE[:TEMPLATE]
11049 instantiate the configuration file FILE
11050 --header=FILE[:TEMPLATE]
11051 instantiate the configuration header FILE
ad6254c5
AK
11052
11053Configuration files:
11054$config_files
11055
72b2cb61
AK
11056Configuration headers:
11057$config_headers
11058
f11781c5 11059Report bugs to the package provider."
ad6254c5 11060
7a197a62 11061_ACEOF
ec6a6fbe 11062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 11063ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
11064ac_cs_version="\\
11065config.status
f11781c5
AK
11066configured by $0, generated by GNU Autoconf 2.66,
11067 with options \\"\$ac_cs_config\\"
ad6254c5 11068
f11781c5 11069Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
11070This config.status script is free software; the Free Software Foundation
11071gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11072
11073ac_pwd='$ac_pwd'
11074srcdir='$srcdir'
11075INSTALL='$INSTALL'
fddafd51 11076MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
11077AWK='$AWK'
11078test -n "\$AWK" || AWK=awk
ad6254c5
AK
11079_ACEOF
11080
ec6a6fbe
AK
11081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11082# The default lists apply if the user does not specify any file.
ad6254c5
AK
11083ac_need_defaults=:
11084while test $# != 0
11085do
11086 case $1 in
11087 --*=*)
7a197a62
AK
11088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11090 ac_shift=:
11091 ;;
7a197a62 11092 *)
ad6254c5
AK
11093 ac_option=$1
11094 ac_optarg=$2
11095 ac_shift=shift
11096 ;;
ad6254c5
AK
11097 esac
11098
11099 case $ac_option in
11100 # Handling of the options.
ad6254c5
AK
11101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11102 ac_cs_recheck=: ;;
7a197a62 11103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 11104 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
11105 --config | --confi | --conf | --con | --co | --c )
11106 $as_echo "$ac_cs_config"; exit ;;
7a197a62 11107 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11108 debug=: ;;
11109 --file | --fil | --fi | --f )
11110 $ac_shift
ec6a6fbe
AK
11111 case $ac_optarg in
11112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11113 esac
f11781c5 11114 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
11115 ac_need_defaults=false;;
11116 --header | --heade | --head | --hea )
11117 $ac_shift
ec6a6fbe
AK
11118 case $ac_optarg in
11119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11120 esac
f11781c5 11121 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 11122 ac_need_defaults=false;;
7a197a62
AK
11123 --he | --h)
11124 # Conflict between --help and --header
f11781c5
AK
11125 as_fn_error $? "ambiguous option: \`$1'
11126Try \`$0 --help' for more information.";;
7a197a62 11127 --help | --hel | -h )
ec6a6fbe 11128 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11131 ac_cs_silent=: ;;
11132
11133 # This is an error.
f11781c5
AK
11134 -*) as_fn_error $? "unrecognized option: \`$1'
11135Try \`$0 --help' for more information." ;;
ad6254c5 11136
f11781c5 11137 *) as_fn_append ac_config_targets " $1"
7a197a62 11138 ac_need_defaults=false ;;
ad6254c5
AK
11139
11140 esac
11141 shift
11142done
11143
11144ac_configure_extra_args=
11145
11146if $ac_cs_silent; then
11147 exec 6>/dev/null
11148 ac_configure_extra_args="$ac_configure_extra_args --silent"
11149fi
11150
11151_ACEOF
ec6a6fbe 11152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11153if \$ac_cs_recheck; then
ec6a6fbe
AK
11154 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11155 shift
11156 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11157 CONFIG_SHELL='$SHELL'
7a197a62 11158 export CONFIG_SHELL
ec6a6fbe 11159 exec "\$@"
ad6254c5
AK
11160fi
11161
11162_ACEOF
ec6a6fbe 11163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11164exec 5>>config.log
11165{
11166 echo
11167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11168## Running $as_me. ##
11169_ASBOX
ec6a6fbe 11170 $as_echo "$ac_log"
7a197a62 11171} >&5
ad6254c5 11172
7a197a62 11173_ACEOF
ec6a6fbe 11174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11175_ACEOF
ad6254c5 11176
ec6a6fbe 11177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11178
11179# Handling of arguments.
ad6254c5
AK
11180for ac_config_target in $ac_config_targets
11181do
7a197a62
AK
11182 case $ac_config_target in
11183 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11184 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11185 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11186 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11187 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11188 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11189 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11190 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11191 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11192 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 11193 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
11194 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11195 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 11196 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
cdd50823 11197 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 11198 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11199 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11200 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11201 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11202 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11203 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11204 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11205 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11206 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11207 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11208 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 11209 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 11210 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 11211 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
7126d8c2
AK
11212 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
11213 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
11214 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
93bd259b
AK
11215 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11216 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11217 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11218 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11219 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11220 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11221 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11222 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
a30491b2 11223 "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
dac3c36f 11224 "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
da532741 11225 "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
595eaf92 11226 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
11227 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11228 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
4417a8bd 11229 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
7a197a62 11230 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11231 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11232 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 11233 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 11234 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11235 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11236 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11237 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11238 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11239
f11781c5 11240 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11241 esac
ad6254c5
AK
11242done
11243
7a197a62 11244
ad6254c5
AK
11245# If the user did not use the arguments to specify the items to instantiate,
11246# then the envvar interface is used. Set only those that are not.
11247# We use the long form for the default assignment because of an extremely
11248# bizarre bug on SunOS 4.1.3.
11249if $ac_need_defaults; then
11250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11252fi
11253
11254# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11255# simply because there is no reason against having it here, and in addition,
ad6254c5 11256# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11257# Hook for its removal unless debugging.
11258# Note that there is a small window in which the directory will not be cleaned:
11259# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11260$debug ||
11261{
7a197a62
AK
11262 tmp=
11263 trap 'exit_status=$?
11264 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11265' 0
f11781c5 11266 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11267}
ad6254c5
AK
11268# Create a (secure) tmp directory for tmp files.
11269
11270{
7a197a62 11271 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11272 test -n "$tmp" && test -d "$tmp"
11273} ||
11274{
7a197a62
AK
11275 tmp=./conf$$-$RANDOM
11276 (umask 077 && mkdir "$tmp")
f11781c5 11277} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11278
ec6a6fbe
AK
11279# Set up the scripts for CONFIG_FILES section.
11280# No need to generate them if there are no CONFIG_FILES.
11281# This happens for instance with `./config.status config.h'.
1995c9ff 11282if test -n "$CONFIG_FILES"; then
7a197a62 11283
68f2de6d 11284
f11781c5
AK
11285ac_cr=`echo X | tr X '\015'`
11286# On cygwin, bash can eat \r inside `` if the user requested igncr.
11287# But we know of no other shell where ac_cr would be empty at this
11288# point, so we can use a bashism as a fallback.
11289if test "x$ac_cr" = x; then
11290 eval ac_cr=\$\'\\r\'
11291fi
ec6a6fbe
AK
11292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11294 ac_cs_awk_cr='\\r'
11295else
11296 ac_cs_awk_cr=$ac_cr
1995c9ff 11297fi
7a197a62 11298
ec6a6fbe 11299echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11300_ACEOF
7a197a62 11301
8106cdd5 11302
ec6a6fbe
AK
11303{
11304 echo "cat >conf$$subs.awk <<_ACEOF" &&
11305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11306 echo "_ACEOF"
11307} >conf$$subs.sh ||
f11781c5
AK
11308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11309ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11310ac_delim='%!_!# '
11311for ac_last_try in false false false false false :; do
ec6a6fbe 11312 . ./conf$$subs.sh ||
f11781c5 11313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11314
11315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11316 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11317 break
11318 elif $ac_last_try; then
f11781c5 11319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11320 else
11321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11322 fi
11323done
ec6a6fbe
AK
11324rm -f conf$$subs.sh
11325
11326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11327cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11328_ACEOF
11329sed -n '
11330h
11331s/^/S["/; s/!.*/"]=/
11332p
11333g
11334s/^[^!]*!//
11335:repl
11336t repl
11337s/'"$ac_delim"'$//
11338t delim
11339:nl
11340h
f11781c5 11341s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11342t more1
11343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11344p
11345n
11346b repl
11347:more1
11348s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11349p
11350g
11351s/.\{148\}//
11352t nl
11353:delim
11354h
f11781c5 11355s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11356t more2
11357s/["\\]/\\&/g; s/^/"/; s/$/"/
11358p
11359b
11360:more2
11361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11362p
11363g
11364s/.\{148\}//
11365t delim
11366' <conf$$subs.awk | sed '
11367/^[^""]/{
11368 N
11369 s/\n//
11370}
11371' >>$CONFIG_STATUS || ac_write_fail=1
11372rm -f conf$$subs.awk
11373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11374_ACAWK
11375cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11376 for (key in S) S_is_set[key] = 1
11377 FS = "\a"
7a197a62 11378
ec6a6fbe
AK
11379}
11380{
11381 line = $ 0
11382 nfields = split(line, field, "@")
11383 substed = 0
11384 len = length(field[1])
11385 for (i = 2; i < nfields; i++) {
11386 key = field[i]
11387 keylen = length(key)
11388 if (S_is_set[key]) {
11389 value = S[key]
11390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11391 len += length(value) + length(field[++i])
11392 substed = 1
11393 } else
11394 len += 1 + keylen
11395 }
11396
11397 print line
11398}
fddafd51 11399
ec6a6fbe 11400_ACAWK
1995c9ff 11401_ACEOF
ec6a6fbe
AK
11402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11405else
11406 cat
11407fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11409_ACEOF
11410
f11781c5
AK
11411# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11412# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11413# trailing colons and then remove the whole line if VPATH becomes empty
11414# (actually we leave an empty line to preserve line numbers).
11415if test "x$srcdir" = x.; then
f11781c5
AK
11416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11417h
11418s///
11419s/^/:/
11420s/[ ]*$/:/
11421s/:\$(srcdir):/:/g
11422s/:\${srcdir}:/:/g
11423s/:@srcdir@:/:/g
11424s/^:*//
7a197a62 11425s/:*$//
f11781c5
AK
11426x
11427s/\(=[ ]*\).*/\1/
11428G
11429s/\n//
7a197a62
AK
11430s/^[^=]*=[ ]*$//
11431}'
11432fi
11433
ec6a6fbe 11434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11435fi # test -n "$CONFIG_FILES"
11436
ec6a6fbe
AK
11437# Set up the scripts for CONFIG_HEADERS section.
11438# No need to generate them if there are no CONFIG_HEADERS.
11439# This happens for instance with `./config.status Makefile'.
11440if test -n "$CONFIG_HEADERS"; then
11441cat >"$tmp/defines.awk" <<\_ACAWK ||
11442BEGIN {
11443_ACEOF
11444
11445# Transform confdefs.h into an awk script `defines.awk', embedded as
11446# here-document in config.status, that substitutes the proper values into
11447# config.h.in to produce config.h.
11448
11449# Create a delimiter string that does not exist in confdefs.h, to ease
11450# handling of long lines.
11451ac_delim='%!_!# '
11452for ac_last_try in false false :; do
11453 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11454 if test -z "$ac_t"; then
11455 break
11456 elif $ac_last_try; then
f11781c5 11457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11458 else
11459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11460 fi
11461done
11462
11463# For the awk script, D is an array of macro values keyed by name,
11464# likewise P contains macro parameters if any. Preserve backslash
11465# newline sequences.
11466
11467ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11468sed -n '
11469s/.\{148\}/&'"$ac_delim"'/g
11470t rset
11471:rset
11472s/^[ ]*#[ ]*define[ ][ ]*/ /
11473t def
11474d
11475:def
11476s/\\$//
11477t bsnl
11478s/["\\]/\\&/g
11479s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11480D["\1"]=" \3"/p
11481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11482d
11483:bsnl
11484s/["\\]/\\&/g
11485s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11486D["\1"]=" \3\\\\\\n"\\/p
11487t cont
11488s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11489t cont
11490d
11491:cont
11492n
11493s/.\{148\}/&'"$ac_delim"'/g
11494t clear
11495:clear
11496s/\\$//
11497t bsnlc
11498s/["\\]/\\&/g; s/^/"/; s/$/"/p
11499d
11500:bsnlc
11501s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11502b cont
11503' <confdefs.h | sed '
11504s/'"$ac_delim"'/"\\\
11505"/g' >>$CONFIG_STATUS || ac_write_fail=1
11506
11507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508 for (key in D) D_is_set[key] = 1
11509 FS = "\a"
11510}
11511/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11512 line = \$ 0
11513 split(line, arg, " ")
11514 if (arg[1] == "#") {
11515 defundef = arg[2]
11516 mac1 = arg[3]
11517 } else {
11518 defundef = substr(arg[1], 2)
11519 mac1 = arg[2]
11520 }
11521 split(mac1, mac2, "(") #)
11522 macro = mac2[1]
11523 prefix = substr(line, 1, index(line, defundef) - 1)
11524 if (D_is_set[macro]) {
11525 # Preserve the white space surrounding the "#".
11526 print prefix "define", macro P[macro] D[macro]
11527 next
11528 } else {
11529 # Replace #undef with comments. This is necessary, for example,
11530 # in the case of _POSIX_SOURCE, which is predefined and required
11531 # on some systems where configure will not decide to define it.
11532 if (defundef == "undef") {
11533 print "/*", prefix defundef, macro, "*/"
11534 next
11535 }
11536 }
11537}
11538{ print }
11539_ACAWK
11540_ACEOF
11541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11543fi # test -n "$CONFIG_HEADERS"
11544
7a197a62 11545
ec6a6fbe
AK
11546eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11547shift
11548for ac_tag
7a197a62
AK
11549do
11550 case $ac_tag in
11551 :[FHLC]) ac_mode=$ac_tag; continue;;
11552 esac
11553 case $ac_mode$ac_tag in
11554 :[FHL]*:*);;
f11781c5 11555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11556 :[FH]-) ac_tag=-:-;;
11557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11558 esac
11559 ac_save_IFS=$IFS
11560 IFS=:
11561 set x $ac_tag
11562 IFS=$ac_save_IFS
11563 shift
11564 ac_file=$1
11565 shift
11566
11567 case $ac_mode in
11568 :L) ac_source=$1;;
11569 :[FH])
11570 ac_file_inputs=
11571 for ac_f
11572 do
11573 case $ac_f in
11574 -) ac_f="$tmp/stdin";;
11575 *) # Look for the file first in the build tree, then in the source tree
11576 # (if the path is not absolute). The absolute path cannot be DOS-style,
11577 # because $ac_f cannot contain `:'.
11578 test -f "$ac_f" ||
11579 case $ac_f in
11580 [\\/$]*) false;;
11581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11582 esac ||
f11781c5 11583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11584 esac
ec6a6fbe 11585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11586 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11587 done
11588
11589 # Let's still pretend it is `configure' which instantiates (i.e., don't
11590 # use $as_me), people would be surprised to read:
11591 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11592 configure_input='Generated from '`
11593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11594 `' by configure.'
7a197a62
AK
11595 if test x"$ac_file" != x-; then
11596 configure_input="$ac_file. $configure_input"
f11781c5 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11598$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11599 fi
ec6a6fbe
AK
11600 # Neutralize special characters interpreted by sed in replacement strings.
11601 case $configure_input in #(
11602 *\&* | *\|* | *\\* )
11603 ac_sed_conf_input=`$as_echo "$configure_input" |
11604 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11605 *) ac_sed_conf_input=$configure_input;;
11606 esac
7a197a62
AK
11607
11608 case $ac_tag in
ec6a6fbe 11609 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11611 esac
11612 ;;
80992638 11613 esac
8106cdd5 11614
7a197a62 11615 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11617 X"$ac_file" : 'X\(//\)[^/]' \| \
11618 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11620$as_echo X"$ac_file" |
7a197a62
AK
11621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11622 s//\1/
11623 q
11624 }
11625 /^X\(\/\/\)[^/].*/{
11626 s//\1/
11627 q
11628 }
11629 /^X\(\/\/\)$/{
11630 s//\1/
11631 q
11632 }
11633 /^X\(\/\).*/{
11634 s//\1/
11635 q
11636 }
11637 s/.*/./; q'`
f11781c5 11638 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11639 ac_builddir=.
11640
7a197a62
AK
11641case "$ac_dir" in
11642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11643*)
ec6a6fbe 11644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11645 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11647 case $ac_top_builddir_sub in
11648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11650 esac ;;
11651esac
11652ac_abs_top_builddir=$ac_pwd
11653ac_abs_builddir=$ac_pwd$ac_dir_suffix
11654# for backward compatibility:
11655ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11656
11657case $srcdir in
7a197a62 11658 .) # We are building in place.
ad6254c5 11659 ac_srcdir=.
7a197a62
AK
11660 ac_top_srcdir=$ac_top_builddir_sub
11661 ac_abs_top_srcdir=$ac_pwd ;;
11662 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11663 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11664 ac_top_srcdir=$srcdir
11665 ac_abs_top_srcdir=$srcdir ;;
11666 *) # Relative name.
11667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11668 ac_top_srcdir=$ac_top_build_prefix$srcdir
11669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11670esac
7a197a62 11671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11672
ad6254c5 11673
7a197a62
AK
11674 case $ac_mode in
11675 :F)
11676 #
11677 # CONFIG_FILE
11678 #
ad6254c5
AK
11679
11680 case $INSTALL in
11681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11682 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11683 esac
fddafd51
ZK
11684 ac_MKDIR_P=$MKDIR_P
11685 case $MKDIR_P in
11686 [\\/$]* | ?:[\\/]* ) ;;
11687 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11688 esac
7a197a62 11689_ACEOF
795ca3e5 11690
ec6a6fbe 11691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11692# If the template does not know about datarootdir, expand it.
11693# FIXME: This hack should be removed a few years after 2.60.
11694ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11695ac_sed_dataroot='
11696/datarootdir/ {
7a197a62
AK
11697 p
11698 q
11699}
11700/@datadir@/p
11701/@docdir@/p
11702/@infodir@/p
11703/@localedir@/p
f11781c5 11704/@mandir@/p'
ec6a6fbe 11705case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11706*datarootdir*) ac_datarootdir_seen=yes;;
11707*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11709$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11710_ACEOF
ec6a6fbe 11711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11712 ac_datarootdir_hack='
11713 s&@datadir@&$datadir&g
11714 s&@docdir@&$docdir&g
11715 s&@infodir@&$infodir&g
11716 s&@localedir@&$localedir&g
11717 s&@mandir@&$mandir&g
f11781c5 11718 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11719esac
11720_ACEOF
11721
11722# Neutralize VPATH when `$srcdir' = `.'.
11723# Shell code in configure.ac might set extrasub.
11724# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726ac_sed_extra="$ac_vpsub
ad6254c5
AK
11727$extrasub
11728_ACEOF
ec6a6fbe 11729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11730:t
11731/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11732s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11733s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11734s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11735s&@srcdir@&$ac_srcdir&;t t
11736s&@abs_srcdir@&$ac_abs_srcdir&;t t
11737s&@top_srcdir@&$ac_top_srcdir&;t t
11738s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11739s&@builddir@&$ac_builddir&;t t
11740s&@abs_builddir@&$ac_abs_builddir&;t t
11741s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11742s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11743s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11744$ac_datarootdir_hack
ec6a6fbe
AK
11745"
11746eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11748
11749test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11750 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11751 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11753which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11754$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11755which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11756
11757 rm -f "$tmp/stdin"
72b2cb61 11758 case $ac_file in
ec6a6fbe
AK
11759 -) cat "$tmp/out" && rm -f "$tmp/out";;
11760 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11761 esac \
f11781c5 11762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11763 ;;
11764 :H)
11765 #
11766 # CONFIG_HEADER
11767 #
72b2cb61 11768 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11769 {
11770 $as_echo "/* $configure_input */" \
11771 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11772 } >"$tmp/config.h" \
f11781c5 11773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11774 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11776$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11777 else
ec6a6fbe
AK
11778 rm -f "$ac_file"
11779 mv "$tmp/config.h" "$ac_file" \
f11781c5 11780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11781 fi
11782 else
ec6a6fbe
AK
11783 $as_echo "/* $configure_input */" \
11784 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11785 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11786 fi
7a197a62
AK
11787 ;;
11788
11789
11790 esac
11791
11792done # for ac_tag
795ca3e5 11793
795ca3e5 11794
f11781c5 11795as_fn_exit 0
ad6254c5 11796_ACEOF
ad6254c5
AK
11797ac_clean_files=$ac_clean_files_save
11798
ec6a6fbe 11799test $ac_write_fail = 0 ||
f11781c5 11800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11801
ad6254c5
AK
11802
11803# configure is writing to config.log, and then calls config.status.
11804# config.status does its own redirection, appending to config.log.
11805# Unfortunately, on DOS this fails, as config.log is still kept open
11806# by configure, so config.status won't be able to write to it; its
11807# output is simply discarded. So we exec the FD to /dev/null,
11808# effectively closing config.log, so it can be properly (re)opened and
11809# appended to by config.status. When coming back to configure, we
11810# need to make the FD available again.
11811if test "$no_create" != yes; then
11812 ac_cs_success=:
11813 ac_config_status_args=
11814 test "$silent" = yes &&
11815 ac_config_status_args="$ac_config_status_args --quiet"
11816 exec 5>/dev/null
11817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11818 exec 5>>config.log
11819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11820 # would make configure fail if this is the last instruction.
f11781c5 11821 $ac_cs_success || as_fn_exit 1
ad6254c5 11822fi
ec6a6fbe 11823if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11825$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11826fi
795ca3e5 11827
2dc95e1c
AK
11828
11829if test x$ODIRECT != xyes; then
f11781c5 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11831$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11832fi
This page took 1.953802 seconds and 5 git commands to generate.