]> sourceware.org Git - lvm2.git/blame - configure
dmsetup: allow --noflush with status/wait for thin
[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
5723db01 608LVMETAD_PIDFILE
6e5c1f75 609DMEVENTD_PIDFILE
23b059e7 610WRITE_INSTALL
b559a1e6 611UDEV_HAS_BUILTIN_BLKID
5723db01 612UDEV_RULE_EXEC_DETECTION
0878503f 613UDEV_SYNC
a5f46f6a 614UDEV_RULES
f7f0854e 615UDEV_PC
3ba4a195 616THIN
54b362f9 617TESTING
ec6a6fbe
AK
618STATIC_LINK
619STATICDIR
620SNAPSHOTS
f7f0854e 621SELINUX_PC
e1b8a236 622SELINUX_LIBS
cac52ca4 623REPLICATORS
539f4a77 624READLINE_LIBS
cac52ca4 625RAID
f30875db 626PTHREAD_LIBS
ec6a6fbe
AK
627POOL
628PKGCONFIG
606d0858 629OCFDIR
37ddf259 630OCF
ec6a6fbe
AK
631MIRRORS
632LVM_RELEASE_DATE
633LVM_RELEASE
d2c11605 634LVM_PATH
ec6a6fbe
AK
635LVM_PATCHLEVEL
636LVM_MINOR
637LVM_MAJOR
bf456146 638LVM_LIBAPI
ec6a6fbe 639LVM_VERSION
ec6a6fbe
AK
640LVM1_FALLBACK
641LVM1
642LOCALEDIR
643LIB_SUFFIX
644LDDEPS
645JOBS
646INTL_PACKAGE
647INTL
ec6a6fbe
AK
648HAVE_REALTIME
649HAVE_LIBDL
ec6a6fbe 650FSADM
bf09a320 651ELDFLAGS
ec6a6fbe
AK
652DM_LIB_PATCHLEVEL
653DM_LIB_VERSION
654DM_IOCTLS
655DM_DEVICE_UID
656DM_DEVICE_MODE
657DM_DEVICE_GID
658DM_COMPAT
d1e8046f 659DMEVENTD_PATH
ec6a6fbe 660DMEVENTD
19a2c6e0 661DL_LIBS
ec6a6fbe 662DEVMAPPER
b1f08e51 663DEFAULT_RUN_DIR
5723db01 664DEFAULT_DM_RUN_DIR
3399ae32 665DEFAULT_LOCK_DIR
fea55602 666DEFAULT_DATA_ALIGNMENT
3399ae32
AK
667DEFAULT_CACHE_SUBDIR
668DEFAULT_BACKUP_SUBDIR
669DEFAULT_ARCHIVE_SUBDIR
670DEFAULT_SYS_DIR
ec6a6fbe
AK
671DEBUG
672COPTIMISE_FLAG
e2997b73 673CONFDIR
ec6a6fbe 674CMDLIB
d2c11605 675CLVMD_PATH
c89bc357 676CLVMD_CMANAGERS
ec6a6fbe
AK
677CLVMD
678CLUSTER
679CLDWHOLEARCHIVE
680CLDNOWHOLEARCHIVE
681CLDFLAGS
cdd50823 682BUILD_LVMETAD
ec6a6fbe 683BUILD_DMEVENTD
66fd4529 684BUILD_CMIRRORD
572fefeb 685APPLIB
ec6a6fbe
AK
686MODPROBE_CMD
687MSGFMT
688LVM2CMD_LIB
572fefeb 689LVM2APP_LIB
d93275eb
PR
690UDEV_LIBS
691UDEV_CFLAGS
426fc742
PR
692CUNIT_LIBS
693CUNIT_CFLAGS
fd4728e1 694GENPNG
ec6a6fbe
AK
695GENHTML
696LCOV
90c80887
AK
697SACKPT_LIBS
698SACKPT_CFLAGS
a946372e
AK
699DLM_LIBS
700DLM_CFLAGS
e2997b73
AK
701CPG_LIBS
702CPG_CFLAGS
b6d7a484
AK
703CMAP_LIBS
704CMAP_CFLAGS
e2997b73
AK
705CONFDB_LIBS
706CONFDB_CFLAGS
a946372e
AK
707SALCK_LIBS
708SALCK_CFLAGS
e2997b73
AK
709QUORUM_LIBS
710QUORUM_CFLAGS
a946372e
AK
711COROSYNC_LIBS
712COROSYNC_CFLAGS
713CMAN_LIBS
714CMAN_CFLAGS
a946372e
AK
715PKGCONFIGINIT_LIBS
716PKGCONFIGINIT_CFLAGS
f11781c5
AK
717PKG_CONFIG_LIBDIR
718PKG_CONFIG_PATH
e2997b73 719PKG_CONFIG
f61cacad 720THIN_CHECK_CMD
ec6a6fbe
AK
721POW_LIB
722LIBOBJS
723ALLOCA
724CSCOPE_CMD
725CFLOW_CMD
726RANLIB
727MKDIR_P
728SET_MAKE
729LN_S
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733EGREP
734GREP
735CPP
736OBJEXT
737EXEEXT
738ac_ct_CC
739CPPFLAGS
740LDFLAGS
741CFLAGS
742CC
743AWK
744SED
745target_os
746target_vendor
747target_cpu
748target
749host_os
750host_vendor
751host_cpu
752host
753build_os
754build_vendor
755build_cpu
756build
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
f11781c5 787PACKAGE_URL
ec6a6fbe
AK
788PACKAGE_BUGREPORT
789PACKAGE_STRING
790PACKAGE_VERSION
791PACKAGE_TARNAME
792PACKAGE_NAME
793PATH_SEPARATOR
794SHELL'
ad6254c5 795ac_subst_files=''
ec6a6fbe
AK
796ac_user_opts='
797enable_option_checking
798enable_static_link
799with_user
800with_group
801with_device_uid
802with_device_gid
803with_device_mode
d0df875d 804with_device_nodes_on
c64d7cd3 805with_default_name_mangling
ec6a6fbe
AK
806enable_lvm1_fallback
807with_lvm1
808with_pool
809with_cluster
810with_snapshots
811with_mirrors
cac52ca4 812with_raid
8fea97b7 813with_replicators
3ba4a195 814with_thin
f61cacad 815with_thin_check
ec6a6fbe
AK
816enable_readline
817enable_realtime
37ddf259 818enable_ocf
606d0858 819with_ocfdir
5723db01
PR
820with_default_pid_dir
821with_default_dm_run_dir
822with_default_run_dir
ec6a6fbe 823with_clvmd
8c4e8a18 824with_clvmd_pidfile
66fd4529
AK
825enable_cmirrord
826with_cmirrord_pidfile
ec6a6fbe
AK
827enable_debug
828with_optimisation
829enable_profiling
54b362f9 830enable_testing
d1e8046f 831enable_valgrind_pool
ec6a6fbe 832enable_devmapper
cdd50823 833enable_lvmetad
5723db01 834with_lvmetad_pidfile
a5f46f6a
AK
835enable_udev_sync
836enable_udev_rules
5723db01 837enable_udev_rule_exec_detection
ec6a6fbe 838enable_compat
95eaa683 839enable_units_compat
ec6a6fbe
AK
840enable_ioctl
841enable_o_direct
572fefeb 842enable_applib
ec6a6fbe
AK
843enable_cmdlib
844enable_pkgconfig
23b059e7 845enable_write_install
ec6a6fbe
AK
846enable_fsadm
847enable_dmeventd
848enable_selinux
849enable_nls
850with_localedir
851with_confdir
852with_staticdir
853with_usrlibdir
854with_usrsbindir
a5f46f6a 855with_udev_prefix
78ce7acc 856with_udevdir
e587cb6a 857with_systemdsystemunitdir
4417a8bd 858with_tmpfilesdir
ec6a6fbe
AK
859with_dmeventd_pidfile
860with_dmeventd_path
3399ae32
AK
861with_default_system_dir
862with_default_archive_subdir
863with_default_backup_subdir
864with_default_cache_subdir
865with_default_locking_dir
fea55602 866with_default_data_alignment
ec6a6fbe
AK
867with_interface
868'
7a197a62
AK
869 ac_precious_vars='build_alias
870host_alias
871target_alias
872CC
873CFLAGS
874LDFLAGS
25fbec5b 875LIBS
7a197a62 876CPPFLAGS
e2997b73
AK
877CPP
878PKG_CONFIG
f11781c5
AK
879PKG_CONFIG_PATH
880PKG_CONFIG_LIBDIR
a946372e
AK
881PKGCONFIGINIT_CFLAGS
882PKGCONFIGINIT_LIBS
a946372e
AK
883CMAN_CFLAGS
884CMAN_LIBS
885COROSYNC_CFLAGS
886COROSYNC_LIBS
e2997b73
AK
887QUORUM_CFLAGS
888QUORUM_LIBS
a946372e
AK
889SALCK_CFLAGS
890SALCK_LIBS
e2997b73
AK
891CONFDB_CFLAGS
892CONFDB_LIBS
b6d7a484
AK
893CMAP_CFLAGS
894CMAP_LIBS
e2997b73 895CPG_CFLAGS
a946372e
AK
896CPG_LIBS
897DLM_CFLAGS
90c80887
AK
898DLM_LIBS
899SACKPT_CFLAGS
d93275eb 900SACKPT_LIBS
426fc742
PR
901CUNIT_CFLAGS
902CUNIT_LIBS
d93275eb 903UDEV_CFLAGS
05fb5158 904UDEV_LIBS'
7a197a62 905
795ca3e5
AK
906
907# Initialize some variables set by options.
ad6254c5
AK
908ac_init_help=
909ac_init_version=false
ec6a6fbe
AK
910ac_unrecognized_opts=
911ac_unrecognized_sep=
795ca3e5
AK
912# The variables have the same names as the options, with
913# dashes changed to underlines.
ad6254c5 914cache_file=/dev/null
795ca3e5 915exec_prefix=NONE
795ca3e5 916no_create=
795ca3e5
AK
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
795ca3e5
AK
925verbose=
926x_includes=NONE
927x_libraries=NONE
ad6254c5
AK
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 934# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
7a197a62
AK
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
795ca3e5
AK
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
795ca3e5
AK
943includedir='${prefix}/include'
944oldincludedir='/usr/include'
7a197a62
AK
945docdir='${datarootdir}/doc/${PACKAGE}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
795ca3e5 954
795ca3e5 955ac_prev=
7a197a62 956ac_dashdash=
795ca3e5
AK
957for ac_option
958do
795ca3e5
AK
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
7a197a62 961 eval $ac_prev=\$ac_option
795ca3e5
AK
962 ac_prev=
963 continue
964 fi
965
7a197a62
AK
966 case $ac_option in
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *) ac_optarg=yes ;;
969 esac
795ca3e5
AK
970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
7a197a62
AK
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
795ca3e5
AK
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 980 bindir=$ac_optarg ;;
795ca3e5
AK
981
982 -build | --build | --buil | --bui | --bu)
ad6254c5 983 ac_prev=build_alias ;;
795ca3e5 984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 985 build_alias=$ac_optarg ;;
795ca3e5
AK
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
795ca3e5 996
7a197a62 997 -datadir | --datadir | --datadi | --datad)
795ca3e5 998 ac_prev=datadir ;;
7a197a62 999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1000 datadir=$ac_optarg ;;
795ca3e5 1001
7a197a62
AK
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
795ca3e5 1009 -disable-* | --disable-*)
ec6a6fbe 1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1011 # Reject names that are not valid shell variable names.
ec6a6fbe 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1013 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
7a197a62
AK
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
795ca3e5
AK
1034
1035 -enable-* | --enable-*)
ec6a6fbe 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1037 # Reject names that are not valid shell variable names.
ec6a6fbe 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1039 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
ad6254c5 1058 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
ad6254c5
AK
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
795ca3e5
AK
1070
1071 -host | --host | --hos | --ho)
ad6254c5 1072 ac_prev=host_alias ;;
795ca3e5 1073 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1074 host_alias=$ac_optarg ;;
795ca3e5 1075
7a197a62
AK
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
795ca3e5
AK
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1087 includedir=$ac_optarg ;;
795ca3e5
AK
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1092 infodir=$ac_optarg ;;
795ca3e5
AK
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1097 libdir=$ac_optarg ;;
795ca3e5
AK
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1104 libexecdir=$ac_optarg ;;
795ca3e5 1105
7a197a62
AK
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
795ca3e5 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1112 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1116 localstatedir=$ac_optarg ;;
795ca3e5
AK
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1121 mandir=$ac_optarg ;;
795ca3e5
AK
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1128 | --no-cr | --no-c | -n)
795ca3e5
AK
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1142 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1147 prefix=$ac_optarg ;;
795ca3e5
AK
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1154 program_prefix=$ac_optarg ;;
795ca3e5
AK
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1161 program_suffix=$ac_optarg ;;
795ca3e5
AK
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1178 program_transform_name=$ac_optarg ;;
795ca3e5 1179
7a197a62
AK
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
795ca3e5
AK
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
ad6254c5 1198 sbindir=$ac_optarg ;;
795ca3e5
AK
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
ad6254c5 1209 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
ad6254c5 1214 site=$ac_optarg ;;
795ca3e5
AK
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1219 srcdir=$ac_optarg ;;
795ca3e5
AK
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1226 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1229 ac_prev=target_alias ;;
795ca3e5 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1231 target_alias=$ac_optarg ;;
795ca3e5
AK
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
ad6254c5
AK
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
795ca3e5
AK
1238
1239 -with-* | --with-*)
ec6a6fbe 1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1241 # Reject names that are not valid shell variable names.
ec6a6fbe 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1243 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1254
1255 -without-* | --without-*)
ec6a6fbe 1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1257 # Reject names that are not valid shell variable names.
ec6a6fbe 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1259 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
795ca3e5
AK
1270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1280 x_includes=$ac_optarg ;;
795ca3e5
AK
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1287 x_libraries=$ac_optarg ;;
795ca3e5 1288
f11781c5
AK
1289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information"
795ca3e5
AK
1291 ;;
1292
ad6254c5
AK
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
f11781c5
AK
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299 esac
7a197a62 1300 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1301 export $ac_envvar ;;
1302
795ca3e5 1303 *)
ad6254c5 1304 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
ad6254c5 1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1316 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1317fi
795ca3e5 1318
ec6a6fbe
AK
1319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
f11781c5 1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1325fi
1326
1327# Check all directory arguments for consistency.
7a197a62
AK
1328for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
795ca3e5 1332do
7a197a62 1333 eval ac_val=\$$ac_var
ec6a6fbe
AK
1334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
ad6254c5 1341 case $ac_val in
7a197a62
AK
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1344 esac
f11781c5 1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1346done
1347
ad6254c5
AK
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
f11781c5
AK
1359 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
8106cdd5 1365
ad6254c5
AK
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
795ca3e5 1370
795ca3e5 1371
7a197a62
AK
1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1375 as_fn_error $? "working directory cannot be determined"
7a197a62 1376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1377 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1378
1379
795ca3e5
AK
1380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
7a197a62 1383 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389$as_echo X"$as_myself" |
7a197a62
AK
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
795ca3e5 1407 srcdir=$ac_confdir
7a197a62 1408 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1409 srcdir=..
1410 fi
1411else
1412 ac_srcdir_defaulted=no
1413fi
7a197a62
AK
1414if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1417fi
7a197a62
AK
1418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
f11781c5 1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1421 pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
ad6254c5
AK
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446\`configure' configures this package to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
f11781c5 1460 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
ad6254c5
AK
1466Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1468 [$ac_default_prefix]
ad6254c5 1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1470 [PREFIX]
ad6254c5
AK
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
ec6a6fbe
AK
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1499_ACEOF
1500
1501 cat <<\_ACEOF
1502
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 --target=TARGET configure for building compilers for TARGET [HOST]
1507_ACEOF
1508fi
1509
1510if test -n "$ac_init_help"; then
1511
1512 cat <<\_ACEOF
1513
1514Optional Features:
ec6a6fbe 1515 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1518 --enable-static_link use this to link the tools to their libraries
1519 statically (default is dynamic linking
1520 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1521 device-mapper is missing from the kernel
71082be4
ZK
1522 --disable-readline disable readline support
1523 --enable-realtime enable realtime clock support
37ddf259
AK
1524 --enable-ocf enable Open Cluster Framework (OCF) compliant
1525 resource agents
71082be4
ZK
1526 --enable-cmirrord enable the cluster mirror log daemon
1527 --enable-debug enable debugging
1528 --enable-profiling gather gcov profiling data
54b362f9 1529 --enable-testing enable testing targets in the makefile
d1e8046f 1530 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1531 --disable-devmapper disable LVM2 device-mapper interaction
d38de32b 1532 --enable-lvmetad enable the LVM Metadata Daemon
71082be4
ZK
1533 --enable-udev_sync enable synchronisation with udev processing
1534 --enable-udev_rules install rule files needed for udev synchronisation
5723db01
PR
1535 --enable-udev-rule-exec-detection
1536 enable executable path detection in udev rules
71082be4
ZK
1537 --enable-compat enable support for old device-mapper versions
1538 --enable-units-compat enable output compatibility with old versions that
1539 that do not use KiB-style unit suffixes
1540 --disable-driver disable calls to device-mapper in the kernel
1541 --disable-o_direct disable O_DIRECT
1542 --enable-applib build application library
1543 --enable-cmdlib build shared command library
1544 --enable-pkgconfig install pkgconfig support
1545 --enable-write_install install user writable files
1546 --disable-fsadm disable fsadm
1547 --enable-dmeventd enable the device-mapper event daemon
1548 --disable-selinux disable selinux support
1549 --enable-nls enable Native Language Support
ad6254c5
AK
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1554 --with-user=USER set the owner of installed files [[USER=]]
1555 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1556 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1557 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1558 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1559 --with-device-nodes-on=ON
1560 create nodes on resume or create [[ON=resume]]
c64d7cd3
PR
1561 --with-default-name-mangling=MANGLING
1562 default name mangling: auto/none/hex
1563 [[MANGLING=auto]]
ad6254c5 1564 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1565 [[TYPE=internal]]
ad6254c5 1566 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1567 [[TYPE=internal]]
71082be4 1568 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1569 [[TYPE=internal]]
71082be4 1570 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1571 [[TYPE=internal]]
71082be4 1572 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1573 [[TYPE=internal]]
cac52ca4
JEB
1574 --with-raid=TYPE mirror support: internal/shared/none
1575 [[TYPE=internal]]
71082be4 1576 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1577 [[TYPE=none]]
3ba4a195
ZK
1578 --with-thin=TYPE thin provisioning support: internal/shared/none
1579 [[TYPE=none]]
f61cacad 1580 --with-thin-check=PATH thin_check tool: [[autodetect]]
606d0858
AK
1581 --with-ocfdir=DIR install OCF files in DIR
1582 [[PREFIX/lib/ocf/resource.d/lvm2]]
5723db01
PR
1583 --with-default-pid-dir=PID_DIR
1584 Default directory to keep PID files in. [[/var/run]]
1585 --with-default-dm-run-dir=DM_RUN_DIR
1586 Default DM run directory. [[/var/run]]
1587 --with-default-run-dir=RUN_DIR
1588 Default LVM run directory. [[/var/run/lvm]]
71082be4 1589 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1590 The following cluster manager combinations are valid:
a946372e
AK
1591 * cman (RHEL5 or equivalent)
1592 * cman,corosync,openais (or selection of them)
1091650a 1593 * singlenode (localhost only)
a946372e
AK
1594 * all (autodetect)
1595 * none (disable build)
71082be4 1596 [TYPE=none]
8c4e8a18 1597 --with-clvmd-pidfile=PATH
5723db01 1598 clvmd pidfile [[PID_DIR/clvmd.pid]]
71082be4 1599 --with-cmirrord-pidfile=PATH
5723db01 1600 cmirrord pidfile [[PID_DIR/cmirrord.pid]]
f11781c5 1601 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
5723db01
PR
1602 --with-lvmetad-pidfile=PATH
1603 lvmetad pidfile [[PID_DIR/lvmetad.pid]]
f11781c5
AK
1604 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1605 --with-confdir=DIR configuration files in DIR [[/etc]]
1606 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1607 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1608 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1609 --with-udev-prefix=UPREFIX
f11781c5
AK
1610 install udev rule files in UPREFIX [[EPREFIX]]
1611 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
e587cb6a
PR
1612 --with-systemdsystemunitdir=DIR
1613 systemd service files in DIR
4417a8bd
PR
1614 --with-tmpfilesdir=DIR install configuration files for management of
1615 volatile files and directories in DIR
3f5cdf20 1616 [[PREFIX/lib/tmpfiles.d]]
71082be4 1617 --with-dmeventd-pidfile=PATH
5723db01 1618 dmeventd pidfile [[PID_DIR/dmeventd.pid]]
71082be4 1619 --with-dmeventd-path=PATH
f11781c5 1620 dmeventd path [[EPREFIX/sbin/dmeventd]]
71082be4 1621 --with-default-system-dir=DIR
f11781c5 1622 default LVM system directory [[/etc/lvm]]
71082be4 1623 --with-default-archive-subdir=SUBDIR
f11781c5 1624 default metadata archive subdir [[archive]]
71082be4 1625 --with-default-backup-subdir=SUBDIR
f11781c5 1626 default metadata backup subdir [[backup]]
71082be4 1627 --with-default-cache-subdir=SUBDIR
f11781c5 1628 default metadata cache subdir [[cache]]
71082be4 1629 --with-default-locking-dir=DIR
f11781c5 1630 default locking directory [[/var/lock/lvm]]
fea55602 1631 --with-default-data-alignment=NUM
f11781c5
AK
1632 set the default data alignment in MiB [[1]]
1633 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1634
1635Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
25fbec5b 1640 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1641 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1642 you have headers in a nonstandard directory <include dir>
ad6254c5 1643 CPP C preprocessor
e2997b73 1644 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1645 PKG_CONFIG_PATH
1646 directories to add to pkg-config's search path
1647 PKG_CONFIG_LIBDIR
1648 path overriding pkg-config's built-in search path
a946372e
AK
1649 PKGCONFIGINIT_CFLAGS
1650 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1651 PKGCONFIGINIT_LIBS
1652 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1653 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1654 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1655 COROSYNC_CFLAGS
1656 C compiler flags for COROSYNC, overriding pkg-config
1657 COROSYNC_LIBS
1658 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1659 QUORUM_CFLAGS
1660 C compiler flags for QUORUM, overriding pkg-config
1661 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1662 SALCK_CFLAGS
1663 C compiler flags for SALCK, overriding pkg-config
1664 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1665 CONFDB_CFLAGS
1666 C compiler flags for CONFDB, overriding pkg-config
1667 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
b6d7a484
AK
1668 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1669 CMAP_LIBS linker flags for CMAP, overriding pkg-config
e2997b73
AK
1670 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1671 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1672 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1673 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1674 SACKPT_CFLAGS
1675 C compiler flags for SACKPT, overriding pkg-config
1676 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
426fc742
PR
1677 CUNIT_CFLAGS
1678 C compiler flags for CUNIT, overriding pkg-config
1679 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
d93275eb
PR
1680 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1681 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1682
1683Use these variables to override the choices made by `configure' or to help
1684it to find libraries and programs with nonstandard names/locations.
1685
f11781c5 1686Report bugs to the package provider.
ad6254c5 1687_ACEOF
7a197a62 1688ac_status=$?
ad6254c5
AK
1689fi
1690
1691if test "$ac_init_help" = "recursive"; then
1692 # If there are subdirs, report their specific --help.
ad6254c5 1693 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1694 test -d "$ac_dir" ||
1695 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1696 continue
ad6254c5
AK
1697 ac_builddir=.
1698
7a197a62
AK
1699case "$ac_dir" in
1700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701*)
ec6a6fbe 1702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1703 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1705 case $ac_top_builddir_sub in
1706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1708 esac ;;
1709esac
1710ac_abs_top_builddir=$ac_pwd
1711ac_abs_builddir=$ac_pwd$ac_dir_suffix
1712# for backward compatibility:
1713ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1714
1715case $srcdir in
7a197a62 1716 .) # We are building in place.
ad6254c5 1717 ac_srcdir=.
7a197a62
AK
1718 ac_top_srcdir=$ac_top_builddir_sub
1719 ac_abs_top_srcdir=$ac_pwd ;;
1720 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1721 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1722 ac_top_srcdir=$srcdir
1723 ac_abs_top_srcdir=$srcdir ;;
1724 *) # Relative name.
1725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1726 ac_top_srcdir=$ac_top_build_prefix$srcdir
1727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1728esac
7a197a62
AK
1729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730
1731 cd "$ac_dir" || { ac_status=$?; continue; }
1732 # Check for guested configure.
1733 if test -f "$ac_srcdir/configure.gnu"; then
1734 echo &&
1735 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1736 elif test -f "$ac_srcdir/configure"; then
1737 echo &&
1738 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1739 else
ec6a6fbe 1740 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1741 fi || ac_status=$?
1742 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1743 done
1744fi
1745
7a197a62 1746test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1747if $ac_init_version; then
1748 cat <<\_ACEOF
7a197a62 1749configure
f11781c5 1750generated by GNU Autoconf 2.66
ad6254c5 1751
f11781c5 1752Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1753This configure script is free software; the Free Software Foundation
1754gives unlimited permission to copy, distribute and modify it.
1755_ACEOF
7a197a62 1756 exit
ad6254c5 1757fi
ad6254c5 1758
f11781c5
AK
1759## ------------------------ ##
1760## Autoconf initialization. ##
1761## ------------------------ ##
ad6254c5 1762
f11781c5
AK
1763# ac_fn_c_try_compile LINENO
1764# --------------------------
1765# Try to compile conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_compile ()
ad6254c5 1767{
f11781c5
AK
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext
1770 if { { ac_try="$ac_compile"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_compile") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest.$ac_objext; then :
1789 ac_retval=0
1790else
1791 $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1793
f11781c5
AK
1794 ac_retval=1
1795fi
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 as_fn_set_status $ac_retval
ad6254c5 1798
f11781c5 1799} # ac_fn_c_try_compile
ad6254c5 1800
f11781c5
AK
1801# ac_fn_c_try_cpp LINENO
1802# ----------------------
1803# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_cpp ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_cpp conftest.$ac_ext"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } >/dev/null && {
1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 }; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1830
f11781c5
AK
1831 ac_retval=1
1832fi
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 as_fn_set_status $ac_retval
ad6254c5 1835
f11781c5 1836} # ac_fn_c_try_cpp
d911ec67 1837
f11781c5
AK
1838# ac_fn_c_try_link LINENO
1839# -----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_link ()
d911ec67 1842{
f11781c5
AK
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
d911ec67
AK
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
f11781c5
AK
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
d911ec67 1853 ac_status=$?
f11781c5
AK
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
d911ec67 1868else
f11781c5 1869 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
f11781c5 1872 ac_retval=1
d911ec67 1873fi
f11781c5
AK
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 as_fn_set_status $ac_retval
d911ec67 1881
f11781c5 1882} # ac_fn_c_try_link
d911ec67 1883
f11781c5
AK
1884# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1885# -------------------------------------------------------
1886# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1887# the include files in INCLUDES and setting the cache variable VAR
1888# accordingly.
1889ac_fn_c_check_header_mongrel ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if eval "test \"\${$3+set}\"" = set; then :
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1896 $as_echo_n "(cached) " >&6
1897fi
f11781c5
AK
1898eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1900$as_echo "$ac_res" >&6; }
1901else
1902 # Is the header compilable?
f11781c5
AK
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1904$as_echo_n "checking $2 usability... " >&6; }
1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1906/* end confdefs.h. */
f11781c5
AK
1907$4
1908#include <$2>
d911ec67 1909_ACEOF
f11781c5 1910if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1911 ac_header_compiler=yes
1912else
f11781c5 1913 ac_header_compiler=no
d911ec67 1914fi
d911ec67 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1917$as_echo "$ac_header_compiler" >&6; }
1918
1919# Is the header present?
f11781c5
AK
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1921$as_echo_n "checking $2 presence... " >&6; }
1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1923/* end confdefs.h. */
f11781c5 1924#include <$2>
d911ec67 1925_ACEOF
f11781c5 1926if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1927 ac_header_preproc=yes
1928else
d911ec67
AK
1929 ac_header_preproc=no
1930fi
d911ec67 1931rm -f conftest.err conftest.$ac_ext
f11781c5 1932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1933$as_echo "$ac_header_preproc" >&6; }
1934
1935# So? What about this header?
f11781c5 1936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1937 yes:no: )
f11781c5
AK
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1939$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1942 ;;
1943 no:yes:* )
f11781c5
AK
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1945$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1947$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1949$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1951$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1954 ;;
1955esac
f11781c5
AK
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1959 $as_echo_n "(cached) " >&6
1960else
f11781c5 1961 eval "$3=\$ac_header_compiler"
d911ec67 1962fi
f11781c5
AK
1963eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1965$as_echo "$ac_res" >&6; }
ad6254c5 1966fi
f11781c5 1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1968
f11781c5 1969} # ac_fn_c_check_header_mongrel
ad6254c5 1970
f11781c5
AK
1971# ac_fn_c_try_run LINENO
1972# ----------------------
1973# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974# that executables *can* be run.
1975ac_fn_c_try_run ()
ad6254c5 1976{
f11781c5
AK
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_link"
7a197a62
AK
1979case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982esac
f11781c5
AK
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
7a197a62 1985 (eval "$ac_link") 2>&5
ad6254c5 1986 ac_status=$?
f11781c5
AK
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989 { { case "(($ac_try" in
7a197a62
AK
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992esac
f11781c5
AK
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
7a197a62 1995 (eval "$ac_try") 2>&5
ad6254c5 1996 ac_status=$?
f11781c5
AK
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; }; }; then :
1999 ac_retval=0
ad6254c5 2000else
ec6a6fbe 2001 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 2002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
f11781c5 2005 ac_retval=$ac_status
ad6254c5 2006fi
f11781c5
AK
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 as_fn_set_status $ac_retval
ad6254c5 2010
f11781c5 2011} # ac_fn_c_try_run
ad6254c5 2012
f11781c5
AK
2013# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014# -------------------------------------------------------
2015# Tests whether HEADER exists and can be compiled using the include files in
2016# INCLUDES, setting the cache variable VAR accordingly.
2017ac_fn_c_check_header_compile ()
2018{
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2023 $as_echo_n "(cached) " >&6
ad6254c5 2024else
f11781c5 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2026/* end confdefs.h. */
f11781c5
AK
2027$4
2028#include <$2>
ad6254c5 2029_ACEOF
f11781c5
AK
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$3=yes"
ad6254c5 2032else
f11781c5 2033 eval "$3=no"
ad6254c5 2034fi
7a197a62 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2036fi
f11781c5
AK
2037eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2039$as_echo "$ac_res" >&6; }
f11781c5 2040 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2041
f11781c5 2042} # ac_fn_c_check_header_compile
ad6254c5 2043
f11781c5
AK
2044# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2045# ----------------------------------------------------
2046# Tries to find if the field MEMBER exists in type AGGR, after including
2047# INCLUDES, setting cache variable VAR accordingly.
2048ac_fn_c_check_member ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2052$as_echo_n "checking for $2.$3... " >&6; }
2053if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2054 $as_echo_n "(cached) " >&6
795ca3e5 2055else
f11781c5
AK
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$5
2059int
2060main ()
2061{
2062static $2 ac_aggr;
2063if (ac_aggr.$3)
2064return 0;
2065 ;
2066 return 0;
2067}
ad6254c5 2068_ACEOF
f11781c5
AK
2069if ac_fn_c_try_compile "$LINENO"; then :
2070 eval "$4=yes"
2071else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2073/* end confdefs.h. */
f11781c5
AK
2074$5
2075int
2076main ()
2077{
2078static $2 ac_aggr;
2079if (sizeof ac_aggr.$3)
2080return 0;
2081 ;
2082 return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$4=yes"
2087else
2088 eval "$4=no"
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093fi
2094eval ac_res=\$$4
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098
2099} # ac_fn_c_check_member
795ca3e5 2100
f11781c5
AK
2101# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2102# -------------------------------------------
2103# Tests whether TYPE exists after having included INCLUDES, setting cache
2104# variable VAR accordingly.
2105ac_fn_c_check_type ()
2106{
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109$as_echo_n "checking for $2... " >&6; }
2110if eval "test \"\${$3+set}\"" = set; then :
2111 $as_echo_n "(cached) " >&6
2112else
2113 eval "$3=no"
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
ad6254c5
AK
2117int
2118main ()
2119{
f11781c5
AK
2120if (sizeof ($2))
2121 return 0;
ad6254c5
AK
2122 ;
2123 return 0;
2124}
2125_ACEOF
f11781c5
AK
2126if ac_fn_c_try_compile "$LINENO"; then :
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130int
2131main ()
2132{
2133if (sizeof (($2)))
2134 return 0;
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2140
f11781c5
AK
2141else
2142 eval "$3=yes"
795ca3e5 2143fi
f11781c5
AK
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2147fi
f11781c5
AK
2148eval ac_res=\$$3
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2150$as_echo "$ac_res" >&6; }
f11781c5 2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2152
f11781c5 2153} # ac_fn_c_check_type
ad6254c5 2154
f11781c5
AK
2155# ac_fn_c_find_intX_t LINENO BITS VAR
2156# -----------------------------------
2157# Finds a signed integer type with width BITS, setting cache variable VAR
2158# accordingly.
2159ac_fn_c_find_intX_t ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2163$as_echo_n "checking for int$2_t... " >&6; }
2164if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2165 $as_echo_n "(cached) " >&6
ad6254c5 2166else
f11781c5
AK
2167 eval "$3=no"
2168 # Order is important - never check a type that is potentially smaller
2169 # than half of the expected target width.
2170 for ac_type in int$2_t 'int' 'long int' \
2171 'long long int' 'short int' 'signed char'; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2173/* end confdefs.h. */
2174$ac_includes_default
f11781c5 2175 enum { N = $2 / 2 - 1 };
7a197a62
AK
2176int
2177main ()
2178{
f11781c5
AK
2179static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2180test_array [0] = 0
7a197a62 2181
f11781c5
AK
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$ac_includes_default
2190 enum { N = $2 / 2 - 1 };
2191int
2192main ()
2193{
2194static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2195 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2196test_array [0] = 0
7a197a62
AK
2197
2198 ;
2199 return 0;
2200}
ad6254c5 2201_ACEOF
f11781c5 2202if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2203
f11781c5
AK
2204else
2205 case $ac_type in #(
2206 int$2_t) :
2207 eval "$3=yes" ;; #(
2208 *) :
2209 eval "$3=\$ac_type" ;;
2210esac
ad6254c5 2211fi
f11781c5 2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2213fi
f11781c5
AK
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2216
2217else
f11781c5 2218 break
ad6254c5 2219fi
f11781c5 2220 done
ad6254c5 2221fi
f11781c5
AK
2222eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224$as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226
2227} # ac_fn_c_find_intX_t
2228
2229# ac_fn_c_find_uintX_t LINENO BITS VAR
2230# ------------------------------------
2231# Finds an unsigned integer type with width BITS, setting cache variable VAR
2232# accordingly.
2233ac_fn_c_find_uintX_t ()
2234{
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2237$as_echo_n "checking for uint$2_t... " >&6; }
2238if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2239 $as_echo_n "(cached) " >&6
ad6254c5 2240else
f11781c5
AK
2241 eval "$3=no"
2242 # Order is important - never check a type that is potentially smaller
2243 # than half of the expected target width.
2244 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2245 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2247/* end confdefs.h. */
7a197a62 2248$ac_includes_default
ad6254c5
AK
2249int
2250main ()
2251{
f11781c5
AK
2252static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2253test_array [0] = 0
ad6254c5 2254
f11781c5
AK
2255 ;
2256 return 0;
ad6254c5
AK
2257}
2258_ACEOF
f11781c5
AK
2259if ac_fn_c_try_compile "$LINENO"; then :
2260 case $ac_type in #(
2261 uint$2_t) :
2262 eval "$3=yes" ;; #(
2263 *) :
2264 eval "$3=\$ac_type" ;;
7a197a62 2265esac
ad6254c5 2266fi
f11781c5
AK
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2269
f11781c5
AK
2270else
2271 break
ad6254c5 2272fi
f11781c5 2273 done
ad6254c5 2274fi
f11781c5
AK
2275eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277$as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2279
f11781c5 2280} # ac_fn_c_find_uintX_t
ad6254c5 2281
f11781c5
AK
2282# ac_fn_c_check_func LINENO FUNC VAR
2283# ----------------------------------
2284# Tests whether FUNC exists, setting the cache variable VAR accordingly
2285ac_fn_c_check_func ()
2286{
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289$as_echo_n "checking for $2... " >&6; }
2290if eval "test \"\${$3+set}\"" = set; then :
2291 $as_echo_n "(cached) " >&6
ad6254c5 2292else
f11781c5
AK
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h. */
2295/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2297#define $2 innocuous_$2
ad6254c5 2298
f11781c5
AK
2299/* System header to define __stub macros and hopefully few prototypes,
2300 which can conflict with char $2 (); below.
2301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2302 <limits.h> exists even on freestanding compilers. */
ad6254c5 2303
f11781c5
AK
2304#ifdef __STDC__
2305# include <limits.h>
2306#else
2307# include <assert.h>
2308#endif
ad6254c5 2309
f11781c5
AK
2310#undef $2
2311
2312/* Override any GCC internal prototype to avoid an error.
2313 Use char because int might match the return type of a GCC
2314 builtin and then its argument prototype would still apply. */
2315#ifdef __cplusplus
2316extern "C"
2317#endif
2318char $2 ();
2319/* The GNU C library defines this for functions which it implements
2320 to always fail with ENOSYS. Some functions are actually named
2321 something starting with __ and the normal name is an alias. */
2322#if defined __stub_$2 || defined __stub___$2
2323choke me
2324#endif
ad6254c5 2325
ad6254c5
AK
2326int
2327main ()
2328{
f11781c5 2329return $2 ();
ad6254c5
AK
2330 ;
2331 return 0;
2332}
2333_ACEOF
f11781c5
AK
2334if ac_fn_c_try_link "$LINENO"; then :
2335 eval "$3=yes"
ad6254c5 2336else
f11781c5 2337 eval "$3=no"
ad6254c5 2338fi
f11781c5
AK
2339rm -f core conftest.err conftest.$ac_objext \
2340 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2341fi
f11781c5
AK
2342eval ac_res=\$$3
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344$as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2346
f11781c5
AK
2347} # ac_fn_c_check_func
2348cat >config.log <<_ACEOF
2349This file contains any messages produced by compilers while
2350running configure, to aid debugging if configure makes a mistake.
7a197a62 2351
f11781c5
AK
2352It was created by $as_me, which was
2353generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2354
f11781c5 2355 $ $0 $@
ad6254c5 2356
ad6254c5 2357_ACEOF
f11781c5
AK
2358exec 5>>config.log
2359{
2360cat <<_ASUNAME
2361## --------- ##
2362## Platform. ##
2363## --------- ##
ad6254c5 2364
f11781c5
AK
2365hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2370
f11781c5
AK
2371/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2373
f11781c5
AK
2374/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2375/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2376/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2377/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2378/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2379/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2380/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2381
2382_ASUNAME
2383
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 $as_echo "PATH: $as_dir"
2390 done
2391IFS=$as_save_IFS
2392
2393} >&5
2394
2395cat >&5 <<_ACEOF
2396
2397
2398## ----------- ##
2399## Core tests. ##
2400## ----------- ##
ad6254c5 2401
ad6254c5 2402_ACEOF
ad6254c5 2403
7a197a62 2404
f11781c5
AK
2405# Keep a trace of the command line.
2406# Strip out --no-create and --no-recursion so they do not pile up.
2407# Strip out --silent because we don't want to record it for future runs.
2408# Also quote any args containing shell meta-characters.
2409# Make two passes to allow for proper duplicate-argument suppression.
2410ac_configure_args=
2411ac_configure_args0=
2412ac_configure_args1=
2413ac_must_keep_next=false
2414for ac_pass in 1 2
2415do
2416 for ac_arg
2417 do
2418 case $ac_arg in
2419 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2421 | -silent | --silent | --silen | --sile | --sil)
2422 continue ;;
2423 *\'*)
2424 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 esac
2426 case $ac_pass in
2427 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428 2)
2429 as_fn_append ac_configure_args1 " '$ac_arg'"
2430 if test $ac_must_keep_next = true; then
2431 ac_must_keep_next=false # Got value, back to normal.
2432 else
2433 case $ac_arg in
2434 *=* | --config-cache | -C | -disable-* | --disable-* \
2435 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2436 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2437 | -with-* | --with-* | -without-* | --without-* | --x)
2438 case "$ac_configure_args0 " in
2439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2440 esac
2441 ;;
2442 -* ) ac_must_keep_next=true ;;
2443 esac
2444 fi
2445 as_fn_append ac_configure_args " '$ac_arg'"
2446 ;;
2447 esac
2448 done
2449done
2450{ ac_configure_args0=; unset ac_configure_args0;}
2451{ ac_configure_args1=; unset ac_configure_args1;}
2452
2453# When interrupted or exit'd, cleanup temporary files, and complete
2454# config.log. We remove comments because anyway the quotes in there
2455# would cause problems or look ugly.
2456# WARNING: Use '\'' to represent an apostrophe within the trap.
2457# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2458trap 'exit_status=$?
2459 # Save into config.log some information that might help in debugging.
2460 {
2461 echo
2462
2463 $as_echo "## ---------------- ##
2464## Cache variables. ##
2465## ---------------- ##"
2466 echo
2467 # The following way of writing the cache mishandles newlines in values,
2468(
2469 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2470 eval ac_val=\$$ac_var
2471 case $ac_val in #(
2472 *${as_nl}*)
2473 case $ac_var in #(
2474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2475$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2476 esac
2477 case $ac_var in #(
2478 _ | IFS | as_nl) ;; #(
2479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2480 *) { eval $ac_var=; unset $ac_var;} ;;
2481 esac ;;
2482 esac
2483 done
2484 (set) 2>&1 |
2485 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486 *${as_nl}ac_space=\ *)
2487 sed -n \
2488 "s/'\''/'\''\\\\'\'''\''/g;
2489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2490 ;; #(
2491 *)
2492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2493 ;;
2494 esac |
2495 sort
2496)
2497 echo
2498
2499 $as_echo "## ----------------- ##
2500## Output variables. ##
2501## ----------------- ##"
2502 echo
2503 for ac_var in $ac_subst_vars
2504 do
2505 eval ac_val=\$$ac_var
2506 case $ac_val in
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 esac
2509 $as_echo "$ac_var='\''$ac_val'\''"
2510 done | sort
2511 echo
2512
2513 if test -n "$ac_subst_files"; then
2514 $as_echo "## ------------------- ##
2515## File substitutions. ##
2516## ------------------- ##"
2517 echo
2518 for ac_var in $ac_subst_files
2519 do
2520 eval ac_val=\$$ac_var
2521 case $ac_val in
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 esac
2524 $as_echo "$ac_var='\''$ac_val'\''"
2525 done | sort
2526 echo
2527 fi
2528
2529 if test -s confdefs.h; then
2530 $as_echo "## ----------- ##
2531## confdefs.h. ##
2532## ----------- ##"
2533 echo
2534 cat confdefs.h
2535 echo
2536 fi
2537 test "$ac_signal" != 0 &&
2538 $as_echo "$as_me: caught signal $ac_signal"
2539 $as_echo "$as_me: exit $exit_status"
2540 } >&5
2541 rm -f core *.core core.conftest.* &&
2542 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2543 exit $exit_status
2544' 0
2545for ac_signal in 1 2 13 15; do
2546 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2547done
2548ac_signal=0
2549
2550# confdefs.h avoids OS command line length limits that DEFS can exceed.
2551rm -f -r conftest* confdefs.h
7a197a62 2552
f11781c5 2553$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2554
f11781c5 2555# Predefined preprocessor variables.
ad6254c5
AK
2556
2557cat >>confdefs.h <<_ACEOF
f11781c5 2558#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2559_ACEOF
2560
f11781c5
AK
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2563_ACEOF
ad6254c5 2564
f11781c5
AK
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2567_ACEOF
f11781c5
AK
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2571_ACEOF
ad6254c5 2572
f11781c5
AK
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2575_ACEOF
7a197a62 2576
f11781c5
AK
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_URL "$PACKAGE_URL"
2579_ACEOF
ad6254c5 2580
7a197a62 2581
f11781c5
AK
2582# Let the site file select an alternate cache file if it wants to.
2583# Prefer an explicitly selected file to automatically selected ones.
2584ac_site_file1=NONE
2585ac_site_file2=NONE
2586if test -n "$CONFIG_SITE"; then
2587 # We do not want a PATH search for config.site.
2588 case $CONFIG_SITE in #((
2589 -*) ac_site_file1=./$CONFIG_SITE;;
2590 */*) ac_site_file1=$CONFIG_SITE;;
2591 *) ac_site_file1=./$CONFIG_SITE;;
2592 esac
2593elif test "x$prefix" != xNONE; then
2594 ac_site_file1=$prefix/share/config.site
2595 ac_site_file2=$prefix/etc/config.site
ad6254c5 2596else
f11781c5
AK
2597 ac_site_file1=$ac_default_prefix/share/config.site
2598 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2599fi
f11781c5
AK
2600for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2601do
2602 test "x$ac_site_file" = xNONE && continue
2603 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2605$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2606 sed 's/^/| /' "$ac_site_file" >&5
2607 . "$ac_site_file" \
2608 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610as_fn_error $? "failed to load site script $ac_site_file
2611See \`config.log' for more details" "$LINENO" 5; }
2612 fi
2613done
ad6254c5 2614
f11781c5
AK
2615if test -r "$cache_file"; then
2616 # Some versions of bash will fail to source /dev/null (special files
2617 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2618 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2620$as_echo "$as_me: loading cache $cache_file" >&6;}
2621 case $cache_file in
2622 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2623 *) . "./$cache_file";;
2624 esac
2625 fi
2626else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2628$as_echo "$as_me: creating cache $cache_file" >&6;}
2629 >$cache_file
ad6254c5 2630fi
ad6254c5 2631
f11781c5
AK
2632as_fn_append ac_header_list " stdlib.h"
2633as_fn_append ac_header_list " unistd.h"
2634as_fn_append ac_header_list " sys/param.h"
2635# Check that the precious variables saved in the cache have kept the same
2636# value.
2637ac_cache_corrupted=false
2638for ac_var in $ac_precious_vars; do
2639 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2640 eval ac_new_set=\$ac_env_${ac_var}_set
2641 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2642 eval ac_new_val=\$ac_env_${ac_var}_value
2643 case $ac_old_set,$ac_new_set in
2644 set,)
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2646$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2647 ac_cache_corrupted=: ;;
2648 ,set)
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2650$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2651 ac_cache_corrupted=: ;;
2652 ,);;
2653 *)
2654 if test "x$ac_old_val" != "x$ac_new_val"; then
2655 # differences in whitespace do not lead to failure.
2656 ac_old_val_w=`echo x $ac_old_val`
2657 ac_new_val_w=`echo x $ac_new_val`
2658 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2660$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2661 ac_cache_corrupted=:
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2664$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2665 eval $ac_var=\$ac_old_val
2666 fi
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2668$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2670$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2671 fi;;
2672 esac
2673 # Pass precious variables to config.status.
2674 if test "$ac_new_set" = set; then
2675 case $ac_new_val in
2676 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2677 *) ac_arg=$ac_var=$ac_new_val ;;
2678 esac
2679 case " $ac_configure_args " in
2680 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2681 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2682 esac
2683 fi
2684done
2685if $ac_cache_corrupted; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2689$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2690 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2691fi
f11781c5
AK
2692## -------------------- ##
2693## Main body of script. ##
2694## -------------------- ##
ad6254c5 2695
f11781c5
AK
2696ac_ext=c
2697ac_cpp='$CPP $CPPFLAGS'
2698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2701
ad6254c5 2702
ad6254c5 2703
f11781c5 2704ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2705
2706
f11781c5
AK
2707################################################################################
2708ac_aux_dir=
2709for ac_dir in autoconf "$srcdir"/autoconf; do
2710 if test -f "$ac_dir/install-sh"; then
2711 ac_aux_dir=$ac_dir
2712 ac_install_sh="$ac_aux_dir/install-sh -c"
2713 break
2714 elif test -f "$ac_dir/install.sh"; then
2715 ac_aux_dir=$ac_dir
2716 ac_install_sh="$ac_aux_dir/install.sh -c"
2717 break
2718 elif test -f "$ac_dir/shtool"; then
2719 ac_aux_dir=$ac_dir
2720 ac_install_sh="$ac_aux_dir/shtool install -c"
2721 break
2722 fi
2723done
2724if test -z "$ac_aux_dir"; then
2725 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2726fi
ad6254c5 2727
f11781c5
AK
2728# These three variables are undocumented and unsupported,
2729# and are intended to be withdrawn in a future Autoconf release.
2730# They can cause serious problems if a builder's source tree is in a directory
2731# whose full name contains unusual characters.
2732ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2733ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2734ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2735
ad6254c5 2736
8a2fc586 2737
f11781c5
AK
2738################################################################################
2739# Make sure we can run config.sub.
2740$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2742
f11781c5
AK
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744$as_echo_n "checking build system type... " >&6; }
2745if test "${ac_cv_build+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747else
2748 ac_build_alias=$build_alias
2749test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2755
2756fi
f11781c5
AK
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758$as_echo "$ac_cv_build" >&6; }
2759case $ac_cv_build in
2760*-*-*) ;;
2761*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762esac
2763build=$ac_cv_build
2764ac_save_IFS=$IFS; IFS='-'
2765set x $ac_cv_build
2766shift
2767build_cpu=$1
2768build_vendor=$2
2769shift; shift
2770# Remember, the first character of IFS is used to create $*,
2771# except with old shells:
2772build_os=$*
2773IFS=$ac_save_IFS
2774case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2775
2776
f11781c5
AK
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778$as_echo_n "checking host system type... " >&6; }
2779if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2780 $as_echo_n "(cached) " >&6
ad6254c5 2781else
f11781c5
AK
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
ad6254c5 2784else
f11781c5
AK
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787fi
ad6254c5 2788
f11781c5
AK
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791$as_echo "$ac_cv_host" >&6; }
2792case $ac_cv_host in
2793*-*-*) ;;
2794*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795esac
2796host=$ac_cv_host
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_host
2799shift
2800host_cpu=$1
2801host_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805host_os=$*
2806IFS=$ac_save_IFS
2807case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2808
ad6254c5 2809
f11781c5
AK
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811$as_echo_n "checking target system type... " >&6; }
2812if test "${ac_cv_target+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
ad6254c5 2814else
f11781c5
AK
2815 if test "x$target_alias" = x; then
2816 ac_cv_target=$ac_cv_host
2817else
2818 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2820fi
7a197a62 2821
ad6254c5 2822fi
f11781c5
AK
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824$as_echo "$ac_cv_target" >&6; }
2825case $ac_cv_target in
2826*-*-*) ;;
2827*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2828esac
f11781c5
AK
2829target=$ac_cv_target
2830ac_save_IFS=$IFS; IFS='-'
2831set x $ac_cv_target
2832shift
2833target_cpu=$1
2834target_vendor=$2
2835shift; shift
2836# Remember, the first character of IFS is used to create $*,
2837# except with old shells:
2838target_os=$*
2839IFS=$ac_save_IFS
2840case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2841
ad6254c5 2842
f11781c5
AK
2843# The aliases save the names the user supplied, while $host etc.
2844# will get canonicalized.
2845test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2847 NONENONEs,x,x, &&
2848 program_prefix=${target_alias}-
ad6254c5 2849
f11781c5
AK
2850case "$host_os" in
2851 linux*)
2852 CFLAGS="$CFLAGS"
2853 COPTIMISE_FLAG="-O2"
2854 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2855 ELDFLAGS="-Wl,--export-dynamic"
2856 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2857 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2858 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2859 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2860 LIB_SUFFIX=so
2861 DEVMAPPER=yes
cdd50823 2862 LVMETAD=no
f11781c5
AK
2863 ODIRECT=yes
2864 DM_IOCTLS=yes
2865 SELINUX=yes
2866 CLUSTER=internal
2867 FSADM=yes
2868 ;;
2869 darwin*)
2870 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2871 COPTIMISE_FLAG="-O2"
2872 CLDFLAGS="$CLDFLAGS"
bf09a320 2873 ELDFLAGS=
f11781c5
AK
2874 CLDWHOLEARCHIVE="-all_load"
2875 CLDNOWHOLEARCHIVE=
2876 LIB_SUFFIX=dylib
2877 DEVMAPPER=yes
2878 ODIRECT=no
2879 DM_IOCTLS=no
2880 SELINUX=no
2881 CLUSTER=none
2882 FSADM=no
2883 ;;
2884esac
ad6254c5 2885
f11781c5
AK
2886################################################################################
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2888$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2889if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2890 $as_echo_n "(cached) " >&6
ad6254c5 2891else
f11781c5
AK
2892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2893 for ac_i in 1 2 3 4 5 6 7; do
2894 ac_script="$ac_script$as_nl$ac_script"
2895 done
2896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2897 { ac_script=; unset ac_script;}
2898 if test -z "$SED"; then
2899 ac_path_SED_found=false
2900 # Loop through the user's path and test for each of PROGNAME-LIST
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_prog in sed gsed; do
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2909 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2910# Check for GNU ac_path_SED and select it if it is found.
2911 # Check for GNU $ac_path_SED
2912case `"$ac_path_SED" --version 2>&1` in
2913*GNU*)
2914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2915*)
2916 ac_count=0
2917 $as_echo_n 0123456789 >"conftest.in"
2918 while :
2919 do
2920 cat "conftest.in" "conftest.in" >"conftest.tmp"
2921 mv "conftest.tmp" "conftest.in"
2922 cp "conftest.in" "conftest.nl"
2923 $as_echo '' >> "conftest.nl"
2924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2926 as_fn_arith $ac_count + 1 && ac_count=$as_val
2927 if test $ac_count -gt ${ac_path_SED_max-0}; then
2928 # Best one so far, save it but keep looking for a better one
2929 ac_cv_path_SED="$ac_path_SED"
2930 ac_path_SED_max=$ac_count
2931 fi
2932 # 10*(2^10) chars as input seems more than enough
2933 test $ac_count -gt 10 && break
2934 done
2935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2936esac
ad6254c5 2937
f11781c5
AK
2938 $ac_path_SED_found && break 3
2939 done
2940 done
2941 done
2942IFS=$as_save_IFS
2943 if test -z "$ac_cv_path_SED"; then
2944 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2945 fi
2946else
2947 ac_cv_path_SED=$SED
ad6254c5 2948fi
7a197a62 2949
f11781c5
AK
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2952$as_echo "$ac_cv_path_SED" >&6; }
2953 SED="$ac_cv_path_SED"
2954 rm -f conftest.sed
ad6254c5 2955
f11781c5
AK
2956for ac_prog in gawk mawk nawk awk
2957do
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959set dummy $ac_prog; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if test "${ac_cv_prog_AWK+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
ad6254c5 2964else
f11781c5
AK
2965 if test -n "$AWK"; then
2966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_AWK="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979done
2980 done
2981IFS=$as_save_IFS
ad6254c5 2982
ad6254c5 2983fi
ad6254c5 2984fi
f11781c5
AK
2985AWK=$ac_cv_prog_AWK
2986if test -n "$AWK"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2988$as_echo "$AWK" >&6; }
2989else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
ad6254c5 2992fi
ad6254c5 2993
ad6254c5 2994
f11781c5 2995 test -n "$AWK" && break
ad6254c5
AK
2996done
2997
f11781c5
AK
2998ac_ext=c
2999ac_cpp='$CPP $CPPFLAGS'
3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005set dummy ${ac_tool_prefix}gcc; ac_word=$2
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007$as_echo_n "checking for $ac_word... " >&6; }
3008if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 3009 $as_echo_n "(cached) " >&6
ad6254c5 3010else
f11781c5
AK
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 3013else
f11781c5
AK
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026 done
3027IFS=$as_save_IFS
ad6254c5 3028
ad6254c5 3029fi
ad6254c5 3030fi
f11781c5
AK
3031CC=$ac_cv_prog_CC
3032if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034$as_echo "$CC" >&6; }
3035else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037$as_echo "no" >&6; }
ad6254c5 3038fi
ad6254c5 3039
f11781c5
AK
3040
3041fi
3042if test -z "$ac_cv_prog_CC"; then
3043 ac_ct_CC=$CC
3044 # Extract the first word of "gcc", so it can be a program name with args.
3045set dummy gcc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3049 $as_echo_n "(cached) " >&6
ad6254c5 3050else
f11781c5
AK
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3053else
f11781c5
AK
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_ac_ct_CC="gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
d911ec67 3068
d911ec67 3069fi
d911ec67 3070fi
f11781c5
AK
3071ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074$as_echo "$ac_ct_CC" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
d911ec67 3078fi
d911ec67 3079
f11781c5
AK
3080 if test "x$ac_ct_CC" = x; then
3081 CC=""
3082 else
3083 case $cross_compiling:$ac_tool_warned in
3084yes:)
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087ac_tool_warned=yes ;;
3088esac
3089 CC=$ac_ct_CC
3090 fi
3091else
3092 CC="$ac_cv_prog_CC"
d911ec67 3093fi
d911ec67 3094
f11781c5
AK
3095if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098set dummy ${ac_tool_prefix}cc; ac_word=$2
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100$as_echo_n "checking for $ac_word... " >&6; }
3101if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3102 $as_echo_n "(cached) " >&6
d911ec67 3103else
f11781c5
AK
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3106else
f11781c5
AK
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
3119 done
3120IFS=$as_save_IFS
d911ec67 3121
f11781c5
AK
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
d911ec67
AK
3131fi
3132
d911ec67 3133
f11781c5
AK
3134 fi
3135fi
3136if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138set dummy cc; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if test "${ac_cv_prog_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
d911ec67 3143else
f11781c5
AK
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146else
3147 ac_prog_rejected=no
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected=yes
3157 continue
3158 fi
3159 ac_cv_prog_CC="cc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163done
3164 done
3165IFS=$as_save_IFS
d911ec67 3166
f11781c5
AK
3167if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3170 shift
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3175 shift
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3177 fi
3178fi
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
d911ec67
AK
3188fi
3189
d911ec67 3190
f11781c5
AK
3191fi
3192if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl.exe
3195 do
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3201 $as_echo_n "(cached) " >&6
3202else
f11781c5
AK
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218 done
3219IFS=$as_save_IFS
d911ec67
AK
3220
3221fi
f11781c5
AK
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226$as_echo "$CC" >&6; }
3227else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
d911ec67
AK
3230fi
3231
d911ec67 3232
f11781c5
AK
3233 test -n "$CC" && break
3234 done
3235fi
3236if test -z "$CC"; then
3237 ac_ct_CC=$CC
3238 for ac_prog in cl.exe
3239do
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241set dummy $ac_prog; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3245 $as_echo_n "(cached) " >&6
3246else
f11781c5
AK
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3249else
f11781c5
AK
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_ac_ct_CC="$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261done
3262 done
3263IFS=$as_save_IFS
ad6254c5 3264
ad6254c5 3265fi
ad6254c5 3266fi
f11781c5
AK
3267ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270$as_echo "$ac_ct_CC" >&6; }
3271else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
ad6254c5 3274fi
ad6254c5 3275
d911ec67 3276
f11781c5
AK
3277 test -n "$ac_ct_CC" && break
3278done
d911ec67 3279
f11781c5
AK
3280 if test "x$ac_ct_CC" = x; then
3281 CC=""
3282 else
3283 case $cross_compiling:$ac_tool_warned in
3284yes:)
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287ac_tool_warned=yes ;;
d911ec67 3288esac
f11781c5
AK
3289 CC=$ac_ct_CC
3290 fi
3291fi
ad6254c5
AK
3292
3293fi
d911ec67
AK
3294
3295
f11781c5
AK
3296test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298as_fn_error $? "no acceptable C compiler found in \$PATH
3299See \`config.log' for more details" "$LINENO" 5; }
3300
3301# Provide some information about the compiler.
3302$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3303set X $ac_compile
3304ac_compiler=$2
3305for ac_option in --version -v -V -qversion; do
3306 { { ac_try="$ac_compiler $ac_option >&5"
3307case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312$as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3314 ac_status=$?
3315 if test -s conftest.err; then
3316 sed '10a\
3317... rest of stderr output deleted ...
3318 10q' conftest.err >conftest.er1
3319 cat conftest.er1 >&5
3320 fi
3321 rm -f conftest.er1 conftest.err
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3324done
ad6254c5 3325
f11781c5 3326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3327/* end confdefs.h. */
f11781c5 3328
ad6254c5
AK
3329int
3330main ()
3331{
f11781c5 3332
ad6254c5
AK
3333 ;
3334 return 0;
3335}
3336_ACEOF
f11781c5
AK
3337ac_clean_files_save=$ac_clean_files
3338ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3339# Try to create an executable without -o first, disregard a.out.
3340# It will help us diagnose broken compilers, and finding out an intuition
3341# of exeext.
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343$as_echo_n "checking whether the C compiler works... " >&6; }
3344ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3345
3346# The possible output files:
3347ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3348
3349ac_rmfiles=
3350for ac_file in $ac_files
3351do
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3355 esac
3356done
3357rm -f $ac_rmfiles
3358
3359if { { ac_try="$ac_link_default"
7a197a62
AK
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
f11781c5
AK
3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365$as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link_default") 2>&5
ad6254c5 3367 ac_status=$?
f11781c5
AK
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372# in a Makefile. We should not override ac_cv_exeext if it was cached,
3373# so that the user can short-circuit this test for compilers unknown to
3374# Autoconf.
3375for ac_file in $ac_files ''
3376do
3377 test -f "$ac_file" || continue
3378 case $ac_file in
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380 ;;
3381 [ab].out )
3382 # We found the default executable, but exeext='' is most
3383 # certainly right.
3384 break;;
3385 *.* )
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3387 then :; else
3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389 fi
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3394 # actually working.
3395 break;;
3396 * )
3397 break;;
3398 esac
3399done
3400test "$ac_cv_exeext" = no && ac_cv_exeext=
3401
ad6254c5 3402else
f11781c5
AK
3403 ac_file=''
3404fi
3405if test -z "$ac_file"; then :
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407$as_echo "no" >&6; }
ec6a6fbe 3408$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
f11781c5
AK
3411{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error 77 "C compiler cannot create executables
3414See \`config.log' for more details" "$LINENO" 5; }
3415else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417$as_echo "yes" >&6; }
ad6254c5 3418fi
f11781c5
AK
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420$as_echo_n "checking for C compiler default output file name... " >&6; }
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3422$as_echo "$ac_file" >&6; }
3423ac_exeext=$ac_cv_exeext
7a197a62 3424
f11781c5
AK
3425rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3426ac_clean_files=$ac_clean_files_save
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428$as_echo_n "checking for suffix of executables... " >&6; }
3429if { { ac_try="$ac_link"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
8a2fc586 3433esac
f11781c5
AK
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3441# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3442# work properly (i.e., refer to `conftest.exe'), while it won't with
3443# `rm'.
3444for ac_file in conftest.exe conftest conftest.*; do
3445 test -f "$ac_file" || continue
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 break;;
3450 * ) break;;
3451 esac
3452done
3453else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3457See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3458fi
f11781c5
AK
3459rm -f conftest conftest$ac_cv_exeext
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3462
f11781c5
AK
3463rm -f conftest.$ac_ext
3464EXEEXT=$ac_cv_exeext
3465ac_exeext=$EXEEXT
3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3467/* end confdefs.h. */
f11781c5 3468#include <stdio.h>
ad6254c5 3469int
f11781c5 3470main ()
ad6254c5 3471{
f11781c5
AK
3472FILE *f = fopen ("conftest.out", "w");
3473 return ferror (f) || fclose (f) != 0;
ad6254c5 3474
f11781c5 3475 ;
7a197a62 3476 return 0;
ad6254c5 3477}
ad6254c5 3478_ACEOF
f11781c5
AK
3479ac_clean_files="$ac_clean_files conftest.out"
3480# Check that the compiler produces executables we can run. If not, either
3481# the compiler is broken, or we cross compile.
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3483$as_echo_n "checking whether we are cross compiling... " >&6; }
3484if test "$cross_compiling" != yes; then
3485 { { ac_try="$ac_link"
7a197a62
AK
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
f11781c5
AK
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
7a197a62 3492 (eval "$ac_link") 2>&5
ad6254c5 3493 ac_status=$?
f11781c5
AK
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 if { ac_try='./conftest$ac_cv_exeext'
3497 { { case "(($ac_try" in
7a197a62
AK
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
f11781c5
AK
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
7a197a62 3503 (eval "$ac_try") 2>&5
ad6254c5 3504 ac_status=$?
f11781c5
AK
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; }; then
3507 cross_compiling=no
3508 else
3509 if test "$cross_compiling" = maybe; then
3510 cross_compiling=yes
3511 else
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot run C compiled programs.
3515If you meant to cross compile, use \`--host'.
3516See \`config.log' for more details" "$LINENO" 5; }
3517 fi
3518 fi
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3521$as_echo "$cross_compiling" >&6; }
3522
3523rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3524ac_clean_files=$ac_clean_files_save
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3526$as_echo_n "checking for suffix of object files... " >&6; }
3527if test "${ac_cv_objext+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3529else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
ad6254c5
AK
3532
3533int
3534main ()
3535{
f11781c5 3536
ad6254c5
AK
3537 ;
3538 return 0;
3539}
3540_ACEOF
f11781c5
AK
3541rm -f conftest.o conftest.obj
3542if { { ac_try="$ac_compile"
7a197a62
AK
3543case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546esac
f11781c5
AK
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compile") 2>&5
ad6254c5 3550 ac_status=$?
f11781c5
AK
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 for ac_file in conftest.o conftest.obj conftest.*; do
3554 test -f "$ac_file" || continue;
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3558 break;;
3559 esac
3560done
ad6254c5 3561else
ec6a6fbe 3562 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
f11781c5
AK
3565{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567as_fn_error $? "cannot compute suffix of object files: cannot compile
3568See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3569fi
f11781c5 3570rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3571fi
f11781c5
AK
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3573$as_echo "$ac_cv_objext" >&6; }
3574OBJEXT=$ac_cv_objext
3575ac_objext=$OBJEXT
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3577$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3578if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3579 $as_echo_n "(cached) " >&6
ad6254c5 3580else
f11781c5 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3582/* end confdefs.h. */
3583
ad6254c5
AK
3584int
3585main ()
3586{
f11781c5
AK
3587#ifndef __GNUC__
3588 choke me
3589#endif
3590
ad6254c5
AK
3591 ;
3592 return 0;
3593}
3594_ACEOF
f11781c5
AK
3595if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_compiler_gnu=yes
ad6254c5 3597else
f11781c5 3598 ac_compiler_gnu=no
ad6254c5 3599fi
f11781c5
AK
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3602
d0191583 3603fi
f11781c5
AK
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3605$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3606if test $ac_compiler_gnu = yes; then
3607 GCC=yes
d0191583 3608else
f11781c5 3609 GCC=
d0191583 3610fi
f11781c5
AK
3611ac_test_CFLAGS=${CFLAGS+set}
3612ac_save_CFLAGS=$CFLAGS
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3614$as_echo_n "checking whether $CC accepts -g... " >&6; }
3615if test "${ac_cv_prog_cc_g+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617else
3618 ac_save_c_werror_flag=$ac_c_werror_flag
3619 ac_c_werror_flag=yes
3620 ac_cv_prog_cc_g=no
3621 CFLAGS="-g"
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h. */
72b2cb61 3624
f11781c5
AK
3625int
3626main ()
3627{
72b2cb61 3628
f11781c5
AK
3629 ;
3630 return 0;
3631}
3632_ACEOF
3633if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_g=yes
3635else
3636 CFLAGS=""
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h. */
ad6254c5 3639
f11781c5
AK
3640int
3641main ()
3642{
ad6254c5 3643
f11781c5
AK
3644 ;
3645 return 0;
3646}
d0191583 3647_ACEOF
f11781c5
AK
3648if ac_fn_c_try_compile "$LINENO"; then :
3649
3650else
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3652 CFLAGS="-g"
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3654/* end confdefs.h. */
7a197a62 3655
f11781c5
AK
3656int
3657main ()
3658{
ad6254c5 3659
f11781c5
AK
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664if ac_fn_c_try_compile "$LINENO"; then :
3665 ac_cv_prog_cc_g=yes
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668fi
3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670fi
3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3675$as_echo "$ac_cv_prog_cc_g" >&6; }
3676if test "$ac_test_CFLAGS" = set; then
3677 CFLAGS=$ac_save_CFLAGS
3678elif test $ac_cv_prog_cc_g = yes; then
3679 if test "$GCC" = yes; then
3680 CFLAGS="-g -O2"
3681 else
3682 CFLAGS="-g"
3683 fi
3684else
3685 if test "$GCC" = yes; then
3686 CFLAGS="-O2"
3687 else
3688 CFLAGS=
3689 fi
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3692$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3693if test "${ac_cv_prog_cc_c89+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695else
3696 ac_cv_prog_cc_c89=no
3697ac_save_CC=$CC
3698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h. */
3700#include <stdarg.h>
3701#include <stdio.h>
3702#include <sys/types.h>
3703#include <sys/stat.h>
3704/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3705struct buf { int x; };
3706FILE * (*rcsopen) (struct buf *, struct stat *, int);
3707static char *e (p, i)
3708 char **p;
3709 int i;
3710{
3711 return p[i];
3712}
3713static char *f (char * (*g) (char **, int), char **p, ...)
3714{
3715 char *s;
3716 va_list v;
3717 va_start (v,p);
3718 s = g (p, va_arg (v,int));
3719 va_end (v);
3720 return s;
3721}
ad6254c5 3722
f11781c5
AK
3723/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3724 function prototypes and stuff, but not '\xHH' hex character constants.
3725 These don't provoke an error unfortunately, instead are silently treated
3726 as 'x'. The following induces an error, until -std is added to get
3727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3728 array size at least. It's necessary to write '\x00'==0 to get something
3729 that's true only with -std. */
3730int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3731
f11781c5
AK
3732/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3733 inside strings and character constants. */
3734#define FOO(x) 'x'
3735int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3736
f11781c5
AK
3737int test (int i, double x);
3738struct s1 {int (*f) (int a);};
3739struct s2 {int (*f) (double a);};
3740int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3741int argc;
3742char **argv;
d0191583
JM
3743int
3744main ()
3745{
f11781c5 3746return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3747 ;
3748 return 0;
3749}
72b2cb61 3750_ACEOF
f11781c5
AK
3751for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3753do
3754 CC="$ac_save_CC $ac_arg"
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_prog_cc_c89=$ac_arg
3757fi
3758rm -f core conftest.err conftest.$ac_objext
3759 test "x$ac_cv_prog_cc_c89" != "xno" && break
3760done
3761rm -f conftest.$ac_ext
3762CC=$ac_save_CC
3763
3764fi
3765# AC_CACHE_VAL
3766case "x$ac_cv_prog_cc_c89" in
3767 x)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3769$as_echo "none needed" >&6; } ;;
3770 xno)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3772$as_echo "unsupported" >&6; } ;;
3773 *)
3774 CC="$CC $ac_cv_prog_cc_c89"
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3776$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3777esac
f11781c5
AK
3778if test "x$ac_cv_prog_cc_c89" != xno; then :
3779
3780fi
3781
3782ac_ext=c
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3787
ad6254c5 3788
7a197a62 3789
f11781c5
AK
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3796$as_echo_n "checking how to run the C preprocessor... " >&6; }
3797# On Suns, sometimes $CPP names a directory.
3798if test -n "$CPP" && test -d "$CPP"; then
3799 CPP=
3800fi
3801if test -z "$CPP"; then
3802 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3803 $as_echo_n "(cached) " >&6
ad6254c5 3804else
f11781c5
AK
3805 # Double quotes because CPP needs to be expanded
3806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807 do
3808 ac_preproc_ok=false
3809for ac_c_preproc_warn_flag in '' yes
3810do
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3818/* end confdefs.h. */
d0191583
JM
3819#ifdef __STDC__
3820# include <limits.h>
3821#else
3822# include <assert.h>
3823#endif
f11781c5
AK
3824 Syntax error
3825_ACEOF
3826if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3827
f11781c5
AK
3828else
3829 # Broken: fails on valid input.
3830continue
3831fi
3832rm -f conftest.err conftest.$ac_ext
d0191583 3833
f11781c5
AK
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h. */
3838#include <ac_nonexistent.h>
72b2cb61 3839_ACEOF
f11781c5
AK
3840if ac_fn_c_try_cpp "$LINENO"; then :
3841 # Broken: success on invalid input.
3842continue
d0191583 3843else
f11781c5
AK
3844 # Passes both tests.
3845ac_preproc_ok=:
3846break
ad6254c5 3847fi
f11781c5 3848rm -f conftest.err conftest.$ac_ext
ad6254c5 3849
f11781c5
AK
3850done
3851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852rm -f conftest.err conftest.$ac_ext
3853if $ac_preproc_ok; then :
3854 break
7a197a62
AK
3855fi
3856
f11781c5
AK
3857 done
3858 ac_cv_prog_CPP=$CPP
ad6254c5 3859
7a197a62 3860fi
f11781c5
AK
3861 CPP=$ac_cv_prog_CPP
3862else
3863 ac_cv_prog_CPP=$CPP
d0191583 3864fi
f11781c5
AK
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3866$as_echo "$CPP" >&6; }
3867ac_preproc_ok=false
3868for ac_c_preproc_warn_flag in '' yes
3869do
3870 # Use a header file that comes with gcc, so configuring glibc
3871 # with a fresh cross-compiler works.
3872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873 # <limits.h> exists even on freestanding compilers.
3874 # On the NeXT, cc -E runs the code through the compiler's parser,
3875 # not just through cpp. "Syntax error" is here to catch this case.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */
3878#ifdef __STDC__
3879# include <limits.h>
3880#else
3881# include <assert.h>
3882#endif
3883 Syntax error
3884_ACEOF
3885if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3886
9c961554 3887else
f11781c5
AK
3888 # Broken: fails on valid input.
3889continue
9c961554 3890fi
f11781c5 3891rm -f conftest.err conftest.$ac_ext
9c961554 3892
f11781c5
AK
3893 # OK, works on sane cases. Now check whether nonexistent headers
3894 # can be detected and how.
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h. */
3897#include <ac_nonexistent.h>
3898_ACEOF
3899if ac_fn_c_try_cpp "$LINENO"; then :
3900 # Broken: success on invalid input.
3901continue
3902else
3903 # Passes both tests.
3904ac_preproc_ok=:
3905break
3906fi
3907rm -f conftest.err conftest.$ac_ext
ad6254c5 3908
f11781c5
AK
3909done
3910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911rm -f conftest.err conftest.$ac_ext
3912if $ac_preproc_ok; then :
d0191583 3913
f11781c5
AK
3914else
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3918See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3919fi
3920
f11781c5
AK
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3926
ad6254c5 3927
f11781c5
AK
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3929$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3930if test "${ac_cv_path_GREP+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932else
3933 if test -z "$GREP"; then
3934 ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3945# Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947case `"$ac_path_GREP" --version 2>&1` in
3948*GNU*)
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950*)
3951 ac_count=0
3952 $as_echo_n 0123456789 >"conftest.in"
3953 while :
3954 do
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 $as_echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 as_fn_arith $ac_count + 1 && ac_count=$as_val
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
3966 fi
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971esac
ad6254c5 3972
f11781c5
AK
3973 $ac_path_GREP_found && break 3
3974 done
3975 done
3976 done
3977IFS=$as_save_IFS
3978 if test -z "$ac_cv_path_GREP"; then
3979 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980 fi
3981else
3982 ac_cv_path_GREP=$GREP
7a197a62
AK
3983fi
3984
d0191583 3985fi
f11781c5
AK
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3987$as_echo "$ac_cv_path_GREP" >&6; }
3988 GREP="$ac_cv_path_GREP"
ad6254c5 3989
24bbc4d7 3990
f11781c5
AK
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3992$as_echo_n "checking for egrep... " >&6; }
3993if test "${ac_cv_path_EGREP+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995else
3996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997 then ac_cv_path_EGREP="$GREP -E"
3998 else
3999 if test -z "$EGREP"; then
4000 ac_path_EGREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in egrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011# Check for GNU ac_path_EGREP and select it if it is found.
4012 # Check for GNU $ac_path_EGREP
4013case `"$ac_path_EGREP" --version 2>&1` in
4014*GNU*)
4015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016*)
4017 ac_count=0
4018 $as_echo_n 0123456789 >"conftest.in"
4019 while :
4020 do
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'EGREP' >> "conftest.nl"
4025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 as_fn_arith $ac_count + 1 && ac_count=$as_val
4028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_EGREP="$ac_path_EGREP"
4031 ac_path_EGREP_max=$ac_count
4032 fi
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4035 done
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037esac
24bbc4d7 4038
f11781c5
AK
4039 $ac_path_EGREP_found && break 3
4040 done
4041 done
4042 done
4043IFS=$as_save_IFS
4044 if test -z "$ac_cv_path_EGREP"; then
4045 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 fi
24bbc4d7 4047else
f11781c5 4048 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4049fi
4050
f11781c5 4051 fi
24bbc4d7 4052fi
f11781c5
AK
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4054$as_echo "$ac_cv_path_EGREP" >&6; }
4055 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4056
4057
f11781c5
AK
4058if test $ac_cv_c_compiler_gnu = yes; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4060$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4061if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4062 $as_echo_n "(cached) " >&6
93bd259b 4063else
f11781c5
AK
4064 ac_pattern="Autoconf.*'x'"
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h. */
4067#include <sgtty.h>
4068Autoconf TIOCGETP
4069_ACEOF
4070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4072 ac_cv_prog_gcc_traditional=yes
d0191583 4073else
f11781c5 4074 ac_cv_prog_gcc_traditional=no
7a197a62 4075fi
f11781c5 4076rm -f conftest*
7a197a62 4077
72b2cb61 4078
f11781c5
AK
4079 if test $ac_cv_prog_gcc_traditional = no; then
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h. */
4082#include <termio.h>
4083Autoconf TCGETA
72b2cb61 4084_ACEOF
f11781c5
AK
4085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4087 ac_cv_prog_gcc_traditional=yes
ad6254c5 4088fi
f11781c5 4089rm -f conftest*
ad6254c5 4090
f11781c5 4091 fi
7a197a62 4092fi
f11781c5
AK
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4094$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4095 if test $ac_cv_prog_gcc_traditional = yes; then
4096 CC="$CC -traditional"
4097 fi
ad6254c5
AK
4098fi
4099
f11781c5
AK
4100# Find a good install program. We prefer a C program (faster),
4101# so one script is as good as another. But avoid the broken or
4102# incompatible versions:
4103# SysV /etc/install, /usr/sbin/install
4104# SunOS /usr/etc/install
4105# IRIX /sbin/install
4106# AIX /bin/install
4107# AmigaOS /C/install, which installs bootblocks on floppy discs
4108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4109# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4111# OS/2's system install, which has a completely different semantic
4112# ./install, which can be erroneously created by make from ./install.sh.
4113# Reject install programs that cannot install multiple files.
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4115$as_echo_n "checking for a BSD-compatible install... " >&6; }
4116if test -z "$INSTALL"; then
4117if test "${ac_cv_path_install+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
ad6254c5 4119else
f11781c5
AK
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 # Account for people who put trailing slashes in PATH elements.
4126case $as_dir/ in #((
4127 ./ | .// | /[cC]/* | \
4128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4129 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4130 /usr/ucb/* ) ;;
4131 *)
4132 # OSF1 and SCO ODT 3.0 have their own names for install.
4133 # Don't use installbsd from OSF since it installs stuff as root
4134 # by default.
4135 for ac_prog in ginstall scoinst install; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4138 if test $ac_prog = install &&
4139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4140 # AIX install. It has an incompatible calling convention.
4141 :
4142 elif test $ac_prog = install &&
4143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4144 # program-specific install script used by HP pwplus--don't use.
4145 :
4146 else
4147 rm -rf conftest.one conftest.two conftest.dir
4148 echo one > conftest.one
4149 echo two > conftest.two
4150 mkdir conftest.dir
4151 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4152 test -s conftest.one && test -s conftest.two &&
4153 test -s conftest.dir/conftest.one &&
4154 test -s conftest.dir/conftest.two
4155 then
4156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4157 break 3
4158 fi
4159 fi
4160 fi
4161 done
4162 done
4163 ;;
4164esac
7a197a62 4165
f11781c5
AK
4166 done
4167IFS=$as_save_IFS
d0191583 4168
f11781c5 4169rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4170
4171fi
f11781c5
AK
4172 if test "${ac_cv_path_install+set}" = set; then
4173 INSTALL=$ac_cv_path_install
4174 else
4175 # As a last resort, use the slow shell script. Don't cache a
4176 # value for INSTALL within a source directory, because that will
4177 # break other packages using the cache if that directory is
4178 # removed, or if the value is a relative name.
4179 INSTALL=$ac_install_sh
4180 fi
7a197a62 4181fi
f11781c5
AK
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4183$as_echo "$INSTALL" >&6; }
7a197a62 4184
f11781c5
AK
4185# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4186# It thinks the first close brace ends the variable substitution.
4187test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4188
f11781c5 4189test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4190
f11781c5 4191test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4192
f11781c5
AK
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4194$as_echo_n "checking whether ln -s works... " >&6; }
4195LN_S=$as_ln_s
4196if test "$LN_S" = "ln -s"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198$as_echo "yes" >&6; }
4199else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4201$as_echo "no, using $LN_S" >&6; }
15d91f5a 4202fi
ad6254c5 4203
f11781c5
AK
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4205$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4206set x ${MAKE-make}
4207ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4208if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4209 $as_echo_n "(cached) " >&6
d0191583 4210else
f11781c5
AK
4211 cat >conftest.make <<\_ACEOF
4212SHELL = /bin/sh
4213all:
4214 @echo '@@@%%%=$(MAKE)=@@@%%%'
4215_ACEOF
4216# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4217case `${MAKE-make} -f conftest.make 2>/dev/null` in
4218 *@@@%%%=?*=@@@%%%*)
4219 eval ac_cv_prog_make_${ac_make}_set=yes;;
4220 *)
4221 eval ac_cv_prog_make_${ac_make}_set=no;;
4222esac
4223rm -f conftest.make
4224fi
4225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4227$as_echo "yes" >&6; }
4228 SET_MAKE=
4229else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231$as_echo "no" >&6; }
4232 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4233fi
4234
f11781c5
AK
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4236$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4237if test -z "$MKDIR_P"; then
4238 if test "${ac_cv_path_mkdir+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in mkdir gmkdir; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4249 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4250 'mkdir (GNU coreutils) '* | \
4251 'mkdir (coreutils) '* | \
4252 'mkdir (fileutils) '4.1*)
4253 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4254 break 3;;
4255 esac
4256 done
4257 done
4258 done
4259IFS=$as_save_IFS
d0191583 4260
f11781c5 4261fi
ad6254c5 4262
f11781c5
AK
4263 test -d ./--version && rmdir ./--version
4264 if test "${ac_cv_path_mkdir+set}" = set; then
4265 MKDIR_P="$ac_cv_path_mkdir -p"
4266 else
4267 # As a last resort, use the slow shell script. Don't cache a
4268 # value for MKDIR_P within a source directory, because that will
4269 # break other packages using the cache if that directory is
4270 # removed, or if the value is a relative name.
4271 MKDIR_P="$ac_install_sh -d"
4272 fi
ad6254c5 4273fi
f11781c5
AK
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4275$as_echo "$MKDIR_P" >&6; }
7a197a62 4276
f11781c5
AK
4277if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4279set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281$as_echo_n "checking for $ac_word... " >&6; }
4282if test "${ac_cv_prog_RANLIB+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4284else
4285 if test -n "$RANLIB"; then
4286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300 done
4301IFS=$as_save_IFS
d0191583 4302
f11781c5
AK
4303fi
4304fi
4305RANLIB=$ac_cv_prog_RANLIB
4306if test -n "$RANLIB"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4308$as_echo "$RANLIB" >&6; }
d0191583 4309else
f11781c5
AK
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
ad6254c5 4312fi
ad6254c5 4313
8a2fc586 4314
d0191583 4315fi
f11781c5
AK
4316if test -z "$ac_cv_prog_RANLIB"; then
4317 ac_ct_RANLIB=$RANLIB
4318 # Extract the first word of "ranlib", so it can be a program name with args.
4319set dummy ranlib; ac_word=$2
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321$as_echo_n "checking for $ac_word... " >&6; }
4322if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324else
4325 if test -n "$ac_ct_RANLIB"; then
4326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4327else
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_RANLIB="ranlib"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339done
4340 done
4341IFS=$as_save_IFS
8a2fc586 4342
f11781c5
AK
4343fi
4344fi
4345ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4346if test -n "$ac_ct_RANLIB"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4348$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4349else
f11781c5
AK
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351$as_echo "no" >&6; }
8fea97b7
ZK
4352fi
4353
f11781c5
AK
4354 if test "x$ac_ct_RANLIB" = x; then
4355 RANLIB=":"
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358yes:)
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361ac_tool_warned=yes ;;
8fea97b7 4362esac
f11781c5
AK
4363 RANLIB=$ac_ct_RANLIB
4364 fi
d0191583 4365else
f11781c5 4366 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4367fi
8a2fc586 4368
f11781c5
AK
4369# Extract the first word of "cflow", so it can be a program name with args.
4370set dummy cflow; ac_word=$2
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372$as_echo_n "checking for $ac_word... " >&6; }
4373if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375else
4376 case $CFLOW_CMD in
4377 [\\/]* | ?:[\\/]*)
4378 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4379 ;;
4380 *)
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4391 fi
4392done
4393 done
4394IFS=$as_save_IFS
8a2fc586 4395
f11781c5
AK
4396 ;;
4397esac
ad6254c5 4398fi
f11781c5
AK
4399CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4400if test -n "$CFLOW_CMD"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4402$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4403else
f11781c5
AK
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
37ddf259
AK
4406fi
4407
e2997b73 4408
f11781c5
AK
4409# Extract the first word of "cscope", so it can be a program name with args.
4410set dummy cscope; ac_word=$2
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4412$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4413if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4414 $as_echo_n "(cached) " >&6
4415else
f11781c5 4416 case $CSCOPE_CMD in
e2997b73 4417 [\\/]* | ?:[\\/]*)
f11781c5 4418 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4419 ;;
4420 *)
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
f11781c5 4426 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4428 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4430 break 2
4431 fi
4432done
f11781c5 4433 done
e2997b73
AK
4434IFS=$as_save_IFS
4435
4436 ;;
4437esac
4438fi
f11781c5
AK
4439CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4440if test -n "$CSCOPE_CMD"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4442$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4443else
f11781c5 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4445$as_echo "no" >&6; }
4446fi
f11781c5
AK
4447
4448
4449
4450################################################################################
4451ac_header_dirent=no
4452for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4453 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4455$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4456if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4457 $as_echo_n "(cached) " >&6
4458else
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460/* end confdefs.h. */
4461#include <sys/types.h>
4462#include <$ac_hdr>
4463
4464int
4465main ()
4466{
4467if ((DIR *) 0)
4468return 0;
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473if ac_fn_c_try_compile "$LINENO"; then :
4474 eval "$as_ac_Header=yes"
4475else
4476 eval "$as_ac_Header=no"
4477fi
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480eval ac_res=\$$as_ac_Header
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4482$as_echo "$ac_res" >&6; }
4483if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4484 cat >>confdefs.h <<_ACEOF
4485#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4486_ACEOF
4487
4488ac_header_dirent=$ac_hdr; break
4489fi
4490
4491done
4492# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4493if test $ac_header_dirent = dirent.h; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4495$as_echo_n "checking for library containing opendir... " >&6; }
4496if test "${ac_cv_search_opendir+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498else
4499 ac_func_search_save_LIBS=$LIBS
4500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
4502
4503/* Override any GCC internal prototype to avoid an error.
4504 Use char because int might match the return type of a GCC
4505 builtin and then its argument prototype would still apply. */
4506#ifdef __cplusplus
4507extern "C"
4508#endif
4509char opendir ();
4510int
4511main ()
4512{
4513return opendir ();
4514 ;
4515 return 0;
4516}
4517_ACEOF
4518for ac_lib in '' dir; do
4519 if test -z "$ac_lib"; then
4520 ac_res="none required"
4521 else
4522 ac_res=-l$ac_lib
4523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4524 fi
4525 if ac_fn_c_try_link "$LINENO"; then :
4526 ac_cv_search_opendir=$ac_res
4527fi
4528rm -f core conftest.err conftest.$ac_objext \
4529 conftest$ac_exeext
4530 if test "${ac_cv_search_opendir+set}" = set; then :
4531 break
4532fi
4533done
4534if test "${ac_cv_search_opendir+set}" = set; then :
4535
4536else
4537 ac_cv_search_opendir=no
4538fi
4539rm conftest.$ac_ext
4540LIBS=$ac_func_search_save_LIBS
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4543$as_echo "$ac_cv_search_opendir" >&6; }
4544ac_res=$ac_cv_search_opendir
4545if test "$ac_res" != no; then :
4546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4547
4548fi
f11781c5
AK
4549
4550else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4552$as_echo_n "checking for library containing opendir... " >&6; }
4553if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4554 $as_echo_n "(cached) " >&6
4555else
f11781c5
AK
4556 ac_func_search_save_LIBS=$LIBS
4557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
e2997b73 4559
f11781c5
AK
4560/* Override any GCC internal prototype to avoid an error.
4561 Use char because int might match the return type of a GCC
4562 builtin and then its argument prototype would still apply. */
4563#ifdef __cplusplus
4564extern "C"
4565#endif
4566char opendir ();
4567int
4568main ()
4569{
4570return opendir ();
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575for ac_lib in '' x; do
4576 if test -z "$ac_lib"; then
4577 ac_res="none required"
4578 else
4579 ac_res=-l$ac_lib
4580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4581 fi
4582 if ac_fn_c_try_link "$LINENO"; then :
4583 ac_cv_search_opendir=$ac_res
e2997b73 4584fi
f11781c5
AK
4585rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext
4587 if test "${ac_cv_search_opendir+set}" = set; then :
4588 break
e2997b73 4589fi
f11781c5
AK
4590done
4591if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4592
e2997b73 4593else
f11781c5
AK
4594 ac_cv_search_opendir=no
4595fi
4596rm conftest.$ac_ext
4597LIBS=$ac_func_search_save_LIBS
e2997b73 4598fi
f11781c5
AK
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4600$as_echo "$ac_cv_search_opendir" >&6; }
4601ac_res=$ac_cv_search_opendir
4602if test "$ac_res" != no; then :
4603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4604
4605fi
8c4e8a18 4606
e2997b73
AK
4607fi
4608
f11781c5
AK
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4610$as_echo_n "checking for ANSI C header files... " >&6; }
4611if test "${ac_cv_header_stdc+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613else
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616#include <stdlib.h>
4617#include <stdarg.h>
4618#include <string.h>
4619#include <float.h>
e2997b73 4620
f11781c5
AK
4621int
4622main ()
4623{
4624
4625 ;
4626 return 0;
4627}
4628_ACEOF
4629if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_cv_header_stdc=yes
e2997b73 4631else
f11781c5 4632 ac_cv_header_stdc=no
e2997b73 4633fi
f11781c5
AK
4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635
4636if test $ac_cv_header_stdc = yes; then
4637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639/* end confdefs.h. */
4640#include <string.h>
4641
4642_ACEOF
4643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644 $EGREP "memchr" >/dev/null 2>&1; then :
4645
e2997b73 4646else
f11781c5 4647 ac_cv_header_stdc=no
e2997b73 4648fi
f11781c5 4649rm -f conftest*
e2997b73 4650
f11781c5 4651fi
e2997b73 4652
f11781c5
AK
4653if test $ac_cv_header_stdc = yes; then
4654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h. */
4657#include <stdlib.h>
e2997b73 4658
f11781c5
AK
4659_ACEOF
4660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4662
e2997b73 4663else
f11781c5 4664 ac_cv_header_stdc=no
e2997b73 4665fi
f11781c5 4666rm -f conftest*
e2997b73 4667
e2997b73 4668fi
90c80887 4669
f11781c5
AK
4670if test $ac_cv_header_stdc = yes; then
4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672 if test "$cross_compiling" = yes; then :
4673 :
4674else
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
4677#include <ctype.h>
4678#include <stdlib.h>
4679#if ((' ' & 0x0FF) == 0x020)
4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682#else
4683# define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
4685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688#endif
4689
4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691int
4692main ()
4693{
4694 int i;
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4698 return 2;
4699 return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_run "$LINENO"; then :
90c80887 4703
90c80887 4704else
f11781c5 4705 ac_cv_header_stdc=no
90c80887 4706fi
f11781c5
AK
4707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4708 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4709fi
90c80887 4710
90c80887 4711fi
90c80887 4712fi
f11781c5
AK
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4714$as_echo "$ac_cv_header_stdc" >&6; }
4715if test $ac_cv_header_stdc = yes; then
90c80887 4716
f11781c5 4717$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4718
90c80887 4719fi
f11781c5
AK
4720
4721# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723 inttypes.h stdint.h unistd.h
4724do :
4725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4727"
4728if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4729 cat >>confdefs.h <<_ACEOF
4730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4731_ACEOF
4732
90c80887 4733fi
f11781c5
AK
4734
4735done
4736
4737
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4739$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4740if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h. */
4745#include <sys/types.h>
4746int
4747main ()
4748{
4749return makedev(0, 0);
4750 ;
4751 return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_link "$LINENO"; then :
4755 ac_cv_header_sys_types_h_makedev=yes
4756else
4757 ac_cv_header_sys_types_h_makedev=no
90c80887 4758fi
f11781c5
AK
4759rm -f core conftest.err conftest.$ac_objext \
4760 conftest$ac_exeext conftest.$ac_ext
4761
90c80887 4762fi
f11781c5
AK
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4764$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4765
4766if test $ac_cv_header_sys_types_h_makedev = no; then
4767ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4768if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4769
4770$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4771
a946372e 4772fi
e2997b73 4773
e2997b73 4774
a946372e 4775
f11781c5
AK
4776 if test $ac_cv_header_sys_mkdev_h = no; then
4777 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4778if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4779
4780$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4781
e2997b73 4782fi
a946372e 4783
a946372e 4784
f11781c5
AK
4785 fi
4786fi
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4789$as_echo_n "checking for ANSI C header files... " >&6; }
4790if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4791 $as_echo_n "(cached) " >&6
4792else
f11781c5 4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4794/* end confdefs.h. */
f11781c5
AK
4795#include <stdlib.h>
4796#include <stdarg.h>
4797#include <string.h>
4798#include <float.h>
a946372e 4799
a946372e
AK
4800int
4801main ()
4802{
f11781c5 4803
a946372e
AK
4804 ;
4805 return 0;
4806}
4807_ACEOF
f11781c5
AK
4808if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_header_stdc=yes
e2997b73 4810else
f11781c5
AK
4811 ac_cv_header_stdc=no
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814
4815if test $ac_cv_header_stdc = yes; then
4816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h. */
4819#include <string.h>
4820
4821_ACEOF
4822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4823 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4824
f11781c5
AK
4825else
4826 ac_cv_header_stdc=no
a946372e 4827fi
f11781c5 4828rm -f conftest*
e2997b73 4829
a946372e 4830fi
e2997b73 4831
f11781c5
AK
4832if test $ac_cv_header_stdc = yes; then
4833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
4836#include <stdlib.h>
4837
4838_ACEOF
4839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4841
e2997b73 4842else
f11781c5 4843 ac_cv_header_stdc=no
e2997b73 4844fi
f11781c5 4845rm -f conftest*
e2997b73 4846
f11781c5 4847fi
a946372e 4848
f11781c5
AK
4849if test $ac_cv_header_stdc = yes; then
4850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4851 if test "$cross_compiling" = yes; then :
4852 :
4853else
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856#include <ctype.h>
4857#include <stdlib.h>
4858#if ((' ' & 0x0FF) == 0x020)
4859# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4861#else
4862# define ISLOWER(c) \
4863 (('a' <= (c) && (c) <= 'i') \
4864 || ('j' <= (c) && (c) <= 'r') \
4865 || ('s' <= (c) && (c) <= 'z'))
4866# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4867#endif
e2997b73 4868
f11781c5
AK
4869#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4870int
4871main ()
4872{
4873 int i;
4874 for (i = 0; i < 256; i++)
4875 if (XOR (islower (i), ISLOWER (i))
4876 || toupper (i) != TOUPPER (i))
4877 return 2;
4878 return 0;
4879}
4880_ACEOF
4881if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4882
e2997b73 4883else
f11781c5 4884 ac_cv_header_stdc=no
e2997b73 4885fi
f11781c5
AK
4886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4887 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4888fi
f11781c5 4889
e2997b73 4890fi
e2997b73 4891fi
f11781c5
AK
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4893$as_echo "$ac_cv_header_stdc" >&6; }
4894if test $ac_cv_header_stdc = yes; then
e2997b73 4895
f11781c5 4896$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4897
f11781c5 4898fi
e2997b73 4899
f11781c5
AK
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4901$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4902if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907#include <sys/types.h>
4908#include <sys/wait.h>
4909#ifndef WEXITSTATUS
4910# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4911#endif
4912#ifndef WIFEXITED
4913# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4914#endif
e2997b73 4915
f11781c5
AK
4916int
4917main ()
4918{
4919 int s;
4920 wait (&s);
4921 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926if ac_fn_c_try_compile "$LINENO"; then :
4927 ac_cv_header_sys_wait_h=yes
e2997b73 4928else
f11781c5 4929 ac_cv_header_sys_wait_h=no
e2997b73 4930fi
f11781c5
AK
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4934$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4935if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4936
f11781c5 4937$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4938
d0191583 4939fi
f11781c5
AK
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4942$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4943if test "${ac_cv_header_time+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
fc54be10 4945else
f11781c5 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4947/* end confdefs.h. */
f11781c5
AK
4948#include <sys/types.h>
4949#include <sys/time.h>
4950#include <time.h>
4951
4952int
4953main ()
4954{
4955if ((struct tm *) 0)
4956return 0;
4957 ;
4958 return 0;
4959}
a946372e 4960_ACEOF
f11781c5
AK
4961if ac_fn_c_try_compile "$LINENO"; then :
4962 ac_cv_header_time=yes
a946372e 4963else
f11781c5
AK
4964 ac_cv_header_time=no
4965fi
4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4969$as_echo "$ac_cv_header_time" >&6; }
4970if test $ac_cv_header_time = yes; then
4971
4972$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4973
4974fi
4975
4976
4977for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4978 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4979 sys/wait.h time.h
4980do :
4981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4984 cat >>confdefs.h <<_ACEOF
4985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986_ACEOF
d0191583 4987
f11781c5
AK
4988else
4989 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4990fi
4991
f11781c5 4992done
fddafd51 4993
f11781c5
AK
4994
4995case "$host_os" in
4996 linux*)
4997 for ac_header in asm/byteorder.h linux/fs.h malloc.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
a946372e 5004_ACEOF
a946372e 5005
f11781c5
AK
5006else
5007 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
5008fi
5009
f11781c5
AK
5010done
5011 ;;
5012 darwin*)
5013 for ac_header in machine/endian.h sys/disk.h
5014do :
5015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5018 cat >>confdefs.h <<_ACEOF
5019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5020_ACEOF
a946372e 5021
f11781c5
AK
5022else
5023 as_fn_error $? "bailing out" "$LINENO" 5
5024fi
a946372e 5025
f11781c5
AK
5026done
5027 ;;
a946372e 5028esac
f11781c5
AK
5029
5030for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5031 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5032 sys/types.h unistd.h
5033do :
5034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5035ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5037 cat >>confdefs.h <<_ACEOF
5038#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039_ACEOF
5040
a946372e 5041else
f11781c5 5042 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5043fi
a946372e 5044
f11781c5
AK
5045done
5046
5047for ac_header in termios.h sys/statvfs.h
5048do :
5049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5051if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5052 cat >>confdefs.h <<_ACEOF
5053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5054_ACEOF
5055
a946372e
AK
5056fi
5057
5058done
5059
a946372e 5060
f11781c5
AK
5061################################################################################
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5063$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5064if test "${ac_cv_c_const+set}" = set; then :
a946372e 5065 $as_echo_n "(cached) " >&6
a946372e 5066else
f11781c5 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5068/* end confdefs.h. */
a946372e 5069
f11781c5
AK
5070int
5071main ()
5072{
5073/* FIXME: Include the comments suggested by Paul. */
5074#ifndef __cplusplus
5075 /* Ultrix mips cc rejects this. */
5076 typedef int charset[2];
5077 const charset cs;
5078 /* SunOS 4.1.1 cc rejects this. */
5079 char const *const *pcpcc;
5080 char **ppc;
5081 /* NEC SVR4.0.2 mips cc rejects this. */
5082 struct point {int x, y;};
5083 static struct point const zero = {0,0};
5084 /* AIX XL C 1.02.0.0 rejects this.
5085 It does not let you subtract one const X* pointer from another in
5086 an arm of an if-expression whose if-part is not a constant
5087 expression */
5088 const char *g = "string";
5089 pcpcc = &g + (g ? g-g : 0);
5090 /* HPUX 7.0 cc rejects these. */
5091 ++pcpcc;
5092 ppc = (char**) pcpcc;
5093 pcpcc = (char const *const *) ppc;
5094 { /* SCO 3.2v4 cc rejects this. */
5095 char *t;
5096 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5097
f11781c5
AK
5098 *t++ = 0;
5099 if (s) return 0;
5100 }
5101 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5102 int x[] = {25, 17};
5103 const int *foo = &x[0];
5104 ++foo;
5105 }
5106 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5107 typedef const int *iptr;
5108 iptr p = 0;
5109 ++p;
5110 }
5111 { /* AIX XL C 1.02.0.0 rejects this saying
5112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5113 struct s { int j; const int *ap[3]; };
5114 struct s *b; b->j = 5;
5115 }
5116 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5117 const int foo = 10;
5118 if (!foo) return 0;
5119 }
5120 return !cs[0] && !zero.x;
5121#endif
a946372e 5122
f11781c5
AK
5123 ;
5124 return 0;
5125}
a946372e 5126_ACEOF
f11781c5
AK
5127if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_c_const=yes
a946372e 5129else
f11781c5
AK
5130 ac_cv_c_const=no
5131fi
5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5133fi
f11781c5
AK
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5135$as_echo "$ac_cv_c_const" >&6; }
5136if test $ac_cv_c_const = no; then
a946372e 5137
f11781c5 5138$as_echo "#define const /**/" >>confdefs.h
a946372e 5139
f11781c5 5140fi
a946372e 5141
f11781c5
AK
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5143$as_echo_n "checking for inline... " >&6; }
5144if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5145 $as_echo_n "(cached) " >&6
5146else
f11781c5
AK
5147 ac_cv_c_inline=no
5148for ac_kw in inline __inline__ __inline; do
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h. */
5151#ifndef __cplusplus
5152typedef int foo_t;
5153static $ac_kw foo_t static_foo () {return 0; }
5154$ac_kw foo_t foo () {return 0; }
5155#endif
5156
5157_ACEOF
5158if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_c_inline=$ac_kw
a946372e 5160fi
f11781c5
AK
5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 test "$ac_cv_c_inline" != no && break
5163done
a946372e
AK
5164
5165fi
f11781c5
AK
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5167$as_echo "$ac_cv_c_inline" >&6; }
5168
5169case $ac_cv_c_inline in
5170 inline | yes) ;;
5171 *)
5172 case $ac_cv_c_inline in
5173 no) ac_val=;;
5174 *) ac_val=$ac_cv_c_inline;;
5175 esac
5176 cat >>confdefs.h <<_ACEOF
5177#ifndef __cplusplus
5178#define inline $ac_val
5179#endif
5180_ACEOF
5181 ;;
5182esac
5183
5184ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5185if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5186
5187cat >>confdefs.h <<_ACEOF
5188#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5189_ACEOF
5190
f11781c5 5191
a946372e
AK
5192fi
5193
f11781c5
AK
5194ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5195if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5196
a946372e 5197else
f11781c5
AK
5198
5199cat >>confdefs.h <<_ACEOF
5200#define off_t long int
5201_ACEOF
5202
a946372e
AK
5203fi
5204
f11781c5
AK
5205ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5206if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5207
a946372e 5208else
f11781c5
AK
5209
5210cat >>confdefs.h <<_ACEOF
5211#define pid_t int
5212_ACEOF
5213
5214fi
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5217$as_echo_n "checking return type of signal handlers... " >&6; }
5218if test "${ac_cv_type_signal+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
a946372e 5220else
f11781c5
AK
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223#include <sys/types.h>
5224#include <signal.h>
5225
5226int
5227main ()
5228{
5229return *(signal (0, 0)) (0) == 1;
5230 ;
5231 return 0;
5232}
5233_ACEOF
5234if ac_fn_c_try_compile "$LINENO"; then :
5235 ac_cv_type_signal=int
5236else
5237 ac_cv_type_signal=void
a946372e 5238fi
f11781c5 5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5240fi
f11781c5
AK
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5242$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5243
f11781c5
AK
5244cat >>confdefs.h <<_ACEOF
5245#define RETSIGTYPE $ac_cv_type_signal
5246_ACEOF
a946372e
AK
5247
5248
f11781c5
AK
5249ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5250if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5251
a946372e 5252else
a946372e 5253
f11781c5
AK
5254cat >>confdefs.h <<_ACEOF
5255#define size_t unsigned int
5256_ACEOF
a946372e 5257
a946372e 5258fi
f11781c5
AK
5259
5260ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5261if test "x$ac_cv_type_mode_t" = x""yes; then :
5262
a946372e 5263else
f11781c5
AK
5264
5265cat >>confdefs.h <<_ACEOF
5266#define mode_t int
a946372e 5267_ACEOF
a946372e 5268
a946372e
AK
5269fi
5270
f11781c5
AK
5271ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5272case $ac_cv_c_int8_t in #(
5273 no|yes) ;; #(
5274 *)
a946372e 5275
f11781c5
AK
5276cat >>confdefs.h <<_ACEOF
5277#define int8_t $ac_cv_c_int8_t
a946372e 5278_ACEOF
f11781c5 5279;;
a946372e 5280esac
a946372e 5281
f11781c5
AK
5282ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5283case $ac_cv_c_int16_t in #(
5284 no|yes) ;; #(
5285 *)
a946372e 5286
f11781c5
AK
5287cat >>confdefs.h <<_ACEOF
5288#define int16_t $ac_cv_c_int16_t
5289_ACEOF
5290;;
5291esac
a946372e 5292
f11781c5
AK
5293ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5294case $ac_cv_c_int32_t in #(
5295 no|yes) ;; #(
5296 *)
a946372e 5297
f11781c5
AK
5298cat >>confdefs.h <<_ACEOF
5299#define int32_t $ac_cv_c_int32_t
5300_ACEOF
5301;;
a946372e 5302esac
a946372e 5303
f11781c5
AK
5304ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5305case $ac_cv_c_int64_t in #(
5306 no|yes) ;; #(
5307 *)
5308
5309cat >>confdefs.h <<_ACEOF
5310#define int64_t $ac_cv_c_int64_t
a946372e 5311_ACEOF
f11781c5
AK
5312;;
5313esac
5314
5315ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5316if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5317
5318else
a946372e 5319
f11781c5
AK
5320cat >>confdefs.h <<_ACEOF
5321#define ssize_t int
5322_ACEOF
a946372e 5323
f11781c5 5324fi
a946372e 5325
f11781c5
AK
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5327$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5328if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5329 $as_echo_n "(cached) " >&6
a946372e 5330else
f11781c5 5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5332/* end confdefs.h. */
f11781c5
AK
5333#include <sys/types.h>
5334
a946372e 5335_ACEOF
f11781c5
AK
5336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "uid_t" >/dev/null 2>&1; then :
5338 ac_cv_type_uid_t=yes
a946372e 5339else
f11781c5
AK
5340 ac_cv_type_uid_t=no
5341fi
5342rm -f conftest*
a946372e 5343
a946372e 5344fi
f11781c5
AK
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5346$as_echo "$ac_cv_type_uid_t" >&6; }
5347if test $ac_cv_type_uid_t = no; then
a946372e 5348
f11781c5 5349$as_echo "#define uid_t int" >>confdefs.h
a946372e 5350
f11781c5
AK
5351
5352$as_echo "#define gid_t int" >>confdefs.h
5353
5354fi
5355
5356ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5357case $ac_cv_c_uint8_t in #(
5358 no|yes) ;; #(
5359 *)
5360
5361$as_echo "#define _UINT8_T 1" >>confdefs.h
5362
5363
5364cat >>confdefs.h <<_ACEOF
5365#define uint8_t $ac_cv_c_uint8_t
a946372e 5366_ACEOF
f11781c5
AK
5367;;
5368 esac
5369
5370ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5371case $ac_cv_c_uint16_t in #(
5372 no|yes) ;; #(
5373 *)
5374
5375
5376cat >>confdefs.h <<_ACEOF
5377#define uint16_t $ac_cv_c_uint16_t
a946372e 5378_ACEOF
f11781c5
AK
5379;;
5380 esac
a946372e 5381
f11781c5
AK
5382ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5383case $ac_cv_c_uint32_t in #(
5384 no|yes) ;; #(
5385 *)
a946372e 5386
f11781c5 5387$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5388
a946372e 5389
f11781c5
AK
5390cat >>confdefs.h <<_ACEOF
5391#define uint32_t $ac_cv_c_uint32_t
5392_ACEOF
5393;;
5394 esac
5395
5396ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5397case $ac_cv_c_uint64_t in #(
5398 no|yes) ;; #(
5399 *)
5400
5401$as_echo "#define _UINT64_T 1" >>confdefs.h
5402
5403
5404cat >>confdefs.h <<_ACEOF
5405#define uint64_t $ac_cv_c_uint64_t
5406_ACEOF
5407;;
5408 esac
5409
5410ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5411if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5412
5413cat >>confdefs.h <<_ACEOF
5414#define HAVE_STRUCT_STAT_ST_RDEV 1
5415_ACEOF
5416
5417
5418fi
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5421$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5422if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5423 $as_echo_n "(cached) " >&6
5424else
f11781c5
AK
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h. */
5427#include <sys/types.h>
5428#include <time.h>
5429
5430int
5431main ()
5432{
5433struct tm tm;
5434 int *p = &tm.tm_sec;
5435 return !p;
5436 ;
5437 return 0;
5438}
5439_ACEOF
5440if ac_fn_c_try_compile "$LINENO"; then :
5441 ac_cv_struct_tm=time.h
5442else
5443 ac_cv_struct_tm=sys/time.h
a946372e 5444fi
f11781c5
AK
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5448$as_echo "$ac_cv_struct_tm" >&6; }
5449if test $ac_cv_struct_tm = sys/time.h; then
5450
5451$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5452
5453fi
f11781c5
AK
5454
5455
5456################################################################################
5457for ac_func in ftruncate gethostname getpagesize \
5458 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5459 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5460 strstr strtol strtoul uname
5461do :
5462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5463ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5464if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5465 cat >>confdefs.h <<_ACEOF
f11781c5 5466#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5467_ACEOF
5468
5469else
f11781c5 5470 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5471fi
a946372e
AK
5472done
5473
f11781c5
AK
5474for ac_func in siginterrupt
5475do :
5476 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5477if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5478 cat >>confdefs.h <<_ACEOF
5479#define HAVE_SIGINTERRUPT 1
5480_ACEOF
a946372e 5481
f11781c5
AK
5482fi
5483done
a946372e 5484
f11781c5
AK
5485# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5486# for constant arguments. Useless!
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5488$as_echo_n "checking for working alloca.h... " >&6; }
5489if test "${ac_cv_working_alloca_h+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
a946372e 5491else
f11781c5
AK
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494#include <alloca.h>
5495int
5496main ()
5497{
5498char *p = (char *) alloca (2 * sizeof (int));
5499 if (p) return 0;
5500 ;
5501 return 0;
5502}
5503_ACEOF
5504if ac_fn_c_try_link "$LINENO"; then :
5505 ac_cv_working_alloca_h=yes
a946372e 5506else
f11781c5 5507 ac_cv_working_alloca_h=no
a946372e 5508fi
f11781c5
AK
5509rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
a946372e 5511fi
f11781c5
AK
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5513$as_echo "$ac_cv_working_alloca_h" >&6; }
5514if test $ac_cv_working_alloca_h = yes; then
a946372e 5515
f11781c5 5516$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5517
a946372e 5518fi
a946372e 5519
f11781c5
AK
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5521$as_echo_n "checking for alloca... " >&6; }
5522if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5523 $as_echo_n "(cached) " >&6
a946372e 5524else
f11781c5 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5526/* end confdefs.h. */
f11781c5
AK
5527#ifdef __GNUC__
5528# define alloca __builtin_alloca
5529#else
5530# ifdef _MSC_VER
5531# include <malloc.h>
5532# define alloca _alloca
5533# else
5534# ifdef HAVE_ALLOCA_H
5535# include <alloca.h>
5536# else
5537# ifdef _AIX
5538 #pragma alloca
5539# else
5540# ifndef alloca /* predefined by HP cc +Olibcalls */
5541char *alloca ();
5542# endif
5543# endif
5544# endif
5545# endif
5546#endif
a946372e 5547
f11781c5
AK
5548int
5549main ()
5550{
5551char *p = (char *) alloca (1);
5552 if (p) return 0;
5553 ;
5554 return 0;
5555}
a946372e 5556_ACEOF
f11781c5
AK
5557if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_func_alloca_works=yes
a946372e 5559else
f11781c5 5560 ac_cv_func_alloca_works=no
a946372e 5561fi
f11781c5
AK
5562rm -f core conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5566$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5567
f11781c5 5568if test $ac_cv_func_alloca_works = yes; then
a946372e 5569
f11781c5 5570$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5571
a946372e 5572else
f11781c5
AK
5573 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5574# that cause trouble. Some versions do not even contain alloca or
5575# contain a buggy version. If you still want to use their alloca,
5576# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5577
f11781c5 5578ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5579
f11781c5 5580$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5581
a946372e 5582
f11781c5
AK
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5584$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5585if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5586 $as_echo_n "(cached) " >&6
a946372e 5587else
f11781c5 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5589/* end confdefs.h. */
f11781c5
AK
5590#if defined CRAY && ! defined CRAY2
5591webecray
5592#else
5593wenotbecray
5594#endif
5595
a946372e 5596_ACEOF
f11781c5
AK
5597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "webecray" >/dev/null 2>&1; then :
5599 ac_cv_os_cray=yes
a946372e 5600else
f11781c5 5601 ac_cv_os_cray=no
a946372e 5602fi
f11781c5 5603rm -f conftest*
a946372e 5604
f11781c5
AK
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5607$as_echo "$ac_cv_os_cray" >&6; }
5608if test $ac_cv_os_cray = yes; then
5609 for ac_func in _getb67 GETB67 getb67; do
5610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5611ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5612if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5613
f11781c5
AK
5614cat >>confdefs.h <<_ACEOF
5615#define CRAY_STACKSEG_END $ac_func
a946372e 5616_ACEOF
a946372e 5617
f11781c5 5618 break
a946372e
AK
5619fi
5620
f11781c5
AK
5621 done
5622fi
a946372e 5623
f11781c5
AK
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5625$as_echo_n "checking stack direction for C alloca... " >&6; }
5626if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5627 $as_echo_n "(cached) " >&6
5628else
f11781c5
AK
5629 if test "$cross_compiling" = yes; then :
5630 ac_cv_c_stack_direction=0
5631else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h. */
5634$ac_includes_default
5635int
5636find_stack_direction ()
5637{
5638 static char *addr = 0;
5639 auto char dummy;
5640 if (addr == 0)
5641 {
5642 addr = &dummy;
5643 return find_stack_direction ();
5644 }
5645 else
5646 return (&dummy > addr) ? 1 : -1;
5647}
5648
5649int
5650main ()
5651{
5652 return find_stack_direction () < 0;
5653}
5654_ACEOF
5655if ac_fn_c_try_run "$LINENO"; then :
5656 ac_cv_c_stack_direction=1
5657else
5658 ac_cv_c_stack_direction=-1
5659fi
5660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5661 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5662fi
a946372e
AK
5663
5664fi
f11781c5
AK
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5666$as_echo "$ac_cv_c_stack_direction" >&6; }
5667cat >>confdefs.h <<_ACEOF
5668#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5669_ACEOF
5670
f11781c5 5671
a946372e
AK
5672fi
5673
f11781c5
AK
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5675$as_echo_n "checking whether closedir returns void... " >&6; }
5676if test "${ac_cv_func_closedir_void+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5678else
5679 if test "$cross_compiling" = yes; then :
5680 ac_cv_func_closedir_void=yes
5681else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h. */
5684$ac_includes_default
5685#include <$ac_header_dirent>
5686#ifndef __cplusplus
5687int closedir ();
5688#endif
a946372e 5689
f11781c5
AK
5690int
5691main ()
5692{
5693return closedir (opendir (".")) != 0;
5694 ;
5695 return 0;
5696}
5697_ACEOF
5698if ac_fn_c_try_run "$LINENO"; then :
5699 ac_cv_func_closedir_void=no
a946372e 5700else
f11781c5 5701 ac_cv_func_closedir_void=yes
a946372e 5702fi
f11781c5
AK
5703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5705fi
5706
f11781c5
AK
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5709$as_echo "$ac_cv_func_closedir_void" >&6; }
5710if test $ac_cv_func_closedir_void = yes; then
a946372e 5711
f11781c5 5712$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5713
a946372e
AK
5714fi
5715
f11781c5
AK
5716for ac_header in unistd.h
5717do :
5718 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5719if test "x$ac_cv_header_unistd_h" = x""yes; then :
5720 cat >>confdefs.h <<_ACEOF
5721#define HAVE_UNISTD_H 1
5722_ACEOF
a946372e 5723
f11781c5 5724fi
a946372e 5725
f11781c5 5726done
a946372e 5727
f11781c5
AK
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5729$as_echo_n "checking for working chown... " >&6; }
5730if test "${ac_cv_func_chown_works+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
a946372e 5732else
f11781c5
AK
5733 if test "$cross_compiling" = yes; then :
5734 ac_cv_func_chown_works=no
a946372e 5735else
f11781c5
AK
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h. */
5738$ac_includes_default
5739#include <fcntl.h>
a946372e 5740
f11781c5
AK
5741int
5742main ()
5743{
5744 char *f = "conftest.chown";
5745 struct stat before, after;
a946372e 5746
f11781c5
AK
5747 if (creat (f, 0600) < 0)
5748 return 1;
5749 if (stat (f, &before) < 0)
5750 return 1;
5751 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5752 return 1;
5753 if (stat (f, &after) < 0)
5754 return 1;
5755 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5756
f11781c5
AK
5757 ;
5758 return 0;
5759}
5760_ACEOF
5761if ac_fn_c_try_run "$LINENO"; then :
5762 ac_cv_func_chown_works=yes
a946372e 5763else
f11781c5 5764 ac_cv_func_chown_works=no
a946372e 5765fi
f11781c5
AK
5766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5767 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5768fi
5769
f11781c5 5770rm -f conftest.chown
a946372e 5771
f11781c5
AK
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5774$as_echo "$ac_cv_func_chown_works" >&6; }
5775if test $ac_cv_func_chown_works = yes; then
a946372e 5776
f11781c5 5777$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5778
a946372e 5779fi
a946372e 5780
f11781c5
AK
5781for ac_header in vfork.h
5782do :
5783 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5784if test "x$ac_cv_header_vfork_h" = x""yes; then :
5785 cat >>confdefs.h <<_ACEOF
5786#define HAVE_VFORK_H 1
5787_ACEOF
a946372e 5788
f11781c5 5789fi
a946372e 5790
f11781c5 5791done
a946372e 5792
f11781c5
AK
5793for ac_func in fork vfork
5794do :
5795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5796ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5797if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5798 cat >>confdefs.h <<_ACEOF
5799#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5800_ACEOF
a946372e 5801
f11781c5
AK
5802fi
5803done
a946372e 5804
f11781c5
AK
5805if test "x$ac_cv_func_fork" = xyes; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5807$as_echo_n "checking for working fork... " >&6; }
5808if test "${ac_cv_func_fork_works+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test "$cross_compiling" = yes; then :
5812 ac_cv_func_fork_works=cross
5813else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h. */
5816$ac_includes_default
5817int
5818main ()
5819{
a946372e 5820
f11781c5
AK
5821 /* By Ruediger Kuhlmann. */
5822 return fork () < 0;
a946372e 5823
f11781c5
AK
5824 ;
5825 return 0;
5826}
5827_ACEOF
5828if ac_fn_c_try_run "$LINENO"; then :
5829 ac_cv_func_fork_works=yes
a946372e 5830else
f11781c5
AK
5831 ac_cv_func_fork_works=no
5832fi
5833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5834 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5835fi
a946372e 5836
f11781c5
AK
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5839$as_echo "$ac_cv_func_fork_works" >&6; }
5840
a946372e 5841else
f11781c5 5842 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5843fi
f11781c5
AK
5844if test "x$ac_cv_func_fork_works" = xcross; then
5845 case $host in
5846 *-*-amigaos* | *-*-msdosdjgpp*)
5847 # Override, as these systems have only a dummy fork() stub
5848 ac_cv_func_fork_works=no
5849 ;;
5850 *)
5851 ac_cv_func_fork_works=yes
5852 ;;
5853 esac
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5855$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5856fi
f11781c5
AK
5857ac_cv_func_vfork_works=$ac_cv_func_vfork
5858if test "x$ac_cv_func_vfork" = xyes; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5860$as_echo_n "checking for working vfork... " >&6; }
5861if test "${ac_cv_func_vfork_works+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test "$cross_compiling" = yes; then :
5865 ac_cv_func_vfork_works=cross
5866else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h. */
5869/* Thanks to Paul Eggert for this test. */
5870$ac_includes_default
5871#include <sys/wait.h>
5872#ifdef HAVE_VFORK_H
5873# include <vfork.h>
5874#endif
5875/* On some sparc systems, changes by the child to local and incoming
5876 argument registers are propagated back to the parent. The compiler
5877 is told about this with #include <vfork.h>, but some compilers
5878 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5879 static variable whose address is put into a register that is
5880 clobbered by the vfork. */
5881static void
5882#ifdef __cplusplus
5883sparc_address_test (int arg)
5884# else
5885sparc_address_test (arg) int arg;
5886#endif
5887{
5888 static pid_t child;
5889 if (!child) {
5890 child = vfork ();
5891 if (child < 0) {
5892 perror ("vfork");
5893 _exit(2);
5894 }
5895 if (!child) {
5896 arg = getpid();
5897 write(-1, "", 0);
5898 _exit (arg);
5899 }
5900 }
5901}
a946372e 5902
f11781c5
AK
5903int
5904main ()
5905{
5906 pid_t parent = getpid ();
5907 pid_t child;
a946372e 5908
f11781c5 5909 sparc_address_test (0);
a946372e 5910
f11781c5 5911 child = vfork ();
a946372e 5912
f11781c5
AK
5913 if (child == 0) {
5914 /* Here is another test for sparc vfork register problems. This
5915 test uses lots of local variables, at least as many local
5916 variables as main has allocated so far including compiler
5917 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5918 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5919 reuse the register of parent for one of the local variables,
5920 since it will think that parent can't possibly be used any more
5921 in this routine. Assigning to the local variable will thus
5922 munge parent in the parent process. */
5923 pid_t
5924 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5925 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5926 /* Convince the compiler that p..p7 are live; otherwise, it might
5927 use the same hardware register for all 8 local variables. */
5928 if (p != p1 || p != p2 || p != p3 || p != p4
5929 || p != p5 || p != p6 || p != p7)
5930 _exit(1);
a946372e 5931
f11781c5
AK
5932 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5933 from child file descriptors. If the child closes a descriptor
5934 before it execs or exits, this munges the parent's descriptor
5935 as well. Test for this by closing stdout in the child. */
5936 _exit(close(fileno(stdout)) != 0);
5937 } else {
5938 int status;
5939 struct stat st;
5940
5941 while (wait(&status) != child)
5942 ;
5943 return (
5944 /* Was there some problem with vforking? */
5945 child < 0
5946
5947 /* Did the child fail? (This shouldn't happen.) */
5948 || status
5949
5950 /* Did the vfork/compiler bug occur? */
5951 || parent != getpid()
5952
5953 /* Did the file descriptor bug occur? */
5954 || fstat(fileno(stdout), &st) != 0
5955 );
5956 }
5957}
5958_ACEOF
5959if ac_fn_c_try_run "$LINENO"; then :
5960 ac_cv_func_vfork_works=yes
a946372e 5961else
f11781c5 5962 ac_cv_func_vfork_works=no
a946372e 5963fi
f11781c5
AK
5964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5965 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5966fi
f11781c5 5967
a946372e 5968fi
f11781c5
AK
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5970$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5971
f11781c5
AK
5972fi;
5973if test "x$ac_cv_func_fork_works" = xcross; then
5974 ac_cv_func_vfork_works=$ac_cv_func_vfork
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5976$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5977fi
a946372e 5978
f11781c5 5979if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5980
f11781c5 5981$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5982
a946372e 5983else
a946372e 5984
f11781c5
AK
5985$as_echo "#define vfork fork" >>confdefs.h
5986
a946372e 5987fi
f11781c5 5988if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5989
f11781c5 5990$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5991
a946372e 5992fi
f11781c5
AK
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5995$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5996if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
a946372e 5998else
f11781c5
AK
5999 rm -f conftest.sym conftest.file
6000echo >conftest.file
6001if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6002 if test "$cross_compiling" = yes; then :
6003 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6004else
f11781c5 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6006/* end confdefs.h. */
f11781c5
AK
6007$ac_includes_default
6008int
6009main ()
6010{
6011struct stat sbuf;
6012 /* Linux will dereference the symlink and fail, as required by POSIX.
6013 That is better in the sense that it means we will not
6014 have to compile and use the lstat wrapper. */
6015 return lstat ("conftest.sym/", &sbuf) == 0;
6016 ;
6017 return 0;
6018}
a946372e 6019_ACEOF
f11781c5
AK
6020if ac_fn_c_try_run "$LINENO"; then :
6021 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 6022else
f11781c5 6023 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6024fi
f11781c5
AK
6025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6026 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6027fi
a946372e 6028
a946372e 6029else
f11781c5
AK
6030 # If the `ln -s' command failed, then we probably don't even
6031 # have an lstat function.
6032 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6033fi
f11781c5 6034rm -f conftest.sym conftest.file
a946372e 6035
f11781c5
AK
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6038$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 6039
f11781c5 6040test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 6041
f11781c5
AK
6042cat >>confdefs.h <<_ACEOF
6043#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6044_ACEOF
a946372e 6045
a946372e 6046
f11781c5
AK
6047if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6048 case " $LIBOBJS " in
6049 *" lstat.$ac_objext "* ) ;;
6050 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6051 ;;
6052esac
a946372e 6053
f11781c5 6054fi
a946372e 6055
f11781c5
AK
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6057$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6058if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
a946372e 6060else
f11781c5
AK
6061 if test "$cross_compiling" = yes; then :
6062 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6063else
f11781c5
AK
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h. */
6066$ac_includes_default
6067int
6068main ()
6069{
6070struct stat sbuf;
6071 return lstat ("", &sbuf) == 0;
6072 ;
6073 return 0;
6074}
6075_ACEOF
6076if ac_fn_c_try_run "$LINENO"; then :
6077 ac_cv_func_lstat_empty_string_bug=no
6078else
6079 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6080fi
f11781c5
AK
6081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6082 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6083fi
6084
f11781c5
AK
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6087$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6088if test $ac_cv_func_lstat_empty_string_bug = yes; then
6089 case " $LIBOBJS " in
6090 *" lstat.$ac_objext "* ) ;;
6091 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6092 ;;
6093esac
a946372e
AK
6094
6095
f11781c5
AK
6096cat >>confdefs.h <<_ACEOF
6097#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6098_ACEOF
a946372e 6099
a946372e 6100fi
a946372e 6101
f11781c5
AK
6102for ac_header in stdlib.h
6103do :
6104 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6105if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6106 cat >>confdefs.h <<_ACEOF
6107#define HAVE_STDLIB_H 1
6108_ACEOF
6109
a946372e
AK
6110fi
6111
f11781c5 6112done
a946372e 6113
f11781c5
AK
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6115$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6116if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 if test "$cross_compiling" = yes; then :
6120 ac_cv_func_malloc_0_nonnull=no
6121else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h. */
6124#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6125# include <stdlib.h>
6126#else
6127char *malloc ();
6128#endif
a946372e 6129
f11781c5
AK
6130int
6131main ()
6132{
6133return ! malloc (0);
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_run "$LINENO"; then :
6139 ac_cv_func_malloc_0_nonnull=yes
a946372e 6140else
f11781c5 6141 ac_cv_func_malloc_0_nonnull=no
a946372e 6142fi
f11781c5
AK
6143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6145fi
f11781c5 6146
a946372e 6147fi
f11781c5
AK
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6149$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6150if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6151
f11781c5 6152$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6153
f11781c5
AK
6154else
6155 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6156
f11781c5
AK
6157 case " $LIBOBJS " in
6158 *" malloc.$ac_objext "* ) ;;
6159 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6160 ;;
6161esac
6162
6163
6164$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6165
a946372e 6166fi
a946372e 6167
a946372e 6168
f11781c5
AK
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6170$as_echo_n "checking for working memcmp... " >&6; }
6171if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6172 $as_echo_n "(cached) " >&6
a946372e 6173else
f11781c5
AK
6174 if test "$cross_compiling" = yes; then :
6175 ac_cv_func_memcmp_working=no
6176else
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6178/* end confdefs.h. */
6179$ac_includes_default
f11781c5
AK
6180int
6181main ()
6182{
a946372e 6183
f11781c5
AK
6184 /* Some versions of memcmp are not 8-bit clean. */
6185 char c0 = '\100', c1 = '\200', c2 = '\201';
6186 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6187 return 1;
a946372e 6188
f11781c5
AK
6189 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6190 or more and with at least one buffer not starting on a 4-byte boundary.
6191 William Lewis provided this test program. */
6192 {
6193 char foo[21];
6194 char bar[21];
6195 int i;
6196 for (i = 0; i < 4; i++)
6197 {
6198 char *a = foo + i;
6199 char *b = bar + i;
6200 strcpy (a, "--------01111111");
6201 strcpy (b, "--------10000000");
6202 if (memcmp (a, b, 16) >= 0)
6203 return 1;
6204 }
6205 return 0;
6206 }
a946372e 6207
f11781c5
AK
6208 ;
6209 return 0;
6210}
a946372e 6211_ACEOF
f11781c5
AK
6212if ac_fn_c_try_run "$LINENO"; then :
6213 ac_cv_func_memcmp_working=yes
a946372e 6214else
f11781c5
AK
6215 ac_cv_func_memcmp_working=no
6216fi
6217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6218 conftest.$ac_objext conftest.beam conftest.$ac_ext
6219fi
a946372e 6220
a946372e 6221fi
f11781c5
AK
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6223$as_echo "$ac_cv_func_memcmp_working" >&6; }
6224test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6225 *" memcmp.$ac_objext "* ) ;;
6226 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6227 ;;
6228esac
a946372e 6229
a946372e 6230
a946372e 6231
a946372e 6232
f11781c5
AK
6233
6234 for ac_header in $ac_header_list
6235do :
6236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6238"
6239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6240 cat >>confdefs.h <<_ACEOF
6241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6242_ACEOF
6243
a946372e
AK
6244fi
6245
6246done
6247
a946372e 6248
f11781c5
AK
6249
6250
6251
6252
6253
6254
6255for ac_func in getpagesize
6256do :
6257 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6258if test "x$ac_cv_func_getpagesize" = x""yes; then :
6259 cat >>confdefs.h <<_ACEOF
6260#define HAVE_GETPAGESIZE 1
6261_ACEOF
6262
a946372e 6263fi
f11781c5
AK
6264done
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6267$as_echo_n "checking for working mmap... " >&6; }
6268if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
a946372e 6270else
f11781c5
AK
6271 if test "$cross_compiling" = yes; then :
6272 ac_cv_func_mmap_fixed_mapped=no
6273else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6275/* end confdefs.h. */
6276$ac_includes_default
f11781c5
AK
6277/* malloc might have been renamed as rpl_malloc. */
6278#undef malloc
6279
6280/* Thanks to Mike Haertel and Jim Avera for this test.
6281 Here is a matrix of mmap possibilities:
6282 mmap private not fixed
6283 mmap private fixed at somewhere currently unmapped
6284 mmap private fixed at somewhere already mapped
6285 mmap shared not fixed
6286 mmap shared fixed at somewhere currently unmapped
6287 mmap shared fixed at somewhere already mapped
6288 For private mappings, we should verify that changes cannot be read()
6289 back from the file, nor mmap's back from the file at a different
6290 address. (There have been systems where private was not correctly
6291 implemented like the infamous i386 svr4.0, and systems where the
6292 VM page cache was not coherent with the file system buffer cache
6293 like early versions of FreeBSD and possibly contemporary NetBSD.)
6294 For shared mappings, we should conversely verify that changes get
6295 propagated back to all the places they're supposed to be.
6296
6297 Grep wants private fixed already mapped.
6298 The main things grep needs to know about mmap are:
6299 * does it exist and is it safe to write into the mmap'd area
6300 * how to use it (BSD variants) */
6301
6302#include <fcntl.h>
6303#include <sys/mman.h>
6304
6305#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6306char *malloc ();
6307#endif
6308
6309/* This mess was copied from the GNU getpagesize.h. */
6310#ifndef HAVE_GETPAGESIZE
6311# ifdef _SC_PAGESIZE
6312# define getpagesize() sysconf(_SC_PAGESIZE)
6313# else /* no _SC_PAGESIZE */
6314# ifdef HAVE_SYS_PARAM_H
6315# include <sys/param.h>
6316# ifdef EXEC_PAGESIZE
6317# define getpagesize() EXEC_PAGESIZE
6318# else /* no EXEC_PAGESIZE */
6319# ifdef NBPG
6320# define getpagesize() NBPG * CLSIZE
6321# ifndef CLSIZE
6322# define CLSIZE 1
6323# endif /* no CLSIZE */
6324# else /* no NBPG */
6325# ifdef NBPC
6326# define getpagesize() NBPC
6327# else /* no NBPC */
6328# ifdef PAGESIZE
6329# define getpagesize() PAGESIZE
6330# endif /* PAGESIZE */
6331# endif /* no NBPC */
6332# endif /* no NBPG */
6333# endif /* no EXEC_PAGESIZE */
6334# else /* no HAVE_SYS_PARAM_H */
6335# define getpagesize() 8192 /* punt totally */
6336# endif /* no HAVE_SYS_PARAM_H */
6337# endif /* no _SC_PAGESIZE */
6338
6339#endif /* no HAVE_GETPAGESIZE */
6340
6341int
6342main ()
6343{
6344 char *data, *data2, *data3;
6345 const char *cdata2;
6346 int i, pagesize;
6347 int fd, fd2;
6348
6349 pagesize = getpagesize ();
6350
6351 /* First, make a file with some known garbage in it. */
6352 data = (char *) malloc (pagesize);
6353 if (!data)
6354 return 1;
6355 for (i = 0; i < pagesize; ++i)
6356 *(data + i) = rand ();
6357 umask (0);
6358 fd = creat ("conftest.mmap", 0600);
6359 if (fd < 0)
6360 return 2;
6361 if (write (fd, data, pagesize) != pagesize)
6362 return 3;
6363 close (fd);
6364
6365 /* Next, check that the tail of a page is zero-filled. File must have
6366 non-zero length, otherwise we risk SIGBUS for entire page. */
6367 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6368 if (fd2 < 0)
6369 return 4;
6370 cdata2 = "";
6371 if (write (fd2, cdata2, 1) != 1)
6372 return 5;
6373 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6374 if (data2 == MAP_FAILED)
6375 return 6;
6376 for (i = 0; i < pagesize; ++i)
6377 if (*(data2 + i))
6378 return 7;
6379 close (fd2);
6380 if (munmap (data2, pagesize))
6381 return 8;
6382
6383 /* Next, try to mmap the file at a fixed address which already has
6384 something else allocated at it. If we can, also make sure that
6385 we see the same garbage. */
6386 fd = open ("conftest.mmap", O_RDWR);
6387 if (fd < 0)
6388 return 9;
6389 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6390 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6391 return 10;
6392 for (i = 0; i < pagesize; ++i)
6393 if (*(data + i) != *(data2 + i))
6394 return 11;
6395
6396 /* Finally, make sure that changes to the mapped area do not
6397 percolate back to the file as seen by read(). (This is a bug on
6398 some variants of i386 svr4.0.) */
6399 for (i = 0; i < pagesize; ++i)
6400 *(data2 + i) = *(data2 + i) + 1;
6401 data3 = (char *) malloc (pagesize);
6402 if (!data3)
6403 return 12;
6404 if (read (fd, data3, pagesize) != pagesize)
6405 return 13;
6406 for (i = 0; i < pagesize; ++i)
6407 if (*(data + i) != *(data3 + i))
6408 return 14;
6409 close (fd);
6410 return 0;
6411}
a946372e 6412_ACEOF
f11781c5
AK
6413if ac_fn_c_try_run "$LINENO"; then :
6414 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6415else
f11781c5
AK
6416 ac_cv_func_mmap_fixed_mapped=no
6417fi
6418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
6420fi
a946372e 6421
a946372e 6422fi
f11781c5
AK
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6424$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6425if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6426
f11781c5 6427$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6428
f11781c5
AK
6429fi
6430rm -f conftest.mmap conftest.txt
6431
6432for ac_header in stdlib.h
6433do :
6434 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6435if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6436 cat >>confdefs.h <<_ACEOF
6437#define HAVE_STDLIB_H 1
a946372e 6438_ACEOF
f11781c5
AK
6439
6440fi
6441
6442done
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6445$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6446if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448else
6449 if test "$cross_compiling" = yes; then :
6450 ac_cv_func_realloc_0_nonnull=no
6451else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6453/* end confdefs.h. */
f11781c5
AK
6454#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6455# include <stdlib.h>
6456#else
6457char *realloc ();
6458#endif
6459
6460int
6461main ()
6462{
6463return ! realloc (0, 0);
6464 ;
6465 return 0;
6466}
a946372e 6467_ACEOF
f11781c5
AK
6468if ac_fn_c_try_run "$LINENO"; then :
6469 ac_cv_func_realloc_0_nonnull=yes
a946372e 6470else
f11781c5
AK
6471 ac_cv_func_realloc_0_nonnull=no
6472fi
6473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6474 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6475fi
6476
f11781c5
AK
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6479$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6480if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6481
f11781c5 6482$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6483
a946372e 6484else
f11781c5
AK
6485 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6486
6487 case " $LIBOBJS " in
6488 *" realloc.$ac_objext "* ) ;;
6489 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6490 ;;
6491esac
a946372e 6492
a946372e 6493
f11781c5
AK
6494$as_echo "#define realloc rpl_realloc" >>confdefs.h
6495
a946372e
AK
6496fi
6497
a946372e 6498
f11781c5
AK
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6500$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6501if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
a946372e 6503else
f11781c5
AK
6504 if test "$cross_compiling" = yes; then :
6505 ac_cv_func_stat_empty_string_bug=yes
6506else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h. */
6509$ac_includes_default
6510int
6511main ()
6512{
6513struct stat sbuf;
6514 return stat ("", &sbuf) == 0;
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_run "$LINENO"; then :
6520 ac_cv_func_stat_empty_string_bug=no
6521else
6522 ac_cv_func_stat_empty_string_bug=yes
a946372e 6523fi
f11781c5
AK
6524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6525 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6526fi
6527
8c4e8a18 6528fi
f11781c5
AK
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6530$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6531if test $ac_cv_func_stat_empty_string_bug = yes; then
6532 case " $LIBOBJS " in
6533 *" stat.$ac_objext "* ) ;;
6534 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6535 ;;
6536esac
8c4e8a18
FDN
6537
6538
6539cat >>confdefs.h <<_ACEOF
f11781c5 6540#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6541_ACEOF
6542
6543fi
6544
f11781c5
AK
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6546$as_echo_n "checking for working strtod... " >&6; }
6547if test "${ac_cv_func_strtod+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
66fd4529 6549else
f11781c5
AK
6550 if test "$cross_compiling" = yes; then :
6551 ac_cv_func_strtod=no
6552else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h. */
66fd4529 6555
f11781c5
AK
6556$ac_includes_default
6557#ifndef strtod
6558double strtod ();
6559#endif
6560int
6561main()
6562{
6563 {
6564 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6565 char *string = " +69";
6566 char *term;
6567 double value;
6568 value = strtod (string, &term);
6569 if (value != 69 || term != (string + 4))
6570 return 1;
6571 }
66fd4529 6572
f11781c5
AK
6573 {
6574 /* Under Solaris 2.4, strtod returns the wrong value for the
6575 terminating character under some conditions. */
6576 char *string = "NaN";
6577 char *term;
6578 strtod (string, &term);
6579 if (term != string && *(term - 1) == 0)
6580 return 1;
6581 }
6582 return 0;
6583}
66fd4529 6584
f11781c5
AK
6585_ACEOF
6586if ac_fn_c_try_run "$LINENO"; then :
6587 ac_cv_func_strtod=yes
66fd4529 6588else
f11781c5
AK
6589 ac_cv_func_strtod=no
6590fi
6591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6592 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6593fi
6594
f11781c5
AK
6595fi
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6597$as_echo "$ac_cv_func_strtod" >&6; }
6598if test $ac_cv_func_strtod = no; then
6599 case " $LIBOBJS " in
6600 *" strtod.$ac_objext "* ) ;;
6601 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6602 ;;
6603esac
71082be4 6604
f11781c5
AK
6605ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6606if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6607
66fd4529 6608fi
a946372e 6609
f11781c5
AK
6610if test $ac_cv_func_pow = no; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6612$as_echo_n "checking for pow in -lm... " >&6; }
6613if test "${ac_cv_lib_m_pow+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6615else
6616 ac_check_lib_save_LIBS=$LIBS
6617LIBS="-lm $LIBS"
6618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h. */
90c80887 6620
f11781c5
AK
6621/* Override any GCC internal prototype to avoid an error.
6622 Use char because int might match the return type of a GCC
6623 builtin and then its argument prototype would still apply. */
6624#ifdef __cplusplus
6625extern "C"
6626#endif
6627char pow ();
6628int
6629main ()
6630{
6631return pow ();
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_link "$LINENO"; then :
6637 ac_cv_lib_m_pow=yes
90c80887 6638else
f11781c5 6639 ac_cv_lib_m_pow=no
90c80887 6640fi
f11781c5
AK
6641rm -f core conftest.err conftest.$ac_objext \
6642 conftest$ac_exeext conftest.$ac_ext
6643LIBS=$ac_check_lib_save_LIBS
90c80887 6644fi
f11781c5
AK
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6646$as_echo "$ac_cv_lib_m_pow" >&6; }
6647if test "x$ac_cv_lib_m_pow" = x""yes; then :
6648 POW_LIB=-lm
90c80887 6649else
f11781c5
AK
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6651$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6652fi
f11781c5 6653
90c80887
AK
6654fi
6655
f11781c5
AK
6656fi
6657
6658for ac_func in vprintf
6659do :
6660 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6661if test "x$ac_cv_func_vprintf" = x""yes; then :
6662 cat >>confdefs.h <<_ACEOF
6663#define HAVE_VPRINTF 1
6664_ACEOF
90c80887 6665
f11781c5
AK
6666ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6667if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6668
f11781c5 6669$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6670
90c80887 6671fi
90c80887 6672
f11781c5
AK
6673fi
6674done
90c80887 6675
90c80887 6676
90c80887 6677
f11781c5
AK
6678################################################################################
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6680$as_echo_n "checking whether to use static linking... " >&6; }
6681# Check whether --enable-static_link was given.
6682if test "${enable_static_link+set}" = set; then :
6683 enableval=$enable_static_link; STATIC_LINK=$enableval
6684else
6685 STATIC_LINK=no
6686fi
90c80887 6687
f11781c5
AK
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6689$as_echo "$STATIC_LINK" >&6; }
90c80887 6690
f11781c5 6691################################################################################
90c80887 6692
90c80887 6693
f11781c5
AK
6694################################################################################
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6696$as_echo_n "checking file owner... " >&6; }
90c80887 6697
f11781c5
AK
6698# Check whether --with-user was given.
6699if test "${with_user+set}" = set; then :
6700 withval=$with_user; OWNER=$withval
6701fi
90c80887 6702
f11781c5
AK
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6704$as_echo "$OWNER" >&6; }
90c80887 6705
f11781c5
AK
6706if test x$OWNER != x; then
6707 INSTALL="$INSTALL -o $OWNER"
90c80887 6708fi
a946372e 6709
f11781c5
AK
6710################################################################################
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6712$as_echo_n "checking group owner... " >&6; }
a946372e 6713
f11781c5
AK
6714# Check whether --with-group was given.
6715if test "${with_group+set}" = set; then :
6716 withval=$with_group; GROUP=$withval
a946372e 6717fi
f11781c5
AK
6718
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6720$as_echo "$GROUP" >&6; }
6721
6722if test x$GROUP != x; then
6723 INSTALL="$INSTALL -g $GROUP"
a946372e 6724fi
f11781c5
AK
6725
6726################################################################################
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6728$as_echo_n "checking device node uid... " >&6; }
6729
6730
6731# Check whether --with-device-uid was given.
6732if test "${with_device_uid+set}" = set; then :
6733 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6734else
f11781c5 6735 DM_DEVICE_UID=0
a946372e
AK
6736fi
6737
f11781c5
AK
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6739$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6740
f11781c5
AK
6741################################################################################
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6743$as_echo_n "checking device node gid... " >&6; }
a946372e 6744
a946372e 6745
f11781c5
AK
6746# Check whether --with-device-gid was given.
6747if test "${with_device_gid+set}" = set; then :
6748 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6749else
f11781c5 6750 DM_DEVICE_GID=0
a946372e 6751fi
a946372e 6752
f11781c5
AK
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6754$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6755
f11781c5
AK
6756################################################################################
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6758$as_echo_n "checking device node mode... " >&6; }
90c80887 6759
90c80887 6760
f11781c5
AK
6761# Check whether --with-device-mode was given.
6762if test "${with_device_mode+set}" = set; then :
6763 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6764else
6765 DM_DEVICE_MODE=0600
6766fi
90c80887 6767
f11781c5
AK
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6769$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6770
d0df875d
ZK
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6772$as_echo_n "checking when to create device nodes... " >&6; }
6773
6774# Check whether --with-device-nodes-on was given.
6775if test "${with_device_nodes_on+set}" = set; then :
6776 withval=$with_device_nodes_on; ADD_NODE=$withval
6777else
6778 ADD_NODE=resume
6779fi
6780
6781case "$ADD_NODE" in
6782 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6783 create) add_on=DM_ADD_NODE_ON_CREATE;;
6784 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6785esac
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6787$as_echo "on $ADD_NODE" >&6; }
6788
6789cat >>confdefs.h <<_ACEOF
6790#define DEFAULT_DM_ADD_NODE $add_on
6791_ACEOF
6792
6793
c64d7cd3
PR
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6795$as_echo_n "checking default name mangling... " >&6; }
6796
6797# Check whether --with-default-name-mangling was given.
6798if test "${with_default_name_mangling+set}" = set; then :
6799 withval=$with_default_name_mangling; MANGLING=$withval
6800else
6801 MANGLING=auto
6802fi
6803
6804case "$MANGLING" in
6805 auto) mangling=DM_STRING_MANGLING_AUTO;;
6806 disabled) mangling=DM_STRING_MANGLING_NONE;;
6807 hex) mangling=DM_STRING_MANGLING_HEX;;
6808 *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6809esac
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6811$as_echo "$MANGLING" >&6; }
6812
6813cat >>confdefs.h <<_ACEOF
6814#define DEFAULT_DM_NAME_MANGLING $mangling
6815_ACEOF
6816
6817
f11781c5
AK
6818################################################################################
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6820$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6821# Check whether --enable-lvm1_fallback was given.
6822if test "${enable_lvm1_fallback+set}" = set; then :
6823 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6824else
6825 LVM1_FALLBACK=no
6826fi
90c80887 6827
f11781c5
AK
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6829$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6830
f11781c5 6831if test x$LVM1_FALLBACK = xyes; then
90c80887 6832
f11781c5 6833$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6834
f11781c5 6835fi
90c80887 6836
f11781c5
AK
6837################################################################################
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6839$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6840
6841# Check whether --with-lvm1 was given.
6842if test "${with_lvm1+set}" = set; then :
6843 withval=$with_lvm1; LVM1=$withval
a946372e 6844else
f11781c5 6845 LVM1=internal
a946372e 6846fi
f11781c5
AK
6847
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6849$as_echo "$LVM1" >&6; }
6850
6851if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6852 then as_fn_error $? "--with-lvm1 parameter invalid
6853" "$LINENO" 5
6854fi;
6855
6856if test x$LVM1 = xinternal; then
6857
6858$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6859
a946372e
AK
6860fi
6861
6862################################################################################
f11781c5
AK
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6864$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6865
6866# Check whether --with-pool was given.
6867if test "${with_pool+set}" = set; then :
6868 withval=$with_pool; POOL=$withval
a946372e 6869else
f11781c5 6870 POOL=internal
a946372e
AK
6871fi
6872
f11781c5
AK
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6874$as_echo "$POOL" >&6; }
6875
6876if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6877 then as_fn_error $? "--with-pool parameter invalid
6878" "$LINENO" 5
6879fi;
6880
6881if test x$POOL = xinternal; then
6882
6883$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6884
a946372e
AK
6885fi
6886
6887################################################################################
f11781c5
AK
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6889$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6890
f11781c5
AK
6891# Check whether --with-cluster was given.
6892if test "${with_cluster+set}" = set; then :
6893 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6894fi
6895
f11781c5
AK
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6897$as_echo "$CLUSTER" >&6; }
a946372e 6898
f11781c5
AK
6899if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6900 then as_fn_error $? "--with-cluster parameter invalid
6901" "$LINENO" 5
6902fi;
fddafd51 6903
f11781c5 6904if test x$CLUSTER = xinternal; then
5556819a 6905
f11781c5 6906$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6907
fddafd51 6908fi
f11781c5
AK
6909
6910################################################################################
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6912$as_echo_n "checking whether to include snapshots... " >&6; }
6913
6914# Check whether --with-snapshots was given.
6915if test "${with_snapshots+set}" = set; then :
6916 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6917else
f11781c5 6918 SNAPSHOTS=internal
fddafd51
ZK
6919fi
6920
f11781c5
AK
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6922$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6923
f11781c5
AK
6924if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6925 then as_fn_error $? "--with-snapshots parameter invalid
6926" "$LINENO" 5
6927fi;
fddafd51 6928
f11781c5
AK
6929if test x$SNAPSHOTS = xinternal; then
6930
6931$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6932
6933fi
6934
6935################################################################################
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6937$as_echo_n "checking whether to include mirrors... " >&6; }
6938
6939# Check whether --with-mirrors was given.
6940if test "${with_mirrors+set}" = set; then :
6941 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6942else
f11781c5 6943 MIRRORS=internal
fddafd51
ZK
6944fi
6945
f11781c5
AK
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6947$as_echo "$MIRRORS" >&6; }
fddafd51 6948
f11781c5
AK
6949if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6950 then as_fn_error $? "--with-mirrors parameter invalid
6951" "$LINENO" 5
6952fi;
6953
6954if test x$MIRRORS = xinternal; then
6955
6956$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6957
6958fi
6959
cac52ca4
JEB
6960################################################################################
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6962$as_echo_n "checking whether to include raid... " >&6; }
6963
6964# Check whether --with-raid was given.
6965if test "${with_raid+set}" = set; then :
6966 withval=$with_raid; RAID=$withval
6967else
6968 RAID=internal
6969fi
6970
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6972$as_echo "$RAID" >&6; }
6973
6974if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6975 then as_fn_error $? "--with-raid parameter invalid
6976" "$LINENO" 5
6977fi;
6978
6979if test x$RAID = xinternal; then
6980
6981$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6982
6983fi
6984
f11781c5
AK
6985################################################################################
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6987$as_echo_n "checking whether to include replicators... " >&6; }
6988
6989# Check whether --with-replicators was given.
6990if test "${with_replicators+set}" = set; then :
6991 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6992else
f11781c5
AK
6993 REPLICATORS=none
6994fi
fd4728e1 6995
f11781c5
AK
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6997$as_echo "$REPLICATORS" >&6; }
6998
6999case "$REPLICATORS" in
7000 none|shared) ;;
7001 internal)
7002$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
7003 ;;
7004 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 7005esac
f11781c5 7006
3ba4a195
ZK
7007################################################################################
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
7009$as_echo_n "checking whether to include thin provisioning... " >&6; }
7010
7011# Check whether --with-thin was given.
7012if test "${with_thin+set}" = set; then :
7013 withval=$with_thin; THIN=$withval
7014else
7015 THIN=none
7016fi
7017
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
7019$as_echo "$THIN" >&6; }
7020
7021case "$THIN" in
7022 none|shared) ;;
7023 internal)
7024$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7025 ;;
7026 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7027esac
7028
f61cacad
ZK
7029case "$THIN" in
7030 internal|shared)
7031
7032# Check whether --with-thin-check was given.
7033if test "${with_thin_check+set}" = set; then :
7034 withval=$with_thin_check; THIN_CHECK_CMD=$withval
7035else
7036 THIN_CHECK_CMD="autodetect"
7037fi
7038
7039 # Empty means a config way to ignore thin checking
7040 if test "$THIN_CHECK_CMD" = "autodetect"; then
7041 # Extract the first word of "thin_check", so it can be a program name with args.
7042set dummy thin_check; ac_word=$2
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
7045if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7047else
7048 case $THIN_CHECK_CMD in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065 done
7066IFS=$as_save_IFS
7067
7068 ;;
7069esac
7070fi
7071THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
7072if test -n "$THIN_CHECK_CMD"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
7074$as_echo "$THIN_CHECK_CMD" >&6; }
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080
7081 test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5
7082 fi
909887be
ZK
7083 ;;
7084esac
f61cacad
ZK
7085
7086
7087cat >>confdefs.h <<_ACEOF
7088#define THIN_CHECK_CMD "$THIN_CHECK_CMD"
7089_ACEOF
7090
f61cacad
ZK
7091
7092
f11781c5
AK
7093################################################################################
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7095$as_echo_n "checking whether to enable readline... " >&6; }
7096# Check whether --enable-readline was given.
7097if test "${enable_readline+set}" = set; then :
7098 enableval=$enable_readline; READLINE=$enableval
fd4728e1 7099else
f11781c5 7100 READLINE=maybe
fd4728e1
ZK
7101fi
7102
f11781c5
AK
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7104$as_echo "$READLINE" >&6; }
fd4728e1 7105
f11781c5
AK
7106################################################################################
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7108$as_echo_n "checking whether to enable realtime support... " >&6; }
7109# Check whether --enable-realtime was given.
7110if test "${enable_realtime+set}" = set; then :
7111 enableval=$enable_realtime; REALTIME=$enableval
5556819a 7112fi
d0191583 7113
f11781c5
AK
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7115$as_echo "$REALTIME" >&6; }
7116
54b362f9 7117################################################################################
f11781c5
AK
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7119$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7120# Check whether --enable-ocf was given.
7121if test "${enable_ocf+set}" = set; then :
7122 enableval=$enable_ocf; OCF=$enableval
54b362f9 7123else
f11781c5 7124 OCF=no
54b362f9
AK
7125fi
7126
f11781c5
AK
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7128$as_echo "$OCF" >&6; }
54b362f9 7129
606d0858
AK
7130# Check whether --with-ocfdir was given.
7131if test "${with_ocfdir+set}" = set; then :
7132 withval=$with_ocfdir; OCFDIR=$withval
7133else
7134 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7135fi
7136
7137
f11781c5
AK
7138################################################################################
7139pkg_config_init() {
7140
7141
7142
7143
7144
7145
7146if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7151$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7152if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7153 $as_echo_n "(cached) " >&6
7154else
f11781c5 7155 case $PKG_CONFIG in
54b362f9 7156 [\\/]* | ?:[\\/]*)
f11781c5 7157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7158 ;;
7159 *)
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
f11781c5 7165 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7169 break 2
7170 fi
7171done
f11781c5 7172 done
54b362f9
AK
7173IFS=$as_save_IFS
7174
7175 ;;
7176esac
7177fi
f11781c5
AK
7178PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7179if test -n "$PKG_CONFIG"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7181$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7182else
f11781c5 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7184$as_echo "no" >&6; }
7185fi
7186
7187
f11781c5
AK
7188fi
7189if test -z "$ac_cv_path_PKG_CONFIG"; then
7190 ac_pt_PKG_CONFIG=$PKG_CONFIG
7191 # Extract the first word of "pkg-config", so it can be a program name with args.
7192set dummy pkg-config; ac_word=$2
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7194$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7195if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7196 $as_echo_n "(cached) " >&6
7197else
f11781c5 7198 case $ac_pt_PKG_CONFIG in
54b362f9 7199 [\\/]* | ?:[\\/]*)
f11781c5 7200 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7201 ;;
7202 *)
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
f11781c5 7208 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7210 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7212 break 2
7213 fi
7214done
f11781c5 7215 done
54b362f9
AK
7216IFS=$as_save_IFS
7217
7218 ;;
7219esac
7220fi
f11781c5
AK
7221ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7222if test -n "$ac_pt_PKG_CONFIG"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7224$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7225else
f11781c5 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7227$as_echo "no" >&6; }
7228fi
7229
f11781c5
AK
7230 if test "x$ac_pt_PKG_CONFIG" = x; then
7231 PKG_CONFIG=""
7232 else
7233 case $cross_compiling:$ac_tool_warned in
7234yes:)
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237ac_tool_warned=yes ;;
7238esac
7239 PKG_CONFIG=$ac_pt_PKG_CONFIG
7240 fi
d1e8046f 7241else
f11781c5 7242 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7243fi
7244
f11781c5
AK
7245fi
7246if test -n "$PKG_CONFIG"; then
7247 _pkg_min_version=0.9.0
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7249$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7250 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7252$as_echo "yes" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255$as_echo "no" >&6; }
7256 PKG_CONFIG=""
7257 fi
7258fi
d1e8046f 7259
f11781c5
AK
7260pkg_failed=no
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7262$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7263
f11781c5
AK
7264if test -n "$PKGCONFIGINIT_CFLAGS"; then
7265 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
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
7270 ac_status=$?
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7274else
f11781c5
AK
7275 pkg_failed=yes
7276fi
7277 else
7278 pkg_failed=untried
7279fi
7280if test -n "$PKGCONFIGINIT_LIBS"; then
7281 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7282 elif test -n "$PKG_CONFIG"; then
7283 if test -n "$PKG_CONFIG" && \
7284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7285 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7286 ac_status=$?
f11781c5
AK
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; }; then
7289 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7290else
f11781c5
AK
7291 pkg_failed=yes
7292fi
7293 else
7294 pkg_failed=untried
d1e8046f
AK
7295fi
7296
d1e8046f 7297
f11781c5
AK
7298
7299if test $pkg_failed = yes; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301$as_echo "no" >&6; }
7302
7303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7304 _pkg_short_errors_supported=yes
7305else
7306 _pkg_short_errors_supported=no
7307fi
7308 if test $_pkg_short_errors_supported = yes; then
7309 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7310 else
7311 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7312 fi
7313 # Put the nasty error message in config.log where it belongs
7314 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7317$as_echo "pkg-config initialized" >&6; }
7318elif test $pkg_failed = untried; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7322$as_echo "pkg-config initialized" >&6; }
d1e8046f 7323else
f11781c5
AK
7324 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7325 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327$as_echo "yes" >&6; }
d1e8046f 7328
d1e8046f 7329fi
f11781c5
AK
7330 PKGCONFIG_INIT=1
7331}
d1e8046f 7332
5723db01
PR
7333################################################################################
7334
7335
7336# Check whether --with-default-pid-dir was given.
7337if test "${with_default_pid_dir+set}" = set; then :
7338 withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval"
7339else
7340 DEFAULT_PID_DIR="/var/run"
7341fi
7342
7343
7344cat >>confdefs.h <<_ACEOF
7345#define DEFAULT_PID_DIR "$DEFAULT_PID_DIR"
7346_ACEOF
7347
7348
7349
7350
7351# Check whether --with-default-dm-run-dir was given.
7352if test "${with_default_dm_run_dir+set}" = set; then :
7353 withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval"
7354else
7355 DEFAULT_DM_RUN_DIR="/var/run"
7356fi
7357
7358
7359cat >>confdefs.h <<_ACEOF
7360#define DEFAULT_DM_RUN_DIR "$DEFAULT_DM_RUN_DIR"
7361_ACEOF
7362
7363
7364
7365
7366# Check whether --with-default-run-dir was given.
7367if test "${with_default_run_dir+set}" = set; then :
7368 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
7369else
7370 DEFAULT_RUN_DIR="/var/run/lvm"
7371fi
7372
7373
7374cat >>confdefs.h <<_ACEOF
7375#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
7376_ACEOF
7377
7378
f11781c5
AK
7379################################################################################
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7381$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7382
f11781c5
AK
7383# Check whether --with-clvmd was given.
7384if test "${with_clvmd+set}" = set; then :
7385 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7386else
f11781c5 7387 CLVMD=none
d1e8046f 7388fi
d1e8046f 7389
f11781c5
AK
7390if test x$CLVMD = xyes; then
7391 CLVMD=all
d1e8046f 7392fi
f11781c5
AK
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7394$as_echo "$CLVMD" >&6; }
d1e8046f 7395
f11781c5
AK
7396if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7397 CLUSTER=internal
d1e8046f
AK
7398fi
7399
f11781c5
AK
7400if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7401 pkg_config_init
7402fi
d1e8046f 7403
f11781c5
AK
7404CLVMD_CMANAGERS=""
7405CLVMD_NEEDS_QDISKD=no
d1e8046f 7406
f11781c5 7407if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7408 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7409fi
f11781c5
AK
7410if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7411 BUILDCMAN=yes
7412 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7413 CLVMD_NEEDS_QDISKD=yes
7414fi
7415if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7416 BUILDCOROSYNC=yes
7417 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7418fi
7419if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7420 BUILDOPENAIS=yes
7421 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7422fi
7423if test x$CLVMD_NEEDS_QDISKD != xno; then
7424 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7425fi
7426
f11781c5
AK
7427soft_bailout() {
7428 NOTFOUND=1
7429}
ad6254c5 7430
f11781c5
AK
7431hard_bailout() {
7432 as_fn_error $? "bailing out" "$LINENO" 5
7433}
ad6254c5 7434
f11781c5
AK
7435if test x$CLVMD = xall; then
7436 bailout=soft_bailout
f11781c5
AK
7437 BUILDCMAN=yes
7438 BUILDCOROSYNC=yes
7439 BUILDOPENAIS=yes
a5f46f6a 7440else
f11781c5 7441 bailout=hard_bailout
a5f46f6a
AK
7442fi
7443
f11781c5
AK
7444check_lib_no_libs() {
7445 lib_no_libs_arg1=$1
7446 shift
7447 lib_no_libs_arg2=$1
7448 shift
7449 lib_no_libs_args=$@
7450 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7452$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7453if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7454 $as_echo_n "(cached) " >&6
7455else
7456 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7457LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7459/* end confdefs.h. */
7460
7461/* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7464#ifdef __cplusplus
7465extern "C"
7466#endif
f11781c5 7467char $lib_no_libs_arg2 ();
90c80887
AK
7468int
7469main ()
7470{
f11781c5 7471return $lib_no_libs_arg2 ();
90c80887
AK
7472 ;
7473 return 0;
7474}
7475_ACEOF
f11781c5
AK
7476if ac_fn_c_try_link "$LINENO"; then :
7477 eval "$as_ac_Lib=yes"
90c80887 7478else
f11781c5 7479 eval "$as_ac_Lib=no"
90c80887 7480fi
f11781c5
AK
7481rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7483LIBS=$ac_check_lib_save_LIBS
7484fi
f11781c5
AK
7485eval ac_res=\$$as_ac_Lib
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7487$as_echo "$ac_res" >&6; }
7488if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7489 cat >>confdefs.h <<_ACEOF
7490#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7491_ACEOF
7492
7493 LIBS="-l$lib_no_libs_arg1 $LIBS"
7494
90c80887 7495else
f11781c5 7496 $bailout
90c80887
AK
7497fi
7498
f11781c5
AK
7499 LIBS=$ac_check_lib_save_LIBS
7500}
90c80887 7501
f11781c5 7502if test x$BUILDCMAN = xyes; then
ad6254c5 7503
f11781c5
AK
7504pkg_failed=no
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7506$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7507
f11781c5
AK
7508if test -n "$CMAN_CFLAGS"; then
7509 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7510 elif test -n "$PKG_CONFIG"; then
7511 if test -n "$PKG_CONFIG" && \
7512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7513 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7514 ac_status=$?
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7518else
7519 pkg_failed=yes
ad6254c5 7520fi
f11781c5
AK
7521 else
7522 pkg_failed=untried
ad6254c5 7523fi
f11781c5
AK
7524if test -n "$CMAN_LIBS"; then
7525 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7526 elif test -n "$PKG_CONFIG"; then
7527 if test -n "$PKG_CONFIG" && \
7528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7529 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7530 ac_status=$?
f11781c5
AK
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7534else
f11781c5
AK
7535 pkg_failed=yes
7536fi
7537 else
7538 pkg_failed=untried
93bd259b
AK
7539fi
7540
f11781c5
AK
7541
7542
7543if test $pkg_failed = yes; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546
7547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7548 _pkg_short_errors_supported=yes
7549else
7550 _pkg_short_errors_supported=no
93bd259b 7551fi
f11781c5
AK
7552 if test $_pkg_short_errors_supported = yes; then
7553 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7554 else
7555 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7556 fi
7557 # Put the nasty error message in config.log where it belongs
7558 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7559
f11781c5
AK
7560 NOTFOUND=0
7561 for ac_header in libcman.h
7562do :
7563 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7564if test "x$ac_cv_header_libcman_h" = x""yes; then :
7565 cat >>confdefs.h <<_ACEOF
7566#define HAVE_LIBCMAN_H 1
93bd259b
AK
7567_ACEOF
7568
f11781c5
AK
7569else
7570 $bailout
93bd259b
AK
7571fi
7572
f11781c5 7573done
93bd259b 7574
f11781c5
AK
7575 check_lib_no_libs cman cman_init
7576 if test $NOTFOUND = 0; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7578$as_echo "no pkg for libcman, using -lcman" >&6; }
7579 CMAN_LIBS="-lcman"
7580 HAVE_CMAN=yes
7581 fi
7582elif test $pkg_failed = untried; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585 NOTFOUND=0
7586 for ac_header in libcman.h
7587do :
7588 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7589if test "x$ac_cv_header_libcman_h" = x""yes; then :
7590 cat >>confdefs.h <<_ACEOF
7591#define HAVE_LIBCMAN_H 1
93bd259b 7592_ACEOF
93bd259b 7593
93bd259b 7594else
f11781c5 7595 $bailout
93bd259b
AK
7596fi
7597
f11781c5
AK
7598done
7599
7600 check_lib_no_libs cman cman_init
7601 if test $NOTFOUND = 0; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7603$as_echo "no pkg for libcman, using -lcman" >&6; }
7604 CMAN_LIBS="-lcman"
7605 HAVE_CMAN=yes
7606 fi
7607else
7608 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7609 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611$as_echo "yes" >&6; }
7612 HAVE_CMAN=yes
93bd259b 7613fi
f11781c5
AK
7614 CHECKCONFDB=yes
7615 CHECKDLM=yes
93bd259b
AK
7616fi
7617
f11781c5
AK
7618if test x$BUILDCOROSYNC = xyes || \
7619 test x$BUILDOPENAIS = xyes; then
93bd259b 7620
f11781c5
AK
7621pkg_failed=no
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7623$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7624
f11781c5
AK
7625if test -n "$COROSYNC_CFLAGS"; then
7626 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7627 elif test -n "$PKG_CONFIG"; then
7628 if test -n "$PKG_CONFIG" && \
7629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7630 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7635else
f11781c5
AK
7636 pkg_failed=yes
7637fi
7638 else
7639 pkg_failed=untried
7640fi
7641if test -n "$COROSYNC_LIBS"; then
7642 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7643 elif test -n "$PKG_CONFIG"; then
7644 if test -n "$PKG_CONFIG" && \
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7646 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7647 ac_status=$?
f11781c5
AK
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7651else
f11781c5 7652 pkg_failed=yes
ad6254c5 7653fi
f11781c5
AK
7654 else
7655 pkg_failed=untried
ad6254c5 7656fi
ad6254c5 7657
72b2cb61 7658
72b2cb61 7659
f11781c5
AK
7660if test $pkg_failed = yes; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
19a2c6e0 7663
f11781c5
AK
7664if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7665 _pkg_short_errors_supported=yes
7666else
7667 _pkg_short_errors_supported=no
ad6254c5 7668fi
f11781c5
AK
7669 if test $_pkg_short_errors_supported = yes; then
7670 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7671 else
7672 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7673 fi
7674 # Put the nasty error message in config.log where it belongs
7675 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7676
f11781c5
AK
7677 $bailout
7678elif test $pkg_failed = untried; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
7681 $bailout
7682else
7683 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7684 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686$as_echo "yes" >&6; }
7687 HAVE_COROSYNC=yes
7688fi
7689 CHECKCONFDB=yes
b6d7a484 7690 CHECKCMAP=yes
ad6254c5
AK
7691fi
7692
f11781c5 7693if test x$BUILDCOROSYNC = xyes; then
f30875db 7694
f11781c5
AK
7695pkg_failed=no
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7697$as_echo_n "checking for QUORUM... " >&6; }
7698
7699if test -n "$QUORUM_CFLAGS"; then
7700 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7701 elif test -n "$PKG_CONFIG"; then
7702 if test -n "$PKG_CONFIG" && \
7703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7704 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7705 ac_status=$?
f11781c5
AK
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7709else
f11781c5 7710 pkg_failed=yes
f30875db 7711fi
f11781c5
AK
7712 else
7713 pkg_failed=untried
f30875db 7714fi
f11781c5
AK
7715if test -n "$QUORUM_LIBS"; then
7716 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7717 elif test -n "$PKG_CONFIG"; then
7718 if test -n "$PKG_CONFIG" && \
7719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7720 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7725else
f11781c5 7726 pkg_failed=yes
f30875db 7727fi
f11781c5
AK
7728 else
7729 pkg_failed=untried
7730fi
7731
f30875db 7732
f11781c5
AK
7733
7734if test $pkg_failed = yes; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737
7738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7739 _pkg_short_errors_supported=yes
7740else
7741 _pkg_short_errors_supported=no
f30875db 7742fi
f11781c5
AK
7743 if test $_pkg_short_errors_supported = yes; then
7744 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7745 else
7746 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7747 fi
7748 # Put the nasty error message in config.log where it belongs
7749 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7750
f11781c5
AK
7751 $bailout
7752elif test $pkg_failed = untried; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755 $bailout
7756else
7757 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7758 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760$as_echo "yes" >&6; }
7761 HAVE_QUORUM=yes
7762fi
7763 CHECKCPG=yes
7764 CHECKDLM=yes
d0191583
JM
7765fi
7766
f11781c5 7767if test x$BUILDOPENAIS = xyes; then
d0191583 7768
f11781c5
AK
7769pkg_failed=no
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7771$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7772
f11781c5
AK
7773if test -n "$SALCK_CFLAGS"; then
7774 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7775 elif test -n "$PKG_CONFIG"; then
7776 if test -n "$PKG_CONFIG" && \
7777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7778 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7779 ac_status=$?
7780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7783else
7784 pkg_failed=yes
7785fi
7786 else
7787 pkg_failed=untried
7788fi
7789if test -n "$SALCK_LIBS"; then
7790 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7791 elif test -n "$PKG_CONFIG"; then
7792 if test -n "$PKG_CONFIG" && \
7793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7794 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7795 ac_status=$?
f11781c5
AK
7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797 test $ac_status = 0; }; then
7798 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7799else
f11781c5 7800 pkg_failed=yes
8a2fc586 7801fi
f11781c5
AK
7802 else
7803 pkg_failed=untried
8a2fc586 7804fi
d0191583 7805
d0191583 7806
f8f6ec92 7807
f11781c5
AK
7808if test $pkg_failed = yes; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
8a2fc586 7811
f11781c5
AK
7812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7813 _pkg_short_errors_supported=yes
ad6254c5 7814else
f11781c5
AK
7815 _pkg_short_errors_supported=no
7816fi
7817 if test $_pkg_short_errors_supported = yes; then
7818 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7819 else
7820 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7821 fi
7822 # Put the nasty error message in config.log where it belongs
7823 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7824
f11781c5
AK
7825 $bailout
7826elif test $pkg_failed = untried; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
7829 $bailout
ad6254c5 7830else
f11781c5
AK
7831 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7832 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7834$as_echo "yes" >&6; }
7835 HAVE_SALCK=yes
ad6254c5 7836fi
f11781c5 7837 CHECKCPG=yes
ad6254c5 7838fi
ad6254c5 7839
72b2cb61 7840
f8f6ec92 7841
f11781c5 7842if test x$CHECKCONFDB = xyes; then
f8f6ec92 7843
f11781c5
AK
7844pkg_failed=no
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7846$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7847
f11781c5
AK
7848if test -n "$CONFDB_CFLAGS"; then
7849 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7850 elif test -n "$PKG_CONFIG"; then
7851 if test -n "$PKG_CONFIG" && \
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7853 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7854 ac_status=$?
f11781c5
AK
7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; }; then
7857 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7858else
f11781c5
AK
7859 pkg_failed=yes
7860fi
7861 else
7862 pkg_failed=untried
7863fi
7864if test -n "$CONFDB_LIBS"; then
7865 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7866 elif test -n "$PKG_CONFIG"; then
7867 if test -n "$PKG_CONFIG" && \
7868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7869 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7870 ac_status=$?
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7874else
7875 pkg_failed=yes
7876fi
7877 else
7878 pkg_failed=untried
f8f6ec92
ZK
7879fi
7880
f8f6ec92 7881
66e941e8 7882
f11781c5
AK
7883if test $pkg_failed = yes; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886
7887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7888 _pkg_short_errors_supported=yes
f8f6ec92 7889else
f11781c5 7890 _pkg_short_errors_supported=no
66e941e8 7891fi
f11781c5
AK
7892 if test $_pkg_short_errors_supported = yes; then
7893 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7894 else
7895 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7896 fi
7897 # Put the nasty error message in config.log where it belongs
7898 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7899
f11781c5
AK
7900 HAVE_CONFDB=no
7901elif test $pkg_failed = untried; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903$as_echo "no" >&6; }
7904 HAVE_CONFDB=no
7905else
7906 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7907 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909$as_echo "yes" >&6; }
7910 HAVE_CONFDB=yes
66e941e8 7911fi
f11781c5
AK
7912
7913 for ac_header in corosync/confdb.h
7914do :
7915 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7916if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7917 cat >>confdefs.h <<_ACEOF
f11781c5 7918#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7919_ACEOF
f11781c5 7920 HAVE_CONFDB_H=yes
66e941e8 7921else
f11781c5 7922 HAVE_CONFDB_H=no
66e941e8 7923fi
dd1f2c09
MB
7924
7925done
7926
7927
f11781c5
AK
7928 if test x$HAVE_CONFDB != xyes && \
7929 test x$HAVE_CONFDB_H = xyes; then
7930 check_lib_no_libs confdb confdb_initialize
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7932$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7933 CONFDB_LIBS="-lconfdb"
7934 HAVE_CONFDB=yes
7935 fi
b6d7a484
AK
7936fi
7937
7938
7939if test x$CHECKCMAP = xyes; then
7940
7941pkg_failed=no
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7943$as_echo_n "checking for CMAP... " >&6; }
7944
7945if test -n "$CMAP_CFLAGS"; then
7946 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7947 elif test -n "$PKG_CONFIG"; then
7948 if test -n "$PKG_CONFIG" && \
7949 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7950 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7951 ac_status=$?
7952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953 test $ac_status = 0; }; then
7954 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7955else
7956 pkg_failed=yes
7957fi
7958 else
7959 pkg_failed=untried
7960fi
7961if test -n "$CMAP_LIBS"; then
7962 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7963 elif test -n "$PKG_CONFIG"; then
7964 if test -n "$PKG_CONFIG" && \
7965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7966 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7967 ac_status=$?
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7971else
7972 pkg_failed=yes
7973fi
7974 else
7975 pkg_failed=untried
7976fi
7977
7978
7979
7980if test $pkg_failed = yes; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
f11781c5 7983
b6d7a484
AK
7984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7985 _pkg_short_errors_supported=yes
7986else
7987 _pkg_short_errors_supported=no
7988fi
7989 if test $_pkg_short_errors_supported = yes; then
7990 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7991 else
7992 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7993 fi
7994 # Put the nasty error message in config.log where it belongs
7995 echo "$CMAP_PKG_ERRORS" >&5
7996
7997 HAVE_CMAP=no
7998elif test $pkg_failed = untried; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001 HAVE_CMAP=no
8002else
8003 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
8004 CMAP_LIBS=$pkg_cv_CMAP_LIBS
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006$as_echo "yes" >&6; }
8007 HAVE_CMAP=yes
8008fi
8009
8010 for ac_header in corosync/cmap.h
8011do :
8012 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
8013if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
8014 cat >>confdefs.h <<_ACEOF
8015#define HAVE_COROSYNC_CMAP_H 1
8016_ACEOF
8017 HAVE_CMAP_H=yes
8018else
8019 HAVE_CMAP_H=no
8020fi
8021
8022done
8023
8024
8025 if test x$HAVE_CMAP != xyes && \
8026 test x$HAVE_CMAP_H = xyes; then
8027 check_lib_no_libs cmap cmap_initialize
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
8029$as_echo "no pkg for cmap, using -lcmap" >&6; }
8030 CMAP_LIBS="-lcmap"
8031 HAVE_CMAP=yes
8032 fi
8033fi
8034
8035if test x$BUILDCOROSYNC = xyes; then
8036 if test x$HAVE_CMAP != xyes && \
8037 test x$HAVE_CONFDB != xyes && \
f11781c5 8038 test x$CLVMD != xall; then
b6d7a484 8039 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
f11781c5 8040 fi
dd1f2c09 8041fi
f11781c5
AK
8042
8043if test x$CHECKCPG = xyes; then
8044
8045pkg_failed=no
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8047$as_echo_n "checking for CPG... " >&6; }
8048
8049if test -n "$CPG_CFLAGS"; then
8050 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8051 elif test -n "$PKG_CONFIG"; then
8052 if test -n "$PKG_CONFIG" && \
8053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8054 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8055 ac_status=$?
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; }; then
8058 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 8059else
f11781c5
AK
8060 pkg_failed=yes
8061fi
8062 else
8063 pkg_failed=untried
8064fi
8065if test -n "$CPG_LIBS"; then
8066 pkg_cv_CPG_LIBS="$CPG_LIBS"
8067 elif test -n "$PKG_CONFIG"; then
8068 if test -n "$PKG_CONFIG" && \
8069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8070 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 8071 ac_status=$?
f11781c5
AK
8072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073 test $ac_status = 0; }; then
8074 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 8075else
f11781c5
AK
8076 pkg_failed=yes
8077fi
8078 else
8079 pkg_failed=untried
8080fi
8081
8082
8083
8084if test $pkg_failed = yes; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086$as_echo "no" >&6; }
8087
8088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8089 _pkg_short_errors_supported=yes
8090else
8091 _pkg_short_errors_supported=no
8092fi
8093 if test $_pkg_short_errors_supported = yes; then
8094 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8095 else
8096 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8097 fi
8098 # Put the nasty error message in config.log where it belongs
8099 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8100
f11781c5
AK
8101 $bailout
8102elif test $pkg_failed = untried; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105 $bailout
8106else
8107 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8108 CPG_LIBS=$pkg_cv_CPG_LIBS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110$as_echo "yes" >&6; }
8111 HAVE_CPG=yes
8112fi
dd1f2c09
MB
8113fi
8114
f11781c5 8115if test x$CHECKDLM = xyes; then
dd1f2c09 8116
f11781c5
AK
8117pkg_failed=no
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8119$as_echo_n "checking for DLM... " >&6; }
8120
8121if test -n "$DLM_CFLAGS"; then
8122 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8123 elif test -n "$PKG_CONFIG"; then
8124 if test -n "$PKG_CONFIG" && \
8125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8126 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8127 ac_status=$?
f11781c5
AK
8128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8129 test $ac_status = 0; }; then
8130 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8131else
f11781c5
AK
8132 pkg_failed=yes
8133fi
8134 else
8135 pkg_failed=untried
8136fi
8137if test -n "$DLM_LIBS"; then
8138 pkg_cv_DLM_LIBS="$DLM_LIBS"
8139 elif test -n "$PKG_CONFIG"; then
8140 if test -n "$PKG_CONFIG" && \
8141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8142 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8143 ac_status=$?
8144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8145 test $ac_status = 0; }; then
8146 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8147else
8148 pkg_failed=yes
8149fi
8150 else
8151 pkg_failed=untried
dd1f2c09
MB
8152fi
8153
dd1f2c09 8154
dd1f2c09 8155
f11781c5
AK
8156if test $pkg_failed = yes; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159
8160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8161 _pkg_short_errors_supported=yes
dd1f2c09 8162else
f11781c5 8163 _pkg_short_errors_supported=no
dd1f2c09 8164fi
f11781c5
AK
8165 if test $_pkg_short_errors_supported = yes; then
8166 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8167 else
8168 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8169 fi
8170 # Put the nasty error message in config.log where it belongs
8171 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8172
f11781c5
AK
8173 NOTFOUND=0
8174 for ac_header in libdlm.h
8175do :
8176 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8177if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8178 cat >>confdefs.h <<_ACEOF
f11781c5 8179#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8180_ACEOF
8181
f11781c5
AK
8182else
8183 $bailout
dd1f2c09 8184fi
f8f6ec92
ZK
8185
8186done
8187
f11781c5
AK
8188 check_lib_no_libs dlm dlm_lock -lpthread
8189 if test $NOTFOUND = 0; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8191$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8192 DLM_LIBS="-ldlm -lpthread"
8193 HAVE_DLM=yes
8194 fi
8195elif test $pkg_failed = untried; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }
8198 NOTFOUND=0
8199 for ac_header in libdlm.h
8200do :
8201 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8202if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8203 cat >>confdefs.h <<_ACEOF
8204#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8205_ACEOF
8206
f8f6ec92 8207else
f11781c5 8208 $bailout
ad6254c5
AK
8209fi
8210
f11781c5 8211done
8b1a3214 8212
f11781c5
AK
8213 check_lib_no_libs dlm dlm_lock -lpthread
8214 if test $NOTFOUND = 0; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8216$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8217 DLM_LIBS="-ldlm -lpthread"
8218 HAVE_DLM=yes
8219 fi
8b1a3214 8220else
f11781c5
AK
8221 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8222 DLM_LIBS=$pkg_cv_DLM_LIBS
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8224$as_echo "yes" >&6; }
8225 HAVE_DLM=yes
8b1a3214 8226fi
8b1a3214
AK
8227fi
8228
f11781c5
AK
8229if test x$CLVMD = xall; then
8230 CLVMD=none
8231 CLVMD_CMANAGERS=""
8232 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
8233 if test x$HAVE_CMAN = xyes && \
8234 test x$HAVE_DLM = xyes; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8236$as_echo "Enabling clvmd cman cluster manager" >&6; }
8237 CLVMD="$CLVMD,cman"
8238 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8239 CLVMD_NEEDS_QDISKD=yes
8240 fi
8241 if test x$HAVE_COROSYNC = xyes && \
8242 test x$HAVE_QUORUM = xyes && \
8243 test x$HAVE_CPG = xyes && \
b6d7a484
AK
8244 test x$HAVE_DLM = xyes; then
8245 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
f11781c5
AK
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8247$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8248 CLVMD="$CLVMD,corosync"
8249 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
b6d7a484 8250 fi
f11781c5
AK
8251 fi
8252 if test x$HAVE_COROSYNC = xyes && \
8253 test x$HAVE_CPG = xyes && \
8254 test x$HAVE_SALCK = xyes; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8256$as_echo "Enabling clvmd openais cluster manager" >&6; }
8257 CLVMD="$CLVMD,openais"
8258 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8259 fi
8260 if test x$CLVMD_NEEDS_QDISKD != xno; then
8261 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8262 fi
8263 if test x$CLVMD = xnone; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8265$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8266 fi
8267fi
8268
75fad6ea
MB
8269if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8270 if test x$HAVE_CMAP = xyes; then
8271 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8272 fi
8273fi
8274
ad6254c5 8275################################################################################
f11781c5 8276if test "x$CLVMD" != xnone; then
ad6254c5 8277
f11781c5
AK
8278# Check whether --with-clvmd-pidfile was given.
8279if test "${with_clvmd_pidfile+set}" = set; then :
8280 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8281else
5723db01 8282 CLVMD_PIDFILE="$DEFAULT_PID_DIR/clvmd.pid"
ad6254c5 8283fi
7a197a62 8284
ad6254c5 8285
f11781c5
AK
8286cat >>confdefs.h <<_ACEOF
8287#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8288_ACEOF
ad6254c5 8289
ad6254c5 8290fi
7a197a62 8291
f11781c5
AK
8292################################################################################
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8294$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8295# Check whether --enable-cmirrord was given.
8296if test "${enable_cmirrord+set}" = set; then :
8297 enableval=$enable_cmirrord; CMIRRORD=$enableval
8298else
8299 CMIRRORD=no
8300fi
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8303$as_echo "$CMIRRORD" >&6; }
ad6254c5 8304
f11781c5 8305BUILD_CMIRRORD=$CMIRRORD
7a197a62 8306
f11781c5
AK
8307################################################################################
8308if test "x$BUILD_CMIRRORD" = xyes; then
8309
8310# Check whether --with-cmirrord-pidfile was given.
8311if test "${with_cmirrord_pidfile+set}" = set; then :
8312 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8313else
5723db01 8314 CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid"
ad6254c5 8315fi
ad6254c5 8316
72b2cb61 8317
f11781c5
AK
8318cat >>confdefs.h <<_ACEOF
8319#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8320_ACEOF
8321
ad6254c5
AK
8322fi
8323
f11781c5
AK
8324################################################################################
8325if [ "x$BUILD_CMIRRORD" = xyes ]; then
8326 if test x$PKGCONFIG_INIT != x1; then
8327 pkg_config_init
8328 fi
ad6254c5 8329
62e38da1
JEB
8330
8331$as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h
8332
8333
f11781c5
AK
8334pkg_failed=no
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8336$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8337
f11781c5
AK
8338if test -n "$SACKPT_CFLAGS"; then
8339 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8340 elif test -n "$PKG_CONFIG"; then
8341 if test -n "$PKG_CONFIG" && \
8342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8343 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8344 ac_status=$?
8345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8346 test $ac_status = 0; }; then
8347 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8348else
f11781c5
AK
8349 pkg_failed=yes
8350fi
8351 else
8352 pkg_failed=untried
8353fi
8354if test -n "$SACKPT_LIBS"; then
8355 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8356 elif test -n "$PKG_CONFIG"; then
8357 if test -n "$PKG_CONFIG" && \
8358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8359 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8360 ac_status=$?
f11781c5
AK
8361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8362 test $ac_status = 0; }; then
8363 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8364else
f11781c5
AK
8365 pkg_failed=yes
8366fi
8367 else
8368 pkg_failed=untried
8369fi
539f4a77
ZK
8370
8371
539f4a77 8372
f11781c5
AK
8373if test $pkg_failed = yes; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376
8377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8378 _pkg_short_errors_supported=yes
539f4a77 8379else
f11781c5 8380 _pkg_short_errors_supported=no
539f4a77 8381fi
f11781c5
AK
8382 if test $_pkg_short_errors_supported = yes; then
8383 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8384 else
8385 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8386 fi
8387 # Put the nasty error message in config.log where it belongs
8388 echo "$SACKPT_PKG_ERRORS" >&5
8389
62e38da1
JEB
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8391$as_echo "no libSaCkpt, compiling without it" >&6; }
f11781c5 8392
62e38da1 8393$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
f11781c5
AK
8394
8395elif test $pkg_failed = untried; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397$as_echo "no" >&6; }
62e38da1
JEB
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8399$as_echo "no libSaCkpt, compiling without it" >&6; }
f11781c5 8400
62e38da1 8401$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
f11781c5 8402
539f4a77 8403else
f11781c5
AK
8404 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8405 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8407$as_echo "yes" >&6; }
62e38da1 8408 HAVE_SACKPT=yes
539f4a77 8409fi
62e38da1 8410
f11781c5 8411 if test x$HAVE_CPG != xyes; then
539f4a77 8412
f11781c5
AK
8413pkg_failed=no
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8415$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8416
f11781c5
AK
8417if test -n "$CPG_CFLAGS"; then
8418 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8419 elif test -n "$PKG_CONFIG"; then
8420 if test -n "$PKG_CONFIG" && \
8421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8422 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8423 ac_status=$?
f11781c5
AK
8424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8425 test $ac_status = 0; }; then
8426 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8427else
f11781c5
AK
8428 pkg_failed=yes
8429fi
8430 else
8431 pkg_failed=untried
8432fi
8433if test -n "$CPG_LIBS"; then
8434 pkg_cv_CPG_LIBS="$CPG_LIBS"
8435 elif test -n "$PKG_CONFIG"; then
8436 if test -n "$PKG_CONFIG" && \
8437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8438 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8439 ac_status=$?
8440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8441 test $ac_status = 0; }; then
8442 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8443else
8444 pkg_failed=yes
8445fi
8446 else
8447 pkg_failed=untried
8448fi
8449
8450
8451
8452if test $pkg_failed = yes; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454$as_echo "no" >&6; }
ad6254c5 8455
f11781c5
AK
8456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8457 _pkg_short_errors_supported=yes
8458else
8459 _pkg_short_errors_supported=no
ad6254c5 8460fi
f11781c5
AK
8461 if test $_pkg_short_errors_supported = yes; then
8462 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8463 else
8464 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8465 fi
8466 # Put the nasty error message in config.log where it belongs
8467 echo "$CPG_PKG_ERRORS" >&5
8468
8469 as_fn_error $? "Package requirements (libcpg) were not met:
8470
8471$CPG_PKG_ERRORS
8472
8473Consider adjusting the PKG_CONFIG_PATH environment variable if you
8474installed software in a non-standard prefix.
8475
8476Alternatively, you may set the environment variables CPG_CFLAGS
8477and CPG_LIBS to avoid the need to call pkg-config.
8478See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8479
f11781c5
AK
8480elif test $pkg_failed = untried; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482$as_echo "no" >&6; }
8483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8485as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8486is in your PATH or set the PKG_CONFIG environment variable to the full
8487path to pkg-config.
539f4a77 8488
f11781c5
AK
8489Alternatively, you may set the environment variables CPG_CFLAGS
8490and CPG_LIBS to avoid the need to call pkg-config.
8491See the pkg-config man page for more details.
539f4a77 8492
f11781c5
AK
8493To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8494See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8495
539f4a77 8496else
f11781c5
AK
8497 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8498 CPG_LIBS=$pkg_cv_CPG_LIBS
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8500$as_echo "yes" >&6; }
bc1024f8 8501
f11781c5
AK
8502fi
8503 fi
8504fi
8505
8506################################################################################
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8508$as_echo_n "checking whether to enable debugging... " >&6; }
8509# Check whether --enable-debug was given.
8510if test "${enable_debug+set}" = set; then :
8511 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8512else
f11781c5
AK
8513 DEBUG=no
8514fi
8515
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8517$as_echo "$DEBUG" >&6; }
539f4a77 8518
f11781c5
AK
8519if test x$DEBUG = xyes; then
8520 COPTIMISE_FLAG=
8521else
8522 CSCOPE_CMD=
06e459df
JM
8523fi
8524
f11781c5
AK
8525################################################################################
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8527$as_echo_n "checking for C optimisation flag... " >&6; }
8528
8529# Check whether --with-optimisation was given.
8530if test "${with_optimisation+set}" = set; then :
8531 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8532fi
539f4a77 8533
f11781c5
AK
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8535$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8536
f11781c5
AK
8537################################################################################
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8539$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8540# Check whether --enable-profiling was given.
8541if test "${enable_profiling+set}" = set; then :
8542 enableval=$enable_profiling; PROFILING=$enableval
8543else
8544 PROFILING=no
539f4a77
ZK
8545fi
8546
f11781c5
AK
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8548$as_echo "$PROFILING" >&6; }
8549
8550if test "x$PROFILING" = xyes; then
8551 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8552 # Extract the first word of "lcov", so it can be a program name with args.
8553set dummy lcov; ac_word=$2
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_path_LCOV+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
539f4a77 8558else
f11781c5
AK
8559 case $LCOV in
8560 [\\/]* | ?:[\\/]*)
8561 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8562 ;;
8563 *)
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565for as_dir in $PATH
8566do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8574 fi
8575done
8576 done
8577IFS=$as_save_IFS
539f4a77 8578
f11781c5
AK
8579 ;;
8580esac
8581fi
8582LCOV=$ac_cv_path_LCOV
8583if test -n "$LCOV"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8585$as_echo "$LCOV" >&6; }
8586else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
539f4a77
ZK
8589fi
8590
bc1024f8 8591
f11781c5
AK
8592 # Extract the first word of "genhtml", so it can be a program name with args.
8593set dummy genhtml; ac_word=$2
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8597 $as_echo_n "(cached) " >&6
ad6254c5 8598else
f11781c5
AK
8599 case $GENHTML in
8600 [\\/]* | ?:[\\/]*)
8601 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8602 ;;
8603 *)
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615done
8616 done
8617IFS=$as_save_IFS
8a2fc586 8618
f11781c5
AK
8619 ;;
8620esac
8621fi
8622GENHTML=$ac_cv_path_GENHTML
8623if test -n "$GENHTML"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8625$as_echo "$GENHTML" >&6; }
8626else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
8629fi
8a2fc586 8630
8a2fc586 8631
f11781c5
AK
8632 if test -z "$LCOV" -o -z "$GENHTML"; then
8633 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8634 fi
8635 # Extract the first word of "genpng", so it can be a program name with args.
8636set dummy genpng; ac_word=$2
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638$as_echo_n "checking for $ac_word... " >&6; }
8639if test "${ac_cv_path_GENPNG+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641else
8642 case $GENPNG in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8645 ;;
8646 *)
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658done
8659 done
8660IFS=$as_save_IFS
ad6254c5 8661
f11781c5 8662 ;;
7a197a62 8663esac
f11781c5
AK
8664fi
8665GENPNG=$ac_cv_path_GENPNG
8666if test -n "$GENPNG"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8668$as_echo "$GENPNG" >&6; }
ad6254c5 8669else
f11781c5
AK
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
8672fi
8673
8674
8675 if test -n "$GENPNG"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8677$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8678 if $GENPNG --help > /dev/null 2>&1 ; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8680$as_echo "ok" >&6; }
8681 GENHTML="$GENHTML --frames"
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8684$as_echo "not supported" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8686$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8687 GENPNG=
8688 fi
8689 fi
8690fi
ad6254c5 8691
f11781c5
AK
8692################################################################################
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8694$as_echo_n "checking whether to enable unit testing... " >&6; }
8695# Check whether --enable-testing was given.
8696if test "${enable_testing+set}" = set; then :
8697 enableval=$enable_testing; TESTING=$enableval
8698else
8699 TESTING=no
ad6254c5 8700fi
7a197a62 8701
f11781c5
AK
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8703$as_echo "$TESTING" >&6; }
72b2cb61 8704
f11781c5 8705if test "$TESTING" = yes; then
426fc742
PR
8706
8707pkg_failed=no
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8709$as_echo_n "checking for CUNIT... " >&6; }
8710
8711if test -n "$CUNIT_CFLAGS"; then
8712 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8713 elif test -n "$PKG_CONFIG"; then
8714 if test -n "$PKG_CONFIG" && \
8715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8716 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8717 ac_status=$?
8718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8719 test $ac_status = 0; }; then
8720 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8721else
8722 pkg_failed=yes
8723fi
8724 else
8725 pkg_failed=untried
8726fi
8727if test -n "$CUNIT_LIBS"; then
8728 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8729 elif test -n "$PKG_CONFIG"; then
8730 if test -n "$PKG_CONFIG" && \
8731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8732 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8733 ac_status=$?
8734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735 test $ac_status = 0; }; then
8736 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
ad6254c5 8737else
426fc742
PR
8738 pkg_failed=yes
8739fi
8740 else
8741 pkg_failed=untried
ad6254c5
AK
8742fi
8743
7a197a62 8744
426fc742
PR
8745
8746if test $pkg_failed = yes; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
8749
8750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8751 _pkg_short_errors_supported=yes
8752else
8753 _pkg_short_errors_supported=no
8754fi
8755 if test $_pkg_short_errors_supported = yes; then
8756 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8757 else
8758 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8759 fi
8760 # Put the nasty error message in config.log where it belongs
8761 echo "$CUNIT_PKG_ERRORS" >&5
8762
8763 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8764
8765$CUNIT_PKG_ERRORS
8766
8767Consider adjusting the PKG_CONFIG_PATH environment variable if you
8768installed software in a non-standard prefix.
8769
8770Alternatively, you may set the environment variables CUNIT_CFLAGS
8771and CUNIT_LIBS to avoid the need to call pkg-config.
8772See the pkg-config man page for more details." "$LINENO" 5
8773
8774elif test $pkg_failed = untried; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8779as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8780is in your PATH or set the PKG_CONFIG environment variable to the full
8781path to pkg-config.
8782
8783Alternatively, you may set the environment variables CUNIT_CFLAGS
8784and CUNIT_LIBS to avoid the need to call pkg-config.
8785See the pkg-config man page for more details.
8786
8787To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8788See \`config.log' for more details" "$LINENO" 5; }
8789
8790else
8791 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8792 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8794$as_echo "yes" >&6; }
8795
8796fi
f11781c5 8797fi
ad6254c5 8798
f11781c5
AK
8799################################################################################
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8801$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8802# Check whether --enable-valgrind_pool was given.
8803if test "${enable_valgrind_pool+set}" = set; then :
8804 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8805else
8806 VALGRIND_POOL=no
8807fi
8808
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8810$as_echo "$VALGRIND_POOL" >&6; }
8811
8812if test "$VALGRIND_POOL" = yes; then
8813 for ac_header in valgrind/memcheck.h
8814do :
8815 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8816if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8817 cat >>confdefs.h <<_ACEOF
8818#define HAVE_VALGRIND_MEMCHECK_H 1
8819_ACEOF
ad6254c5 8820
ad6254c5 8821else
f11781c5 8822 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8823fi
8824
f11781c5
AK
8825done
8826
8827
8828$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8829
ad6254c5
AK
8830fi
8831
8832################################################################################
f11781c5
AK
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8834$as_echo_n "checking whether to use device-mapper... " >&6; }
8835# Check whether --enable-devmapper was given.
8836if test "${enable_devmapper+set}" = set; then :
8837 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8838fi
8839
f11781c5
AK
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8841$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8842
f11781c5 8843if test x$DEVMAPPER = xyes; then
ad6254c5 8844
f11781c5
AK
8845$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8846
8847fi
8848
cdd50823
ZK
8849################################################################################
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8851$as_echo_n "checking whether to build LVMetaD... " >&6; }
8852# Check whether --enable-lvmetad was given.
8853if test "${enable_lvmetad+set}" = set; then :
8854 enableval=$enable_lvmetad; LVMETAD=$enableval
8855fi
8856
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8858$as_echo "$LVMETAD" >&6; }
8859
8860BUILD_LVMETAD=$LVMETAD
8861
7126d8c2
AK
8862if test x$BUILD_LVMETAD = xyes; then
8863
8864$as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h
8865
5723db01
PR
8866
8867
8868# Check whether --with-lvmetad-pidfile was given.
8869if test "${with_lvmetad_pidfile+set}" = set; then :
8870 withval=$with_lvmetad_pidfile; LVMETAD_PIDFILE=$withval
8871else
8872 LVMETAD_PIDFILE="$DEFAULT_PID_DIR/lvmetad.pid"
8873fi
8874
8875
8876cat >>confdefs.h <<_ACEOF
8877#define LVMETAD_PIDFILE "$LVMETAD_PIDFILE"
8878_ACEOF
8879
7126d8c2
AK
8880fi
8881
f11781c5
AK
8882################################################################################
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8884$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8885# Check whether --enable-udev_sync was given.
8886if test "${enable_udev_sync+set}" = set; then :
8887 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8888else
f11781c5 8889 UDEV_SYNC=no
7a197a62 8890fi
ad6254c5 8891
f11781c5
AK
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8893$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8894
f11781c5 8895if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8896 if test x$PKGCONFIG_INIT != x1; then
8897 pkg_config_init
8898 fi
7a197a62 8899
d93275eb
PR
8900pkg_failed=no
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8902$as_echo_n "checking for UDEV... " >&6; }
8903
8904if test -n "$UDEV_CFLAGS"; then
8905 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8906 elif test -n "$PKG_CONFIG"; then
8907 if test -n "$PKG_CONFIG" && \
8908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8909 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8910 ac_status=$?
8911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912 test $ac_status = 0; }; then
8913 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8914else
d93275eb 8915 pkg_failed=yes
f11781c5 8916fi
d93275eb
PR
8917 else
8918 pkg_failed=untried
f11781c5 8919fi
d93275eb
PR
8920if test -n "$UDEV_LIBS"; then
8921 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8922 elif test -n "$PKG_CONFIG"; then
8923 if test -n "$PKG_CONFIG" && \
8924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8925 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8926 ac_status=$?
8927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928 test $ac_status = 0; }; then
8929 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8930else
d93275eb 8931 pkg_failed=yes
68f2de6d 8932fi
d93275eb
PR
8933 else
8934 pkg_failed=untried
8935fi
8936
8937
8938
8939if test $pkg_failed = yes; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941$as_echo "no" >&6; }
8942
8943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8944 _pkg_short_errors_supported=yes
8945else
8946 _pkg_short_errors_supported=no
8947fi
8948 if test $_pkg_short_errors_supported = yes; then
8949 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8950 else
8951 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8952 fi
8953 # Put the nasty error message in config.log where it belongs
8954 echo "$UDEV_PKG_ERRORS" >&5
8955
8956 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8957
8958$UDEV_PKG_ERRORS
8959
8960Consider adjusting the PKG_CONFIG_PATH environment variable if you
8961installed software in a non-standard prefix.
8962
8963Alternatively, you may set the environment variables UDEV_CFLAGS
8964and UDEV_LIBS to avoid the need to call pkg-config.
8965See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8966
d93275eb
PR
8967elif test $pkg_failed = untried; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969$as_echo "no" >&6; }
8970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8972as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8973is in your PATH or set the PKG_CONFIG environment variable to the full
8974path to pkg-config.
8975
8976Alternatively, you may set the environment variables UDEV_CFLAGS
8977and UDEV_LIBS to avoid the need to call pkg-config.
8978See the pkg-config man page for more details.
8979
8980To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8981See \`config.log' for more details" "$LINENO" 5; }
8982
8983else
8984 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8985 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8987$as_echo "yes" >&6; }
8988 UDEV_PC="libudev"
8989fi
68f2de6d 8990
f11781c5 8991$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8992
f11781c5
AK
8993fi
8994
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8996$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8997# Check whether --enable-udev_rules was given.
8998if test "${enable_udev_rules+set}" = set; then :
8999 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 9000else
f11781c5 9001 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
9002fi
9003
f11781c5
AK
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
9005$as_echo "$UDEV_RULES" >&6; }
68f2de6d 9006
5723db01
PR
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
9008$as_echo_n "checking whether to enable executable path detection in udev rules... " >&6; }
9009# Check whether --enable-udev_rule_exec_detection was given.
9010if test "${enable_udev_rule_exec_detection+set}" = set; then :
9011 enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval
9012else
9013 UDEV_RULE_EXEC_DETECTION=no
9014fi
9015
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
9017$as_echo "$UDEV_RULE_EXEC_DETECTION" >&6; }
9018
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
9020$as_echo_n "checking whether udev supports built-in blkid... " >&6; }
9021test x$PKGCONFIG_INIT != x1 && pkg_config_init
9022if $($PKG_CONFIG --atleast-version=176 libudev); then
9023 UDEV_HAS_BUILTIN_BLKID=yes
9024else
9025 UDEV_HAS_BUILTIN_BLKID=no
b559a1e6 9026fi
5723db01
PR
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
9028$as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
b559a1e6 9029
a5f46f6a 9030################################################################################
f11781c5
AK
9031# Check whether --enable-compat was given.
9032if test "${enable_compat+set}" = set; then :
9033 enableval=$enable_compat; DM_COMPAT=$enableval
9034else
9035 DM_COMPAT=no
9036fi
a5f46f6a 9037
f11781c5 9038
2061c0ec
AK
9039if test x$DM_COMPAT = xyes; then
9040 as_fn_error $? "--enable-compat is not currently supported.
9041Since device-mapper version 1.02.66, only one version (4) of the device-mapper
9042ioctl protocol is supported.
9043 " "$LINENO" 5
9044fi
9045
f11781c5
AK
9046################################################################################
9047# Check whether --enable-units-compat was given.
9048if test "${enable_units_compat+set}" = set; then :
9049 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 9050else
f11781c5 9051 UNITS_COMPAT=no
a5f46f6a
AK
9052fi
9053
9054
f11781c5 9055if test x$UNITS_COMPAT = xyes; then
78ce7acc 9056
f11781c5
AK
9057$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
9058
9059fi
9060
9061################################################################################
9062# Check whether --enable-ioctl was given.
9063if test "${enable_ioctl+set}" = set; then :
9064 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
9065fi
9066
a5f46f6a 9067
ad6254c5 9068################################################################################
f11781c5
AK
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
9070$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9071# Check whether --enable-o_direct was given.
9072if test "${enable_o_direct+set}" = set; then :
9073 enableval=$enable_o_direct; ODIRECT=$enableval
9074fi
ad6254c5 9075
f11781c5
AK
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
9077$as_echo "$ODIRECT" >&6; }
9078
9079if test x$ODIRECT = xyes; then
9080
9081$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 9082
ad6254c5 9083fi
ad6254c5 9084
f11781c5
AK
9085################################################################################
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
9087$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9088# Check whether --enable-applib was given.
9089if test "${enable_applib+set}" = set; then :
9090 enableval=$enable_applib; APPLIB=$enableval
9091else
9092 APPLIB=no
ad6254c5 9093fi
7a197a62 9094
f11781c5
AK
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
9096$as_echo "$APPLIB" >&6; }
ad6254c5 9097
f11781c5
AK
9098test x$APPLIB = xyes \
9099 && LVM2APP_LIB=-llvm2app \
9100 || LVM2APP_LIB=
ad6254c5 9101
f11781c5
AK
9102################################################################################
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
9104$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9105# Check whether --enable-cmdlib was given.
9106if test "${enable_cmdlib+set}" = set; then :
9107 enableval=$enable_cmdlib; CMDLIB=$enableval
9108else
9109 CMDLIB=no
ad6254c5 9110fi
7a197a62 9111
f11781c5
AK
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
9113$as_echo "$CMDLIB" >&6; }
7a197a62 9114
f11781c5
AK
9115test x$CMDLIB = xyes \
9116 && LVM2CMD_LIB=-llvm2cmd \
9117 || LVM2CMD_LIB=
9118
9119################################################################################
9120# Check whether --enable-pkgconfig was given.
9121if test "${enable_pkgconfig+set}" = set; then :
9122 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 9123else
f11781c5 9124 PKGCONFIG=no
ad6254c5 9125fi
ad6254c5 9126
ad6254c5 9127
f11781c5
AK
9128################################################################################
9129# Check whether --enable-write_install was given.
9130if test "${enable_write_install+set}" = set; then :
9131 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 9132else
f11781c5 9133 WRITE_INSTALL=no
ad6254c5
AK
9134fi
9135
ad6254c5 9136
f11781c5
AK
9137################################################################################
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9139$as_echo_n "checking whether to install fsadm... " >&6; }
9140# Check whether --enable-fsadm was given.
9141if test "${enable_fsadm+set}" = set; then :
9142 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
9143fi
9144
f11781c5
AK
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9146$as_echo "$FSADM" >&6; }
ad6254c5 9147
f11781c5
AK
9148################################################################################
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9150$as_echo_n "checking whether to use dmeventd... " >&6; }
9151# Check whether --enable-dmeventd was given.
9152if test "${enable_dmeventd+set}" = set; then :
9153 enableval=$enable_dmeventd; DMEVENTD=$enableval
9154fi
ad6254c5 9155
f11781c5
AK
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9157$as_echo "$DMEVENTD" >&6; }
ad6254c5 9158
f11781c5 9159BUILD_DMEVENTD=$DMEVENTD
ad6254c5 9160
f11781c5
AK
9161if test x$DMEVENTD = xyes; then
9162 if test x$MIRRORS != xinternal; then
9163 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9164 " "$LINENO" 5
9165 fi
9166 if test x$CMDLIB = xno; then
9167 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9168 " "$LINENO" 5
9169 fi
9170fi
ad6254c5 9171
f11781c5 9172if test x$DMEVENTD = xyes; then
ad6254c5 9173
f11781c5 9174$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 9175
f11781c5 9176fi
ad6254c5 9177
f11781c5 9178################################################################################
ad6254c5 9179
f11781c5
AK
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9181$as_echo_n "checking for getline in -lc... " >&6; }
9182if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 9183 $as_echo_n "(cached) " >&6
ad6254c5 9184else
f11781c5
AK
9185 ac_check_lib_save_LIBS=$LIBS
9186LIBS="-lc $LIBS"
9187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9188/* end confdefs.h. */
f11781c5
AK
9189
9190/* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193#ifdef __cplusplus
9194extern "C"
9195#endif
9196char getline ();
9197int
9198main ()
9199{
9200return getline ();
9201 ;
9202 return 0;
9203}
ad6254c5 9204_ACEOF
f11781c5
AK
9205if ac_fn_c_try_link "$LINENO"; then :
9206 ac_cv_lib_c_getline=yes
ad6254c5 9207else
f11781c5
AK
9208 ac_cv_lib_c_getline=no
9209fi
9210rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212LIBS=$ac_check_lib_save_LIBS
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9215$as_echo "$ac_cv_lib_c_getline" >&6; }
9216if test "x$ac_cv_lib_c_getline" = x""yes; then :
9217
9218$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9219
ad6254c5 9220fi
7a197a62 9221
ad6254c5 9222
f11781c5
AK
9223################################################################################
9224
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9226$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9227if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229else
9230 ac_check_lib_save_LIBS=$LIBS
9231LIBS="-lc $LIBS"
9232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9233/* end confdefs.h. */
f11781c5
AK
9234
9235/* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241char canonicalize_file_name ();
9242int
9243main ()
9244{
9245return canonicalize_file_name ();
9246 ;
9247 return 0;
9248}
ad6254c5 9249_ACEOF
f11781c5
AK
9250if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9252else
f11781c5
AK
9253 ac_cv_lib_c_canonicalize_file_name=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257LIBS=$ac_check_lib_save_LIBS
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9260$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9261if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9262
9263$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9264
ad6254c5 9265fi
7a197a62 9266
ad6254c5 9267
f11781c5
AK
9268################################################################################
9269if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9270 then exec_prefix="";
9271fi;
7a197a62 9272
f11781c5
AK
9273################################################################################
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9275$as_echo_n "checking for dlopen in -ldl... " >&6; }
9276if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9277 $as_echo_n "(cached) " >&6
ad6254c5 9278else
f11781c5
AK
9279 ac_check_lib_save_LIBS=$LIBS
9280LIBS="-ldl $LIBS"
9281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h. */
ad6254c5 9283
f11781c5
AK
9284/* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9287#ifdef __cplusplus
9288extern "C"
9289#endif
9290char dlopen ();
9291int
9292main ()
9293{
9294return dlopen ();
9295 ;
9296 return 0;
9297}
ad6254c5 9298_ACEOF
f11781c5
AK
9299if ac_fn_c_try_link "$LINENO"; then :
9300 ac_cv_lib_dl_dlopen=yes
ad6254c5 9301else
f11781c5 9302 ac_cv_lib_dl_dlopen=no
795ca3e5 9303fi
f11781c5
AK
9304rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306LIBS=$ac_check_lib_save_LIBS
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9309$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9310if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9311
ad6254c5 9312
f11781c5 9313$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9314
f11781c5
AK
9315 DL_LIBS="-ldl"
9316 HAVE_LIBDL=yes
9317else
795ca3e5 9318
f11781c5
AK
9319 DL_LIBS=
9320 HAVE_LIBDL=no
9321fi
8106cdd5 9322
ad6254c5 9323
f11781c5
AK
9324################################################################################
9325if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9326 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9327 -o "x$RAID" = xshared \
f11781c5
AK
9328 \) -a "x$STATIC_LINK" = xyes ];
9329 then as_fn_error $? "Features cannot be 'shared' when building statically
9330" "$LINENO" 5
9331fi
ad6254c5 9332
f11781c5
AK
9333################################################################################
9334if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9336$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9337if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9338 $as_echo_n "(cached) " >&6
795ca3e5 9339else
f11781c5
AK
9340 ac_check_lib_save_LIBS=$LIBS
9341LIBS="-lpthread $LIBS"
9342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9343/* end confdefs.h. */
8a2fc586 9344
f11781c5
AK
9345/* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348#ifdef __cplusplus
9349extern "C"
ad6254c5 9350#endif
f11781c5
AK
9351char pthread_mutex_lock ();
9352int
9353main ()
9354{
9355return pthread_mutex_lock ();
9356 ;
9357 return 0;
9358}
9359_ACEOF
9360if ac_fn_c_try_link "$LINENO"; then :
9361 ac_cv_lib_pthread_pthread_mutex_lock=yes
9362else
9363 ac_cv_lib_pthread_pthread_mutex_lock=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367LIBS=$ac_check_lib_save_LIBS
9368fi
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9370$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9371if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9372 PTHREAD_LIBS="-lpthread"
9373else
9374 hard_bailout
9375fi
9376
9377fi
9378
9379################################################################################
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9381$as_echo_n "checking whether to enable selinux support... " >&6; }
9382# Check whether --enable-selinux was given.
9383if test "${enable_selinux+set}" = set; then :
9384 enableval=$enable_selinux; SELINUX=$enableval
9385fi
9386
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9388$as_echo "$SELINUX" >&6; }
8a2fc586 9389
f11781c5
AK
9390################################################################################
9391if test x$SELINUX = xyes; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9393$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9394if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396else
9397 ac_check_lib_save_LIBS=$LIBS
9398LIBS="-lsepol $LIBS"
9399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400/* end confdefs.h. */
8a2fc586 9401
7a197a62
AK
9402/* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9405#ifdef __cplusplus
9406extern "C"
ad6254c5 9407#endif
f11781c5 9408char sepol_check_context ();
ad6254c5
AK
9409int
9410main ()
9411{
f11781c5 9412return sepol_check_context ();
ad6254c5
AK
9413 ;
9414 return 0;
9415}
9416_ACEOF
f11781c5
AK
9417if ac_fn_c_try_link "$LINENO"; then :
9418 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9419else
f11781c5
AK
9420 ac_cv_lib_sepol_sepol_check_context=no
9421fi
9422rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
9424LIBS=$ac_check_lib_save_LIBS
80992638 9425fi
f11781c5
AK
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9427$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9428if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9429
80992638 9430
f11781c5
AK
9431$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9432
9433 SELINUX_LIBS="-lsepol"
8106cdd5 9434fi
795ca3e5 9435
f11781c5
AK
9436
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9438$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9439if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9440 $as_echo_n "(cached) " >&6
25fbec5b 9441else
f11781c5
AK
9442 ac_check_lib_save_LIBS=$LIBS
9443LIBS="-lselinux $LIBS"
9444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9445/* end confdefs.h. */
80992638 9446
7a197a62
AK
9447/* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
ad6254c5 9449 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9450#ifdef __cplusplus
9451extern "C"
9452#endif
f11781c5 9453char is_selinux_enabled ();
ad6254c5
AK
9454int
9455main ()
9456{
f11781c5 9457return is_selinux_enabled ();
ad6254c5
AK
9458 ;
9459 return 0;
9460}
9461_ACEOF
f11781c5
AK
9462if ac_fn_c_try_link "$LINENO"; then :
9463 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9464else
f11781c5 9465 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9466fi
f11781c5
AK
9467rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469LIBS=$ac_check_lib_save_LIBS
25fbec5b 9470fi
f11781c5
AK
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9472$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9473if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9474
f11781c5
AK
9475 for ac_header in selinux/selinux.h
9476do :
9477 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9478if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9479 cat >>confdefs.h <<_ACEOF
9480#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9481_ACEOF
795ca3e5 9482
25fbec5b 9483else
f11781c5 9484 hard_bailout
795ca3e5 9485fi
795ca3e5 9486
f11781c5 9487done
795ca3e5 9488
f11781c5
AK
9489 for ac_header in selinux/label.h
9490do :
9491 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9492if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9493 cat >>confdefs.h <<_ACEOF
9494#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9495_ACEOF
ad6254c5 9496
ad6254c5 9497fi
7a197a62 9498
f11781c5 9499done
7a197a62 9500
ad6254c5 9501
f11781c5 9502$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9503
f11781c5
AK
9504 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9505 SELINUX_PC="libselinux"
9506 HAVE_SELINUX=yes
ad6254c5 9507else
8106cdd5 9508
f11781c5
AK
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9510$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9511 SELINUX_LIBS=
9512 SELINUX_PC=
9513 HAVE_SELINUX=no
795ca3e5 9514fi
ad6254c5 9515
795ca3e5
AK
9516fi
9517
f11781c5
AK
9518################################################################################
9519if test x$REALTIME = xyes; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9521$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9522if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9523 $as_echo_n "(cached) " >&6
26e7f2e0 9524else
f11781c5
AK
9525 ac_check_lib_save_LIBS=$LIBS
9526LIBS="-lrt $LIBS"
9527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9528/* end confdefs.h. */
ad6254c5 9529
f11781c5
AK
9530/* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9533#ifdef __cplusplus
9534extern "C"
9535#endif
9536char clock_gettime ();
ad6254c5
AK
9537int
9538main ()
9539{
f11781c5 9540return clock_gettime ();
ad6254c5
AK
9541 ;
9542 return 0;
9543}
9544_ACEOF
f11781c5
AK
9545if ac_fn_c_try_link "$LINENO"; then :
9546 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9547else
f11781c5 9548 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9549fi
f11781c5
AK
9550rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9553fi
f11781c5
AK
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9555$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9556if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9557 HAVE_REALTIME=yes
9558else
9559 HAVE_REALTIME=no
8106cdd5 9560fi
ad6254c5 9561
ad6254c5 9562
f11781c5 9563 if test x$HAVE_REALTIME = xyes; then
7a197a62 9564
f11781c5 9565$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9566
f11781c5
AK
9567 LIBS="-lrt $LIBS"
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9570$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9571 fi
9572fi
9573
9574################################################################################
9575for ac_header in getopt.h
9576do :
9577 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9578if test "x$ac_cv_header_getopt_h" = x""yes; then :
9579 cat >>confdefs.h <<_ACEOF
9580#define HAVE_GETOPT_H 1
9581_ACEOF
9582
9583$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9584
ad6254c5 9585fi
7a197a62 9586
f11781c5 9587done
ad6254c5 9588
7a197a62 9589
f11781c5
AK
9590################################################################################
9591if test x$READLINE != xno; then
9592 lvm_saved_libs=$LIBS
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9594$as_echo_n "checking for library containing tgetent... " >&6; }
9595if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9596 $as_echo_n "(cached) " >&6
ad6254c5 9597else
f11781c5
AK
9598 ac_func_search_save_LIBS=$LIBS
9599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600/* end confdefs.h. */
ad6254c5 9601
f11781c5
AK
9602/* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9605#ifdef __cplusplus
9606extern "C"
9607#endif
9608char tgetent ();
9609int
9610main ()
9611{
9612return tgetent ();
9613 ;
9614 return 0;
9615}
ad6254c5 9616_ACEOF
f11781c5
AK
9617for ac_lib in '' tinfo ncurses curses termcap termlib; do
9618 if test -z "$ac_lib"; then
9619 ac_res="none required"
9620 else
9621 ac_res=-l$ac_lib
9622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9623 fi
9624 if ac_fn_c_try_link "$LINENO"; then :
9625 ac_cv_search_tgetent=$ac_res
9626fi
9627rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext
9629 if test "${ac_cv_search_tgetent+set}" = set; then :
9630 break
9631fi
9632done
9633if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9634
80992638 9635else
f11781c5 9636 ac_cv_search_tgetent=no
b896caa1 9637fi
f11781c5
AK
9638rm conftest.$ac_ext
9639LIBS=$ac_func_search_save_LIBS
9640fi
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9642$as_echo "$ac_cv_search_tgetent" >&6; }
9643ac_res=$ac_cv_search_tgetent
9644if test "$ac_res" != no; then :
9645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9646 READLINE_LIBS=$ac_cv_search_tgetent
9647else
ad6254c5 9648
f11781c5
AK
9649 if test "$READLINE" = yes; then
9650 as_fn_error $? "termcap could not be found which is required for the
9651--enable-readline option (which is enabled by default). Either disable readline
9652support with --disable-readline or download and install termcap from:
9653 ftp.gnu.org/gnu/termcap
9654Note: if you are using precompiled packages you will also need the development
9655 package as well (which may be called termcap-devel or something similar).
9656Note: (n)curses also seems to work as a substitute for termcap. This was
9657 not found either - but you could try installing that as well." "$LINENO" 5
9658 fi
9659fi
b896caa1 9660
f11781c5
AK
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9662$as_echo_n "checking for readline in -lreadline... " >&6; }
9663if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9664 $as_echo_n "(cached) " >&6
795ca3e5 9665else
f11781c5
AK
9666 ac_check_lib_save_LIBS=$LIBS
9667LIBS="-lreadline $LIBS"
9668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9669/* end confdefs.h. */
8a2fc586 9670
f11781c5
AK
9671/* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9674#ifdef __cplusplus
9675extern "C"
ad6254c5 9676#endif
f11781c5
AK
9677char readline ();
9678int
9679main ()
9680{
9681return readline ();
9682 ;
9683 return 0;
9684}
9685_ACEOF
9686if ac_fn_c_try_link "$LINENO"; then :
9687 ac_cv_lib_readline_readline=yes
9688else
9689 ac_cv_lib_readline_readline=no
9690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693LIBS=$ac_check_lib_save_LIBS
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9696$as_echo "$ac_cv_lib_readline_readline" >&6; }
9697if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9698
8a2fc586 9699
f11781c5
AK
9700$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9701
9702 LIBS=$lvm_saved_libs
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9704$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9705if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707else
9708 ac_check_lib_save_LIBS=$LIBS
9709LIBS="-lreadline $LIBS"
9710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h. */
8a2fc586 9712
7a197a62
AK
9713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9716#ifdef __cplusplus
9717extern "C"
ad6254c5 9718#endif
f11781c5 9719char rl_line_buffer ();
ad6254c5
AK
9720int
9721main ()
9722{
f11781c5 9723return rl_line_buffer ();
ad6254c5
AK
9724 ;
9725 return 0;
9726}
9727_ACEOF
f11781c5
AK
9728if ac_fn_c_try_link "$LINENO"; then :
9729 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9730else
f11781c5
AK
9731 ac_cv_lib_readline_rl_line_buffer=no
9732fi
9733rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735LIBS=$ac_check_lib_save_LIBS
9736fi
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9738$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9739if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9740 READLINE_LIBS="-lreadline"
9741else
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9744$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9745 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9746
ad6254c5 9747fi
7a197a62 9748
f11781c5
AK
9749else
9750
9751 READLINE_LIBS=
9752 if test "$READLINE" = yes; then
9753 as_fn_error $? "GNU Readline could not be found which is required for the
9754--enable-readline option (which is enabled by default). Either disable readline
9755support with --disable-readline or download and install readline from:
9756 ftp.gnu.org/gnu/readline
9757Note: if you are using precompiled packages you will also need the development
9758package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9759 fi
ad6254c5 9760fi
f11781c5
AK
9761
9762 LIBS="$READLINE_LIBS $lvm_saved_libs"
9763 for ac_func in rl_completion_matches
9764do :
9765 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9766if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9767 cat >>confdefs.h <<_ACEOF
f11781c5 9768#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9769_ACEOF
9770
ad6254c5
AK
9771fi
9772done
9773
f11781c5 9774 LIBS=$lvm_saved_libs
ad6254c5
AK
9775fi
9776
f11781c5
AK
9777################################################################################
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9779$as_echo_n "checking whether to enable internationalisation... " >&6; }
9780# Check whether --enable-nls was given.
9781if test "${enable_nls+set}" = set; then :
9782 enableval=$enable_nls; INTL=$enableval
9783else
9784 INTL=no
9785fi
d911ec67 9786
f11781c5
AK
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9788$as_echo "$INTL" >&6; }
9789
9790if test x$INTL = xyes; then
9791# FIXME - Move this - can be device-mapper too
9792 INTL_PACKAGE="lvm2"
9793 # Extract the first word of "msgfmt", so it can be a program name with args.
9794set dummy msgfmt; ac_word=$2
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796$as_echo_n "checking for $ac_word... " >&6; }
9797if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9798 $as_echo_n "(cached) " >&6
d911ec67 9799else
f11781c5
AK
9800 case $MSGFMT in
9801 [\\/]* | ?:[\\/]*)
9802 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9803 ;;
9804 *)
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816done
9817 done
9818IFS=$as_save_IFS
9819
9820 ;;
d911ec67 9821esac
f11781c5
AK
9822fi
9823MSGFMT=$ac_cv_path_MSGFMT
9824if test -n "$MSGFMT"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9826$as_echo "$MSGFMT" >&6; }
d911ec67 9827else
f11781c5
AK
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829$as_echo "no" >&6; }
9830fi
d911ec67 9831
f11781c5
AK
9832
9833 if [ "x$MSGFMT" == x ];
9834 then as_fn_error $? "msgfmt not found in path $PATH
9835 " "$LINENO" 5
9836 fi;
9837
9838
9839# Check whether --with-localedir was given.
9840if test "${with_localedir+set}" = set; then :
9841 withval=$with_localedir; LOCALEDIR=$withval
9842else
9843 LOCALEDIR='${prefix}/share/locale'
9844fi
9845
9846fi
9847
9848################################################################################
9849
9850# Check whether --with-confdir was given.
9851if test "${with_confdir+set}" = set; then :
9852 withval=$with_confdir; CONFDIR=$withval
9853else
9854 CONFDIR="/etc"
9855fi
9856
9857
9858
9859# Check whether --with-staticdir was given.
9860if test "${with_staticdir+set}" = set; then :
9861 withval=$with_staticdir; STATICDIR=$withval
9862else
9863 STATICDIR='${exec_prefix}/sbin'
9864fi
9865
9866
9867
9868# Check whether --with-usrlibdir was given.
9869if test "${with_usrlibdir+set}" = set; then :
9870 withval=$with_usrlibdir; usrlibdir=$withval
9871else
9872 usrlibdir='${prefix}/lib'
d911ec67
AK
9873fi
9874
d911ec67 9875
d911ec67 9876
f11781c5
AK
9877# Check whether --with-usrsbindir was given.
9878if test "${with_usrsbindir+set}" = set; then :
9879 withval=$with_usrsbindir; usrsbindir=$withval
9880else
9881 usrsbindir='${prefix}/sbin'
d911ec67
AK
9882fi
9883
d911ec67 9884
f11781c5 9885################################################################################
d911ec67 9886
f11781c5
AK
9887# Check whether --with-udev_prefix was given.
9888if test "${with_udev_prefix+set}" = set; then :
9889 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9890else
f11781c5 9891 udev_prefix='${exec_prefix}'
d911ec67 9892fi
d911ec67 9893
f11781c5
AK
9894
9895
9896# Check whether --with-udevdir was given.
9897if test "${with_udevdir+set}" = set; then :
9898 withval=$with_udevdir; udevdir=$withval
9899else
9900 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9901fi
f11781c5
AK
9902
9903
e587cb6a
PR
9904################################################################################
9905
9906# Check whether --with-systemdsystemunitdir was given.
9907if test "${with_systemdsystemunitdir+set}" = set; then :
9908 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9909else
767ce95a
ZK
9910 test x$PKGCONFIG_INIT != x1 && pkg_config_init
9911 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
e587cb6a
PR
9912fi
9913
9914
9915if test -n "$pkg_systemdsystemunitdir"; then
9916 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9917fi
9918
9919if test -z "$systemdsystemunitdir"; then
9920 systemdsystemunitdir='/lib/systemd/system';
9921fi
4417a8bd
PR
9922################################################################################
9923
9924# Check whether --with-tmpfilesdir was given.
9925if test "${with_tmpfilesdir+set}" = set; then :
9926 withval=$with_tmpfilesdir; tmpfilesdir=$withval
9927else
3f5cdf20 9928 tmpfilesdir='${prefix}/lib/tmpfiles.d'
4417a8bd
PR
9929fi
9930
f11781c5
AK
9931################################################################################
9932if test x$READLINE = xyes; then
9933 for ac_header in readline/readline.h readline/history.h
9934do :
9935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9938 cat >>confdefs.h <<_ACEOF
9939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9940_ACEOF
9941
9942else
f11781c5 9943 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9944fi
9945
9946done
9947
9948fi
9949
f11781c5
AK
9950if test x$CLVMD != xnone; then
9951 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
9952do :
9953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9954ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9955if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9956 cat >>confdefs.h <<_ACEOF
9957#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9958_ACEOF
ad6254c5 9959
f11781c5
AK
9960else
9961 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9962fi
7a197a62 9963
f11781c5 9964done
ad6254c5 9965
f11781c5
AK
9966 for ac_func in dup2 getmntent memmove select socket
9967do :
9968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9970if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9971 cat >>confdefs.h <<_ACEOF
9972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9973_ACEOF
ad6254c5 9974
f11781c5
AK
9975else
9976 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9977fi
f11781c5 9978done
7a197a62 9979
f11781c5
AK
9980 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9981# -lseq on Dynix/PTX, -lgen on Unixware.
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9983$as_echo_n "checking for library containing getmntent... " >&6; }
9984if test "${ac_cv_search_getmntent+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9986else
9987 ac_func_search_save_LIBS=$LIBS
9988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989/* end confdefs.h. */
ad6254c5 9990
f11781c5
AK
9991/* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997char getmntent ();
9998int
9999main ()
10000{
10001return getmntent ();
10002 ;
10003 return 0;
10004}
10005_ACEOF
10006for ac_lib in '' sun seq gen; do
10007 if test -z "$ac_lib"; then
10008 ac_res="none required"
10009 else
10010 ac_res=-l$ac_lib
10011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10012 fi
10013 if ac_fn_c_try_link "$LINENO"; then :
10014 ac_cv_search_getmntent=$ac_res
10015fi
10016rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext
10018 if test "${ac_cv_search_getmntent+set}" = set; then :
10019 break
10020fi
10021done
10022if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 10023
ad6254c5 10024else
f11781c5 10025 ac_cv_search_getmntent=no
795ca3e5 10026fi
f11781c5
AK
10027rm conftest.$ac_ext
10028LIBS=$ac_func_search_save_LIBS
10029fi
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10031$as_echo "$ac_cv_search_getmntent" >&6; }
10032ac_res=$ac_cv_search_getmntent
10033if test "$ac_res" != no; then :
10034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10035 ac_cv_func_getmntent=yes
10036
10037$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 10038
f11781c5
AK
10039else
10040 ac_cv_func_getmntent=no
8106cdd5 10041fi
f11781c5
AK
10042
10043
10044 for ac_header in sys/select.h sys/socket.h
10045do :
10046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10047ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 10049 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10051_ACEOF
795ca3e5 10052
795ca3e5
AK
10053fi
10054
ad6254c5 10055done
80992638 10056
f11781c5
AK
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10058$as_echo_n "checking types of arguments for select... " >&6; }
10059if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 10060 $as_echo_n "(cached) " >&6
83912faa 10061else
f11781c5
AK
10062 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10063 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10064 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
10066/* end confdefs.h. */
10067$ac_includes_default
f11781c5
AK
10068#ifdef HAVE_SYS_SELECT_H
10069# include <sys/select.h>
10070#endif
10071#ifdef HAVE_SYS_SOCKET_H
10072# include <sys/socket.h>
10073#endif
10074
10075int
10076main ()
10077{
10078extern int select ($ac_arg1,
10079 $ac_arg234, $ac_arg234, $ac_arg234,
10080 $ac_arg5);
10081 ;
10082 return 0;
10083}
ad6254c5 10084_ACEOF
f11781c5
AK
10085if ac_fn_c_try_compile "$LINENO"; then :
10086 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10087fi
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 done
10090 done
10091done
10092# Provide a safe default value.
10093: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 10094
ad6254c5 10095fi
f11781c5
AK
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10097$as_echo "$ac_cv_func_select_args" >&6; }
10098ac_save_IFS=$IFS; IFS=','
10099set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10100IFS=$ac_save_IFS
10101shift
7a197a62 10102
f11781c5
AK
10103cat >>confdefs.h <<_ACEOF
10104#define SELECT_TYPE_ARG1 $1
10105_ACEOF
ad6254c5 10106
f11781c5
AK
10107
10108cat >>confdefs.h <<_ACEOF
10109#define SELECT_TYPE_ARG234 ($2)
ad6254c5 10110_ACEOF
f11781c5
AK
10111
10112
10113cat >>confdefs.h <<_ACEOF
10114#define SELECT_TYPE_ARG5 ($3)
ad6254c5 10115_ACEOF
ad6254c5 10116
f11781c5
AK
10117rm -f conftest*
10118
ad6254c5 10119fi
7a197a62 10120
f11781c5
AK
10121if test x$CLUSTER != xnone; then
10122 for ac_header in sys/socket.h sys/un.h
10123do :
10124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10125ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10127 cat >>confdefs.h <<_ACEOF
10128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10129_ACEOF
ad6254c5 10130
f11781c5
AK
10131else
10132 as_fn_error $? "bailing out" "$LINENO" 5
10133fi
10134
10135done
10136
10137 for ac_func in socket
10138do :
10139 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10140if test "x$ac_cv_func_socket" = x""yes; then :
10141 cat >>confdefs.h <<_ACEOF
10142#define HAVE_SOCKET 1
10143_ACEOF
7a197a62 10144
80992638 10145else
f11781c5 10146 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 10147fi
f11781c5 10148done
83912faa 10149
69792976 10150fi
f11781c5
AK
10151
10152if test x$DMEVENTD = xyes; then
10153 for ac_header in arpa/inet.h
10154do :
10155 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10156if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 10157 cat >>confdefs.h <<_ACEOF
f11781c5 10158#define HAVE_ARPA_INET_H 1
ad6254c5 10159_ACEOF
69792976 10160
69792976 10161else
f11781c5 10162 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
10163fi
10164
ad6254c5 10165done
69792976 10166
ad6254c5
AK
10167fi
10168
f11781c5
AK
10169if test x$HAVE_LIBDL = xyes; then
10170 for ac_header in dlfcn.h
10171do :
10172 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10173if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10174 cat >>confdefs.h <<_ACEOF
10175#define HAVE_DLFCN_H 1
a5f46f6a 10176_ACEOF
a5f46f6a 10177
f11781c5
AK
10178else
10179 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10180fi
10181
f11781c5 10182done
a5f46f6a 10183
a5f46f6a
AK
10184fi
10185
f11781c5
AK
10186if test x$INTL = xyes; then
10187 for ac_header in libintl.h
10188do :
10189 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10190if test "x$ac_cv_header_libintl_h" = x""yes; then :
10191 cat >>confdefs.h <<_ACEOF
10192#define HAVE_LIBINTL_H 1
10193_ACEOF
a5f46f6a 10194
a5f46f6a 10195else
f11781c5 10196 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 10197fi
f11781c5
AK
10198
10199done
a5f46f6a
AK
10200
10201fi
f11781c5
AK
10202
10203if test x$UDEV_SYNC = xyes; then
10204 for ac_header in sys/ipc.h sys/sem.h
10205do :
10206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10209 cat >>confdefs.h <<_ACEOF
10210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10211_ACEOF
10212
10213else
f11781c5 10214 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10215fi
10216
10217done
10218
10219fi
10220
a653923f
AK
10221################################################################################
10222# Extract the first word of "modprobe", so it can be a program name with args.
10223set dummy modprobe; ac_word=$2
f11781c5 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10225$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10226if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10227 $as_echo_n "(cached) " >&6
72b2cb61
AK
10228else
10229 case $MODPROBE_CMD in
10230 [\\/]* | ?:[\\/]*)
10231 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10232 ;;
10233 *)
10234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237 IFS=$as_save_IFS
10238 test -z "$as_dir" && as_dir=.
f11781c5 10239 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10241 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10243 break 2
10244 fi
10245done
f11781c5 10246 done
7a197a62 10247IFS=$as_save_IFS
72b2cb61
AK
10248
10249 ;;
10250esac
10251fi
10252MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10253if test -n "$MODPROBE_CMD"; then
f11781c5 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10255$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10256else
f11781c5 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10258$as_echo "no" >&6; }
72b2cb61
AK
10259fi
10260
a653923f 10261
7a197a62 10262
a653923f 10263if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10264
10265cat >>confdefs.h <<_ACEOF
10266#define MODPROBE_CMD "$MODPROBE_CMD"
10267_ACEOF
10268
a653923f
AK
10269fi
10270
b5c2529b 10271
a9b601e2
ZK
10272lvm_exec_prefix=$exec_prefix
10273test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10274test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 10275LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 10276
b5c2529b 10277cat >>confdefs.h <<_ACEOF
d2c11605 10278#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
10279_ACEOF
10280
10281
10282if test "$CLVMD" != none; then
10283 clvmd_prefix=$ac_default_prefix
d2c11605 10284 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
10285 test "$prefix" != NONE && clvmd_prefix=$prefix
10286
10287cat >>confdefs.h <<_ACEOF
d2c11605 10288#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
10289_ACEOF
10290
10291fi
10292
80992638 10293################################################################################
93bd259b
AK
10294if test "$BUILD_DMEVENTD" = yes; then
10295
10296# Check whether --with-dmeventd-pidfile was given.
f11781c5 10297if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10298 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10299else
5723db01 10300 DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid"
93bd259b
AK
10301fi
10302
93bd259b 10303
71082be4
ZK
10304cat >>confdefs.h <<_ACEOF
10305#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10306_ACEOF
93bd259b 10307
71082be4 10308fi
93bd259b
AK
10309
10310if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10311
10312# Check whether --with-dmeventd-path was given.
f11781c5 10313if test "${with_dmeventd_path+set}" = set; then :
71082be4 10314 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10315else
71082be4 10316 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10317fi
10318
93bd259b 10319
71082be4
ZK
10320cat >>confdefs.h <<_ACEOF
10321#define DMEVENTD_PATH "$DMEVENTD_PATH"
10322_ACEOF
3399ae32 10323
71082be4 10324fi
3399ae32 10325
71082be4 10326################################################################################
3399ae32
AK
10327
10328# Check whether --with-default-system-dir was given.
f11781c5 10329if test "${with_default_system_dir+set}" = set; then :
71082be4 10330 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10331else
71082be4 10332 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10333fi
10334
71082be4 10335
3399ae32
AK
10336cat >>confdefs.h <<_ACEOF
10337#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10338_ACEOF
10339
10340
10341
3399ae32 10342# Check whether --with-default-archive-subdir was given.
f11781c5 10343if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10344 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10345else
71082be4 10346 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10347fi
10348
71082be4 10349
3399ae32
AK
10350cat >>confdefs.h <<_ACEOF
10351#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10352_ACEOF
10353
10354
10355
3399ae32 10356# Check whether --with-default-backup-subdir was given.
f11781c5 10357if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10358 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10359else
71082be4 10360 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10361fi
10362
71082be4 10363
3399ae32
AK
10364cat >>confdefs.h <<_ACEOF
10365#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10366_ACEOF
10367
10368
10369
3399ae32 10370# Check whether --with-default-cache-subdir was given.
f11781c5 10371if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10372 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10373else
71082be4 10374 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10375fi
10376
71082be4 10377
3399ae32
AK
10378cat >>confdefs.h <<_ACEOF
10379#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10380_ACEOF
10381
10382
10383
3399ae32 10384# Check whether --with-default-locking-dir was given.
f11781c5 10385if test "${with_default_locking_dir+set}" = set; then :
71082be4 10386 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10387else
71082be4 10388 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10389fi
10390
71082be4 10391
3399ae32
AK
10392cat >>confdefs.h <<_ACEOF
10393#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10394_ACEOF
10395
10396
fea55602
DW
10397################################################################################
10398
10399# Check whether --with-default-data-alignment was given.
f11781c5 10400if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10401 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10402else
10403 DEFAULT_DATA_ALIGNMENT=1
10404fi
10405
10406
10407cat >>confdefs.h <<_ACEOF
10408#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10409_ACEOF
10410
10411
93bd259b 10412################################################################################
f11781c5 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10414$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10415
10416# Check whether --with-interface was given.
f11781c5 10417if test "${with_interface+set}" = set; then :
71082be4 10418 withval=$with_interface; interface=$withval
93bd259b 10419else
71082be4 10420 interface=ioctl
93bd259b
AK
10421fi
10422
10423if [ "x$interface" != xioctl ];
10424then
f11781c5 10425 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10426fi
f11781c5 10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10428$as_echo "$interface" >&6; }
93bd259b
AK
10429
10430################################################################################
db8b5af9 10431DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10432
10433cat >>confdefs.h <<_ACEOF
10434#define DM_LIB_VERSION $DM_LIB_VERSION
10435_ACEOF
10436
10437
db8b5af9 10438DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10439
db8b5af9 10440LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10441
db8b5af9 10442VER=`cat "$srcdir"/VERSION`
bf456146 10443LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10444VER=`echo "$VER" | $AWK '{print $1}'`
10445LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10446VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10447LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10448LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10449LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10450LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10451
80992638 10452################################################################################
fae0c576 10453
83912faa 10454
795ca3e5
AK
10455
10456
10457
10458
10459
10460
5a52dca9 10461
8ef2b021 10462
199e490e 10463
69792976
AK
10464
10465
10466
d0191583 10467
69792976 10468
8106cdd5
AK
10469
10470
10471
10472
10473
d68a82ec 10474
036f273a 10475
7d1552c9 10476
8106cdd5 10477
0a62c911 10478
8106cdd5 10479
4a7f3eb2 10480
4922197a
AK
10481
10482
d8ac0fbc 10483
1a9ea74d 10484
8a2fc586
AK
10485
10486
d0191583 10487
93bd259b
AK
10488
10489
10490
10491
10492
d0191583
JM
10493
10494
10495
10496
10497
8a2fc586 10498
19a2c6e0 10499
f7f0854e
ZK
10500
10501
3ceb7608 10502
8ce0cbda 10503
8b1a3214 10504
ec6a6fbe
AK
10505
10506
10507
10508
e2997b73
AK
10509
10510
10511
10512
10513
10514
a946372e
AK
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
ec6a6fbe 10526
cac52ca4 10527
d3c8211f 10528
7e3fe830 10529
a5f46f6a
AK
10530
10531
10532
572fefeb 10533
90c80887 10534
3399ae32
AK
10535
10536
10537
10538
10539
90c80887 10540
bf456146 10541
e1b8a236 10542
0878503f 10543
8fea97b7 10544
54b362f9 10545
b1f08e51 10546
d1e8046f 10547
fea55602 10548
c89bc357 10549
6e5c1f75 10550
3ba4a195 10551
d2c11605
ZK
10552
10553
cdd50823 10554
426fc742
PR
10555
10556
b6d7a484
AK
10557
10558
bf09a320 10559
e587cb6a 10560
b559a1e6 10561
5723db01
PR
10562
10563
10564
4417a8bd 10565
f61cacad 10566
68f2de6d
AK
10567
10568
80992638 10569################################################################################
5723db01 10570ac_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.socket 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 10571
ad6254c5 10572cat >confcache <<\_ACEOF
795ca3e5
AK
10573# This file is a shell script that caches the results of configure
10574# tests run on this system so they can be shared between configure
ad6254c5
AK
10575# scripts and configure runs, see configure's option --config-cache.
10576# It is not useful on other systems. If it contains results you don't
10577# want to keep, you may remove or edit it.
795ca3e5 10578#
ad6254c5
AK
10579# config.status only pays attention to the cache file if you give it
10580# the --recheck option to rerun configure.
795ca3e5 10581#
ad6254c5
AK
10582# `ac_cv_env_foo' variables (set or unset) will be overridden when
10583# loading this file, other *unset* `ac_cv_foo' will be assigned the
10584# following values.
10585
10586_ACEOF
10587
795ca3e5
AK
10588# The following way of writing the cache mishandles newlines in values,
10589# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10590# So, we kill variables containing newlines.
795ca3e5
AK
10591# Ultrix sh set writes to stderr and can't be redirected directly,
10592# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10593(
10594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10595 eval ac_val=\$$ac_var
10596 case $ac_val in #(
10597 *${as_nl}*)
10598 case $ac_var in #(
f11781c5 10599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10600$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10601 esac
10602 case $ac_var in #(
10603 _ | IFS | as_nl) ;; #(
ec6a6fbe 10604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10605 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10606 esac ;;
10607 esac
10608 done
10609
ad6254c5 10610 (set) 2>&1 |
7a197a62
AK
10611 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10612 *${as_nl}ac_space=\ *)
f11781c5
AK
10613 # `set' does not quote correctly, so add quotes: double-quote
10614 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10615 sed -n \
8a2fc586
AK
10616 "s/'/'\\\\''/g;
10617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10618 ;; #(
ad6254c5
AK
10619 *)
10620 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10622 ;;
7a197a62
AK
10623 esac |
10624 sort
10625) |
ad6254c5 10626 sed '
7a197a62 10627 /^ac_cv_env_/b end
ad6254c5 10628 t clear
7a197a62 10629 :clear
ad6254c5
AK
10630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10631 t end
7a197a62
AK
10632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10633 :end' >>confcache
10634if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10635 if test -w "$cache_file"; then
10636 test "x$cache_file" != "x/dev/null" &&
f11781c5 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10638$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10639 cat confcache >$cache_file
795ca3e5 10640 else
f11781c5 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10642$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10643 fi
10644fi
10645rm -f confcache
10646
795ca3e5
AK
10647test "x$prefix" = xNONE && prefix=$ac_default_prefix
10648# Let make expand exec_prefix.
10649test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10650
72b2cb61 10651DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10652
10653ac_libobjs=
10654ac_ltlibobjs=
f11781c5 10655U=
ad6254c5
AK
10656for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10657 # 1. Remove the extension, and $U if already installed.
7a197a62 10658 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10659 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10660 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10661 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10662 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10663 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10664done
10665LIBOBJS=$ac_libobjs
80992638 10666
ad6254c5
AK
10667LTLIBOBJS=$ac_ltlibobjs
10668
10669
10670
10671: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10672ac_write_fail=0
ad6254c5
AK
10673ac_clean_files_save=$ac_clean_files
10674ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10676$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10677as_write_fail=0
10678cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10679#! $SHELL
10680# Generated by $as_me.
795ca3e5 10681# Run this file to recreate the current configuration.
795ca3e5 10682# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10683# configure, is in config.log if it exists.
10684
10685debug=false
10686ac_cs_recheck=false
10687ac_cs_silent=false
ad6254c5 10688
f11781c5
AK
10689SHELL=\${CONFIG_SHELL-$SHELL}
10690export SHELL
10691_ASEOF
10692cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10693## -------------------- ##
10694## M4sh Initialization. ##
10695## -------------------- ##
ad6254c5 10696
25fbec5b
AK
10697# Be more Bourne compatible
10698DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10699if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10700 emulate sh
10701 NULLCMD=:
ec6a6fbe 10702 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10703 # is contrary to our usage. Disable this feature.
10704 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10705 setopt NO_GLOB_SUBST
10706else
f11781c5
AK
10707 case `(set -o) 2>/dev/null` in #(
10708 *posix*) :
10709 set -o posix ;; #(
10710 *) :
10711 ;;
25fbec5b 10712esac
7a197a62 10713fi
25fbec5b
AK
10714
10715
ec6a6fbe
AK
10716as_nl='
10717'
10718export as_nl
10719# Printing a long string crashes Solaris 7 /usr/bin/printf.
10720as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10721as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10723# Prefer a ksh shell builtin over an external printf program on Solaris,
10724# but without wasting forks for bash or zsh.
10725if test -z "$BASH_VERSION$ZSH_VERSION" \
10726 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10727 as_echo='print -r --'
10728 as_echo_n='print -rn --'
10729elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10730 as_echo='printf %s\n'
10731 as_echo_n='printf %s'
10732else
10733 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10734 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10735 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10736 else
ec6a6fbe
AK
10737 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10738 as_echo_n_body='eval
10739 arg=$1;
f11781c5 10740 case $arg in #(
ec6a6fbe
AK
10741 *"$as_nl"*)
10742 expr "X$arg" : "X\\(.*\\)$as_nl";
10743 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10744 esac;
10745 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10746 '
10747 export as_echo_n_body
10748 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10749 fi
ec6a6fbe
AK
10750 export as_echo_body
10751 as_echo='sh -c $as_echo_body as_echo'
10752fi
10753
10754# The user is always right.
10755if test "${PATH_SEPARATOR+set}" != set; then
10756 PATH_SEPARATOR=:
10757 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10758 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10759 PATH_SEPARATOR=';'
10760 }
ad6254c5
AK
10761fi
10762
ad6254c5 10763
7a197a62
AK
10764# IFS
10765# We need space, tab and new line, in precisely that order. Quoting is
10766# there to prevent editors from complaining about space-tab.
10767# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10768# splitting by setting IFS to empty value.)
7a197a62
AK
10769IFS=" "" $as_nl"
10770
10771# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10772case $0 in #((
7a197a62
AK
10773 *[\\/]* ) as_myself=$0 ;;
10774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775for as_dir in $PATH
10776do
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
f11781c5
AK
10779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10780 done
7a197a62
AK
10781IFS=$as_save_IFS
10782
10783 ;;
10784esac
10785# We did not find ourselves, most probably we were run as `sh COMMAND'
10786# in which case we are not to be found in the path.
10787if test "x$as_myself" = x; then
10788 as_myself=$0
10789fi
10790if test ! -f "$as_myself"; then
ec6a6fbe 10791 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10792 exit 1
7a197a62
AK
10793fi
10794
f11781c5
AK
10795# Unset variables that we do not need and which cause bugs (e.g. in
10796# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10797# suppresses any "Segmentation fault" message there. '((' could
10798# trigger a bug in pdksh 5.2.14.
10799for as_var in BASH_ENV ENV MAIL MAILPATH
10800do eval test x\${$as_var+set} = xset \
10801 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10802done
ad6254c5
AK
10803PS1='$ '
10804PS2='> '
10805PS4='+ '
10806
10807# NLS nuisances.
ec6a6fbe
AK
10808LC_ALL=C
10809export LC_ALL
10810LANGUAGE=C
10811export LANGUAGE
8106cdd5 10812
f11781c5
AK
10813# CDPATH.
10814(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10815
10816
10817# as_fn_error STATUS ERROR [LINENO LOG_FD]
10818# ----------------------------------------
10819# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10820# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10821# script with STATUS, using 1 if that was 0.
10822as_fn_error ()
10823{
10824 as_status=$1; test $as_status -eq 0 && as_status=1
10825 if test "$4"; then
10826 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10828 fi
10829 $as_echo "$as_me: error: $2" >&2
10830 as_fn_exit $as_status
10831} # as_fn_error
10832
10833
10834# as_fn_set_status STATUS
10835# -----------------------
10836# Set $? to STATUS, without forking.
10837as_fn_set_status ()
10838{
10839 return $1
10840} # as_fn_set_status
10841
10842# as_fn_exit STATUS
10843# -----------------
10844# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10845as_fn_exit ()
10846{
10847 set +e
10848 as_fn_set_status $1
10849 exit $1
10850} # as_fn_exit
10851
10852# as_fn_unset VAR
10853# ---------------
10854# Portably unset VAR.
10855as_fn_unset ()
10856{
10857 { eval $1=; unset $1;}
10858}
10859as_unset=as_fn_unset
10860# as_fn_append VAR VALUE
10861# ----------------------
10862# Append the text in VALUE to the end of the definition contained in VAR. Take
10863# advantage of any shell optimizations that allow amortized linear growth over
10864# repeated appends, instead of the typical quadratic growth present in naive
10865# implementations.
10866if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10867 eval 'as_fn_append ()
10868 {
10869 eval $1+=\$2
10870 }'
10871else
10872 as_fn_append ()
10873 {
10874 eval $1=\$$1\$2
10875 }
10876fi # as_fn_append
10877
10878# as_fn_arith ARG...
10879# ------------------
10880# Perform arithmetic evaluation on the ARGs, and store the result in the
10881# global $as_val. Take advantage of shells that can avoid forks. The arguments
10882# must be portable across $(()) and expr.
10883if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10884 eval 'as_fn_arith ()
10885 {
10886 as_val=$(( $* ))
10887 }'
10888else
10889 as_fn_arith ()
10890 {
10891 as_val=`expr "$@" || test $? -eq 1`
10892 }
10893fi # as_fn_arith
10894
10895
7a197a62
AK
10896if expr a : '\(a\)' >/dev/null 2>&1 &&
10897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10898 as_expr=expr
10899else
10900 as_expr=false
10901fi
8106cdd5 10902
7a197a62 10903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10904 as_basename=basename
10905else
10906 as_basename=false
10907fi
10908
f11781c5
AK
10909if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10910 as_dirname=dirname
10911else
10912 as_dirname=false
10913fi
ad6254c5 10914
7a197a62 10915as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10916$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10917 X"$0" : 'X\(//\)$' \| \
7a197a62 10918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10919$as_echo X/"$0" |
7a197a62
AK
10920 sed '/^.*\/\([^/][^/]*\)\/*$/{
10921 s//\1/
10922 q
10923 }
10924 /^X\/\(\/\/\)$/{
10925 s//\1/
10926 q
10927 }
10928 /^X\/\(\/\).*/{
10929 s//\1/
10930 q
10931 }
10932 s/.*/./; q'`
ad6254c5 10933
f11781c5
AK
10934# Avoid depending upon Character Ranges.
10935as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10936as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10937as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10938as_cr_digits='0123456789'
10939as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10940
10941ECHO_C= ECHO_N= ECHO_T=
f11781c5 10942case `echo -n x` in #(((((
7a197a62 10943-n*)
f11781c5 10944 case `echo 'xy\c'` in
7a197a62 10945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10946 xy) ECHO_C='\c';;
10947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10948 ECHO_T=' ';;
7a197a62
AK
10949 esac;;
10950*)
10951 ECHO_N='-n';;
ad6254c5 10952esac
80992638 10953
ad6254c5 10954rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10955if test -d conf$$.dir; then
10956 rm -f conf$$.dir/conf$$.file
10957else
10958 rm -f conf$$.dir
ec6a6fbe
AK
10959 mkdir conf$$.dir 2>/dev/null
10960fi
10961if (echo >conf$$.file) 2>/dev/null; then
10962 if ln -s conf$$.file conf$$ 2>/dev/null; then
10963 as_ln_s='ln -s'
10964 # ... but there are two gotchas:
10965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10967 # In both cases, we have to default to `cp -p'.
10968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10969 as_ln_s='cp -p'
10970 elif ln conf$$.file conf$$ 2>/dev/null; then
10971 as_ln_s=ln
10972 else
ad6254c5 10973 as_ln_s='cp -p'
ec6a6fbe 10974 fi
ad6254c5
AK
10975else
10976 as_ln_s='cp -p'
10977fi
7a197a62
AK
10978rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10979rmdir conf$$.dir 2>/dev/null
8106cdd5 10980
f11781c5
AK
10981
10982# as_fn_mkdir_p
10983# -------------
10984# Create "$as_dir" as a directory, including parents if necessary.
10985as_fn_mkdir_p ()
10986{
10987
10988 case $as_dir in #(
10989 -*) as_dir=./$as_dir;;
10990 esac
10991 test -d "$as_dir" || eval $as_mkdir_p || {
10992 as_dirs=
10993 while :; do
10994 case $as_dir in #(
10995 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10996 *) as_qdir=$as_dir;;
10997 esac
10998 as_dirs="'$as_qdir' $as_dirs"
10999 as_dir=`$as_dirname -- "$as_dir" ||
11000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11001 X"$as_dir" : 'X\(//\)[^/]' \| \
11002 X"$as_dir" : 'X\(//\)$' \| \
11003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11004$as_echo X"$as_dir" |
11005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11006 s//\1/
11007 q
11008 }
11009 /^X\(\/\/\)[^/].*/{
11010 s//\1/
11011 q
11012 }
11013 /^X\(\/\/\)$/{
11014 s//\1/
11015 q
11016 }
11017 /^X\(\/\).*/{
11018 s//\1/
11019 q
11020 }
11021 s/.*/./; q'`
11022 test -d "$as_dir" && break
11023 done
11024 test -z "$as_dirs" || eval "mkdir $as_dirs"
11025 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11026
11027
11028} # as_fn_mkdir_p
ad6254c5 11029if mkdir -p . 2>/dev/null; then
f11781c5 11030 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 11031else
8a2fc586 11032 test -d ./-p && rmdir ./-p
ad6254c5
AK
11033 as_mkdir_p=false
11034fi
11035
25fbec5b
AK
11036if test -x / >/dev/null 2>&1; then
11037 as_test_x='test -x'
7a197a62 11038else
25fbec5b
AK
11039 if ls -dL / >/dev/null 2>&1; then
11040 as_ls_L_option=L
11041 else
11042 as_ls_L_option=
11043 fi
11044 as_test_x='
11045 eval sh -c '\''
11046 if test -d "$1"; then
ec6a6fbe 11047 test -d "$1/.";
25fbec5b 11048 else
f11781c5 11049 case $1 in #(
ec6a6fbe 11050 -*)set "./$1";;
25fbec5b 11051 esac;
f11781c5 11052 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
11053 ???[sx]*):;;*)false;;esac;fi
11054 '\'' sh
11055 '
7a197a62 11056fi
25fbec5b 11057as_executable_p=$as_test_x
ad6254c5
AK
11058
11059# Sed expression to map a string onto a valid CPP name.
8a2fc586 11060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11061
11062# Sed expression to map a string onto a valid variable name.
8a2fc586 11063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11064
11065
ad6254c5 11066exec 6>&1
f11781c5
AK
11067## ----------------------------------- ##
11068## Main body of $CONFIG_STATUS script. ##
11069## ----------------------------------- ##
11070_ASEOF
11071test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 11072
f11781c5
AK
11073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11074# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 11075# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11076# values after options handling.
11077ac_log="
ad6254c5 11078This file was extended by $as_me, which was
f11781c5 11079generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
11080
11081 CONFIG_FILES = $CONFIG_FILES
11082 CONFIG_HEADERS = $CONFIG_HEADERS
11083 CONFIG_LINKS = $CONFIG_LINKS
11084 CONFIG_COMMANDS = $CONFIG_COMMANDS
11085 $ $0 $@
11086
7a197a62
AK
11087on `(hostname || uname -n) 2>/dev/null | sed 1q`
11088"
11089
ad6254c5
AK
11090_ACEOF
11091
ec6a6fbe
AK
11092case $ac_config_files in *"
11093"*) set x $ac_config_files; shift; ac_config_files=$*;;
11094esac
11095
11096case $ac_config_headers in *"
11097"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11098esac
11099
11100
11101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11102# Files that config.status was made for.
68f2de6d
AK
11103config_files="$ac_config_files"
11104config_headers="$ac_config_headers"
ad6254c5 11105
7a197a62 11106_ACEOF
ad6254c5 11107
ec6a6fbe 11108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 11109ac_cs_usage="\
f11781c5
AK
11110\`$as_me' instantiates files and other configuration actions
11111from templates according to the current configuration. Unless the files
11112and actions are specified as TAGs, all are instantiated by default.
ad6254c5 11113
f11781c5 11114Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
11115
11116 -h, --help print this help, then exit
25fbec5b 11117 -V, --version print version number and configuration settings, then exit
f11781c5 11118 --config print configuration, then exit
ec6a6fbe
AK
11119 -q, --quiet, --silent
11120 do not print progress messages
ad6254c5
AK
11121 -d, --debug don't remove temporary files
11122 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
11123 --file=FILE[:TEMPLATE]
11124 instantiate the configuration file FILE
11125 --header=FILE[:TEMPLATE]
11126 instantiate the configuration header FILE
ad6254c5
AK
11127
11128Configuration files:
11129$config_files
11130
72b2cb61
AK
11131Configuration headers:
11132$config_headers
11133
f11781c5 11134Report bugs to the package provider."
ad6254c5 11135
7a197a62 11136_ACEOF
ec6a6fbe 11137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 11138ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
11139ac_cs_version="\\
11140config.status
f11781c5
AK
11141configured by $0, generated by GNU Autoconf 2.66,
11142 with options \\"\$ac_cs_config\\"
ad6254c5 11143
f11781c5 11144Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
11145This config.status script is free software; the Free Software Foundation
11146gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11147
11148ac_pwd='$ac_pwd'
11149srcdir='$srcdir'
11150INSTALL='$INSTALL'
fddafd51 11151MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
11152AWK='$AWK'
11153test -n "\$AWK" || AWK=awk
ad6254c5
AK
11154_ACEOF
11155
ec6a6fbe
AK
11156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11157# The default lists apply if the user does not specify any file.
ad6254c5
AK
11158ac_need_defaults=:
11159while test $# != 0
11160do
11161 case $1 in
11162 --*=*)
7a197a62
AK
11163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11165 ac_shift=:
11166 ;;
7a197a62 11167 *)
ad6254c5
AK
11168 ac_option=$1
11169 ac_optarg=$2
11170 ac_shift=shift
11171 ;;
ad6254c5
AK
11172 esac
11173
11174 case $ac_option in
11175 # Handling of the options.
ad6254c5
AK
11176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11177 ac_cs_recheck=: ;;
7a197a62 11178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 11179 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
11180 --config | --confi | --conf | --con | --co | --c )
11181 $as_echo "$ac_cs_config"; exit ;;
7a197a62 11182 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11183 debug=: ;;
11184 --file | --fil | --fi | --f )
11185 $ac_shift
ec6a6fbe
AK
11186 case $ac_optarg in
11187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11188 esac
f11781c5 11189 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
11190 ac_need_defaults=false;;
11191 --header | --heade | --head | --hea )
11192 $ac_shift
ec6a6fbe
AK
11193 case $ac_optarg in
11194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11195 esac
f11781c5 11196 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 11197 ac_need_defaults=false;;
7a197a62
AK
11198 --he | --h)
11199 # Conflict between --help and --header
f11781c5
AK
11200 as_fn_error $? "ambiguous option: \`$1'
11201Try \`$0 --help' for more information.";;
7a197a62 11202 --help | --hel | -h )
ec6a6fbe 11203 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11206 ac_cs_silent=: ;;
11207
11208 # This is an error.
f11781c5
AK
11209 -*) as_fn_error $? "unrecognized option: \`$1'
11210Try \`$0 --help' for more information." ;;
ad6254c5 11211
f11781c5 11212 *) as_fn_append ac_config_targets " $1"
7a197a62 11213 ac_need_defaults=false ;;
ad6254c5
AK
11214
11215 esac
11216 shift
11217done
11218
11219ac_configure_extra_args=
11220
11221if $ac_cs_silent; then
11222 exec 6>/dev/null
11223 ac_configure_extra_args="$ac_configure_extra_args --silent"
11224fi
11225
11226_ACEOF
ec6a6fbe 11227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11228if \$ac_cs_recheck; then
ec6a6fbe
AK
11229 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11230 shift
11231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11232 CONFIG_SHELL='$SHELL'
7a197a62 11233 export CONFIG_SHELL
ec6a6fbe 11234 exec "\$@"
ad6254c5
AK
11235fi
11236
11237_ACEOF
ec6a6fbe 11238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11239exec 5>>config.log
11240{
11241 echo
11242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11243## Running $as_me. ##
11244_ASBOX
ec6a6fbe 11245 $as_echo "$ac_log"
7a197a62 11246} >&5
ad6254c5 11247
7a197a62 11248_ACEOF
ec6a6fbe 11249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11250_ACEOF
ad6254c5 11251
ec6a6fbe 11252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11253
11254# Handling of arguments.
ad6254c5
AK
11255for ac_config_target in $ac_config_targets
11256do
7a197a62
AK
11257 case $ac_config_target in
11258 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11259 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11260 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11261 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11262 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11263 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11264 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11265 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11266 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11267 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 11268 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
11269 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11270 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 11271 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
cdd50823 11272 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 11273 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11274 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11275 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11276 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11277 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11278 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11279 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11280 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11281 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11282 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11283 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 11284 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 11285 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 11286 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
7126d8c2
AK
11287 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
11288 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
11289 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
93bd259b
AK
11290 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11291 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11292 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11293 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11294 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11295 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11296 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11297 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
a30491b2 11298 "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
dac3c36f 11299 "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
da532741 11300 "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
595eaf92 11301 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
5723db01 11302 "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
6e5c1f75
PR
11303 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11304 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
4417a8bd 11305 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
7a197a62 11306 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11307 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11308 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 11309 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 11310 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11311 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11312 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11313 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11314 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11315
f11781c5 11316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11317 esac
ad6254c5
AK
11318done
11319
7a197a62 11320
ad6254c5
AK
11321# If the user did not use the arguments to specify the items to instantiate,
11322# then the envvar interface is used. Set only those that are not.
11323# We use the long form for the default assignment because of an extremely
11324# bizarre bug on SunOS 4.1.3.
11325if $ac_need_defaults; then
11326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11328fi
11329
11330# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11331# simply because there is no reason against having it here, and in addition,
ad6254c5 11332# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11333# Hook for its removal unless debugging.
11334# Note that there is a small window in which the directory will not be cleaned:
11335# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11336$debug ||
11337{
7a197a62
AK
11338 tmp=
11339 trap 'exit_status=$?
11340 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11341' 0
f11781c5 11342 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11343}
ad6254c5
AK
11344# Create a (secure) tmp directory for tmp files.
11345
11346{
7a197a62 11347 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11348 test -n "$tmp" && test -d "$tmp"
11349} ||
11350{
7a197a62
AK
11351 tmp=./conf$$-$RANDOM
11352 (umask 077 && mkdir "$tmp")
f11781c5 11353} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11354
ec6a6fbe
AK
11355# Set up the scripts for CONFIG_FILES section.
11356# No need to generate them if there are no CONFIG_FILES.
11357# This happens for instance with `./config.status config.h'.
1995c9ff 11358if test -n "$CONFIG_FILES"; then
7a197a62 11359
68f2de6d 11360
f11781c5
AK
11361ac_cr=`echo X | tr X '\015'`
11362# On cygwin, bash can eat \r inside `` if the user requested igncr.
11363# But we know of no other shell where ac_cr would be empty at this
11364# point, so we can use a bashism as a fallback.
11365if test "x$ac_cr" = x; then
11366 eval ac_cr=\$\'\\r\'
11367fi
ec6a6fbe
AK
11368ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11369if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11370 ac_cs_awk_cr='\\r'
11371else
11372 ac_cs_awk_cr=$ac_cr
1995c9ff 11373fi
7a197a62 11374
ec6a6fbe 11375echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11376_ACEOF
7a197a62 11377
8106cdd5 11378
ec6a6fbe
AK
11379{
11380 echo "cat >conf$$subs.awk <<_ACEOF" &&
11381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11382 echo "_ACEOF"
11383} >conf$$subs.sh ||
f11781c5
AK
11384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11385ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11386ac_delim='%!_!# '
11387for ac_last_try in false false false false false :; do
ec6a6fbe 11388 . ./conf$$subs.sh ||
f11781c5 11389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11390
11391 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11392 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11393 break
11394 elif $ac_last_try; then
f11781c5 11395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11396 else
11397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11398 fi
11399done
ec6a6fbe
AK
11400rm -f conf$$subs.sh
11401
11402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11403cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11404_ACEOF
11405sed -n '
11406h
11407s/^/S["/; s/!.*/"]=/
11408p
11409g
11410s/^[^!]*!//
11411:repl
11412t repl
11413s/'"$ac_delim"'$//
11414t delim
11415:nl
11416h
f11781c5 11417s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11418t more1
11419s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11420p
11421n
11422b repl
11423:more1
11424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11425p
11426g
11427s/.\{148\}//
11428t nl
11429:delim
11430h
f11781c5 11431s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11432t more2
11433s/["\\]/\\&/g; s/^/"/; s/$/"/
11434p
11435b
11436:more2
11437s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11438p
11439g
11440s/.\{148\}//
11441t delim
11442' <conf$$subs.awk | sed '
11443/^[^""]/{
11444 N
11445 s/\n//
11446}
11447' >>$CONFIG_STATUS || ac_write_fail=1
11448rm -f conf$$subs.awk
11449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11450_ACAWK
11451cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11452 for (key in S) S_is_set[key] = 1
11453 FS = "\a"
7a197a62 11454
ec6a6fbe
AK
11455}
11456{
11457 line = $ 0
11458 nfields = split(line, field, "@")
11459 substed = 0
11460 len = length(field[1])
11461 for (i = 2; i < nfields; i++) {
11462 key = field[i]
11463 keylen = length(key)
11464 if (S_is_set[key]) {
11465 value = S[key]
11466 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11467 len += length(value) + length(field[++i])
11468 substed = 1
11469 } else
11470 len += 1 + keylen
11471 }
11472
11473 print line
11474}
fddafd51 11475
ec6a6fbe 11476_ACAWK
1995c9ff 11477_ACEOF
ec6a6fbe
AK
11478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11479if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11481else
11482 cat
11483fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11484 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11485_ACEOF
11486
f11781c5
AK
11487# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11488# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11489# trailing colons and then remove the whole line if VPATH becomes empty
11490# (actually we leave an empty line to preserve line numbers).
11491if test "x$srcdir" = x.; then
f11781c5
AK
11492 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11493h
11494s///
11495s/^/:/
11496s/[ ]*$/:/
11497s/:\$(srcdir):/:/g
11498s/:\${srcdir}:/:/g
11499s/:@srcdir@:/:/g
11500s/^:*//
7a197a62 11501s/:*$//
f11781c5
AK
11502x
11503s/\(=[ ]*\).*/\1/
11504G
11505s/\n//
7a197a62
AK
11506s/^[^=]*=[ ]*$//
11507}'
11508fi
11509
ec6a6fbe 11510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11511fi # test -n "$CONFIG_FILES"
11512
ec6a6fbe
AK
11513# Set up the scripts for CONFIG_HEADERS section.
11514# No need to generate them if there are no CONFIG_HEADERS.
11515# This happens for instance with `./config.status Makefile'.
11516if test -n "$CONFIG_HEADERS"; then
11517cat >"$tmp/defines.awk" <<\_ACAWK ||
11518BEGIN {
11519_ACEOF
11520
11521# Transform confdefs.h into an awk script `defines.awk', embedded as
11522# here-document in config.status, that substitutes the proper values into
11523# config.h.in to produce config.h.
11524
11525# Create a delimiter string that does not exist in confdefs.h, to ease
11526# handling of long lines.
11527ac_delim='%!_!# '
11528for ac_last_try in false false :; do
11529 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11530 if test -z "$ac_t"; then
11531 break
11532 elif $ac_last_try; then
f11781c5 11533 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11534 else
11535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11536 fi
11537done
11538
11539# For the awk script, D is an array of macro values keyed by name,
11540# likewise P contains macro parameters if any. Preserve backslash
11541# newline sequences.
11542
11543ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11544sed -n '
11545s/.\{148\}/&'"$ac_delim"'/g
11546t rset
11547:rset
11548s/^[ ]*#[ ]*define[ ][ ]*/ /
11549t def
11550d
11551:def
11552s/\\$//
11553t bsnl
11554s/["\\]/\\&/g
11555s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11556D["\1"]=" \3"/p
11557s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11558d
11559:bsnl
11560s/["\\]/\\&/g
11561s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11562D["\1"]=" \3\\\\\\n"\\/p
11563t cont
11564s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11565t cont
11566d
11567:cont
11568n
11569s/.\{148\}/&'"$ac_delim"'/g
11570t clear
11571:clear
11572s/\\$//
11573t bsnlc
11574s/["\\]/\\&/g; s/^/"/; s/$/"/p
11575d
11576:bsnlc
11577s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11578b cont
11579' <confdefs.h | sed '
11580s/'"$ac_delim"'/"\\\
11581"/g' >>$CONFIG_STATUS || ac_write_fail=1
11582
11583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 for (key in D) D_is_set[key] = 1
11585 FS = "\a"
11586}
11587/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11588 line = \$ 0
11589 split(line, arg, " ")
11590 if (arg[1] == "#") {
11591 defundef = arg[2]
11592 mac1 = arg[3]
11593 } else {
11594 defundef = substr(arg[1], 2)
11595 mac1 = arg[2]
11596 }
11597 split(mac1, mac2, "(") #)
11598 macro = mac2[1]
11599 prefix = substr(line, 1, index(line, defundef) - 1)
11600 if (D_is_set[macro]) {
11601 # Preserve the white space surrounding the "#".
11602 print prefix "define", macro P[macro] D[macro]
11603 next
11604 } else {
11605 # Replace #undef with comments. This is necessary, for example,
11606 # in the case of _POSIX_SOURCE, which is predefined and required
11607 # on some systems where configure will not decide to define it.
11608 if (defundef == "undef") {
11609 print "/*", prefix defundef, macro, "*/"
11610 next
11611 }
11612 }
11613}
11614{ print }
11615_ACAWK
11616_ACEOF
11617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11618 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11619fi # test -n "$CONFIG_HEADERS"
11620
7a197a62 11621
ec6a6fbe
AK
11622eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11623shift
11624for ac_tag
7a197a62
AK
11625do
11626 case $ac_tag in
11627 :[FHLC]) ac_mode=$ac_tag; continue;;
11628 esac
11629 case $ac_mode$ac_tag in
11630 :[FHL]*:*);;
f11781c5 11631 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11632 :[FH]-) ac_tag=-:-;;
11633 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11634 esac
11635 ac_save_IFS=$IFS
11636 IFS=:
11637 set x $ac_tag
11638 IFS=$ac_save_IFS
11639 shift
11640 ac_file=$1
11641 shift
11642
11643 case $ac_mode in
11644 :L) ac_source=$1;;
11645 :[FH])
11646 ac_file_inputs=
11647 for ac_f
11648 do
11649 case $ac_f in
11650 -) ac_f="$tmp/stdin";;
11651 *) # Look for the file first in the build tree, then in the source tree
11652 # (if the path is not absolute). The absolute path cannot be DOS-style,
11653 # because $ac_f cannot contain `:'.
11654 test -f "$ac_f" ||
11655 case $ac_f in
11656 [\\/$]*) false;;
11657 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11658 esac ||
f11781c5 11659 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11660 esac
ec6a6fbe 11661 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11662 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11663 done
11664
11665 # Let's still pretend it is `configure' which instantiates (i.e., don't
11666 # use $as_me), people would be surprised to read:
11667 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11668 configure_input='Generated from '`
11669 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11670 `' by configure.'
7a197a62
AK
11671 if test x"$ac_file" != x-; then
11672 configure_input="$ac_file. $configure_input"
f11781c5 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11674$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11675 fi
ec6a6fbe
AK
11676 # Neutralize special characters interpreted by sed in replacement strings.
11677 case $configure_input in #(
11678 *\&* | *\|* | *\\* )
11679 ac_sed_conf_input=`$as_echo "$configure_input" |
11680 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11681 *) ac_sed_conf_input=$configure_input;;
11682 esac
7a197a62
AK
11683
11684 case $ac_tag in
ec6a6fbe 11685 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11687 esac
11688 ;;
80992638 11689 esac
8106cdd5 11690
7a197a62 11691 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11692$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11693 X"$ac_file" : 'X\(//\)[^/]' \| \
11694 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11696$as_echo X"$ac_file" |
7a197a62
AK
11697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11698 s//\1/
11699 q
11700 }
11701 /^X\(\/\/\)[^/].*/{
11702 s//\1/
11703 q
11704 }
11705 /^X\(\/\/\)$/{
11706 s//\1/
11707 q
11708 }
11709 /^X\(\/\).*/{
11710 s//\1/
11711 q
11712 }
11713 s/.*/./; q'`
f11781c5 11714 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11715 ac_builddir=.
11716
7a197a62
AK
11717case "$ac_dir" in
11718.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11719*)
ec6a6fbe 11720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11721 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11723 case $ac_top_builddir_sub in
11724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11726 esac ;;
11727esac
11728ac_abs_top_builddir=$ac_pwd
11729ac_abs_builddir=$ac_pwd$ac_dir_suffix
11730# for backward compatibility:
11731ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11732
11733case $srcdir in
7a197a62 11734 .) # We are building in place.
ad6254c5 11735 ac_srcdir=.
7a197a62
AK
11736 ac_top_srcdir=$ac_top_builddir_sub
11737 ac_abs_top_srcdir=$ac_pwd ;;
11738 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11739 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11740 ac_top_srcdir=$srcdir
11741 ac_abs_top_srcdir=$srcdir ;;
11742 *) # Relative name.
11743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11744 ac_top_srcdir=$ac_top_build_prefix$srcdir
11745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11746esac
7a197a62 11747ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11748
ad6254c5 11749
7a197a62
AK
11750 case $ac_mode in
11751 :F)
11752 #
11753 # CONFIG_FILE
11754 #
ad6254c5
AK
11755
11756 case $INSTALL in
11757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11758 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11759 esac
fddafd51
ZK
11760 ac_MKDIR_P=$MKDIR_P
11761 case $MKDIR_P in
11762 [\\/$]* | ?:[\\/]* ) ;;
11763 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11764 esac
7a197a62 11765_ACEOF
795ca3e5 11766
ec6a6fbe 11767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11768# If the template does not know about datarootdir, expand it.
11769# FIXME: This hack should be removed a few years after 2.60.
11770ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11771ac_sed_dataroot='
11772/datarootdir/ {
7a197a62
AK
11773 p
11774 q
11775}
11776/@datadir@/p
11777/@docdir@/p
11778/@infodir@/p
11779/@localedir@/p
f11781c5 11780/@mandir@/p'
ec6a6fbe 11781case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11782*datarootdir*) ac_datarootdir_seen=yes;;
11783*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11785$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11786_ACEOF
ec6a6fbe 11787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11788 ac_datarootdir_hack='
11789 s&@datadir@&$datadir&g
11790 s&@docdir@&$docdir&g
11791 s&@infodir@&$infodir&g
11792 s&@localedir@&$localedir&g
11793 s&@mandir@&$mandir&g
f11781c5 11794 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11795esac
11796_ACEOF
11797
11798# Neutralize VPATH when `$srcdir' = `.'.
11799# Shell code in configure.ac might set extrasub.
11800# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11802ac_sed_extra="$ac_vpsub
ad6254c5
AK
11803$extrasub
11804_ACEOF
ec6a6fbe 11805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11806:t
11807/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11808s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11809s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11810s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11811s&@srcdir@&$ac_srcdir&;t t
11812s&@abs_srcdir@&$ac_abs_srcdir&;t t
11813s&@top_srcdir@&$ac_top_srcdir&;t t
11814s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11815s&@builddir@&$ac_builddir&;t t
11816s&@abs_builddir@&$ac_abs_builddir&;t t
11817s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11818s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11819s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11820$ac_datarootdir_hack
ec6a6fbe
AK
11821"
11822eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11824
11825test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11826 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11829which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11830$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11831which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11832
11833 rm -f "$tmp/stdin"
72b2cb61 11834 case $ac_file in
ec6a6fbe
AK
11835 -) cat "$tmp/out" && rm -f "$tmp/out";;
11836 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11837 esac \
f11781c5 11838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11839 ;;
11840 :H)
11841 #
11842 # CONFIG_HEADER
11843 #
72b2cb61 11844 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11845 {
11846 $as_echo "/* $configure_input */" \
11847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11848 } >"$tmp/config.h" \
f11781c5 11849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11850 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11852$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11853 else
ec6a6fbe
AK
11854 rm -f "$ac_file"
11855 mv "$tmp/config.h" "$ac_file" \
f11781c5 11856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11857 fi
11858 else
ec6a6fbe
AK
11859 $as_echo "/* $configure_input */" \
11860 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11861 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11862 fi
7a197a62
AK
11863 ;;
11864
11865
11866 esac
11867
11868done # for ac_tag
795ca3e5 11869
795ca3e5 11870
f11781c5 11871as_fn_exit 0
ad6254c5 11872_ACEOF
ad6254c5
AK
11873ac_clean_files=$ac_clean_files_save
11874
ec6a6fbe 11875test $ac_write_fail = 0 ||
f11781c5 11876 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11877
ad6254c5
AK
11878
11879# configure is writing to config.log, and then calls config.status.
11880# config.status does its own redirection, appending to config.log.
11881# Unfortunately, on DOS this fails, as config.log is still kept open
11882# by configure, so config.status won't be able to write to it; its
11883# output is simply discarded. So we exec the FD to /dev/null,
11884# effectively closing config.log, so it can be properly (re)opened and
11885# appended to by config.status. When coming back to configure, we
11886# need to make the FD available again.
11887if test "$no_create" != yes; then
11888 ac_cs_success=:
11889 ac_config_status_args=
11890 test "$silent" = yes &&
11891 ac_config_status_args="$ac_config_status_args --quiet"
11892 exec 5>/dev/null
11893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11894 exec 5>>config.log
11895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11896 # would make configure fail if this is the last instruction.
f11781c5 11897 $ac_cs_success || as_fn_exit 1
ad6254c5 11898fi
ec6a6fbe 11899if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11901$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11902fi
795ca3e5 11903
2dc95e1c
AK
11904
11905if test x$ODIRECT != xyes; then
f11781c5 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11907$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11908fi
This page took 1.818271 seconds and 5 git commands to generate.