]> sourceware.org Git - lvm2.git/blame - configure
Tidy the shell tests into their own subdir. We now have:
[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
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
3ba4a195 611THIN
54b362f9 612TESTING
ec6a6fbe
AK
613STATIC_LINK
614STATICDIR
615SNAPSHOTS
f7f0854e 616SELINUX_PC
e1b8a236 617SELINUX_LIBS
cac52ca4 618REPLICATORS
539f4a77 619READLINE_LIBS
cac52ca4 620RAID
f30875db 621PTHREAD_LIBS
ec6a6fbe
AK
622POOL
623PKGCONFIG
606d0858 624OCFDIR
37ddf259 625OCF
ec6a6fbe
AK
626MIRRORS
627LVM_RELEASE_DATE
628LVM_RELEASE
d2c11605 629LVM_PATH
ec6a6fbe
AK
630LVM_PATCHLEVEL
631LVM_MINOR
632LVM_MAJOR
bf456146 633LVM_LIBAPI
ec6a6fbe 634LVM_VERSION
ec6a6fbe
AK
635LVM1_FALLBACK
636LVM1
637LOCALEDIR
638LIB_SUFFIX
639LDDEPS
640JOBS
641INTL_PACKAGE
642INTL
ec6a6fbe
AK
643HAVE_REALTIME
644HAVE_LIBDL
ec6a6fbe 645FSADM
bf09a320 646ELDFLAGS
ec6a6fbe
AK
647DM_LIB_PATCHLEVEL
648DM_LIB_VERSION
649DM_IOCTLS
650DM_DEVICE_UID
651DM_DEVICE_MODE
652DM_DEVICE_GID
653DM_COMPAT
d1e8046f 654DMEVENTD_PATH
ec6a6fbe 655DMEVENTD
19a2c6e0 656DL_LIBS
ec6a6fbe 657DEVMAPPER
b1f08e51 658DEFAULT_RUN_DIR
3399ae32 659DEFAULT_LOCK_DIR
fea55602 660DEFAULT_DATA_ALIGNMENT
3399ae32
AK
661DEFAULT_CACHE_SUBDIR
662DEFAULT_BACKUP_SUBDIR
663DEFAULT_ARCHIVE_SUBDIR
664DEFAULT_SYS_DIR
ec6a6fbe
AK
665DEBUG
666COPTIMISE_FLAG
e2997b73 667CONFDIR
ec6a6fbe 668CMDLIB
d2c11605 669CLVMD_PATH
c89bc357 670CLVMD_CMANAGERS
ec6a6fbe
AK
671CLVMD
672CLUSTER
673CLDWHOLEARCHIVE
674CLDNOWHOLEARCHIVE
675CLDFLAGS
cdd50823 676BUILD_LVMETAD
ec6a6fbe 677BUILD_DMEVENTD
66fd4529 678BUILD_CMIRRORD
572fefeb 679APPLIB
ec6a6fbe
AK
680MODPROBE_CMD
681MSGFMT
682LVM2CMD_LIB
572fefeb 683LVM2APP_LIB
d93275eb
PR
684UDEV_LIBS
685UDEV_CFLAGS
54b362f9
AK
686VALGRIND
687RUBY19
fd4728e1 688GENPNG
ec6a6fbe
AK
689GENHTML
690LCOV
90c80887
AK
691SACKPT_LIBS
692SACKPT_CFLAGS
a946372e
AK
693DLM_LIBS
694DLM_CFLAGS
e2997b73
AK
695CPG_LIBS
696CPG_CFLAGS
697CONFDB_LIBS
698CONFDB_CFLAGS
a946372e
AK
699SALCK_LIBS
700SALCK_CFLAGS
e2997b73
AK
701QUORUM_LIBS
702QUORUM_CFLAGS
a946372e
AK
703COROSYNC_LIBS
704COROSYNC_CFLAGS
705CMAN_LIBS
706CMAN_CFLAGS
a946372e
AK
707PKGCONFIGINIT_LIBS
708PKGCONFIGINIT_CFLAGS
f11781c5
AK
709PKG_CONFIG_LIBDIR
710PKG_CONFIG_PATH
e2997b73 711PKG_CONFIG
ec6a6fbe
AK
712POW_LIB
713LIBOBJS
714ALLOCA
715CSCOPE_CMD
716CFLOW_CMD
717RANLIB
718MKDIR_P
719SET_MAKE
720LN_S
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724EGREP
725GREP
726CPP
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734AWK
735SED
736target_os
737target_vendor
738target_cpu
739target
740host_os
741host_vendor
742host_cpu
743host
744build_os
745build_vendor
746build_cpu
747build
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
f11781c5 778PACKAGE_URL
ec6a6fbe
AK
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
ad6254c5 786ac_subst_files=''
ec6a6fbe
AK
787ac_user_opts='
788enable_option_checking
789enable_static_link
790with_user
791with_group
792with_device_uid
793with_device_gid
794with_device_mode
d0df875d 795with_device_nodes_on
ec6a6fbe
AK
796enable_lvm1_fallback
797with_lvm1
798with_pool
799with_cluster
800with_snapshots
801with_mirrors
cac52ca4 802with_raid
8fea97b7 803with_replicators
3ba4a195 804with_thin
ec6a6fbe
AK
805enable_readline
806enable_realtime
37ddf259 807enable_ocf
606d0858 808with_ocfdir
ec6a6fbe 809with_clvmd
8c4e8a18 810with_clvmd_pidfile
66fd4529
AK
811enable_cmirrord
812with_cmirrord_pidfile
ec6a6fbe
AK
813enable_debug
814with_optimisation
815enable_profiling
54b362f9 816enable_testing
d1e8046f 817enable_valgrind_pool
ec6a6fbe 818enable_devmapper
cdd50823 819enable_lvmetad
a5f46f6a
AK
820enable_udev_sync
821enable_udev_rules
ec6a6fbe 822enable_compat
95eaa683 823enable_units_compat
ec6a6fbe
AK
824enable_ioctl
825enable_o_direct
572fefeb 826enable_applib
ec6a6fbe
AK
827enable_cmdlib
828enable_pkgconfig
23b059e7 829enable_write_install
ec6a6fbe
AK
830enable_fsadm
831enable_dmeventd
832enable_selinux
833enable_nls
834with_localedir
835with_confdir
836with_staticdir
837with_usrlibdir
838with_usrsbindir
a5f46f6a 839with_udev_prefix
78ce7acc 840with_udevdir
ec6a6fbe
AK
841with_dmeventd_pidfile
842with_dmeventd_path
8bae0a1e 843with_default_run_dir
3399ae32
AK
844with_default_system_dir
845with_default_archive_subdir
846with_default_backup_subdir
847with_default_cache_subdir
848with_default_locking_dir
fea55602 849with_default_data_alignment
ec6a6fbe
AK
850with_interface
851'
7a197a62
AK
852 ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
25fbec5b 858LIBS
7a197a62 859CPPFLAGS
e2997b73
AK
860CPP
861PKG_CONFIG
f11781c5
AK
862PKG_CONFIG_PATH
863PKG_CONFIG_LIBDIR
a946372e
AK
864PKGCONFIGINIT_CFLAGS
865PKGCONFIGINIT_LIBS
a946372e
AK
866CMAN_CFLAGS
867CMAN_LIBS
868COROSYNC_CFLAGS
869COROSYNC_LIBS
e2997b73
AK
870QUORUM_CFLAGS
871QUORUM_LIBS
a946372e
AK
872SALCK_CFLAGS
873SALCK_LIBS
e2997b73
AK
874CONFDB_CFLAGS
875CONFDB_LIBS
876CPG_CFLAGS
a946372e
AK
877CPG_LIBS
878DLM_CFLAGS
90c80887
AK
879DLM_LIBS
880SACKPT_CFLAGS
d93275eb
PR
881SACKPT_LIBS
882UDEV_CFLAGS
883UDEV_LIBS'
7a197a62 884
795ca3e5
AK
885
886# Initialize some variables set by options.
ad6254c5
AK
887ac_init_help=
888ac_init_version=false
ec6a6fbe
AK
889ac_unrecognized_opts=
890ac_unrecognized_sep=
795ca3e5
AK
891# The variables have the same names as the options, with
892# dashes changed to underlines.
ad6254c5 893cache_file=/dev/null
795ca3e5 894exec_prefix=NONE
795ca3e5 895no_create=
795ca3e5
AK
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
795ca3e5
AK
904verbose=
905x_includes=NONE
906x_libraries=NONE
ad6254c5
AK
907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 913# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
7a197a62
AK
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
795ca3e5
AK
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
795ca3e5
AK
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
7a197a62
AK
924docdir='${datarootdir}/doc/${PACKAGE}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
795ca3e5 933
795ca3e5 934ac_prev=
7a197a62 935ac_dashdash=
795ca3e5
AK
936for ac_option
937do
795ca3e5
AK
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
7a197a62 940 eval $ac_prev=\$ac_option
795ca3e5
AK
941 ac_prev=
942 continue
943 fi
944
7a197a62
AK
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
795ca3e5
AK
949
950 # Accept the important Cygnus configure options, so we can diagnose typos.
951
7a197a62
AK
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
795ca3e5
AK
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 959 bindir=$ac_optarg ;;
795ca3e5
AK
960
961 -build | --build | --buil | --bui | --bu)
ad6254c5 962 ac_prev=build_alias ;;
795ca3e5 963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 964 build_alias=$ac_optarg ;;
795ca3e5
AK
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
795ca3e5 975
7a197a62 976 -datadir | --datadir | --datadi | --datad)
795ca3e5 977 ac_prev=datadir ;;
7a197a62 978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 979 datadir=$ac_optarg ;;
795ca3e5 980
7a197a62
AK
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
795ca3e5 988 -disable-* | --disable-*)
ec6a6fbe 989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 990 # Reject names that are not valid shell variable names.
ec6a6fbe 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 992 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
7a197a62
AK
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
795ca3e5
AK
1013
1014 -enable-* | --enable-*)
ec6a6fbe 1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1016 # Reject names that are not valid shell variable names.
ec6a6fbe 1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1018 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
ad6254c5 1037 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
ad6254c5
AK
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
795ca3e5
AK
1049
1050 -host | --host | --hos | --ho)
ad6254c5 1051 ac_prev=host_alias ;;
795ca3e5 1052 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1053 host_alias=$ac_optarg ;;
795ca3e5 1054
7a197a62
AK
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
795ca3e5
AK
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1066 includedir=$ac_optarg ;;
795ca3e5
AK
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1071 infodir=$ac_optarg ;;
795ca3e5
AK
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1076 libdir=$ac_optarg ;;
795ca3e5
AK
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1083 libexecdir=$ac_optarg ;;
795ca3e5 1084
7a197a62
AK
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
795ca3e5 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1091 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1095 localstatedir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1100 mandir=$ac_optarg ;;
795ca3e5
AK
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1107 | --no-cr | --no-c | -n)
795ca3e5
AK
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1121 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1126 prefix=$ac_optarg ;;
795ca3e5
AK
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1133 program_prefix=$ac_optarg ;;
795ca3e5
AK
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1140 program_suffix=$ac_optarg ;;
795ca3e5
AK
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1157 program_transform_name=$ac_optarg ;;
795ca3e5 1158
7a197a62
AK
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
795ca3e5
AK
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
ad6254c5 1177 sbindir=$ac_optarg ;;
795ca3e5
AK
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
ad6254c5 1188 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
ad6254c5 1193 site=$ac_optarg ;;
795ca3e5
AK
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1198 srcdir=$ac_optarg ;;
795ca3e5
AK
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1205 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1208 ac_prev=target_alias ;;
795ca3e5 1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1210 target_alias=$ac_optarg ;;
795ca3e5
AK
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
ad6254c5
AK
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
795ca3e5
AK
1217
1218 -with-* | --with-*)
ec6a6fbe 1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1220 # Reject names that are not valid shell variable names.
ec6a6fbe 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1222 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227"with_$ac_useropt"
1228"*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1233
1234 -without-* | --without-*)
ec6a6fbe 1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1236 # Reject names that are not valid shell variable names.
ec6a6fbe 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1238 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
795ca3e5
AK
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1259 x_includes=$ac_optarg ;;
795ca3e5
AK
1260
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1266 x_libraries=$ac_optarg ;;
795ca3e5 1267
f11781c5
AK
1268 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269Try \`$0 --help' for more information"
795ca3e5
AK
1270 ;;
1271
ad6254c5
AK
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
f11781c5
AK
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278 esac
7a197a62 1279 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1280 export $ac_envvar ;;
1281
795ca3e5 1282 *)
ad6254c5 1283 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1288 ;;
1289
1290 esac
1291done
1292
1293if test -n "$ac_prev"; then
ad6254c5 1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1295 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1296fi
795ca3e5 1297
ec6a6fbe
AK
1298if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
f11781c5 1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1304fi
1305
1306# Check all directory arguments for consistency.
7a197a62
AK
1307for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
795ca3e5 1311do
7a197a62 1312 eval ac_val=\$$ac_var
ec6a6fbe
AK
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
ad6254c5 1320 case $ac_val in
7a197a62
AK
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1323 esac
f11781c5 1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1325done
1326
ad6254c5
AK
1327# There might be people who depend on the old broken behavior: `$host'
1328# used to hold the argument of --host etc.
1329# FIXME: To remove some day.
1330build=$build_alias
1331host=$host_alias
1332target=$target_alias
1333
1334# FIXME: To remove some day.
1335if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
f11781c5
AK
1338 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343fi
8106cdd5 1344
ad6254c5
AK
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
795ca3e5 1349
795ca3e5 1350
7a197a62
AK
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1354 as_fn_error $? "working directory cannot be determined"
7a197a62 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1356 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1357
1358
795ca3e5
AK
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
7a197a62 1362 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
7a197a62
AK
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
795ca3e5 1386 srcdir=$ac_confdir
7a197a62 1387 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
7a197a62
AK
1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1396fi
7a197a62
AK
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
f11781c5 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
1411for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
ad6254c5
AK
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425\`configure' configures this package to adapt to many kinds of systems.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
f11781c5 1439 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
ad6254c5
AK
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1447 [$ac_default_prefix]
ad6254c5 1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1449 [PREFIX]
ad6254c5
AK
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
ec6a6fbe
AK
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482System types:
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 --target=TARGET configure for building compilers for TARGET [HOST]
1486_ACEOF
1487fi
1488
1489if test -n "$ac_init_help"; then
1490
1491 cat <<\_ACEOF
1492
1493Optional Features:
ec6a6fbe 1494 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1497 --enable-static_link use this to link the tools to their libraries
1498 statically (default is dynamic linking
1499 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1500 device-mapper is missing from the kernel
71082be4
ZK
1501 --disable-readline disable readline support
1502 --enable-realtime enable realtime clock support
37ddf259
AK
1503 --enable-ocf enable Open Cluster Framework (OCF) compliant
1504 resource agents
71082be4
ZK
1505 --enable-cmirrord enable the cluster mirror log daemon
1506 --enable-debug enable debugging
1507 --enable-profiling gather gcov profiling data
54b362f9 1508 --enable-testing enable testing targets in the makefile
d1e8046f 1509 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1510 --disable-devmapper disable LVM2 device-mapper interaction
cdd50823 1511 --disable-lvmetad disable the LVM Metadata Daemon
71082be4
ZK
1512 --enable-udev_sync enable synchronisation with udev processing
1513 --enable-udev_rules install rule files needed for udev synchronisation
1514 --enable-compat enable support for old device-mapper versions
1515 --enable-units-compat enable output compatibility with old versions that
1516 that do not use KiB-style unit suffixes
1517 --disable-driver disable calls to device-mapper in the kernel
1518 --disable-o_direct disable O_DIRECT
1519 --enable-applib build application library
1520 --enable-cmdlib build shared command library
1521 --enable-pkgconfig install pkgconfig support
1522 --enable-write_install install user writable files
1523 --disable-fsadm disable fsadm
1524 --enable-dmeventd enable the device-mapper event daemon
1525 --disable-selinux disable selinux support
1526 --enable-nls enable Native Language Support
ad6254c5
AK
1527
1528Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1531 --with-user=USER set the owner of installed files [[USER=]]
1532 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1533 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1534 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1535 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1536 --with-device-nodes-on=ON
1537 create nodes on resume or create [[ON=resume]]
ad6254c5 1538 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
ad6254c5 1540 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
71082be4 1542 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1543 [[TYPE=internal]]
71082be4 1544 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1545 [[TYPE=internal]]
71082be4 1546 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1547 [[TYPE=internal]]
cac52ca4
JEB
1548 --with-raid=TYPE mirror support: internal/shared/none
1549 [[TYPE=internal]]
71082be4 1550 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1551 [[TYPE=none]]
3ba4a195
ZK
1552 --with-thin=TYPE thin provisioning support: internal/shared/none
1553 [[TYPE=none]]
606d0858
AK
1554 --with-ocfdir=DIR install OCF files in DIR
1555 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1556 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1557 The following cluster manager combinations are valid:
a946372e
AK
1558 * cman (RHEL5 or equivalent)
1559 * cman,corosync,openais (or selection of them)
1091650a 1560 * singlenode (localhost only)
a946372e
AK
1561 * all (autodetect)
1562 * none (disable build)
71082be4 1563 [TYPE=none]
8c4e8a18 1564 --with-clvmd-pidfile=PATH
f11781c5 1565 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1566 --with-cmirrord-pidfile=PATH
f11781c5
AK
1567 cmirrord pidfile [[/var/run/cmirrord.pid]]
1568 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1569 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1570 --with-confdir=DIR configuration files in DIR [[/etc]]
1571 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1572 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1573 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1574 --with-udev-prefix=UPREFIX
f11781c5
AK
1575 install udev rule files in UPREFIX [[EPREFIX]]
1576 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1577 --with-dmeventd-pidfile=PATH
f11781c5 1578 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1579 --with-dmeventd-path=PATH
f11781c5 1580 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1581 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1582 --with-default-system-dir=DIR
f11781c5 1583 default LVM system directory [[/etc/lvm]]
71082be4 1584 --with-default-archive-subdir=SUBDIR
f11781c5 1585 default metadata archive subdir [[archive]]
71082be4 1586 --with-default-backup-subdir=SUBDIR
f11781c5 1587 default metadata backup subdir [[backup]]
71082be4 1588 --with-default-cache-subdir=SUBDIR
f11781c5 1589 default metadata cache subdir [[cache]]
71082be4 1590 --with-default-locking-dir=DIR
f11781c5 1591 default locking directory [[/var/lock/lvm]]
fea55602 1592 --with-default-data-alignment=NUM
f11781c5
AK
1593 set the default data alignment in MiB [[1]]
1594 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1595
1596Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
25fbec5b 1601 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1602 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1603 you have headers in a nonstandard directory <include dir>
ad6254c5 1604 CPP C preprocessor
e2997b73 1605 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1606 PKG_CONFIG_PATH
1607 directories to add to pkg-config's search path
1608 PKG_CONFIG_LIBDIR
1609 path overriding pkg-config's built-in search path
a946372e
AK
1610 PKGCONFIGINIT_CFLAGS
1611 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1612 PKGCONFIGINIT_LIBS
1613 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1614 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1615 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1616 COROSYNC_CFLAGS
1617 C compiler flags for COROSYNC, overriding pkg-config
1618 COROSYNC_LIBS
1619 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1620 QUORUM_CFLAGS
1621 C compiler flags for QUORUM, overriding pkg-config
1622 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1623 SALCK_CFLAGS
1624 C compiler flags for SALCK, overriding pkg-config
1625 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1626 CONFDB_CFLAGS
1627 C compiler flags for CONFDB, overriding pkg-config
1628 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1629 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1630 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1631 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1632 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1633 SACKPT_CFLAGS
1634 C compiler flags for SACKPT, overriding pkg-config
1635 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1636 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1637 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1638
1639Use these variables to override the choices made by `configure' or to help
1640it to find libraries and programs with nonstandard names/locations.
1641
f11781c5 1642Report bugs to the package provider.
ad6254c5 1643_ACEOF
7a197a62 1644ac_status=$?
ad6254c5
AK
1645fi
1646
1647if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
ad6254c5 1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1650 test -d "$ac_dir" ||
1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652 continue
ad6254c5
AK
1653 ac_builddir=.
1654
7a197a62
AK
1655case "$ac_dir" in
1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657*)
ec6a6fbe 1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1659 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 esac ;;
1665esac
1666ac_abs_top_builddir=$ac_pwd
1667ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668# for backward compatibility:
1669ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1670
1671case $srcdir in
7a197a62 1672 .) # We are building in place.
ad6254c5 1673 ac_srcdir=.
7a197a62
AK
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1677 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1680 *) # Relative name.
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1684esac
7a197a62
AK
1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for guested configure.
1689 if test -f "$ac_srcdir/configure.gnu"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692 elif test -f "$ac_srcdir/configure"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1695 else
ec6a6fbe 1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1697 fi || ac_status=$?
1698 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1699 done
1700fi
1701
7a197a62 1702test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1703if $ac_init_version; then
1704 cat <<\_ACEOF
7a197a62 1705configure
f11781c5 1706generated by GNU Autoconf 2.66
ad6254c5 1707
f11781c5 1708Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1709This configure script is free software; the Free Software Foundation
1710gives unlimited permission to copy, distribute and modify it.
1711_ACEOF
7a197a62 1712 exit
ad6254c5 1713fi
ad6254c5 1714
f11781c5
AK
1715## ------------------------ ##
1716## Autoconf initialization. ##
1717## ------------------------ ##
ad6254c5 1718
f11781c5
AK
1719# ac_fn_c_try_compile LINENO
1720# --------------------------
1721# Try to compile conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_compile ()
ad6254c5 1723{
f11781c5
AK
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext
1726 if { { ac_try="$ac_compile"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_compile") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest.$ac_objext; then :
1745 ac_retval=0
1746else
1747 $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1749
f11781c5
AK
1750 ac_retval=1
1751fi
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 as_fn_set_status $ac_retval
ad6254c5 1754
f11781c5 1755} # ac_fn_c_try_compile
ad6254c5 1756
f11781c5
AK
1757# ac_fn_c_try_cpp LINENO
1758# ----------------------
1759# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_cpp ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1764case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } >/dev/null && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 }; then :
1782 ac_retval=0
1783else
1784 $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1786
f11781c5
AK
1787 ac_retval=1
1788fi
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 as_fn_set_status $ac_retval
ad6254c5 1791
f11781c5 1792} # ac_fn_c_try_cpp
d911ec67 1793
f11781c5
AK
1794# ac_fn_c_try_link LINENO
1795# -----------------------
1796# Try to link conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_link ()
d911ec67 1798{
f11781c5
AK
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
d911ec67
AK
1802case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
f11781c5
AK
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
d911ec67 1809 ac_status=$?
f11781c5
AK
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 $as_test_x conftest$ac_exeext
1822 }; then :
1823 ac_retval=0
d911ec67 1824else
f11781c5 1825 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
f11781c5 1828 ac_retval=1
d911ec67 1829fi
f11781c5
AK
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
d911ec67 1837
f11781c5 1838} # ac_fn_c_try_link
d911ec67 1839
f11781c5
AK
1840# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843# the include files in INCLUDES and setting the cache variable VAR
1844# accordingly.
1845ac_fn_c_check_header_mongrel ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if eval "test \"\${$3+set}\"" = set; then :
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1852 $as_echo_n "(cached) " >&6
1853fi
f11781c5
AK
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1856$as_echo "$ac_res" >&6; }
1857else
1858 # Is the header compilable?
f11781c5
AK
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860$as_echo_n "checking $2 usability... " >&6; }
1861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1862/* end confdefs.h. */
f11781c5
AK
1863$4
1864#include <$2>
d911ec67 1865_ACEOF
f11781c5 1866if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1867 ac_header_compiler=yes
1868else
f11781c5 1869 ac_header_compiler=no
d911ec67 1870fi
d911ec67 1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1873$as_echo "$ac_header_compiler" >&6; }
1874
1875# Is the header present?
f11781c5
AK
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877$as_echo_n "checking $2 presence... " >&6; }
1878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1879/* end confdefs.h. */
f11781c5 1880#include <$2>
d911ec67 1881_ACEOF
f11781c5 1882if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1883 ac_header_preproc=yes
1884else
d911ec67
AK
1885 ac_header_preproc=no
1886fi
d911ec67 1887rm -f conftest.err conftest.$ac_ext
f11781c5 1888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1889$as_echo "$ac_header_preproc" >&6; }
1890
1891# So? What about this header?
f11781c5 1892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1893 yes:no: )
f11781c5
AK
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1898 ;;
1899 no:yes:* )
f11781c5
AK
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1903$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1907$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1910 ;;
1911esac
f11781c5
AK
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1915 $as_echo_n "(cached) " >&6
1916else
f11781c5 1917 eval "$3=\$ac_header_compiler"
d911ec67 1918fi
f11781c5
AK
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1921$as_echo "$ac_res" >&6; }
ad6254c5 1922fi
f11781c5 1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1924
f11781c5 1925} # ac_fn_c_check_header_mongrel
ad6254c5 1926
f11781c5
AK
1927# ac_fn_c_try_run LINENO
1928# ----------------------
1929# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1930# that executables *can* be run.
1931ac_fn_c_try_run ()
ad6254c5 1932{
f11781c5
AK
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if { { ac_try="$ac_link"
7a197a62
AK
1935case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938esac
f11781c5
AK
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
7a197a62 1941 (eval "$ac_link") 2>&5
ad6254c5 1942 ac_status=$?
f11781c5
AK
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1945 { { case "(($ac_try" in
7a197a62
AK
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948esac
f11781c5
AK
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
7a197a62 1951 (eval "$ac_try") 2>&5
ad6254c5 1952 ac_status=$?
f11781c5
AK
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; }; }; then :
1955 ac_retval=0
ad6254c5 1956else
ec6a6fbe 1957 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1958 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1959sed 's/^/| /' conftest.$ac_ext >&5
1960
f11781c5 1961 ac_retval=$ac_status
ad6254c5 1962fi
f11781c5
AK
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 as_fn_set_status $ac_retval
ad6254c5 1966
f11781c5 1967} # ac_fn_c_try_run
ad6254c5 1968
f11781c5
AK
1969# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970# -------------------------------------------------------
1971# Tests whether HEADER exists and can be compiled using the include files in
1972# INCLUDES, setting the cache variable VAR accordingly.
1973ac_fn_c_check_header_compile ()
1974{
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977$as_echo_n "checking for $2... " >&6; }
1978if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1979 $as_echo_n "(cached) " >&6
ad6254c5 1980else
f11781c5 1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1982/* end confdefs.h. */
f11781c5
AK
1983$4
1984#include <$2>
ad6254c5 1985_ACEOF
f11781c5
AK
1986if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$3=yes"
ad6254c5 1988else
f11781c5 1989 eval "$3=no"
ad6254c5 1990fi
7a197a62 1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1992fi
f11781c5
AK
1993eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1995$as_echo "$ac_res" >&6; }
f11781c5 1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1997
f11781c5 1998} # ac_fn_c_check_header_compile
ad6254c5 1999
f11781c5
AK
2000# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001# ----------------------------------------------------
2002# Tries to find if the field MEMBER exists in type AGGR, after including
2003# INCLUDES, setting cache variable VAR accordingly.
2004ac_fn_c_check_member ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008$as_echo_n "checking for $2.$3... " >&6; }
2009if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2010 $as_echo_n "(cached) " >&6
795ca3e5 2011else
f11781c5
AK
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$5
2015int
2016main ()
2017{
2018static $2 ac_aggr;
2019if (ac_aggr.$3)
2020return 0;
2021 ;
2022 return 0;
2023}
ad6254c5 2024_ACEOF
f11781c5
AK
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$4=yes"
2027else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2029/* end confdefs.h. */
f11781c5
AK
2030$5
2031int
2032main ()
2033{
2034static $2 ac_aggr;
2035if (sizeof ac_aggr.$3)
2036return 0;
2037 ;
2038 return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043else
2044 eval "$4=no"
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054
2055} # ac_fn_c_check_member
795ca3e5 2056
f11781c5
AK
2057# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058# -------------------------------------------
2059# Tests whether TYPE exists after having included INCLUDES, setting cache
2060# variable VAR accordingly.
2061ac_fn_c_check_type ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
2066if eval "test \"\${$3+set}\"" = set; then :
2067 $as_echo_n "(cached) " >&6
2068else
2069 eval "$3=no"
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
ad6254c5
AK
2073int
2074main ()
2075{
f11781c5
AK
2076if (sizeof ($2))
2077 return 0;
ad6254c5
AK
2078 ;
2079 return 0;
2080}
2081_ACEOF
f11781c5
AK
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2096
f11781c5
AK
2097else
2098 eval "$3=yes"
795ca3e5 2099fi
f11781c5
AK
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2103fi
f11781c5
AK
2104eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2106$as_echo "$ac_res" >&6; }
f11781c5 2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2108
f11781c5 2109} # ac_fn_c_check_type
ad6254c5 2110
f11781c5
AK
2111# ac_fn_c_find_intX_t LINENO BITS VAR
2112# -----------------------------------
2113# Finds a signed integer type with width BITS, setting cache variable VAR
2114# accordingly.
2115ac_fn_c_find_intX_t ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2119$as_echo_n "checking for int$2_t... " >&6; }
2120if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2121 $as_echo_n "(cached) " >&6
ad6254c5 2122else
f11781c5
AK
2123 eval "$3=no"
2124 # Order is important - never check a type that is potentially smaller
2125 # than half of the expected target width.
2126 for ac_type in int$2_t 'int' 'long int' \
2127 'long long int' 'short int' 'signed char'; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2129/* end confdefs.h. */
2130$ac_includes_default
f11781c5 2131 enum { N = $2 / 2 - 1 };
7a197a62
AK
2132int
2133main ()
2134{
f11781c5
AK
2135static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2136test_array [0] = 0
7a197a62 2137
f11781c5
AK
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$ac_includes_default
2146 enum { N = $2 / 2 - 1 };
2147int
2148main ()
2149{
2150static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2151 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2152test_array [0] = 0
7a197a62
AK
2153
2154 ;
2155 return 0;
2156}
ad6254c5 2157_ACEOF
f11781c5 2158if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2159
f11781c5
AK
2160else
2161 case $ac_type in #(
2162 int$2_t) :
2163 eval "$3=yes" ;; #(
2164 *) :
2165 eval "$3=\$ac_type" ;;
2166esac
ad6254c5 2167fi
f11781c5 2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2169fi
f11781c5
AK
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2172
2173else
f11781c5 2174 break
ad6254c5 2175fi
f11781c5 2176 done
ad6254c5 2177fi
f11781c5
AK
2178eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180$as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2182
2183} # ac_fn_c_find_intX_t
2184
2185# ac_fn_c_find_uintX_t LINENO BITS VAR
2186# ------------------------------------
2187# Finds an unsigned integer type with width BITS, setting cache variable VAR
2188# accordingly.
2189ac_fn_c_find_uintX_t ()
2190{
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2193$as_echo_n "checking for uint$2_t... " >&6; }
2194if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2195 $as_echo_n "(cached) " >&6
ad6254c5 2196else
f11781c5
AK
2197 eval "$3=no"
2198 # Order is important - never check a type that is potentially smaller
2199 # than half of the expected target width.
2200 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2201 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2203/* end confdefs.h. */
7a197a62 2204$ac_includes_default
ad6254c5
AK
2205int
2206main ()
2207{
f11781c5
AK
2208static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2209test_array [0] = 0
ad6254c5 2210
f11781c5
AK
2211 ;
2212 return 0;
ad6254c5
AK
2213}
2214_ACEOF
f11781c5
AK
2215if ac_fn_c_try_compile "$LINENO"; then :
2216 case $ac_type in #(
2217 uint$2_t) :
2218 eval "$3=yes" ;; #(
2219 *) :
2220 eval "$3=\$ac_type" ;;
7a197a62 2221esac
ad6254c5 2222fi
f11781c5
AK
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2225
f11781c5
AK
2226else
2227 break
ad6254c5 2228fi
f11781c5 2229 done
ad6254c5 2230fi
f11781c5
AK
2231eval ac_res=\$$3
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2235
f11781c5 2236} # ac_fn_c_find_uintX_t
ad6254c5 2237
f11781c5
AK
2238# ac_fn_c_check_func LINENO FUNC VAR
2239# ----------------------------------
2240# Tests whether FUNC exists, setting the cache variable VAR accordingly
2241ac_fn_c_check_func ()
2242{
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245$as_echo_n "checking for $2... " >&6; }
2246if eval "test \"\${$3+set}\"" = set; then :
2247 $as_echo_n "(cached) " >&6
ad6254c5 2248else
f11781c5
AK
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h. */
2251/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2253#define $2 innocuous_$2
ad6254c5 2254
f11781c5
AK
2255/* System header to define __stub macros and hopefully few prototypes,
2256 which can conflict with char $2 (); below.
2257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2258 <limits.h> exists even on freestanding compilers. */
ad6254c5 2259
f11781c5
AK
2260#ifdef __STDC__
2261# include <limits.h>
2262#else
2263# include <assert.h>
2264#endif
ad6254c5 2265
f11781c5
AK
2266#undef $2
2267
2268/* Override any GCC internal prototype to avoid an error.
2269 Use char because int might match the return type of a GCC
2270 builtin and then its argument prototype would still apply. */
2271#ifdef __cplusplus
2272extern "C"
2273#endif
2274char $2 ();
2275/* The GNU C library defines this for functions which it implements
2276 to always fail with ENOSYS. Some functions are actually named
2277 something starting with __ and the normal name is an alias. */
2278#if defined __stub_$2 || defined __stub___$2
2279choke me
2280#endif
ad6254c5 2281
ad6254c5
AK
2282int
2283main ()
2284{
f11781c5 2285return $2 ();
ad6254c5
AK
2286 ;
2287 return 0;
2288}
2289_ACEOF
f11781c5
AK
2290if ac_fn_c_try_link "$LINENO"; then :
2291 eval "$3=yes"
ad6254c5 2292else
f11781c5 2293 eval "$3=no"
ad6254c5 2294fi
f11781c5
AK
2295rm -f core conftest.err conftest.$ac_objext \
2296 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2297fi
f11781c5
AK
2298eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300$as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2302
f11781c5
AK
2303} # ac_fn_c_check_func
2304cat >config.log <<_ACEOF
2305This file contains any messages produced by compilers while
2306running configure, to aid debugging if configure makes a mistake.
7a197a62 2307
f11781c5
AK
2308It was created by $as_me, which was
2309generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2310
f11781c5 2311 $ $0 $@
ad6254c5 2312
ad6254c5 2313_ACEOF
f11781c5
AK
2314exec 5>>config.log
2315{
2316cat <<_ASUNAME
2317## --------- ##
2318## Platform. ##
2319## --------- ##
ad6254c5 2320
f11781c5
AK
2321hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2322uname -m = `(uname -m) 2>/dev/null || echo unknown`
2323uname -r = `(uname -r) 2>/dev/null || echo unknown`
2324uname -s = `(uname -s) 2>/dev/null || echo unknown`
2325uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2326
f11781c5
AK
2327/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2328/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2329
f11781c5
AK
2330/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2331/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2332/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2333/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2334/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2335/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2336/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2337
2338_ASUNAME
2339
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 $as_echo "PATH: $as_dir"
2346 done
2347IFS=$as_save_IFS
2348
2349} >&5
2350
2351cat >&5 <<_ACEOF
2352
2353
2354## ----------- ##
2355## Core tests. ##
2356## ----------- ##
ad6254c5 2357
ad6254c5 2358_ACEOF
ad6254c5 2359
7a197a62 2360
f11781c5
AK
2361# Keep a trace of the command line.
2362# Strip out --no-create and --no-recursion so they do not pile up.
2363# Strip out --silent because we don't want to record it for future runs.
2364# Also quote any args containing shell meta-characters.
2365# Make two passes to allow for proper duplicate-argument suppression.
2366ac_configure_args=
2367ac_configure_args0=
2368ac_configure_args1=
2369ac_must_keep_next=false
2370for ac_pass in 1 2
2371do
2372 for ac_arg
2373 do
2374 case $ac_arg in
2375 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2377 | -silent | --silent | --silen | --sile | --sil)
2378 continue ;;
2379 *\'*)
2380 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2381 esac
2382 case $ac_pass in
2383 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2384 2)
2385 as_fn_append ac_configure_args1 " '$ac_arg'"
2386 if test $ac_must_keep_next = true; then
2387 ac_must_keep_next=false # Got value, back to normal.
2388 else
2389 case $ac_arg in
2390 *=* | --config-cache | -C | -disable-* | --disable-* \
2391 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2392 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2393 | -with-* | --with-* | -without-* | --without-* | --x)
2394 case "$ac_configure_args0 " in
2395 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2396 esac
2397 ;;
2398 -* ) ac_must_keep_next=true ;;
2399 esac
2400 fi
2401 as_fn_append ac_configure_args " '$ac_arg'"
2402 ;;
2403 esac
2404 done
2405done
2406{ ac_configure_args0=; unset ac_configure_args0;}
2407{ ac_configure_args1=; unset ac_configure_args1;}
2408
2409# When interrupted or exit'd, cleanup temporary files, and complete
2410# config.log. We remove comments because anyway the quotes in there
2411# would cause problems or look ugly.
2412# WARNING: Use '\'' to represent an apostrophe within the trap.
2413# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2414trap 'exit_status=$?
2415 # Save into config.log some information that might help in debugging.
2416 {
2417 echo
2418
2419 $as_echo "## ---------------- ##
2420## Cache variables. ##
2421## ---------------- ##"
2422 echo
2423 # The following way of writing the cache mishandles newlines in values,
2424(
2425 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2426 eval ac_val=\$$ac_var
2427 case $ac_val in #(
2428 *${as_nl}*)
2429 case $ac_var in #(
2430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2431$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2432 esac
2433 case $ac_var in #(
2434 _ | IFS | as_nl) ;; #(
2435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2436 *) { eval $ac_var=; unset $ac_var;} ;;
2437 esac ;;
2438 esac
2439 done
2440 (set) 2>&1 |
2441 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2442 *${as_nl}ac_space=\ *)
2443 sed -n \
2444 "s/'\''/'\''\\\\'\'''\''/g;
2445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2446 ;; #(
2447 *)
2448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449 ;;
2450 esac |
2451 sort
2452)
2453 echo
2454
2455 $as_echo "## ----------------- ##
2456## Output variables. ##
2457## ----------------- ##"
2458 echo
2459 for ac_var in $ac_subst_vars
2460 do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 $as_echo "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2468
2469 if test -n "$ac_subst_files"; then
2470 $as_echo "## ------------------- ##
2471## File substitutions. ##
2472## ------------------- ##"
2473 echo
2474 for ac_var in $ac_subst_files
2475 do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 esac
2480 $as_echo "$ac_var='\''$ac_val'\''"
2481 done | sort
2482 echo
2483 fi
2484
2485 if test -s confdefs.h; then
2486 $as_echo "## ----------- ##
2487## confdefs.h. ##
2488## ----------- ##"
2489 echo
2490 cat confdefs.h
2491 echo
2492 fi
2493 test "$ac_signal" != 0 &&
2494 $as_echo "$as_me: caught signal $ac_signal"
2495 $as_echo "$as_me: exit $exit_status"
2496 } >&5
2497 rm -f core *.core core.conftest.* &&
2498 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2499 exit $exit_status
2500' 0
2501for ac_signal in 1 2 13 15; do
2502 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2503done
2504ac_signal=0
2505
2506# confdefs.h avoids OS command line length limits that DEFS can exceed.
2507rm -f -r conftest* confdefs.h
7a197a62 2508
f11781c5 2509$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2510
f11781c5 2511# Predefined preprocessor variables.
ad6254c5
AK
2512
2513cat >>confdefs.h <<_ACEOF
f11781c5 2514#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2515_ACEOF
2516
f11781c5
AK
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2519_ACEOF
ad6254c5 2520
f11781c5
AK
2521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2523_ACEOF
f11781c5
AK
2524
2525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2527_ACEOF
ad6254c5 2528
f11781c5
AK
2529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2531_ACEOF
7a197a62 2532
f11781c5
AK
2533cat >>confdefs.h <<_ACEOF
2534#define PACKAGE_URL "$PACKAGE_URL"
2535_ACEOF
ad6254c5 2536
7a197a62 2537
f11781c5
AK
2538# Let the site file select an alternate cache file if it wants to.
2539# Prefer an explicitly selected file to automatically selected ones.
2540ac_site_file1=NONE
2541ac_site_file2=NONE
2542if test -n "$CONFIG_SITE"; then
2543 # We do not want a PATH search for config.site.
2544 case $CONFIG_SITE in #((
2545 -*) ac_site_file1=./$CONFIG_SITE;;
2546 */*) ac_site_file1=$CONFIG_SITE;;
2547 *) ac_site_file1=./$CONFIG_SITE;;
2548 esac
2549elif test "x$prefix" != xNONE; then
2550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
ad6254c5 2552else
f11781c5
AK
2553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2555fi
f11781c5
AK
2556for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557do
2558 test "x$ac_site_file" = xNONE && continue
2559 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2561$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562 sed 's/^/| /' "$ac_site_file" >&5
2563 . "$ac_site_file" \
2564 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566as_fn_error $? "failed to load site script $ac_site_file
2567See \`config.log' for more details" "$LINENO" 5; }
2568 fi
2569done
ad6254c5 2570
f11781c5
AK
2571if test -r "$cache_file"; then
2572 # Some versions of bash will fail to source /dev/null (special files
2573 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2574 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2576$as_echo "$as_me: loading cache $cache_file" >&6;}
2577 case $cache_file in
2578 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2579 *) . "./$cache_file";;
2580 esac
2581 fi
2582else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2584$as_echo "$as_me: creating cache $cache_file" >&6;}
2585 >$cache_file
ad6254c5 2586fi
ad6254c5 2587
f11781c5
AK
2588as_fn_append ac_header_list " stdlib.h"
2589as_fn_append ac_header_list " unistd.h"
2590as_fn_append ac_header_list " sys/param.h"
2591# Check that the precious variables saved in the cache have kept the same
2592# value.
2593ac_cache_corrupted=false
2594for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640done
2641if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2647fi
f11781c5
AK
2648## -------------------- ##
2649## Main body of script. ##
2650## -------------------- ##
ad6254c5 2651
f11781c5
AK
2652ac_ext=c
2653ac_cpp='$CPP $CPPFLAGS'
2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2657
ad6254c5 2658
ad6254c5 2659
f11781c5 2660ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2661
2662
f11781c5
AK
2663################################################################################
2664ac_aux_dir=
2665for ac_dir in autoconf "$srcdir"/autoconf; do
2666 if test -f "$ac_dir/install-sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install-sh -c"
2669 break
2670 elif test -f "$ac_dir/install.sh"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2673 break
2674 elif test -f "$ac_dir/shtool"; then
2675 ac_aux_dir=$ac_dir
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 break
2678 fi
2679done
2680if test -z "$ac_aux_dir"; then
2681 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2682fi
ad6254c5 2683
f11781c5
AK
2684# These three variables are undocumented and unsupported,
2685# and are intended to be withdrawn in a future Autoconf release.
2686# They can cause serious problems if a builder's source tree is in a directory
2687# whose full name contains unusual characters.
2688ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2691
ad6254c5 2692
8a2fc586 2693
f11781c5
AK
2694################################################################################
2695# Make sure we can run config.sub.
2696$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2697 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2698
f11781c5
AK
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2700$as_echo_n "checking build system type... " >&6; }
2701if test "${ac_cv_build+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703else
2704 ac_build_alias=$build_alias
2705test "x$ac_build_alias" = x &&
2706 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2707test "x$ac_build_alias" = x &&
2708 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2709ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2710 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2711
2712fi
f11781c5
AK
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2714$as_echo "$ac_cv_build" >&6; }
2715case $ac_cv_build in
2716*-*-*) ;;
2717*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2718esac
2719build=$ac_cv_build
2720ac_save_IFS=$IFS; IFS='-'
2721set x $ac_cv_build
2722shift
2723build_cpu=$1
2724build_vendor=$2
2725shift; shift
2726# Remember, the first character of IFS is used to create $*,
2727# except with old shells:
2728build_os=$*
2729IFS=$ac_save_IFS
2730case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2731
2732
f11781c5
AK
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2734$as_echo_n "checking host system type... " >&6; }
2735if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2736 $as_echo_n "(cached) " >&6
ad6254c5 2737else
f11781c5
AK
2738 if test "x$host_alias" = x; then
2739 ac_cv_host=$ac_cv_build
ad6254c5 2740else
f11781c5
AK
2741 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2743fi
ad6254c5 2744
f11781c5
AK
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2747$as_echo "$ac_cv_host" >&6; }
2748case $ac_cv_host in
2749*-*-*) ;;
2750*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2751esac
2752host=$ac_cv_host
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_host
2755shift
2756host_cpu=$1
2757host_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761host_os=$*
2762IFS=$ac_save_IFS
2763case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2764
ad6254c5 2765
f11781c5
AK
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2767$as_echo_n "checking target system type... " >&6; }
2768if test "${ac_cv_target+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
ad6254c5 2770else
f11781c5
AK
2771 if test "x$target_alias" = x; then
2772 ac_cv_target=$ac_cv_host
2773else
2774 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2776fi
7a197a62 2777
ad6254c5 2778fi
f11781c5
AK
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2780$as_echo "$ac_cv_target" >&6; }
2781case $ac_cv_target in
2782*-*-*) ;;
2783*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2784esac
f11781c5
AK
2785target=$ac_cv_target
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_target
2788shift
2789target_cpu=$1
2790target_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794target_os=$*
2795IFS=$ac_save_IFS
2796case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2797
ad6254c5 2798
f11781c5
AK
2799# The aliases save the names the user supplied, while $host etc.
2800# will get canonicalized.
2801test -n "$target_alias" &&
2802 test "$program_prefix$program_suffix$program_transform_name" = \
2803 NONENONEs,x,x, &&
2804 program_prefix=${target_alias}-
ad6254c5 2805
f11781c5
AK
2806case "$host_os" in
2807 linux*)
2808 CFLAGS="$CFLAGS"
2809 COPTIMISE_FLAG="-O2"
2810 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2811 ELDFLAGS="-Wl,--export-dynamic"
2812 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2813 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2814 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2815 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2816 LIB_SUFFIX=so
2817 DEVMAPPER=yes
cdd50823 2818 LVMETAD=no
f11781c5
AK
2819 ODIRECT=yes
2820 DM_IOCTLS=yes
2821 SELINUX=yes
2822 CLUSTER=internal
2823 FSADM=yes
2824 ;;
2825 darwin*)
2826 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2827 COPTIMISE_FLAG="-O2"
2828 CLDFLAGS="$CLDFLAGS"
bf09a320 2829 ELDFLAGS=
f11781c5
AK
2830 CLDWHOLEARCHIVE="-all_load"
2831 CLDNOWHOLEARCHIVE=
2832 LIB_SUFFIX=dylib
2833 DEVMAPPER=yes
2834 ODIRECT=no
2835 DM_IOCTLS=no
2836 SELINUX=no
2837 CLUSTER=none
2838 FSADM=no
2839 ;;
2840esac
ad6254c5 2841
f11781c5
AK
2842################################################################################
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2844$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2845if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2846 $as_echo_n "(cached) " >&6
ad6254c5 2847else
f11781c5
AK
2848 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2849 for ac_i in 1 2 3 4 5 6 7; do
2850 ac_script="$ac_script$as_nl$ac_script"
2851 done
2852 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2853 { ac_script=; unset ac_script;}
2854 if test -z "$SED"; then
2855 ac_path_SED_found=false
2856 # Loop through the user's path and test for each of PROGNAME-LIST
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_prog in sed gsed; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2865 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2866# Check for GNU ac_path_SED and select it if it is found.
2867 # Check for GNU $ac_path_SED
2868case `"$ac_path_SED" --version 2>&1` in
2869*GNU*)
2870 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2871*)
2872 ac_count=0
2873 $as_echo_n 0123456789 >"conftest.in"
2874 while :
2875 do
2876 cat "conftest.in" "conftest.in" >"conftest.tmp"
2877 mv "conftest.tmp" "conftest.in"
2878 cp "conftest.in" "conftest.nl"
2879 $as_echo '' >> "conftest.nl"
2880 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2882 as_fn_arith $ac_count + 1 && ac_count=$as_val
2883 if test $ac_count -gt ${ac_path_SED_max-0}; then
2884 # Best one so far, save it but keep looking for a better one
2885 ac_cv_path_SED="$ac_path_SED"
2886 ac_path_SED_max=$ac_count
2887 fi
2888 # 10*(2^10) chars as input seems more than enough
2889 test $ac_count -gt 10 && break
2890 done
2891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2892esac
ad6254c5 2893
f11781c5
AK
2894 $ac_path_SED_found && break 3
2895 done
2896 done
2897 done
2898IFS=$as_save_IFS
2899 if test -z "$ac_cv_path_SED"; then
2900 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2901 fi
2902else
2903 ac_cv_path_SED=$SED
ad6254c5 2904fi
7a197a62 2905
f11781c5
AK
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2908$as_echo "$ac_cv_path_SED" >&6; }
2909 SED="$ac_cv_path_SED"
2910 rm -f conftest.sed
ad6254c5 2911
f11781c5
AK
2912for ac_prog in gawk mawk nawk awk
2913do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915set dummy $ac_prog; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_AWK+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
ad6254c5 2920else
f11781c5
AK
2921 if test -n "$AWK"; then
2922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_AWK="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935done
2936 done
2937IFS=$as_save_IFS
ad6254c5 2938
ad6254c5 2939fi
ad6254c5 2940fi
f11781c5
AK
2941AWK=$ac_cv_prog_AWK
2942if test -n "$AWK"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944$as_echo "$AWK" >&6; }
2945else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
ad6254c5 2948fi
ad6254c5 2949
ad6254c5 2950
f11781c5 2951 test -n "$AWK" && break
ad6254c5
AK
2952done
2953
f11781c5
AK
2954ac_ext=c
2955ac_cpp='$CPP $CPPFLAGS'
2956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961set dummy ${ac_tool_prefix}gcc; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2965 $as_echo_n "(cached) " >&6
ad6254c5 2966else
f11781c5
AK
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2969else
f11781c5
AK
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982 done
2983IFS=$as_save_IFS
ad6254c5 2984
ad6254c5 2985fi
ad6254c5 2986fi
f11781c5
AK
2987CC=$ac_cv_prog_CC
2988if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990$as_echo "$CC" >&6; }
2991else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
ad6254c5 2994fi
ad6254c5 2995
f11781c5
AK
2996
2997fi
2998if test -z "$ac_cv_prog_CC"; then
2999 ac_ct_CC=$CC
3000 # Extract the first word of "gcc", so it can be a program name with args.
3001set dummy gcc; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3005 $as_echo_n "(cached) " >&6
ad6254c5 3006else
f11781c5
AK
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3009else
f11781c5
AK
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022 done
3023IFS=$as_save_IFS
d911ec67 3024
d911ec67 3025fi
d911ec67 3026fi
f11781c5
AK
3027ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030$as_echo "$ac_ct_CC" >&6; }
3031else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
d911ec67 3034fi
d911ec67 3035
f11781c5
AK
3036 if test "x$ac_ct_CC" = x; then
3037 CC=""
3038 else
3039 case $cross_compiling:$ac_tool_warned in
3040yes:)
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043ac_tool_warned=yes ;;
3044esac
3045 CC=$ac_ct_CC
3046 fi
3047else
3048 CC="$ac_cv_prog_CC"
d911ec67 3049fi
d911ec67 3050
f11781c5
AK
3051if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}cc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3058 $as_echo_n "(cached) " >&6
d911ec67 3059else
f11781c5
AK
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3062else
f11781c5
AK
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075 done
3076IFS=$as_save_IFS
d911ec67 3077
f11781c5
AK
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083$as_echo "$CC" >&6; }
3084else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
d911ec67
AK
3087fi
3088
d911ec67 3089
f11781c5
AK
3090 fi
3091fi
3092if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094set dummy cc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if test "${ac_cv_prog_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
d911ec67 3099else
f11781c5
AK
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103 ac_prog_rejected=no
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3114 fi
3115 ac_cv_prog_CC="cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120 done
3121IFS=$as_save_IFS
d911ec67 3122
f11781c5
AK
3123if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3126 shift
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3131 shift
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133 fi
3134fi
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140$as_echo "$CC" >&6; }
3141else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
d911ec67
AK
3144fi
3145
d911ec67 3146
f11781c5
AK
3147fi
3148if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3157 $as_echo_n "(cached) " >&6
3158else
f11781c5
AK
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173done
3174 done
3175IFS=$as_save_IFS
d911ec67
AK
3176
3177fi
f11781c5
AK
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
d911ec67
AK
3186fi
3187
d911ec67 3188
f11781c5
AK
3189 test -n "$CC" && break
3190 done
3191fi
3192if test -z "$CC"; then
3193 ac_ct_CC=$CC
3194 for ac_prog in cl.exe
3195do
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197set dummy $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_ac_ct_CC+set}" = set; then :
d911ec67
AK
3201 $as_echo_n "(cached) " >&6
3202else
f11781c5
AK
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3205else
f11781c5
AK
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_ac_ct_CC="$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
ad6254c5 3220
ad6254c5 3221fi
ad6254c5 3222fi
f11781c5
AK
3223ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226$as_echo "$ac_ct_CC" >&6; }
3227else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
ad6254c5 3230fi
ad6254c5 3231
d911ec67 3232
f11781c5
AK
3233 test -n "$ac_ct_CC" && break
3234done
d911ec67 3235
f11781c5
AK
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240yes:)
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243ac_tool_warned=yes ;;
d911ec67 3244esac
f11781c5
AK
3245 CC=$ac_ct_CC
3246 fi
3247fi
ad6254c5
AK
3248
3249fi
d911ec67
AK
3250
3251
f11781c5
AK
3252test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254as_fn_error $? "no acceptable C compiler found in \$PATH
3255See \`config.log' for more details" "$LINENO" 5; }
3256
3257# Provide some information about the compiler.
3258$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3259set X $ac_compile
3260ac_compiler=$2
3261for ac_option in --version -v -V -qversion; do
3262 { { ac_try="$ac_compiler $ac_option >&5"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 ac_status=$?
3271 if test -s conftest.err; then
3272 sed '10a\
3273... rest of stderr output deleted ...
3274 10q' conftest.err >conftest.er1
3275 cat conftest.er1 >&5
3276 fi
3277 rm -f conftest.er1 conftest.err
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280done
ad6254c5 3281
f11781c5 3282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3283/* end confdefs.h. */
f11781c5 3284
ad6254c5
AK
3285int
3286main ()
3287{
f11781c5 3288
ad6254c5
AK
3289 ;
3290 return 0;
3291}
3292_ACEOF
f11781c5
AK
3293ac_clean_files_save=$ac_clean_files
3294ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295# Try to create an executable without -o first, disregard a.out.
3296# It will help us diagnose broken compilers, and finding out an intuition
3297# of exeext.
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299$as_echo_n "checking whether the C compiler works... " >&6; }
3300ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301
3302# The possible output files:
3303ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304
3305ac_rmfiles=
3306for ac_file in $ac_files
3307do
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 esac
3312done
3313rm -f $ac_rmfiles
3314
3315if { { ac_try="$ac_link_default"
7a197a62
AK
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
f11781c5
AK
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link_default") 2>&5
ad6254c5 3323 ac_status=$?
f11781c5
AK
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328# in a Makefile. We should not override ac_cv_exeext if it was cached,
3329# so that the user can short-circuit this test for compilers unknown to
3330# Autoconf.
3331for ac_file in $ac_files ''
3332do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 ;;
3337 [ab].out )
3338 # We found the default executable, but exeext='' is most
3339 # certainly right.
3340 break;;
3341 *.* )
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 then :; else
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 fi
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3350 # actually working.
3351 break;;
3352 * )
3353 break;;
3354 esac
3355done
3356test "$ac_cv_exeext" = no && ac_cv_exeext=
3357
ad6254c5 3358else
f11781c5
AK
3359 ac_file=''
3360fi
3361if test -z "$ac_file"; then :
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
ec6a6fbe 3364$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
f11781c5
AK
3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error 77 "C compiler cannot create executables
3370See \`config.log' for more details" "$LINENO" 5; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373$as_echo "yes" >&6; }
ad6254c5 3374fi
f11781c5
AK
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3376$as_echo_n "checking for C compiler default output file name... " >&6; }
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3378$as_echo "$ac_file" >&6; }
3379ac_exeext=$ac_cv_exeext
7a197a62 3380
f11781c5
AK
3381rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3382ac_clean_files=$ac_clean_files_save
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3384$as_echo_n "checking for suffix of executables... " >&6; }
3385if { { ac_try="$ac_link"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
8a2fc586 3389esac
f11781c5
AK
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3397# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3398# work properly (i.e., refer to `conftest.exe'), while it won't with
3399# `rm'.
3400for ac_file in conftest.exe conftest conftest.*; do
3401 test -f "$ac_file" || continue
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 break;;
3406 * ) break;;
3407 esac
3408done
3409else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3413See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3414fi
f11781c5
AK
3415rm -f conftest conftest$ac_cv_exeext
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3417$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3418
f11781c5
AK
3419rm -f conftest.$ac_ext
3420EXEEXT=$ac_cv_exeext
3421ac_exeext=$EXEEXT
3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3423/* end confdefs.h. */
f11781c5 3424#include <stdio.h>
ad6254c5 3425int
f11781c5 3426main ()
ad6254c5 3427{
f11781c5
AK
3428FILE *f = fopen ("conftest.out", "w");
3429 return ferror (f) || fclose (f) != 0;
ad6254c5 3430
f11781c5 3431 ;
7a197a62 3432 return 0;
ad6254c5 3433}
ad6254c5 3434_ACEOF
f11781c5
AK
3435ac_clean_files="$ac_clean_files conftest.out"
3436# Check that the compiler produces executables we can run. If not, either
3437# the compiler is broken, or we cross compile.
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3439$as_echo_n "checking whether we are cross compiling... " >&6; }
3440if test "$cross_compiling" != yes; then
3441 { { ac_try="$ac_link"
7a197a62
AK
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
f11781c5
AK
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
7a197a62 3448 (eval "$ac_link") 2>&5
ad6254c5 3449 ac_status=$?
f11781c5
AK
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }
3452 if { ac_try='./conftest$ac_cv_exeext'
3453 { { case "(($ac_try" in
7a197a62
AK
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
f11781c5
AK
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
7a197a62 3459 (eval "$ac_try") 2>&5
ad6254c5 3460 ac_status=$?
f11781c5
AK
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; }; then
3463 cross_compiling=no
3464 else
3465 if test "$cross_compiling" = maybe; then
3466 cross_compiling=yes
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error $? "cannot run C compiled programs.
3471If you meant to cross compile, use \`--host'.
3472See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 fi
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3477$as_echo "$cross_compiling" >&6; }
3478
3479rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3480ac_clean_files=$ac_clean_files_save
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3482$as_echo_n "checking for suffix of object files... " >&6; }
3483if test "${ac_cv_objext+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h. */
ad6254c5
AK
3488
3489int
3490main ()
3491{
f11781c5 3492
ad6254c5
AK
3493 ;
3494 return 0;
3495}
3496_ACEOF
f11781c5
AK
3497rm -f conftest.o conftest.obj
3498if { { ac_try="$ac_compile"
7a197a62
AK
3499case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
f11781c5
AK
3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504$as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compile") 2>&5
ad6254c5 3506 ac_status=$?
f11781c5
AK
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 for ac_file in conftest.o conftest.obj conftest.*; do
3510 test -f "$ac_file" || continue;
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 break;;
3515 esac
3516done
ad6254c5 3517else
ec6a6fbe 3518 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
f11781c5
AK
3521{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot compute suffix of object files: cannot compile
3524See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3525fi
f11781c5 3526rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3527fi
f11781c5
AK
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3529$as_echo "$ac_cv_objext" >&6; }
3530OBJEXT=$ac_cv_objext
3531ac_objext=$OBJEXT
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3535 $as_echo_n "(cached) " >&6
ad6254c5 3536else
f11781c5 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3538/* end confdefs.h. */
3539
ad6254c5
AK
3540int
3541main ()
3542{
f11781c5
AK
3543#ifndef __GNUC__
3544 choke me
3545#endif
3546
ad6254c5
AK
3547 ;
3548 return 0;
3549}
3550_ACEOF
f11781c5
AK
3551if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_compiler_gnu=yes
ad6254c5 3553else
f11781c5 3554 ac_compiler_gnu=no
ad6254c5 3555fi
f11781c5
AK
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3558
d0191583 3559fi
f11781c5
AK
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562if test $ac_compiler_gnu = yes; then
3563 GCC=yes
d0191583 3564else
f11781c5 3565 GCC=
d0191583 3566fi
f11781c5
AK
3567ac_test_CFLAGS=${CFLAGS+set}
3568ac_save_CFLAGS=$CFLAGS
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570$as_echo_n "checking whether $CC accepts -g... " >&6; }
3571if test "${ac_cv_prog_cc_g+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3576 ac_cv_prog_cc_g=no
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h. */
72b2cb61 3580
f11781c5
AK
3581int
3582main ()
3583{
72b2cb61 3584
f11781c5
AK
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3591else
3592 CFLAGS=""
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h. */
ad6254c5 3595
f11781c5
AK
3596int
3597main ()
3598{
ad6254c5 3599
f11781c5
AK
3600 ;
3601 return 0;
3602}
d0191583 3603_ACEOF
f11781c5
AK
3604if ac_fn_c_try_compile "$LINENO"; then :
3605
3606else
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3610/* end confdefs.h. */
7a197a62 3611
f11781c5
AK
3612int
3613main ()
3614{
ad6254c5 3615
f11781c5
AK
3616 ;
3617 return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_g=yes
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626fi
3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631$as_echo "$ac_cv_prog_cc_g" >&6; }
3632if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3636 CFLAGS="-g -O2"
3637 else
3638 CFLAGS="-g"
3639 fi
3640else
3641 if test "$GCC" = yes; then
3642 CFLAGS="-O2"
3643 else
3644 CFLAGS=
3645 fi
3646fi
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649if test "${ac_cv_prog_cc_c89+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651else
3652 ac_cv_prog_cc_c89=no
3653ac_save_CC=$CC
3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h. */
3656#include <stdarg.h>
3657#include <stdio.h>
3658#include <sys/types.h>
3659#include <sys/stat.h>
3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661struct buf { int x; };
3662FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663static char *e (p, i)
3664 char **p;
3665 int i;
3666{
3667 return p[i];
3668}
3669static char *f (char * (*g) (char **, int), char **p, ...)
3670{
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3677}
ad6254c5 3678
f11781c5
AK
3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3687
f11781c5
AK
3688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3690#define FOO(x) 'x'
3691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3692
f11781c5
AK
3693int test (int i, double x);
3694struct s1 {int (*f) (int a);};
3695struct s2 {int (*f) (double a);};
3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697int argc;
3698char **argv;
d0191583
JM
3699int
3700main ()
3701{
f11781c5 3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3703 ;
3704 return 0;
3705}
72b2cb61 3706_ACEOF
f11781c5
AK
3707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709do
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c89=$ac_arg
3713fi
3714rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c89" != "xno" && break
3716done
3717rm -f conftest.$ac_ext
3718CC=$ac_save_CC
3719
3720fi
3721# AC_CACHE_VAL
3722case "x$ac_cv_prog_cc_c89" in
3723 x)
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725$as_echo "none needed" >&6; } ;;
3726 xno)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728$as_echo "unsupported" >&6; } ;;
3729 *)
3730 CC="$CC $ac_cv_prog_cc_c89"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3733esac
f11781c5
AK
3734if test "x$ac_cv_prog_cc_c89" != xno; then :
3735
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3743
ad6254c5 3744
7a197a62 3745
f11781c5
AK
3746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752$as_echo_n "checking how to run the C preprocessor... " >&6; }
3753# On Suns, sometimes $CPP names a directory.
3754if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3756fi
3757if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3759 $as_echo_n "(cached) " >&6
ad6254c5 3760else
f11781c5
AK
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763 do
3764 ac_preproc_ok=false
3765for ac_c_preproc_warn_flag in '' yes
3766do
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3774/* end confdefs.h. */
d0191583
JM
3775#ifdef __STDC__
3776# include <limits.h>
3777#else
3778# include <assert.h>
3779#endif
f11781c5
AK
3780 Syntax error
3781_ACEOF
3782if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3783
f11781c5
AK
3784else
3785 # Broken: fails on valid input.
3786continue
3787fi
3788rm -f conftest.err conftest.$ac_ext
d0191583 3789
f11781c5
AK
3790 # OK, works on sane cases. Now check whether nonexistent headers
3791 # can be detected and how.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h. */
3794#include <ac_nonexistent.h>
72b2cb61 3795_ACEOF
f11781c5
AK
3796if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: success on invalid input.
3798continue
d0191583 3799else
f11781c5
AK
3800 # Passes both tests.
3801ac_preproc_ok=:
3802break
ad6254c5 3803fi
f11781c5 3804rm -f conftest.err conftest.$ac_ext
ad6254c5 3805
f11781c5
AK
3806done
3807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808rm -f conftest.err conftest.$ac_ext
3809if $ac_preproc_ok; then :
3810 break
7a197a62
AK
3811fi
3812
f11781c5
AK
3813 done
3814 ac_cv_prog_CPP=$CPP
ad6254c5 3815
7a197a62 3816fi
f11781c5
AK
3817 CPP=$ac_cv_prog_CPP
3818else
3819 ac_cv_prog_CPP=$CPP
d0191583 3820fi
f11781c5
AK
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822$as_echo "$CPP" >&6; }
3823ac_preproc_ok=false
3824for ac_c_preproc_warn_flag in '' yes
3825do
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834#ifdef __STDC__
3835# include <limits.h>
3836#else
3837# include <assert.h>
3838#endif
3839 Syntax error
3840_ACEOF
3841if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3842
9c961554 3843else
f11781c5
AK
3844 # Broken: fails on valid input.
3845continue
9c961554 3846fi
f11781c5 3847rm -f conftest.err conftest.$ac_ext
9c961554 3848
f11781c5
AK
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h. */
3853#include <ac_nonexistent.h>
3854_ACEOF
3855if ac_fn_c_try_cpp "$LINENO"; then :
3856 # Broken: success on invalid input.
3857continue
3858else
3859 # Passes both tests.
3860ac_preproc_ok=:
3861break
3862fi
3863rm -f conftest.err conftest.$ac_ext
ad6254c5 3864
f11781c5
AK
3865done
3866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867rm -f conftest.err conftest.$ac_ext
3868if $ac_preproc_ok; then :
d0191583 3869
f11781c5
AK
3870else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3875fi
3876
f11781c5
AK
3877ac_ext=c
3878ac_cpp='$CPP $CPPFLAGS'
3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3882
ad6254c5 3883
f11781c5
AK
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3885$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886if test "${ac_cv_path_GREP+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888else
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3901# Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903case `"$ac_path_GREP" --version 2>&1` in
3904*GNU*)
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906*)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927esac
ad6254c5 3928
f11781c5
AK
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3932 done
3933IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_GREP"; then
3935 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3936 fi
3937else
3938 ac_cv_path_GREP=$GREP
7a197a62
AK
3939fi
3940
d0191583 3941fi
f11781c5
AK
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3943$as_echo "$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
ad6254c5 3945
24bbc4d7 3946
f11781c5
AK
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3948$as_echo_n "checking for egrep... " >&6; }
3949if test "${ac_cv_path_EGREP+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953 then ac_cv_path_EGREP="$GREP -E"
3954 else
3955 if test -z "$EGREP"; then
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3967# Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969case `"$ac_path_EGREP" --version 2>&1` in
3970*GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972*)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993esac
24bbc4d7 3994
f11781c5
AK
3995 $ac_path_EGREP_found && break 3
3996 done
3997 done
3998 done
3999IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_EGREP"; then
4001 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002 fi
24bbc4d7 4003else
f11781c5 4004 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4005fi
4006
f11781c5 4007 fi
24bbc4d7 4008fi
f11781c5
AK
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4010$as_echo "$ac_cv_path_EGREP" >&6; }
4011 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4012
4013
f11781c5
AK
4014if test $ac_cv_c_compiler_gnu = yes; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4016$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4017if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
93bd259b 4019else
f11781c5
AK
4020 ac_pattern="Autoconf.*'x'"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h. */
4023#include <sgtty.h>
4024Autoconf TIOCGETP
4025_ACEOF
4026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4028 ac_cv_prog_gcc_traditional=yes
d0191583 4029else
f11781c5 4030 ac_cv_prog_gcc_traditional=no
7a197a62 4031fi
f11781c5 4032rm -f conftest*
7a197a62 4033
72b2cb61 4034
f11781c5
AK
4035 if test $ac_cv_prog_gcc_traditional = no; then
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038#include <termio.h>
4039Autoconf TCGETA
72b2cb61 4040_ACEOF
f11781c5
AK
4041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4043 ac_cv_prog_gcc_traditional=yes
ad6254c5 4044fi
f11781c5 4045rm -f conftest*
ad6254c5 4046
f11781c5 4047 fi
7a197a62 4048fi
f11781c5
AK
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4050$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4051 if test $ac_cv_prog_gcc_traditional = yes; then
4052 CC="$CC -traditional"
4053 fi
ad6254c5
AK
4054fi
4055
f11781c5
AK
4056# Find a good install program. We prefer a C program (faster),
4057# so one script is as good as another. But avoid the broken or
4058# incompatible versions:
4059# SysV /etc/install, /usr/sbin/install
4060# SunOS /usr/etc/install
4061# IRIX /sbin/install
4062# AIX /bin/install
4063# AmigaOS /C/install, which installs bootblocks on floppy discs
4064# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4065# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4066# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4067# OS/2's system install, which has a completely different semantic
4068# ./install, which can be erroneously created by make from ./install.sh.
4069# Reject install programs that cannot install multiple files.
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4071$as_echo_n "checking for a BSD-compatible install... " >&6; }
4072if test -z "$INSTALL"; then
4073if test "${ac_cv_path_install+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
ad6254c5 4075else
f11781c5
AK
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 # Account for people who put trailing slashes in PATH elements.
4082case $as_dir/ in #((
4083 ./ | .// | /[cC]/* | \
4084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4085 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4086 /usr/ucb/* ) ;;
4087 *)
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4090 # by default.
4091 for ac_prog in ginstall scoinst install; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4094 if test $ac_prog = install &&
4095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # AIX install. It has an incompatible calling convention.
4097 :
4098 elif test $ac_prog = install &&
4099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # program-specific install script used by HP pwplus--don't use.
4101 :
4102 else
4103 rm -rf conftest.one conftest.two conftest.dir
4104 echo one > conftest.one
4105 echo two > conftest.two
4106 mkdir conftest.dir
4107 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4108 test -s conftest.one && test -s conftest.two &&
4109 test -s conftest.dir/conftest.one &&
4110 test -s conftest.dir/conftest.two
4111 then
4112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4113 break 3
4114 fi
4115 fi
4116 fi
4117 done
4118 done
4119 ;;
4120esac
7a197a62 4121
f11781c5
AK
4122 done
4123IFS=$as_save_IFS
d0191583 4124
f11781c5 4125rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4126
4127fi
f11781c5
AK
4128 if test "${ac_cv_path_install+set}" = set; then
4129 INSTALL=$ac_cv_path_install
4130 else
4131 # As a last resort, use the slow shell script. Don't cache a
4132 # value for INSTALL within a source directory, because that will
4133 # break other packages using the cache if that directory is
4134 # removed, or if the value is a relative name.
4135 INSTALL=$ac_install_sh
4136 fi
7a197a62 4137fi
f11781c5
AK
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4139$as_echo "$INSTALL" >&6; }
7a197a62 4140
f11781c5
AK
4141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4142# It thinks the first close brace ends the variable substitution.
4143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4144
f11781c5 4145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4146
f11781c5 4147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4148
f11781c5
AK
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4150$as_echo_n "checking whether ln -s works... " >&6; }
4151LN_S=$as_ln_s
4152if test "$LN_S" = "ln -s"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154$as_echo "yes" >&6; }
4155else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4157$as_echo "no, using $LN_S" >&6; }
15d91f5a 4158fi
ad6254c5 4159
f11781c5
AK
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4162set x ${MAKE-make}
4163ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4165 $as_echo_n "(cached) " >&6
d0191583 4166else
f11781c5
AK
4167 cat >conftest.make <<\_ACEOF
4168SHELL = /bin/sh
4169all:
4170 @echo '@@@%%%=$(MAKE)=@@@%%%'
4171_ACEOF
4172# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4173case `${MAKE-make} -f conftest.make 2>/dev/null` in
4174 *@@@%%%=?*=@@@%%%*)
4175 eval ac_cv_prog_make_${ac_make}_set=yes;;
4176 *)
4177 eval ac_cv_prog_make_${ac_make}_set=no;;
4178esac
4179rm -f conftest.make
4180fi
4181if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183$as_echo "yes" >&6; }
4184 SET_MAKE=
4185else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4189fi
4190
f11781c5
AK
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4192$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4193if test -z "$MKDIR_P"; then
4194 if test "${ac_cv_path_mkdir+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in mkdir gmkdir; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4206 'mkdir (GNU coreutils) '* | \
4207 'mkdir (coreutils) '* | \
4208 'mkdir (fileutils) '4.1*)
4209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4210 break 3;;
4211 esac
4212 done
4213 done
4214 done
4215IFS=$as_save_IFS
d0191583 4216
f11781c5 4217fi
ad6254c5 4218
f11781c5
AK
4219 test -d ./--version && rmdir ./--version
4220 if test "${ac_cv_path_mkdir+set}" = set; then
4221 MKDIR_P="$ac_cv_path_mkdir -p"
4222 else
4223 # As a last resort, use the slow shell script. Don't cache a
4224 # value for MKDIR_P within a source directory, because that will
4225 # break other packages using the cache if that directory is
4226 # removed, or if the value is a relative name.
4227 MKDIR_P="$ac_install_sh -d"
4228 fi
ad6254c5 4229fi
f11781c5
AK
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4231$as_echo "$MKDIR_P" >&6; }
7a197a62 4232
f11781c5
AK
4233if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_RANLIB+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255done
4256 done
4257IFS=$as_save_IFS
d0191583 4258
f11781c5
AK
4259fi
4260fi
4261RANLIB=$ac_cv_prog_RANLIB
4262if test -n "$RANLIB"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4264$as_echo "$RANLIB" >&6; }
d0191583 4265else
f11781c5
AK
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
ad6254c5 4268fi
ad6254c5 4269
8a2fc586 4270
d0191583 4271fi
f11781c5
AK
4272if test -z "$ac_cv_prog_RANLIB"; then
4273 ac_ct_RANLIB=$RANLIB
4274 # Extract the first word of "ranlib", so it can be a program name with args.
4275set dummy ranlib; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
4278if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280else
4281 if test -n "$ac_ct_RANLIB"; then
4282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_RANLIB="ranlib"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296 done
4297IFS=$as_save_IFS
8a2fc586 4298
f11781c5
AK
4299fi
4300fi
4301ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4302if test -n "$ac_ct_RANLIB"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4304$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4305else
f11781c5
AK
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
8fea97b7
ZK
4308fi
4309
f11781c5
AK
4310 if test "x$ac_ct_RANLIB" = x; then
4311 RANLIB=":"
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314yes:)
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317ac_tool_warned=yes ;;
8fea97b7 4318esac
f11781c5
AK
4319 RANLIB=$ac_ct_RANLIB
4320 fi
d0191583 4321else
f11781c5 4322 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4323fi
8a2fc586 4324
f11781c5
AK
4325# Extract the first word of "cflow", so it can be a program name with args.
4326set dummy cflow; ac_word=$2
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
4329if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 case $CFLOW_CMD in
4333 [\\/]* | ?:[\\/]*)
4334 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4335 ;;
4336 *)
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH
4339do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348done
4349 done
4350IFS=$as_save_IFS
8a2fc586 4351
f11781c5
AK
4352 ;;
4353esac
ad6254c5 4354fi
f11781c5
AK
4355CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4356if test -n "$CFLOW_CMD"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4358$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4359else
f11781c5
AK
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361$as_echo "no" >&6; }
37ddf259
AK
4362fi
4363
e2997b73 4364
f11781c5
AK
4365# Extract the first word of "cscope", so it can be a program name with args.
4366set dummy cscope; ac_word=$2
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4368$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4369if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4370 $as_echo_n "(cached) " >&6
4371else
f11781c5 4372 case $CSCOPE_CMD in
e2997b73 4373 [\\/]* | ?:[\\/]*)
f11781c5 4374 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4375 ;;
4376 *)
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
f11781c5 4382 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4384 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4386 break 2
4387 fi
4388done
f11781c5 4389 done
e2997b73
AK
4390IFS=$as_save_IFS
4391
4392 ;;
4393esac
4394fi
f11781c5
AK
4395CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4396if test -n "$CSCOPE_CMD"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4398$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4399else
f11781c5 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4401$as_echo "no" >&6; }
4402fi
f11781c5
AK
4403
4404
4405
4406################################################################################
4407ac_header_dirent=no
4408for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4409 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4411$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4412if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4413 $as_echo_n "(cached) " >&6
4414else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h. */
4417#include <sys/types.h>
4418#include <$ac_hdr>
4419
4420int
4421main ()
4422{
4423if ((DIR *) 0)
4424return 0;
4425 ;
4426 return 0;
4427}
4428_ACEOF
4429if ac_fn_c_try_compile "$LINENO"; then :
4430 eval "$as_ac_Header=yes"
4431else
4432 eval "$as_ac_Header=no"
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435fi
4436eval ac_res=\$$as_ac_Header
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4438$as_echo "$ac_res" >&6; }
4439if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4440 cat >>confdefs.h <<_ACEOF
4441#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4442_ACEOF
4443
4444ac_header_dirent=$ac_hdr; break
4445fi
4446
4447done
4448# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4449if test $ac_header_dirent = dirent.h; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4451$as_echo_n "checking for library containing opendir... " >&6; }
4452if test "${ac_cv_search_opendir+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454else
4455 ac_func_search_save_LIBS=$LIBS
4456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h. */
4458
4459/* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4462#ifdef __cplusplus
4463extern "C"
4464#endif
4465char opendir ();
4466int
4467main ()
4468{
4469return opendir ();
4470 ;
4471 return 0;
4472}
4473_ACEOF
4474for ac_lib in '' dir; do
4475 if test -z "$ac_lib"; then
4476 ac_res="none required"
4477 else
4478 ac_res=-l$ac_lib
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4480 fi
4481 if ac_fn_c_try_link "$LINENO"; then :
4482 ac_cv_search_opendir=$ac_res
4483fi
4484rm -f core conftest.err conftest.$ac_objext \
4485 conftest$ac_exeext
4486 if test "${ac_cv_search_opendir+set}" = set; then :
4487 break
4488fi
4489done
4490if test "${ac_cv_search_opendir+set}" = set; then :
4491
4492else
4493 ac_cv_search_opendir=no
4494fi
4495rm conftest.$ac_ext
4496LIBS=$ac_func_search_save_LIBS
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4499$as_echo "$ac_cv_search_opendir" >&6; }
4500ac_res=$ac_cv_search_opendir
4501if test "$ac_res" != no; then :
4502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4503
4504fi
f11781c5
AK
4505
4506else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4508$as_echo_n "checking for library containing opendir... " >&6; }
4509if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4510 $as_echo_n "(cached) " >&6
4511else
f11781c5
AK
4512 ac_func_search_save_LIBS=$LIBS
4513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h. */
e2997b73 4515
f11781c5
AK
4516/* Override any GCC internal prototype to avoid an error.
4517 Use char because int might match the return type of a GCC
4518 builtin and then its argument prototype would still apply. */
4519#ifdef __cplusplus
4520extern "C"
4521#endif
4522char opendir ();
4523int
4524main ()
4525{
4526return opendir ();
4527 ;
4528 return 0;
4529}
4530_ACEOF
4531for ac_lib in '' x; do
4532 if test -z "$ac_lib"; then
4533 ac_res="none required"
4534 else
4535 ac_res=-l$ac_lib
4536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4537 fi
4538 if ac_fn_c_try_link "$LINENO"; then :
4539 ac_cv_search_opendir=$ac_res
e2997b73 4540fi
f11781c5
AK
4541rm -f core conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext
4543 if test "${ac_cv_search_opendir+set}" = set; then :
4544 break
e2997b73 4545fi
f11781c5
AK
4546done
4547if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4548
e2997b73 4549else
f11781c5
AK
4550 ac_cv_search_opendir=no
4551fi
4552rm conftest.$ac_ext
4553LIBS=$ac_func_search_save_LIBS
e2997b73 4554fi
f11781c5
AK
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4556$as_echo "$ac_cv_search_opendir" >&6; }
4557ac_res=$ac_cv_search_opendir
4558if test "$ac_res" != no; then :
4559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4560
4561fi
8c4e8a18 4562
e2997b73
AK
4563fi
4564
f11781c5
AK
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566$as_echo_n "checking for ANSI C header files... " >&6; }
4567if test "${ac_cv_header_stdc+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h. */
4572#include <stdlib.h>
4573#include <stdarg.h>
4574#include <string.h>
4575#include <float.h>
e2997b73 4576
f11781c5
AK
4577int
4578main ()
4579{
4580
4581 ;
4582 return 0;
4583}
4584_ACEOF
4585if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_header_stdc=yes
e2997b73 4587else
f11781c5 4588 ac_cv_header_stdc=no
e2997b73 4589fi
f11781c5
AK
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591
4592if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596#include <string.h>
4597
4598_ACEOF
4599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then :
4601
e2997b73 4602else
f11781c5 4603 ac_cv_header_stdc=no
e2997b73 4604fi
f11781c5 4605rm -f conftest*
e2997b73 4606
f11781c5 4607fi
e2997b73 4608
f11781c5
AK
4609if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h. */
4613#include <stdlib.h>
e2997b73 4614
f11781c5
AK
4615_ACEOF
4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4618
e2997b73 4619else
f11781c5 4620 ac_cv_header_stdc=no
e2997b73 4621fi
f11781c5 4622rm -f conftest*
e2997b73 4623
e2997b73 4624fi
90c80887 4625
f11781c5
AK
4626if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4629 :
4630else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
4633#include <ctype.h>
4634#include <stdlib.h>
4635#if ((' ' & 0x0FF) == 0x020)
4636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638#else
4639# define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644#endif
4645
4646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647int
4648main ()
4649{
4650 int i;
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4654 return 2;
4655 return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_run "$LINENO"; then :
90c80887 4659
90c80887 4660else
f11781c5 4661 ac_cv_header_stdc=no
90c80887 4662fi
f11781c5
AK
4663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4665fi
90c80887 4666
90c80887 4667fi
90c80887 4668fi
f11781c5
AK
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670$as_echo "$ac_cv_header_stdc" >&6; }
4671if test $ac_cv_header_stdc = yes; then
90c80887 4672
f11781c5 4673$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4674
90c80887 4675fi
f11781c5
AK
4676
4677# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4680do :
4681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4683"
4684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4685 cat >>confdefs.h <<_ACEOF
4686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
4688
90c80887 4689fi
f11781c5
AK
4690
4691done
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4695$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4696if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
4701#include <sys/types.h>
4702int
4703main ()
4704{
4705return makedev(0, 0);
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_link "$LINENO"; then :
4711 ac_cv_header_sys_types_h_makedev=yes
4712else
4713 ac_cv_header_sys_types_h_makedev=no
90c80887 4714fi
f11781c5
AK
4715rm -f core conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717
90c80887 4718fi
f11781c5
AK
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4720$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4721
4722if test $ac_cv_header_sys_types_h_makedev = no; then
4723ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4724if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4725
4726$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4727
a946372e 4728fi
e2997b73 4729
e2997b73 4730
a946372e 4731
f11781c5
AK
4732 if test $ac_cv_header_sys_mkdev_h = no; then
4733 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4734if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4735
4736$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4737
e2997b73 4738fi
a946372e 4739
a946372e 4740
f11781c5
AK
4741 fi
4742fi
4743
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4745$as_echo_n "checking for ANSI C header files... " >&6; }
4746if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4747 $as_echo_n "(cached) " >&6
4748else
f11781c5 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4750/* end confdefs.h. */
f11781c5
AK
4751#include <stdlib.h>
4752#include <stdarg.h>
4753#include <string.h>
4754#include <float.h>
a946372e 4755
a946372e
AK
4756int
4757main ()
4758{
f11781c5 4759
a946372e
AK
4760 ;
4761 return 0;
4762}
4763_ACEOF
f11781c5
AK
4764if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_header_stdc=yes
e2997b73 4766else
f11781c5
AK
4767 ac_cv_header_stdc=no
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770
4771if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h. */
4775#include <string.h>
4776
4777_ACEOF
4778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4780
f11781c5
AK
4781else
4782 ac_cv_header_stdc=no
a946372e 4783fi
f11781c5 4784rm -f conftest*
e2997b73 4785
a946372e 4786fi
e2997b73 4787
f11781c5
AK
4788if test $ac_cv_header_stdc = yes; then
4789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
4792#include <stdlib.h>
4793
4794_ACEOF
4795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4797
e2997b73 4798else
f11781c5 4799 ac_cv_header_stdc=no
e2997b73 4800fi
f11781c5 4801rm -f conftest*
e2997b73 4802
f11781c5 4803fi
a946372e 4804
f11781c5
AK
4805if test $ac_cv_header_stdc = yes; then
4806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807 if test "$cross_compiling" = yes; then :
4808 :
4809else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h. */
4812#include <ctype.h>
4813#include <stdlib.h>
4814#if ((' ' & 0x0FF) == 0x020)
4815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817#else
4818# define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823#endif
e2997b73 4824
f11781c5
AK
4825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826int
4827main ()
4828{
4829 int i;
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4833 return 2;
4834 return 0;
4835}
4836_ACEOF
4837if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4838
e2997b73 4839else
f11781c5 4840 ac_cv_header_stdc=no
e2997b73 4841fi
f11781c5
AK
4842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4843 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4844fi
f11781c5 4845
e2997b73 4846fi
e2997b73 4847fi
f11781c5
AK
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4849$as_echo "$ac_cv_header_stdc" >&6; }
4850if test $ac_cv_header_stdc = yes; then
e2997b73 4851
f11781c5 4852$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4853
f11781c5 4854fi
e2997b73 4855
f11781c5
AK
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4857$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4858if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h. */
4863#include <sys/types.h>
4864#include <sys/wait.h>
4865#ifndef WEXITSTATUS
4866# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4867#endif
4868#ifndef WIFEXITED
4869# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4870#endif
e2997b73 4871
f11781c5
AK
4872int
4873main ()
4874{
4875 int s;
4876 wait (&s);
4877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_header_sys_wait_h=yes
e2997b73 4884else
f11781c5 4885 ac_cv_header_sys_wait_h=no
e2997b73 4886fi
f11781c5
AK
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4890$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4891if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4892
f11781c5 4893$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4894
d0191583 4895fi
f11781c5
AK
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4898$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4899if test "${ac_cv_header_time+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
fc54be10 4901else
f11781c5 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4903/* end confdefs.h. */
f11781c5
AK
4904#include <sys/types.h>
4905#include <sys/time.h>
4906#include <time.h>
4907
4908int
4909main ()
4910{
4911if ((struct tm *) 0)
4912return 0;
4913 ;
4914 return 0;
4915}
a946372e 4916_ACEOF
f11781c5
AK
4917if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_header_time=yes
a946372e 4919else
f11781c5
AK
4920 ac_cv_header_time=no
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4925$as_echo "$ac_cv_header_time" >&6; }
4926if test $ac_cv_header_time = yes; then
4927
4928$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4929
4930fi
4931
4932
4933for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4934 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4935 sys/wait.h time.h
4936do :
4937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4940 cat >>confdefs.h <<_ACEOF
4941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942_ACEOF
d0191583 4943
f11781c5
AK
4944else
4945 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4946fi
4947
f11781c5 4948done
fddafd51 4949
f11781c5
AK
4950
4951case "$host_os" in
4952 linux*)
4953 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4954do :
4955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4958 cat >>confdefs.h <<_ACEOF
4959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4960_ACEOF
a946372e 4961
f11781c5
AK
4962else
4963 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4964fi
4965
f11781c5
AK
4966done
4967 ;;
4968 darwin*)
4969 for ac_header in machine/endian.h sys/disk.h
4970do :
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4974 cat >>confdefs.h <<_ACEOF
4975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976_ACEOF
a946372e 4977
f11781c5
AK
4978else
4979 as_fn_error $? "bailing out" "$LINENO" 5
4980fi
a946372e 4981
f11781c5
AK
4982done
4983 ;;
a946372e 4984esac
f11781c5
AK
4985
4986for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4987 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4988 sys/types.h unistd.h
4989do :
4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4992if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4993 cat >>confdefs.h <<_ACEOF
4994#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995_ACEOF
4996
a946372e 4997else
f11781c5 4998 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4999fi
a946372e 5000
f11781c5
AK
5001done
5002
5003for ac_header in termios.h sys/statvfs.h
5004do :
5005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5008 cat >>confdefs.h <<_ACEOF
5009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010_ACEOF
5011
a946372e
AK
5012fi
5013
5014done
5015
a946372e 5016
f11781c5
AK
5017################################################################################
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5019$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5020if test "${ac_cv_c_const+set}" = set; then :
a946372e 5021 $as_echo_n "(cached) " >&6
a946372e 5022else
f11781c5 5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5024/* end confdefs.h. */
a946372e 5025
f11781c5
AK
5026int
5027main ()
5028{
5029/* FIXME: Include the comments suggested by Paul. */
5030#ifndef __cplusplus
5031 /* Ultrix mips cc rejects this. */
5032 typedef int charset[2];
5033 const charset cs;
5034 /* SunOS 4.1.1 cc rejects this. */
5035 char const *const *pcpcc;
5036 char **ppc;
5037 /* NEC SVR4.0.2 mips cc rejects this. */
5038 struct point {int x, y;};
5039 static struct point const zero = {0,0};
5040 /* AIX XL C 1.02.0.0 rejects this.
5041 It does not let you subtract one const X* pointer from another in
5042 an arm of an if-expression whose if-part is not a constant
5043 expression */
5044 const char *g = "string";
5045 pcpcc = &g + (g ? g-g : 0);
5046 /* HPUX 7.0 cc rejects these. */
5047 ++pcpcc;
5048 ppc = (char**) pcpcc;
5049 pcpcc = (char const *const *) ppc;
5050 { /* SCO 3.2v4 cc rejects this. */
5051 char *t;
5052 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5053
f11781c5
AK
5054 *t++ = 0;
5055 if (s) return 0;
5056 }
5057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5058 int x[] = {25, 17};
5059 const int *foo = &x[0];
5060 ++foo;
5061 }
5062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5063 typedef const int *iptr;
5064 iptr p = 0;
5065 ++p;
5066 }
5067 { /* AIX XL C 1.02.0.0 rejects this saying
5068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5069 struct s { int j; const int *ap[3]; };
5070 struct s *b; b->j = 5;
5071 }
5072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5073 const int foo = 10;
5074 if (!foo) return 0;
5075 }
5076 return !cs[0] && !zero.x;
5077#endif
a946372e 5078
f11781c5
AK
5079 ;
5080 return 0;
5081}
a946372e 5082_ACEOF
f11781c5
AK
5083if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_c_const=yes
a946372e 5085else
f11781c5
AK
5086 ac_cv_c_const=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5089fi
f11781c5
AK
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5091$as_echo "$ac_cv_c_const" >&6; }
5092if test $ac_cv_c_const = no; then
a946372e 5093
f11781c5 5094$as_echo "#define const /**/" >>confdefs.h
a946372e 5095
f11781c5 5096fi
a946372e 5097
f11781c5
AK
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5099$as_echo_n "checking for inline... " >&6; }
5100if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5101 $as_echo_n "(cached) " >&6
5102else
f11781c5
AK
5103 ac_cv_c_inline=no
5104for ac_kw in inline __inline__ __inline; do
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#ifndef __cplusplus
5108typedef int foo_t;
5109static $ac_kw foo_t static_foo () {return 0; }
5110$ac_kw foo_t foo () {return 0; }
5111#endif
5112
5113_ACEOF
5114if ac_fn_c_try_compile "$LINENO"; then :
5115 ac_cv_c_inline=$ac_kw
a946372e 5116fi
f11781c5
AK
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 test "$ac_cv_c_inline" != no && break
5119done
a946372e
AK
5120
5121fi
f11781c5
AK
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5123$as_echo "$ac_cv_c_inline" >&6; }
5124
5125case $ac_cv_c_inline in
5126 inline | yes) ;;
5127 *)
5128 case $ac_cv_c_inline in
5129 no) ac_val=;;
5130 *) ac_val=$ac_cv_c_inline;;
5131 esac
5132 cat >>confdefs.h <<_ACEOF
5133#ifndef __cplusplus
5134#define inline $ac_val
5135#endif
5136_ACEOF
5137 ;;
5138esac
5139
5140ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5141if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5142
5143cat >>confdefs.h <<_ACEOF
5144#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5145_ACEOF
5146
f11781c5 5147
a946372e
AK
5148fi
5149
f11781c5
AK
5150ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5151if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5152
a946372e 5153else
f11781c5
AK
5154
5155cat >>confdefs.h <<_ACEOF
5156#define off_t long int
5157_ACEOF
5158
a946372e
AK
5159fi
5160
f11781c5
AK
5161ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5162if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5163
a946372e 5164else
f11781c5
AK
5165
5166cat >>confdefs.h <<_ACEOF
5167#define pid_t int
5168_ACEOF
5169
5170fi
5171
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5173$as_echo_n "checking return type of signal handlers... " >&6; }
5174if test "${ac_cv_type_signal+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
a946372e 5176else
f11781c5
AK
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h. */
5179#include <sys/types.h>
5180#include <signal.h>
5181
5182int
5183main ()
5184{
5185return *(signal (0, 0)) (0) == 1;
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_cv_type_signal=int
5192else
5193 ac_cv_type_signal=void
a946372e 5194fi
f11781c5 5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5196fi
f11781c5
AK
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5198$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5199
f11781c5
AK
5200cat >>confdefs.h <<_ACEOF
5201#define RETSIGTYPE $ac_cv_type_signal
5202_ACEOF
a946372e
AK
5203
5204
f11781c5
AK
5205ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5206if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5207
a946372e 5208else
a946372e 5209
f11781c5
AK
5210cat >>confdefs.h <<_ACEOF
5211#define size_t unsigned int
5212_ACEOF
a946372e 5213
a946372e 5214fi
f11781c5
AK
5215
5216ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5217if test "x$ac_cv_type_mode_t" = x""yes; then :
5218
a946372e 5219else
f11781c5
AK
5220
5221cat >>confdefs.h <<_ACEOF
5222#define mode_t int
a946372e 5223_ACEOF
a946372e 5224
a946372e
AK
5225fi
5226
f11781c5
AK
5227ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5228case $ac_cv_c_int8_t in #(
5229 no|yes) ;; #(
5230 *)
a946372e 5231
f11781c5
AK
5232cat >>confdefs.h <<_ACEOF
5233#define int8_t $ac_cv_c_int8_t
a946372e 5234_ACEOF
f11781c5 5235;;
a946372e 5236esac
a946372e 5237
f11781c5
AK
5238ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5239case $ac_cv_c_int16_t in #(
5240 no|yes) ;; #(
5241 *)
a946372e 5242
f11781c5
AK
5243cat >>confdefs.h <<_ACEOF
5244#define int16_t $ac_cv_c_int16_t
5245_ACEOF
5246;;
5247esac
a946372e 5248
f11781c5
AK
5249ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5250case $ac_cv_c_int32_t in #(
5251 no|yes) ;; #(
5252 *)
a946372e 5253
f11781c5
AK
5254cat >>confdefs.h <<_ACEOF
5255#define int32_t $ac_cv_c_int32_t
5256_ACEOF
5257;;
a946372e 5258esac
a946372e 5259
f11781c5
AK
5260ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5261case $ac_cv_c_int64_t in #(
5262 no|yes) ;; #(
5263 *)
5264
5265cat >>confdefs.h <<_ACEOF
5266#define int64_t $ac_cv_c_int64_t
a946372e 5267_ACEOF
f11781c5
AK
5268;;
5269esac
5270
5271ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5272if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5273
5274else
a946372e 5275
f11781c5
AK
5276cat >>confdefs.h <<_ACEOF
5277#define ssize_t int
5278_ACEOF
a946372e 5279
f11781c5 5280fi
a946372e 5281
f11781c5
AK
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5283$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5284if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5285 $as_echo_n "(cached) " >&6
a946372e 5286else
f11781c5 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5288/* end confdefs.h. */
f11781c5
AK
5289#include <sys/types.h>
5290
a946372e 5291_ACEOF
f11781c5
AK
5292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "uid_t" >/dev/null 2>&1; then :
5294 ac_cv_type_uid_t=yes
a946372e 5295else
f11781c5
AK
5296 ac_cv_type_uid_t=no
5297fi
5298rm -f conftest*
a946372e 5299
a946372e 5300fi
f11781c5
AK
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5302$as_echo "$ac_cv_type_uid_t" >&6; }
5303if test $ac_cv_type_uid_t = no; then
a946372e 5304
f11781c5 5305$as_echo "#define uid_t int" >>confdefs.h
a946372e 5306
f11781c5
AK
5307
5308$as_echo "#define gid_t int" >>confdefs.h
5309
5310fi
5311
5312ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5313case $ac_cv_c_uint8_t in #(
5314 no|yes) ;; #(
5315 *)
5316
5317$as_echo "#define _UINT8_T 1" >>confdefs.h
5318
5319
5320cat >>confdefs.h <<_ACEOF
5321#define uint8_t $ac_cv_c_uint8_t
a946372e 5322_ACEOF
f11781c5
AK
5323;;
5324 esac
5325
5326ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5327case $ac_cv_c_uint16_t in #(
5328 no|yes) ;; #(
5329 *)
5330
5331
5332cat >>confdefs.h <<_ACEOF
5333#define uint16_t $ac_cv_c_uint16_t
a946372e 5334_ACEOF
f11781c5
AK
5335;;
5336 esac
a946372e 5337
f11781c5
AK
5338ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5339case $ac_cv_c_uint32_t in #(
5340 no|yes) ;; #(
5341 *)
a946372e 5342
f11781c5 5343$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5344
a946372e 5345
f11781c5
AK
5346cat >>confdefs.h <<_ACEOF
5347#define uint32_t $ac_cv_c_uint32_t
5348_ACEOF
5349;;
5350 esac
5351
5352ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5353case $ac_cv_c_uint64_t in #(
5354 no|yes) ;; #(
5355 *)
5356
5357$as_echo "#define _UINT64_T 1" >>confdefs.h
5358
5359
5360cat >>confdefs.h <<_ACEOF
5361#define uint64_t $ac_cv_c_uint64_t
5362_ACEOF
5363;;
5364 esac
5365
5366ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5367if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5368
5369cat >>confdefs.h <<_ACEOF
5370#define HAVE_STRUCT_STAT_ST_RDEV 1
5371_ACEOF
5372
5373
5374fi
5375
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5377$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5378if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5379 $as_echo_n "(cached) " >&6
5380else
f11781c5
AK
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <sys/types.h>
5384#include <time.h>
5385
5386int
5387main ()
5388{
5389struct tm tm;
5390 int *p = &tm.tm_sec;
5391 return !p;
5392 ;
5393 return 0;
5394}
5395_ACEOF
5396if ac_fn_c_try_compile "$LINENO"; then :
5397 ac_cv_struct_tm=time.h
5398else
5399 ac_cv_struct_tm=sys/time.h
a946372e 5400fi
f11781c5
AK
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5404$as_echo "$ac_cv_struct_tm" >&6; }
5405if test $ac_cv_struct_tm = sys/time.h; then
5406
5407$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5408
5409fi
f11781c5
AK
5410
5411
5412################################################################################
5413for ac_func in ftruncate gethostname getpagesize \
5414 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5415 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5416 strstr strtol strtoul uname
5417do :
5418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5419ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5420if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5421 cat >>confdefs.h <<_ACEOF
f11781c5 5422#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5423_ACEOF
5424
5425else
f11781c5 5426 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5427fi
a946372e
AK
5428done
5429
f11781c5
AK
5430for ac_func in siginterrupt
5431do :
5432 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5433if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5434 cat >>confdefs.h <<_ACEOF
5435#define HAVE_SIGINTERRUPT 1
5436_ACEOF
a946372e 5437
f11781c5
AK
5438fi
5439done
a946372e 5440
f11781c5
AK
5441# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5442# for constant arguments. Useless!
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5444$as_echo_n "checking for working alloca.h... " >&6; }
5445if test "${ac_cv_working_alloca_h+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
a946372e 5447else
f11781c5
AK
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
5450#include <alloca.h>
5451int
5452main ()
5453{
5454char *p = (char *) alloca (2 * sizeof (int));
5455 if (p) return 0;
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_link "$LINENO"; then :
5461 ac_cv_working_alloca_h=yes
a946372e 5462else
f11781c5 5463 ac_cv_working_alloca_h=no
a946372e 5464fi
f11781c5
AK
5465rm -f core conftest.err conftest.$ac_objext \
5466 conftest$ac_exeext conftest.$ac_ext
a946372e 5467fi
f11781c5
AK
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5469$as_echo "$ac_cv_working_alloca_h" >&6; }
5470if test $ac_cv_working_alloca_h = yes; then
a946372e 5471
f11781c5 5472$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5473
a946372e 5474fi
a946372e 5475
f11781c5
AK
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5477$as_echo_n "checking for alloca... " >&6; }
5478if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5479 $as_echo_n "(cached) " >&6
a946372e 5480else
f11781c5 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5482/* end confdefs.h. */
f11781c5
AK
5483#ifdef __GNUC__
5484# define alloca __builtin_alloca
5485#else
5486# ifdef _MSC_VER
5487# include <malloc.h>
5488# define alloca _alloca
5489# else
5490# ifdef HAVE_ALLOCA_H
5491# include <alloca.h>
5492# else
5493# ifdef _AIX
5494 #pragma alloca
5495# else
5496# ifndef alloca /* predefined by HP cc +Olibcalls */
5497char *alloca ();
5498# endif
5499# endif
5500# endif
5501# endif
5502#endif
a946372e 5503
f11781c5
AK
5504int
5505main ()
5506{
5507char *p = (char *) alloca (1);
5508 if (p) return 0;
5509 ;
5510 return 0;
5511}
a946372e 5512_ACEOF
f11781c5
AK
5513if ac_fn_c_try_link "$LINENO"; then :
5514 ac_cv_func_alloca_works=yes
a946372e 5515else
f11781c5 5516 ac_cv_func_alloca_works=no
a946372e 5517fi
f11781c5
AK
5518rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5522$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5523
f11781c5 5524if test $ac_cv_func_alloca_works = yes; then
a946372e 5525
f11781c5 5526$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5527
a946372e 5528else
f11781c5
AK
5529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5530# that cause trouble. Some versions do not even contain alloca or
5531# contain a buggy version. If you still want to use their alloca,
5532# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5533
f11781c5 5534ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5535
f11781c5 5536$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5537
a946372e 5538
f11781c5
AK
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5540$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5541if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5542 $as_echo_n "(cached) " >&6
a946372e 5543else
f11781c5 5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5545/* end confdefs.h. */
f11781c5
AK
5546#if defined CRAY && ! defined CRAY2
5547webecray
5548#else
5549wenotbecray
5550#endif
5551
a946372e 5552_ACEOF
f11781c5
AK
5553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554 $EGREP "webecray" >/dev/null 2>&1; then :
5555 ac_cv_os_cray=yes
a946372e 5556else
f11781c5 5557 ac_cv_os_cray=no
a946372e 5558fi
f11781c5 5559rm -f conftest*
a946372e 5560
f11781c5
AK
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5563$as_echo "$ac_cv_os_cray" >&6; }
5564if test $ac_cv_os_cray = yes; then
5565 for ac_func in _getb67 GETB67 getb67; do
5566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5569
f11781c5
AK
5570cat >>confdefs.h <<_ACEOF
5571#define CRAY_STACKSEG_END $ac_func
a946372e 5572_ACEOF
a946372e 5573
f11781c5 5574 break
a946372e
AK
5575fi
5576
f11781c5
AK
5577 done
5578fi
a946372e 5579
f11781c5
AK
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5581$as_echo_n "checking stack direction for C alloca... " >&6; }
5582if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5583 $as_echo_n "(cached) " >&6
5584else
f11781c5
AK
5585 if test "$cross_compiling" = yes; then :
5586 ac_cv_c_stack_direction=0
5587else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h. */
5590$ac_includes_default
5591int
5592find_stack_direction ()
5593{
5594 static char *addr = 0;
5595 auto char dummy;
5596 if (addr == 0)
5597 {
5598 addr = &dummy;
5599 return find_stack_direction ();
5600 }
5601 else
5602 return (&dummy > addr) ? 1 : -1;
5603}
5604
5605int
5606main ()
5607{
5608 return find_stack_direction () < 0;
5609}
5610_ACEOF
5611if ac_fn_c_try_run "$LINENO"; then :
5612 ac_cv_c_stack_direction=1
5613else
5614 ac_cv_c_stack_direction=-1
5615fi
5616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5617 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5618fi
a946372e
AK
5619
5620fi
f11781c5
AK
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5622$as_echo "$ac_cv_c_stack_direction" >&6; }
5623cat >>confdefs.h <<_ACEOF
5624#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5625_ACEOF
5626
f11781c5 5627
a946372e
AK
5628fi
5629
f11781c5
AK
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5631$as_echo_n "checking whether closedir returns void... " >&6; }
5632if test "${ac_cv_func_closedir_void+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634else
5635 if test "$cross_compiling" = yes; then :
5636 ac_cv_func_closedir_void=yes
5637else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h. */
5640$ac_includes_default
5641#include <$ac_header_dirent>
5642#ifndef __cplusplus
5643int closedir ();
5644#endif
a946372e 5645
f11781c5
AK
5646int
5647main ()
5648{
5649return closedir (opendir (".")) != 0;
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654if ac_fn_c_try_run "$LINENO"; then :
5655 ac_cv_func_closedir_void=no
a946372e 5656else
f11781c5 5657 ac_cv_func_closedir_void=yes
a946372e 5658fi
f11781c5
AK
5659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5660 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5661fi
5662
f11781c5
AK
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5665$as_echo "$ac_cv_func_closedir_void" >&6; }
5666if test $ac_cv_func_closedir_void = yes; then
a946372e 5667
f11781c5 5668$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5669
a946372e
AK
5670fi
5671
f11781c5
AK
5672for ac_header in unistd.h
5673do :
5674 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5675if test "x$ac_cv_header_unistd_h" = x""yes; then :
5676 cat >>confdefs.h <<_ACEOF
5677#define HAVE_UNISTD_H 1
5678_ACEOF
a946372e 5679
f11781c5 5680fi
a946372e 5681
f11781c5 5682done
a946372e 5683
f11781c5
AK
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5685$as_echo_n "checking for working chown... " >&6; }
5686if test "${ac_cv_func_chown_works+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
a946372e 5688else
f11781c5
AK
5689 if test "$cross_compiling" = yes; then :
5690 ac_cv_func_chown_works=no
a946372e 5691else
f11781c5
AK
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h. */
5694$ac_includes_default
5695#include <fcntl.h>
a946372e 5696
f11781c5
AK
5697int
5698main ()
5699{
5700 char *f = "conftest.chown";
5701 struct stat before, after;
a946372e 5702
f11781c5
AK
5703 if (creat (f, 0600) < 0)
5704 return 1;
5705 if (stat (f, &before) < 0)
5706 return 1;
5707 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5708 return 1;
5709 if (stat (f, &after) < 0)
5710 return 1;
5711 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5712
f11781c5
AK
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_run "$LINENO"; then :
5718 ac_cv_func_chown_works=yes
a946372e 5719else
f11781c5 5720 ac_cv_func_chown_works=no
a946372e 5721fi
f11781c5
AK
5722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5723 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5724fi
5725
f11781c5 5726rm -f conftest.chown
a946372e 5727
f11781c5
AK
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5730$as_echo "$ac_cv_func_chown_works" >&6; }
5731if test $ac_cv_func_chown_works = yes; then
a946372e 5732
f11781c5 5733$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5734
a946372e 5735fi
a946372e 5736
f11781c5
AK
5737for ac_header in vfork.h
5738do :
5739 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5740if test "x$ac_cv_header_vfork_h" = x""yes; then :
5741 cat >>confdefs.h <<_ACEOF
5742#define HAVE_VFORK_H 1
5743_ACEOF
a946372e 5744
f11781c5 5745fi
a946372e 5746
f11781c5 5747done
a946372e 5748
f11781c5
AK
5749for ac_func in fork vfork
5750do :
5751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5752ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5753if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5754 cat >>confdefs.h <<_ACEOF
5755#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5756_ACEOF
a946372e 5757
f11781c5
AK
5758fi
5759done
a946372e 5760
f11781c5
AK
5761if test "x$ac_cv_func_fork" = xyes; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5763$as_echo_n "checking for working fork... " >&6; }
5764if test "${ac_cv_func_fork_works+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766else
5767 if test "$cross_compiling" = yes; then :
5768 ac_cv_func_fork_works=cross
5769else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772$ac_includes_default
5773int
5774main ()
5775{
a946372e 5776
f11781c5
AK
5777 /* By Ruediger Kuhlmann. */
5778 return fork () < 0;
a946372e 5779
f11781c5
AK
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784if ac_fn_c_try_run "$LINENO"; then :
5785 ac_cv_func_fork_works=yes
a946372e 5786else
f11781c5
AK
5787 ac_cv_func_fork_works=no
5788fi
5789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5790 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5791fi
a946372e 5792
f11781c5
AK
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5795$as_echo "$ac_cv_func_fork_works" >&6; }
5796
a946372e 5797else
f11781c5 5798 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5799fi
f11781c5
AK
5800if test "x$ac_cv_func_fork_works" = xcross; then
5801 case $host in
5802 *-*-amigaos* | *-*-msdosdjgpp*)
5803 # Override, as these systems have only a dummy fork() stub
5804 ac_cv_func_fork_works=no
5805 ;;
5806 *)
5807 ac_cv_func_fork_works=yes
5808 ;;
5809 esac
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5811$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5812fi
f11781c5
AK
5813ac_cv_func_vfork_works=$ac_cv_func_vfork
5814if test "x$ac_cv_func_vfork" = xyes; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5816$as_echo_n "checking for working vfork... " >&6; }
5817if test "${ac_cv_func_vfork_works+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819else
5820 if test "$cross_compiling" = yes; then :
5821 ac_cv_func_vfork_works=cross
5822else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h. */
5825/* Thanks to Paul Eggert for this test. */
5826$ac_includes_default
5827#include <sys/wait.h>
5828#ifdef HAVE_VFORK_H
5829# include <vfork.h>
5830#endif
5831/* On some sparc systems, changes by the child to local and incoming
5832 argument registers are propagated back to the parent. The compiler
5833 is told about this with #include <vfork.h>, but some compilers
5834 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5835 static variable whose address is put into a register that is
5836 clobbered by the vfork. */
5837static void
5838#ifdef __cplusplus
5839sparc_address_test (int arg)
5840# else
5841sparc_address_test (arg) int arg;
5842#endif
5843{
5844 static pid_t child;
5845 if (!child) {
5846 child = vfork ();
5847 if (child < 0) {
5848 perror ("vfork");
5849 _exit(2);
5850 }
5851 if (!child) {
5852 arg = getpid();
5853 write(-1, "", 0);
5854 _exit (arg);
5855 }
5856 }
5857}
a946372e 5858
f11781c5
AK
5859int
5860main ()
5861{
5862 pid_t parent = getpid ();
5863 pid_t child;
a946372e 5864
f11781c5 5865 sparc_address_test (0);
a946372e 5866
f11781c5 5867 child = vfork ();
a946372e 5868
f11781c5
AK
5869 if (child == 0) {
5870 /* Here is another test for sparc vfork register problems. This
5871 test uses lots of local variables, at least as many local
5872 variables as main has allocated so far including compiler
5873 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5874 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5875 reuse the register of parent for one of the local variables,
5876 since it will think that parent can't possibly be used any more
5877 in this routine. Assigning to the local variable will thus
5878 munge parent in the parent process. */
5879 pid_t
5880 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5881 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5882 /* Convince the compiler that p..p7 are live; otherwise, it might
5883 use the same hardware register for all 8 local variables. */
5884 if (p != p1 || p != p2 || p != p3 || p != p4
5885 || p != p5 || p != p6 || p != p7)
5886 _exit(1);
a946372e 5887
f11781c5
AK
5888 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5889 from child file descriptors. If the child closes a descriptor
5890 before it execs or exits, this munges the parent's descriptor
5891 as well. Test for this by closing stdout in the child. */
5892 _exit(close(fileno(stdout)) != 0);
5893 } else {
5894 int status;
5895 struct stat st;
5896
5897 while (wait(&status) != child)
5898 ;
5899 return (
5900 /* Was there some problem with vforking? */
5901 child < 0
5902
5903 /* Did the child fail? (This shouldn't happen.) */
5904 || status
5905
5906 /* Did the vfork/compiler bug occur? */
5907 || parent != getpid()
5908
5909 /* Did the file descriptor bug occur? */
5910 || fstat(fileno(stdout), &st) != 0
5911 );
5912 }
5913}
5914_ACEOF
5915if ac_fn_c_try_run "$LINENO"; then :
5916 ac_cv_func_vfork_works=yes
a946372e 5917else
f11781c5 5918 ac_cv_func_vfork_works=no
a946372e 5919fi
f11781c5
AK
5920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5921 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5922fi
f11781c5 5923
a946372e 5924fi
f11781c5
AK
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5926$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5927
f11781c5
AK
5928fi;
5929if test "x$ac_cv_func_fork_works" = xcross; then
5930 ac_cv_func_vfork_works=$ac_cv_func_vfork
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5932$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5933fi
a946372e 5934
f11781c5 5935if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5936
f11781c5 5937$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5938
a946372e 5939else
a946372e 5940
f11781c5
AK
5941$as_echo "#define vfork fork" >>confdefs.h
5942
a946372e 5943fi
f11781c5 5944if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5945
f11781c5 5946$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5947
a946372e 5948fi
f11781c5
AK
5949
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5951$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5952if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
a946372e 5954else
f11781c5
AK
5955 rm -f conftest.sym conftest.file
5956echo >conftest.file
5957if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5958 if test "$cross_compiling" = yes; then :
5959 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5960else
f11781c5 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5962/* end confdefs.h. */
f11781c5
AK
5963$ac_includes_default
5964int
5965main ()
5966{
5967struct stat sbuf;
5968 /* Linux will dereference the symlink and fail, as required by POSIX.
5969 That is better in the sense that it means we will not
5970 have to compile and use the lstat wrapper. */
5971 return lstat ("conftest.sym/", &sbuf) == 0;
5972 ;
5973 return 0;
5974}
a946372e 5975_ACEOF
f11781c5
AK
5976if ac_fn_c_try_run "$LINENO"; then :
5977 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5978else
f11781c5 5979 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5980fi
f11781c5
AK
5981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5983fi
a946372e 5984
a946372e 5985else
f11781c5
AK
5986 # If the `ln -s' command failed, then we probably don't even
5987 # have an lstat function.
5988 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5989fi
f11781c5 5990rm -f conftest.sym conftest.file
a946372e 5991
f11781c5
AK
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5994$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5995
f11781c5 5996test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5997
f11781c5
AK
5998cat >>confdefs.h <<_ACEOF
5999#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6000_ACEOF
a946372e 6001
a946372e 6002
f11781c5
AK
6003if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6004 case " $LIBOBJS " in
6005 *" lstat.$ac_objext "* ) ;;
6006 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6007 ;;
6008esac
a946372e 6009
f11781c5 6010fi
a946372e 6011
f11781c5
AK
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6013$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6014if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
a946372e 6016else
f11781c5
AK
6017 if test "$cross_compiling" = yes; then :
6018 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6019else
f11781c5
AK
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h. */
6022$ac_includes_default
6023int
6024main ()
6025{
6026struct stat sbuf;
6027 return lstat ("", &sbuf) == 0;
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032if ac_fn_c_try_run "$LINENO"; then :
6033 ac_cv_func_lstat_empty_string_bug=no
6034else
6035 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6036fi
f11781c5
AK
6037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6038 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6039fi
6040
f11781c5
AK
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6043$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6044if test $ac_cv_func_lstat_empty_string_bug = yes; then
6045 case " $LIBOBJS " in
6046 *" lstat.$ac_objext "* ) ;;
6047 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6048 ;;
6049esac
a946372e
AK
6050
6051
f11781c5
AK
6052cat >>confdefs.h <<_ACEOF
6053#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6054_ACEOF
a946372e 6055
a946372e 6056fi
a946372e 6057
f11781c5
AK
6058for ac_header in stdlib.h
6059do :
6060 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6061if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6062 cat >>confdefs.h <<_ACEOF
6063#define HAVE_STDLIB_H 1
6064_ACEOF
6065
a946372e
AK
6066fi
6067
f11781c5 6068done
a946372e 6069
f11781c5
AK
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6071$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6072if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074else
6075 if test "$cross_compiling" = yes; then :
6076 ac_cv_func_malloc_0_nonnull=no
6077else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6081# include <stdlib.h>
6082#else
6083char *malloc ();
6084#endif
a946372e 6085
f11781c5
AK
6086int
6087main ()
6088{
6089return ! malloc (0);
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_run "$LINENO"; then :
6095 ac_cv_func_malloc_0_nonnull=yes
a946372e 6096else
f11781c5 6097 ac_cv_func_malloc_0_nonnull=no
a946372e 6098fi
f11781c5
AK
6099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6100 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6101fi
f11781c5 6102
a946372e 6103fi
f11781c5
AK
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6105$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6106if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6107
f11781c5 6108$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6109
f11781c5
AK
6110else
6111 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6112
f11781c5
AK
6113 case " $LIBOBJS " in
6114 *" malloc.$ac_objext "* ) ;;
6115 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6116 ;;
6117esac
6118
6119
6120$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6121
a946372e 6122fi
a946372e 6123
a946372e 6124
f11781c5
AK
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6126$as_echo_n "checking for working memcmp... " >&6; }
6127if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6128 $as_echo_n "(cached) " >&6
a946372e 6129else
f11781c5
AK
6130 if test "$cross_compiling" = yes; then :
6131 ac_cv_func_memcmp_working=no
6132else
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6134/* end confdefs.h. */
6135$ac_includes_default
f11781c5
AK
6136int
6137main ()
6138{
a946372e 6139
f11781c5
AK
6140 /* Some versions of memcmp are not 8-bit clean. */
6141 char c0 = '\100', c1 = '\200', c2 = '\201';
6142 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6143 return 1;
a946372e 6144
f11781c5
AK
6145 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6146 or more and with at least one buffer not starting on a 4-byte boundary.
6147 William Lewis provided this test program. */
6148 {
6149 char foo[21];
6150 char bar[21];
6151 int i;
6152 for (i = 0; i < 4; i++)
6153 {
6154 char *a = foo + i;
6155 char *b = bar + i;
6156 strcpy (a, "--------01111111");
6157 strcpy (b, "--------10000000");
6158 if (memcmp (a, b, 16) >= 0)
6159 return 1;
6160 }
6161 return 0;
6162 }
a946372e 6163
f11781c5
AK
6164 ;
6165 return 0;
6166}
a946372e 6167_ACEOF
f11781c5
AK
6168if ac_fn_c_try_run "$LINENO"; then :
6169 ac_cv_func_memcmp_working=yes
a946372e 6170else
f11781c5
AK
6171 ac_cv_func_memcmp_working=no
6172fi
6173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6174 conftest.$ac_objext conftest.beam conftest.$ac_ext
6175fi
a946372e 6176
a946372e 6177fi
f11781c5
AK
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6179$as_echo "$ac_cv_func_memcmp_working" >&6; }
6180test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6181 *" memcmp.$ac_objext "* ) ;;
6182 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6183 ;;
6184esac
a946372e 6185
a946372e 6186
a946372e 6187
a946372e 6188
f11781c5
AK
6189
6190 for ac_header in $ac_header_list
6191do :
6192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6194"
6195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6196 cat >>confdefs.h <<_ACEOF
6197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198_ACEOF
6199
a946372e
AK
6200fi
6201
6202done
6203
a946372e 6204
f11781c5
AK
6205
6206
6207
6208
6209
6210
6211for ac_func in getpagesize
6212do :
6213 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6214if test "x$ac_cv_func_getpagesize" = x""yes; then :
6215 cat >>confdefs.h <<_ACEOF
6216#define HAVE_GETPAGESIZE 1
6217_ACEOF
6218
a946372e 6219fi
f11781c5
AK
6220done
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6223$as_echo_n "checking for working mmap... " >&6; }
6224if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
a946372e 6226else
f11781c5
AK
6227 if test "$cross_compiling" = yes; then :
6228 ac_cv_func_mmap_fixed_mapped=no
6229else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6231/* end confdefs.h. */
6232$ac_includes_default
f11781c5
AK
6233/* malloc might have been renamed as rpl_malloc. */
6234#undef malloc
6235
6236/* Thanks to Mike Haertel and Jim Avera for this test.
6237 Here is a matrix of mmap possibilities:
6238 mmap private not fixed
6239 mmap private fixed at somewhere currently unmapped
6240 mmap private fixed at somewhere already mapped
6241 mmap shared not fixed
6242 mmap shared fixed at somewhere currently unmapped
6243 mmap shared fixed at somewhere already mapped
6244 For private mappings, we should verify that changes cannot be read()
6245 back from the file, nor mmap's back from the file at a different
6246 address. (There have been systems where private was not correctly
6247 implemented like the infamous i386 svr4.0, and systems where the
6248 VM page cache was not coherent with the file system buffer cache
6249 like early versions of FreeBSD and possibly contemporary NetBSD.)
6250 For shared mappings, we should conversely verify that changes get
6251 propagated back to all the places they're supposed to be.
6252
6253 Grep wants private fixed already mapped.
6254 The main things grep needs to know about mmap are:
6255 * does it exist and is it safe to write into the mmap'd area
6256 * how to use it (BSD variants) */
6257
6258#include <fcntl.h>
6259#include <sys/mman.h>
6260
6261#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6262char *malloc ();
6263#endif
6264
6265/* This mess was copied from the GNU getpagesize.h. */
6266#ifndef HAVE_GETPAGESIZE
6267# ifdef _SC_PAGESIZE
6268# define getpagesize() sysconf(_SC_PAGESIZE)
6269# else /* no _SC_PAGESIZE */
6270# ifdef HAVE_SYS_PARAM_H
6271# include <sys/param.h>
6272# ifdef EXEC_PAGESIZE
6273# define getpagesize() EXEC_PAGESIZE
6274# else /* no EXEC_PAGESIZE */
6275# ifdef NBPG
6276# define getpagesize() NBPG * CLSIZE
6277# ifndef CLSIZE
6278# define CLSIZE 1
6279# endif /* no CLSIZE */
6280# else /* no NBPG */
6281# ifdef NBPC
6282# define getpagesize() NBPC
6283# else /* no NBPC */
6284# ifdef PAGESIZE
6285# define getpagesize() PAGESIZE
6286# endif /* PAGESIZE */
6287# endif /* no NBPC */
6288# endif /* no NBPG */
6289# endif /* no EXEC_PAGESIZE */
6290# else /* no HAVE_SYS_PARAM_H */
6291# define getpagesize() 8192 /* punt totally */
6292# endif /* no HAVE_SYS_PARAM_H */
6293# endif /* no _SC_PAGESIZE */
6294
6295#endif /* no HAVE_GETPAGESIZE */
6296
6297int
6298main ()
6299{
6300 char *data, *data2, *data3;
6301 const char *cdata2;
6302 int i, pagesize;
6303 int fd, fd2;
6304
6305 pagesize = getpagesize ();
6306
6307 /* First, make a file with some known garbage in it. */
6308 data = (char *) malloc (pagesize);
6309 if (!data)
6310 return 1;
6311 for (i = 0; i < pagesize; ++i)
6312 *(data + i) = rand ();
6313 umask (0);
6314 fd = creat ("conftest.mmap", 0600);
6315 if (fd < 0)
6316 return 2;
6317 if (write (fd, data, pagesize) != pagesize)
6318 return 3;
6319 close (fd);
6320
6321 /* Next, check that the tail of a page is zero-filled. File must have
6322 non-zero length, otherwise we risk SIGBUS for entire page. */
6323 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6324 if (fd2 < 0)
6325 return 4;
6326 cdata2 = "";
6327 if (write (fd2, cdata2, 1) != 1)
6328 return 5;
6329 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6330 if (data2 == MAP_FAILED)
6331 return 6;
6332 for (i = 0; i < pagesize; ++i)
6333 if (*(data2 + i))
6334 return 7;
6335 close (fd2);
6336 if (munmap (data2, pagesize))
6337 return 8;
6338
6339 /* Next, try to mmap the file at a fixed address which already has
6340 something else allocated at it. If we can, also make sure that
6341 we see the same garbage. */
6342 fd = open ("conftest.mmap", O_RDWR);
6343 if (fd < 0)
6344 return 9;
6345 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6346 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6347 return 10;
6348 for (i = 0; i < pagesize; ++i)
6349 if (*(data + i) != *(data2 + i))
6350 return 11;
6351
6352 /* Finally, make sure that changes to the mapped area do not
6353 percolate back to the file as seen by read(). (This is a bug on
6354 some variants of i386 svr4.0.) */
6355 for (i = 0; i < pagesize; ++i)
6356 *(data2 + i) = *(data2 + i) + 1;
6357 data3 = (char *) malloc (pagesize);
6358 if (!data3)
6359 return 12;
6360 if (read (fd, data3, pagesize) != pagesize)
6361 return 13;
6362 for (i = 0; i < pagesize; ++i)
6363 if (*(data + i) != *(data3 + i))
6364 return 14;
6365 close (fd);
6366 return 0;
6367}
a946372e 6368_ACEOF
f11781c5
AK
6369if ac_fn_c_try_run "$LINENO"; then :
6370 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6371else
f11781c5
AK
6372 ac_cv_func_mmap_fixed_mapped=no
6373fi
6374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375 conftest.$ac_objext conftest.beam conftest.$ac_ext
6376fi
a946372e 6377
a946372e 6378fi
f11781c5
AK
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6380$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6381if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6382
f11781c5 6383$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6384
f11781c5
AK
6385fi
6386rm -f conftest.mmap conftest.txt
6387
6388for ac_header in stdlib.h
6389do :
6390 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6391if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6392 cat >>confdefs.h <<_ACEOF
6393#define HAVE_STDLIB_H 1
a946372e 6394_ACEOF
f11781c5
AK
6395
6396fi
6397
6398done
6399
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6401$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6402if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404else
6405 if test "$cross_compiling" = yes; then :
6406 ac_cv_func_realloc_0_nonnull=no
6407else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6409/* end confdefs.h. */
f11781c5
AK
6410#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6411# include <stdlib.h>
6412#else
6413char *realloc ();
6414#endif
6415
6416int
6417main ()
6418{
6419return ! realloc (0, 0);
6420 ;
6421 return 0;
6422}
a946372e 6423_ACEOF
f11781c5
AK
6424if ac_fn_c_try_run "$LINENO"; then :
6425 ac_cv_func_realloc_0_nonnull=yes
a946372e 6426else
f11781c5
AK
6427 ac_cv_func_realloc_0_nonnull=no
6428fi
6429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6430 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6431fi
6432
f11781c5
AK
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6435$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6436if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6437
f11781c5 6438$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6439
a946372e 6440else
f11781c5
AK
6441 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6442
6443 case " $LIBOBJS " in
6444 *" realloc.$ac_objext "* ) ;;
6445 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6446 ;;
6447esac
a946372e 6448
a946372e 6449
f11781c5
AK
6450$as_echo "#define realloc rpl_realloc" >>confdefs.h
6451
a946372e
AK
6452fi
6453
a946372e 6454
f11781c5
AK
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6456$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6457if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
a946372e 6459else
f11781c5
AK
6460 if test "$cross_compiling" = yes; then :
6461 ac_cv_func_stat_empty_string_bug=yes
6462else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h. */
6465$ac_includes_default
6466int
6467main ()
6468{
6469struct stat sbuf;
6470 return stat ("", &sbuf) == 0;
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475if ac_fn_c_try_run "$LINENO"; then :
6476 ac_cv_func_stat_empty_string_bug=no
6477else
6478 ac_cv_func_stat_empty_string_bug=yes
a946372e 6479fi
f11781c5
AK
6480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6481 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6482fi
6483
8c4e8a18 6484fi
f11781c5
AK
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6486$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6487if test $ac_cv_func_stat_empty_string_bug = yes; then
6488 case " $LIBOBJS " in
6489 *" stat.$ac_objext "* ) ;;
6490 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6491 ;;
6492esac
8c4e8a18
FDN
6493
6494
6495cat >>confdefs.h <<_ACEOF
f11781c5 6496#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6497_ACEOF
6498
6499fi
6500
f11781c5
AK
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6502$as_echo_n "checking for working strtod... " >&6; }
6503if test "${ac_cv_func_strtod+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
66fd4529 6505else
f11781c5
AK
6506 if test "$cross_compiling" = yes; then :
6507 ac_cv_func_strtod=no
6508else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h. */
66fd4529 6511
f11781c5
AK
6512$ac_includes_default
6513#ifndef strtod
6514double strtod ();
6515#endif
6516int
6517main()
6518{
6519 {
6520 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6521 char *string = " +69";
6522 char *term;
6523 double value;
6524 value = strtod (string, &term);
6525 if (value != 69 || term != (string + 4))
6526 return 1;
6527 }
66fd4529 6528
f11781c5
AK
6529 {
6530 /* Under Solaris 2.4, strtod returns the wrong value for the
6531 terminating character under some conditions. */
6532 char *string = "NaN";
6533 char *term;
6534 strtod (string, &term);
6535 if (term != string && *(term - 1) == 0)
6536 return 1;
6537 }
6538 return 0;
6539}
66fd4529 6540
f11781c5
AK
6541_ACEOF
6542if ac_fn_c_try_run "$LINENO"; then :
6543 ac_cv_func_strtod=yes
66fd4529 6544else
f11781c5
AK
6545 ac_cv_func_strtod=no
6546fi
6547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6548 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6549fi
6550
f11781c5
AK
6551fi
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6553$as_echo "$ac_cv_func_strtod" >&6; }
6554if test $ac_cv_func_strtod = no; then
6555 case " $LIBOBJS " in
6556 *" strtod.$ac_objext "* ) ;;
6557 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6558 ;;
6559esac
71082be4 6560
f11781c5
AK
6561ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6562if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6563
66fd4529 6564fi
a946372e 6565
f11781c5
AK
6566if test $ac_cv_func_pow = no; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6568$as_echo_n "checking for pow in -lm... " >&6; }
6569if test "${ac_cv_lib_m_pow+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571else
6572 ac_check_lib_save_LIBS=$LIBS
6573LIBS="-lm $LIBS"
6574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h. */
90c80887 6576
f11781c5
AK
6577/* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6580#ifdef __cplusplus
6581extern "C"
6582#endif
6583char pow ();
6584int
6585main ()
6586{
6587return pow ();
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592if ac_fn_c_try_link "$LINENO"; then :
6593 ac_cv_lib_m_pow=yes
90c80887 6594else
f11781c5 6595 ac_cv_lib_m_pow=no
90c80887 6596fi
f11781c5
AK
6597rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599LIBS=$ac_check_lib_save_LIBS
90c80887 6600fi
f11781c5
AK
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6602$as_echo "$ac_cv_lib_m_pow" >&6; }
6603if test "x$ac_cv_lib_m_pow" = x""yes; then :
6604 POW_LIB=-lm
90c80887 6605else
f11781c5
AK
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6607$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6608fi
f11781c5 6609
90c80887
AK
6610fi
6611
f11781c5
AK
6612fi
6613
6614for ac_func in vprintf
6615do :
6616 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6617if test "x$ac_cv_func_vprintf" = x""yes; then :
6618 cat >>confdefs.h <<_ACEOF
6619#define HAVE_VPRINTF 1
6620_ACEOF
90c80887 6621
f11781c5
AK
6622ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6623if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6624
f11781c5 6625$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6626
90c80887 6627fi
90c80887 6628
f11781c5
AK
6629fi
6630done
90c80887 6631
90c80887 6632
90c80887 6633
f11781c5
AK
6634################################################################################
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6636$as_echo_n "checking whether to use static linking... " >&6; }
6637# Check whether --enable-static_link was given.
6638if test "${enable_static_link+set}" = set; then :
6639 enableval=$enable_static_link; STATIC_LINK=$enableval
6640else
6641 STATIC_LINK=no
6642fi
90c80887 6643
f11781c5
AK
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6645$as_echo "$STATIC_LINK" >&6; }
90c80887 6646
f11781c5 6647################################################################################
90c80887 6648
90c80887 6649
f11781c5
AK
6650################################################################################
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6652$as_echo_n "checking file owner... " >&6; }
90c80887 6653
f11781c5
AK
6654# Check whether --with-user was given.
6655if test "${with_user+set}" = set; then :
6656 withval=$with_user; OWNER=$withval
6657fi
90c80887 6658
f11781c5
AK
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6660$as_echo "$OWNER" >&6; }
90c80887 6661
f11781c5
AK
6662if test x$OWNER != x; then
6663 INSTALL="$INSTALL -o $OWNER"
90c80887 6664fi
a946372e 6665
f11781c5
AK
6666################################################################################
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6668$as_echo_n "checking group owner... " >&6; }
a946372e 6669
f11781c5
AK
6670# Check whether --with-group was given.
6671if test "${with_group+set}" = set; then :
6672 withval=$with_group; GROUP=$withval
a946372e 6673fi
f11781c5
AK
6674
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6676$as_echo "$GROUP" >&6; }
6677
6678if test x$GROUP != x; then
6679 INSTALL="$INSTALL -g $GROUP"
a946372e 6680fi
f11781c5
AK
6681
6682################################################################################
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6684$as_echo_n "checking device node uid... " >&6; }
6685
6686
6687# Check whether --with-device-uid was given.
6688if test "${with_device_uid+set}" = set; then :
6689 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6690else
f11781c5 6691 DM_DEVICE_UID=0
a946372e
AK
6692fi
6693
f11781c5
AK
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6695$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6696
f11781c5
AK
6697################################################################################
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6699$as_echo_n "checking device node gid... " >&6; }
a946372e 6700
a946372e 6701
f11781c5
AK
6702# Check whether --with-device-gid was given.
6703if test "${with_device_gid+set}" = set; then :
6704 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6705else
f11781c5 6706 DM_DEVICE_GID=0
a946372e 6707fi
a946372e 6708
f11781c5
AK
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6710$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6711
f11781c5
AK
6712################################################################################
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6714$as_echo_n "checking device node mode... " >&6; }
90c80887 6715
90c80887 6716
f11781c5
AK
6717# Check whether --with-device-mode was given.
6718if test "${with_device_mode+set}" = set; then :
6719 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6720else
6721 DM_DEVICE_MODE=0600
6722fi
90c80887 6723
f11781c5
AK
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6725$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6726
d0df875d
ZK
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6728$as_echo_n "checking when to create device nodes... " >&6; }
6729
6730# Check whether --with-device-nodes-on was given.
6731if test "${with_device_nodes_on+set}" = set; then :
6732 withval=$with_device_nodes_on; ADD_NODE=$withval
6733else
6734 ADD_NODE=resume
6735fi
6736
6737case "$ADD_NODE" in
6738 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6739 create) add_on=DM_ADD_NODE_ON_CREATE;;
6740 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6741esac
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6743$as_echo "on $ADD_NODE" >&6; }
6744
6745cat >>confdefs.h <<_ACEOF
6746#define DEFAULT_DM_ADD_NODE $add_on
6747_ACEOF
6748
6749
f11781c5
AK
6750################################################################################
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6752$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6753# Check whether --enable-lvm1_fallback was given.
6754if test "${enable_lvm1_fallback+set}" = set; then :
6755 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6756else
6757 LVM1_FALLBACK=no
6758fi
90c80887 6759
f11781c5
AK
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6761$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6762
f11781c5 6763if test x$LVM1_FALLBACK = xyes; then
90c80887 6764
f11781c5 6765$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6766
f11781c5 6767fi
90c80887 6768
f11781c5
AK
6769################################################################################
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6771$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6772
6773# Check whether --with-lvm1 was given.
6774if test "${with_lvm1+set}" = set; then :
6775 withval=$with_lvm1; LVM1=$withval
a946372e 6776else
f11781c5 6777 LVM1=internal
a946372e 6778fi
f11781c5
AK
6779
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6781$as_echo "$LVM1" >&6; }
6782
6783if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6784 then as_fn_error $? "--with-lvm1 parameter invalid
6785" "$LINENO" 5
6786fi;
6787
6788if test x$LVM1 = xinternal; then
6789
6790$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6791
a946372e
AK
6792fi
6793
6794################################################################################
f11781c5
AK
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6796$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6797
6798# Check whether --with-pool was given.
6799if test "${with_pool+set}" = set; then :
6800 withval=$with_pool; POOL=$withval
a946372e 6801else
f11781c5 6802 POOL=internal
a946372e
AK
6803fi
6804
f11781c5
AK
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6806$as_echo "$POOL" >&6; }
6807
6808if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6809 then as_fn_error $? "--with-pool parameter invalid
6810" "$LINENO" 5
6811fi;
6812
6813if test x$POOL = xinternal; then
6814
6815$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6816
a946372e
AK
6817fi
6818
6819################################################################################
f11781c5
AK
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6821$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6822
f11781c5
AK
6823# Check whether --with-cluster was given.
6824if test "${with_cluster+set}" = set; then :
6825 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6826fi
6827
f11781c5
AK
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6829$as_echo "$CLUSTER" >&6; }
a946372e 6830
f11781c5
AK
6831if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6832 then as_fn_error $? "--with-cluster parameter invalid
6833" "$LINENO" 5
6834fi;
fddafd51 6835
f11781c5 6836if test x$CLUSTER = xinternal; then
5556819a 6837
f11781c5 6838$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6839
fddafd51 6840fi
f11781c5
AK
6841
6842################################################################################
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6844$as_echo_n "checking whether to include snapshots... " >&6; }
6845
6846# Check whether --with-snapshots was given.
6847if test "${with_snapshots+set}" = set; then :
6848 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6849else
f11781c5 6850 SNAPSHOTS=internal
fddafd51
ZK
6851fi
6852
f11781c5
AK
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6854$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6855
f11781c5
AK
6856if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6857 then as_fn_error $? "--with-snapshots parameter invalid
6858" "$LINENO" 5
6859fi;
fddafd51 6860
f11781c5
AK
6861if test x$SNAPSHOTS = xinternal; then
6862
6863$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6864
6865fi
6866
6867################################################################################
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6869$as_echo_n "checking whether to include mirrors... " >&6; }
6870
6871# Check whether --with-mirrors was given.
6872if test "${with_mirrors+set}" = set; then :
6873 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6874else
f11781c5 6875 MIRRORS=internal
fddafd51
ZK
6876fi
6877
f11781c5
AK
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6879$as_echo "$MIRRORS" >&6; }
fddafd51 6880
f11781c5
AK
6881if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6882 then as_fn_error $? "--with-mirrors parameter invalid
6883" "$LINENO" 5
6884fi;
6885
6886if test x$MIRRORS = xinternal; then
6887
6888$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6889
6890fi
6891
cac52ca4
JEB
6892################################################################################
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6894$as_echo_n "checking whether to include raid... " >&6; }
6895
6896# Check whether --with-raid was given.
6897if test "${with_raid+set}" = set; then :
6898 withval=$with_raid; RAID=$withval
6899else
6900 RAID=internal
6901fi
6902
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6904$as_echo "$RAID" >&6; }
6905
6906if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6907 then as_fn_error $? "--with-raid parameter invalid
6908" "$LINENO" 5
6909fi;
6910
6911if test x$RAID = xinternal; then
6912
6913$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6914
6915fi
6916
f11781c5
AK
6917################################################################################
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6919$as_echo_n "checking whether to include replicators... " >&6; }
6920
6921# Check whether --with-replicators was given.
6922if test "${with_replicators+set}" = set; then :
6923 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6924else
f11781c5
AK
6925 REPLICATORS=none
6926fi
fd4728e1 6927
f11781c5
AK
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6929$as_echo "$REPLICATORS" >&6; }
6930
6931case "$REPLICATORS" in
6932 none|shared) ;;
6933 internal)
6934$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6935 ;;
6936 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6937esac
f11781c5 6938
3ba4a195
ZK
6939################################################################################
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6941$as_echo_n "checking whether to include thin provisioning... " >&6; }
6942
6943# Check whether --with-thin was given.
6944if test "${with_thin+set}" = set; then :
6945 withval=$with_thin; THIN=$withval
6946else
6947 THIN=none
6948fi
6949
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6951$as_echo "$THIN" >&6; }
6952
6953case "$THIN" in
6954 none|shared) ;;
6955 internal)
6956$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6957 ;;
6958 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6959esac
6960
f11781c5
AK
6961################################################################################
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6963$as_echo_n "checking whether to enable readline... " >&6; }
6964# Check whether --enable-readline was given.
6965if test "${enable_readline+set}" = set; then :
6966 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6967else
f11781c5 6968 READLINE=maybe
fd4728e1
ZK
6969fi
6970
f11781c5
AK
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6972$as_echo "$READLINE" >&6; }
fd4728e1 6973
f11781c5
AK
6974################################################################################
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6976$as_echo_n "checking whether to enable realtime support... " >&6; }
6977# Check whether --enable-realtime was given.
6978if test "${enable_realtime+set}" = set; then :
6979 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6980fi
d0191583 6981
f11781c5
AK
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6983$as_echo "$REALTIME" >&6; }
6984
54b362f9 6985################################################################################
f11781c5
AK
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6987$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6988# Check whether --enable-ocf was given.
6989if test "${enable_ocf+set}" = set; then :
6990 enableval=$enable_ocf; OCF=$enableval
54b362f9 6991else
f11781c5 6992 OCF=no
54b362f9
AK
6993fi
6994
f11781c5
AK
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6996$as_echo "$OCF" >&6; }
54b362f9 6997
606d0858
AK
6998# Check whether --with-ocfdir was given.
6999if test "${with_ocfdir+set}" = set; then :
7000 withval=$with_ocfdir; OCFDIR=$withval
7001else
7002 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7003fi
7004
7005
f11781c5
AK
7006################################################################################
7007pkg_config_init() {
7008
7009
7010
7011
7012
7013
7014if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7017set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7019$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7020if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7021 $as_echo_n "(cached) " >&6
7022else
f11781c5 7023 case $PKG_CONFIG in
54b362f9 7024 [\\/]* | ?:[\\/]*)
f11781c5 7025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7026 ;;
7027 *)
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
f11781c5 7033 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7037 break 2
7038 fi
7039done
f11781c5 7040 done
54b362f9
AK
7041IFS=$as_save_IFS
7042
7043 ;;
7044esac
7045fi
f11781c5
AK
7046PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7047if test -n "$PKG_CONFIG"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7049$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7050else
f11781c5 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7052$as_echo "no" >&6; }
7053fi
7054
7055
f11781c5
AK
7056fi
7057if test -z "$ac_cv_path_PKG_CONFIG"; then
7058 ac_pt_PKG_CONFIG=$PKG_CONFIG
7059 # Extract the first word of "pkg-config", so it can be a program name with args.
7060set dummy pkg-config; ac_word=$2
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7062$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7063if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7064 $as_echo_n "(cached) " >&6
7065else
f11781c5 7066 case $ac_pt_PKG_CONFIG in
54b362f9 7067 [\\/]* | ?:[\\/]*)
f11781c5 7068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7069 ;;
7070 *)
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
f11781c5 7076 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7078 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7080 break 2
7081 fi
7082done
f11781c5 7083 done
54b362f9
AK
7084IFS=$as_save_IFS
7085
7086 ;;
7087esac
7088fi
f11781c5
AK
7089ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7090if test -n "$ac_pt_PKG_CONFIG"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7092$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7093else
f11781c5 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7095$as_echo "no" >&6; }
7096fi
7097
f11781c5
AK
7098 if test "x$ac_pt_PKG_CONFIG" = x; then
7099 PKG_CONFIG=""
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102yes:)
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105ac_tool_warned=yes ;;
7106esac
7107 PKG_CONFIG=$ac_pt_PKG_CONFIG
7108 fi
d1e8046f 7109else
f11781c5 7110 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7111fi
7112
f11781c5
AK
7113fi
7114if test -n "$PKG_CONFIG"; then
7115 _pkg_min_version=0.9.0
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7117$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7118 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7120$as_echo "yes" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123$as_echo "no" >&6; }
7124 PKG_CONFIG=""
7125 fi
7126fi
d1e8046f 7127
f11781c5
AK
7128pkg_failed=no
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7130$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7131
f11781c5
AK
7132if test -n "$PKGCONFIGINIT_CFLAGS"; then
7133 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7134 elif test -n "$PKG_CONFIG"; then
7135 if test -n "$PKG_CONFIG" && \
7136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7137 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7138 ac_status=$?
7139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140 test $ac_status = 0; }; then
7141 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7142else
f11781c5
AK
7143 pkg_failed=yes
7144fi
7145 else
7146 pkg_failed=untried
7147fi
7148if test -n "$PKGCONFIGINIT_LIBS"; then
7149 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7150 elif test -n "$PKG_CONFIG"; then
7151 if test -n "$PKG_CONFIG" && \
7152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7153 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7154 ac_status=$?
f11781c5
AK
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156 test $ac_status = 0; }; then
7157 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7158else
f11781c5
AK
7159 pkg_failed=yes
7160fi
7161 else
7162 pkg_failed=untried
d1e8046f
AK
7163fi
7164
d1e8046f 7165
f11781c5
AK
7166
7167if test $pkg_failed = yes; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170
7171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7172 _pkg_short_errors_supported=yes
7173else
7174 _pkg_short_errors_supported=no
7175fi
7176 if test $_pkg_short_errors_supported = yes; then
7177 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7178 else
7179 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7180 fi
7181 # Put the nasty error message in config.log where it belongs
7182 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7183
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7185$as_echo "pkg-config initialized" >&6; }
7186elif test $pkg_failed = untried; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7190$as_echo "pkg-config initialized" >&6; }
d1e8046f 7191else
f11781c5
AK
7192 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7193 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7195$as_echo "yes" >&6; }
d1e8046f 7196
d1e8046f 7197fi
f11781c5
AK
7198 PKGCONFIG_INIT=1
7199}
d1e8046f 7200
f11781c5
AK
7201################################################################################
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7203$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7204
f11781c5
AK
7205# Check whether --with-clvmd was given.
7206if test "${with_clvmd+set}" = set; then :
7207 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7208else
f11781c5 7209 CLVMD=none
d1e8046f 7210fi
d1e8046f 7211
f11781c5
AK
7212if test x$CLVMD = xyes; then
7213 CLVMD=all
d1e8046f 7214fi
f11781c5
AK
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7216$as_echo "$CLVMD" >&6; }
d1e8046f 7217
f11781c5
AK
7218if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7219 CLUSTER=internal
d1e8046f
AK
7220fi
7221
f11781c5
AK
7222if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7223 pkg_config_init
7224fi
d1e8046f 7225
f11781c5
AK
7226CLVMD_CMANAGERS=""
7227CLVMD_NEEDS_QDISKD=no
d1e8046f 7228
f11781c5 7229if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7230 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7231fi
f11781c5
AK
7232if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7233 BUILDCMAN=yes
7234 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7235 CLVMD_NEEDS_QDISKD=yes
7236fi
7237if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7238 BUILDCOROSYNC=yes
7239 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7240fi
7241if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7242 BUILDOPENAIS=yes
7243 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7244fi
7245if test x$CLVMD_NEEDS_QDISKD != xno; then
7246 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7247fi
7248
f11781c5
AK
7249soft_bailout() {
7250 NOTFOUND=1
7251}
ad6254c5 7252
f11781c5
AK
7253hard_bailout() {
7254 as_fn_error $? "bailing out" "$LINENO" 5
7255}
ad6254c5 7256
f11781c5
AK
7257if test x$CLVMD = xall; then
7258 bailout=soft_bailout
f11781c5
AK
7259 BUILDCMAN=yes
7260 BUILDCOROSYNC=yes
7261 BUILDOPENAIS=yes
a5f46f6a 7262else
f11781c5 7263 bailout=hard_bailout
a5f46f6a
AK
7264fi
7265
f11781c5
AK
7266check_lib_no_libs() {
7267 lib_no_libs_arg1=$1
7268 shift
7269 lib_no_libs_arg2=$1
7270 shift
7271 lib_no_libs_args=$@
7272 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7274$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7275if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7276 $as_echo_n "(cached) " >&6
7277else
7278 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7279LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7281/* end confdefs.h. */
7282
7283/* Override any GCC internal prototype to avoid an error.
7284 Use char because int might match the return type of a GCC
7285 builtin and then its argument prototype would still apply. */
7286#ifdef __cplusplus
7287extern "C"
7288#endif
f11781c5 7289char $lib_no_libs_arg2 ();
90c80887
AK
7290int
7291main ()
7292{
f11781c5 7293return $lib_no_libs_arg2 ();
90c80887
AK
7294 ;
7295 return 0;
7296}
7297_ACEOF
f11781c5
AK
7298if ac_fn_c_try_link "$LINENO"; then :
7299 eval "$as_ac_Lib=yes"
90c80887 7300else
f11781c5 7301 eval "$as_ac_Lib=no"
90c80887 7302fi
f11781c5
AK
7303rm -f core conftest.err conftest.$ac_objext \
7304 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7305LIBS=$ac_check_lib_save_LIBS
7306fi
f11781c5
AK
7307eval ac_res=\$$as_ac_Lib
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7309$as_echo "$ac_res" >&6; }
7310if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7311 cat >>confdefs.h <<_ACEOF
7312#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7313_ACEOF
7314
7315 LIBS="-l$lib_no_libs_arg1 $LIBS"
7316
90c80887 7317else
f11781c5 7318 $bailout
90c80887
AK
7319fi
7320
f11781c5
AK
7321 LIBS=$ac_check_lib_save_LIBS
7322}
90c80887 7323
f11781c5 7324if test x$BUILDCMAN = xyes; then
ad6254c5 7325
f11781c5
AK
7326pkg_failed=no
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7328$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7329
f11781c5
AK
7330if test -n "$CMAN_CFLAGS"; then
7331 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7332 elif test -n "$PKG_CONFIG"; then
7333 if test -n "$PKG_CONFIG" && \
7334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7335 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7340else
7341 pkg_failed=yes
ad6254c5 7342fi
f11781c5
AK
7343 else
7344 pkg_failed=untried
ad6254c5 7345fi
f11781c5
AK
7346if test -n "$CMAN_LIBS"; then
7347 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7348 elif test -n "$PKG_CONFIG"; then
7349 if test -n "$PKG_CONFIG" && \
7350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7351 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7352 ac_status=$?
f11781c5
AK
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7356else
f11781c5
AK
7357 pkg_failed=yes
7358fi
7359 else
7360 pkg_failed=untried
93bd259b
AK
7361fi
7362
f11781c5
AK
7363
7364
7365if test $pkg_failed = yes; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368
7369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7370 _pkg_short_errors_supported=yes
7371else
7372 _pkg_short_errors_supported=no
93bd259b 7373fi
f11781c5
AK
7374 if test $_pkg_short_errors_supported = yes; then
7375 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7376 else
7377 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7378 fi
7379 # Put the nasty error message in config.log where it belongs
7380 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7381
f11781c5
AK
7382 NOTFOUND=0
7383 for ac_header in libcman.h
7384do :
7385 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7386if test "x$ac_cv_header_libcman_h" = x""yes; then :
7387 cat >>confdefs.h <<_ACEOF
7388#define HAVE_LIBCMAN_H 1
93bd259b
AK
7389_ACEOF
7390
f11781c5
AK
7391else
7392 $bailout
93bd259b
AK
7393fi
7394
f11781c5 7395done
93bd259b 7396
f11781c5
AK
7397 check_lib_no_libs cman cman_init
7398 if test $NOTFOUND = 0; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7400$as_echo "no pkg for libcman, using -lcman" >&6; }
7401 CMAN_LIBS="-lcman"
7402 HAVE_CMAN=yes
7403 fi
7404elif test $pkg_failed = untried; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
7407 NOTFOUND=0
7408 for ac_header in libcman.h
7409do :
7410 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7411if test "x$ac_cv_header_libcman_h" = x""yes; then :
7412 cat >>confdefs.h <<_ACEOF
7413#define HAVE_LIBCMAN_H 1
93bd259b 7414_ACEOF
93bd259b 7415
93bd259b 7416else
f11781c5 7417 $bailout
93bd259b
AK
7418fi
7419
f11781c5
AK
7420done
7421
7422 check_lib_no_libs cman cman_init
7423 if test $NOTFOUND = 0; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7425$as_echo "no pkg for libcman, using -lcman" >&6; }
7426 CMAN_LIBS="-lcman"
7427 HAVE_CMAN=yes
7428 fi
7429else
7430 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7431 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433$as_echo "yes" >&6; }
7434 HAVE_CMAN=yes
93bd259b 7435fi
f11781c5
AK
7436 CHECKCONFDB=yes
7437 CHECKDLM=yes
93bd259b
AK
7438fi
7439
f11781c5
AK
7440if test x$BUILDCOROSYNC = xyes || \
7441 test x$BUILDOPENAIS = xyes; then
93bd259b 7442
f11781c5
AK
7443pkg_failed=no
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7445$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7446
f11781c5
AK
7447if test -n "$COROSYNC_CFLAGS"; then
7448 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7449 elif test -n "$PKG_CONFIG"; then
7450 if test -n "$PKG_CONFIG" && \
7451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7452 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7453 ac_status=$?
7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7457else
f11781c5
AK
7458 pkg_failed=yes
7459fi
7460 else
7461 pkg_failed=untried
7462fi
7463if test -n "$COROSYNC_LIBS"; then
7464 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7465 elif test -n "$PKG_CONFIG"; then
7466 if test -n "$PKG_CONFIG" && \
7467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7468 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7469 ac_status=$?
f11781c5
AK
7470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7471 test $ac_status = 0; }; then
7472 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7473else
f11781c5 7474 pkg_failed=yes
ad6254c5 7475fi
f11781c5
AK
7476 else
7477 pkg_failed=untried
ad6254c5 7478fi
ad6254c5 7479
72b2cb61 7480
72b2cb61 7481
f11781c5
AK
7482if test $pkg_failed = yes; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
19a2c6e0 7485
f11781c5
AK
7486if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7487 _pkg_short_errors_supported=yes
7488else
7489 _pkg_short_errors_supported=no
ad6254c5 7490fi
f11781c5
AK
7491 if test $_pkg_short_errors_supported = yes; then
7492 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7493 else
7494 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7495 fi
7496 # Put the nasty error message in config.log where it belongs
7497 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7498
f11781c5
AK
7499 $bailout
7500elif test $pkg_failed = untried; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503 $bailout
7504else
7505 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7506 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508$as_echo "yes" >&6; }
7509 HAVE_COROSYNC=yes
7510fi
7511 CHECKCONFDB=yes
ad6254c5
AK
7512fi
7513
f11781c5 7514if test x$BUILDCOROSYNC = xyes; then
f30875db 7515
f11781c5
AK
7516pkg_failed=no
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7518$as_echo_n "checking for QUORUM... " >&6; }
7519
7520if test -n "$QUORUM_CFLAGS"; then
7521 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7522 elif test -n "$PKG_CONFIG"; then
7523 if test -n "$PKG_CONFIG" && \
7524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7525 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7526 ac_status=$?
f11781c5
AK
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; }; then
7529 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7530else
f11781c5 7531 pkg_failed=yes
f30875db 7532fi
f11781c5
AK
7533 else
7534 pkg_failed=untried
f30875db 7535fi
f11781c5
AK
7536if test -n "$QUORUM_LIBS"; then
7537 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7538 elif test -n "$PKG_CONFIG"; then
7539 if test -n "$PKG_CONFIG" && \
7540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7541 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7542 ac_status=$?
7543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; }; then
7545 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7546else
f11781c5 7547 pkg_failed=yes
f30875db 7548fi
f11781c5
AK
7549 else
7550 pkg_failed=untried
7551fi
7552
f30875db 7553
f11781c5
AK
7554
7555if test $pkg_failed = yes; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
7558
7559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7560 _pkg_short_errors_supported=yes
7561else
7562 _pkg_short_errors_supported=no
f30875db 7563fi
f11781c5
AK
7564 if test $_pkg_short_errors_supported = yes; then
7565 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7566 else
7567 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7568 fi
7569 # Put the nasty error message in config.log where it belongs
7570 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7571
f11781c5
AK
7572 $bailout
7573elif test $pkg_failed = untried; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576 $bailout
7577else
7578 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7579 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7581$as_echo "yes" >&6; }
7582 HAVE_QUORUM=yes
7583fi
7584 CHECKCPG=yes
7585 CHECKDLM=yes
d0191583
JM
7586fi
7587
f11781c5 7588if test x$BUILDOPENAIS = xyes; then
d0191583 7589
f11781c5
AK
7590pkg_failed=no
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7592$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7593
f11781c5
AK
7594if test -n "$SALCK_CFLAGS"; then
7595 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7596 elif test -n "$PKG_CONFIG"; then
7597 if test -n "$PKG_CONFIG" && \
7598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7599 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7600 ac_status=$?
7601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602 test $ac_status = 0; }; then
7603 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7604else
7605 pkg_failed=yes
7606fi
7607 else
7608 pkg_failed=untried
7609fi
7610if test -n "$SALCK_LIBS"; then
7611 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7612 elif test -n "$PKG_CONFIG"; then
7613 if test -n "$PKG_CONFIG" && \
7614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7615 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7616 ac_status=$?
f11781c5
AK
7617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; }; then
7619 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7620else
f11781c5 7621 pkg_failed=yes
8a2fc586 7622fi
f11781c5
AK
7623 else
7624 pkg_failed=untried
8a2fc586 7625fi
d0191583 7626
d0191583 7627
f8f6ec92 7628
f11781c5
AK
7629if test $pkg_failed = yes; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
8a2fc586 7632
f11781c5
AK
7633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7634 _pkg_short_errors_supported=yes
ad6254c5 7635else
f11781c5
AK
7636 _pkg_short_errors_supported=no
7637fi
7638 if test $_pkg_short_errors_supported = yes; then
7639 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7640 else
7641 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7642 fi
7643 # Put the nasty error message in config.log where it belongs
7644 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7645
f11781c5
AK
7646 $bailout
7647elif test $pkg_failed = untried; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
7650 $bailout
ad6254c5 7651else
f11781c5
AK
7652 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7653 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7655$as_echo "yes" >&6; }
7656 HAVE_SALCK=yes
ad6254c5 7657fi
f11781c5 7658 CHECKCPG=yes
ad6254c5 7659fi
ad6254c5 7660
72b2cb61 7661
f8f6ec92 7662
f11781c5 7663if test x$CHECKCONFDB = xyes; then
f8f6ec92 7664
f11781c5
AK
7665pkg_failed=no
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7667$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7668
f11781c5
AK
7669if test -n "$CONFDB_CFLAGS"; then
7670 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7671 elif test -n "$PKG_CONFIG"; then
7672 if test -n "$PKG_CONFIG" && \
7673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7674 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7675 ac_status=$?
f11781c5
AK
7676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }; then
7678 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7679else
f11781c5
AK
7680 pkg_failed=yes
7681fi
7682 else
7683 pkg_failed=untried
7684fi
7685if test -n "$CONFDB_LIBS"; then
7686 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7687 elif test -n "$PKG_CONFIG"; then
7688 if test -n "$PKG_CONFIG" && \
7689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7690 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7691 ac_status=$?
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7695else
7696 pkg_failed=yes
7697fi
7698 else
7699 pkg_failed=untried
f8f6ec92
ZK
7700fi
7701
f8f6ec92 7702
66e941e8 7703
f11781c5
AK
7704if test $pkg_failed = yes; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706$as_echo "no" >&6; }
7707
7708if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7709 _pkg_short_errors_supported=yes
f8f6ec92 7710else
f11781c5 7711 _pkg_short_errors_supported=no
66e941e8 7712fi
f11781c5
AK
7713 if test $_pkg_short_errors_supported = yes; then
7714 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7715 else
7716 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7717 fi
7718 # Put the nasty error message in config.log where it belongs
7719 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7720
f11781c5
AK
7721 HAVE_CONFDB=no
7722elif test $pkg_failed = untried; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
7725 HAVE_CONFDB=no
7726else
7727 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7728 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730$as_echo "yes" >&6; }
7731 HAVE_CONFDB=yes
66e941e8 7732fi
f11781c5
AK
7733
7734 for ac_header in corosync/confdb.h
7735do :
7736 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7737if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7738 cat >>confdefs.h <<_ACEOF
f11781c5 7739#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7740_ACEOF
f11781c5 7741 HAVE_CONFDB_H=yes
66e941e8 7742else
f11781c5 7743 HAVE_CONFDB_H=no
66e941e8 7744fi
dd1f2c09
MB
7745
7746done
7747
7748
f11781c5
AK
7749 if test x$HAVE_CONFDB != xyes && \
7750 test x$HAVE_CONFDB_H = xyes; then
7751 check_lib_no_libs confdb confdb_initialize
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7753$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7754 CONFDB_LIBS="-lconfdb"
7755 HAVE_CONFDB=yes
7756 fi
7757
7758 if test x$BUILDCOROSYNC = xyes && \
7759 test x$HAVE_CONFDB != xyes &&
7760 test x$CLVMD != xall; then
7761 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7762 fi
dd1f2c09 7763fi
f11781c5
AK
7764
7765if test x$CHECKCPG = xyes; then
7766
7767pkg_failed=no
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7769$as_echo_n "checking for CPG... " >&6; }
7770
7771if test -n "$CPG_CFLAGS"; then
7772 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7773 elif test -n "$PKG_CONFIG"; then
7774 if test -n "$PKG_CONFIG" && \
7775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7776 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7777 ac_status=$?
7778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779 test $ac_status = 0; }; then
7780 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7781else
f11781c5
AK
7782 pkg_failed=yes
7783fi
7784 else
7785 pkg_failed=untried
7786fi
7787if test -n "$CPG_LIBS"; then
7788 pkg_cv_CPG_LIBS="$CPG_LIBS"
7789 elif test -n "$PKG_CONFIG"; then
7790 if test -n "$PKG_CONFIG" && \
7791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7792 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7793 ac_status=$?
f11781c5
AK
7794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795 test $ac_status = 0; }; then
7796 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7797else
f11781c5
AK
7798 pkg_failed=yes
7799fi
7800 else
7801 pkg_failed=untried
7802fi
7803
7804
7805
7806if test $pkg_failed = yes; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808$as_echo "no" >&6; }
7809
7810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7811 _pkg_short_errors_supported=yes
7812else
7813 _pkg_short_errors_supported=no
7814fi
7815 if test $_pkg_short_errors_supported = yes; then
7816 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7817 else
7818 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7819 fi
7820 # Put the nasty error message in config.log where it belongs
7821 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7822
f11781c5
AK
7823 $bailout
7824elif test $pkg_failed = untried; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827 $bailout
7828else
7829 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7830 CPG_LIBS=$pkg_cv_CPG_LIBS
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7832$as_echo "yes" >&6; }
7833 HAVE_CPG=yes
7834fi
dd1f2c09
MB
7835fi
7836
f11781c5 7837if test x$CHECKDLM = xyes; then
dd1f2c09 7838
f11781c5
AK
7839pkg_failed=no
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7841$as_echo_n "checking for DLM... " >&6; }
7842
7843if test -n "$DLM_CFLAGS"; then
7844 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7845 elif test -n "$PKG_CONFIG"; then
7846 if test -n "$PKG_CONFIG" && \
7847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7848 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7849 ac_status=$?
f11781c5
AK
7850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7851 test $ac_status = 0; }; then
7852 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7853else
f11781c5
AK
7854 pkg_failed=yes
7855fi
7856 else
7857 pkg_failed=untried
7858fi
7859if test -n "$DLM_LIBS"; then
7860 pkg_cv_DLM_LIBS="$DLM_LIBS"
7861 elif test -n "$PKG_CONFIG"; then
7862 if test -n "$PKG_CONFIG" && \
7863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7864 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7865 ac_status=$?
7866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867 test $ac_status = 0; }; then
7868 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7869else
7870 pkg_failed=yes
7871fi
7872 else
7873 pkg_failed=untried
dd1f2c09
MB
7874fi
7875
dd1f2c09 7876
dd1f2c09 7877
f11781c5
AK
7878if test $pkg_failed = yes; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881
7882if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7883 _pkg_short_errors_supported=yes
dd1f2c09 7884else
f11781c5 7885 _pkg_short_errors_supported=no
dd1f2c09 7886fi
f11781c5
AK
7887 if test $_pkg_short_errors_supported = yes; then
7888 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7889 else
7890 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7891 fi
7892 # Put the nasty error message in config.log where it belongs
7893 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7894
f11781c5
AK
7895 NOTFOUND=0
7896 for ac_header in libdlm.h
7897do :
7898 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7899if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7900 cat >>confdefs.h <<_ACEOF
f11781c5 7901#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7902_ACEOF
7903
f11781c5
AK
7904else
7905 $bailout
dd1f2c09 7906fi
f8f6ec92
ZK
7907
7908done
7909
f11781c5
AK
7910 check_lib_no_libs dlm dlm_lock -lpthread
7911 if test $NOTFOUND = 0; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7913$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7914 DLM_LIBS="-ldlm -lpthread"
7915 HAVE_DLM=yes
7916 fi
7917elif test $pkg_failed = untried; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920 NOTFOUND=0
7921 for ac_header in libdlm.h
7922do :
7923 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7924if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7925 cat >>confdefs.h <<_ACEOF
7926#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7927_ACEOF
7928
f8f6ec92 7929else
f11781c5 7930 $bailout
ad6254c5
AK
7931fi
7932
f11781c5 7933done
8b1a3214 7934
f11781c5
AK
7935 check_lib_no_libs dlm dlm_lock -lpthread
7936 if test $NOTFOUND = 0; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7938$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7939 DLM_LIBS="-ldlm -lpthread"
7940 HAVE_DLM=yes
7941 fi
8b1a3214 7942else
f11781c5
AK
7943 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7944 DLM_LIBS=$pkg_cv_DLM_LIBS
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7946$as_echo "yes" >&6; }
7947 HAVE_DLM=yes
8b1a3214 7948fi
8b1a3214
AK
7949fi
7950
f11781c5
AK
7951if test x$CLVMD = xall; then
7952 CLVMD=none
7953 CLVMD_CMANAGERS=""
7954 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7955 if test x$HAVE_CMAN = xyes && \
7956 test x$HAVE_DLM = xyes; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7958$as_echo "Enabling clvmd cman cluster manager" >&6; }
7959 CLVMD="$CLVMD,cman"
7960 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7961 CLVMD_NEEDS_QDISKD=yes
7962 fi
7963 if test x$HAVE_COROSYNC = xyes && \
7964 test x$HAVE_QUORUM = xyes && \
7965 test x$HAVE_CPG = xyes && \
7966 test x$HAVE_DLM = xyes && \
7967 test x$HAVE_CONFDB = xyes; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7969$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7970 CLVMD="$CLVMD,corosync"
7971 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7972 fi
7973 if test x$HAVE_COROSYNC = xyes && \
7974 test x$HAVE_CPG = xyes && \
7975 test x$HAVE_SALCK = xyes; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7977$as_echo "Enabling clvmd openais cluster manager" >&6; }
7978 CLVMD="$CLVMD,openais"
7979 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7980 fi
7981 if test x$CLVMD_NEEDS_QDISKD != xno; then
7982 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7983 fi
7984 if test x$CLVMD = xnone; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7986$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7987 fi
7988fi
7989
ad6254c5 7990################################################################################
f11781c5 7991if test "x$CLVMD" != xnone; then
ad6254c5 7992
f11781c5
AK
7993# Check whether --with-clvmd-pidfile was given.
7994if test "${with_clvmd_pidfile+set}" = set; then :
7995 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 7996else
f11781c5 7997 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 7998fi
7a197a62 7999
ad6254c5 8000
f11781c5
AK
8001cat >>confdefs.h <<_ACEOF
8002#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8003_ACEOF
ad6254c5 8004
ad6254c5 8005fi
7a197a62 8006
f11781c5
AK
8007################################################################################
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8009$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8010# Check whether --enable-cmirrord was given.
8011if test "${enable_cmirrord+set}" = set; then :
8012 enableval=$enable_cmirrord; CMIRRORD=$enableval
8013else
8014 CMIRRORD=no
8015fi
8016
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8018$as_echo "$CMIRRORD" >&6; }
ad6254c5 8019
f11781c5 8020BUILD_CMIRRORD=$CMIRRORD
7a197a62 8021
f11781c5
AK
8022################################################################################
8023if test "x$BUILD_CMIRRORD" = xyes; then
8024
8025# Check whether --with-cmirrord-pidfile was given.
8026if test "${with_cmirrord_pidfile+set}" = set; then :
8027 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8028else
f11781c5 8029 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8030fi
ad6254c5 8031
72b2cb61 8032
f11781c5
AK
8033cat >>confdefs.h <<_ACEOF
8034#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8035_ACEOF
8036
ad6254c5
AK
8037fi
8038
f11781c5
AK
8039################################################################################
8040if [ "x$BUILD_CMIRRORD" = xyes ]; then
8041 if test x$PKGCONFIG_INIT != x1; then
8042 pkg_config_init
8043 fi
ad6254c5 8044
f11781c5
AK
8045pkg_failed=no
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8047$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8048
f11781c5
AK
8049if test -n "$SACKPT_CFLAGS"; then
8050 pkg_cv_SACKPT_CFLAGS="$SACKPT_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 \"libSaCkpt\""; } >&5
8054 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 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_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8059else
f11781c5
AK
8060 pkg_failed=yes
8061fi
8062 else
8063 pkg_failed=untried
8064fi
8065if test -n "$SACKPT_LIBS"; then
8066 pkg_cv_SACKPT_LIBS="$SACKPT_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 \"libSaCkpt\""; } >&5
8070 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 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_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8075else
f11781c5
AK
8076 pkg_failed=yes
8077fi
8078 else
8079 pkg_failed=untried
8080fi
539f4a77
ZK
8081
8082
539f4a77 8083
f11781c5
AK
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
539f4a77 8090else
f11781c5 8091 _pkg_short_errors_supported=no
539f4a77 8092fi
f11781c5
AK
8093 if test $_pkg_short_errors_supported = yes; then
8094 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8095 else
8096 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8097 fi
8098 # Put the nasty error message in config.log where it belongs
8099 echo "$SACKPT_PKG_ERRORS" >&5
8100
8101 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8102
8103$SACKPT_PKG_ERRORS
8104
8105Consider adjusting the PKG_CONFIG_PATH environment variable if you
8106installed software in a non-standard prefix.
8107
8108Alternatively, you may set the environment variables SACKPT_CFLAGS
8109and SACKPT_LIBS to avoid the need to call pkg-config.
8110See the pkg-config man page for more details." "$LINENO" 5
8111
8112elif test $pkg_failed = untried; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8117as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8118is in your PATH or set the PKG_CONFIG environment variable to the full
8119path to pkg-config.
8120
8121Alternatively, you may set the environment variables SACKPT_CFLAGS
8122and SACKPT_LIBS to avoid the need to call pkg-config.
8123See the pkg-config man page for more details.
8124
8125To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8126See \`config.log' for more details" "$LINENO" 5; }
8127
539f4a77 8128else
f11781c5
AK
8129 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8130 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132$as_echo "yes" >&6; }
539f4a77 8133
539f4a77 8134fi
f11781c5 8135 if test x$HAVE_CPG != xyes; then
539f4a77 8136
f11781c5
AK
8137pkg_failed=no
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8139$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8140
f11781c5
AK
8141if test -n "$CPG_CFLAGS"; then
8142 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8143 elif test -n "$PKG_CONFIG"; then
8144 if test -n "$PKG_CONFIG" && \
8145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8146 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8147 ac_status=$?
f11781c5
AK
8148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8149 test $ac_status = 0; }; then
8150 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8151else
f11781c5
AK
8152 pkg_failed=yes
8153fi
8154 else
8155 pkg_failed=untried
8156fi
8157if test -n "$CPG_LIBS"; then
8158 pkg_cv_CPG_LIBS="$CPG_LIBS"
8159 elif test -n "$PKG_CONFIG"; then
8160 if test -n "$PKG_CONFIG" && \
8161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8162 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8163 ac_status=$?
8164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8165 test $ac_status = 0; }; then
8166 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8167else
8168 pkg_failed=yes
8169fi
8170 else
8171 pkg_failed=untried
8172fi
8173
8174
8175
8176if test $pkg_failed = yes; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178$as_echo "no" >&6; }
ad6254c5 8179
f11781c5
AK
8180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8181 _pkg_short_errors_supported=yes
8182else
8183 _pkg_short_errors_supported=no
ad6254c5 8184fi
f11781c5
AK
8185 if test $_pkg_short_errors_supported = yes; then
8186 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8187 else
8188 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8189 fi
8190 # Put the nasty error message in config.log where it belongs
8191 echo "$CPG_PKG_ERRORS" >&5
8192
8193 as_fn_error $? "Package requirements (libcpg) were not met:
8194
8195$CPG_PKG_ERRORS
8196
8197Consider adjusting the PKG_CONFIG_PATH environment variable if you
8198installed software in a non-standard prefix.
8199
8200Alternatively, you may set the environment variables CPG_CFLAGS
8201and CPG_LIBS to avoid the need to call pkg-config.
8202See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8203
f11781c5
AK
8204elif test $pkg_failed = untried; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8209as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8210is in your PATH or set the PKG_CONFIG environment variable to the full
8211path to pkg-config.
539f4a77 8212
f11781c5
AK
8213Alternatively, you may set the environment variables CPG_CFLAGS
8214and CPG_LIBS to avoid the need to call pkg-config.
8215See the pkg-config man page for more details.
539f4a77 8216
f11781c5
AK
8217To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8218See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8219
539f4a77 8220else
f11781c5
AK
8221 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8222 CPG_LIBS=$pkg_cv_CPG_LIBS
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8224$as_echo "yes" >&6; }
bc1024f8 8225
f11781c5
AK
8226fi
8227 fi
8228fi
8229
8230################################################################################
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8232$as_echo_n "checking whether to enable debugging... " >&6; }
8233# Check whether --enable-debug was given.
8234if test "${enable_debug+set}" = set; then :
8235 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8236else
f11781c5
AK
8237 DEBUG=no
8238fi
8239
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8241$as_echo "$DEBUG" >&6; }
539f4a77 8242
f11781c5
AK
8243if test x$DEBUG = xyes; then
8244 COPTIMISE_FLAG=
8245else
8246 CSCOPE_CMD=
06e459df
JM
8247fi
8248
f11781c5
AK
8249################################################################################
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8251$as_echo_n "checking for C optimisation flag... " >&6; }
8252
8253# Check whether --with-optimisation was given.
8254if test "${with_optimisation+set}" = set; then :
8255 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8256fi
539f4a77 8257
f11781c5
AK
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8259$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8260
f11781c5
AK
8261################################################################################
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8263$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8264# Check whether --enable-profiling was given.
8265if test "${enable_profiling+set}" = set; then :
8266 enableval=$enable_profiling; PROFILING=$enableval
8267else
8268 PROFILING=no
539f4a77
ZK
8269fi
8270
f11781c5
AK
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8272$as_echo "$PROFILING" >&6; }
8273
8274if test "x$PROFILING" = xyes; then
8275 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8276 # Extract the first word of "lcov", so it can be a program name with args.
8277set dummy lcov; ac_word=$2
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279$as_echo_n "checking for $ac_word... " >&6; }
8280if test "${ac_cv_path_LCOV+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
539f4a77 8282else
f11781c5
AK
8283 case $LCOV in
8284 [\\/]* | ?:[\\/]*)
8285 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8286 ;;
8287 *)
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289for as_dir in $PATH
8290do
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8295 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299done
8300 done
8301IFS=$as_save_IFS
539f4a77 8302
f11781c5
AK
8303 ;;
8304esac
8305fi
8306LCOV=$ac_cv_path_LCOV
8307if test -n "$LCOV"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8309$as_echo "$LCOV" >&6; }
8310else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312$as_echo "no" >&6; }
539f4a77
ZK
8313fi
8314
bc1024f8 8315
f11781c5
AK
8316 # Extract the first word of "genhtml", so it can be a program name with args.
8317set dummy genhtml; ac_word=$2
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
8320if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8321 $as_echo_n "(cached) " >&6
ad6254c5 8322else
f11781c5
AK
8323 case $GENHTML in
8324 [\\/]* | ?:[\\/]*)
8325 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8326 ;;
8327 *)
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8335 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339done
8340 done
8341IFS=$as_save_IFS
8a2fc586 8342
f11781c5
AK
8343 ;;
8344esac
8345fi
8346GENHTML=$ac_cv_path_GENHTML
8347if test -n "$GENHTML"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8349$as_echo "$GENHTML" >&6; }
8350else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
8353fi
8a2fc586 8354
8a2fc586 8355
f11781c5
AK
8356 if test -z "$LCOV" -o -z "$GENHTML"; then
8357 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8358 fi
8359 # Extract the first word of "genpng", so it can be a program name with args.
8360set dummy genpng; ac_word=$2
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362$as_echo_n "checking for $ac_word... " >&6; }
8363if test "${ac_cv_path_GENPNG+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365else
8366 case $GENPNG in
8367 [\\/]* | ?:[\\/]*)
8368 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8369 ;;
8370 *)
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382done
8383 done
8384IFS=$as_save_IFS
ad6254c5 8385
f11781c5 8386 ;;
7a197a62 8387esac
f11781c5
AK
8388fi
8389GENPNG=$ac_cv_path_GENPNG
8390if test -n "$GENPNG"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8392$as_echo "$GENPNG" >&6; }
ad6254c5 8393else
f11781c5
AK
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395$as_echo "no" >&6; }
8396fi
8397
8398
8399 if test -n "$GENPNG"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8401$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8402 if $GENPNG --help > /dev/null 2>&1 ; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8404$as_echo "ok" >&6; }
8405 GENHTML="$GENHTML --frames"
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8408$as_echo "not supported" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8410$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8411 GENPNG=
8412 fi
8413 fi
8414fi
ad6254c5 8415
f11781c5
AK
8416################################################################################
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8418$as_echo_n "checking whether to enable unit testing... " >&6; }
8419# Check whether --enable-testing was given.
8420if test "${enable_testing+set}" = set; then :
8421 enableval=$enable_testing; TESTING=$enableval
8422else
8423 TESTING=no
ad6254c5 8424fi
7a197a62 8425
f11781c5
AK
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8427$as_echo "$TESTING" >&6; }
72b2cb61 8428
f11781c5
AK
8429if test "$TESTING" = yes; then
8430 # Extract the first word of "ruby1.9", so it can be a program name with args.
8431set dummy ruby1.9; ac_word=$2
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433$as_echo_n "checking for $ac_word... " >&6; }
8434if test "${ac_cv_path_RUBY19+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436else
8437 case $RUBY19 in
8438 [\\/]* | ?:[\\/]*)
8439 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8440 ;;
8441 *)
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8452 fi
bc1024f8 8453done
f11781c5
AK
8454 done
8455IFS=$as_save_IFS
ad6254c5 8456
f11781c5
AK
8457 ;;
8458esac
ad6254c5 8459fi
f11781c5
AK
8460RUBY19=$ac_cv_path_RUBY19
8461if test -n "$RUBY19"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8463$as_echo "$RUBY19" >&6; }
ad6254c5 8464else
f11781c5
AK
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466$as_echo "no" >&6; }
7a197a62
AK
8467fi
8468
ad6254c5 8469
f11781c5
AK
8470 # Extract the first word of "valgrind", so it can be a program name with args.
8471set dummy valgrind; ac_word=$2
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8473$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8474if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8475 $as_echo_n "(cached) " >&6
ad6254c5 8476else
f11781c5 8477 case $VALGRIND in
ad6254c5 8478 [\\/]* | ?:[\\/]*)
f11781c5 8479 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8480 ;;
8481 *)
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483for as_dir in $PATH
8484do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
f11781c5 8487 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8489 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8491 break 2
8492 fi
8493done
f11781c5 8494 done
7a197a62 8495IFS=$as_save_IFS
ad6254c5
AK
8496
8497 ;;
8498esac
8499fi
f11781c5
AK
8500VALGRIND=$ac_cv_path_VALGRIND
8501if test -n "$VALGRIND"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8503$as_echo "$VALGRIND" >&6; }
ad6254c5 8504else
f11781c5 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8506$as_echo "no" >&6; }
ad6254c5
AK
8507fi
8508
7a197a62 8509
f11781c5
AK
8510 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8511 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8512 fi
8513fi
ad6254c5 8514
f11781c5
AK
8515################################################################################
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8517$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8518# Check whether --enable-valgrind_pool was given.
8519if test "${enable_valgrind_pool+set}" = set; then :
8520 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8521else
8522 VALGRIND_POOL=no
8523fi
8524
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8526$as_echo "$VALGRIND_POOL" >&6; }
8527
8528if test "$VALGRIND_POOL" = yes; then
8529 for ac_header in valgrind/memcheck.h
8530do :
8531 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8532if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8533 cat >>confdefs.h <<_ACEOF
8534#define HAVE_VALGRIND_MEMCHECK_H 1
8535_ACEOF
ad6254c5 8536
ad6254c5 8537else
f11781c5 8538 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8539fi
8540
f11781c5
AK
8541done
8542
8543
8544$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8545
ad6254c5
AK
8546fi
8547
8548################################################################################
f11781c5
AK
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8550$as_echo_n "checking whether to use device-mapper... " >&6; }
8551# Check whether --enable-devmapper was given.
8552if test "${enable_devmapper+set}" = set; then :
8553 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8554fi
8555
f11781c5
AK
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8557$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8558
f11781c5 8559if test x$DEVMAPPER = xyes; then
ad6254c5 8560
f11781c5
AK
8561$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8562
8563fi
8564
cdd50823
ZK
8565################################################################################
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8567$as_echo_n "checking whether to build LVMetaD... " >&6; }
8568# Check whether --enable-lvmetad was given.
8569if test "${enable_lvmetad+set}" = set; then :
8570 enableval=$enable_lvmetad; LVMETAD=$enableval
8571fi
8572
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8574$as_echo "$LVMETAD" >&6; }
8575
8576BUILD_LVMETAD=$LVMETAD
8577
f11781c5
AK
8578################################################################################
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8580$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8581# Check whether --enable-udev_sync was given.
8582if test "${enable_udev_sync+set}" = set; then :
8583 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8584else
f11781c5 8585 UDEV_SYNC=no
7a197a62 8586fi
ad6254c5 8587
f11781c5
AK
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8589$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8590
f11781c5 8591if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8592 if test x$PKGCONFIG_INIT != x1; then
8593 pkg_config_init
8594 fi
7a197a62 8595
d93275eb
PR
8596pkg_failed=no
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8598$as_echo_n "checking for UDEV... " >&6; }
8599
8600if test -n "$UDEV_CFLAGS"; then
8601 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8602 elif test -n "$PKG_CONFIG"; then
8603 if test -n "$PKG_CONFIG" && \
8604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8605 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8606 ac_status=$?
8607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8608 test $ac_status = 0; }; then
8609 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8610else
d93275eb 8611 pkg_failed=yes
f11781c5 8612fi
d93275eb
PR
8613 else
8614 pkg_failed=untried
f11781c5 8615fi
d93275eb
PR
8616if test -n "$UDEV_LIBS"; then
8617 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8618 elif test -n "$PKG_CONFIG"; then
8619 if test -n "$PKG_CONFIG" && \
8620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8621 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8622 ac_status=$?
8623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624 test $ac_status = 0; }; then
8625 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8626else
d93275eb 8627 pkg_failed=yes
68f2de6d 8628fi
d93275eb
PR
8629 else
8630 pkg_failed=untried
8631fi
8632
8633
8634
8635if test $pkg_failed = yes; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637$as_echo "no" >&6; }
8638
8639if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8640 _pkg_short_errors_supported=yes
8641else
8642 _pkg_short_errors_supported=no
8643fi
8644 if test $_pkg_short_errors_supported = yes; then
8645 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8646 else
8647 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8648 fi
8649 # Put the nasty error message in config.log where it belongs
8650 echo "$UDEV_PKG_ERRORS" >&5
8651
8652 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8653
8654$UDEV_PKG_ERRORS
8655
8656Consider adjusting the PKG_CONFIG_PATH environment variable if you
8657installed software in a non-standard prefix.
8658
8659Alternatively, you may set the environment variables UDEV_CFLAGS
8660and UDEV_LIBS to avoid the need to call pkg-config.
8661See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8662
d93275eb
PR
8663elif test $pkg_failed = untried; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665$as_echo "no" >&6; }
8666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8668as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8669is in your PATH or set the PKG_CONFIG environment variable to the full
8670path to pkg-config.
8671
8672Alternatively, you may set the environment variables UDEV_CFLAGS
8673and UDEV_LIBS to avoid the need to call pkg-config.
8674See the pkg-config man page for more details.
8675
8676To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8677See \`config.log' for more details" "$LINENO" 5; }
8678
8679else
8680 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8681 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8683$as_echo "yes" >&6; }
8684 UDEV_PC="libudev"
8685fi
68f2de6d 8686
f11781c5 8687$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8688
f11781c5
AK
8689fi
8690
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8692$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8693# Check whether --enable-udev_rules was given.
8694if test "${enable_udev_rules+set}" = set; then :
8695 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8696else
f11781c5 8697 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8698fi
8699
f11781c5
AK
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8701$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8702
a5f46f6a 8703################################################################################
f11781c5
AK
8704# Check whether --enable-compat was given.
8705if test "${enable_compat+set}" = set; then :
8706 enableval=$enable_compat; DM_COMPAT=$enableval
8707else
8708 DM_COMPAT=no
8709fi
a5f46f6a 8710
f11781c5 8711
2061c0ec
AK
8712if test x$DM_COMPAT = xyes; then
8713 as_fn_error $? "--enable-compat is not currently supported.
8714Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8715ioctl protocol is supported.
8716 " "$LINENO" 5
8717fi
8718
f11781c5
AK
8719################################################################################
8720# Check whether --enable-units-compat was given.
8721if test "${enable_units_compat+set}" = set; then :
8722 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8723else
f11781c5 8724 UNITS_COMPAT=no
a5f46f6a
AK
8725fi
8726
8727
f11781c5 8728if test x$UNITS_COMPAT = xyes; then
78ce7acc 8729
f11781c5
AK
8730$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8731
8732fi
8733
8734################################################################################
8735# Check whether --enable-ioctl was given.
8736if test "${enable_ioctl+set}" = set; then :
8737 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8738fi
8739
a5f46f6a 8740
ad6254c5 8741################################################################################
f11781c5
AK
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8743$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8744# Check whether --enable-o_direct was given.
8745if test "${enable_o_direct+set}" = set; then :
8746 enableval=$enable_o_direct; ODIRECT=$enableval
8747fi
ad6254c5 8748
f11781c5
AK
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8750$as_echo "$ODIRECT" >&6; }
8751
8752if test x$ODIRECT = xyes; then
8753
8754$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8755
ad6254c5 8756fi
ad6254c5 8757
f11781c5
AK
8758################################################################################
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8760$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8761# Check whether --enable-applib was given.
8762if test "${enable_applib+set}" = set; then :
8763 enableval=$enable_applib; APPLIB=$enableval
8764else
8765 APPLIB=no
ad6254c5 8766fi
7a197a62 8767
f11781c5
AK
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8769$as_echo "$APPLIB" >&6; }
ad6254c5 8770
f11781c5
AK
8771test x$APPLIB = xyes \
8772 && LVM2APP_LIB=-llvm2app \
8773 || LVM2APP_LIB=
ad6254c5 8774
f11781c5
AK
8775################################################################################
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8777$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8778# Check whether --enable-cmdlib was given.
8779if test "${enable_cmdlib+set}" = set; then :
8780 enableval=$enable_cmdlib; CMDLIB=$enableval
8781else
8782 CMDLIB=no
ad6254c5 8783fi
7a197a62 8784
f11781c5
AK
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8786$as_echo "$CMDLIB" >&6; }
7a197a62 8787
f11781c5
AK
8788test x$CMDLIB = xyes \
8789 && LVM2CMD_LIB=-llvm2cmd \
8790 || LVM2CMD_LIB=
8791
8792################################################################################
8793# Check whether --enable-pkgconfig was given.
8794if test "${enable_pkgconfig+set}" = set; then :
8795 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8796else
f11781c5 8797 PKGCONFIG=no
ad6254c5 8798fi
ad6254c5 8799
ad6254c5 8800
f11781c5
AK
8801################################################################################
8802# Check whether --enable-write_install was given.
8803if test "${enable_write_install+set}" = set; then :
8804 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8805else
f11781c5 8806 WRITE_INSTALL=no
ad6254c5
AK
8807fi
8808
ad6254c5 8809
f11781c5
AK
8810################################################################################
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8812$as_echo_n "checking whether to install fsadm... " >&6; }
8813# Check whether --enable-fsadm was given.
8814if test "${enable_fsadm+set}" = set; then :
8815 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8816fi
8817
f11781c5
AK
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8819$as_echo "$FSADM" >&6; }
ad6254c5 8820
f11781c5
AK
8821################################################################################
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8823$as_echo_n "checking whether to use dmeventd... " >&6; }
8824# Check whether --enable-dmeventd was given.
8825if test "${enable_dmeventd+set}" = set; then :
8826 enableval=$enable_dmeventd; DMEVENTD=$enableval
8827fi
ad6254c5 8828
f11781c5
AK
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8830$as_echo "$DMEVENTD" >&6; }
ad6254c5 8831
f11781c5 8832BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8833
f11781c5
AK
8834if test x$DMEVENTD = xyes; then
8835 if test x$MIRRORS != xinternal; then
8836 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8837 " "$LINENO" 5
8838 fi
8839 if test x$CMDLIB = xno; then
8840 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8841 " "$LINENO" 5
8842 fi
8843fi
ad6254c5 8844
f11781c5 8845if test x$DMEVENTD = xyes; then
ad6254c5 8846
f11781c5 8847$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8848
f11781c5 8849fi
ad6254c5 8850
f11781c5 8851################################################################################
ad6254c5 8852
f11781c5
AK
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8854$as_echo_n "checking for getline in -lc... " >&6; }
8855if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8856 $as_echo_n "(cached) " >&6
ad6254c5 8857else
f11781c5
AK
8858 ac_check_lib_save_LIBS=$LIBS
8859LIBS="-lc $LIBS"
8860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8861/* end confdefs.h. */
f11781c5
AK
8862
8863/* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8866#ifdef __cplusplus
8867extern "C"
8868#endif
8869char getline ();
8870int
8871main ()
8872{
8873return getline ();
8874 ;
8875 return 0;
8876}
ad6254c5 8877_ACEOF
f11781c5
AK
8878if ac_fn_c_try_link "$LINENO"; then :
8879 ac_cv_lib_c_getline=yes
ad6254c5 8880else
f11781c5
AK
8881 ac_cv_lib_c_getline=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885LIBS=$ac_check_lib_save_LIBS
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8888$as_echo "$ac_cv_lib_c_getline" >&6; }
8889if test "x$ac_cv_lib_c_getline" = x""yes; then :
8890
8891$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8892
ad6254c5 8893fi
7a197a62 8894
ad6254c5 8895
f11781c5
AK
8896################################################################################
8897
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8899$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8900if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902else
8903 ac_check_lib_save_LIBS=$LIBS
8904LIBS="-lc $LIBS"
8905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8906/* end confdefs.h. */
f11781c5
AK
8907
8908/* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
8911#ifdef __cplusplus
8912extern "C"
8913#endif
8914char canonicalize_file_name ();
8915int
8916main ()
8917{
8918return canonicalize_file_name ();
8919 ;
8920 return 0;
8921}
ad6254c5 8922_ACEOF
f11781c5
AK
8923if ac_fn_c_try_link "$LINENO"; then :
8924 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8925else
f11781c5
AK
8926 ac_cv_lib_c_canonicalize_file_name=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930LIBS=$ac_check_lib_save_LIBS
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8933$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8934if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8935
8936$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8937
ad6254c5 8938fi
7a197a62 8939
ad6254c5 8940
f11781c5
AK
8941################################################################################
8942if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8943 then exec_prefix="";
8944fi;
7a197a62 8945
f11781c5
AK
8946################################################################################
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8948$as_echo_n "checking for dlopen in -ldl... " >&6; }
8949if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8950 $as_echo_n "(cached) " >&6
ad6254c5 8951else
f11781c5
AK
8952 ac_check_lib_save_LIBS=$LIBS
8953LIBS="-ldl $LIBS"
8954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h. */
ad6254c5 8956
f11781c5
AK
8957/* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960#ifdef __cplusplus
8961extern "C"
8962#endif
8963char dlopen ();
8964int
8965main ()
8966{
8967return dlopen ();
8968 ;
8969 return 0;
8970}
ad6254c5 8971_ACEOF
f11781c5
AK
8972if ac_fn_c_try_link "$LINENO"; then :
8973 ac_cv_lib_dl_dlopen=yes
ad6254c5 8974else
f11781c5 8975 ac_cv_lib_dl_dlopen=no
795ca3e5 8976fi
f11781c5
AK
8977rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979LIBS=$ac_check_lib_save_LIBS
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8982$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8983if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8984
ad6254c5 8985
f11781c5 8986$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 8987
f11781c5
AK
8988 DL_LIBS="-ldl"
8989 HAVE_LIBDL=yes
8990else
795ca3e5 8991
f11781c5
AK
8992 DL_LIBS=
8993 HAVE_LIBDL=no
8994fi
8106cdd5 8995
ad6254c5 8996
f11781c5
AK
8997################################################################################
8998if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8999 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9000 -o "x$RAID" = xshared \
f11781c5
AK
9001 \) -a "x$STATIC_LINK" = xyes ];
9002 then as_fn_error $? "Features cannot be 'shared' when building statically
9003" "$LINENO" 5
9004fi
ad6254c5 9005
f11781c5
AK
9006################################################################################
9007if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9009$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9010if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9011 $as_echo_n "(cached) " >&6
795ca3e5 9012else
f11781c5
AK
9013 ac_check_lib_save_LIBS=$LIBS
9014LIBS="-lpthread $LIBS"
9015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9016/* end confdefs.h. */
8a2fc586 9017
f11781c5
AK
9018/* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021#ifdef __cplusplus
9022extern "C"
ad6254c5 9023#endif
f11781c5
AK
9024char pthread_mutex_lock ();
9025int
9026main ()
9027{
9028return pthread_mutex_lock ();
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033if ac_fn_c_try_link "$LINENO"; then :
9034 ac_cv_lib_pthread_pthread_mutex_lock=yes
9035else
9036 ac_cv_lib_pthread_pthread_mutex_lock=no
9037fi
9038rm -f core conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9040LIBS=$ac_check_lib_save_LIBS
9041fi
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9043$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9044if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9045 PTHREAD_LIBS="-lpthread"
9046else
9047 hard_bailout
9048fi
9049
9050fi
9051
9052################################################################################
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9054$as_echo_n "checking whether to enable selinux support... " >&6; }
9055# Check whether --enable-selinux was given.
9056if test "${enable_selinux+set}" = set; then :
9057 enableval=$enable_selinux; SELINUX=$enableval
9058fi
9059
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9061$as_echo "$SELINUX" >&6; }
8a2fc586 9062
f11781c5
AK
9063################################################################################
9064if test x$SELINUX = xyes; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9066$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9067if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069else
9070 ac_check_lib_save_LIBS=$LIBS
9071LIBS="-lsepol $LIBS"
9072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h. */
8a2fc586 9074
7a197a62
AK
9075/* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9078#ifdef __cplusplus
9079extern "C"
ad6254c5 9080#endif
f11781c5 9081char sepol_check_context ();
ad6254c5
AK
9082int
9083main ()
9084{
f11781c5 9085return sepol_check_context ();
ad6254c5
AK
9086 ;
9087 return 0;
9088}
9089_ACEOF
f11781c5
AK
9090if ac_fn_c_try_link "$LINENO"; then :
9091 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9092else
f11781c5
AK
9093 ac_cv_lib_sepol_sepol_check_context=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097LIBS=$ac_check_lib_save_LIBS
80992638 9098fi
f11781c5
AK
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9100$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9101if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9102
80992638 9103
f11781c5
AK
9104$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9105
9106 SELINUX_LIBS="-lsepol"
8106cdd5 9107fi
795ca3e5 9108
f11781c5
AK
9109
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9111$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9112if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9113 $as_echo_n "(cached) " >&6
25fbec5b 9114else
f11781c5
AK
9115 ac_check_lib_save_LIBS=$LIBS
9116LIBS="-lselinux $LIBS"
9117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9118/* end confdefs.h. */
80992638 9119
7a197a62
AK
9120/* Override any GCC internal prototype to avoid an error.
9121 Use char because int might match the return type of a GCC
ad6254c5 9122 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9123#ifdef __cplusplus
9124extern "C"
9125#endif
f11781c5 9126char is_selinux_enabled ();
ad6254c5
AK
9127int
9128main ()
9129{
f11781c5 9130return is_selinux_enabled ();
ad6254c5
AK
9131 ;
9132 return 0;
9133}
9134_ACEOF
f11781c5
AK
9135if ac_fn_c_try_link "$LINENO"; then :
9136 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9137else
f11781c5 9138 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9139fi
f11781c5
AK
9140rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142LIBS=$ac_check_lib_save_LIBS
25fbec5b 9143fi
f11781c5
AK
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9145$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9146if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9147
f11781c5
AK
9148 for ac_header in selinux/selinux.h
9149do :
9150 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9151if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9152 cat >>confdefs.h <<_ACEOF
9153#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9154_ACEOF
795ca3e5 9155
25fbec5b 9156else
f11781c5 9157 hard_bailout
795ca3e5 9158fi
795ca3e5 9159
f11781c5 9160done
795ca3e5 9161
f11781c5
AK
9162 for ac_header in selinux/label.h
9163do :
9164 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9165if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9166 cat >>confdefs.h <<_ACEOF
9167#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9168_ACEOF
ad6254c5 9169
ad6254c5 9170fi
7a197a62 9171
f11781c5 9172done
7a197a62 9173
ad6254c5 9174
f11781c5 9175$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9176
f11781c5
AK
9177 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9178 SELINUX_PC="libselinux"
9179 HAVE_SELINUX=yes
ad6254c5 9180else
8106cdd5 9181
f11781c5
AK
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9183$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9184 SELINUX_LIBS=
9185 SELINUX_PC=
9186 HAVE_SELINUX=no
795ca3e5 9187fi
ad6254c5 9188
795ca3e5
AK
9189fi
9190
f11781c5
AK
9191################################################################################
9192if test x$REALTIME = xyes; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9194$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9195if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9196 $as_echo_n "(cached) " >&6
26e7f2e0 9197else
f11781c5
AK
9198 ac_check_lib_save_LIBS=$LIBS
9199LIBS="-lrt $LIBS"
9200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9201/* end confdefs.h. */
ad6254c5 9202
f11781c5
AK
9203/* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206#ifdef __cplusplus
9207extern "C"
9208#endif
9209char clock_gettime ();
ad6254c5
AK
9210int
9211main ()
9212{
f11781c5 9213return clock_gettime ();
ad6254c5
AK
9214 ;
9215 return 0;
9216}
9217_ACEOF
f11781c5
AK
9218if ac_fn_c_try_link "$LINENO"; then :
9219 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9220else
f11781c5 9221 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9222fi
f11781c5
AK
9223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9226fi
f11781c5
AK
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9228$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9229if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9230 HAVE_REALTIME=yes
9231else
9232 HAVE_REALTIME=no
8106cdd5 9233fi
ad6254c5 9234
ad6254c5 9235
f11781c5 9236 if test x$HAVE_REALTIME = xyes; then
7a197a62 9237
f11781c5 9238$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9239
f11781c5
AK
9240 LIBS="-lrt $LIBS"
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9243$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9244 fi
9245fi
9246
9247################################################################################
9248for ac_header in getopt.h
9249do :
9250 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9251if test "x$ac_cv_header_getopt_h" = x""yes; then :
9252 cat >>confdefs.h <<_ACEOF
9253#define HAVE_GETOPT_H 1
9254_ACEOF
9255
9256$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9257
ad6254c5 9258fi
7a197a62 9259
f11781c5 9260done
ad6254c5 9261
7a197a62 9262
f11781c5
AK
9263################################################################################
9264if test x$READLINE != xno; then
9265 lvm_saved_libs=$LIBS
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9267$as_echo_n "checking for library containing tgetent... " >&6; }
9268if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9269 $as_echo_n "(cached) " >&6
ad6254c5 9270else
f11781c5
AK
9271 ac_func_search_save_LIBS=$LIBS
9272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h. */
ad6254c5 9274
f11781c5
AK
9275/* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278#ifdef __cplusplus
9279extern "C"
9280#endif
9281char tgetent ();
9282int
9283main ()
9284{
9285return tgetent ();
9286 ;
9287 return 0;
9288}
ad6254c5 9289_ACEOF
f11781c5
AK
9290for ac_lib in '' tinfo ncurses curses termcap termlib; do
9291 if test -z "$ac_lib"; then
9292 ac_res="none required"
9293 else
9294 ac_res=-l$ac_lib
9295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9296 fi
9297 if ac_fn_c_try_link "$LINENO"; then :
9298 ac_cv_search_tgetent=$ac_res
9299fi
9300rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext
9302 if test "${ac_cv_search_tgetent+set}" = set; then :
9303 break
9304fi
9305done
9306if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9307
80992638 9308else
f11781c5 9309 ac_cv_search_tgetent=no
b896caa1 9310fi
f11781c5
AK
9311rm conftest.$ac_ext
9312LIBS=$ac_func_search_save_LIBS
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9315$as_echo "$ac_cv_search_tgetent" >&6; }
9316ac_res=$ac_cv_search_tgetent
9317if test "$ac_res" != no; then :
9318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9319 READLINE_LIBS=$ac_cv_search_tgetent
9320else
ad6254c5 9321
f11781c5
AK
9322 if test "$READLINE" = yes; then
9323 as_fn_error $? "termcap could not be found which is required for the
9324--enable-readline option (which is enabled by default). Either disable readline
9325support with --disable-readline or download and install termcap from:
9326 ftp.gnu.org/gnu/termcap
9327Note: if you are using precompiled packages you will also need the development
9328 package as well (which may be called termcap-devel or something similar).
9329Note: (n)curses also seems to work as a substitute for termcap. This was
9330 not found either - but you could try installing that as well." "$LINENO" 5
9331 fi
9332fi
b896caa1 9333
f11781c5
AK
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9335$as_echo_n "checking for readline in -lreadline... " >&6; }
9336if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9337 $as_echo_n "(cached) " >&6
795ca3e5 9338else
f11781c5
AK
9339 ac_check_lib_save_LIBS=$LIBS
9340LIBS="-lreadline $LIBS"
9341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9342/* end confdefs.h. */
8a2fc586 9343
f11781c5
AK
9344/* Override any GCC internal prototype to avoid an error.
9345 Use char because int might match the return type of a GCC
9346 builtin and then its argument prototype would still apply. */
9347#ifdef __cplusplus
9348extern "C"
ad6254c5 9349#endif
f11781c5
AK
9350char readline ();
9351int
9352main ()
9353{
9354return readline ();
9355 ;
9356 return 0;
9357}
9358_ACEOF
9359if ac_fn_c_try_link "$LINENO"; then :
9360 ac_cv_lib_readline_readline=yes
9361else
9362 ac_cv_lib_readline_readline=no
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366LIBS=$ac_check_lib_save_LIBS
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9369$as_echo "$ac_cv_lib_readline_readline" >&6; }
9370if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9371
8a2fc586 9372
f11781c5
AK
9373$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9374
9375 LIBS=$lvm_saved_libs
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9377$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9378if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9380else
9381 ac_check_lib_save_LIBS=$LIBS
9382LIBS="-lreadline $LIBS"
9383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384/* end confdefs.h. */
8a2fc586 9385
7a197a62
AK
9386/* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9389#ifdef __cplusplus
9390extern "C"
ad6254c5 9391#endif
f11781c5 9392char rl_line_buffer ();
ad6254c5
AK
9393int
9394main ()
9395{
f11781c5 9396return rl_line_buffer ();
ad6254c5
AK
9397 ;
9398 return 0;
9399}
9400_ACEOF
f11781c5
AK
9401if ac_fn_c_try_link "$LINENO"; then :
9402 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9403else
f11781c5
AK
9404 ac_cv_lib_readline_rl_line_buffer=no
9405fi
9406rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9408LIBS=$ac_check_lib_save_LIBS
9409fi
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9411$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9412if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9413 READLINE_LIBS="-lreadline"
9414else
9415
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9417$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9418 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9419
ad6254c5 9420fi
7a197a62 9421
f11781c5
AK
9422else
9423
9424 READLINE_LIBS=
9425 if test "$READLINE" = yes; then
9426 as_fn_error $? "GNU Readline could not be found which is required for the
9427--enable-readline option (which is enabled by default). Either disable readline
9428support with --disable-readline or download and install readline from:
9429 ftp.gnu.org/gnu/readline
9430Note: if you are using precompiled packages you will also need the development
9431package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9432 fi
ad6254c5 9433fi
f11781c5
AK
9434
9435 LIBS="$READLINE_LIBS $lvm_saved_libs"
9436 for ac_func in rl_completion_matches
9437do :
9438 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9439if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9440 cat >>confdefs.h <<_ACEOF
f11781c5 9441#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9442_ACEOF
9443
ad6254c5
AK
9444fi
9445done
9446
f11781c5 9447 LIBS=$lvm_saved_libs
ad6254c5
AK
9448fi
9449
f11781c5
AK
9450################################################################################
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9452$as_echo_n "checking whether to enable internationalisation... " >&6; }
9453# Check whether --enable-nls was given.
9454if test "${enable_nls+set}" = set; then :
9455 enableval=$enable_nls; INTL=$enableval
9456else
9457 INTL=no
9458fi
d911ec67 9459
f11781c5
AK
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9461$as_echo "$INTL" >&6; }
9462
9463if test x$INTL = xyes; then
9464# FIXME - Move this - can be device-mapper too
9465 INTL_PACKAGE="lvm2"
9466 # Extract the first word of "msgfmt", so it can be a program name with args.
9467set dummy msgfmt; ac_word=$2
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469$as_echo_n "checking for $ac_word... " >&6; }
9470if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9471 $as_echo_n "(cached) " >&6
d911ec67 9472else
f11781c5
AK
9473 case $MSGFMT in
9474 [\\/]* | ?:[\\/]*)
9475 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9476 ;;
9477 *)
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479for as_dir in $PATH
9480do
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9485 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9488 fi
9489done
9490 done
9491IFS=$as_save_IFS
9492
9493 ;;
d911ec67 9494esac
f11781c5
AK
9495fi
9496MSGFMT=$ac_cv_path_MSGFMT
9497if test -n "$MSGFMT"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9499$as_echo "$MSGFMT" >&6; }
d911ec67 9500else
f11781c5
AK
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502$as_echo "no" >&6; }
9503fi
d911ec67 9504
f11781c5
AK
9505
9506 if [ "x$MSGFMT" == x ];
9507 then as_fn_error $? "msgfmt not found in path $PATH
9508 " "$LINENO" 5
9509 fi;
9510
9511
9512# Check whether --with-localedir was given.
9513if test "${with_localedir+set}" = set; then :
9514 withval=$with_localedir; LOCALEDIR=$withval
9515else
9516 LOCALEDIR='${prefix}/share/locale'
9517fi
9518
9519fi
9520
9521################################################################################
9522
9523# Check whether --with-confdir was given.
9524if test "${with_confdir+set}" = set; then :
9525 withval=$with_confdir; CONFDIR=$withval
9526else
9527 CONFDIR="/etc"
9528fi
9529
9530
9531
9532# Check whether --with-staticdir was given.
9533if test "${with_staticdir+set}" = set; then :
9534 withval=$with_staticdir; STATICDIR=$withval
9535else
9536 STATICDIR='${exec_prefix}/sbin'
9537fi
9538
9539
9540
9541# Check whether --with-usrlibdir was given.
9542if test "${with_usrlibdir+set}" = set; then :
9543 withval=$with_usrlibdir; usrlibdir=$withval
9544else
9545 usrlibdir='${prefix}/lib'
d911ec67
AK
9546fi
9547
d911ec67 9548
d911ec67 9549
f11781c5
AK
9550# Check whether --with-usrsbindir was given.
9551if test "${with_usrsbindir+set}" = set; then :
9552 withval=$with_usrsbindir; usrsbindir=$withval
9553else
9554 usrsbindir='${prefix}/sbin'
d911ec67
AK
9555fi
9556
d911ec67 9557
f11781c5 9558################################################################################
d911ec67 9559
f11781c5
AK
9560# Check whether --with-udev_prefix was given.
9561if test "${with_udev_prefix+set}" = set; then :
9562 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9563else
f11781c5 9564 udev_prefix='${exec_prefix}'
d911ec67 9565fi
d911ec67 9566
f11781c5
AK
9567
9568
9569# Check whether --with-udevdir was given.
9570if test "${with_udevdir+set}" = set; then :
9571 withval=$with_udevdir; udevdir=$withval
9572else
9573 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9574fi
f11781c5
AK
9575
9576
9577################################################################################
9578if test x$READLINE = xyes; then
9579 for ac_header in readline/readline.h readline/history.h
9580do :
9581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9582ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9583if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9584 cat >>confdefs.h <<_ACEOF
9585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9586_ACEOF
9587
9588else
f11781c5 9589 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9590fi
9591
9592done
9593
9594fi
9595
f11781c5
AK
9596if test x$CLVMD != xnone; then
9597 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
9598do :
9599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9600ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9602 cat >>confdefs.h <<_ACEOF
9603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9604_ACEOF
ad6254c5 9605
f11781c5
AK
9606else
9607 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9608fi
7a197a62 9609
f11781c5 9610done
ad6254c5 9611
f11781c5
AK
9612 for ac_func in dup2 getmntent memmove select socket
9613do :
9614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9616if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9617 cat >>confdefs.h <<_ACEOF
9618#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9619_ACEOF
ad6254c5 9620
f11781c5
AK
9621else
9622 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9623fi
f11781c5 9624done
7a197a62 9625
f11781c5
AK
9626 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9627# -lseq on Dynix/PTX, -lgen on Unixware.
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9629$as_echo_n "checking for library containing getmntent... " >&6; }
9630if test "${ac_cv_search_getmntent+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632else
9633 ac_func_search_save_LIBS=$LIBS
9634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635/* end confdefs.h. */
ad6254c5 9636
f11781c5
AK
9637/* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640#ifdef __cplusplus
9641extern "C"
9642#endif
9643char getmntent ();
9644int
9645main ()
9646{
9647return getmntent ();
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652for ac_lib in '' sun seq gen; do
9653 if test -z "$ac_lib"; then
9654 ac_res="none required"
9655 else
9656 ac_res=-l$ac_lib
9657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9658 fi
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 ac_cv_search_getmntent=$ac_res
9661fi
9662rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext
9664 if test "${ac_cv_search_getmntent+set}" = set; then :
9665 break
9666fi
9667done
9668if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9669
ad6254c5 9670else
f11781c5 9671 ac_cv_search_getmntent=no
795ca3e5 9672fi
f11781c5
AK
9673rm conftest.$ac_ext
9674LIBS=$ac_func_search_save_LIBS
9675fi
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9677$as_echo "$ac_cv_search_getmntent" >&6; }
9678ac_res=$ac_cv_search_getmntent
9679if test "$ac_res" != no; then :
9680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9681 ac_cv_func_getmntent=yes
9682
9683$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9684
f11781c5
AK
9685else
9686 ac_cv_func_getmntent=no
8106cdd5 9687fi
f11781c5
AK
9688
9689
9690 for ac_header in sys/select.h sys/socket.h
9691do :
9692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9695 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9697_ACEOF
795ca3e5 9698
795ca3e5
AK
9699fi
9700
ad6254c5 9701done
80992638 9702
f11781c5
AK
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9704$as_echo_n "checking types of arguments for select... " >&6; }
9705if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9706 $as_echo_n "(cached) " >&6
83912faa 9707else
f11781c5
AK
9708 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9709 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9710 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9712/* end confdefs.h. */
9713$ac_includes_default
f11781c5
AK
9714#ifdef HAVE_SYS_SELECT_H
9715# include <sys/select.h>
9716#endif
9717#ifdef HAVE_SYS_SOCKET_H
9718# include <sys/socket.h>
9719#endif
9720
9721int
9722main ()
9723{
9724extern int select ($ac_arg1,
9725 $ac_arg234, $ac_arg234, $ac_arg234,
9726 $ac_arg5);
9727 ;
9728 return 0;
9729}
ad6254c5 9730_ACEOF
f11781c5
AK
9731if ac_fn_c_try_compile "$LINENO"; then :
9732 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9733fi
9734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 done
9736 done
9737done
9738# Provide a safe default value.
9739: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9740
ad6254c5 9741fi
f11781c5
AK
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9743$as_echo "$ac_cv_func_select_args" >&6; }
9744ac_save_IFS=$IFS; IFS=','
9745set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9746IFS=$ac_save_IFS
9747shift
7a197a62 9748
f11781c5
AK
9749cat >>confdefs.h <<_ACEOF
9750#define SELECT_TYPE_ARG1 $1
9751_ACEOF
ad6254c5 9752
f11781c5
AK
9753
9754cat >>confdefs.h <<_ACEOF
9755#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9756_ACEOF
f11781c5
AK
9757
9758
9759cat >>confdefs.h <<_ACEOF
9760#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9761_ACEOF
ad6254c5 9762
f11781c5
AK
9763rm -f conftest*
9764
ad6254c5 9765fi
7a197a62 9766
f11781c5
AK
9767if test x$CLUSTER != xnone; then
9768 for ac_header in sys/socket.h sys/un.h
9769do :
9770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9773 cat >>confdefs.h <<_ACEOF
9774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9775_ACEOF
ad6254c5 9776
f11781c5
AK
9777else
9778 as_fn_error $? "bailing out" "$LINENO" 5
9779fi
9780
9781done
9782
9783 for ac_func in socket
9784do :
9785 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9786if test "x$ac_cv_func_socket" = x""yes; then :
9787 cat >>confdefs.h <<_ACEOF
9788#define HAVE_SOCKET 1
9789_ACEOF
7a197a62 9790
80992638 9791else
f11781c5 9792 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9793fi
f11781c5 9794done
83912faa 9795
69792976 9796fi
f11781c5
AK
9797
9798if test x$DMEVENTD = xyes; then
9799 for ac_header in arpa/inet.h
9800do :
9801 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9802if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9803 cat >>confdefs.h <<_ACEOF
f11781c5 9804#define HAVE_ARPA_INET_H 1
ad6254c5 9805_ACEOF
69792976 9806
69792976 9807else
f11781c5 9808 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9809fi
9810
ad6254c5 9811done
69792976 9812
ad6254c5
AK
9813fi
9814
f11781c5
AK
9815if test x$HAVE_LIBDL = xyes; then
9816 for ac_header in dlfcn.h
9817do :
9818 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9819if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9820 cat >>confdefs.h <<_ACEOF
9821#define HAVE_DLFCN_H 1
a5f46f6a 9822_ACEOF
a5f46f6a 9823
f11781c5
AK
9824else
9825 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9826fi
9827
f11781c5 9828done
a5f46f6a 9829
a5f46f6a
AK
9830fi
9831
f11781c5
AK
9832if test x$INTL = xyes; then
9833 for ac_header in libintl.h
9834do :
9835 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9836if test "x$ac_cv_header_libintl_h" = x""yes; then :
9837 cat >>confdefs.h <<_ACEOF
9838#define HAVE_LIBINTL_H 1
9839_ACEOF
a5f46f6a 9840
a5f46f6a 9841else
f11781c5 9842 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9843fi
f11781c5
AK
9844
9845done
a5f46f6a
AK
9846
9847fi
f11781c5
AK
9848
9849if test x$UDEV_SYNC = xyes; then
9850 for ac_header in sys/ipc.h sys/sem.h
9851do :
9852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9853ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9854if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9855 cat >>confdefs.h <<_ACEOF
9856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9857_ACEOF
9858
9859else
f11781c5 9860 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9861fi
9862
9863done
9864
9865fi
9866
a653923f
AK
9867################################################################################
9868# Extract the first word of "modprobe", so it can be a program name with args.
9869set dummy modprobe; ac_word=$2
f11781c5 9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9871$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9872if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9873 $as_echo_n "(cached) " >&6
72b2cb61
AK
9874else
9875 case $MODPROBE_CMD in
9876 [\\/]* | ?:[\\/]*)
9877 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9878 ;;
9879 *)
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
f11781c5 9885 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9887 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9889 break 2
9890 fi
9891done
f11781c5 9892 done
7a197a62 9893IFS=$as_save_IFS
72b2cb61
AK
9894
9895 ;;
9896esac
9897fi
9898MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9899if test -n "$MODPROBE_CMD"; then
f11781c5 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9901$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9902else
f11781c5 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9904$as_echo "no" >&6; }
72b2cb61
AK
9905fi
9906
a653923f 9907
7a197a62 9908
a653923f 9909if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9910
9911cat >>confdefs.h <<_ACEOF
9912#define MODPROBE_CMD "$MODPROBE_CMD"
9913_ACEOF
9914
a653923f
AK
9915fi
9916
b5c2529b 9917
a9b601e2
ZK
9918lvm_exec_prefix=$exec_prefix
9919test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9920test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 9921LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 9922
b5c2529b 9923cat >>confdefs.h <<_ACEOF
d2c11605 9924#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
9925_ACEOF
9926
9927
9928if test "$CLVMD" != none; then
9929 clvmd_prefix=$ac_default_prefix
d2c11605 9930 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
9931 test "$prefix" != NONE && clvmd_prefix=$prefix
9932
9933cat >>confdefs.h <<_ACEOF
d2c11605 9934#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
9935_ACEOF
9936
9937fi
9938
80992638 9939################################################################################
93bd259b
AK
9940if test "$BUILD_DMEVENTD" = yes; then
9941
9942# Check whether --with-dmeventd-pidfile was given.
f11781c5 9943if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9944 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9945else
71082be4 9946 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9947fi
9948
93bd259b 9949
71082be4
ZK
9950cat >>confdefs.h <<_ACEOF
9951#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9952_ACEOF
93bd259b 9953
71082be4 9954fi
93bd259b
AK
9955
9956if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9957
9958# Check whether --with-dmeventd-path was given.
f11781c5 9959if test "${with_dmeventd_path+set}" = set; then :
71082be4 9960 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9961else
71082be4 9962 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9963fi
9964
93bd259b 9965
71082be4
ZK
9966cat >>confdefs.h <<_ACEOF
9967#define DMEVENTD_PATH "$DMEVENTD_PATH"
9968_ACEOF
3399ae32 9969
71082be4 9970fi
3399ae32 9971
8bae0a1e
AK
9972
9973
8bae0a1e 9974# Check whether --with-default-run-dir was given.
f11781c5 9975if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9976 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9977else
9978 DEFAULT_RUN_DIR="/var/run/lvm"
9979fi
9980
9981cat >>confdefs.h <<_ACEOF
9982#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9983_ACEOF
9984
9985
71082be4 9986################################################################################
3399ae32
AK
9987
9988# Check whether --with-default-system-dir was given.
f11781c5 9989if test "${with_default_system_dir+set}" = set; then :
71082be4 9990 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 9991else
71082be4 9992 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
9993fi
9994
71082be4 9995
3399ae32
AK
9996cat >>confdefs.h <<_ACEOF
9997#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9998_ACEOF
9999
10000
10001
3399ae32 10002# Check whether --with-default-archive-subdir was given.
f11781c5 10003if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10004 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10005else
71082be4 10006 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10007fi
10008
71082be4 10009
3399ae32
AK
10010cat >>confdefs.h <<_ACEOF
10011#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10012_ACEOF
10013
10014
10015
3399ae32 10016# Check whether --with-default-backup-subdir was given.
f11781c5 10017if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10018 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10019else
71082be4 10020 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10021fi
10022
71082be4 10023
3399ae32
AK
10024cat >>confdefs.h <<_ACEOF
10025#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10026_ACEOF
10027
10028
10029
3399ae32 10030# Check whether --with-default-cache-subdir was given.
f11781c5 10031if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10032 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10033else
71082be4 10034 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10035fi
10036
71082be4 10037
3399ae32
AK
10038cat >>confdefs.h <<_ACEOF
10039#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10040_ACEOF
10041
10042
10043
3399ae32 10044# Check whether --with-default-locking-dir was given.
f11781c5 10045if test "${with_default_locking_dir+set}" = set; then :
71082be4 10046 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10047else
71082be4 10048 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10049fi
10050
71082be4 10051
3399ae32
AK
10052cat >>confdefs.h <<_ACEOF
10053#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10054_ACEOF
10055
10056
fea55602
DW
10057################################################################################
10058
10059# Check whether --with-default-data-alignment was given.
f11781c5 10060if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10061 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10062else
10063 DEFAULT_DATA_ALIGNMENT=1
10064fi
10065
10066
10067cat >>confdefs.h <<_ACEOF
10068#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10069_ACEOF
10070
10071
93bd259b 10072################################################################################
f11781c5 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10074$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10075
10076# Check whether --with-interface was given.
f11781c5 10077if test "${with_interface+set}" = set; then :
71082be4 10078 withval=$with_interface; interface=$withval
93bd259b 10079else
71082be4 10080 interface=ioctl
93bd259b
AK
10081fi
10082
10083if [ "x$interface" != xioctl ];
10084then
f11781c5 10085 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10086fi
f11781c5 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10088$as_echo "$interface" >&6; }
93bd259b
AK
10089
10090################################################################################
db8b5af9 10091DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10092
10093cat >>confdefs.h <<_ACEOF
10094#define DM_LIB_VERSION $DM_LIB_VERSION
10095_ACEOF
10096
10097
db8b5af9 10098DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10099
db8b5af9 10100LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10101
db8b5af9 10102VER=`cat "$srcdir"/VERSION`
bf456146 10103LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10104VER=`echo "$VER" | $AWK '{print $1}'`
10105LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10106VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10107LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10108LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10109LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10110LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10111
80992638 10112################################################################################
fae0c576 10113
83912faa 10114
795ca3e5
AK
10115
10116
10117
10118
10119
10120
5a52dca9 10121
8ef2b021 10122
199e490e 10123
69792976
AK
10124
10125
10126
d0191583 10127
69792976 10128
8106cdd5
AK
10129
10130
10131
10132
10133
d68a82ec 10134
036f273a 10135
7d1552c9 10136
8106cdd5 10137
0a62c911 10138
8106cdd5 10139
4a7f3eb2 10140
4922197a
AK
10141
10142
d8ac0fbc 10143
1a9ea74d 10144
8a2fc586
AK
10145
10146
d0191583 10147
93bd259b
AK
10148
10149
10150
10151
10152
d0191583
JM
10153
10154
10155
10156
10157
8a2fc586 10158
19a2c6e0 10159
f7f0854e
ZK
10160
10161
3ceb7608 10162
8ce0cbda 10163
8b1a3214 10164
ec6a6fbe
AK
10165
10166
10167
10168
e2997b73
AK
10169
10170
10171
10172
10173
10174
a946372e
AK
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
ec6a6fbe 10186
cac52ca4 10187
d3c8211f 10188
7e3fe830 10189
a5f46f6a
AK
10190
10191
10192
572fefeb 10193
90c80887 10194
3399ae32
AK
10195
10196
10197
10198
10199
90c80887 10200
bf456146 10201
e1b8a236 10202
0878503f 10203
8fea97b7 10204
54b362f9 10205
b1f08e51 10206
d1e8046f 10207
fea55602 10208
c89bc357 10209
6e5c1f75 10210
3ba4a195 10211
d2c11605
ZK
10212
10213
cdd50823 10214
bf09a320 10215
68f2de6d
AK
10216
10217
80992638 10218################################################################################
13dd3138 10219ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/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/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 libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10220
ad6254c5 10221cat >confcache <<\_ACEOF
795ca3e5
AK
10222# This file is a shell script that caches the results of configure
10223# tests run on this system so they can be shared between configure
ad6254c5
AK
10224# scripts and configure runs, see configure's option --config-cache.
10225# It is not useful on other systems. If it contains results you don't
10226# want to keep, you may remove or edit it.
795ca3e5 10227#
ad6254c5
AK
10228# config.status only pays attention to the cache file if you give it
10229# the --recheck option to rerun configure.
795ca3e5 10230#
ad6254c5
AK
10231# `ac_cv_env_foo' variables (set or unset) will be overridden when
10232# loading this file, other *unset* `ac_cv_foo' will be assigned the
10233# following values.
10234
10235_ACEOF
10236
795ca3e5
AK
10237# The following way of writing the cache mishandles newlines in values,
10238# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10239# So, we kill variables containing newlines.
795ca3e5
AK
10240# Ultrix sh set writes to stderr and can't be redirected directly,
10241# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10242(
10243 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10244 eval ac_val=\$$ac_var
10245 case $ac_val in #(
10246 *${as_nl}*)
10247 case $ac_var in #(
f11781c5 10248 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10249$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10250 esac
10251 case $ac_var in #(
10252 _ | IFS | as_nl) ;; #(
ec6a6fbe 10253 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10254 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10255 esac ;;
10256 esac
10257 done
10258
ad6254c5 10259 (set) 2>&1 |
7a197a62
AK
10260 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10261 *${as_nl}ac_space=\ *)
f11781c5
AK
10262 # `set' does not quote correctly, so add quotes: double-quote
10263 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10264 sed -n \
8a2fc586
AK
10265 "s/'/'\\\\''/g;
10266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10267 ;; #(
ad6254c5
AK
10268 *)
10269 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10271 ;;
7a197a62
AK
10272 esac |
10273 sort
10274) |
ad6254c5 10275 sed '
7a197a62 10276 /^ac_cv_env_/b end
ad6254c5 10277 t clear
7a197a62 10278 :clear
ad6254c5
AK
10279 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10280 t end
7a197a62
AK
10281 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10282 :end' >>confcache
10283if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10284 if test -w "$cache_file"; then
10285 test "x$cache_file" != "x/dev/null" &&
f11781c5 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10287$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10288 cat confcache >$cache_file
795ca3e5 10289 else
f11781c5 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10291$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10292 fi
10293fi
10294rm -f confcache
10295
795ca3e5
AK
10296test "x$prefix" = xNONE && prefix=$ac_default_prefix
10297# Let make expand exec_prefix.
10298test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10299
72b2cb61 10300DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10301
10302ac_libobjs=
10303ac_ltlibobjs=
f11781c5 10304U=
ad6254c5
AK
10305for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10306 # 1. Remove the extension, and $U if already installed.
7a197a62 10307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10308 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10310 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10313done
10314LIBOBJS=$ac_libobjs
80992638 10315
ad6254c5
AK
10316LTLIBOBJS=$ac_ltlibobjs
10317
10318
10319
10320: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10321ac_write_fail=0
ad6254c5
AK
10322ac_clean_files_save=$ac_clean_files
10323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10325$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10326as_write_fail=0
10327cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10328#! $SHELL
10329# Generated by $as_me.
795ca3e5 10330# Run this file to recreate the current configuration.
795ca3e5 10331# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10332# configure, is in config.log if it exists.
10333
10334debug=false
10335ac_cs_recheck=false
10336ac_cs_silent=false
ad6254c5 10337
f11781c5
AK
10338SHELL=\${CONFIG_SHELL-$SHELL}
10339export SHELL
10340_ASEOF
10341cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10342## -------------------- ##
10343## M4sh Initialization. ##
10344## -------------------- ##
ad6254c5 10345
25fbec5b
AK
10346# Be more Bourne compatible
10347DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10348if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10349 emulate sh
10350 NULLCMD=:
ec6a6fbe 10351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10352 # is contrary to our usage. Disable this feature.
10353 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10354 setopt NO_GLOB_SUBST
10355else
f11781c5
AK
10356 case `(set -o) 2>/dev/null` in #(
10357 *posix*) :
10358 set -o posix ;; #(
10359 *) :
10360 ;;
25fbec5b 10361esac
7a197a62 10362fi
25fbec5b
AK
10363
10364
ec6a6fbe
AK
10365as_nl='
10366'
10367export as_nl
10368# Printing a long string crashes Solaris 7 /usr/bin/printf.
10369as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10372# Prefer a ksh shell builtin over an external printf program on Solaris,
10373# but without wasting forks for bash or zsh.
10374if test -z "$BASH_VERSION$ZSH_VERSION" \
10375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10376 as_echo='print -r --'
10377 as_echo_n='print -rn --'
10378elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10379 as_echo='printf %s\n'
10380 as_echo_n='printf %s'
10381else
10382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10384 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10385 else
ec6a6fbe
AK
10386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10387 as_echo_n_body='eval
10388 arg=$1;
f11781c5 10389 case $arg in #(
ec6a6fbe
AK
10390 *"$as_nl"*)
10391 expr "X$arg" : "X\\(.*\\)$as_nl";
10392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10393 esac;
10394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10395 '
10396 export as_echo_n_body
10397 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10398 fi
ec6a6fbe
AK
10399 export as_echo_body
10400 as_echo='sh -c $as_echo_body as_echo'
10401fi
10402
10403# The user is always right.
10404if test "${PATH_SEPARATOR+set}" != set; then
10405 PATH_SEPARATOR=:
10406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10408 PATH_SEPARATOR=';'
10409 }
ad6254c5
AK
10410fi
10411
ad6254c5 10412
7a197a62
AK
10413# IFS
10414# We need space, tab and new line, in precisely that order. Quoting is
10415# there to prevent editors from complaining about space-tab.
10416# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10417# splitting by setting IFS to empty value.)
7a197a62
AK
10418IFS=" "" $as_nl"
10419
10420# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10421case $0 in #((
7a197a62
AK
10422 *[\\/]* ) as_myself=$0 ;;
10423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424for as_dir in $PATH
10425do
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
f11781c5
AK
10428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10429 done
7a197a62
AK
10430IFS=$as_save_IFS
10431
10432 ;;
10433esac
10434# We did not find ourselves, most probably we were run as `sh COMMAND'
10435# in which case we are not to be found in the path.
10436if test "x$as_myself" = x; then
10437 as_myself=$0
10438fi
10439if test ! -f "$as_myself"; then
ec6a6fbe 10440 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10441 exit 1
7a197a62
AK
10442fi
10443
f11781c5
AK
10444# Unset variables that we do not need and which cause bugs (e.g. in
10445# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10446# suppresses any "Segmentation fault" message there. '((' could
10447# trigger a bug in pdksh 5.2.14.
10448for as_var in BASH_ENV ENV MAIL MAILPATH
10449do eval test x\${$as_var+set} = xset \
10450 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10451done
ad6254c5
AK
10452PS1='$ '
10453PS2='> '
10454PS4='+ '
10455
10456# NLS nuisances.
ec6a6fbe
AK
10457LC_ALL=C
10458export LC_ALL
10459LANGUAGE=C
10460export LANGUAGE
8106cdd5 10461
f11781c5
AK
10462# CDPATH.
10463(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10464
10465
10466# as_fn_error STATUS ERROR [LINENO LOG_FD]
10467# ----------------------------------------
10468# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10469# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10470# script with STATUS, using 1 if that was 0.
10471as_fn_error ()
10472{
10473 as_status=$1; test $as_status -eq 0 && as_status=1
10474 if test "$4"; then
10475 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10476 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10477 fi
10478 $as_echo "$as_me: error: $2" >&2
10479 as_fn_exit $as_status
10480} # as_fn_error
10481
10482
10483# as_fn_set_status STATUS
10484# -----------------------
10485# Set $? to STATUS, without forking.
10486as_fn_set_status ()
10487{
10488 return $1
10489} # as_fn_set_status
10490
10491# as_fn_exit STATUS
10492# -----------------
10493# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10494as_fn_exit ()
10495{
10496 set +e
10497 as_fn_set_status $1
10498 exit $1
10499} # as_fn_exit
10500
10501# as_fn_unset VAR
10502# ---------------
10503# Portably unset VAR.
10504as_fn_unset ()
10505{
10506 { eval $1=; unset $1;}
10507}
10508as_unset=as_fn_unset
10509# as_fn_append VAR VALUE
10510# ----------------------
10511# Append the text in VALUE to the end of the definition contained in VAR. Take
10512# advantage of any shell optimizations that allow amortized linear growth over
10513# repeated appends, instead of the typical quadratic growth present in naive
10514# implementations.
10515if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10516 eval 'as_fn_append ()
10517 {
10518 eval $1+=\$2
10519 }'
10520else
10521 as_fn_append ()
10522 {
10523 eval $1=\$$1\$2
10524 }
10525fi # as_fn_append
10526
10527# as_fn_arith ARG...
10528# ------------------
10529# Perform arithmetic evaluation on the ARGs, and store the result in the
10530# global $as_val. Take advantage of shells that can avoid forks. The arguments
10531# must be portable across $(()) and expr.
10532if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10533 eval 'as_fn_arith ()
10534 {
10535 as_val=$(( $* ))
10536 }'
10537else
10538 as_fn_arith ()
10539 {
10540 as_val=`expr "$@" || test $? -eq 1`
10541 }
10542fi # as_fn_arith
10543
10544
7a197a62
AK
10545if expr a : '\(a\)' >/dev/null 2>&1 &&
10546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10547 as_expr=expr
10548else
10549 as_expr=false
10550fi
8106cdd5 10551
7a197a62 10552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10553 as_basename=basename
10554else
10555 as_basename=false
10556fi
10557
f11781c5
AK
10558if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10559 as_dirname=dirname
10560else
10561 as_dirname=false
10562fi
ad6254c5 10563
7a197a62 10564as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10565$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10566 X"$0" : 'X\(//\)$' \| \
7a197a62 10567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10568$as_echo X/"$0" |
7a197a62
AK
10569 sed '/^.*\/\([^/][^/]*\)\/*$/{
10570 s//\1/
10571 q
10572 }
10573 /^X\/\(\/\/\)$/{
10574 s//\1/
10575 q
10576 }
10577 /^X\/\(\/\).*/{
10578 s//\1/
10579 q
10580 }
10581 s/.*/./; q'`
ad6254c5 10582
f11781c5
AK
10583# Avoid depending upon Character Ranges.
10584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10587as_cr_digits='0123456789'
10588as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10589
10590ECHO_C= ECHO_N= ECHO_T=
f11781c5 10591case `echo -n x` in #(((((
7a197a62 10592-n*)
f11781c5 10593 case `echo 'xy\c'` in
7a197a62 10594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10595 xy) ECHO_C='\c';;
10596 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10597 ECHO_T=' ';;
7a197a62
AK
10598 esac;;
10599*)
10600 ECHO_N='-n';;
ad6254c5 10601esac
80992638 10602
ad6254c5 10603rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10604if test -d conf$$.dir; then
10605 rm -f conf$$.dir/conf$$.file
10606else
10607 rm -f conf$$.dir
ec6a6fbe
AK
10608 mkdir conf$$.dir 2>/dev/null
10609fi
10610if (echo >conf$$.file) 2>/dev/null; then
10611 if ln -s conf$$.file conf$$ 2>/dev/null; then
10612 as_ln_s='ln -s'
10613 # ... but there are two gotchas:
10614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10616 # In both cases, we have to default to `cp -p'.
10617 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10618 as_ln_s='cp -p'
10619 elif ln conf$$.file conf$$ 2>/dev/null; then
10620 as_ln_s=ln
10621 else
ad6254c5 10622 as_ln_s='cp -p'
ec6a6fbe 10623 fi
ad6254c5
AK
10624else
10625 as_ln_s='cp -p'
10626fi
7a197a62
AK
10627rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10628rmdir conf$$.dir 2>/dev/null
8106cdd5 10629
f11781c5
AK
10630
10631# as_fn_mkdir_p
10632# -------------
10633# Create "$as_dir" as a directory, including parents if necessary.
10634as_fn_mkdir_p ()
10635{
10636
10637 case $as_dir in #(
10638 -*) as_dir=./$as_dir;;
10639 esac
10640 test -d "$as_dir" || eval $as_mkdir_p || {
10641 as_dirs=
10642 while :; do
10643 case $as_dir in #(
10644 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10645 *) as_qdir=$as_dir;;
10646 esac
10647 as_dirs="'$as_qdir' $as_dirs"
10648 as_dir=`$as_dirname -- "$as_dir" ||
10649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10650 X"$as_dir" : 'X\(//\)[^/]' \| \
10651 X"$as_dir" : 'X\(//\)$' \| \
10652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10653$as_echo X"$as_dir" |
10654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10655 s//\1/
10656 q
10657 }
10658 /^X\(\/\/\)[^/].*/{
10659 s//\1/
10660 q
10661 }
10662 /^X\(\/\/\)$/{
10663 s//\1/
10664 q
10665 }
10666 /^X\(\/\).*/{
10667 s//\1/
10668 q
10669 }
10670 s/.*/./; q'`
10671 test -d "$as_dir" && break
10672 done
10673 test -z "$as_dirs" || eval "mkdir $as_dirs"
10674 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10675
10676
10677} # as_fn_mkdir_p
ad6254c5 10678if mkdir -p . 2>/dev/null; then
f11781c5 10679 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10680else
8a2fc586 10681 test -d ./-p && rmdir ./-p
ad6254c5
AK
10682 as_mkdir_p=false
10683fi
10684
25fbec5b
AK
10685if test -x / >/dev/null 2>&1; then
10686 as_test_x='test -x'
7a197a62 10687else
25fbec5b
AK
10688 if ls -dL / >/dev/null 2>&1; then
10689 as_ls_L_option=L
10690 else
10691 as_ls_L_option=
10692 fi
10693 as_test_x='
10694 eval sh -c '\''
10695 if test -d "$1"; then
ec6a6fbe 10696 test -d "$1/.";
25fbec5b 10697 else
f11781c5 10698 case $1 in #(
ec6a6fbe 10699 -*)set "./$1";;
25fbec5b 10700 esac;
f11781c5 10701 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10702 ???[sx]*):;;*)false;;esac;fi
10703 '\'' sh
10704 '
7a197a62 10705fi
25fbec5b 10706as_executable_p=$as_test_x
ad6254c5
AK
10707
10708# Sed expression to map a string onto a valid CPP name.
8a2fc586 10709as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10710
10711# Sed expression to map a string onto a valid variable name.
8a2fc586 10712as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10713
10714
ad6254c5 10715exec 6>&1
f11781c5
AK
10716## ----------------------------------- ##
10717## Main body of $CONFIG_STATUS script. ##
10718## ----------------------------------- ##
10719_ASEOF
10720test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10721
f11781c5
AK
10722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10723# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10724# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10725# values after options handling.
10726ac_log="
ad6254c5 10727This file was extended by $as_me, which was
f11781c5 10728generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10729
10730 CONFIG_FILES = $CONFIG_FILES
10731 CONFIG_HEADERS = $CONFIG_HEADERS
10732 CONFIG_LINKS = $CONFIG_LINKS
10733 CONFIG_COMMANDS = $CONFIG_COMMANDS
10734 $ $0 $@
10735
7a197a62
AK
10736on `(hostname || uname -n) 2>/dev/null | sed 1q`
10737"
10738
ad6254c5
AK
10739_ACEOF
10740
ec6a6fbe
AK
10741case $ac_config_files in *"
10742"*) set x $ac_config_files; shift; ac_config_files=$*;;
10743esac
10744
10745case $ac_config_headers in *"
10746"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10747esac
10748
10749
10750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10751# Files that config.status was made for.
68f2de6d
AK
10752config_files="$ac_config_files"
10753config_headers="$ac_config_headers"
ad6254c5 10754
7a197a62 10755_ACEOF
ad6254c5 10756
ec6a6fbe 10757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10758ac_cs_usage="\
f11781c5
AK
10759\`$as_me' instantiates files and other configuration actions
10760from templates according to the current configuration. Unless the files
10761and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10762
f11781c5 10763Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10764
10765 -h, --help print this help, then exit
25fbec5b 10766 -V, --version print version number and configuration settings, then exit
f11781c5 10767 --config print configuration, then exit
ec6a6fbe
AK
10768 -q, --quiet, --silent
10769 do not print progress messages
ad6254c5
AK
10770 -d, --debug don't remove temporary files
10771 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10772 --file=FILE[:TEMPLATE]
10773 instantiate the configuration file FILE
10774 --header=FILE[:TEMPLATE]
10775 instantiate the configuration header FILE
ad6254c5
AK
10776
10777Configuration files:
10778$config_files
10779
72b2cb61
AK
10780Configuration headers:
10781$config_headers
10782
f11781c5 10783Report bugs to the package provider."
ad6254c5 10784
7a197a62 10785_ACEOF
ec6a6fbe 10786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10787ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10788ac_cs_version="\\
10789config.status
f11781c5
AK
10790configured by $0, generated by GNU Autoconf 2.66,
10791 with options \\"\$ac_cs_config\\"
ad6254c5 10792
f11781c5 10793Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10794This config.status script is free software; the Free Software Foundation
10795gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10796
10797ac_pwd='$ac_pwd'
10798srcdir='$srcdir'
10799INSTALL='$INSTALL'
fddafd51 10800MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10801AWK='$AWK'
10802test -n "\$AWK" || AWK=awk
ad6254c5
AK
10803_ACEOF
10804
ec6a6fbe
AK
10805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10806# The default lists apply if the user does not specify any file.
ad6254c5
AK
10807ac_need_defaults=:
10808while test $# != 0
10809do
10810 case $1 in
10811 --*=*)
7a197a62
AK
10812 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10813 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10814 ac_shift=:
10815 ;;
7a197a62 10816 *)
ad6254c5
AK
10817 ac_option=$1
10818 ac_optarg=$2
10819 ac_shift=shift
10820 ;;
ad6254c5
AK
10821 esac
10822
10823 case $ac_option in
10824 # Handling of the options.
ad6254c5
AK
10825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10826 ac_cs_recheck=: ;;
7a197a62 10827 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10828 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10829 --config | --confi | --conf | --con | --co | --c )
10830 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10831 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10832 debug=: ;;
10833 --file | --fil | --fi | --f )
10834 $ac_shift
ec6a6fbe
AK
10835 case $ac_optarg in
10836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10837 esac
f11781c5 10838 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10839 ac_need_defaults=false;;
10840 --header | --heade | --head | --hea )
10841 $ac_shift
ec6a6fbe
AK
10842 case $ac_optarg in
10843 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10844 esac
f11781c5 10845 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10846 ac_need_defaults=false;;
7a197a62
AK
10847 --he | --h)
10848 # Conflict between --help and --header
f11781c5
AK
10849 as_fn_error $? "ambiguous option: \`$1'
10850Try \`$0 --help' for more information.";;
7a197a62 10851 --help | --hel | -h )
ec6a6fbe 10852 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10854 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10855 ac_cs_silent=: ;;
10856
10857 # This is an error.
f11781c5
AK
10858 -*) as_fn_error $? "unrecognized option: \`$1'
10859Try \`$0 --help' for more information." ;;
ad6254c5 10860
f11781c5 10861 *) as_fn_append ac_config_targets " $1"
7a197a62 10862 ac_need_defaults=false ;;
ad6254c5
AK
10863
10864 esac
10865 shift
10866done
10867
10868ac_configure_extra_args=
10869
10870if $ac_cs_silent; then
10871 exec 6>/dev/null
10872 ac_configure_extra_args="$ac_configure_extra_args --silent"
10873fi
10874
10875_ACEOF
ec6a6fbe 10876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10877if \$ac_cs_recheck; then
ec6a6fbe
AK
10878 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10879 shift
10880 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10881 CONFIG_SHELL='$SHELL'
7a197a62 10882 export CONFIG_SHELL
ec6a6fbe 10883 exec "\$@"
ad6254c5
AK
10884fi
10885
10886_ACEOF
ec6a6fbe 10887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10888exec 5>>config.log
10889{
10890 echo
10891 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10892## Running $as_me. ##
10893_ASBOX
ec6a6fbe 10894 $as_echo "$ac_log"
7a197a62 10895} >&5
ad6254c5 10896
7a197a62 10897_ACEOF
ec6a6fbe 10898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10899_ACEOF
ad6254c5 10900
ec6a6fbe 10901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10902
10903# Handling of arguments.
ad6254c5
AK
10904for ac_config_target in $ac_config_targets
10905do
7a197a62
AK
10906 case $ac_config_target in
10907 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10909 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10910 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10911 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10912 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
13dd3138 10913 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
93bd259b
AK
10914 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10915 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10916 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10917 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 10918 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
10919 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10920 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
cdd50823 10921 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 10922 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10923 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10924 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10925 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10926 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10927 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10928 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10929 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10930 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10931 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10932 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 10933 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 10934 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 10935 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
10936 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10937 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10938 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10939 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10940 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10941 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10942 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10943 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10944 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10945 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10946 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10947 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10948 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10949 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 10950 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10951 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10952 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10953 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10954 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10955
f11781c5 10956 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10957 esac
ad6254c5
AK
10958done
10959
7a197a62 10960
ad6254c5
AK
10961# If the user did not use the arguments to specify the items to instantiate,
10962# then the envvar interface is used. Set only those that are not.
10963# We use the long form for the default assignment because of an extremely
10964# bizarre bug on SunOS 4.1.3.
10965if $ac_need_defaults; then
10966 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10967 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10968fi
10969
10970# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10971# simply because there is no reason against having it here, and in addition,
ad6254c5 10972# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10973# Hook for its removal unless debugging.
10974# Note that there is a small window in which the directory will not be cleaned:
10975# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10976$debug ||
10977{
7a197a62
AK
10978 tmp=
10979 trap 'exit_status=$?
10980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10981' 0
f11781c5 10982 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 10983}
ad6254c5
AK
10984# Create a (secure) tmp directory for tmp files.
10985
10986{
7a197a62 10987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
10988 test -n "$tmp" && test -d "$tmp"
10989} ||
10990{
7a197a62
AK
10991 tmp=./conf$$-$RANDOM
10992 (umask 077 && mkdir "$tmp")
f11781c5 10993} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 10994
ec6a6fbe
AK
10995# Set up the scripts for CONFIG_FILES section.
10996# No need to generate them if there are no CONFIG_FILES.
10997# This happens for instance with `./config.status config.h'.
1995c9ff 10998if test -n "$CONFIG_FILES"; then
7a197a62 10999
68f2de6d 11000
f11781c5
AK
11001ac_cr=`echo X | tr X '\015'`
11002# On cygwin, bash can eat \r inside `` if the user requested igncr.
11003# But we know of no other shell where ac_cr would be empty at this
11004# point, so we can use a bashism as a fallback.
11005if test "x$ac_cr" = x; then
11006 eval ac_cr=\$\'\\r\'
11007fi
ec6a6fbe
AK
11008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11010 ac_cs_awk_cr='\\r'
11011else
11012 ac_cs_awk_cr=$ac_cr
1995c9ff 11013fi
7a197a62 11014
ec6a6fbe 11015echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11016_ACEOF
7a197a62 11017
8106cdd5 11018
ec6a6fbe
AK
11019{
11020 echo "cat >conf$$subs.awk <<_ACEOF" &&
11021 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11022 echo "_ACEOF"
11023} >conf$$subs.sh ||
f11781c5
AK
11024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11025ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11026ac_delim='%!_!# '
11027for ac_last_try in false false false false false :; do
ec6a6fbe 11028 . ./conf$$subs.sh ||
f11781c5 11029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11030
11031 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11032 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11033 break
11034 elif $ac_last_try; then
f11781c5 11035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11036 else
11037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11038 fi
11039done
ec6a6fbe
AK
11040rm -f conf$$subs.sh
11041
11042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11043cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11044_ACEOF
11045sed -n '
11046h
11047s/^/S["/; s/!.*/"]=/
11048p
11049g
11050s/^[^!]*!//
11051:repl
11052t repl
11053s/'"$ac_delim"'$//
11054t delim
11055:nl
11056h
f11781c5 11057s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11058t more1
11059s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11060p
11061n
11062b repl
11063:more1
11064s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11065p
11066g
11067s/.\{148\}//
11068t nl
11069:delim
11070h
f11781c5 11071s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11072t more2
11073s/["\\]/\\&/g; s/^/"/; s/$/"/
11074p
11075b
11076:more2
11077s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11078p
11079g
11080s/.\{148\}//
11081t delim
11082' <conf$$subs.awk | sed '
11083/^[^""]/{
11084 N
11085 s/\n//
11086}
11087' >>$CONFIG_STATUS || ac_write_fail=1
11088rm -f conf$$subs.awk
11089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11090_ACAWK
11091cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11092 for (key in S) S_is_set[key] = 1
11093 FS = "\a"
7a197a62 11094
ec6a6fbe
AK
11095}
11096{
11097 line = $ 0
11098 nfields = split(line, field, "@")
11099 substed = 0
11100 len = length(field[1])
11101 for (i = 2; i < nfields; i++) {
11102 key = field[i]
11103 keylen = length(key)
11104 if (S_is_set[key]) {
11105 value = S[key]
11106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11107 len += length(value) + length(field[++i])
11108 substed = 1
11109 } else
11110 len += 1 + keylen
11111 }
11112
11113 print line
11114}
fddafd51 11115
ec6a6fbe 11116_ACAWK
1995c9ff 11117_ACEOF
ec6a6fbe
AK
11118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11119if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11120 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11121else
11122 cat
11123fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11124 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11125_ACEOF
11126
f11781c5
AK
11127# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11128# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11129# trailing colons and then remove the whole line if VPATH becomes empty
11130# (actually we leave an empty line to preserve line numbers).
11131if test "x$srcdir" = x.; then
f11781c5
AK
11132 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11133h
11134s///
11135s/^/:/
11136s/[ ]*$/:/
11137s/:\$(srcdir):/:/g
11138s/:\${srcdir}:/:/g
11139s/:@srcdir@:/:/g
11140s/^:*//
7a197a62 11141s/:*$//
f11781c5
AK
11142x
11143s/\(=[ ]*\).*/\1/
11144G
11145s/\n//
7a197a62
AK
11146s/^[^=]*=[ ]*$//
11147}'
11148fi
11149
ec6a6fbe 11150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11151fi # test -n "$CONFIG_FILES"
11152
ec6a6fbe
AK
11153# Set up the scripts for CONFIG_HEADERS section.
11154# No need to generate them if there are no CONFIG_HEADERS.
11155# This happens for instance with `./config.status Makefile'.
11156if test -n "$CONFIG_HEADERS"; then
11157cat >"$tmp/defines.awk" <<\_ACAWK ||
11158BEGIN {
11159_ACEOF
11160
11161# Transform confdefs.h into an awk script `defines.awk', embedded as
11162# here-document in config.status, that substitutes the proper values into
11163# config.h.in to produce config.h.
11164
11165# Create a delimiter string that does not exist in confdefs.h, to ease
11166# handling of long lines.
11167ac_delim='%!_!# '
11168for ac_last_try in false false :; do
11169 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11170 if test -z "$ac_t"; then
11171 break
11172 elif $ac_last_try; then
f11781c5 11173 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11174 else
11175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11176 fi
11177done
11178
11179# For the awk script, D is an array of macro values keyed by name,
11180# likewise P contains macro parameters if any. Preserve backslash
11181# newline sequences.
11182
11183ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11184sed -n '
11185s/.\{148\}/&'"$ac_delim"'/g
11186t rset
11187:rset
11188s/^[ ]*#[ ]*define[ ][ ]*/ /
11189t def
11190d
11191:def
11192s/\\$//
11193t bsnl
11194s/["\\]/\\&/g
11195s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11196D["\1"]=" \3"/p
11197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11198d
11199:bsnl
11200s/["\\]/\\&/g
11201s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11202D["\1"]=" \3\\\\\\n"\\/p
11203t cont
11204s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11205t cont
11206d
11207:cont
11208n
11209s/.\{148\}/&'"$ac_delim"'/g
11210t clear
11211:clear
11212s/\\$//
11213t bsnlc
11214s/["\\]/\\&/g; s/^/"/; s/$/"/p
11215d
11216:bsnlc
11217s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11218b cont
11219' <confdefs.h | sed '
11220s/'"$ac_delim"'/"\\\
11221"/g' >>$CONFIG_STATUS || ac_write_fail=1
11222
11223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11224 for (key in D) D_is_set[key] = 1
11225 FS = "\a"
11226}
11227/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11228 line = \$ 0
11229 split(line, arg, " ")
11230 if (arg[1] == "#") {
11231 defundef = arg[2]
11232 mac1 = arg[3]
11233 } else {
11234 defundef = substr(arg[1], 2)
11235 mac1 = arg[2]
11236 }
11237 split(mac1, mac2, "(") #)
11238 macro = mac2[1]
11239 prefix = substr(line, 1, index(line, defundef) - 1)
11240 if (D_is_set[macro]) {
11241 # Preserve the white space surrounding the "#".
11242 print prefix "define", macro P[macro] D[macro]
11243 next
11244 } else {
11245 # Replace #undef with comments. This is necessary, for example,
11246 # in the case of _POSIX_SOURCE, which is predefined and required
11247 # on some systems where configure will not decide to define it.
11248 if (defundef == "undef") {
11249 print "/*", prefix defundef, macro, "*/"
11250 next
11251 }
11252 }
11253}
11254{ print }
11255_ACAWK
11256_ACEOF
11257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11258 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11259fi # test -n "$CONFIG_HEADERS"
11260
7a197a62 11261
ec6a6fbe
AK
11262eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11263shift
11264for ac_tag
7a197a62
AK
11265do
11266 case $ac_tag in
11267 :[FHLC]) ac_mode=$ac_tag; continue;;
11268 esac
11269 case $ac_mode$ac_tag in
11270 :[FHL]*:*);;
f11781c5 11271 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11272 :[FH]-) ac_tag=-:-;;
11273 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11274 esac
11275 ac_save_IFS=$IFS
11276 IFS=:
11277 set x $ac_tag
11278 IFS=$ac_save_IFS
11279 shift
11280 ac_file=$1
11281 shift
11282
11283 case $ac_mode in
11284 :L) ac_source=$1;;
11285 :[FH])
11286 ac_file_inputs=
11287 for ac_f
11288 do
11289 case $ac_f in
11290 -) ac_f="$tmp/stdin";;
11291 *) # Look for the file first in the build tree, then in the source tree
11292 # (if the path is not absolute). The absolute path cannot be DOS-style,
11293 # because $ac_f cannot contain `:'.
11294 test -f "$ac_f" ||
11295 case $ac_f in
11296 [\\/$]*) false;;
11297 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11298 esac ||
f11781c5 11299 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11300 esac
ec6a6fbe 11301 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11302 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11303 done
11304
11305 # Let's still pretend it is `configure' which instantiates (i.e., don't
11306 # use $as_me), people would be surprised to read:
11307 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11308 configure_input='Generated from '`
11309 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11310 `' by configure.'
7a197a62
AK
11311 if test x"$ac_file" != x-; then
11312 configure_input="$ac_file. $configure_input"
f11781c5 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11314$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11315 fi
ec6a6fbe
AK
11316 # Neutralize special characters interpreted by sed in replacement strings.
11317 case $configure_input in #(
11318 *\&* | *\|* | *\\* )
11319 ac_sed_conf_input=`$as_echo "$configure_input" |
11320 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11321 *) ac_sed_conf_input=$configure_input;;
11322 esac
7a197a62
AK
11323
11324 case $ac_tag in
ec6a6fbe 11325 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11327 esac
11328 ;;
80992638 11329 esac
8106cdd5 11330
7a197a62 11331 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11333 X"$ac_file" : 'X\(//\)[^/]' \| \
11334 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11336$as_echo X"$ac_file" |
7a197a62
AK
11337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11338 s//\1/
11339 q
11340 }
11341 /^X\(\/\/\)[^/].*/{
11342 s//\1/
11343 q
11344 }
11345 /^X\(\/\/\)$/{
11346 s//\1/
11347 q
11348 }
11349 /^X\(\/\).*/{
11350 s//\1/
11351 q
11352 }
11353 s/.*/./; q'`
f11781c5 11354 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11355 ac_builddir=.
11356
7a197a62
AK
11357case "$ac_dir" in
11358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11359*)
ec6a6fbe 11360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11361 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11363 case $ac_top_builddir_sub in
11364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11366 esac ;;
11367esac
11368ac_abs_top_builddir=$ac_pwd
11369ac_abs_builddir=$ac_pwd$ac_dir_suffix
11370# for backward compatibility:
11371ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11372
11373case $srcdir in
7a197a62 11374 .) # We are building in place.
ad6254c5 11375 ac_srcdir=.
7a197a62
AK
11376 ac_top_srcdir=$ac_top_builddir_sub
11377 ac_abs_top_srcdir=$ac_pwd ;;
11378 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11379 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11380 ac_top_srcdir=$srcdir
11381 ac_abs_top_srcdir=$srcdir ;;
11382 *) # Relative name.
11383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11384 ac_top_srcdir=$ac_top_build_prefix$srcdir
11385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11386esac
7a197a62 11387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11388
ad6254c5 11389
7a197a62
AK
11390 case $ac_mode in
11391 :F)
11392 #
11393 # CONFIG_FILE
11394 #
ad6254c5
AK
11395
11396 case $INSTALL in
11397 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11398 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11399 esac
fddafd51
ZK
11400 ac_MKDIR_P=$MKDIR_P
11401 case $MKDIR_P in
11402 [\\/$]* | ?:[\\/]* ) ;;
11403 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11404 esac
7a197a62 11405_ACEOF
795ca3e5 11406
ec6a6fbe 11407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11408# If the template does not know about datarootdir, expand it.
11409# FIXME: This hack should be removed a few years after 2.60.
11410ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11411ac_sed_dataroot='
11412/datarootdir/ {
7a197a62
AK
11413 p
11414 q
11415}
11416/@datadir@/p
11417/@docdir@/p
11418/@infodir@/p
11419/@localedir@/p
f11781c5 11420/@mandir@/p'
ec6a6fbe 11421case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11422*datarootdir*) ac_datarootdir_seen=yes;;
11423*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11425$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11426_ACEOF
ec6a6fbe 11427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11428 ac_datarootdir_hack='
11429 s&@datadir@&$datadir&g
11430 s&@docdir@&$docdir&g
11431 s&@infodir@&$infodir&g
11432 s&@localedir@&$localedir&g
11433 s&@mandir@&$mandir&g
f11781c5 11434 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11435esac
11436_ACEOF
11437
11438# Neutralize VPATH when `$srcdir' = `.'.
11439# Shell code in configure.ac might set extrasub.
11440# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11442ac_sed_extra="$ac_vpsub
ad6254c5
AK
11443$extrasub
11444_ACEOF
ec6a6fbe 11445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11446:t
11447/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11448s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11449s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11450s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11451s&@srcdir@&$ac_srcdir&;t t
11452s&@abs_srcdir@&$ac_abs_srcdir&;t t
11453s&@top_srcdir@&$ac_top_srcdir&;t t
11454s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11455s&@builddir@&$ac_builddir&;t t
11456s&@abs_builddir@&$ac_abs_builddir&;t t
11457s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11458s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11459s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11460$ac_datarootdir_hack
ec6a6fbe
AK
11461"
11462eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11464
11465test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11466 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11467 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11469which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11470$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11471which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11472
11473 rm -f "$tmp/stdin"
72b2cb61 11474 case $ac_file in
ec6a6fbe
AK
11475 -) cat "$tmp/out" && rm -f "$tmp/out";;
11476 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11477 esac \
f11781c5 11478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11479 ;;
11480 :H)
11481 #
11482 # CONFIG_HEADER
11483 #
72b2cb61 11484 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11485 {
11486 $as_echo "/* $configure_input */" \
11487 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11488 } >"$tmp/config.h" \
f11781c5 11489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11490 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11492$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11493 else
ec6a6fbe
AK
11494 rm -f "$ac_file"
11495 mv "$tmp/config.h" "$ac_file" \
f11781c5 11496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11497 fi
11498 else
ec6a6fbe
AK
11499 $as_echo "/* $configure_input */" \
11500 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11501 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11502 fi
7a197a62
AK
11503 ;;
11504
11505
11506 esac
11507
11508done # for ac_tag
795ca3e5 11509
795ca3e5 11510
f11781c5 11511as_fn_exit 0
ad6254c5 11512_ACEOF
ad6254c5
AK
11513ac_clean_files=$ac_clean_files_save
11514
ec6a6fbe 11515test $ac_write_fail = 0 ||
f11781c5 11516 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11517
ad6254c5
AK
11518
11519# configure is writing to config.log, and then calls config.status.
11520# config.status does its own redirection, appending to config.log.
11521# Unfortunately, on DOS this fails, as config.log is still kept open
11522# by configure, so config.status won't be able to write to it; its
11523# output is simply discarded. So we exec the FD to /dev/null,
11524# effectively closing config.log, so it can be properly (re)opened and
11525# appended to by config.status. When coming back to configure, we
11526# need to make the FD available again.
11527if test "$no_create" != yes; then
11528 ac_cs_success=:
11529 ac_config_status_args=
11530 test "$silent" = yes &&
11531 ac_config_status_args="$ac_config_status_args --quiet"
11532 exec 5>/dev/null
11533 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11534 exec 5>>config.log
11535 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11536 # would make configure fail if this is the last instruction.
f11781c5 11537 $ac_cs_success || as_fn_exit 1
ad6254c5 11538fi
ec6a6fbe 11539if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11541$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11542fi
795ca3e5 11543
2dc95e1c
AK
11544
11545if test x$ODIRECT != xyes; then
f11781c5 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11547$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11548fi
This page took 1.750403 seconds and 5 git commands to generate.