]> sourceware.org Git - lvm2.git/blame - configure
add const
[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
426fc742
PR
686CUNIT_LIBS
687CUNIT_CFLAGS
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 881SACKPT_LIBS
426fc742
PR
882CUNIT_CFLAGS
883CUNIT_LIBS
d93275eb
PR
884UDEV_CFLAGS
885UDEV_LIBS'
7a197a62 886
795ca3e5
AK
887
888# Initialize some variables set by options.
ad6254c5
AK
889ac_init_help=
890ac_init_version=false
ec6a6fbe
AK
891ac_unrecognized_opts=
892ac_unrecognized_sep=
795ca3e5
AK
893# The variables have the same names as the options, with
894# dashes changed to underlines.
ad6254c5 895cache_file=/dev/null
795ca3e5 896exec_prefix=NONE
795ca3e5 897no_create=
795ca3e5
AK
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
795ca3e5
AK
906verbose=
907x_includes=NONE
908x_libraries=NONE
ad6254c5
AK
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 915# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
7a197a62
AK
919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
795ca3e5
AK
921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
795ca3e5
AK
924includedir='${prefix}/include'
925oldincludedir='/usr/include'
7a197a62
AK
926docdir='${datarootdir}/doc/${PACKAGE}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
795ca3e5 935
795ca3e5 936ac_prev=
7a197a62 937ac_dashdash=
795ca3e5
AK
938for ac_option
939do
795ca3e5
AK
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
7a197a62 942 eval $ac_prev=\$ac_option
795ca3e5
AK
943 ac_prev=
944 continue
945 fi
946
7a197a62
AK
947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
795ca3e5
AK
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
7a197a62
AK
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
795ca3e5
AK
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 961 bindir=$ac_optarg ;;
795ca3e5
AK
962
963 -build | --build | --buil | --bui | --bu)
ad6254c5 964 ac_prev=build_alias ;;
795ca3e5 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 966 build_alias=$ac_optarg ;;
795ca3e5
AK
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
795ca3e5 977
7a197a62 978 -datadir | --datadir | --datadi | --datad)
795ca3e5 979 ac_prev=datadir ;;
7a197a62 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 981 datadir=$ac_optarg ;;
795ca3e5 982
7a197a62
AK
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
795ca3e5 990 -disable-* | --disable-*)
ec6a6fbe 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 992 # Reject names that are not valid shell variable names.
ec6a6fbe 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 994 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
7a197a62
AK
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
795ca3e5
AK
1015
1016 -enable-* | --enable-*)
ec6a6fbe 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1018 # Reject names that are not valid shell variable names.
ec6a6fbe 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1020 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
ad6254c5 1039 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
ad6254c5
AK
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
795ca3e5
AK
1051
1052 -host | --host | --hos | --ho)
ad6254c5 1053 ac_prev=host_alias ;;
795ca3e5 1054 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1055 host_alias=$ac_optarg ;;
795ca3e5 1056
7a197a62
AK
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
795ca3e5
AK
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1068 includedir=$ac_optarg ;;
795ca3e5
AK
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1073 infodir=$ac_optarg ;;
795ca3e5
AK
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1078 libdir=$ac_optarg ;;
795ca3e5
AK
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1085 libexecdir=$ac_optarg ;;
795ca3e5 1086
7a197a62
AK
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
795ca3e5 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1093 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1097 localstatedir=$ac_optarg ;;
795ca3e5
AK
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1102 mandir=$ac_optarg ;;
795ca3e5
AK
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1109 | --no-cr | --no-c | -n)
795ca3e5
AK
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1123 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1128 prefix=$ac_optarg ;;
795ca3e5
AK
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1135 program_prefix=$ac_optarg ;;
795ca3e5
AK
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1142 program_suffix=$ac_optarg ;;
795ca3e5
AK
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1159 program_transform_name=$ac_optarg ;;
795ca3e5 1160
7a197a62
AK
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
795ca3e5
AK
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
ad6254c5 1179 sbindir=$ac_optarg ;;
795ca3e5
AK
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
ad6254c5 1190 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
ad6254c5 1195 site=$ac_optarg ;;
795ca3e5
AK
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1200 srcdir=$ac_optarg ;;
795ca3e5
AK
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1207 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1210 ac_prev=target_alias ;;
795ca3e5 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1212 target_alias=$ac_optarg ;;
795ca3e5
AK
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
ad6254c5
AK
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
795ca3e5
AK
1219
1220 -with-* | --with-*)
ec6a6fbe 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1222 # Reject names that are not valid shell variable names.
ec6a6fbe 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1224 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1235
1236 -without-* | --without-*)
ec6a6fbe 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1238 # Reject names that are not valid shell variable names.
ec6a6fbe 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1240 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
795ca3e5
AK
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1261 x_includes=$ac_optarg ;;
795ca3e5
AK
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1268 x_libraries=$ac_optarg ;;
795ca3e5 1269
f11781c5
AK
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271Try \`$0 --help' for more information"
795ca3e5
AK
1272 ;;
1273
ad6254c5
AK
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
f11781c5
AK
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
7a197a62 1281 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1282 export $ac_envvar ;;
1283
795ca3e5 1284 *)
ad6254c5 1285 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
ad6254c5 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1297 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1298fi
795ca3e5 1299
ec6a6fbe
AK
1300if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
f11781c5 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1306fi
1307
1308# Check all directory arguments for consistency.
7a197a62
AK
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
795ca3e5 1313do
7a197a62 1314 eval ac_val=\$$ac_var
ec6a6fbe
AK
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
ad6254c5 1322 case $ac_val in
7a197a62
AK
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1325 esac
f11781c5 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1327done
1328
ad6254c5
AK
1329# There might be people who depend on the old broken behavior: `$host'
1330# used to hold the argument of --host etc.
1331# FIXME: To remove some day.
1332build=$build_alias
1333host=$host_alias
1334target=$target_alias
1335
1336# FIXME: To remove some day.
1337if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
f11781c5
AK
1340 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1341 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345fi
8106cdd5 1346
ad6254c5
AK
1347ac_tool_prefix=
1348test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350test "$silent" = yes && exec 6>/dev/null
795ca3e5 1351
795ca3e5 1352
7a197a62
AK
1353ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354ac_ls_di=`ls -di .` &&
1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1356 as_fn_error $? "working directory cannot be determined"
7a197a62 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1358 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1359
1360
795ca3e5
AK
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
7a197a62 1364 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370$as_echo X"$as_myself" |
7a197a62
AK
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
795ca3e5 1388 srcdir=$ac_confdir
7a197a62 1389 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1390 srcdir=..
1391 fi
1392else
1393 ac_srcdir_defaulted=no
1394fi
7a197a62
AK
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1398fi
7a197a62
AK
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
f11781c5 1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1402 pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
1413for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
ad6254c5
AK
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427\`configure' configures this package to adapt to many kinds of systems.
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
f11781c5 1441 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
ad6254c5
AK
1447Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1449 [$ac_default_prefix]
ad6254c5 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1451 [PREFIX]
ad6254c5
AK
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
ec6a6fbe
AK
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1480_ACEOF
1481
1482 cat <<\_ACEOF
1483
1484System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 --target=TARGET configure for building compilers for TARGET [HOST]
1488_ACEOF
1489fi
1490
1491if test -n "$ac_init_help"; then
1492
1493 cat <<\_ACEOF
1494
1495Optional Features:
ec6a6fbe 1496 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1499 --enable-static_link use this to link the tools to their libraries
1500 statically (default is dynamic linking
1501 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1502 device-mapper is missing from the kernel
71082be4
ZK
1503 --disable-readline disable readline support
1504 --enable-realtime enable realtime clock support
37ddf259
AK
1505 --enable-ocf enable Open Cluster Framework (OCF) compliant
1506 resource agents
71082be4
ZK
1507 --enable-cmirrord enable the cluster mirror log daemon
1508 --enable-debug enable debugging
1509 --enable-profiling gather gcov profiling data
54b362f9 1510 --enable-testing enable testing targets in the makefile
d1e8046f 1511 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1512 --disable-devmapper disable LVM2 device-mapper interaction
cdd50823 1513 --disable-lvmetad disable the LVM Metadata Daemon
71082be4
ZK
1514 --enable-udev_sync enable synchronisation with udev processing
1515 --enable-udev_rules install rule files needed for udev synchronisation
1516 --enable-compat enable support for old device-mapper versions
1517 --enable-units-compat enable output compatibility with old versions that
1518 that do not use KiB-style unit suffixes
1519 --disable-driver disable calls to device-mapper in the kernel
1520 --disable-o_direct disable O_DIRECT
1521 --enable-applib build application library
1522 --enable-cmdlib build shared command library
1523 --enable-pkgconfig install pkgconfig support
1524 --enable-write_install install user writable files
1525 --disable-fsadm disable fsadm
1526 --enable-dmeventd enable the device-mapper event daemon
1527 --disable-selinux disable selinux support
1528 --enable-nls enable Native Language Support
ad6254c5
AK
1529
1530Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1533 --with-user=USER set the owner of installed files [[USER=]]
1534 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1535 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1536 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1537 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1538 --with-device-nodes-on=ON
1539 create nodes on resume or create [[ON=resume]]
ad6254c5 1540 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
ad6254c5 1542 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1543 [[TYPE=internal]]
71082be4 1544 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1545 [[TYPE=internal]]
71082be4 1546 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1547 [[TYPE=internal]]
71082be4 1548 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1549 [[TYPE=internal]]
cac52ca4
JEB
1550 --with-raid=TYPE mirror support: internal/shared/none
1551 [[TYPE=internal]]
71082be4 1552 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1553 [[TYPE=none]]
3ba4a195
ZK
1554 --with-thin=TYPE thin provisioning support: internal/shared/none
1555 [[TYPE=none]]
606d0858
AK
1556 --with-ocfdir=DIR install OCF files in DIR
1557 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1558 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1559 The following cluster manager combinations are valid:
a946372e
AK
1560 * cman (RHEL5 or equivalent)
1561 * cman,corosync,openais (or selection of them)
1091650a 1562 * singlenode (localhost only)
a946372e
AK
1563 * all (autodetect)
1564 * none (disable build)
71082be4 1565 [TYPE=none]
8c4e8a18 1566 --with-clvmd-pidfile=PATH
f11781c5 1567 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1568 --with-cmirrord-pidfile=PATH
f11781c5
AK
1569 cmirrord pidfile [[/var/run/cmirrord.pid]]
1570 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1571 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1572 --with-confdir=DIR configuration files in DIR [[/etc]]
1573 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1574 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1575 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1576 --with-udev-prefix=UPREFIX
f11781c5
AK
1577 install udev rule files in UPREFIX [[EPREFIX]]
1578 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1579 --with-dmeventd-pidfile=PATH
f11781c5 1580 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1581 --with-dmeventd-path=PATH
f11781c5 1582 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1583 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1584 --with-default-system-dir=DIR
f11781c5 1585 default LVM system directory [[/etc/lvm]]
71082be4 1586 --with-default-archive-subdir=SUBDIR
f11781c5 1587 default metadata archive subdir [[archive]]
71082be4 1588 --with-default-backup-subdir=SUBDIR
f11781c5 1589 default metadata backup subdir [[backup]]
71082be4 1590 --with-default-cache-subdir=SUBDIR
f11781c5 1591 default metadata cache subdir [[cache]]
71082be4 1592 --with-default-locking-dir=DIR
f11781c5 1593 default locking directory [[/var/lock/lvm]]
fea55602 1594 --with-default-data-alignment=NUM
f11781c5
AK
1595 set the default data alignment in MiB [[1]]
1596 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1597
1598Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
25fbec5b 1603 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1605 you have headers in a nonstandard directory <include dir>
ad6254c5 1606 CPP C preprocessor
e2997b73 1607 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1608 PKG_CONFIG_PATH
1609 directories to add to pkg-config's search path
1610 PKG_CONFIG_LIBDIR
1611 path overriding pkg-config's built-in search path
a946372e
AK
1612 PKGCONFIGINIT_CFLAGS
1613 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1614 PKGCONFIGINIT_LIBS
1615 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1616 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1617 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1618 COROSYNC_CFLAGS
1619 C compiler flags for COROSYNC, overriding pkg-config
1620 COROSYNC_LIBS
1621 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1622 QUORUM_CFLAGS
1623 C compiler flags for QUORUM, overriding pkg-config
1624 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1625 SALCK_CFLAGS
1626 C compiler flags for SALCK, overriding pkg-config
1627 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1628 CONFDB_CFLAGS
1629 C compiler flags for CONFDB, overriding pkg-config
1630 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1631 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1632 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1633 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1634 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1635 SACKPT_CFLAGS
1636 C compiler flags for SACKPT, overriding pkg-config
1637 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
426fc742
PR
1638 CUNIT_CFLAGS
1639 C compiler flags for CUNIT, overriding pkg-config
1640 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
d93275eb
PR
1641 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1642 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1643
1644Use these variables to override the choices made by `configure' or to help
1645it to find libraries and programs with nonstandard names/locations.
1646
f11781c5 1647Report bugs to the package provider.
ad6254c5 1648_ACEOF
7a197a62 1649ac_status=$?
ad6254c5
AK
1650fi
1651
1652if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
ad6254c5 1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
ad6254c5
AK
1658 ac_builddir=.
1659
7a197a62
AK
1660case "$ac_dir" in
1661.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662*)
ec6a6fbe 1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1664 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670esac
1671ac_abs_top_builddir=$ac_pwd
1672ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673# for backward compatibility:
1674ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1675
1676case $srcdir in
7a197a62 1677 .) # We are building in place.
ad6254c5 1678 ac_srcdir=.
7a197a62
AK
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1682 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1689esac
7a197a62
AK
1690ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1700 else
ec6a6fbe 1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1704 done
1705fi
1706
7a197a62 1707test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1708if $ac_init_version; then
1709 cat <<\_ACEOF
7a197a62 1710configure
f11781c5 1711generated by GNU Autoconf 2.66
ad6254c5 1712
f11781c5 1713Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1714This configure script is free software; the Free Software Foundation
1715gives unlimited permission to copy, distribute and modify it.
1716_ACEOF
7a197a62 1717 exit
ad6254c5 1718fi
ad6254c5 1719
f11781c5
AK
1720## ------------------------ ##
1721## Autoconf initialization. ##
1722## ------------------------ ##
ad6254c5 1723
f11781c5
AK
1724# ac_fn_c_try_compile LINENO
1725# --------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_compile ()
ad6254c5 1728{
f11781c5
AK
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1754
f11781c5
AK
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
ad6254c5 1759
f11781c5 1760} # ac_fn_c_try_compile
ad6254c5 1761
f11781c5
AK
1762# ac_fn_c_try_cpp LINENO
1763# ----------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_cpp ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } >/dev/null && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 }; then :
1787 ac_retval=0
1788else
1789 $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1791
f11781c5
AK
1792 ac_retval=1
1793fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 as_fn_set_status $ac_retval
ad6254c5 1796
f11781c5 1797} # ac_fn_c_try_cpp
d911ec67 1798
f11781c5
AK
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
d911ec67 1803{
f11781c5
AK
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
d911ec67
AK
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
f11781c5
AK
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
d911ec67 1814 ac_status=$?
f11781c5
AK
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 $as_test_x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
d911ec67 1829else
f11781c5 1830 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
f11781c5 1833 ac_retval=1
d911ec67 1834fi
f11781c5
AK
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 as_fn_set_status $ac_retval
d911ec67 1842
f11781c5 1843} # ac_fn_c_try_link
d911ec67 1844
f11781c5
AK
1845# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1848# the include files in INCLUDES and setting the cache variable VAR
1849# accordingly.
1850ac_fn_c_check_header_mongrel ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if eval "test \"\${$3+set}\"" = set; then :
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1857 $as_echo_n "(cached) " >&6
1858fi
f11781c5
AK
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1861$as_echo "$ac_res" >&6; }
1862else
1863 # Is the header compilable?
f11781c5
AK
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1865$as_echo_n "checking $2 usability... " >&6; }
1866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1867/* end confdefs.h. */
f11781c5
AK
1868$4
1869#include <$2>
d911ec67 1870_ACEOF
f11781c5 1871if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1872 ac_header_compiler=yes
1873else
f11781c5 1874 ac_header_compiler=no
d911ec67 1875fi
d911ec67 1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1878$as_echo "$ac_header_compiler" >&6; }
1879
1880# Is the header present?
f11781c5
AK
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1882$as_echo_n "checking $2 presence... " >&6; }
1883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1884/* end confdefs.h. */
f11781c5 1885#include <$2>
d911ec67 1886_ACEOF
f11781c5 1887if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1888 ac_header_preproc=yes
1889else
d911ec67
AK
1890 ac_header_preproc=no
1891fi
d911ec67 1892rm -f conftest.err conftest.$ac_ext
f11781c5 1893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1894$as_echo "$ac_header_preproc" >&6; }
1895
1896# So? What about this header?
f11781c5 1897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1898 yes:no: )
f11781c5
AK
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1900$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1903 ;;
1904 no:yes:* )
f11781c5
AK
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1906$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1908$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1910$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1912$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1915 ;;
1916esac
f11781c5
AK
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1920 $as_echo_n "(cached) " >&6
1921else
f11781c5 1922 eval "$3=\$ac_header_compiler"
d911ec67 1923fi
f11781c5
AK
1924eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1926$as_echo "$ac_res" >&6; }
ad6254c5 1927fi
f11781c5 1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1929
f11781c5 1930} # ac_fn_c_check_header_mongrel
ad6254c5 1931
f11781c5
AK
1932# ac_fn_c_try_run LINENO
1933# ----------------------
1934# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1935# that executables *can* be run.
1936ac_fn_c_try_run ()
ad6254c5 1937{
f11781c5
AK
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_link"
7a197a62
AK
1940case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943esac
f11781c5
AK
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
7a197a62 1946 (eval "$ac_link") 2>&5
ad6254c5 1947 ac_status=$?
f11781c5
AK
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950 { { case "(($ac_try" in
7a197a62
AK
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
f11781c5
AK
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
7a197a62 1956 (eval "$ac_try") 2>&5
ad6254c5 1957 ac_status=$?
f11781c5
AK
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; }; then :
1960 ac_retval=0
ad6254c5 1961else
ec6a6fbe 1962 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1963 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
f11781c5 1966 ac_retval=$ac_status
ad6254c5 1967fi
f11781c5
AK
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 as_fn_set_status $ac_retval
ad6254c5 1971
f11781c5 1972} # ac_fn_c_try_run
ad6254c5 1973
f11781c5
AK
1974# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1975# -------------------------------------------------------
1976# Tests whether HEADER exists and can be compiled using the include files in
1977# INCLUDES, setting the cache variable VAR accordingly.
1978ac_fn_c_check_header_compile ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1984 $as_echo_n "(cached) " >&6
ad6254c5 1985else
f11781c5 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1987/* end confdefs.h. */
f11781c5
AK
1988$4
1989#include <$2>
ad6254c5 1990_ACEOF
f11781c5
AK
1991if ac_fn_c_try_compile "$LINENO"; then :
1992 eval "$3=yes"
ad6254c5 1993else
f11781c5 1994 eval "$3=no"
ad6254c5 1995fi
7a197a62 1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1997fi
f11781c5
AK
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2000$as_echo "$ac_res" >&6; }
f11781c5 2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2002
f11781c5 2003} # ac_fn_c_check_header_compile
ad6254c5 2004
f11781c5
AK
2005# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006# ----------------------------------------------------
2007# Tries to find if the field MEMBER exists in type AGGR, after including
2008# INCLUDES, setting cache variable VAR accordingly.
2009ac_fn_c_check_member ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013$as_echo_n "checking for $2.$3... " >&6; }
2014if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2015 $as_echo_n "(cached) " >&6
795ca3e5 2016else
f11781c5
AK
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$5
2020int
2021main ()
2022{
2023static $2 ac_aggr;
2024if (ac_aggr.$3)
2025return 0;
2026 ;
2027 return 0;
2028}
ad6254c5 2029_ACEOF
f11781c5
AK
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2034/* end confdefs.h. */
f11781c5
AK
2035$5
2036int
2037main ()
2038{
2039static $2 ac_aggr;
2040if (sizeof ac_aggr.$3)
2041return 0;
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048else
2049 eval "$4=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
2060} # ac_fn_c_check_member
795ca3e5 2061
f11781c5
AK
2062# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2063# -------------------------------------------
2064# Tests whether TYPE exists after having included INCLUDES, setting cache
2065# variable VAR accordingly.
2066ac_fn_c_check_type ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if eval "test \"\${$3+set}\"" = set; then :
2072 $as_echo_n "(cached) " >&6
2073else
2074 eval "$3=no"
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$4
ad6254c5
AK
2078int
2079main ()
2080{
f11781c5
AK
2081if (sizeof ($2))
2082 return 0;
ad6254c5
AK
2083 ;
2084 return 0;
2085}
2086_ACEOF
f11781c5
AK
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090$4
2091int
2092main ()
2093{
2094if (sizeof (($2)))
2095 return 0;
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2101
f11781c5
AK
2102else
2103 eval "$3=yes"
795ca3e5 2104fi
f11781c5
AK
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2108fi
f11781c5
AK
2109eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2111$as_echo "$ac_res" >&6; }
f11781c5 2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2113
f11781c5 2114} # ac_fn_c_check_type
ad6254c5 2115
f11781c5
AK
2116# ac_fn_c_find_intX_t LINENO BITS VAR
2117# -----------------------------------
2118# Finds a signed integer type with width BITS, setting cache variable VAR
2119# accordingly.
2120ac_fn_c_find_intX_t ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2124$as_echo_n "checking for int$2_t... " >&6; }
2125if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2126 $as_echo_n "(cached) " >&6
ad6254c5 2127else
f11781c5
AK
2128 eval "$3=no"
2129 # Order is important - never check a type that is potentially smaller
2130 # than half of the expected target width.
2131 for ac_type in int$2_t 'int' 'long int' \
2132 'long long int' 'short int' 'signed char'; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2134/* end confdefs.h. */
2135$ac_includes_default
f11781c5 2136 enum { N = $2 / 2 - 1 };
7a197a62
AK
2137int
2138main ()
2139{
f11781c5
AK
2140static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2141test_array [0] = 0
7a197a62 2142
f11781c5
AK
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150$ac_includes_default
2151 enum { N = $2 / 2 - 1 };
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2156 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2157test_array [0] = 0
7a197a62
AK
2158
2159 ;
2160 return 0;
2161}
ad6254c5 2162_ACEOF
f11781c5 2163if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2164
f11781c5
AK
2165else
2166 case $ac_type in #(
2167 int$2_t) :
2168 eval "$3=yes" ;; #(
2169 *) :
2170 eval "$3=\$ac_type" ;;
2171esac
ad6254c5 2172fi
f11781c5 2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2174fi
f11781c5
AK
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2177
2178else
f11781c5 2179 break
ad6254c5 2180fi
f11781c5 2181 done
ad6254c5 2182fi
f11781c5
AK
2183eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185$as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187
2188} # ac_fn_c_find_intX_t
2189
2190# ac_fn_c_find_uintX_t LINENO BITS VAR
2191# ------------------------------------
2192# Finds an unsigned integer type with width BITS, setting cache variable VAR
2193# accordingly.
2194ac_fn_c_find_uintX_t ()
2195{
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2198$as_echo_n "checking for uint$2_t... " >&6; }
2199if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2200 $as_echo_n "(cached) " >&6
ad6254c5 2201else
f11781c5
AK
2202 eval "$3=no"
2203 # Order is important - never check a type that is potentially smaller
2204 # than half of the expected target width.
2205 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2206 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2208/* end confdefs.h. */
7a197a62 2209$ac_includes_default
ad6254c5
AK
2210int
2211main ()
2212{
f11781c5
AK
2213static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2214test_array [0] = 0
ad6254c5 2215
f11781c5
AK
2216 ;
2217 return 0;
ad6254c5
AK
2218}
2219_ACEOF
f11781c5
AK
2220if ac_fn_c_try_compile "$LINENO"; then :
2221 case $ac_type in #(
2222 uint$2_t) :
2223 eval "$3=yes" ;; #(
2224 *) :
2225 eval "$3=\$ac_type" ;;
7a197a62 2226esac
ad6254c5 2227fi
f11781c5
AK
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2230
f11781c5
AK
2231else
2232 break
ad6254c5 2233fi
f11781c5 2234 done
ad6254c5 2235fi
f11781c5
AK
2236eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238$as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2240
f11781c5 2241} # ac_fn_c_find_uintX_t
ad6254c5 2242
f11781c5
AK
2243# ac_fn_c_check_func LINENO FUNC VAR
2244# ----------------------------------
2245# Tests whether FUNC exists, setting the cache variable VAR accordingly
2246ac_fn_c_check_func ()
2247{
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250$as_echo_n "checking for $2... " >&6; }
2251if eval "test \"\${$3+set}\"" = set; then :
2252 $as_echo_n "(cached) " >&6
ad6254c5 2253else
f11781c5
AK
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h. */
2256/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2258#define $2 innocuous_$2
ad6254c5 2259
f11781c5
AK
2260/* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $2 (); below.
2262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2263 <limits.h> exists even on freestanding compilers. */
ad6254c5 2264
f11781c5
AK
2265#ifdef __STDC__
2266# include <limits.h>
2267#else
2268# include <assert.h>
2269#endif
ad6254c5 2270
f11781c5
AK
2271#undef $2
2272
2273/* Override any GCC internal prototype to avoid an error.
2274 Use char because int might match the return type of a GCC
2275 builtin and then its argument prototype would still apply. */
2276#ifdef __cplusplus
2277extern "C"
2278#endif
2279char $2 ();
2280/* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283#if defined __stub_$2 || defined __stub___$2
2284choke me
2285#endif
ad6254c5 2286
ad6254c5
AK
2287int
2288main ()
2289{
f11781c5 2290return $2 ();
ad6254c5
AK
2291 ;
2292 return 0;
2293}
2294_ACEOF
f11781c5
AK
2295if ac_fn_c_try_link "$LINENO"; then :
2296 eval "$3=yes"
ad6254c5 2297else
f11781c5 2298 eval "$3=no"
ad6254c5 2299fi
f11781c5
AK
2300rm -f core conftest.err conftest.$ac_objext \
2301 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2302fi
f11781c5
AK
2303eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2307
f11781c5
AK
2308} # ac_fn_c_check_func
2309cat >config.log <<_ACEOF
2310This file contains any messages produced by compilers while
2311running configure, to aid debugging if configure makes a mistake.
7a197a62 2312
f11781c5
AK
2313It was created by $as_me, which was
2314generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2315
f11781c5 2316 $ $0 $@
ad6254c5 2317
ad6254c5 2318_ACEOF
f11781c5
AK
2319exec 5>>config.log
2320{
2321cat <<_ASUNAME
2322## --------- ##
2323## Platform. ##
2324## --------- ##
ad6254c5 2325
f11781c5
AK
2326hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2327uname -m = `(uname -m) 2>/dev/null || echo unknown`
2328uname -r = `(uname -r) 2>/dev/null || echo unknown`
2329uname -s = `(uname -s) 2>/dev/null || echo unknown`
2330uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2331
f11781c5
AK
2332/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2333/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2334
f11781c5
AK
2335/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2336/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2337/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2338/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2339/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2340/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2341/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2342
2343_ASUNAME
2344
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 $as_echo "PATH: $as_dir"
2351 done
2352IFS=$as_save_IFS
2353
2354} >&5
2355
2356cat >&5 <<_ACEOF
2357
2358
2359## ----------- ##
2360## Core tests. ##
2361## ----------- ##
ad6254c5 2362
ad6254c5 2363_ACEOF
ad6254c5 2364
7a197a62 2365
f11781c5
AK
2366# Keep a trace of the command line.
2367# Strip out --no-create and --no-recursion so they do not pile up.
2368# Strip out --silent because we don't want to record it for future runs.
2369# Also quote any args containing shell meta-characters.
2370# Make two passes to allow for proper duplicate-argument suppression.
2371ac_configure_args=
2372ac_configure_args0=
2373ac_configure_args1=
2374ac_must_keep_next=false
2375for ac_pass in 1 2
2376do
2377 for ac_arg
2378 do
2379 case $ac_arg in
2380 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2382 | -silent | --silent | --silen | --sile | --sil)
2383 continue ;;
2384 *\'*)
2385 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 esac
2387 case $ac_pass in
2388 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 2)
2390 as_fn_append ac_configure_args1 " '$ac_arg'"
2391 if test $ac_must_keep_next = true; then
2392 ac_must_keep_next=false # Got value, back to normal.
2393 else
2394 case $ac_arg in
2395 *=* | --config-cache | -C | -disable-* | --disable-* \
2396 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2397 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2398 | -with-* | --with-* | -without-* | --without-* | --x)
2399 case "$ac_configure_args0 " in
2400 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 esac
2402 ;;
2403 -* ) ac_must_keep_next=true ;;
2404 esac
2405 fi
2406 as_fn_append ac_configure_args " '$ac_arg'"
2407 ;;
2408 esac
2409 done
2410done
2411{ ac_configure_args0=; unset ac_configure_args0;}
2412{ ac_configure_args1=; unset ac_configure_args1;}
2413
2414# When interrupted or exit'd, cleanup temporary files, and complete
2415# config.log. We remove comments because anyway the quotes in there
2416# would cause problems or look ugly.
2417# WARNING: Use '\'' to represent an apostrophe within the trap.
2418# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2419trap 'exit_status=$?
2420 # Save into config.log some information that might help in debugging.
2421 {
2422 echo
2423
2424 $as_echo "## ---------------- ##
2425## Cache variables. ##
2426## ---------------- ##"
2427 echo
2428 # The following way of writing the cache mishandles newlines in values,
2429(
2430 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2431 eval ac_val=\$$ac_var
2432 case $ac_val in #(
2433 *${as_nl}*)
2434 case $ac_var in #(
2435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437 esac
2438 case $ac_var in #(
2439 _ | IFS | as_nl) ;; #(
2440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2441 *) { eval $ac_var=; unset $ac_var;} ;;
2442 esac ;;
2443 esac
2444 done
2445 (set) 2>&1 |
2446 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2447 *${as_nl}ac_space=\ *)
2448 sed -n \
2449 "s/'\''/'\''\\\\'\'''\''/g;
2450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451 ;; #(
2452 *)
2453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454 ;;
2455 esac |
2456 sort
2457)
2458 echo
2459
2460 $as_echo "## ----------------- ##
2461## Output variables. ##
2462## ----------------- ##"
2463 echo
2464 for ac_var in $ac_subst_vars
2465 do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in
2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 esac
2470 $as_echo "$ac_var='\''$ac_val'\''"
2471 done | sort
2472 echo
2473
2474 if test -n "$ac_subst_files"; then
2475 $as_echo "## ------------------- ##
2476## File substitutions. ##
2477## ------------------- ##"
2478 echo
2479 for ac_var in $ac_subst_files
2480 do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in
2483 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 esac
2485 $as_echo "$ac_var='\''$ac_val'\''"
2486 done | sort
2487 echo
2488 fi
2489
2490 if test -s confdefs.h; then
2491 $as_echo "## ----------- ##
2492## confdefs.h. ##
2493## ----------- ##"
2494 echo
2495 cat confdefs.h
2496 echo
2497 fi
2498 test "$ac_signal" != 0 &&
2499 $as_echo "$as_me: caught signal $ac_signal"
2500 $as_echo "$as_me: exit $exit_status"
2501 } >&5
2502 rm -f core *.core core.conftest.* &&
2503 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 exit $exit_status
2505' 0
2506for ac_signal in 1 2 13 15; do
2507 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508done
2509ac_signal=0
2510
2511# confdefs.h avoids OS command line length limits that DEFS can exceed.
2512rm -f -r conftest* confdefs.h
7a197a62 2513
f11781c5 2514$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2515
f11781c5 2516# Predefined preprocessor variables.
ad6254c5
AK
2517
2518cat >>confdefs.h <<_ACEOF
f11781c5 2519#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2520_ACEOF
2521
f11781c5
AK
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2524_ACEOF
ad6254c5 2525
f11781c5
AK
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2528_ACEOF
f11781c5
AK
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2532_ACEOF
ad6254c5 2533
f11781c5
AK
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536_ACEOF
7a197a62 2537
f11781c5
AK
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_URL "$PACKAGE_URL"
2540_ACEOF
ad6254c5 2541
7a197a62 2542
f11781c5
AK
2543# Let the site file select an alternate cache file if it wants to.
2544# Prefer an explicitly selected file to automatically selected ones.
2545ac_site_file1=NONE
2546ac_site_file2=NONE
2547if test -n "$CONFIG_SITE"; then
2548 # We do not want a PATH search for config.site.
2549 case $CONFIG_SITE in #((
2550 -*) ac_site_file1=./$CONFIG_SITE;;
2551 */*) ac_site_file1=$CONFIG_SITE;;
2552 *) ac_site_file1=./$CONFIG_SITE;;
2553 esac
2554elif test "x$prefix" != xNONE; then
2555 ac_site_file1=$prefix/share/config.site
2556 ac_site_file2=$prefix/etc/config.site
ad6254c5 2557else
f11781c5
AK
2558 ac_site_file1=$ac_default_prefix/share/config.site
2559 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2560fi
f11781c5
AK
2561for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562do
2563 test "x$ac_site_file" = xNONE && continue
2564 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2566$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2567 sed 's/^/| /' "$ac_site_file" >&5
2568 . "$ac_site_file" \
2569 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571as_fn_error $? "failed to load site script $ac_site_file
2572See \`config.log' for more details" "$LINENO" 5; }
2573 fi
2574done
ad6254c5 2575
f11781c5
AK
2576if test -r "$cache_file"; then
2577 # Some versions of bash will fail to source /dev/null (special files
2578 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2579 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581$as_echo "$as_me: loading cache $cache_file" >&6;}
2582 case $cache_file in
2583 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584 *) . "./$cache_file";;
2585 esac
2586 fi
2587else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589$as_echo "$as_me: creating cache $cache_file" >&6;}
2590 >$cache_file
ad6254c5 2591fi
ad6254c5 2592
f11781c5
AK
2593as_fn_append ac_header_list " stdlib.h"
2594as_fn_append ac_header_list " unistd.h"
2595as_fn_append ac_header_list " sys/param.h"
2596# Check that the precious variables saved in the cache have kept the same
2597# value.
2598ac_cache_corrupted=false
2599for ac_var in $ac_precious_vars; do
2600 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2601 eval ac_new_set=\$ac_env_${ac_var}_set
2602 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2603 eval ac_new_val=\$ac_env_${ac_var}_value
2604 case $ac_old_set,$ac_new_set in
2605 set,)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2607$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,set)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2611$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,);;
2614 *)
2615 if test "x$ac_old_val" != "x$ac_new_val"; then
2616 # differences in whitespace do not lead to failure.
2617 ac_old_val_w=`echo x $ac_old_val`
2618 ac_new_val_w=`echo x $ac_new_val`
2619 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2621$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2622 ac_cache_corrupted=:
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2625$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2626 eval $ac_var=\$ac_old_val
2627 fi
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2629$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2631$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2632 fi;;
2633 esac
2634 # Pass precious variables to config.status.
2635 if test "$ac_new_set" = set; then
2636 case $ac_new_val in
2637 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 *) ac_arg=$ac_var=$ac_new_val ;;
2639 esac
2640 case " $ac_configure_args " in
2641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2642 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2643 esac
2644 fi
2645done
2646if $ac_cache_corrupted; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2650$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2651 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2652fi
f11781c5
AK
2653## -------------------- ##
2654## Main body of script. ##
2655## -------------------- ##
ad6254c5 2656
f11781c5
AK
2657ac_ext=c
2658ac_cpp='$CPP $CPPFLAGS'
2659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2662
ad6254c5 2663
ad6254c5 2664
f11781c5 2665ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2666
2667
f11781c5
AK
2668################################################################################
2669ac_aux_dir=
2670for ac_dir in autoconf "$srcdir"/autoconf; do
2671 if test -f "$ac_dir/install-sh"; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2674 break
2675 elif test -f "$ac_dir/install.sh"; then
2676 ac_aux_dir=$ac_dir
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2678 break
2679 elif test -f "$ac_dir/shtool"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2682 break
2683 fi
2684done
2685if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2687fi
ad6254c5 2688
f11781c5
AK
2689# These three variables are undocumented and unsupported,
2690# and are intended to be withdrawn in a future Autoconf release.
2691# They can cause serious problems if a builder's source tree is in a directory
2692# whose full name contains unusual characters.
2693ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2696
ad6254c5 2697
8a2fc586 2698
f11781c5
AK
2699################################################################################
2700# Make sure we can run config.sub.
2701$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2702 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2703
f11781c5
AK
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2705$as_echo_n "checking build system type... " >&6; }
2706if test "${ac_cv_build+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708else
2709 ac_build_alias=$build_alias
2710test "x$ac_build_alias" = x &&
2711 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2712test "x$ac_build_alias" = x &&
2713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2714ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2715 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2716
2717fi
f11781c5
AK
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2719$as_echo "$ac_cv_build" >&6; }
2720case $ac_cv_build in
2721*-*-*) ;;
2722*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2723esac
2724build=$ac_cv_build
2725ac_save_IFS=$IFS; IFS='-'
2726set x $ac_cv_build
2727shift
2728build_cpu=$1
2729build_vendor=$2
2730shift; shift
2731# Remember, the first character of IFS is used to create $*,
2732# except with old shells:
2733build_os=$*
2734IFS=$ac_save_IFS
2735case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2736
2737
f11781c5
AK
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2739$as_echo_n "checking host system type... " >&6; }
2740if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2741 $as_echo_n "(cached) " >&6
ad6254c5 2742else
f11781c5
AK
2743 if test "x$host_alias" = x; then
2744 ac_cv_host=$ac_cv_build
ad6254c5 2745else
f11781c5
AK
2746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2748fi
ad6254c5 2749
f11781c5
AK
2750fi
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2752$as_echo "$ac_cv_host" >&6; }
2753case $ac_cv_host in
2754*-*-*) ;;
2755*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2756esac
2757host=$ac_cv_host
2758ac_save_IFS=$IFS; IFS='-'
2759set x $ac_cv_host
2760shift
2761host_cpu=$1
2762host_vendor=$2
2763shift; shift
2764# Remember, the first character of IFS is used to create $*,
2765# except with old shells:
2766host_os=$*
2767IFS=$ac_save_IFS
2768case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2769
ad6254c5 2770
f11781c5
AK
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2772$as_echo_n "checking target system type... " >&6; }
2773if test "${ac_cv_target+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
ad6254c5 2775else
f11781c5
AK
2776 if test "x$target_alias" = x; then
2777 ac_cv_target=$ac_cv_host
2778else
2779 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2781fi
7a197a62 2782
ad6254c5 2783fi
f11781c5
AK
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2785$as_echo "$ac_cv_target" >&6; }
2786case $ac_cv_target in
2787*-*-*) ;;
2788*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2789esac
f11781c5
AK
2790target=$ac_cv_target
2791ac_save_IFS=$IFS; IFS='-'
2792set x $ac_cv_target
2793shift
2794target_cpu=$1
2795target_vendor=$2
2796shift; shift
2797# Remember, the first character of IFS is used to create $*,
2798# except with old shells:
2799target_os=$*
2800IFS=$ac_save_IFS
2801case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2802
ad6254c5 2803
f11781c5
AK
2804# The aliases save the names the user supplied, while $host etc.
2805# will get canonicalized.
2806test -n "$target_alias" &&
2807 test "$program_prefix$program_suffix$program_transform_name" = \
2808 NONENONEs,x,x, &&
2809 program_prefix=${target_alias}-
ad6254c5 2810
f11781c5
AK
2811case "$host_os" in
2812 linux*)
2813 CFLAGS="$CFLAGS"
2814 COPTIMISE_FLAG="-O2"
2815 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2816 ELDFLAGS="-Wl,--export-dynamic"
2817 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2818 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2819 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2820 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2821 LIB_SUFFIX=so
2822 DEVMAPPER=yes
cdd50823 2823 LVMETAD=no
f11781c5
AK
2824 ODIRECT=yes
2825 DM_IOCTLS=yes
2826 SELINUX=yes
2827 CLUSTER=internal
2828 FSADM=yes
2829 ;;
2830 darwin*)
2831 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2832 COPTIMISE_FLAG="-O2"
2833 CLDFLAGS="$CLDFLAGS"
bf09a320 2834 ELDFLAGS=
f11781c5
AK
2835 CLDWHOLEARCHIVE="-all_load"
2836 CLDNOWHOLEARCHIVE=
2837 LIB_SUFFIX=dylib
2838 DEVMAPPER=yes
2839 ODIRECT=no
2840 DM_IOCTLS=no
2841 SELINUX=no
2842 CLUSTER=none
2843 FSADM=no
2844 ;;
2845esac
ad6254c5 2846
f11781c5
AK
2847################################################################################
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2849$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2850if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2851 $as_echo_n "(cached) " >&6
ad6254c5 2852else
f11781c5
AK
2853 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2854 for ac_i in 1 2 3 4 5 6 7; do
2855 ac_script="$ac_script$as_nl$ac_script"
2856 done
2857 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2858 { ac_script=; unset ac_script;}
2859 if test -z "$SED"; then
2860 ac_path_SED_found=false
2861 # Loop through the user's path and test for each of PROGNAME-LIST
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_prog in sed gsed; do
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2870 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2871# Check for GNU ac_path_SED and select it if it is found.
2872 # Check for GNU $ac_path_SED
2873case `"$ac_path_SED" --version 2>&1` in
2874*GNU*)
2875 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2876*)
2877 ac_count=0
2878 $as_echo_n 0123456789 >"conftest.in"
2879 while :
2880 do
2881 cat "conftest.in" "conftest.in" >"conftest.tmp"
2882 mv "conftest.tmp" "conftest.in"
2883 cp "conftest.in" "conftest.nl"
2884 $as_echo '' >> "conftest.nl"
2885 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2887 as_fn_arith $ac_count + 1 && ac_count=$as_val
2888 if test $ac_count -gt ${ac_path_SED_max-0}; then
2889 # Best one so far, save it but keep looking for a better one
2890 ac_cv_path_SED="$ac_path_SED"
2891 ac_path_SED_max=$ac_count
2892 fi
2893 # 10*(2^10) chars as input seems more than enough
2894 test $ac_count -gt 10 && break
2895 done
2896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2897esac
ad6254c5 2898
f11781c5
AK
2899 $ac_path_SED_found && break 3
2900 done
2901 done
2902 done
2903IFS=$as_save_IFS
2904 if test -z "$ac_cv_path_SED"; then
2905 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2906 fi
2907else
2908 ac_cv_path_SED=$SED
ad6254c5 2909fi
7a197a62 2910
f11781c5
AK
2911fi
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2913$as_echo "$ac_cv_path_SED" >&6; }
2914 SED="$ac_cv_path_SED"
2915 rm -f conftest.sed
ad6254c5 2916
f11781c5
AK
2917for ac_prog in gawk mawk nawk awk
2918do
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920set dummy $ac_prog; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if test "${ac_cv_prog_AWK+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
ad6254c5 2925else
f11781c5
AK
2926 if test -n "$AWK"; then
2927 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_AWK="$ac_prog"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940done
2941 done
2942IFS=$as_save_IFS
ad6254c5 2943
ad6254c5 2944fi
ad6254c5 2945fi
f11781c5
AK
2946AWK=$ac_cv_prog_AWK
2947if test -n "$AWK"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2949$as_echo "$AWK" >&6; }
2950else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
ad6254c5 2953fi
ad6254c5 2954
ad6254c5 2955
f11781c5 2956 test -n "$AWK" && break
ad6254c5
AK
2957done
2958
f11781c5
AK
2959ac_ext=c
2960ac_cpp='$CPP $CPPFLAGS'
2961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2966set dummy ${ac_tool_prefix}gcc; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2970 $as_echo_n "(cached) " >&6
ad6254c5 2971else
f11781c5
AK
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2974else
f11781c5
AK
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987 done
2988IFS=$as_save_IFS
ad6254c5 2989
ad6254c5 2990fi
ad6254c5 2991fi
f11781c5
AK
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995$as_echo "$CC" >&6; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
ad6254c5 2999fi
ad6254c5 3000
f11781c5
AK
3001
3002fi
3003if test -z "$ac_cv_prog_CC"; then
3004 ac_ct_CC=$CC
3005 # Extract the first word of "gcc", so it can be a program name with args.
3006set dummy gcc; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3010 $as_echo_n "(cached) " >&6
ad6254c5 3011else
f11781c5
AK
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3014else
f11781c5
AK
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_CC="gcc"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026done
3027 done
3028IFS=$as_save_IFS
d911ec67 3029
d911ec67 3030fi
d911ec67 3031fi
f11781c5
AK
3032ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035$as_echo "$ac_ct_CC" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
d911ec67 3039fi
d911ec67 3040
f11781c5
AK
3041 if test "x$ac_ct_CC" = x; then
3042 CC=""
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045yes:)
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048ac_tool_warned=yes ;;
3049esac
3050 CC=$ac_ct_CC
3051 fi
3052else
3053 CC="$ac_cv_prog_CC"
d911ec67 3054fi
d911ec67 3055
f11781c5
AK
3056if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059set dummy ${ac_tool_prefix}cc; ac_word=$2
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061$as_echo_n "checking for $ac_word... " >&6; }
3062if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3063 $as_echo_n "(cached) " >&6
d911ec67 3064else
f11781c5
AK
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3067else
f11781c5
AK
3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_CC="${ac_tool_prefix}cc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079done
3080 done
3081IFS=$as_save_IFS
d911ec67 3082
f11781c5
AK
3083fi
3084fi
3085CC=$ac_cv_prog_CC
3086if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088$as_echo "$CC" >&6; }
3089else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091$as_echo "no" >&6; }
d911ec67
AK
3092fi
3093
d911ec67 3094
f11781c5
AK
3095 fi
3096fi
3097if test -z "$CC"; then
3098 # Extract the first word of "cc", so it can be a program name with args.
3099set dummy cc; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if test "${ac_cv_prog_CC+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
d911ec67 3104else
f11781c5
AK
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107else
3108 ac_prog_rejected=no
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3117 ac_prog_rejected=yes
3118 continue
3119 fi
3120 ac_cv_prog_CC="cc"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125 done
3126IFS=$as_save_IFS
d911ec67 3127
f11781c5
AK
3128if test $ac_prog_rejected = yes; then
3129 # We found a bogon in the path, so make sure we never use it.
3130 set dummy $ac_cv_prog_CC
3131 shift
3132 if test $# != 0; then
3133 # We chose a different compiler from the bogus one.
3134 # However, it has the same basename, so the bogon will be chosen
3135 # first if we set CC to just the basename; use the full file name.
3136 shift
3137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3138 fi
3139fi
3140fi
3141fi
3142CC=$ac_cv_prog_CC
3143if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145$as_echo "$CC" >&6; }
3146else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
d911ec67
AK
3149fi
3150
d911ec67 3151
f11781c5
AK
3152fi
3153if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 for ac_prog in cl.exe
3156 do
3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3162 $as_echo_n "(cached) " >&6
3163else
f11781c5
AK
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178done
3179 done
3180IFS=$as_save_IFS
d911ec67
AK
3181
3182fi
f11781c5
AK
3183fi
3184CC=$ac_cv_prog_CC
3185if test -n "$CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187$as_echo "$CC" >&6; }
3188else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
d911ec67
AK
3191fi
3192
d911ec67 3193
f11781c5
AK
3194 test -n "$CC" && break
3195 done
3196fi
3197if test -z "$CC"; then
3198 ac_ct_CC=$CC
3199 for ac_prog in cl.exe
3200do
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202set dummy $ac_prog; ac_word=$2
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204$as_echo_n "checking for $ac_word... " >&6; }
3205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3206 $as_echo_n "(cached) " >&6
3207else
f11781c5
AK
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3210else
f11781c5
AK
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_ac_ct_CC="$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222done
3223 done
3224IFS=$as_save_IFS
ad6254c5 3225
ad6254c5 3226fi
ad6254c5 3227fi
f11781c5
AK
3228ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231$as_echo "$ac_ct_CC" >&6; }
3232else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
ad6254c5 3235fi
ad6254c5 3236
d911ec67 3237
f11781c5
AK
3238 test -n "$ac_ct_CC" && break
3239done
d911ec67 3240
f11781c5
AK
3241 if test "x$ac_ct_CC" = x; then
3242 CC=""
3243 else
3244 case $cross_compiling:$ac_tool_warned in
3245yes:)
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248ac_tool_warned=yes ;;
d911ec67 3249esac
f11781c5
AK
3250 CC=$ac_ct_CC
3251 fi
3252fi
ad6254c5
AK
3253
3254fi
d911ec67
AK
3255
3256
f11781c5
AK
3257test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259as_fn_error $? "no acceptable C compiler found in \$PATH
3260See \`config.log' for more details" "$LINENO" 5; }
3261
3262# Provide some information about the compiler.
3263$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3264set X $ac_compile
3265ac_compiler=$2
3266for ac_option in --version -v -V -qversion; do
3267 { { ac_try="$ac_compiler $ac_option >&5"
3268case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273$as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3275 ac_status=$?
3276 if test -s conftest.err; then
3277 sed '10a\
3278... rest of stderr output deleted ...
3279 10q' conftest.err >conftest.er1
3280 cat conftest.er1 >&5
3281 fi
3282 rm -f conftest.er1 conftest.err
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3285done
ad6254c5 3286
f11781c5 3287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3288/* end confdefs.h. */
f11781c5 3289
ad6254c5
AK
3290int
3291main ()
3292{
f11781c5 3293
ad6254c5
AK
3294 ;
3295 return 0;
3296}
3297_ACEOF
f11781c5
AK
3298ac_clean_files_save=$ac_clean_files
3299ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3300# Try to create an executable without -o first, disregard a.out.
3301# It will help us diagnose broken compilers, and finding out an intuition
3302# of exeext.
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3304$as_echo_n "checking whether the C compiler works... " >&6; }
3305ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306
3307# The possible output files:
3308ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309
3310ac_rmfiles=
3311for ac_file in $ac_files
3312do
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316 esac
3317done
3318rm -f $ac_rmfiles
3319
3320if { { ac_try="$ac_link_default"
7a197a62
AK
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
f11781c5
AK
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link_default") 2>&5
ad6254c5 3328 ac_status=$?
f11781c5
AK
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333# in a Makefile. We should not override ac_cv_exeext if it was cached,
3334# so that the user can short-circuit this test for compilers unknown to
3335# Autoconf.
3336for ac_file in $ac_files ''
3337do
3338 test -f "$ac_file" || continue
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 ;;
3342 [ab].out )
3343 # We found the default executable, but exeext='' is most
3344 # certainly right.
3345 break;;
3346 *.* )
3347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348 then :; else
3349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 fi
3351 # We set ac_cv_exeext here because the later test for it is not
3352 # safe: cross compilers may not add the suffix if given an `-o'
3353 # argument, so we may need to know it at that point already.
3354 # Even if this section looks crufty: it has the advantage of
3355 # actually working.
3356 break;;
3357 * )
3358 break;;
3359 esac
3360done
3361test "$ac_cv_exeext" = no && ac_cv_exeext=
3362
ad6254c5 3363else
f11781c5
AK
3364 ac_file=''
3365fi
3366if test -z "$ac_file"; then :
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
ec6a6fbe 3369$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
f11781c5
AK
3372{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error 77 "C compiler cannot create executables
3375See \`config.log' for more details" "$LINENO" 5; }
3376else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3378$as_echo "yes" >&6; }
ad6254c5 3379fi
f11781c5
AK
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3381$as_echo_n "checking for C compiler default output file name... " >&6; }
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3383$as_echo "$ac_file" >&6; }
3384ac_exeext=$ac_cv_exeext
7a197a62 3385
f11781c5
AK
3386rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3387ac_clean_files=$ac_clean_files_save
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3389$as_echo_n "checking for suffix of executables... " >&6; }
3390if { { ac_try="$ac_link"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
8a2fc586 3394esac
f11781c5
AK
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3402# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3403# work properly (i.e., refer to `conftest.exe'), while it won't with
3404# `rm'.
3405for ac_file in conftest.exe conftest conftest.*; do
3406 test -f "$ac_file" || continue
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410 break;;
3411 * ) break;;
3412 esac
3413done
3414else
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3418See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3419fi
f11781c5
AK
3420rm -f conftest conftest$ac_cv_exeext
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3422$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3423
f11781c5
AK
3424rm -f conftest.$ac_ext
3425EXEEXT=$ac_cv_exeext
3426ac_exeext=$EXEEXT
3427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3428/* end confdefs.h. */
f11781c5 3429#include <stdio.h>
ad6254c5 3430int
f11781c5 3431main ()
ad6254c5 3432{
f11781c5
AK
3433FILE *f = fopen ("conftest.out", "w");
3434 return ferror (f) || fclose (f) != 0;
ad6254c5 3435
f11781c5 3436 ;
7a197a62 3437 return 0;
ad6254c5 3438}
ad6254c5 3439_ACEOF
f11781c5
AK
3440ac_clean_files="$ac_clean_files conftest.out"
3441# Check that the compiler produces executables we can run. If not, either
3442# the compiler is broken, or we cross compile.
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3444$as_echo_n "checking whether we are cross compiling... " >&6; }
3445if test "$cross_compiling" != yes; then
3446 { { ac_try="$ac_link"
7a197a62
AK
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
f11781c5
AK
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
7a197a62 3453 (eval "$ac_link") 2>&5
ad6254c5 3454 ac_status=$?
f11781c5
AK
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3457 if { ac_try='./conftest$ac_cv_exeext'
3458 { { case "(($ac_try" in
7a197a62
AK
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
f11781c5
AK
3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463$as_echo "$ac_try_echo"; } >&5
7a197a62 3464 (eval "$ac_try") 2>&5
ad6254c5 3465 ac_status=$?
f11781c5
AK
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; }; then
3468 cross_compiling=no
3469 else
3470 if test "$cross_compiling" = maybe; then
3471 cross_compiling=yes
3472 else
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error $? "cannot run C compiled programs.
3476If you meant to cross compile, use \`--host'.
3477See \`config.log' for more details" "$LINENO" 5; }
3478 fi
3479 fi
3480fi
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3482$as_echo "$cross_compiling" >&6; }
3483
3484rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3485ac_clean_files=$ac_clean_files_save
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3487$as_echo_n "checking for suffix of object files... " >&6; }
3488if test "${ac_cv_objext+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3490else
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
ad6254c5
AK
3493
3494int
3495main ()
3496{
f11781c5 3497
ad6254c5
AK
3498 ;
3499 return 0;
3500}
3501_ACEOF
f11781c5
AK
3502rm -f conftest.o conftest.obj
3503if { { ac_try="$ac_compile"
7a197a62
AK
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
f11781c5
AK
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compile") 2>&5
ad6254c5 3511 ac_status=$?
f11781c5
AK
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 for ac_file in conftest.o conftest.obj conftest.*; do
3515 test -f "$ac_file" || continue;
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3519 break;;
3520 esac
3521done
ad6254c5 3522else
ec6a6fbe 3523 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
f11781c5
AK
3526{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error $? "cannot compute suffix of object files: cannot compile
3529See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3530fi
f11781c5 3531rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3532fi
f11781c5
AK
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3534$as_echo "$ac_cv_objext" >&6; }
3535OBJEXT=$ac_cv_objext
3536ac_objext=$OBJEXT
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3540 $as_echo_n "(cached) " >&6
ad6254c5 3541else
f11781c5 3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3543/* end confdefs.h. */
3544
ad6254c5
AK
3545int
3546main ()
3547{
f11781c5
AK
3548#ifndef __GNUC__
3549 choke me
3550#endif
3551
ad6254c5
AK
3552 ;
3553 return 0;
3554}
3555_ACEOF
f11781c5
AK
3556if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_compiler_gnu=yes
ad6254c5 3558else
f11781c5 3559 ac_compiler_gnu=no
ad6254c5 3560fi
f11781c5
AK
3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3563
d0191583 3564fi
f11781c5
AK
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3566$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3567if test $ac_compiler_gnu = yes; then
3568 GCC=yes
d0191583 3569else
f11781c5 3570 GCC=
d0191583 3571fi
f11781c5
AK
3572ac_test_CFLAGS=${CFLAGS+set}
3573ac_save_CFLAGS=$CFLAGS
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575$as_echo_n "checking whether $CC accepts -g... " >&6; }
3576if test "${ac_cv_prog_cc_g+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578else
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3581 ac_cv_prog_cc_g=no
3582 CFLAGS="-g"
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h. */
72b2cb61 3585
f11781c5
AK
3586int
3587main ()
3588{
72b2cb61 3589
f11781c5
AK
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_prog_cc_g=yes
3596else
3597 CFLAGS=""
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h. */
ad6254c5 3600
f11781c5
AK
3601int
3602main ()
3603{
ad6254c5 3604
f11781c5
AK
3605 ;
3606 return 0;
3607}
d0191583 3608_ACEOF
f11781c5
AK
3609if ac_fn_c_try_compile "$LINENO"; then :
3610
3611else
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3613 CFLAGS="-g"
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3615/* end confdefs.h. */
7a197a62 3616
f11781c5
AK
3617int
3618main ()
3619{
ad6254c5 3620
f11781c5
AK
3621 ;
3622 return 0;
3623}
3624_ACEOF
3625if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_cv_prog_cc_g=yes
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631fi
3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 ac_c_werror_flag=$ac_save_c_werror_flag
3634fi
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3636$as_echo "$ac_cv_prog_cc_g" >&6; }
3637if test "$ac_test_CFLAGS" = set; then
3638 CFLAGS=$ac_save_CFLAGS
3639elif test $ac_cv_prog_cc_g = yes; then
3640 if test "$GCC" = yes; then
3641 CFLAGS="-g -O2"
3642 else
3643 CFLAGS="-g"
3644 fi
3645else
3646 if test "$GCC" = yes; then
3647 CFLAGS="-O2"
3648 else
3649 CFLAGS=
3650 fi
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654if test "${ac_cv_prog_cc_c89+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656else
3657 ac_cv_prog_cc_c89=no
3658ac_save_CC=$CC
3659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h. */
3661#include <stdarg.h>
3662#include <stdio.h>
3663#include <sys/types.h>
3664#include <sys/stat.h>
3665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666struct buf { int x; };
3667FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668static char *e (p, i)
3669 char **p;
3670 int i;
3671{
3672 return p[i];
3673}
3674static char *f (char * (*g) (char **, int), char **p, ...)
3675{
3676 char *s;
3677 va_list v;
3678 va_start (v,p);
3679 s = g (p, va_arg (v,int));
3680 va_end (v);
3681 return s;
3682}
ad6254c5 3683
f11781c5
AK
3684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std. */
3691int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3692
f11781c5
AK
3693/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694 inside strings and character constants. */
3695#define FOO(x) 'x'
3696int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3697
f11781c5
AK
3698int test (int i, double x);
3699struct s1 {int (*f) (int a);};
3700struct s2 {int (*f) (double a);};
3701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702int argc;
3703char **argv;
d0191583
JM
3704int
3705main ()
3706{
f11781c5 3707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3708 ;
3709 return 0;
3710}
72b2cb61 3711_ACEOF
f11781c5
AK
3712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714do
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c89=$ac_arg
3718fi
3719rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c89" != "xno" && break
3721done
3722rm -f conftest.$ac_ext
3723CC=$ac_save_CC
3724
3725fi
3726# AC_CACHE_VAL
3727case "x$ac_cv_prog_cc_c89" in
3728 x)
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730$as_echo "none needed" >&6; } ;;
3731 xno)
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733$as_echo "unsupported" >&6; } ;;
3734 *)
3735 CC="$CC $ac_cv_prog_cc_c89"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3738esac
f11781c5
AK
3739if test "x$ac_cv_prog_cc_c89" != xno; then :
3740
3741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3748
ad6254c5 3749
7a197a62 3750
f11781c5
AK
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3757$as_echo_n "checking how to run the C preprocessor... " >&6; }
3758# On Suns, sometimes $CPP names a directory.
3759if test -n "$CPP" && test -d "$CPP"; then
3760 CPP=
3761fi
3762if test -z "$CPP"; then
3763 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3764 $as_echo_n "(cached) " >&6
ad6254c5 3765else
f11781c5
AK
3766 # Double quotes because CPP needs to be expanded
3767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768 do
3769 ac_preproc_ok=false
3770for ac_c_preproc_warn_flag in '' yes
3771do
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3779/* end confdefs.h. */
d0191583
JM
3780#ifdef __STDC__
3781# include <limits.h>
3782#else
3783# include <assert.h>
3784#endif
f11781c5
AK
3785 Syntax error
3786_ACEOF
3787if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3788
f11781c5
AK
3789else
3790 # Broken: fails on valid input.
3791continue
3792fi
3793rm -f conftest.err conftest.$ac_ext
d0191583 3794
f11781c5
AK
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h. */
3799#include <ac_nonexistent.h>
72b2cb61 3800_ACEOF
f11781c5
AK
3801if ac_fn_c_try_cpp "$LINENO"; then :
3802 # Broken: success on invalid input.
3803continue
d0191583 3804else
f11781c5
AK
3805 # Passes both tests.
3806ac_preproc_ok=:
3807break
ad6254c5 3808fi
f11781c5 3809rm -f conftest.err conftest.$ac_ext
ad6254c5 3810
f11781c5
AK
3811done
3812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813rm -f conftest.err conftest.$ac_ext
3814if $ac_preproc_ok; then :
3815 break
7a197a62
AK
3816fi
3817
f11781c5
AK
3818 done
3819 ac_cv_prog_CPP=$CPP
ad6254c5 3820
7a197a62 3821fi
f11781c5
AK
3822 CPP=$ac_cv_prog_CPP
3823else
3824 ac_cv_prog_CPP=$CPP
d0191583 3825fi
f11781c5
AK
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3827$as_echo "$CPP" >&6; }
3828ac_preproc_ok=false
3829for ac_c_preproc_warn_flag in '' yes
3830do
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834 # <limits.h> exists even on freestanding compilers.
3835 # On the NeXT, cc -E runs the code through the compiler's parser,
3836 # not just through cpp. "Syntax error" is here to catch this case.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839#ifdef __STDC__
3840# include <limits.h>
3841#else
3842# include <assert.h>
3843#endif
3844 Syntax error
3845_ACEOF
3846if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3847
9c961554 3848else
f11781c5
AK
3849 # Broken: fails on valid input.
3850continue
9c961554 3851fi
f11781c5 3852rm -f conftest.err conftest.$ac_ext
9c961554 3853
f11781c5
AK
3854 # OK, works on sane cases. Now check whether nonexistent headers
3855 # can be detected and how.
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h. */
3858#include <ac_nonexistent.h>
3859_ACEOF
3860if ac_fn_c_try_cpp "$LINENO"; then :
3861 # Broken: success on invalid input.
3862continue
3863else
3864 # Passes both tests.
3865ac_preproc_ok=:
3866break
3867fi
3868rm -f conftest.err conftest.$ac_ext
ad6254c5 3869
f11781c5
AK
3870done
3871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872rm -f conftest.err conftest.$ac_ext
3873if $ac_preproc_ok; then :
d0191583 3874
f11781c5
AK
3875else
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3879See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3880fi
3881
f11781c5
AK
3882ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3887
ad6254c5 3888
f11781c5
AK
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3890$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3891if test "${ac_cv_path_GREP+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893else
3894 if test -z "$GREP"; then
3895 ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in grep ggrep; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3905 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3906# Check for GNU ac_path_GREP and select it if it is found.
3907 # Check for GNU $ac_path_GREP
3908case `"$ac_path_GREP" --version 2>&1` in
3909*GNU*)
3910 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911*)
3912 ac_count=0
3913 $as_echo_n 0123456789 >"conftest.in"
3914 while :
3915 do
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 $as_echo 'GREP' >> "conftest.nl"
3920 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 as_fn_arith $ac_count + 1 && ac_count=$as_val
3923 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_GREP="$ac_path_GREP"
3926 ac_path_GREP_max=$ac_count
3927 fi
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3930 done
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932esac
ad6254c5 3933
f11781c5
AK
3934 $ac_path_GREP_found && break 3
3935 done
3936 done
3937 done
3938IFS=$as_save_IFS
3939 if test -z "$ac_cv_path_GREP"; then
3940 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3941 fi
3942else
3943 ac_cv_path_GREP=$GREP
7a197a62
AK
3944fi
3945
d0191583 3946fi
f11781c5
AK
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3948$as_echo "$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
ad6254c5 3950
24bbc4d7 3951
f11781c5
AK
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3953$as_echo_n "checking for egrep... " >&6; }
3954if test "${ac_cv_path_EGREP+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3956else
3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958 then ac_cv_path_EGREP="$GREP -E"
3959 else
3960 if test -z "$EGREP"; then
3961 ac_path_EGREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_prog in egrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3972# Check for GNU ac_path_EGREP and select it if it is found.
3973 # Check for GNU $ac_path_EGREP
3974case `"$ac_path_EGREP" --version 2>&1` in
3975*GNU*)
3976 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3977*)
3978 ac_count=0
3979 $as_echo_n 0123456789 >"conftest.in"
3980 while :
3981 do
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
3985 $as_echo 'EGREP' >> "conftest.nl"
3986 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988 as_fn_arith $ac_count + 1 && ac_count=$as_val
3989 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_EGREP="$ac_path_EGREP"
3992 ac_path_EGREP_max=$ac_count
3993 fi
3994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3996 done
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998esac
24bbc4d7 3999
f11781c5
AK
4000 $ac_path_EGREP_found && break 3
4001 done
4002 done
4003 done
4004IFS=$as_save_IFS
4005 if test -z "$ac_cv_path_EGREP"; then
4006 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4007 fi
24bbc4d7 4008else
f11781c5 4009 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4010fi
4011
f11781c5 4012 fi
24bbc4d7 4013fi
f11781c5
AK
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4015$as_echo "$ac_cv_path_EGREP" >&6; }
4016 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4017
4018
f11781c5
AK
4019if test $ac_cv_c_compiler_gnu = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4021$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4022if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
93bd259b 4024else
f11781c5
AK
4025 ac_pattern="Autoconf.*'x'"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028#include <sgtty.h>
4029Autoconf TIOCGETP
4030_ACEOF
4031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4033 ac_cv_prog_gcc_traditional=yes
d0191583 4034else
f11781c5 4035 ac_cv_prog_gcc_traditional=no
7a197a62 4036fi
f11781c5 4037rm -f conftest*
7a197a62 4038
72b2cb61 4039
f11781c5
AK
4040 if test $ac_cv_prog_gcc_traditional = no; then
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042/* end confdefs.h. */
4043#include <termio.h>
4044Autoconf TCGETA
72b2cb61 4045_ACEOF
f11781c5
AK
4046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4048 ac_cv_prog_gcc_traditional=yes
ad6254c5 4049fi
f11781c5 4050rm -f conftest*
ad6254c5 4051
f11781c5 4052 fi
7a197a62 4053fi
f11781c5
AK
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4055$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4056 if test $ac_cv_prog_gcc_traditional = yes; then
4057 CC="$CC -traditional"
4058 fi
ad6254c5
AK
4059fi
4060
f11781c5
AK
4061# Find a good install program. We prefer a C program (faster),
4062# so one script is as good as another. But avoid the broken or
4063# incompatible versions:
4064# SysV /etc/install, /usr/sbin/install
4065# SunOS /usr/etc/install
4066# IRIX /sbin/install
4067# AIX /bin/install
4068# AmigaOS /C/install, which installs bootblocks on floppy discs
4069# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4070# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4071# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4072# OS/2's system install, which has a completely different semantic
4073# ./install, which can be erroneously created by make from ./install.sh.
4074# Reject install programs that cannot install multiple files.
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4076$as_echo_n "checking for a BSD-compatible install... " >&6; }
4077if test -z "$INSTALL"; then
4078if test "${ac_cv_path_install+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
ad6254c5 4080else
f11781c5
AK
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 # Account for people who put trailing slashes in PATH elements.
4087case $as_dir/ in #((
4088 ./ | .// | /[cC]/* | \
4089 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4090 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4091 /usr/ucb/* ) ;;
4092 *)
4093 # OSF1 and SCO ODT 3.0 have their own names for install.
4094 # Don't use installbsd from OSF since it installs stuff as root
4095 # by default.
4096 for ac_prog in ginstall scoinst install; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4099 if test $ac_prog = install &&
4100 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4101 # AIX install. It has an incompatible calling convention.
4102 :
4103 elif test $ac_prog = install &&
4104 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4105 # program-specific install script used by HP pwplus--don't use.
4106 :
4107 else
4108 rm -rf conftest.one conftest.two conftest.dir
4109 echo one > conftest.one
4110 echo two > conftest.two
4111 mkdir conftest.dir
4112 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4113 test -s conftest.one && test -s conftest.two &&
4114 test -s conftest.dir/conftest.one &&
4115 test -s conftest.dir/conftest.two
4116 then
4117 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4118 break 3
4119 fi
4120 fi
4121 fi
4122 done
4123 done
4124 ;;
4125esac
7a197a62 4126
f11781c5
AK
4127 done
4128IFS=$as_save_IFS
d0191583 4129
f11781c5 4130rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4131
4132fi
f11781c5
AK
4133 if test "${ac_cv_path_install+set}" = set; then
4134 INSTALL=$ac_cv_path_install
4135 else
4136 # As a last resort, use the slow shell script. Don't cache a
4137 # value for INSTALL within a source directory, because that will
4138 # break other packages using the cache if that directory is
4139 # removed, or if the value is a relative name.
4140 INSTALL=$ac_install_sh
4141 fi
7a197a62 4142fi
f11781c5
AK
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4144$as_echo "$INSTALL" >&6; }
7a197a62 4145
f11781c5
AK
4146# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4147# It thinks the first close brace ends the variable substitution.
4148test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4149
f11781c5 4150test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4151
f11781c5 4152test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4153
f11781c5
AK
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4155$as_echo_n "checking whether ln -s works... " >&6; }
4156LN_S=$as_ln_s
4157if test "$LN_S" = "ln -s"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4159$as_echo "yes" >&6; }
4160else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4162$as_echo "no, using $LN_S" >&6; }
15d91f5a 4163fi
ad6254c5 4164
f11781c5
AK
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4166$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4167set x ${MAKE-make}
4168ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4169if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4170 $as_echo_n "(cached) " >&6
d0191583 4171else
f11781c5
AK
4172 cat >conftest.make <<\_ACEOF
4173SHELL = /bin/sh
4174all:
4175 @echo '@@@%%%=$(MAKE)=@@@%%%'
4176_ACEOF
4177# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4178case `${MAKE-make} -f conftest.make 2>/dev/null` in
4179 *@@@%%%=?*=@@@%%%*)
4180 eval ac_cv_prog_make_${ac_make}_set=yes;;
4181 *)
4182 eval ac_cv_prog_make_${ac_make}_set=no;;
4183esac
4184rm -f conftest.make
4185fi
4186if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188$as_echo "yes" >&6; }
4189 SET_MAKE=
4190else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192$as_echo "no" >&6; }
4193 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4194fi
4195
f11781c5
AK
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4197$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4198if test -z "$MKDIR_P"; then
4199 if test "${ac_cv_path_mkdir+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_prog in mkdir gmkdir; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4210 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4211 'mkdir (GNU coreutils) '* | \
4212 'mkdir (coreutils) '* | \
4213 'mkdir (fileutils) '4.1*)
4214 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4215 break 3;;
4216 esac
4217 done
4218 done
4219 done
4220IFS=$as_save_IFS
d0191583 4221
f11781c5 4222fi
ad6254c5 4223
f11781c5
AK
4224 test -d ./--version && rmdir ./--version
4225 if test "${ac_cv_path_mkdir+set}" = set; then
4226 MKDIR_P="$ac_cv_path_mkdir -p"
4227 else
4228 # As a last resort, use the slow shell script. Don't cache a
4229 # value for MKDIR_P within a source directory, because that will
4230 # break other packages using the cache if that directory is
4231 # removed, or if the value is a relative name.
4232 MKDIR_P="$ac_install_sh -d"
4233 fi
ad6254c5 4234fi
f11781c5
AK
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4236$as_echo "$MKDIR_P" >&6; }
7a197a62 4237
f11781c5
AK
4238if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4240set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if test "${ac_cv_prog_RANLIB+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$RANLIB"; then
4247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261 done
4262IFS=$as_save_IFS
d0191583 4263
f11781c5
AK
4264fi
4265fi
4266RANLIB=$ac_cv_prog_RANLIB
4267if test -n "$RANLIB"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4269$as_echo "$RANLIB" >&6; }
d0191583 4270else
f11781c5
AK
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272$as_echo "no" >&6; }
ad6254c5 4273fi
ad6254c5 4274
8a2fc586 4275
d0191583 4276fi
f11781c5
AK
4277if test -z "$ac_cv_prog_RANLIB"; then
4278 ac_ct_RANLIB=$RANLIB
4279 # Extract the first word of "ranlib", so it can be a program name with args.
4280set dummy ranlib; ac_word=$2
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282$as_echo_n "checking for $ac_word... " >&6; }
4283if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285else
4286 if test -n "$ac_ct_RANLIB"; then
4287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4288else
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_ac_ct_RANLIB="ranlib"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300done
4301 done
4302IFS=$as_save_IFS
8a2fc586 4303
f11781c5
AK
4304fi
4305fi
4306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4307if test -n "$ac_ct_RANLIB"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4309$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4310else
f11781c5
AK
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312$as_echo "no" >&6; }
8fea97b7
ZK
4313fi
4314
f11781c5
AK
4315 if test "x$ac_ct_RANLIB" = x; then
4316 RANLIB=":"
4317 else
4318 case $cross_compiling:$ac_tool_warned in
4319yes:)
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322ac_tool_warned=yes ;;
8fea97b7 4323esac
f11781c5
AK
4324 RANLIB=$ac_ct_RANLIB
4325 fi
d0191583 4326else
f11781c5 4327 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4328fi
8a2fc586 4329
f11781c5
AK
4330# Extract the first word of "cflow", so it can be a program name with args.
4331set dummy cflow; ac_word=$2
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
4334if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336else
4337 case $CFLOW_CMD in
4338 [\\/]* | ?:[\\/]*)
4339 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4340 ;;
4341 *)
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353done
4354 done
4355IFS=$as_save_IFS
8a2fc586 4356
f11781c5
AK
4357 ;;
4358esac
ad6254c5 4359fi
f11781c5
AK
4360CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4361if test -n "$CFLOW_CMD"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4363$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4364else
f11781c5
AK
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366$as_echo "no" >&6; }
37ddf259
AK
4367fi
4368
e2997b73 4369
f11781c5
AK
4370# Extract the first word of "cscope", so it can be a program name with args.
4371set dummy cscope; ac_word=$2
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4373$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4374if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4375 $as_echo_n "(cached) " >&6
4376else
f11781c5 4377 case $CSCOPE_CMD in
e2997b73 4378 [\\/]* | ?:[\\/]*)
f11781c5 4379 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4380 ;;
4381 *)
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
f11781c5 4387 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4389 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4391 break 2
4392 fi
4393done
f11781c5 4394 done
e2997b73
AK
4395IFS=$as_save_IFS
4396
4397 ;;
4398esac
4399fi
f11781c5
AK
4400CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4401if test -n "$CSCOPE_CMD"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4403$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4404else
f11781c5 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4406$as_echo "no" >&6; }
4407fi
f11781c5
AK
4408
4409
4410
4411################################################################################
4412ac_header_dirent=no
4413for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4414 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4416$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4417if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4418 $as_echo_n "(cached) " >&6
4419else
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h. */
4422#include <sys/types.h>
4423#include <$ac_hdr>
4424
4425int
4426main ()
4427{
4428if ((DIR *) 0)
4429return 0;
4430 ;
4431 return 0;
4432}
4433_ACEOF
4434if ac_fn_c_try_compile "$LINENO"; then :
4435 eval "$as_ac_Header=yes"
4436else
4437 eval "$as_ac_Header=no"
4438fi
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440fi
4441eval ac_res=\$$as_ac_Header
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4443$as_echo "$ac_res" >&6; }
4444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4445 cat >>confdefs.h <<_ACEOF
4446#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4447_ACEOF
4448
4449ac_header_dirent=$ac_hdr; break
4450fi
4451
4452done
4453# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4454if test $ac_header_dirent = dirent.h; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4456$as_echo_n "checking for library containing opendir... " >&6; }
4457if test "${ac_cv_search_opendir+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4459else
4460 ac_func_search_save_LIBS=$LIBS
4461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h. */
4463
4464/* Override any GCC internal prototype to avoid an error.
4465 Use char because int might match the return type of a GCC
4466 builtin and then its argument prototype would still apply. */
4467#ifdef __cplusplus
4468extern "C"
4469#endif
4470char opendir ();
4471int
4472main ()
4473{
4474return opendir ();
4475 ;
4476 return 0;
4477}
4478_ACEOF
4479for ac_lib in '' dir; do
4480 if test -z "$ac_lib"; then
4481 ac_res="none required"
4482 else
4483 ac_res=-l$ac_lib
4484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4485 fi
4486 if ac_fn_c_try_link "$LINENO"; then :
4487 ac_cv_search_opendir=$ac_res
4488fi
4489rm -f core conftest.err conftest.$ac_objext \
4490 conftest$ac_exeext
4491 if test "${ac_cv_search_opendir+set}" = set; then :
4492 break
4493fi
4494done
4495if test "${ac_cv_search_opendir+set}" = set; then :
4496
4497else
4498 ac_cv_search_opendir=no
4499fi
4500rm conftest.$ac_ext
4501LIBS=$ac_func_search_save_LIBS
4502fi
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4504$as_echo "$ac_cv_search_opendir" >&6; }
4505ac_res=$ac_cv_search_opendir
4506if test "$ac_res" != no; then :
4507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4508
4509fi
f11781c5
AK
4510
4511else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4513$as_echo_n "checking for library containing opendir... " >&6; }
4514if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4515 $as_echo_n "(cached) " >&6
4516else
f11781c5
AK
4517 ac_func_search_save_LIBS=$LIBS
4518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h. */
e2997b73 4520
f11781c5
AK
4521/* Override any GCC internal prototype to avoid an error.
4522 Use char because int might match the return type of a GCC
4523 builtin and then its argument prototype would still apply. */
4524#ifdef __cplusplus
4525extern "C"
4526#endif
4527char opendir ();
4528int
4529main ()
4530{
4531return opendir ();
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536for ac_lib in '' x; do
4537 if test -z "$ac_lib"; then
4538 ac_res="none required"
4539 else
4540 ac_res=-l$ac_lib
4541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4542 fi
4543 if ac_fn_c_try_link "$LINENO"; then :
4544 ac_cv_search_opendir=$ac_res
e2997b73 4545fi
f11781c5
AK
4546rm -f core conftest.err conftest.$ac_objext \
4547 conftest$ac_exeext
4548 if test "${ac_cv_search_opendir+set}" = set; then :
4549 break
e2997b73 4550fi
f11781c5
AK
4551done
4552if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4553
e2997b73 4554else
f11781c5
AK
4555 ac_cv_search_opendir=no
4556fi
4557rm conftest.$ac_ext
4558LIBS=$ac_func_search_save_LIBS
e2997b73 4559fi
f11781c5
AK
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4561$as_echo "$ac_cv_search_opendir" >&6; }
4562ac_res=$ac_cv_search_opendir
4563if test "$ac_res" != no; then :
4564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4565
4566fi
8c4e8a18 4567
e2997b73
AK
4568fi
4569
f11781c5
AK
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4571$as_echo_n "checking for ANSI C header files... " >&6; }
4572if test "${ac_cv_header_stdc+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574else
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h. */
4577#include <stdlib.h>
4578#include <stdarg.h>
4579#include <string.h>
4580#include <float.h>
e2997b73 4581
f11781c5
AK
4582int
4583main ()
4584{
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"; then :
4591 ac_cv_header_stdc=yes
e2997b73 4592else
f11781c5 4593 ac_cv_header_stdc=no
e2997b73 4594fi
f11781c5
AK
4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596
4597if test $ac_cv_header_stdc = yes; then
4598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then :
4606
e2997b73 4607else
f11781c5 4608 ac_cv_header_stdc=no
e2997b73 4609fi
f11781c5 4610rm -f conftest*
e2997b73 4611
f11781c5 4612fi
e2997b73 4613
f11781c5
AK
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h. */
4618#include <stdlib.h>
e2997b73 4619
f11781c5
AK
4620_ACEOF
4621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4623
e2997b73 4624else
f11781c5 4625 ac_cv_header_stdc=no
e2997b73 4626fi
f11781c5 4627rm -f conftest*
e2997b73 4628
e2997b73 4629fi
90c80887 4630
f11781c5
AK
4631if test $ac_cv_header_stdc = yes; then
4632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4633 if test "$cross_compiling" = yes; then :
4634 :
4635else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638#include <ctype.h>
4639#include <stdlib.h>
4640#if ((' ' & 0x0FF) == 0x020)
4641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4643#else
4644# define ISLOWER(c) \
4645 (('a' <= (c) && (c) <= 'i') \
4646 || ('j' <= (c) && (c) <= 'r') \
4647 || ('s' <= (c) && (c) <= 'z'))
4648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4649#endif
4650
4651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652int
4653main ()
4654{
4655 int i;
4656 for (i = 0; i < 256; i++)
4657 if (XOR (islower (i), ISLOWER (i))
4658 || toupper (i) != TOUPPER (i))
4659 return 2;
4660 return 0;
4661}
4662_ACEOF
4663if ac_fn_c_try_run "$LINENO"; then :
90c80887 4664
90c80887 4665else
f11781c5 4666 ac_cv_header_stdc=no
90c80887 4667fi
f11781c5
AK
4668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4669 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4670fi
90c80887 4671
90c80887 4672fi
90c80887 4673fi
f11781c5
AK
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4675$as_echo "$ac_cv_header_stdc" >&6; }
4676if test $ac_cv_header_stdc = yes; then
90c80887 4677
f11781c5 4678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4679
90c80887 4680fi
f11781c5
AK
4681
4682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4683for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4684 inttypes.h stdint.h unistd.h
4685do :
4686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4688"
4689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4690 cat >>confdefs.h <<_ACEOF
4691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4692_ACEOF
4693
90c80887 4694fi
f11781c5
AK
4695
4696done
4697
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4700$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4701if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703else
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h. */
4706#include <sys/types.h>
4707int
4708main ()
4709{
4710return makedev(0, 0);
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715if ac_fn_c_try_link "$LINENO"; then :
4716 ac_cv_header_sys_types_h_makedev=yes
4717else
4718 ac_cv_header_sys_types_h_makedev=no
90c80887 4719fi
f11781c5
AK
4720rm -f core conftest.err conftest.$ac_objext \
4721 conftest$ac_exeext conftest.$ac_ext
4722
90c80887 4723fi
f11781c5
AK
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4725$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4726
4727if test $ac_cv_header_sys_types_h_makedev = no; then
4728ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4729if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4730
4731$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4732
a946372e 4733fi
e2997b73 4734
e2997b73 4735
a946372e 4736
f11781c5
AK
4737 if test $ac_cv_header_sys_mkdev_h = no; then
4738 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4739if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4740
4741$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4742
e2997b73 4743fi
a946372e 4744
a946372e 4745
f11781c5
AK
4746 fi
4747fi
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4750$as_echo_n "checking for ANSI C header files... " >&6; }
4751if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4752 $as_echo_n "(cached) " >&6
4753else
f11781c5 4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4755/* end confdefs.h. */
f11781c5
AK
4756#include <stdlib.h>
4757#include <stdarg.h>
4758#include <string.h>
4759#include <float.h>
a946372e 4760
a946372e
AK
4761int
4762main ()
4763{
f11781c5 4764
a946372e
AK
4765 ;
4766 return 0;
4767}
4768_ACEOF
f11781c5
AK
4769if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_header_stdc=yes
e2997b73 4771else
f11781c5
AK
4772 ac_cv_header_stdc=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775
4776if test $ac_cv_header_stdc = yes; then
4777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
4780#include <string.h>
4781
4782_ACEOF
4783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4785
f11781c5
AK
4786else
4787 ac_cv_header_stdc=no
a946372e 4788fi
f11781c5 4789rm -f conftest*
e2997b73 4790
a946372e 4791fi
e2997b73 4792
f11781c5
AK
4793if test $ac_cv_header_stdc = yes; then
4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797#include <stdlib.h>
4798
4799_ACEOF
4800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4802
e2997b73 4803else
f11781c5 4804 ac_cv_header_stdc=no
e2997b73 4805fi
f11781c5 4806rm -f conftest*
e2997b73 4807
f11781c5 4808fi
a946372e 4809
f11781c5
AK
4810if test $ac_cv_header_stdc = yes; then
4811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4812 if test "$cross_compiling" = yes; then :
4813 :
4814else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817#include <ctype.h>
4818#include <stdlib.h>
4819#if ((' ' & 0x0FF) == 0x020)
4820# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4821# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822#else
4823# define ISLOWER(c) \
4824 (('a' <= (c) && (c) <= 'i') \
4825 || ('j' <= (c) && (c) <= 'r') \
4826 || ('s' <= (c) && (c) <= 'z'))
4827# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4828#endif
e2997b73 4829
f11781c5
AK
4830#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4831int
4832main ()
4833{
4834 int i;
4835 for (i = 0; i < 256; i++)
4836 if (XOR (islower (i), ISLOWER (i))
4837 || toupper (i) != TOUPPER (i))
4838 return 2;
4839 return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4843
e2997b73 4844else
f11781c5 4845 ac_cv_header_stdc=no
e2997b73 4846fi
f11781c5
AK
4847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4848 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4849fi
f11781c5 4850
e2997b73 4851fi
e2997b73 4852fi
f11781c5
AK
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4854$as_echo "$ac_cv_header_stdc" >&6; }
4855if test $ac_cv_header_stdc = yes; then
e2997b73 4856
f11781c5 4857$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4858
f11781c5 4859fi
e2997b73 4860
f11781c5
AK
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4862$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4863if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h. */
4868#include <sys/types.h>
4869#include <sys/wait.h>
4870#ifndef WEXITSTATUS
4871# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4872#endif
4873#ifndef WIFEXITED
4874# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4875#endif
e2997b73 4876
f11781c5
AK
4877int
4878main ()
4879{
4880 int s;
4881 wait (&s);
4882 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4883 ;
4884 return 0;
4885}
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_header_sys_wait_h=yes
e2997b73 4889else
f11781c5 4890 ac_cv_header_sys_wait_h=no
e2997b73 4891fi
f11781c5
AK
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4895$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4896if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4897
f11781c5 4898$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4899
d0191583 4900fi
f11781c5
AK
4901
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4903$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4904if test "${ac_cv_header_time+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
fc54be10 4906else
f11781c5 4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4908/* end confdefs.h. */
f11781c5
AK
4909#include <sys/types.h>
4910#include <sys/time.h>
4911#include <time.h>
4912
4913int
4914main ()
4915{
4916if ((struct tm *) 0)
4917return 0;
4918 ;
4919 return 0;
4920}
a946372e 4921_ACEOF
f11781c5
AK
4922if ac_fn_c_try_compile "$LINENO"; then :
4923 ac_cv_header_time=yes
a946372e 4924else
f11781c5
AK
4925 ac_cv_header_time=no
4926fi
4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4930$as_echo "$ac_cv_header_time" >&6; }
4931if test $ac_cv_header_time = yes; then
4932
4933$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4934
4935fi
4936
4937
4938for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4939 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4940 sys/wait.h time.h
4941do :
4942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4945 cat >>confdefs.h <<_ACEOF
4946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4947_ACEOF
d0191583 4948
f11781c5
AK
4949else
4950 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4951fi
4952
f11781c5 4953done
fddafd51 4954
f11781c5
AK
4955
4956case "$host_os" in
4957 linux*)
4958 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4959do :
4960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4963 cat >>confdefs.h <<_ACEOF
4964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4965_ACEOF
a946372e 4966
f11781c5
AK
4967else
4968 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4969fi
4970
f11781c5
AK
4971done
4972 ;;
4973 darwin*)
4974 for ac_header in machine/endian.h sys/disk.h
4975do :
4976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4977ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4978if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4979 cat >>confdefs.h <<_ACEOF
4980#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981_ACEOF
a946372e 4982
f11781c5
AK
4983else
4984 as_fn_error $? "bailing out" "$LINENO" 5
4985fi
a946372e 4986
f11781c5
AK
4987done
4988 ;;
a946372e 4989esac
f11781c5
AK
4990
4991for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4992 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4993 sys/types.h unistd.h
4994do :
4995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4997if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4998 cat >>confdefs.h <<_ACEOF
4999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5000_ACEOF
5001
a946372e 5002else
f11781c5 5003 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5004fi
a946372e 5005
f11781c5
AK
5006done
5007
5008for ac_header in termios.h sys/statvfs.h
5009do :
5010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5013 cat >>confdefs.h <<_ACEOF
5014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015_ACEOF
5016
a946372e
AK
5017fi
5018
5019done
5020
a946372e 5021
f11781c5
AK
5022################################################################################
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5024$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5025if test "${ac_cv_c_const+set}" = set; then :
a946372e 5026 $as_echo_n "(cached) " >&6
a946372e 5027else
f11781c5 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5029/* end confdefs.h. */
a946372e 5030
f11781c5
AK
5031int
5032main ()
5033{
5034/* FIXME: Include the comments suggested by Paul. */
5035#ifndef __cplusplus
5036 /* Ultrix mips cc rejects this. */
5037 typedef int charset[2];
5038 const charset cs;
5039 /* SunOS 4.1.1 cc rejects this. */
5040 char const *const *pcpcc;
5041 char **ppc;
5042 /* NEC SVR4.0.2 mips cc rejects this. */
5043 struct point {int x, y;};
5044 static struct point const zero = {0,0};
5045 /* AIX XL C 1.02.0.0 rejects this.
5046 It does not let you subtract one const X* pointer from another in
5047 an arm of an if-expression whose if-part is not a constant
5048 expression */
5049 const char *g = "string";
5050 pcpcc = &g + (g ? g-g : 0);
5051 /* HPUX 7.0 cc rejects these. */
5052 ++pcpcc;
5053 ppc = (char**) pcpcc;
5054 pcpcc = (char const *const *) ppc;
5055 { /* SCO 3.2v4 cc rejects this. */
5056 char *t;
5057 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5058
f11781c5
AK
5059 *t++ = 0;
5060 if (s) return 0;
5061 }
5062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5063 int x[] = {25, 17};
5064 const int *foo = &x[0];
5065 ++foo;
5066 }
5067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5068 typedef const int *iptr;
5069 iptr p = 0;
5070 ++p;
5071 }
5072 { /* AIX XL C 1.02.0.0 rejects this saying
5073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5074 struct s { int j; const int *ap[3]; };
5075 struct s *b; b->j = 5;
5076 }
5077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5078 const int foo = 10;
5079 if (!foo) return 0;
5080 }
5081 return !cs[0] && !zero.x;
5082#endif
a946372e 5083
f11781c5
AK
5084 ;
5085 return 0;
5086}
a946372e 5087_ACEOF
f11781c5
AK
5088if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_c_const=yes
a946372e 5090else
f11781c5
AK
5091 ac_cv_c_const=no
5092fi
5093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5094fi
f11781c5
AK
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5096$as_echo "$ac_cv_c_const" >&6; }
5097if test $ac_cv_c_const = no; then
a946372e 5098
f11781c5 5099$as_echo "#define const /**/" >>confdefs.h
a946372e 5100
f11781c5 5101fi
a946372e 5102
f11781c5
AK
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5104$as_echo_n "checking for inline... " >&6; }
5105if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5106 $as_echo_n "(cached) " >&6
5107else
f11781c5
AK
5108 ac_cv_c_inline=no
5109for ac_kw in inline __inline__ __inline; do
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h. */
5112#ifndef __cplusplus
5113typedef int foo_t;
5114static $ac_kw foo_t static_foo () {return 0; }
5115$ac_kw foo_t foo () {return 0; }
5116#endif
5117
5118_ACEOF
5119if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_cv_c_inline=$ac_kw
a946372e 5121fi
f11781c5
AK
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 test "$ac_cv_c_inline" != no && break
5124done
a946372e
AK
5125
5126fi
f11781c5
AK
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5128$as_echo "$ac_cv_c_inline" >&6; }
5129
5130case $ac_cv_c_inline in
5131 inline | yes) ;;
5132 *)
5133 case $ac_cv_c_inline in
5134 no) ac_val=;;
5135 *) ac_val=$ac_cv_c_inline;;
5136 esac
5137 cat >>confdefs.h <<_ACEOF
5138#ifndef __cplusplus
5139#define inline $ac_val
5140#endif
5141_ACEOF
5142 ;;
5143esac
5144
5145ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5146if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5147
5148cat >>confdefs.h <<_ACEOF
5149#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5150_ACEOF
5151
f11781c5 5152
a946372e
AK
5153fi
5154
f11781c5
AK
5155ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5156if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5157
a946372e 5158else
f11781c5
AK
5159
5160cat >>confdefs.h <<_ACEOF
5161#define off_t long int
5162_ACEOF
5163
a946372e
AK
5164fi
5165
f11781c5
AK
5166ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5167if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5168
a946372e 5169else
f11781c5
AK
5170
5171cat >>confdefs.h <<_ACEOF
5172#define pid_t int
5173_ACEOF
5174
5175fi
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5178$as_echo_n "checking return type of signal handlers... " >&6; }
5179if test "${ac_cv_type_signal+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
a946372e 5181else
f11781c5
AK
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h. */
5184#include <sys/types.h>
5185#include <signal.h>
5186
5187int
5188main ()
5189{
5190return *(signal (0, 0)) (0) == 1;
5191 ;
5192 return 0;
5193}
5194_ACEOF
5195if ac_fn_c_try_compile "$LINENO"; then :
5196 ac_cv_type_signal=int
5197else
5198 ac_cv_type_signal=void
a946372e 5199fi
f11781c5 5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5201fi
f11781c5
AK
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5203$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5204
f11781c5
AK
5205cat >>confdefs.h <<_ACEOF
5206#define RETSIGTYPE $ac_cv_type_signal
5207_ACEOF
a946372e
AK
5208
5209
f11781c5
AK
5210ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5211if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5212
a946372e 5213else
a946372e 5214
f11781c5
AK
5215cat >>confdefs.h <<_ACEOF
5216#define size_t unsigned int
5217_ACEOF
a946372e 5218
a946372e 5219fi
f11781c5
AK
5220
5221ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5222if test "x$ac_cv_type_mode_t" = x""yes; then :
5223
a946372e 5224else
f11781c5
AK
5225
5226cat >>confdefs.h <<_ACEOF
5227#define mode_t int
a946372e 5228_ACEOF
a946372e 5229
a946372e
AK
5230fi
5231
f11781c5
AK
5232ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5233case $ac_cv_c_int8_t in #(
5234 no|yes) ;; #(
5235 *)
a946372e 5236
f11781c5
AK
5237cat >>confdefs.h <<_ACEOF
5238#define int8_t $ac_cv_c_int8_t
a946372e 5239_ACEOF
f11781c5 5240;;
a946372e 5241esac
a946372e 5242
f11781c5
AK
5243ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5244case $ac_cv_c_int16_t in #(
5245 no|yes) ;; #(
5246 *)
a946372e 5247
f11781c5
AK
5248cat >>confdefs.h <<_ACEOF
5249#define int16_t $ac_cv_c_int16_t
5250_ACEOF
5251;;
5252esac
a946372e 5253
f11781c5
AK
5254ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5255case $ac_cv_c_int32_t in #(
5256 no|yes) ;; #(
5257 *)
a946372e 5258
f11781c5
AK
5259cat >>confdefs.h <<_ACEOF
5260#define int32_t $ac_cv_c_int32_t
5261_ACEOF
5262;;
a946372e 5263esac
a946372e 5264
f11781c5
AK
5265ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5266case $ac_cv_c_int64_t in #(
5267 no|yes) ;; #(
5268 *)
5269
5270cat >>confdefs.h <<_ACEOF
5271#define int64_t $ac_cv_c_int64_t
a946372e 5272_ACEOF
f11781c5
AK
5273;;
5274esac
5275
5276ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5277if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5278
5279else
a946372e 5280
f11781c5
AK
5281cat >>confdefs.h <<_ACEOF
5282#define ssize_t int
5283_ACEOF
a946372e 5284
f11781c5 5285fi
a946372e 5286
f11781c5
AK
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5288$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5289if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5290 $as_echo_n "(cached) " >&6
a946372e 5291else
f11781c5 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5293/* end confdefs.h. */
f11781c5
AK
5294#include <sys/types.h>
5295
a946372e 5296_ACEOF
f11781c5
AK
5297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "uid_t" >/dev/null 2>&1; then :
5299 ac_cv_type_uid_t=yes
a946372e 5300else
f11781c5
AK
5301 ac_cv_type_uid_t=no
5302fi
5303rm -f conftest*
a946372e 5304
a946372e 5305fi
f11781c5
AK
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5307$as_echo "$ac_cv_type_uid_t" >&6; }
5308if test $ac_cv_type_uid_t = no; then
a946372e 5309
f11781c5 5310$as_echo "#define uid_t int" >>confdefs.h
a946372e 5311
f11781c5
AK
5312
5313$as_echo "#define gid_t int" >>confdefs.h
5314
5315fi
5316
5317ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5318case $ac_cv_c_uint8_t in #(
5319 no|yes) ;; #(
5320 *)
5321
5322$as_echo "#define _UINT8_T 1" >>confdefs.h
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define uint8_t $ac_cv_c_uint8_t
a946372e 5327_ACEOF
f11781c5
AK
5328;;
5329 esac
5330
5331ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5332case $ac_cv_c_uint16_t in #(
5333 no|yes) ;; #(
5334 *)
5335
5336
5337cat >>confdefs.h <<_ACEOF
5338#define uint16_t $ac_cv_c_uint16_t
a946372e 5339_ACEOF
f11781c5
AK
5340;;
5341 esac
a946372e 5342
f11781c5
AK
5343ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5344case $ac_cv_c_uint32_t in #(
5345 no|yes) ;; #(
5346 *)
a946372e 5347
f11781c5 5348$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5349
a946372e 5350
f11781c5
AK
5351cat >>confdefs.h <<_ACEOF
5352#define uint32_t $ac_cv_c_uint32_t
5353_ACEOF
5354;;
5355 esac
5356
5357ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5358case $ac_cv_c_uint64_t in #(
5359 no|yes) ;; #(
5360 *)
5361
5362$as_echo "#define _UINT64_T 1" >>confdefs.h
5363
5364
5365cat >>confdefs.h <<_ACEOF
5366#define uint64_t $ac_cv_c_uint64_t
5367_ACEOF
5368;;
5369 esac
5370
5371ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5372if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5373
5374cat >>confdefs.h <<_ACEOF
5375#define HAVE_STRUCT_STAT_ST_RDEV 1
5376_ACEOF
5377
5378
5379fi
5380
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5382$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5383if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5384 $as_echo_n "(cached) " >&6
5385else
f11781c5
AK
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h. */
5388#include <sys/types.h>
5389#include <time.h>
5390
5391int
5392main ()
5393{
5394struct tm tm;
5395 int *p = &tm.tm_sec;
5396 return !p;
5397 ;
5398 return 0;
5399}
5400_ACEOF
5401if ac_fn_c_try_compile "$LINENO"; then :
5402 ac_cv_struct_tm=time.h
5403else
5404 ac_cv_struct_tm=sys/time.h
a946372e 5405fi
f11781c5
AK
5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5409$as_echo "$ac_cv_struct_tm" >&6; }
5410if test $ac_cv_struct_tm = sys/time.h; then
5411
5412$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5413
5414fi
f11781c5
AK
5415
5416
5417################################################################################
5418for ac_func in ftruncate gethostname getpagesize \
5419 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5420 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5421 strstr strtol strtoul uname
5422do :
5423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5425if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5426 cat >>confdefs.h <<_ACEOF
f11781c5 5427#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5428_ACEOF
5429
5430else
f11781c5 5431 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5432fi
a946372e
AK
5433done
5434
f11781c5
AK
5435for ac_func in siginterrupt
5436do :
5437 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5438if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5439 cat >>confdefs.h <<_ACEOF
5440#define HAVE_SIGINTERRUPT 1
5441_ACEOF
a946372e 5442
f11781c5
AK
5443fi
5444done
a946372e 5445
f11781c5
AK
5446# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5447# for constant arguments. Useless!
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5449$as_echo_n "checking for working alloca.h... " >&6; }
5450if test "${ac_cv_working_alloca_h+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
a946372e 5452else
f11781c5
AK
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#include <alloca.h>
5456int
5457main ()
5458{
5459char *p = (char *) alloca (2 * sizeof (int));
5460 if (p) return 0;
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465if ac_fn_c_try_link "$LINENO"; then :
5466 ac_cv_working_alloca_h=yes
a946372e 5467else
f11781c5 5468 ac_cv_working_alloca_h=no
a946372e 5469fi
f11781c5
AK
5470rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
a946372e 5472fi
f11781c5
AK
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5474$as_echo "$ac_cv_working_alloca_h" >&6; }
5475if test $ac_cv_working_alloca_h = yes; then
a946372e 5476
f11781c5 5477$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5478
a946372e 5479fi
a946372e 5480
f11781c5
AK
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5482$as_echo_n "checking for alloca... " >&6; }
5483if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5484 $as_echo_n "(cached) " >&6
a946372e 5485else
f11781c5 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5487/* end confdefs.h. */
f11781c5
AK
5488#ifdef __GNUC__
5489# define alloca __builtin_alloca
5490#else
5491# ifdef _MSC_VER
5492# include <malloc.h>
5493# define alloca _alloca
5494# else
5495# ifdef HAVE_ALLOCA_H
5496# include <alloca.h>
5497# else
5498# ifdef _AIX
5499 #pragma alloca
5500# else
5501# ifndef alloca /* predefined by HP cc +Olibcalls */
5502char *alloca ();
5503# endif
5504# endif
5505# endif
5506# endif
5507#endif
a946372e 5508
f11781c5
AK
5509int
5510main ()
5511{
5512char *p = (char *) alloca (1);
5513 if (p) return 0;
5514 ;
5515 return 0;
5516}
a946372e 5517_ACEOF
f11781c5
AK
5518if ac_fn_c_try_link "$LINENO"; then :
5519 ac_cv_func_alloca_works=yes
a946372e 5520else
f11781c5 5521 ac_cv_func_alloca_works=no
a946372e 5522fi
f11781c5
AK
5523rm -f core conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5527$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5528
f11781c5 5529if test $ac_cv_func_alloca_works = yes; then
a946372e 5530
f11781c5 5531$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5532
a946372e 5533else
f11781c5
AK
5534 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5535# that cause trouble. Some versions do not even contain alloca or
5536# contain a buggy version. If you still want to use their alloca,
5537# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5538
f11781c5 5539ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5540
f11781c5 5541$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5542
a946372e 5543
f11781c5
AK
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5545$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5546if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5547 $as_echo_n "(cached) " >&6
a946372e 5548else
f11781c5 5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5550/* end confdefs.h. */
f11781c5
AK
5551#if defined CRAY && ! defined CRAY2
5552webecray
5553#else
5554wenotbecray
5555#endif
5556
a946372e 5557_ACEOF
f11781c5
AK
5558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5559 $EGREP "webecray" >/dev/null 2>&1; then :
5560 ac_cv_os_cray=yes
a946372e 5561else
f11781c5 5562 ac_cv_os_cray=no
a946372e 5563fi
f11781c5 5564rm -f conftest*
a946372e 5565
f11781c5
AK
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5568$as_echo "$ac_cv_os_cray" >&6; }
5569if test $ac_cv_os_cray = yes; then
5570 for ac_func in _getb67 GETB67 getb67; do
5571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5572ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5573if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5574
f11781c5
AK
5575cat >>confdefs.h <<_ACEOF
5576#define CRAY_STACKSEG_END $ac_func
a946372e 5577_ACEOF
a946372e 5578
f11781c5 5579 break
a946372e
AK
5580fi
5581
f11781c5
AK
5582 done
5583fi
a946372e 5584
f11781c5
AK
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5586$as_echo_n "checking stack direction for C alloca... " >&6; }
5587if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5588 $as_echo_n "(cached) " >&6
5589else
f11781c5
AK
5590 if test "$cross_compiling" = yes; then :
5591 ac_cv_c_stack_direction=0
5592else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h. */
5595$ac_includes_default
5596int
5597find_stack_direction ()
5598{
5599 static char *addr = 0;
5600 auto char dummy;
5601 if (addr == 0)
5602 {
5603 addr = &dummy;
5604 return find_stack_direction ();
5605 }
5606 else
5607 return (&dummy > addr) ? 1 : -1;
5608}
5609
5610int
5611main ()
5612{
5613 return find_stack_direction () < 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_run "$LINENO"; then :
5617 ac_cv_c_stack_direction=1
5618else
5619 ac_cv_c_stack_direction=-1
5620fi
5621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5622 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5623fi
a946372e
AK
5624
5625fi
f11781c5
AK
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5627$as_echo "$ac_cv_c_stack_direction" >&6; }
5628cat >>confdefs.h <<_ACEOF
5629#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5630_ACEOF
5631
f11781c5 5632
a946372e
AK
5633fi
5634
f11781c5
AK
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5636$as_echo_n "checking whether closedir returns void... " >&6; }
5637if test "${ac_cv_func_closedir_void+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test "$cross_compiling" = yes; then :
5641 ac_cv_func_closedir_void=yes
5642else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645$ac_includes_default
5646#include <$ac_header_dirent>
5647#ifndef __cplusplus
5648int closedir ();
5649#endif
a946372e 5650
f11781c5
AK
5651int
5652main ()
5653{
5654return closedir (opendir (".")) != 0;
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659if ac_fn_c_try_run "$LINENO"; then :
5660 ac_cv_func_closedir_void=no
a946372e 5661else
f11781c5 5662 ac_cv_func_closedir_void=yes
a946372e 5663fi
f11781c5
AK
5664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5665 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5666fi
5667
f11781c5
AK
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5670$as_echo "$ac_cv_func_closedir_void" >&6; }
5671if test $ac_cv_func_closedir_void = yes; then
a946372e 5672
f11781c5 5673$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5674
a946372e
AK
5675fi
5676
f11781c5
AK
5677for ac_header in unistd.h
5678do :
5679 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5680if test "x$ac_cv_header_unistd_h" = x""yes; then :
5681 cat >>confdefs.h <<_ACEOF
5682#define HAVE_UNISTD_H 1
5683_ACEOF
a946372e 5684
f11781c5 5685fi
a946372e 5686
f11781c5 5687done
a946372e 5688
f11781c5
AK
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5690$as_echo_n "checking for working chown... " >&6; }
5691if test "${ac_cv_func_chown_works+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
a946372e 5693else
f11781c5
AK
5694 if test "$cross_compiling" = yes; then :
5695 ac_cv_func_chown_works=no
a946372e 5696else
f11781c5
AK
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h. */
5699$ac_includes_default
5700#include <fcntl.h>
a946372e 5701
f11781c5
AK
5702int
5703main ()
5704{
5705 char *f = "conftest.chown";
5706 struct stat before, after;
a946372e 5707
f11781c5
AK
5708 if (creat (f, 0600) < 0)
5709 return 1;
5710 if (stat (f, &before) < 0)
5711 return 1;
5712 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5713 return 1;
5714 if (stat (f, &after) < 0)
5715 return 1;
5716 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5717
f11781c5
AK
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_run "$LINENO"; then :
5723 ac_cv_func_chown_works=yes
a946372e 5724else
f11781c5 5725 ac_cv_func_chown_works=no
a946372e 5726fi
f11781c5
AK
5727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5728 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5729fi
5730
f11781c5 5731rm -f conftest.chown
a946372e 5732
f11781c5
AK
5733fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5735$as_echo "$ac_cv_func_chown_works" >&6; }
5736if test $ac_cv_func_chown_works = yes; then
a946372e 5737
f11781c5 5738$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5739
a946372e 5740fi
a946372e 5741
f11781c5
AK
5742for ac_header in vfork.h
5743do :
5744 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5745if test "x$ac_cv_header_vfork_h" = x""yes; then :
5746 cat >>confdefs.h <<_ACEOF
5747#define HAVE_VFORK_H 1
5748_ACEOF
a946372e 5749
f11781c5 5750fi
a946372e 5751
f11781c5 5752done
a946372e 5753
f11781c5
AK
5754for ac_func in fork vfork
5755do :
5756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5757ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5758if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5759 cat >>confdefs.h <<_ACEOF
5760#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5761_ACEOF
a946372e 5762
f11781c5
AK
5763fi
5764done
a946372e 5765
f11781c5
AK
5766if test "x$ac_cv_func_fork" = xyes; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5768$as_echo_n "checking for working fork... " >&6; }
5769if test "${ac_cv_func_fork_works+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771else
5772 if test "$cross_compiling" = yes; then :
5773 ac_cv_func_fork_works=cross
5774else
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h. */
5777$ac_includes_default
5778int
5779main ()
5780{
a946372e 5781
f11781c5
AK
5782 /* By Ruediger Kuhlmann. */
5783 return fork () < 0;
a946372e 5784
f11781c5
AK
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789if ac_fn_c_try_run "$LINENO"; then :
5790 ac_cv_func_fork_works=yes
a946372e 5791else
f11781c5
AK
5792 ac_cv_func_fork_works=no
5793fi
5794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5795 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5796fi
a946372e 5797
f11781c5
AK
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5800$as_echo "$ac_cv_func_fork_works" >&6; }
5801
a946372e 5802else
f11781c5 5803 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5804fi
f11781c5
AK
5805if test "x$ac_cv_func_fork_works" = xcross; then
5806 case $host in
5807 *-*-amigaos* | *-*-msdosdjgpp*)
5808 # Override, as these systems have only a dummy fork() stub
5809 ac_cv_func_fork_works=no
5810 ;;
5811 *)
5812 ac_cv_func_fork_works=yes
5813 ;;
5814 esac
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5816$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5817fi
f11781c5
AK
5818ac_cv_func_vfork_works=$ac_cv_func_vfork
5819if test "x$ac_cv_func_vfork" = xyes; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5821$as_echo_n "checking for working vfork... " >&6; }
5822if test "${ac_cv_func_vfork_works+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5824else
5825 if test "$cross_compiling" = yes; then :
5826 ac_cv_func_vfork_works=cross
5827else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h. */
5830/* Thanks to Paul Eggert for this test. */
5831$ac_includes_default
5832#include <sys/wait.h>
5833#ifdef HAVE_VFORK_H
5834# include <vfork.h>
5835#endif
5836/* On some sparc systems, changes by the child to local and incoming
5837 argument registers are propagated back to the parent. The compiler
5838 is told about this with #include <vfork.h>, but some compilers
5839 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5840 static variable whose address is put into a register that is
5841 clobbered by the vfork. */
5842static void
5843#ifdef __cplusplus
5844sparc_address_test (int arg)
5845# else
5846sparc_address_test (arg) int arg;
5847#endif
5848{
5849 static pid_t child;
5850 if (!child) {
5851 child = vfork ();
5852 if (child < 0) {
5853 perror ("vfork");
5854 _exit(2);
5855 }
5856 if (!child) {
5857 arg = getpid();
5858 write(-1, "", 0);
5859 _exit (arg);
5860 }
5861 }
5862}
a946372e 5863
f11781c5
AK
5864int
5865main ()
5866{
5867 pid_t parent = getpid ();
5868 pid_t child;
a946372e 5869
f11781c5 5870 sparc_address_test (0);
a946372e 5871
f11781c5 5872 child = vfork ();
a946372e 5873
f11781c5
AK
5874 if (child == 0) {
5875 /* Here is another test for sparc vfork register problems. This
5876 test uses lots of local variables, at least as many local
5877 variables as main has allocated so far including compiler
5878 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5879 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5880 reuse the register of parent for one of the local variables,
5881 since it will think that parent can't possibly be used any more
5882 in this routine. Assigning to the local variable will thus
5883 munge parent in the parent process. */
5884 pid_t
5885 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5886 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5887 /* Convince the compiler that p..p7 are live; otherwise, it might
5888 use the same hardware register for all 8 local variables. */
5889 if (p != p1 || p != p2 || p != p3 || p != p4
5890 || p != p5 || p != p6 || p != p7)
5891 _exit(1);
a946372e 5892
f11781c5
AK
5893 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5894 from child file descriptors. If the child closes a descriptor
5895 before it execs or exits, this munges the parent's descriptor
5896 as well. Test for this by closing stdout in the child. */
5897 _exit(close(fileno(stdout)) != 0);
5898 } else {
5899 int status;
5900 struct stat st;
5901
5902 while (wait(&status) != child)
5903 ;
5904 return (
5905 /* Was there some problem with vforking? */
5906 child < 0
5907
5908 /* Did the child fail? (This shouldn't happen.) */
5909 || status
5910
5911 /* Did the vfork/compiler bug occur? */
5912 || parent != getpid()
5913
5914 /* Did the file descriptor bug occur? */
5915 || fstat(fileno(stdout), &st) != 0
5916 );
5917 }
5918}
5919_ACEOF
5920if ac_fn_c_try_run "$LINENO"; then :
5921 ac_cv_func_vfork_works=yes
a946372e 5922else
f11781c5 5923 ac_cv_func_vfork_works=no
a946372e 5924fi
f11781c5
AK
5925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5926 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5927fi
f11781c5 5928
a946372e 5929fi
f11781c5
AK
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5931$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5932
f11781c5
AK
5933fi;
5934if test "x$ac_cv_func_fork_works" = xcross; then
5935 ac_cv_func_vfork_works=$ac_cv_func_vfork
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5937$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5938fi
a946372e 5939
f11781c5 5940if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5941
f11781c5 5942$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5943
a946372e 5944else
a946372e 5945
f11781c5
AK
5946$as_echo "#define vfork fork" >>confdefs.h
5947
a946372e 5948fi
f11781c5 5949if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5950
f11781c5 5951$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5952
a946372e 5953fi
f11781c5
AK
5954
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5956$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5957if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
a946372e 5959else
f11781c5
AK
5960 rm -f conftest.sym conftest.file
5961echo >conftest.file
5962if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5963 if test "$cross_compiling" = yes; then :
5964 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5965else
f11781c5 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5967/* end confdefs.h. */
f11781c5
AK
5968$ac_includes_default
5969int
5970main ()
5971{
5972struct stat sbuf;
5973 /* Linux will dereference the symlink and fail, as required by POSIX.
5974 That is better in the sense that it means we will not
5975 have to compile and use the lstat wrapper. */
5976 return lstat ("conftest.sym/", &sbuf) == 0;
5977 ;
5978 return 0;
5979}
a946372e 5980_ACEOF
f11781c5
AK
5981if ac_fn_c_try_run "$LINENO"; then :
5982 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5983else
f11781c5 5984 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5985fi
f11781c5
AK
5986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5987 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5988fi
a946372e 5989
a946372e 5990else
f11781c5
AK
5991 # If the `ln -s' command failed, then we probably don't even
5992 # have an lstat function.
5993 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5994fi
f11781c5 5995rm -f conftest.sym conftest.file
a946372e 5996
f11781c5
AK
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5999$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 6000
f11781c5 6001test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 6002
f11781c5
AK
6003cat >>confdefs.h <<_ACEOF
6004#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6005_ACEOF
a946372e 6006
a946372e 6007
f11781c5
AK
6008if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6009 case " $LIBOBJS " in
6010 *" lstat.$ac_objext "* ) ;;
6011 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6012 ;;
6013esac
a946372e 6014
f11781c5 6015fi
a946372e 6016
f11781c5
AK
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6018$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6019if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
a946372e 6021else
f11781c5
AK
6022 if test "$cross_compiling" = yes; then :
6023 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6024else
f11781c5
AK
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h. */
6027$ac_includes_default
6028int
6029main ()
6030{
6031struct stat sbuf;
6032 return lstat ("", &sbuf) == 0;
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_run "$LINENO"; then :
6038 ac_cv_func_lstat_empty_string_bug=no
6039else
6040 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6041fi
f11781c5
AK
6042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6043 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6044fi
6045
f11781c5
AK
6046fi
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6048$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6049if test $ac_cv_func_lstat_empty_string_bug = yes; then
6050 case " $LIBOBJS " in
6051 *" lstat.$ac_objext "* ) ;;
6052 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6053 ;;
6054esac
a946372e
AK
6055
6056
f11781c5
AK
6057cat >>confdefs.h <<_ACEOF
6058#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6059_ACEOF
a946372e 6060
a946372e 6061fi
a946372e 6062
f11781c5
AK
6063for ac_header in stdlib.h
6064do :
6065 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6066if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6067 cat >>confdefs.h <<_ACEOF
6068#define HAVE_STDLIB_H 1
6069_ACEOF
6070
a946372e
AK
6071fi
6072
f11781c5 6073done
a946372e 6074
f11781c5
AK
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6076$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6077if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079else
6080 if test "$cross_compiling" = yes; then :
6081 ac_cv_func_malloc_0_nonnull=no
6082else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h. */
6085#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6086# include <stdlib.h>
6087#else
6088char *malloc ();
6089#endif
a946372e 6090
f11781c5
AK
6091int
6092main ()
6093{
6094return ! malloc (0);
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099if ac_fn_c_try_run "$LINENO"; then :
6100 ac_cv_func_malloc_0_nonnull=yes
a946372e 6101else
f11781c5 6102 ac_cv_func_malloc_0_nonnull=no
a946372e 6103fi
f11781c5
AK
6104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6105 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6106fi
f11781c5 6107
a946372e 6108fi
f11781c5
AK
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6110$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6111if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6112
f11781c5 6113$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6114
f11781c5
AK
6115else
6116 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6117
f11781c5
AK
6118 case " $LIBOBJS " in
6119 *" malloc.$ac_objext "* ) ;;
6120 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6121 ;;
6122esac
6123
6124
6125$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6126
a946372e 6127fi
a946372e 6128
a946372e 6129
f11781c5
AK
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6131$as_echo_n "checking for working memcmp... " >&6; }
6132if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6133 $as_echo_n "(cached) " >&6
a946372e 6134else
f11781c5
AK
6135 if test "$cross_compiling" = yes; then :
6136 ac_cv_func_memcmp_working=no
6137else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6139/* end confdefs.h. */
6140$ac_includes_default
f11781c5
AK
6141int
6142main ()
6143{
a946372e 6144
f11781c5
AK
6145 /* Some versions of memcmp are not 8-bit clean. */
6146 char c0 = '\100', c1 = '\200', c2 = '\201';
6147 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6148 return 1;
a946372e 6149
f11781c5
AK
6150 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6151 or more and with at least one buffer not starting on a 4-byte boundary.
6152 William Lewis provided this test program. */
6153 {
6154 char foo[21];
6155 char bar[21];
6156 int i;
6157 for (i = 0; i < 4; i++)
6158 {
6159 char *a = foo + i;
6160 char *b = bar + i;
6161 strcpy (a, "--------01111111");
6162 strcpy (b, "--------10000000");
6163 if (memcmp (a, b, 16) >= 0)
6164 return 1;
6165 }
6166 return 0;
6167 }
a946372e 6168
f11781c5
AK
6169 ;
6170 return 0;
6171}
a946372e 6172_ACEOF
f11781c5
AK
6173if ac_fn_c_try_run "$LINENO"; then :
6174 ac_cv_func_memcmp_working=yes
a946372e 6175else
f11781c5
AK
6176 ac_cv_func_memcmp_working=no
6177fi
6178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6179 conftest.$ac_objext conftest.beam conftest.$ac_ext
6180fi
a946372e 6181
a946372e 6182fi
f11781c5
AK
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6184$as_echo "$ac_cv_func_memcmp_working" >&6; }
6185test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6186 *" memcmp.$ac_objext "* ) ;;
6187 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6188 ;;
6189esac
a946372e 6190
a946372e 6191
a946372e 6192
a946372e 6193
f11781c5
AK
6194
6195 for ac_header in $ac_header_list
6196do :
6197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6198ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6199"
6200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6201 cat >>confdefs.h <<_ACEOF
6202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203_ACEOF
6204
a946372e
AK
6205fi
6206
6207done
6208
a946372e 6209
f11781c5
AK
6210
6211
6212
6213
6214
6215
6216for ac_func in getpagesize
6217do :
6218 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6219if test "x$ac_cv_func_getpagesize" = x""yes; then :
6220 cat >>confdefs.h <<_ACEOF
6221#define HAVE_GETPAGESIZE 1
6222_ACEOF
6223
a946372e 6224fi
f11781c5
AK
6225done
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6228$as_echo_n "checking for working mmap... " >&6; }
6229if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
a946372e 6231else
f11781c5
AK
6232 if test "$cross_compiling" = yes; then :
6233 ac_cv_func_mmap_fixed_mapped=no
6234else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6236/* end confdefs.h. */
6237$ac_includes_default
f11781c5
AK
6238/* malloc might have been renamed as rpl_malloc. */
6239#undef malloc
6240
6241/* Thanks to Mike Haertel and Jim Avera for this test.
6242 Here is a matrix of mmap possibilities:
6243 mmap private not fixed
6244 mmap private fixed at somewhere currently unmapped
6245 mmap private fixed at somewhere already mapped
6246 mmap shared not fixed
6247 mmap shared fixed at somewhere currently unmapped
6248 mmap shared fixed at somewhere already mapped
6249 For private mappings, we should verify that changes cannot be read()
6250 back from the file, nor mmap's back from the file at a different
6251 address. (There have been systems where private was not correctly
6252 implemented like the infamous i386 svr4.0, and systems where the
6253 VM page cache was not coherent with the file system buffer cache
6254 like early versions of FreeBSD and possibly contemporary NetBSD.)
6255 For shared mappings, we should conversely verify that changes get
6256 propagated back to all the places they're supposed to be.
6257
6258 Grep wants private fixed already mapped.
6259 The main things grep needs to know about mmap are:
6260 * does it exist and is it safe to write into the mmap'd area
6261 * how to use it (BSD variants) */
6262
6263#include <fcntl.h>
6264#include <sys/mman.h>
6265
6266#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6267char *malloc ();
6268#endif
6269
6270/* This mess was copied from the GNU getpagesize.h. */
6271#ifndef HAVE_GETPAGESIZE
6272# ifdef _SC_PAGESIZE
6273# define getpagesize() sysconf(_SC_PAGESIZE)
6274# else /* no _SC_PAGESIZE */
6275# ifdef HAVE_SYS_PARAM_H
6276# include <sys/param.h>
6277# ifdef EXEC_PAGESIZE
6278# define getpagesize() EXEC_PAGESIZE
6279# else /* no EXEC_PAGESIZE */
6280# ifdef NBPG
6281# define getpagesize() NBPG * CLSIZE
6282# ifndef CLSIZE
6283# define CLSIZE 1
6284# endif /* no CLSIZE */
6285# else /* no NBPG */
6286# ifdef NBPC
6287# define getpagesize() NBPC
6288# else /* no NBPC */
6289# ifdef PAGESIZE
6290# define getpagesize() PAGESIZE
6291# endif /* PAGESIZE */
6292# endif /* no NBPC */
6293# endif /* no NBPG */
6294# endif /* no EXEC_PAGESIZE */
6295# else /* no HAVE_SYS_PARAM_H */
6296# define getpagesize() 8192 /* punt totally */
6297# endif /* no HAVE_SYS_PARAM_H */
6298# endif /* no _SC_PAGESIZE */
6299
6300#endif /* no HAVE_GETPAGESIZE */
6301
6302int
6303main ()
6304{
6305 char *data, *data2, *data3;
6306 const char *cdata2;
6307 int i, pagesize;
6308 int fd, fd2;
6309
6310 pagesize = getpagesize ();
6311
6312 /* First, make a file with some known garbage in it. */
6313 data = (char *) malloc (pagesize);
6314 if (!data)
6315 return 1;
6316 for (i = 0; i < pagesize; ++i)
6317 *(data + i) = rand ();
6318 umask (0);
6319 fd = creat ("conftest.mmap", 0600);
6320 if (fd < 0)
6321 return 2;
6322 if (write (fd, data, pagesize) != pagesize)
6323 return 3;
6324 close (fd);
6325
6326 /* Next, check that the tail of a page is zero-filled. File must have
6327 non-zero length, otherwise we risk SIGBUS for entire page. */
6328 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6329 if (fd2 < 0)
6330 return 4;
6331 cdata2 = "";
6332 if (write (fd2, cdata2, 1) != 1)
6333 return 5;
6334 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6335 if (data2 == MAP_FAILED)
6336 return 6;
6337 for (i = 0; i < pagesize; ++i)
6338 if (*(data2 + i))
6339 return 7;
6340 close (fd2);
6341 if (munmap (data2, pagesize))
6342 return 8;
6343
6344 /* Next, try to mmap the file at a fixed address which already has
6345 something else allocated at it. If we can, also make sure that
6346 we see the same garbage. */
6347 fd = open ("conftest.mmap", O_RDWR);
6348 if (fd < 0)
6349 return 9;
6350 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6351 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6352 return 10;
6353 for (i = 0; i < pagesize; ++i)
6354 if (*(data + i) != *(data2 + i))
6355 return 11;
6356
6357 /* Finally, make sure that changes to the mapped area do not
6358 percolate back to the file as seen by read(). (This is a bug on
6359 some variants of i386 svr4.0.) */
6360 for (i = 0; i < pagesize; ++i)
6361 *(data2 + i) = *(data2 + i) + 1;
6362 data3 = (char *) malloc (pagesize);
6363 if (!data3)
6364 return 12;
6365 if (read (fd, data3, pagesize) != pagesize)
6366 return 13;
6367 for (i = 0; i < pagesize; ++i)
6368 if (*(data + i) != *(data3 + i))
6369 return 14;
6370 close (fd);
6371 return 0;
6372}
a946372e 6373_ACEOF
f11781c5
AK
6374if ac_fn_c_try_run "$LINENO"; then :
6375 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6376else
f11781c5
AK
6377 ac_cv_func_mmap_fixed_mapped=no
6378fi
6379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6380 conftest.$ac_objext conftest.beam conftest.$ac_ext
6381fi
a946372e 6382
a946372e 6383fi
f11781c5
AK
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6385$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6386if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6387
f11781c5 6388$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6389
f11781c5
AK
6390fi
6391rm -f conftest.mmap conftest.txt
6392
6393for ac_header in stdlib.h
6394do :
6395 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6396if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6397 cat >>confdefs.h <<_ACEOF
6398#define HAVE_STDLIB_H 1
a946372e 6399_ACEOF
f11781c5
AK
6400
6401fi
6402
6403done
6404
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6406$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6407if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6409else
6410 if test "$cross_compiling" = yes; then :
6411 ac_cv_func_realloc_0_nonnull=no
6412else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6414/* end confdefs.h. */
f11781c5
AK
6415#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6416# include <stdlib.h>
6417#else
6418char *realloc ();
6419#endif
6420
6421int
6422main ()
6423{
6424return ! realloc (0, 0);
6425 ;
6426 return 0;
6427}
a946372e 6428_ACEOF
f11781c5
AK
6429if ac_fn_c_try_run "$LINENO"; then :
6430 ac_cv_func_realloc_0_nonnull=yes
a946372e 6431else
f11781c5
AK
6432 ac_cv_func_realloc_0_nonnull=no
6433fi
6434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6435 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6436fi
6437
f11781c5
AK
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6440$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6441if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6442
f11781c5 6443$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6444
a946372e 6445else
f11781c5
AK
6446 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6447
6448 case " $LIBOBJS " in
6449 *" realloc.$ac_objext "* ) ;;
6450 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6451 ;;
6452esac
a946372e 6453
a946372e 6454
f11781c5
AK
6455$as_echo "#define realloc rpl_realloc" >>confdefs.h
6456
a946372e
AK
6457fi
6458
a946372e 6459
f11781c5
AK
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6461$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6462if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6463 $as_echo_n "(cached) " >&6
a946372e 6464else
f11781c5
AK
6465 if test "$cross_compiling" = yes; then :
6466 ac_cv_func_stat_empty_string_bug=yes
6467else
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h. */
6470$ac_includes_default
6471int
6472main ()
6473{
6474struct stat sbuf;
6475 return stat ("", &sbuf) == 0;
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480if ac_fn_c_try_run "$LINENO"; then :
6481 ac_cv_func_stat_empty_string_bug=no
6482else
6483 ac_cv_func_stat_empty_string_bug=yes
a946372e 6484fi
f11781c5
AK
6485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6486 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6487fi
6488
8c4e8a18 6489fi
f11781c5
AK
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6491$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6492if test $ac_cv_func_stat_empty_string_bug = yes; then
6493 case " $LIBOBJS " in
6494 *" stat.$ac_objext "* ) ;;
6495 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6496 ;;
6497esac
8c4e8a18
FDN
6498
6499
6500cat >>confdefs.h <<_ACEOF
f11781c5 6501#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6502_ACEOF
6503
6504fi
6505
f11781c5
AK
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6507$as_echo_n "checking for working strtod... " >&6; }
6508if test "${ac_cv_func_strtod+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
66fd4529 6510else
f11781c5
AK
6511 if test "$cross_compiling" = yes; then :
6512 ac_cv_func_strtod=no
6513else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h. */
66fd4529 6516
f11781c5
AK
6517$ac_includes_default
6518#ifndef strtod
6519double strtod ();
6520#endif
6521int
6522main()
6523{
6524 {
6525 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6526 char *string = " +69";
6527 char *term;
6528 double value;
6529 value = strtod (string, &term);
6530 if (value != 69 || term != (string + 4))
6531 return 1;
6532 }
66fd4529 6533
f11781c5
AK
6534 {
6535 /* Under Solaris 2.4, strtod returns the wrong value for the
6536 terminating character under some conditions. */
6537 char *string = "NaN";
6538 char *term;
6539 strtod (string, &term);
6540 if (term != string && *(term - 1) == 0)
6541 return 1;
6542 }
6543 return 0;
6544}
66fd4529 6545
f11781c5
AK
6546_ACEOF
6547if ac_fn_c_try_run "$LINENO"; then :
6548 ac_cv_func_strtod=yes
66fd4529 6549else
f11781c5
AK
6550 ac_cv_func_strtod=no
6551fi
6552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6553 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6554fi
6555
f11781c5
AK
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6558$as_echo "$ac_cv_func_strtod" >&6; }
6559if test $ac_cv_func_strtod = no; then
6560 case " $LIBOBJS " in
6561 *" strtod.$ac_objext "* ) ;;
6562 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6563 ;;
6564esac
71082be4 6565
f11781c5
AK
6566ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6567if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6568
66fd4529 6569fi
a946372e 6570
f11781c5
AK
6571if test $ac_cv_func_pow = no; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6573$as_echo_n "checking for pow in -lm... " >&6; }
6574if test "${ac_cv_lib_m_pow+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576else
6577 ac_check_lib_save_LIBS=$LIBS
6578LIBS="-lm $LIBS"
6579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h. */
90c80887 6581
f11781c5
AK
6582/* Override any GCC internal prototype to avoid an error.
6583 Use char because int might match the return type of a GCC
6584 builtin and then its argument prototype would still apply. */
6585#ifdef __cplusplus
6586extern "C"
6587#endif
6588char pow ();
6589int
6590main ()
6591{
6592return pow ();
6593 ;
6594 return 0;
6595}
6596_ACEOF
6597if ac_fn_c_try_link "$LINENO"; then :
6598 ac_cv_lib_m_pow=yes
90c80887 6599else
f11781c5 6600 ac_cv_lib_m_pow=no
90c80887 6601fi
f11781c5
AK
6602rm -f core conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604LIBS=$ac_check_lib_save_LIBS
90c80887 6605fi
f11781c5
AK
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6607$as_echo "$ac_cv_lib_m_pow" >&6; }
6608if test "x$ac_cv_lib_m_pow" = x""yes; then :
6609 POW_LIB=-lm
90c80887 6610else
f11781c5
AK
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6612$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6613fi
f11781c5 6614
90c80887
AK
6615fi
6616
f11781c5
AK
6617fi
6618
6619for ac_func in vprintf
6620do :
6621 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6622if test "x$ac_cv_func_vprintf" = x""yes; then :
6623 cat >>confdefs.h <<_ACEOF
6624#define HAVE_VPRINTF 1
6625_ACEOF
90c80887 6626
f11781c5
AK
6627ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6628if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6629
f11781c5 6630$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6631
90c80887 6632fi
90c80887 6633
f11781c5
AK
6634fi
6635done
90c80887 6636
90c80887 6637
90c80887 6638
f11781c5
AK
6639################################################################################
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6641$as_echo_n "checking whether to use static linking... " >&6; }
6642# Check whether --enable-static_link was given.
6643if test "${enable_static_link+set}" = set; then :
6644 enableval=$enable_static_link; STATIC_LINK=$enableval
6645else
6646 STATIC_LINK=no
6647fi
90c80887 6648
f11781c5
AK
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6650$as_echo "$STATIC_LINK" >&6; }
90c80887 6651
f11781c5 6652################################################################################
90c80887 6653
90c80887 6654
f11781c5
AK
6655################################################################################
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6657$as_echo_n "checking file owner... " >&6; }
90c80887 6658
f11781c5
AK
6659# Check whether --with-user was given.
6660if test "${with_user+set}" = set; then :
6661 withval=$with_user; OWNER=$withval
6662fi
90c80887 6663
f11781c5
AK
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6665$as_echo "$OWNER" >&6; }
90c80887 6666
f11781c5
AK
6667if test x$OWNER != x; then
6668 INSTALL="$INSTALL -o $OWNER"
90c80887 6669fi
a946372e 6670
f11781c5
AK
6671################################################################################
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6673$as_echo_n "checking group owner... " >&6; }
a946372e 6674
f11781c5
AK
6675# Check whether --with-group was given.
6676if test "${with_group+set}" = set; then :
6677 withval=$with_group; GROUP=$withval
a946372e 6678fi
f11781c5
AK
6679
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6681$as_echo "$GROUP" >&6; }
6682
6683if test x$GROUP != x; then
6684 INSTALL="$INSTALL -g $GROUP"
a946372e 6685fi
f11781c5
AK
6686
6687################################################################################
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6689$as_echo_n "checking device node uid... " >&6; }
6690
6691
6692# Check whether --with-device-uid was given.
6693if test "${with_device_uid+set}" = set; then :
6694 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6695else
f11781c5 6696 DM_DEVICE_UID=0
a946372e
AK
6697fi
6698
f11781c5
AK
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6700$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6701
f11781c5
AK
6702################################################################################
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6704$as_echo_n "checking device node gid... " >&6; }
a946372e 6705
a946372e 6706
f11781c5
AK
6707# Check whether --with-device-gid was given.
6708if test "${with_device_gid+set}" = set; then :
6709 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6710else
f11781c5 6711 DM_DEVICE_GID=0
a946372e 6712fi
a946372e 6713
f11781c5
AK
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6715$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6716
f11781c5
AK
6717################################################################################
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6719$as_echo_n "checking device node mode... " >&6; }
90c80887 6720
90c80887 6721
f11781c5
AK
6722# Check whether --with-device-mode was given.
6723if test "${with_device_mode+set}" = set; then :
6724 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6725else
6726 DM_DEVICE_MODE=0600
6727fi
90c80887 6728
f11781c5
AK
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6730$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6731
d0df875d
ZK
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6733$as_echo_n "checking when to create device nodes... " >&6; }
6734
6735# Check whether --with-device-nodes-on was given.
6736if test "${with_device_nodes_on+set}" = set; then :
6737 withval=$with_device_nodes_on; ADD_NODE=$withval
6738else
6739 ADD_NODE=resume
6740fi
6741
6742case "$ADD_NODE" in
6743 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6744 create) add_on=DM_ADD_NODE_ON_CREATE;;
6745 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6746esac
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6748$as_echo "on $ADD_NODE" >&6; }
6749
6750cat >>confdefs.h <<_ACEOF
6751#define DEFAULT_DM_ADD_NODE $add_on
6752_ACEOF
6753
6754
f11781c5
AK
6755################################################################################
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6757$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6758# Check whether --enable-lvm1_fallback was given.
6759if test "${enable_lvm1_fallback+set}" = set; then :
6760 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6761else
6762 LVM1_FALLBACK=no
6763fi
90c80887 6764
f11781c5
AK
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6766$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6767
f11781c5 6768if test x$LVM1_FALLBACK = xyes; then
90c80887 6769
f11781c5 6770$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6771
f11781c5 6772fi
90c80887 6773
f11781c5
AK
6774################################################################################
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6776$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6777
6778# Check whether --with-lvm1 was given.
6779if test "${with_lvm1+set}" = set; then :
6780 withval=$with_lvm1; LVM1=$withval
a946372e 6781else
f11781c5 6782 LVM1=internal
a946372e 6783fi
f11781c5
AK
6784
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6786$as_echo "$LVM1" >&6; }
6787
6788if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6789 then as_fn_error $? "--with-lvm1 parameter invalid
6790" "$LINENO" 5
6791fi;
6792
6793if test x$LVM1 = xinternal; then
6794
6795$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6796
a946372e
AK
6797fi
6798
6799################################################################################
f11781c5
AK
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6801$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6802
6803# Check whether --with-pool was given.
6804if test "${with_pool+set}" = set; then :
6805 withval=$with_pool; POOL=$withval
a946372e 6806else
f11781c5 6807 POOL=internal
a946372e
AK
6808fi
6809
f11781c5
AK
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6811$as_echo "$POOL" >&6; }
6812
6813if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6814 then as_fn_error $? "--with-pool parameter invalid
6815" "$LINENO" 5
6816fi;
6817
6818if test x$POOL = xinternal; then
6819
6820$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6821
a946372e
AK
6822fi
6823
6824################################################################################
f11781c5
AK
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6826$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6827
f11781c5
AK
6828# Check whether --with-cluster was given.
6829if test "${with_cluster+set}" = set; then :
6830 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6831fi
6832
f11781c5
AK
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6834$as_echo "$CLUSTER" >&6; }
a946372e 6835
f11781c5
AK
6836if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6837 then as_fn_error $? "--with-cluster parameter invalid
6838" "$LINENO" 5
6839fi;
fddafd51 6840
f11781c5 6841if test x$CLUSTER = xinternal; then
5556819a 6842
f11781c5 6843$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6844
fddafd51 6845fi
f11781c5
AK
6846
6847################################################################################
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6849$as_echo_n "checking whether to include snapshots... " >&6; }
6850
6851# Check whether --with-snapshots was given.
6852if test "${with_snapshots+set}" = set; then :
6853 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6854else
f11781c5 6855 SNAPSHOTS=internal
fddafd51
ZK
6856fi
6857
f11781c5
AK
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6859$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6860
f11781c5
AK
6861if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6862 then as_fn_error $? "--with-snapshots parameter invalid
6863" "$LINENO" 5
6864fi;
fddafd51 6865
f11781c5
AK
6866if test x$SNAPSHOTS = xinternal; then
6867
6868$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6869
6870fi
6871
6872################################################################################
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6874$as_echo_n "checking whether to include mirrors... " >&6; }
6875
6876# Check whether --with-mirrors was given.
6877if test "${with_mirrors+set}" = set; then :
6878 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6879else
f11781c5 6880 MIRRORS=internal
fddafd51
ZK
6881fi
6882
f11781c5
AK
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6884$as_echo "$MIRRORS" >&6; }
fddafd51 6885
f11781c5
AK
6886if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6887 then as_fn_error $? "--with-mirrors parameter invalid
6888" "$LINENO" 5
6889fi;
6890
6891if test x$MIRRORS = xinternal; then
6892
6893$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6894
6895fi
6896
cac52ca4
JEB
6897################################################################################
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6899$as_echo_n "checking whether to include raid... " >&6; }
6900
6901# Check whether --with-raid was given.
6902if test "${with_raid+set}" = set; then :
6903 withval=$with_raid; RAID=$withval
6904else
6905 RAID=internal
6906fi
6907
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6909$as_echo "$RAID" >&6; }
6910
6911if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6912 then as_fn_error $? "--with-raid parameter invalid
6913" "$LINENO" 5
6914fi;
6915
6916if test x$RAID = xinternal; then
6917
6918$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6919
6920fi
6921
f11781c5
AK
6922################################################################################
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6924$as_echo_n "checking whether to include replicators... " >&6; }
6925
6926# Check whether --with-replicators was given.
6927if test "${with_replicators+set}" = set; then :
6928 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6929else
f11781c5
AK
6930 REPLICATORS=none
6931fi
fd4728e1 6932
f11781c5
AK
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6934$as_echo "$REPLICATORS" >&6; }
6935
6936case "$REPLICATORS" in
6937 none|shared) ;;
6938 internal)
6939$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6940 ;;
6941 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6942esac
f11781c5 6943
3ba4a195
ZK
6944################################################################################
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6946$as_echo_n "checking whether to include thin provisioning... " >&6; }
6947
6948# Check whether --with-thin was given.
6949if test "${with_thin+set}" = set; then :
6950 withval=$with_thin; THIN=$withval
6951else
6952 THIN=none
6953fi
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6956$as_echo "$THIN" >&6; }
6957
6958case "$THIN" in
6959 none|shared) ;;
6960 internal)
6961$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6962 ;;
6963 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6964esac
6965
f11781c5
AK
6966################################################################################
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6968$as_echo_n "checking whether to enable readline... " >&6; }
6969# Check whether --enable-readline was given.
6970if test "${enable_readline+set}" = set; then :
6971 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6972else
f11781c5 6973 READLINE=maybe
fd4728e1
ZK
6974fi
6975
f11781c5
AK
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6977$as_echo "$READLINE" >&6; }
fd4728e1 6978
f11781c5
AK
6979################################################################################
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6981$as_echo_n "checking whether to enable realtime support... " >&6; }
6982# Check whether --enable-realtime was given.
6983if test "${enable_realtime+set}" = set; then :
6984 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6985fi
d0191583 6986
f11781c5
AK
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6988$as_echo "$REALTIME" >&6; }
6989
54b362f9 6990################################################################################
f11781c5
AK
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6992$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6993# Check whether --enable-ocf was given.
6994if test "${enable_ocf+set}" = set; then :
6995 enableval=$enable_ocf; OCF=$enableval
54b362f9 6996else
f11781c5 6997 OCF=no
54b362f9
AK
6998fi
6999
f11781c5
AK
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7001$as_echo "$OCF" >&6; }
54b362f9 7002
606d0858
AK
7003# Check whether --with-ocfdir was given.
7004if test "${with_ocfdir+set}" = set; then :
7005 withval=$with_ocfdir; OCFDIR=$withval
7006else
7007 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7008fi
7009
7010
f11781c5
AK
7011################################################################################
7012pkg_config_init() {
7013
7014
7015
7016
7017
7018
7019if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7024$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7025if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7026 $as_echo_n "(cached) " >&6
7027else
f11781c5 7028 case $PKG_CONFIG in
54b362f9 7029 [\\/]* | ?:[\\/]*)
f11781c5 7030 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7031 ;;
7032 *)
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
f11781c5 7038 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7040 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7042 break 2
7043 fi
7044done
f11781c5 7045 done
54b362f9
AK
7046IFS=$as_save_IFS
7047
7048 ;;
7049esac
7050fi
f11781c5
AK
7051PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7052if test -n "$PKG_CONFIG"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7054$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7055else
f11781c5 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7057$as_echo "no" >&6; }
7058fi
7059
7060
f11781c5
AK
7061fi
7062if test -z "$ac_cv_path_PKG_CONFIG"; then
7063 ac_pt_PKG_CONFIG=$PKG_CONFIG
7064 # Extract the first word of "pkg-config", so it can be a program name with args.
7065set dummy pkg-config; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7067$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7068if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7069 $as_echo_n "(cached) " >&6
7070else
f11781c5 7071 case $ac_pt_PKG_CONFIG in
54b362f9 7072 [\\/]* | ?:[\\/]*)
f11781c5 7073 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7074 ;;
7075 *)
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
f11781c5 7081 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7083 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7085 break 2
7086 fi
7087done
f11781c5 7088 done
54b362f9
AK
7089IFS=$as_save_IFS
7090
7091 ;;
7092esac
7093fi
f11781c5
AK
7094ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7095if test -n "$ac_pt_PKG_CONFIG"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7097$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7098else
f11781c5 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7100$as_echo "no" >&6; }
7101fi
7102
f11781c5
AK
7103 if test "x$ac_pt_PKG_CONFIG" = x; then
7104 PKG_CONFIG=""
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107yes:)
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112 PKG_CONFIG=$ac_pt_PKG_CONFIG
7113 fi
d1e8046f 7114else
f11781c5 7115 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7116fi
7117
f11781c5
AK
7118fi
7119if test -n "$PKG_CONFIG"; then
7120 _pkg_min_version=0.9.0
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7122$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7123 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125$as_echo "yes" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129 PKG_CONFIG=""
7130 fi
7131fi
d1e8046f 7132
f11781c5
AK
7133pkg_failed=no
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7135$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7136
f11781c5
AK
7137if test -n "$PKGCONFIGINIT_CFLAGS"; then
7138 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7139 elif test -n "$PKG_CONFIG"; then
7140 if test -n "$PKG_CONFIG" && \
7141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7142 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; }; then
7146 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7147else
f11781c5
AK
7148 pkg_failed=yes
7149fi
7150 else
7151 pkg_failed=untried
7152fi
7153if test -n "$PKGCONFIGINIT_LIBS"; then
7154 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7155 elif test -n "$PKG_CONFIG"; then
7156 if test -n "$PKG_CONFIG" && \
7157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7158 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7159 ac_status=$?
f11781c5
AK
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; }; then
7162 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7163else
f11781c5
AK
7164 pkg_failed=yes
7165fi
7166 else
7167 pkg_failed=untried
d1e8046f
AK
7168fi
7169
d1e8046f 7170
f11781c5
AK
7171
7172if test $pkg_failed = yes; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175
7176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7177 _pkg_short_errors_supported=yes
7178else
7179 _pkg_short_errors_supported=no
7180fi
7181 if test $_pkg_short_errors_supported = yes; then
7182 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7183 else
7184 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7185 fi
7186 # Put the nasty error message in config.log where it belongs
7187 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7190$as_echo "pkg-config initialized" >&6; }
7191elif test $pkg_failed = untried; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193$as_echo "no" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7195$as_echo "pkg-config initialized" >&6; }
d1e8046f 7196else
f11781c5
AK
7197 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7198 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7200$as_echo "yes" >&6; }
d1e8046f 7201
d1e8046f 7202fi
f11781c5
AK
7203 PKGCONFIG_INIT=1
7204}
d1e8046f 7205
f11781c5
AK
7206################################################################################
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7208$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7209
f11781c5
AK
7210# Check whether --with-clvmd was given.
7211if test "${with_clvmd+set}" = set; then :
7212 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7213else
f11781c5 7214 CLVMD=none
d1e8046f 7215fi
d1e8046f 7216
f11781c5
AK
7217if test x$CLVMD = xyes; then
7218 CLVMD=all
d1e8046f 7219fi
f11781c5
AK
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7221$as_echo "$CLVMD" >&6; }
d1e8046f 7222
f11781c5
AK
7223if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7224 CLUSTER=internal
d1e8046f
AK
7225fi
7226
f11781c5
AK
7227if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7228 pkg_config_init
7229fi
d1e8046f 7230
f11781c5
AK
7231CLVMD_CMANAGERS=""
7232CLVMD_NEEDS_QDISKD=no
d1e8046f 7233
f11781c5 7234if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7235 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7236fi
f11781c5
AK
7237if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7238 BUILDCMAN=yes
7239 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7240 CLVMD_NEEDS_QDISKD=yes
7241fi
7242if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7243 BUILDCOROSYNC=yes
7244 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7245fi
7246if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7247 BUILDOPENAIS=yes
7248 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7249fi
7250if test x$CLVMD_NEEDS_QDISKD != xno; then
7251 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7252fi
7253
f11781c5
AK
7254soft_bailout() {
7255 NOTFOUND=1
7256}
ad6254c5 7257
f11781c5
AK
7258hard_bailout() {
7259 as_fn_error $? "bailing out" "$LINENO" 5
7260}
ad6254c5 7261
f11781c5
AK
7262if test x$CLVMD = xall; then
7263 bailout=soft_bailout
f11781c5
AK
7264 BUILDCMAN=yes
7265 BUILDCOROSYNC=yes
7266 BUILDOPENAIS=yes
a5f46f6a 7267else
f11781c5 7268 bailout=hard_bailout
a5f46f6a
AK
7269fi
7270
f11781c5
AK
7271check_lib_no_libs() {
7272 lib_no_libs_arg1=$1
7273 shift
7274 lib_no_libs_arg2=$1
7275 shift
7276 lib_no_libs_args=$@
7277 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7279$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7280if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7281 $as_echo_n "(cached) " >&6
7282else
7283 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7284LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7286/* end confdefs.h. */
7287
7288/* Override any GCC internal prototype to avoid an error.
7289 Use char because int might match the return type of a GCC
7290 builtin and then its argument prototype would still apply. */
7291#ifdef __cplusplus
7292extern "C"
7293#endif
f11781c5 7294char $lib_no_libs_arg2 ();
90c80887
AK
7295int
7296main ()
7297{
f11781c5 7298return $lib_no_libs_arg2 ();
90c80887
AK
7299 ;
7300 return 0;
7301}
7302_ACEOF
f11781c5
AK
7303if ac_fn_c_try_link "$LINENO"; then :
7304 eval "$as_ac_Lib=yes"
90c80887 7305else
f11781c5 7306 eval "$as_ac_Lib=no"
90c80887 7307fi
f11781c5
AK
7308rm -f core conftest.err conftest.$ac_objext \
7309 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7310LIBS=$ac_check_lib_save_LIBS
7311fi
f11781c5
AK
7312eval ac_res=\$$as_ac_Lib
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7314$as_echo "$ac_res" >&6; }
7315if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7316 cat >>confdefs.h <<_ACEOF
7317#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7318_ACEOF
7319
7320 LIBS="-l$lib_no_libs_arg1 $LIBS"
7321
90c80887 7322else
f11781c5 7323 $bailout
90c80887
AK
7324fi
7325
f11781c5
AK
7326 LIBS=$ac_check_lib_save_LIBS
7327}
90c80887 7328
f11781c5 7329if test x$BUILDCMAN = xyes; then
ad6254c5 7330
f11781c5
AK
7331pkg_failed=no
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7333$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7334
f11781c5
AK
7335if test -n "$CMAN_CFLAGS"; then
7336 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7337 elif test -n "$PKG_CONFIG"; then
7338 if test -n "$PKG_CONFIG" && \
7339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7340 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7341 ac_status=$?
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; }; then
7344 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7345else
7346 pkg_failed=yes
ad6254c5 7347fi
f11781c5
AK
7348 else
7349 pkg_failed=untried
ad6254c5 7350fi
f11781c5
AK
7351if test -n "$CMAN_LIBS"; then
7352 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7353 elif test -n "$PKG_CONFIG"; then
7354 if test -n "$PKG_CONFIG" && \
7355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7356 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7357 ac_status=$?
f11781c5
AK
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7361else
f11781c5
AK
7362 pkg_failed=yes
7363fi
7364 else
7365 pkg_failed=untried
93bd259b
AK
7366fi
7367
f11781c5
AK
7368
7369
7370if test $pkg_failed = yes; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372$as_echo "no" >&6; }
7373
7374if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7375 _pkg_short_errors_supported=yes
7376else
7377 _pkg_short_errors_supported=no
93bd259b 7378fi
f11781c5
AK
7379 if test $_pkg_short_errors_supported = yes; then
7380 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7381 else
7382 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7383 fi
7384 # Put the nasty error message in config.log where it belongs
7385 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7386
f11781c5
AK
7387 NOTFOUND=0
7388 for ac_header in libcman.h
7389do :
7390 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7391if test "x$ac_cv_header_libcman_h" = x""yes; then :
7392 cat >>confdefs.h <<_ACEOF
7393#define HAVE_LIBCMAN_H 1
93bd259b
AK
7394_ACEOF
7395
f11781c5
AK
7396else
7397 $bailout
93bd259b
AK
7398fi
7399
f11781c5 7400done
93bd259b 7401
f11781c5
AK
7402 check_lib_no_libs cman cman_init
7403 if test $NOTFOUND = 0; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7405$as_echo "no pkg for libcman, using -lcman" >&6; }
7406 CMAN_LIBS="-lcman"
7407 HAVE_CMAN=yes
7408 fi
7409elif test $pkg_failed = untried; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412 NOTFOUND=0
7413 for ac_header in libcman.h
7414do :
7415 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7416if test "x$ac_cv_header_libcman_h" = x""yes; then :
7417 cat >>confdefs.h <<_ACEOF
7418#define HAVE_LIBCMAN_H 1
93bd259b 7419_ACEOF
93bd259b 7420
93bd259b 7421else
f11781c5 7422 $bailout
93bd259b
AK
7423fi
7424
f11781c5
AK
7425done
7426
7427 check_lib_no_libs cman cman_init
7428 if test $NOTFOUND = 0; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7430$as_echo "no pkg for libcman, using -lcman" >&6; }
7431 CMAN_LIBS="-lcman"
7432 HAVE_CMAN=yes
7433 fi
7434else
7435 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7436 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7438$as_echo "yes" >&6; }
7439 HAVE_CMAN=yes
93bd259b 7440fi
f11781c5
AK
7441 CHECKCONFDB=yes
7442 CHECKDLM=yes
93bd259b
AK
7443fi
7444
f11781c5
AK
7445if test x$BUILDCOROSYNC = xyes || \
7446 test x$BUILDOPENAIS = xyes; then
93bd259b 7447
f11781c5
AK
7448pkg_failed=no
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7450$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7451
f11781c5
AK
7452if test -n "$COROSYNC_CFLAGS"; then
7453 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7454 elif test -n "$PKG_CONFIG"; then
7455 if test -n "$PKG_CONFIG" && \
7456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7457 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7458 ac_status=$?
7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460 test $ac_status = 0; }; then
7461 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7462else
f11781c5
AK
7463 pkg_failed=yes
7464fi
7465 else
7466 pkg_failed=untried
7467fi
7468if test -n "$COROSYNC_LIBS"; then
7469 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7470 elif test -n "$PKG_CONFIG"; then
7471 if test -n "$PKG_CONFIG" && \
7472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7473 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7474 ac_status=$?
f11781c5
AK
7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; }; then
7477 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7478else
f11781c5 7479 pkg_failed=yes
ad6254c5 7480fi
f11781c5
AK
7481 else
7482 pkg_failed=untried
ad6254c5 7483fi
ad6254c5 7484
72b2cb61 7485
72b2cb61 7486
f11781c5
AK
7487if test $pkg_failed = yes; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
19a2c6e0 7490
f11781c5
AK
7491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7492 _pkg_short_errors_supported=yes
7493else
7494 _pkg_short_errors_supported=no
ad6254c5 7495fi
f11781c5
AK
7496 if test $_pkg_short_errors_supported = yes; then
7497 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7498 else
7499 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7500 fi
7501 # Put the nasty error message in config.log where it belongs
7502 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7503
f11781c5
AK
7504 $bailout
7505elif test $pkg_failed = untried; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508 $bailout
7509else
7510 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7511 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7513$as_echo "yes" >&6; }
7514 HAVE_COROSYNC=yes
7515fi
7516 CHECKCONFDB=yes
ad6254c5
AK
7517fi
7518
f11781c5 7519if test x$BUILDCOROSYNC = xyes; then
f30875db 7520
f11781c5
AK
7521pkg_failed=no
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7523$as_echo_n "checking for QUORUM... " >&6; }
7524
7525if test -n "$QUORUM_CFLAGS"; then
7526 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7527 elif test -n "$PKG_CONFIG"; then
7528 if test -n "$PKG_CONFIG" && \
7529 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7530 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7531 ac_status=$?
f11781c5
AK
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7535else
f11781c5 7536 pkg_failed=yes
f30875db 7537fi
f11781c5
AK
7538 else
7539 pkg_failed=untried
f30875db 7540fi
f11781c5
AK
7541if test -n "$QUORUM_LIBS"; then
7542 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7543 elif test -n "$PKG_CONFIG"; then
7544 if test -n "$PKG_CONFIG" && \
7545 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7546 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7551else
f11781c5 7552 pkg_failed=yes
f30875db 7553fi
f11781c5
AK
7554 else
7555 pkg_failed=untried
7556fi
7557
f30875db 7558
f11781c5
AK
7559
7560if test $pkg_failed = yes; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563
7564if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7565 _pkg_short_errors_supported=yes
7566else
7567 _pkg_short_errors_supported=no
f30875db 7568fi
f11781c5
AK
7569 if test $_pkg_short_errors_supported = yes; then
7570 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7571 else
7572 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7573 fi
7574 # Put the nasty error message in config.log where it belongs
7575 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7576
f11781c5
AK
7577 $bailout
7578elif test $pkg_failed = untried; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581 $bailout
7582else
7583 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7584 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7586$as_echo "yes" >&6; }
7587 HAVE_QUORUM=yes
7588fi
7589 CHECKCPG=yes
7590 CHECKDLM=yes
d0191583
JM
7591fi
7592
f11781c5 7593if test x$BUILDOPENAIS = xyes; then
d0191583 7594
f11781c5
AK
7595pkg_failed=no
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7597$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7598
f11781c5
AK
7599if test -n "$SALCK_CFLAGS"; then
7600 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7601 elif test -n "$PKG_CONFIG"; then
7602 if test -n "$PKG_CONFIG" && \
7603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7604 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7605 ac_status=$?
7606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7607 test $ac_status = 0; }; then
7608 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7609else
7610 pkg_failed=yes
7611fi
7612 else
7613 pkg_failed=untried
7614fi
7615if test -n "$SALCK_LIBS"; then
7616 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7617 elif test -n "$PKG_CONFIG"; then
7618 if test -n "$PKG_CONFIG" && \
7619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7620 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7621 ac_status=$?
f11781c5
AK
7622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7623 test $ac_status = 0; }; then
7624 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7625else
f11781c5 7626 pkg_failed=yes
8a2fc586 7627fi
f11781c5
AK
7628 else
7629 pkg_failed=untried
8a2fc586 7630fi
d0191583 7631
d0191583 7632
f8f6ec92 7633
f11781c5
AK
7634if test $pkg_failed = yes; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
8a2fc586 7637
f11781c5
AK
7638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7639 _pkg_short_errors_supported=yes
ad6254c5 7640else
f11781c5
AK
7641 _pkg_short_errors_supported=no
7642fi
7643 if test $_pkg_short_errors_supported = yes; then
7644 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7645 else
7646 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7647 fi
7648 # Put the nasty error message in config.log where it belongs
7649 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7650
f11781c5
AK
7651 $bailout
7652elif test $pkg_failed = untried; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654$as_echo "no" >&6; }
7655 $bailout
ad6254c5 7656else
f11781c5
AK
7657 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7658 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660$as_echo "yes" >&6; }
7661 HAVE_SALCK=yes
ad6254c5 7662fi
f11781c5 7663 CHECKCPG=yes
ad6254c5 7664fi
ad6254c5 7665
72b2cb61 7666
f8f6ec92 7667
f11781c5 7668if test x$CHECKCONFDB = xyes; then
f8f6ec92 7669
f11781c5
AK
7670pkg_failed=no
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7672$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7673
f11781c5
AK
7674if test -n "$CONFDB_CFLAGS"; then
7675 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7676 elif test -n "$PKG_CONFIG"; then
7677 if test -n "$PKG_CONFIG" && \
7678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7679 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7680 ac_status=$?
f11781c5
AK
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682 test $ac_status = 0; }; then
7683 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7684else
f11781c5
AK
7685 pkg_failed=yes
7686fi
7687 else
7688 pkg_failed=untried
7689fi
7690if test -n "$CONFDB_LIBS"; then
7691 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7692 elif test -n "$PKG_CONFIG"; then
7693 if test -n "$PKG_CONFIG" && \
7694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7695 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; }; then
7699 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7700else
7701 pkg_failed=yes
7702fi
7703 else
7704 pkg_failed=untried
f8f6ec92
ZK
7705fi
7706
f8f6ec92 7707
66e941e8 7708
f11781c5
AK
7709if test $pkg_failed = yes; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
7712
7713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7714 _pkg_short_errors_supported=yes
f8f6ec92 7715else
f11781c5 7716 _pkg_short_errors_supported=no
66e941e8 7717fi
f11781c5
AK
7718 if test $_pkg_short_errors_supported = yes; then
7719 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7720 else
7721 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7722 fi
7723 # Put the nasty error message in config.log where it belongs
7724 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7725
f11781c5
AK
7726 HAVE_CONFDB=no
7727elif test $pkg_failed = untried; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
7730 HAVE_CONFDB=no
7731else
7732 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7733 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7735$as_echo "yes" >&6; }
7736 HAVE_CONFDB=yes
66e941e8 7737fi
f11781c5
AK
7738
7739 for ac_header in corosync/confdb.h
7740do :
7741 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7742if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7743 cat >>confdefs.h <<_ACEOF
f11781c5 7744#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7745_ACEOF
f11781c5 7746 HAVE_CONFDB_H=yes
66e941e8 7747else
f11781c5 7748 HAVE_CONFDB_H=no
66e941e8 7749fi
dd1f2c09
MB
7750
7751done
7752
7753
f11781c5
AK
7754 if test x$HAVE_CONFDB != xyes && \
7755 test x$HAVE_CONFDB_H = xyes; then
7756 check_lib_no_libs confdb confdb_initialize
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7758$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7759 CONFDB_LIBS="-lconfdb"
7760 HAVE_CONFDB=yes
7761 fi
7762
7763 if test x$BUILDCOROSYNC = xyes && \
7764 test x$HAVE_CONFDB != xyes &&
7765 test x$CLVMD != xall; then
7766 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7767 fi
dd1f2c09 7768fi
f11781c5
AK
7769
7770if test x$CHECKCPG = xyes; then
7771
7772pkg_failed=no
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7774$as_echo_n "checking for CPG... " >&6; }
7775
7776if test -n "$CPG_CFLAGS"; then
7777 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7778 elif test -n "$PKG_CONFIG"; then
7779 if test -n "$PKG_CONFIG" && \
7780 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7781 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7782 ac_status=$?
7783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784 test $ac_status = 0; }; then
7785 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7786else
f11781c5
AK
7787 pkg_failed=yes
7788fi
7789 else
7790 pkg_failed=untried
7791fi
7792if test -n "$CPG_LIBS"; then
7793 pkg_cv_CPG_LIBS="$CPG_LIBS"
7794 elif test -n "$PKG_CONFIG"; then
7795 if test -n "$PKG_CONFIG" && \
7796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7797 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7798 ac_status=$?
f11781c5
AK
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }; then
7801 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7802else
f11781c5
AK
7803 pkg_failed=yes
7804fi
7805 else
7806 pkg_failed=untried
7807fi
7808
7809
7810
7811if test $pkg_failed = yes; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
7814
7815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7816 _pkg_short_errors_supported=yes
7817else
7818 _pkg_short_errors_supported=no
7819fi
7820 if test $_pkg_short_errors_supported = yes; then
7821 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7822 else
7823 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7824 fi
7825 # Put the nasty error message in config.log where it belongs
7826 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7827
f11781c5
AK
7828 $bailout
7829elif test $pkg_failed = untried; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832 $bailout
7833else
7834 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7835 CPG_LIBS=$pkg_cv_CPG_LIBS
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7837$as_echo "yes" >&6; }
7838 HAVE_CPG=yes
7839fi
dd1f2c09
MB
7840fi
7841
f11781c5 7842if test x$CHECKDLM = xyes; then
dd1f2c09 7843
f11781c5
AK
7844pkg_failed=no
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7846$as_echo_n "checking for DLM... " >&6; }
7847
7848if test -n "$DLM_CFLAGS"; then
7849 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7850 elif test -n "$PKG_CONFIG"; then
7851 if test -n "$PKG_CONFIG" && \
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7853 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7854 ac_status=$?
f11781c5
AK
7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; }; then
7857 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7858else
f11781c5
AK
7859 pkg_failed=yes
7860fi
7861 else
7862 pkg_failed=untried
7863fi
7864if test -n "$DLM_LIBS"; then
7865 pkg_cv_DLM_LIBS="$DLM_LIBS"
7866 elif test -n "$PKG_CONFIG"; then
7867 if test -n "$PKG_CONFIG" && \
7868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7869 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7870 ac_status=$?
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7874else
7875 pkg_failed=yes
7876fi
7877 else
7878 pkg_failed=untried
dd1f2c09
MB
7879fi
7880
dd1f2c09 7881
dd1f2c09 7882
f11781c5
AK
7883if test $pkg_failed = yes; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886
7887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7888 _pkg_short_errors_supported=yes
dd1f2c09 7889else
f11781c5 7890 _pkg_short_errors_supported=no
dd1f2c09 7891fi
f11781c5
AK
7892 if test $_pkg_short_errors_supported = yes; then
7893 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7894 else
7895 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7896 fi
7897 # Put the nasty error message in config.log where it belongs
7898 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7899
f11781c5
AK
7900 NOTFOUND=0
7901 for ac_header in libdlm.h
7902do :
7903 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7904if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7905 cat >>confdefs.h <<_ACEOF
f11781c5 7906#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7907_ACEOF
7908
f11781c5
AK
7909else
7910 $bailout
dd1f2c09 7911fi
f8f6ec92
ZK
7912
7913done
7914
f11781c5
AK
7915 check_lib_no_libs dlm dlm_lock -lpthread
7916 if test $NOTFOUND = 0; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7918$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7919 DLM_LIBS="-ldlm -lpthread"
7920 HAVE_DLM=yes
7921 fi
7922elif test $pkg_failed = untried; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925 NOTFOUND=0
7926 for ac_header in libdlm.h
7927do :
7928 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7929if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7930 cat >>confdefs.h <<_ACEOF
7931#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7932_ACEOF
7933
f8f6ec92 7934else
f11781c5 7935 $bailout
ad6254c5
AK
7936fi
7937
f11781c5 7938done
8b1a3214 7939
f11781c5
AK
7940 check_lib_no_libs dlm dlm_lock -lpthread
7941 if test $NOTFOUND = 0; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7943$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7944 DLM_LIBS="-ldlm -lpthread"
7945 HAVE_DLM=yes
7946 fi
8b1a3214 7947else
f11781c5
AK
7948 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7949 DLM_LIBS=$pkg_cv_DLM_LIBS
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951$as_echo "yes" >&6; }
7952 HAVE_DLM=yes
8b1a3214 7953fi
8b1a3214
AK
7954fi
7955
f11781c5
AK
7956if test x$CLVMD = xall; then
7957 CLVMD=none
7958 CLVMD_CMANAGERS=""
7959 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7960 if test x$HAVE_CMAN = xyes && \
7961 test x$HAVE_DLM = xyes; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7963$as_echo "Enabling clvmd cman cluster manager" >&6; }
7964 CLVMD="$CLVMD,cman"
7965 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7966 CLVMD_NEEDS_QDISKD=yes
7967 fi
7968 if test x$HAVE_COROSYNC = xyes && \
7969 test x$HAVE_QUORUM = xyes && \
7970 test x$HAVE_CPG = xyes && \
7971 test x$HAVE_DLM = xyes && \
7972 test x$HAVE_CONFDB = xyes; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7974$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7975 CLVMD="$CLVMD,corosync"
7976 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7977 fi
7978 if test x$HAVE_COROSYNC = xyes && \
7979 test x$HAVE_CPG = xyes && \
7980 test x$HAVE_SALCK = xyes; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7982$as_echo "Enabling clvmd openais cluster manager" >&6; }
7983 CLVMD="$CLVMD,openais"
7984 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7985 fi
7986 if test x$CLVMD_NEEDS_QDISKD != xno; then
7987 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7988 fi
7989 if test x$CLVMD = xnone; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7991$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7992 fi
7993fi
7994
ad6254c5 7995################################################################################
f11781c5 7996if test "x$CLVMD" != xnone; then
ad6254c5 7997
f11781c5
AK
7998# Check whether --with-clvmd-pidfile was given.
7999if test "${with_clvmd_pidfile+set}" = set; then :
8000 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8001else
f11781c5 8002 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8003fi
7a197a62 8004
ad6254c5 8005
f11781c5
AK
8006cat >>confdefs.h <<_ACEOF
8007#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8008_ACEOF
ad6254c5 8009
ad6254c5 8010fi
7a197a62 8011
f11781c5
AK
8012################################################################################
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8014$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8015# Check whether --enable-cmirrord was given.
8016if test "${enable_cmirrord+set}" = set; then :
8017 enableval=$enable_cmirrord; CMIRRORD=$enableval
8018else
8019 CMIRRORD=no
8020fi
8021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8023$as_echo "$CMIRRORD" >&6; }
ad6254c5 8024
f11781c5 8025BUILD_CMIRRORD=$CMIRRORD
7a197a62 8026
f11781c5
AK
8027################################################################################
8028if test "x$BUILD_CMIRRORD" = xyes; then
8029
8030# Check whether --with-cmirrord-pidfile was given.
8031if test "${with_cmirrord_pidfile+set}" = set; then :
8032 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8033else
f11781c5 8034 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8035fi
ad6254c5 8036
72b2cb61 8037
f11781c5
AK
8038cat >>confdefs.h <<_ACEOF
8039#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8040_ACEOF
8041
ad6254c5
AK
8042fi
8043
f11781c5
AK
8044################################################################################
8045if [ "x$BUILD_CMIRRORD" = xyes ]; then
8046 if test x$PKGCONFIG_INIT != x1; then
8047 pkg_config_init
8048 fi
ad6254c5 8049
f11781c5
AK
8050pkg_failed=no
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8052$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8053
f11781c5
AK
8054if test -n "$SACKPT_CFLAGS"; then
8055 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8056 elif test -n "$PKG_CONFIG"; then
8057 if test -n "$PKG_CONFIG" && \
8058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8059 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8060 ac_status=$?
8061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062 test $ac_status = 0; }; then
8063 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8064else
f11781c5
AK
8065 pkg_failed=yes
8066fi
8067 else
8068 pkg_failed=untried
8069fi
8070if test -n "$SACKPT_LIBS"; then
8071 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8072 elif test -n "$PKG_CONFIG"; then
8073 if test -n "$PKG_CONFIG" && \
8074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8075 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8076 ac_status=$?
f11781c5
AK
8077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078 test $ac_status = 0; }; then
8079 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8080else
f11781c5
AK
8081 pkg_failed=yes
8082fi
8083 else
8084 pkg_failed=untried
8085fi
539f4a77
ZK
8086
8087
539f4a77 8088
f11781c5
AK
8089if test $pkg_failed = yes; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }
8092
8093if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8094 _pkg_short_errors_supported=yes
539f4a77 8095else
f11781c5 8096 _pkg_short_errors_supported=no
539f4a77 8097fi
f11781c5
AK
8098 if test $_pkg_short_errors_supported = yes; then
8099 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8100 else
8101 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8102 fi
8103 # Put the nasty error message in config.log where it belongs
8104 echo "$SACKPT_PKG_ERRORS" >&5
8105
8106 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8107
8108$SACKPT_PKG_ERRORS
8109
8110Consider adjusting the PKG_CONFIG_PATH environment variable if you
8111installed software in a non-standard prefix.
8112
8113Alternatively, you may set the environment variables SACKPT_CFLAGS
8114and SACKPT_LIBS to avoid the need to call pkg-config.
8115See the pkg-config man page for more details." "$LINENO" 5
8116
8117elif test $pkg_failed = untried; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8122as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8123is in your PATH or set the PKG_CONFIG environment variable to the full
8124path to pkg-config.
8125
8126Alternatively, you may set the environment variables SACKPT_CFLAGS
8127and SACKPT_LIBS to avoid the need to call pkg-config.
8128See the pkg-config man page for more details.
8129
8130To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8131See \`config.log' for more details" "$LINENO" 5; }
8132
539f4a77 8133else
f11781c5
AK
8134 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8135 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137$as_echo "yes" >&6; }
539f4a77 8138
539f4a77 8139fi
f11781c5 8140 if test x$HAVE_CPG != xyes; then
539f4a77 8141
f11781c5
AK
8142pkg_failed=no
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8144$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8145
f11781c5
AK
8146if test -n "$CPG_CFLAGS"; then
8147 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8148 elif test -n "$PKG_CONFIG"; then
8149 if test -n "$PKG_CONFIG" && \
8150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8151 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8152 ac_status=$?
f11781c5
AK
8153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154 test $ac_status = 0; }; then
8155 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8156else
f11781c5
AK
8157 pkg_failed=yes
8158fi
8159 else
8160 pkg_failed=untried
8161fi
8162if test -n "$CPG_LIBS"; then
8163 pkg_cv_CPG_LIBS="$CPG_LIBS"
8164 elif test -n "$PKG_CONFIG"; then
8165 if test -n "$PKG_CONFIG" && \
8166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8167 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8168 ac_status=$?
8169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8170 test $ac_status = 0; }; then
8171 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8172else
8173 pkg_failed=yes
8174fi
8175 else
8176 pkg_failed=untried
8177fi
8178
8179
8180
8181if test $pkg_failed = yes; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183$as_echo "no" >&6; }
ad6254c5 8184
f11781c5
AK
8185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8186 _pkg_short_errors_supported=yes
8187else
8188 _pkg_short_errors_supported=no
ad6254c5 8189fi
f11781c5
AK
8190 if test $_pkg_short_errors_supported = yes; then
8191 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8192 else
8193 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8194 fi
8195 # Put the nasty error message in config.log where it belongs
8196 echo "$CPG_PKG_ERRORS" >&5
8197
8198 as_fn_error $? "Package requirements (libcpg) were not met:
8199
8200$CPG_PKG_ERRORS
8201
8202Consider adjusting the PKG_CONFIG_PATH environment variable if you
8203installed software in a non-standard prefix.
8204
8205Alternatively, you may set the environment variables CPG_CFLAGS
8206and CPG_LIBS to avoid the need to call pkg-config.
8207See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8208
f11781c5
AK
8209elif test $pkg_failed = untried; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
8212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8214as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8215is in your PATH or set the PKG_CONFIG environment variable to the full
8216path to pkg-config.
539f4a77 8217
f11781c5
AK
8218Alternatively, you may set the environment variables CPG_CFLAGS
8219and CPG_LIBS to avoid the need to call pkg-config.
8220See the pkg-config man page for more details.
539f4a77 8221
f11781c5
AK
8222To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8223See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8224
539f4a77 8225else
f11781c5
AK
8226 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8227 CPG_LIBS=$pkg_cv_CPG_LIBS
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8229$as_echo "yes" >&6; }
bc1024f8 8230
f11781c5
AK
8231fi
8232 fi
8233fi
8234
8235################################################################################
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8237$as_echo_n "checking whether to enable debugging... " >&6; }
8238# Check whether --enable-debug was given.
8239if test "${enable_debug+set}" = set; then :
8240 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8241else
f11781c5
AK
8242 DEBUG=no
8243fi
8244
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8246$as_echo "$DEBUG" >&6; }
539f4a77 8247
f11781c5
AK
8248if test x$DEBUG = xyes; then
8249 COPTIMISE_FLAG=
8250else
8251 CSCOPE_CMD=
06e459df
JM
8252fi
8253
f11781c5
AK
8254################################################################################
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8256$as_echo_n "checking for C optimisation flag... " >&6; }
8257
8258# Check whether --with-optimisation was given.
8259if test "${with_optimisation+set}" = set; then :
8260 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8261fi
539f4a77 8262
f11781c5
AK
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8264$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8265
f11781c5
AK
8266################################################################################
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8268$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8269# Check whether --enable-profiling was given.
8270if test "${enable_profiling+set}" = set; then :
8271 enableval=$enable_profiling; PROFILING=$enableval
8272else
8273 PROFILING=no
539f4a77
ZK
8274fi
8275
f11781c5
AK
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8277$as_echo "$PROFILING" >&6; }
8278
8279if test "x$PROFILING" = xyes; then
8280 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8281 # Extract the first word of "lcov", so it can be a program name with args.
8282set dummy lcov; ac_word=$2
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if test "${ac_cv_path_LCOV+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
539f4a77 8287else
f11781c5
AK
8288 case $LCOV in
8289 [\\/]* | ?:[\\/]*)
8290 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8291 ;;
8292 *)
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304done
8305 done
8306IFS=$as_save_IFS
539f4a77 8307
f11781c5
AK
8308 ;;
8309esac
8310fi
8311LCOV=$ac_cv_path_LCOV
8312if test -n "$LCOV"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8314$as_echo "$LCOV" >&6; }
8315else
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
539f4a77
ZK
8318fi
8319
bc1024f8 8320
f11781c5
AK
8321 # Extract the first word of "genhtml", so it can be a program name with args.
8322set dummy genhtml; ac_word=$2
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324$as_echo_n "checking for $ac_word... " >&6; }
8325if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8326 $as_echo_n "(cached) " >&6
ad6254c5 8327else
f11781c5
AK
8328 case $GENHTML in
8329 [\\/]* | ?:[\\/]*)
8330 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8331 ;;
8332 *)
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8340 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344done
8345 done
8346IFS=$as_save_IFS
8a2fc586 8347
f11781c5
AK
8348 ;;
8349esac
8350fi
8351GENHTML=$ac_cv_path_GENHTML
8352if test -n "$GENHTML"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8354$as_echo "$GENHTML" >&6; }
8355else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
8358fi
8a2fc586 8359
8a2fc586 8360
f11781c5
AK
8361 if test -z "$LCOV" -o -z "$GENHTML"; then
8362 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8363 fi
8364 # Extract the first word of "genpng", so it can be a program name with args.
8365set dummy genpng; ac_word=$2
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367$as_echo_n "checking for $ac_word... " >&6; }
8368if test "${ac_cv_path_GENPNG+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370else
8371 case $GENPNG in
8372 [\\/]* | ?:[\\/]*)
8373 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8374 ;;
8375 *)
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387done
8388 done
8389IFS=$as_save_IFS
ad6254c5 8390
f11781c5 8391 ;;
7a197a62 8392esac
f11781c5
AK
8393fi
8394GENPNG=$ac_cv_path_GENPNG
8395if test -n "$GENPNG"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8397$as_echo "$GENPNG" >&6; }
ad6254c5 8398else
f11781c5
AK
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
8401fi
8402
8403
8404 if test -n "$GENPNG"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8406$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8407 if $GENPNG --help > /dev/null 2>&1 ; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8409$as_echo "ok" >&6; }
8410 GENHTML="$GENHTML --frames"
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8413$as_echo "not supported" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8415$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8416 GENPNG=
8417 fi
8418 fi
8419fi
ad6254c5 8420
f11781c5
AK
8421################################################################################
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8423$as_echo_n "checking whether to enable unit testing... " >&6; }
8424# Check whether --enable-testing was given.
8425if test "${enable_testing+set}" = set; then :
8426 enableval=$enable_testing; TESTING=$enableval
8427else
8428 TESTING=no
ad6254c5 8429fi
7a197a62 8430
f11781c5
AK
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8432$as_echo "$TESTING" >&6; }
72b2cb61 8433
f11781c5 8434if test "$TESTING" = yes; then
426fc742
PR
8435
8436pkg_failed=no
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8438$as_echo_n "checking for CUNIT... " >&6; }
8439
8440if test -n "$CUNIT_CFLAGS"; then
8441 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8442 elif test -n "$PKG_CONFIG"; then
8443 if test -n "$PKG_CONFIG" && \
8444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8445 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8446 ac_status=$?
8447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8448 test $ac_status = 0; }; then
8449 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8450else
8451 pkg_failed=yes
8452fi
8453 else
8454 pkg_failed=untried
8455fi
8456if test -n "$CUNIT_LIBS"; then
8457 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8458 elif test -n "$PKG_CONFIG"; then
8459 if test -n "$PKG_CONFIG" && \
8460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8461 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8462 ac_status=$?
8463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8464 test $ac_status = 0; }; then
8465 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
ad6254c5 8466else
426fc742
PR
8467 pkg_failed=yes
8468fi
8469 else
8470 pkg_failed=untried
ad6254c5
AK
8471fi
8472
7a197a62 8473
426fc742
PR
8474
8475if test $pkg_failed = yes; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
8478
8479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8480 _pkg_short_errors_supported=yes
8481else
8482 _pkg_short_errors_supported=no
8483fi
8484 if test $_pkg_short_errors_supported = yes; then
8485 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8486 else
8487 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8488 fi
8489 # Put the nasty error message in config.log where it belongs
8490 echo "$CUNIT_PKG_ERRORS" >&5
8491
8492 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8493
8494$CUNIT_PKG_ERRORS
8495
8496Consider adjusting the PKG_CONFIG_PATH environment variable if you
8497installed software in a non-standard prefix.
8498
8499Alternatively, you may set the environment variables CUNIT_CFLAGS
8500and CUNIT_LIBS to avoid the need to call pkg-config.
8501See the pkg-config man page for more details." "$LINENO" 5
8502
8503elif test $pkg_failed = untried; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505$as_echo "no" >&6; }
8506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8508as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8509is in your PATH or set the PKG_CONFIG environment variable to the full
8510path to pkg-config.
8511
8512Alternatively, you may set the environment variables CUNIT_CFLAGS
8513and CUNIT_LIBS to avoid the need to call pkg-config.
8514See the pkg-config man page for more details.
8515
8516To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8517See \`config.log' for more details" "$LINENO" 5; }
8518
8519else
8520 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8521 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8523$as_echo "yes" >&6; }
8524
8525fi
f11781c5 8526fi
ad6254c5 8527
f11781c5
AK
8528################################################################################
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8530$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8531# Check whether --enable-valgrind_pool was given.
8532if test "${enable_valgrind_pool+set}" = set; then :
8533 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8534else
8535 VALGRIND_POOL=no
8536fi
8537
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8539$as_echo "$VALGRIND_POOL" >&6; }
8540
8541if test "$VALGRIND_POOL" = yes; then
8542 for ac_header in valgrind/memcheck.h
8543do :
8544 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8545if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8546 cat >>confdefs.h <<_ACEOF
8547#define HAVE_VALGRIND_MEMCHECK_H 1
8548_ACEOF
ad6254c5 8549
ad6254c5 8550else
f11781c5 8551 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8552fi
8553
f11781c5
AK
8554done
8555
8556
8557$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8558
ad6254c5
AK
8559fi
8560
8561################################################################################
f11781c5
AK
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8563$as_echo_n "checking whether to use device-mapper... " >&6; }
8564# Check whether --enable-devmapper was given.
8565if test "${enable_devmapper+set}" = set; then :
8566 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8567fi
8568
f11781c5
AK
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8570$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8571
f11781c5 8572if test x$DEVMAPPER = xyes; then
ad6254c5 8573
f11781c5
AK
8574$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8575
8576fi
8577
cdd50823
ZK
8578################################################################################
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8580$as_echo_n "checking whether to build LVMetaD... " >&6; }
8581# Check whether --enable-lvmetad was given.
8582if test "${enable_lvmetad+set}" = set; then :
8583 enableval=$enable_lvmetad; LVMETAD=$enableval
8584fi
8585
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8587$as_echo "$LVMETAD" >&6; }
8588
8589BUILD_LVMETAD=$LVMETAD
8590
f11781c5
AK
8591################################################################################
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8593$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8594# Check whether --enable-udev_sync was given.
8595if test "${enable_udev_sync+set}" = set; then :
8596 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8597else
f11781c5 8598 UDEV_SYNC=no
7a197a62 8599fi
ad6254c5 8600
f11781c5
AK
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8602$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8603
f11781c5 8604if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8605 if test x$PKGCONFIG_INIT != x1; then
8606 pkg_config_init
8607 fi
7a197a62 8608
d93275eb
PR
8609pkg_failed=no
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8611$as_echo_n "checking for UDEV... " >&6; }
8612
8613if test -n "$UDEV_CFLAGS"; then
8614 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8615 elif test -n "$PKG_CONFIG"; then
8616 if test -n "$PKG_CONFIG" && \
8617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8618 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8619 ac_status=$?
8620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8621 test $ac_status = 0; }; then
8622 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8623else
d93275eb 8624 pkg_failed=yes
f11781c5 8625fi
d93275eb
PR
8626 else
8627 pkg_failed=untried
f11781c5 8628fi
d93275eb
PR
8629if test -n "$UDEV_LIBS"; then
8630 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8631 elif test -n "$PKG_CONFIG"; then
8632 if test -n "$PKG_CONFIG" && \
8633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8634 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8635 ac_status=$?
8636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8637 test $ac_status = 0; }; then
8638 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8639else
d93275eb 8640 pkg_failed=yes
68f2de6d 8641fi
d93275eb
PR
8642 else
8643 pkg_failed=untried
8644fi
8645
8646
8647
8648if test $pkg_failed = yes; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650$as_echo "no" >&6; }
8651
8652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8653 _pkg_short_errors_supported=yes
8654else
8655 _pkg_short_errors_supported=no
8656fi
8657 if test $_pkg_short_errors_supported = yes; then
8658 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8659 else
8660 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8661 fi
8662 # Put the nasty error message in config.log where it belongs
8663 echo "$UDEV_PKG_ERRORS" >&5
8664
8665 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8666
8667$UDEV_PKG_ERRORS
8668
8669Consider adjusting the PKG_CONFIG_PATH environment variable if you
8670installed software in a non-standard prefix.
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." "$LINENO" 5
68f2de6d 8675
d93275eb
PR
8676elif test $pkg_failed = untried; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
8679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8681as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8682is in your PATH or set the PKG_CONFIG environment variable to the full
8683path to pkg-config.
8684
8685Alternatively, you may set the environment variables UDEV_CFLAGS
8686and UDEV_LIBS to avoid the need to call pkg-config.
8687See the pkg-config man page for more details.
8688
8689To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8690See \`config.log' for more details" "$LINENO" 5; }
8691
8692else
8693 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8694 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8696$as_echo "yes" >&6; }
8697 UDEV_PC="libudev"
8698fi
68f2de6d 8699
f11781c5 8700$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8701
f11781c5
AK
8702fi
8703
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8705$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8706# Check whether --enable-udev_rules was given.
8707if test "${enable_udev_rules+set}" = set; then :
8708 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8709else
f11781c5 8710 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8711fi
8712
f11781c5
AK
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8714$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8715
a5f46f6a 8716################################################################################
f11781c5
AK
8717# Check whether --enable-compat was given.
8718if test "${enable_compat+set}" = set; then :
8719 enableval=$enable_compat; DM_COMPAT=$enableval
8720else
8721 DM_COMPAT=no
8722fi
a5f46f6a 8723
f11781c5 8724
2061c0ec
AK
8725if test x$DM_COMPAT = xyes; then
8726 as_fn_error $? "--enable-compat is not currently supported.
8727Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8728ioctl protocol is supported.
8729 " "$LINENO" 5
8730fi
8731
f11781c5
AK
8732################################################################################
8733# Check whether --enable-units-compat was given.
8734if test "${enable_units_compat+set}" = set; then :
8735 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8736else
f11781c5 8737 UNITS_COMPAT=no
a5f46f6a
AK
8738fi
8739
8740
f11781c5 8741if test x$UNITS_COMPAT = xyes; then
78ce7acc 8742
f11781c5
AK
8743$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8744
8745fi
8746
8747################################################################################
8748# Check whether --enable-ioctl was given.
8749if test "${enable_ioctl+set}" = set; then :
8750 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8751fi
8752
a5f46f6a 8753
ad6254c5 8754################################################################################
f11781c5
AK
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8756$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8757# Check whether --enable-o_direct was given.
8758if test "${enable_o_direct+set}" = set; then :
8759 enableval=$enable_o_direct; ODIRECT=$enableval
8760fi
ad6254c5 8761
f11781c5
AK
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8763$as_echo "$ODIRECT" >&6; }
8764
8765if test x$ODIRECT = xyes; then
8766
8767$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8768
ad6254c5 8769fi
ad6254c5 8770
f11781c5
AK
8771################################################################################
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8773$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8774# Check whether --enable-applib was given.
8775if test "${enable_applib+set}" = set; then :
8776 enableval=$enable_applib; APPLIB=$enableval
8777else
8778 APPLIB=no
ad6254c5 8779fi
7a197a62 8780
f11781c5
AK
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8782$as_echo "$APPLIB" >&6; }
ad6254c5 8783
f11781c5
AK
8784test x$APPLIB = xyes \
8785 && LVM2APP_LIB=-llvm2app \
8786 || LVM2APP_LIB=
ad6254c5 8787
f11781c5
AK
8788################################################################################
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8790$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8791# Check whether --enable-cmdlib was given.
8792if test "${enable_cmdlib+set}" = set; then :
8793 enableval=$enable_cmdlib; CMDLIB=$enableval
8794else
8795 CMDLIB=no
ad6254c5 8796fi
7a197a62 8797
f11781c5
AK
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8799$as_echo "$CMDLIB" >&6; }
7a197a62 8800
f11781c5
AK
8801test x$CMDLIB = xyes \
8802 && LVM2CMD_LIB=-llvm2cmd \
8803 || LVM2CMD_LIB=
8804
8805################################################################################
8806# Check whether --enable-pkgconfig was given.
8807if test "${enable_pkgconfig+set}" = set; then :
8808 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8809else
f11781c5 8810 PKGCONFIG=no
ad6254c5 8811fi
ad6254c5 8812
ad6254c5 8813
f11781c5
AK
8814################################################################################
8815# Check whether --enable-write_install was given.
8816if test "${enable_write_install+set}" = set; then :
8817 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8818else
f11781c5 8819 WRITE_INSTALL=no
ad6254c5
AK
8820fi
8821
ad6254c5 8822
f11781c5
AK
8823################################################################################
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8825$as_echo_n "checking whether to install fsadm... " >&6; }
8826# Check whether --enable-fsadm was given.
8827if test "${enable_fsadm+set}" = set; then :
8828 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8829fi
8830
f11781c5
AK
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8832$as_echo "$FSADM" >&6; }
ad6254c5 8833
f11781c5
AK
8834################################################################################
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8836$as_echo_n "checking whether to use dmeventd... " >&6; }
8837# Check whether --enable-dmeventd was given.
8838if test "${enable_dmeventd+set}" = set; then :
8839 enableval=$enable_dmeventd; DMEVENTD=$enableval
8840fi
ad6254c5 8841
f11781c5
AK
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8843$as_echo "$DMEVENTD" >&6; }
ad6254c5 8844
f11781c5 8845BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8846
f11781c5
AK
8847if test x$DMEVENTD = xyes; then
8848 if test x$MIRRORS != xinternal; then
8849 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8850 " "$LINENO" 5
8851 fi
8852 if test x$CMDLIB = xno; then
8853 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8854 " "$LINENO" 5
8855 fi
8856fi
ad6254c5 8857
f11781c5 8858if test x$DMEVENTD = xyes; then
ad6254c5 8859
f11781c5 8860$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8861
f11781c5 8862fi
ad6254c5 8863
f11781c5 8864################################################################################
ad6254c5 8865
f11781c5
AK
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8867$as_echo_n "checking for getline in -lc... " >&6; }
8868if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8869 $as_echo_n "(cached) " >&6
ad6254c5 8870else
f11781c5
AK
8871 ac_check_lib_save_LIBS=$LIBS
8872LIBS="-lc $LIBS"
8873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8874/* end confdefs.h. */
f11781c5
AK
8875
8876/* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882char getline ();
8883int
8884main ()
8885{
8886return getline ();
8887 ;
8888 return 0;
8889}
ad6254c5 8890_ACEOF
f11781c5
AK
8891if ac_fn_c_try_link "$LINENO"; then :
8892 ac_cv_lib_c_getline=yes
ad6254c5 8893else
f11781c5
AK
8894 ac_cv_lib_c_getline=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898LIBS=$ac_check_lib_save_LIBS
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8901$as_echo "$ac_cv_lib_c_getline" >&6; }
8902if test "x$ac_cv_lib_c_getline" = x""yes; then :
8903
8904$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8905
ad6254c5 8906fi
7a197a62 8907
ad6254c5 8908
f11781c5
AK
8909################################################################################
8910
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8912$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8913if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8915else
8916 ac_check_lib_save_LIBS=$LIBS
8917LIBS="-lc $LIBS"
8918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8919/* end confdefs.h. */
f11781c5
AK
8920
8921/* Override any GCC internal prototype to avoid an error.
8922 Use char because int might match the return type of a GCC
8923 builtin and then its argument prototype would still apply. */
8924#ifdef __cplusplus
8925extern "C"
8926#endif
8927char canonicalize_file_name ();
8928int
8929main ()
8930{
8931return canonicalize_file_name ();
8932 ;
8933 return 0;
8934}
ad6254c5 8935_ACEOF
f11781c5
AK
8936if ac_fn_c_try_link "$LINENO"; then :
8937 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8938else
f11781c5
AK
8939 ac_cv_lib_c_canonicalize_file_name=no
8940fi
8941rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943LIBS=$ac_check_lib_save_LIBS
8944fi
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8946$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8947if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8948
8949$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8950
ad6254c5 8951fi
7a197a62 8952
ad6254c5 8953
f11781c5
AK
8954################################################################################
8955if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8956 then exec_prefix="";
8957fi;
7a197a62 8958
f11781c5
AK
8959################################################################################
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8961$as_echo_n "checking for dlopen in -ldl... " >&6; }
8962if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8963 $as_echo_n "(cached) " >&6
ad6254c5 8964else
f11781c5
AK
8965 ac_check_lib_save_LIBS=$LIBS
8966LIBS="-ldl $LIBS"
8967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h. */
ad6254c5 8969
f11781c5
AK
8970/* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
8973#ifdef __cplusplus
8974extern "C"
8975#endif
8976char dlopen ();
8977int
8978main ()
8979{
8980return dlopen ();
8981 ;
8982 return 0;
8983}
ad6254c5 8984_ACEOF
f11781c5
AK
8985if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_lib_dl_dlopen=yes
ad6254c5 8987else
f11781c5 8988 ac_cv_lib_dl_dlopen=no
795ca3e5 8989fi
f11781c5
AK
8990rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992LIBS=$ac_check_lib_save_LIBS
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8995$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8996if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8997
ad6254c5 8998
f11781c5 8999$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9000
f11781c5
AK
9001 DL_LIBS="-ldl"
9002 HAVE_LIBDL=yes
9003else
795ca3e5 9004
f11781c5
AK
9005 DL_LIBS=
9006 HAVE_LIBDL=no
9007fi
8106cdd5 9008
ad6254c5 9009
f11781c5
AK
9010################################################################################
9011if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9012 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9013 -o "x$RAID" = xshared \
f11781c5
AK
9014 \) -a "x$STATIC_LINK" = xyes ];
9015 then as_fn_error $? "Features cannot be 'shared' when building statically
9016" "$LINENO" 5
9017fi
ad6254c5 9018
f11781c5
AK
9019################################################################################
9020if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9022$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9023if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9024 $as_echo_n "(cached) " >&6
795ca3e5 9025else
f11781c5
AK
9026 ac_check_lib_save_LIBS=$LIBS
9027LIBS="-lpthread $LIBS"
9028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9029/* end confdefs.h. */
8a2fc586 9030
f11781c5
AK
9031/* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034#ifdef __cplusplus
9035extern "C"
ad6254c5 9036#endif
f11781c5
AK
9037char pthread_mutex_lock ();
9038int
9039main ()
9040{
9041return pthread_mutex_lock ();
9042 ;
9043 return 0;
9044}
9045_ACEOF
9046if ac_fn_c_try_link "$LINENO"; then :
9047 ac_cv_lib_pthread_pthread_mutex_lock=yes
9048else
9049 ac_cv_lib_pthread_pthread_mutex_lock=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053LIBS=$ac_check_lib_save_LIBS
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9056$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9057if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9058 PTHREAD_LIBS="-lpthread"
9059else
9060 hard_bailout
9061fi
9062
9063fi
9064
9065################################################################################
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9067$as_echo_n "checking whether to enable selinux support... " >&6; }
9068# Check whether --enable-selinux was given.
9069if test "${enable_selinux+set}" = set; then :
9070 enableval=$enable_selinux; SELINUX=$enableval
9071fi
9072
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9074$as_echo "$SELINUX" >&6; }
8a2fc586 9075
f11781c5
AK
9076################################################################################
9077if test x$SELINUX = xyes; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9079$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9080if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082else
9083 ac_check_lib_save_LIBS=$LIBS
9084LIBS="-lsepol $LIBS"
9085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h. */
8a2fc586 9087
7a197a62
AK
9088/* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9091#ifdef __cplusplus
9092extern "C"
ad6254c5 9093#endif
f11781c5 9094char sepol_check_context ();
ad6254c5
AK
9095int
9096main ()
9097{
f11781c5 9098return sepol_check_context ();
ad6254c5
AK
9099 ;
9100 return 0;
9101}
9102_ACEOF
f11781c5
AK
9103if ac_fn_c_try_link "$LINENO"; then :
9104 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9105else
f11781c5
AK
9106 ac_cv_lib_sepol_sepol_check_context=no
9107fi
9108rm -f core conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
9110LIBS=$ac_check_lib_save_LIBS
80992638 9111fi
f11781c5
AK
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9113$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9114if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9115
80992638 9116
f11781c5
AK
9117$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9118
9119 SELINUX_LIBS="-lsepol"
8106cdd5 9120fi
795ca3e5 9121
f11781c5
AK
9122
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9124$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9125if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9126 $as_echo_n "(cached) " >&6
25fbec5b 9127else
f11781c5
AK
9128 ac_check_lib_save_LIBS=$LIBS
9129LIBS="-lselinux $LIBS"
9130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9131/* end confdefs.h. */
80992638 9132
7a197a62
AK
9133/* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
ad6254c5 9135 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9136#ifdef __cplusplus
9137extern "C"
9138#endif
f11781c5 9139char is_selinux_enabled ();
ad6254c5
AK
9140int
9141main ()
9142{
f11781c5 9143return is_selinux_enabled ();
ad6254c5
AK
9144 ;
9145 return 0;
9146}
9147_ACEOF
f11781c5
AK
9148if ac_fn_c_try_link "$LINENO"; then :
9149 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9150else
f11781c5 9151 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9152fi
f11781c5
AK
9153rm -f core conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155LIBS=$ac_check_lib_save_LIBS
25fbec5b 9156fi
f11781c5
AK
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9158$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9159if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9160
f11781c5
AK
9161 for ac_header in selinux/selinux.h
9162do :
9163 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9164if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9167_ACEOF
795ca3e5 9168
25fbec5b 9169else
f11781c5 9170 hard_bailout
795ca3e5 9171fi
795ca3e5 9172
f11781c5 9173done
795ca3e5 9174
f11781c5
AK
9175 for ac_header in selinux/label.h
9176do :
9177 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9178if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9179 cat >>confdefs.h <<_ACEOF
9180#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9181_ACEOF
ad6254c5 9182
ad6254c5 9183fi
7a197a62 9184
f11781c5 9185done
7a197a62 9186
ad6254c5 9187
f11781c5 9188$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9189
f11781c5
AK
9190 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9191 SELINUX_PC="libselinux"
9192 HAVE_SELINUX=yes
ad6254c5 9193else
8106cdd5 9194
f11781c5
AK
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9196$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9197 SELINUX_LIBS=
9198 SELINUX_PC=
9199 HAVE_SELINUX=no
795ca3e5 9200fi
ad6254c5 9201
795ca3e5
AK
9202fi
9203
f11781c5
AK
9204################################################################################
9205if test x$REALTIME = xyes; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9207$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9208if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9209 $as_echo_n "(cached) " >&6
26e7f2e0 9210else
f11781c5
AK
9211 ac_check_lib_save_LIBS=$LIBS
9212LIBS="-lrt $LIBS"
9213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9214/* end confdefs.h. */
ad6254c5 9215
f11781c5
AK
9216/* Override any GCC internal prototype to avoid an error.
9217 Use char because int might match the return type of a GCC
9218 builtin and then its argument prototype would still apply. */
9219#ifdef __cplusplus
9220extern "C"
9221#endif
9222char clock_gettime ();
ad6254c5
AK
9223int
9224main ()
9225{
f11781c5 9226return clock_gettime ();
ad6254c5
AK
9227 ;
9228 return 0;
9229}
9230_ACEOF
f11781c5
AK
9231if ac_fn_c_try_link "$LINENO"; then :
9232 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9233else
f11781c5 9234 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9235fi
f11781c5
AK
9236rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9239fi
f11781c5
AK
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9241$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9242if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9243 HAVE_REALTIME=yes
9244else
9245 HAVE_REALTIME=no
8106cdd5 9246fi
ad6254c5 9247
ad6254c5 9248
f11781c5 9249 if test x$HAVE_REALTIME = xyes; then
7a197a62 9250
f11781c5 9251$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9252
f11781c5
AK
9253 LIBS="-lrt $LIBS"
9254 else
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9256$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9257 fi
9258fi
9259
9260################################################################################
9261for ac_header in getopt.h
9262do :
9263 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9264if test "x$ac_cv_header_getopt_h" = x""yes; then :
9265 cat >>confdefs.h <<_ACEOF
9266#define HAVE_GETOPT_H 1
9267_ACEOF
9268
9269$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9270
ad6254c5 9271fi
7a197a62 9272
f11781c5 9273done
ad6254c5 9274
7a197a62 9275
f11781c5
AK
9276################################################################################
9277if test x$READLINE != xno; then
9278 lvm_saved_libs=$LIBS
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9280$as_echo_n "checking for library containing tgetent... " >&6; }
9281if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9282 $as_echo_n "(cached) " >&6
ad6254c5 9283else
f11781c5
AK
9284 ac_func_search_save_LIBS=$LIBS
9285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h. */
ad6254c5 9287
f11781c5
AK
9288/* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9291#ifdef __cplusplus
9292extern "C"
9293#endif
9294char tgetent ();
9295int
9296main ()
9297{
9298return tgetent ();
9299 ;
9300 return 0;
9301}
ad6254c5 9302_ACEOF
f11781c5
AK
9303for ac_lib in '' tinfo ncurses curses termcap termlib; do
9304 if test -z "$ac_lib"; then
9305 ac_res="none required"
9306 else
9307 ac_res=-l$ac_lib
9308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9309 fi
9310 if ac_fn_c_try_link "$LINENO"; then :
9311 ac_cv_search_tgetent=$ac_res
9312fi
9313rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext
9315 if test "${ac_cv_search_tgetent+set}" = set; then :
9316 break
9317fi
9318done
9319if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9320
80992638 9321else
f11781c5 9322 ac_cv_search_tgetent=no
b896caa1 9323fi
f11781c5
AK
9324rm conftest.$ac_ext
9325LIBS=$ac_func_search_save_LIBS
9326fi
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9328$as_echo "$ac_cv_search_tgetent" >&6; }
9329ac_res=$ac_cv_search_tgetent
9330if test "$ac_res" != no; then :
9331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9332 READLINE_LIBS=$ac_cv_search_tgetent
9333else
ad6254c5 9334
f11781c5
AK
9335 if test "$READLINE" = yes; then
9336 as_fn_error $? "termcap could not be found which is required for the
9337--enable-readline option (which is enabled by default). Either disable readline
9338support with --disable-readline or download and install termcap from:
9339 ftp.gnu.org/gnu/termcap
9340Note: if you are using precompiled packages you will also need the development
9341 package as well (which may be called termcap-devel or something similar).
9342Note: (n)curses also seems to work as a substitute for termcap. This was
9343 not found either - but you could try installing that as well." "$LINENO" 5
9344 fi
9345fi
b896caa1 9346
f11781c5
AK
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9348$as_echo_n "checking for readline in -lreadline... " >&6; }
9349if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9350 $as_echo_n "(cached) " >&6
795ca3e5 9351else
f11781c5
AK
9352 ac_check_lib_save_LIBS=$LIBS
9353LIBS="-lreadline $LIBS"
9354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9355/* end confdefs.h. */
8a2fc586 9356
f11781c5
AK
9357/* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9360#ifdef __cplusplus
9361extern "C"
ad6254c5 9362#endif
f11781c5
AK
9363char readline ();
9364int
9365main ()
9366{
9367return readline ();
9368 ;
9369 return 0;
9370}
9371_ACEOF
9372if ac_fn_c_try_link "$LINENO"; then :
9373 ac_cv_lib_readline_readline=yes
9374else
9375 ac_cv_lib_readline_readline=no
9376fi
9377rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379LIBS=$ac_check_lib_save_LIBS
9380fi
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9382$as_echo "$ac_cv_lib_readline_readline" >&6; }
9383if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9384
8a2fc586 9385
f11781c5
AK
9386$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9387
9388 LIBS=$lvm_saved_libs
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9390$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9391if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393else
9394 ac_check_lib_save_LIBS=$LIBS
9395LIBS="-lreadline $LIBS"
9396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h. */
8a2fc586 9398
7a197a62
AK
9399/* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9402#ifdef __cplusplus
9403extern "C"
ad6254c5 9404#endif
f11781c5 9405char rl_line_buffer ();
ad6254c5
AK
9406int
9407main ()
9408{
f11781c5 9409return rl_line_buffer ();
ad6254c5
AK
9410 ;
9411 return 0;
9412}
9413_ACEOF
f11781c5
AK
9414if ac_fn_c_try_link "$LINENO"; then :
9415 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9416else
f11781c5
AK
9417 ac_cv_lib_readline_rl_line_buffer=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421LIBS=$ac_check_lib_save_LIBS
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9424$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9425if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9426 READLINE_LIBS="-lreadline"
9427else
9428
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9430$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9431 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9432
ad6254c5 9433fi
7a197a62 9434
f11781c5
AK
9435else
9436
9437 READLINE_LIBS=
9438 if test "$READLINE" = yes; then
9439 as_fn_error $? "GNU Readline could not be found which is required for the
9440--enable-readline option (which is enabled by default). Either disable readline
9441support with --disable-readline or download and install readline from:
9442 ftp.gnu.org/gnu/readline
9443Note: if you are using precompiled packages you will also need the development
9444package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9445 fi
ad6254c5 9446fi
f11781c5
AK
9447
9448 LIBS="$READLINE_LIBS $lvm_saved_libs"
9449 for ac_func in rl_completion_matches
9450do :
9451 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9452if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9453 cat >>confdefs.h <<_ACEOF
f11781c5 9454#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9455_ACEOF
9456
ad6254c5
AK
9457fi
9458done
9459
f11781c5 9460 LIBS=$lvm_saved_libs
ad6254c5
AK
9461fi
9462
f11781c5
AK
9463################################################################################
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9465$as_echo_n "checking whether to enable internationalisation... " >&6; }
9466# Check whether --enable-nls was given.
9467if test "${enable_nls+set}" = set; then :
9468 enableval=$enable_nls; INTL=$enableval
9469else
9470 INTL=no
9471fi
d911ec67 9472
f11781c5
AK
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9474$as_echo "$INTL" >&6; }
9475
9476if test x$INTL = xyes; then
9477# FIXME - Move this - can be device-mapper too
9478 INTL_PACKAGE="lvm2"
9479 # Extract the first word of "msgfmt", so it can be a program name with args.
9480set dummy msgfmt; ac_word=$2
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
9483if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9484 $as_echo_n "(cached) " >&6
d911ec67 9485else
f11781c5
AK
9486 case $MSGFMT in
9487 [\\/]* | ?:[\\/]*)
9488 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9489 ;;
9490 *)
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9498 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9501 fi
9502done
9503 done
9504IFS=$as_save_IFS
9505
9506 ;;
d911ec67 9507esac
f11781c5
AK
9508fi
9509MSGFMT=$ac_cv_path_MSGFMT
9510if test -n "$MSGFMT"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9512$as_echo "$MSGFMT" >&6; }
d911ec67 9513else
f11781c5
AK
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515$as_echo "no" >&6; }
9516fi
d911ec67 9517
f11781c5
AK
9518
9519 if [ "x$MSGFMT" == x ];
9520 then as_fn_error $? "msgfmt not found in path $PATH
9521 " "$LINENO" 5
9522 fi;
9523
9524
9525# Check whether --with-localedir was given.
9526if test "${with_localedir+set}" = set; then :
9527 withval=$with_localedir; LOCALEDIR=$withval
9528else
9529 LOCALEDIR='${prefix}/share/locale'
9530fi
9531
9532fi
9533
9534################################################################################
9535
9536# Check whether --with-confdir was given.
9537if test "${with_confdir+set}" = set; then :
9538 withval=$with_confdir; CONFDIR=$withval
9539else
9540 CONFDIR="/etc"
9541fi
9542
9543
9544
9545# Check whether --with-staticdir was given.
9546if test "${with_staticdir+set}" = set; then :
9547 withval=$with_staticdir; STATICDIR=$withval
9548else
9549 STATICDIR='${exec_prefix}/sbin'
9550fi
9551
9552
9553
9554# Check whether --with-usrlibdir was given.
9555if test "${with_usrlibdir+set}" = set; then :
9556 withval=$with_usrlibdir; usrlibdir=$withval
9557else
9558 usrlibdir='${prefix}/lib'
d911ec67
AK
9559fi
9560
d911ec67 9561
d911ec67 9562
f11781c5
AK
9563# Check whether --with-usrsbindir was given.
9564if test "${with_usrsbindir+set}" = set; then :
9565 withval=$with_usrsbindir; usrsbindir=$withval
9566else
9567 usrsbindir='${prefix}/sbin'
d911ec67
AK
9568fi
9569
d911ec67 9570
f11781c5 9571################################################################################
d911ec67 9572
f11781c5
AK
9573# Check whether --with-udev_prefix was given.
9574if test "${with_udev_prefix+set}" = set; then :
9575 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9576else
f11781c5 9577 udev_prefix='${exec_prefix}'
d911ec67 9578fi
d911ec67 9579
f11781c5
AK
9580
9581
9582# Check whether --with-udevdir was given.
9583if test "${with_udevdir+set}" = set; then :
9584 withval=$with_udevdir; udevdir=$withval
9585else
9586 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9587fi
f11781c5
AK
9588
9589
9590################################################################################
9591if test x$READLINE = xyes; then
9592 for ac_header in readline/readline.h readline/history.h
9593do :
9594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9595ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9596if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9597 cat >>confdefs.h <<_ACEOF
9598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9599_ACEOF
9600
9601else
f11781c5 9602 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9603fi
9604
9605done
9606
9607fi
9608
f11781c5
AK
9609if test x$CLVMD != xnone; then
9610 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
9611do :
9612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9613ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9615 cat >>confdefs.h <<_ACEOF
9616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9617_ACEOF
ad6254c5 9618
f11781c5
AK
9619else
9620 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9621fi
7a197a62 9622
f11781c5 9623done
ad6254c5 9624
f11781c5
AK
9625 for ac_func in dup2 getmntent memmove select socket
9626do :
9627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9628ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9629if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9630 cat >>confdefs.h <<_ACEOF
9631#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9632_ACEOF
ad6254c5 9633
f11781c5
AK
9634else
9635 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9636fi
f11781c5 9637done
7a197a62 9638
f11781c5
AK
9639 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9640# -lseq on Dynix/PTX, -lgen on Unixware.
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9642$as_echo_n "checking for library containing getmntent... " >&6; }
9643if test "${ac_cv_search_getmntent+set}" = set; then :
9644 $as_echo_n "(cached) " >&6
9645else
9646 ac_func_search_save_LIBS=$LIBS
9647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h. */
ad6254c5 9649
f11781c5
AK
9650/* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9653#ifdef __cplusplus
9654extern "C"
9655#endif
9656char getmntent ();
9657int
9658main ()
9659{
9660return getmntent ();
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665for ac_lib in '' sun seq gen; do
9666 if test -z "$ac_lib"; then
9667 ac_res="none required"
9668 else
9669 ac_res=-l$ac_lib
9670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9671 fi
9672 if ac_fn_c_try_link "$LINENO"; then :
9673 ac_cv_search_getmntent=$ac_res
9674fi
9675rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext
9677 if test "${ac_cv_search_getmntent+set}" = set; then :
9678 break
9679fi
9680done
9681if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9682
ad6254c5 9683else
f11781c5 9684 ac_cv_search_getmntent=no
795ca3e5 9685fi
f11781c5
AK
9686rm conftest.$ac_ext
9687LIBS=$ac_func_search_save_LIBS
9688fi
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9690$as_echo "$ac_cv_search_getmntent" >&6; }
9691ac_res=$ac_cv_search_getmntent
9692if test "$ac_res" != no; then :
9693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9694 ac_cv_func_getmntent=yes
9695
9696$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9697
f11781c5
AK
9698else
9699 ac_cv_func_getmntent=no
8106cdd5 9700fi
f11781c5
AK
9701
9702
9703 for ac_header in sys/select.h sys/socket.h
9704do :
9705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9706ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9708 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9710_ACEOF
795ca3e5 9711
795ca3e5
AK
9712fi
9713
ad6254c5 9714done
80992638 9715
f11781c5
AK
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9717$as_echo_n "checking types of arguments for select... " >&6; }
9718if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9719 $as_echo_n "(cached) " >&6
83912faa 9720else
f11781c5
AK
9721 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9722 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9723 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9725/* end confdefs.h. */
9726$ac_includes_default
f11781c5
AK
9727#ifdef HAVE_SYS_SELECT_H
9728# include <sys/select.h>
9729#endif
9730#ifdef HAVE_SYS_SOCKET_H
9731# include <sys/socket.h>
9732#endif
9733
9734int
9735main ()
9736{
9737extern int select ($ac_arg1,
9738 $ac_arg234, $ac_arg234, $ac_arg234,
9739 $ac_arg5);
9740 ;
9741 return 0;
9742}
ad6254c5 9743_ACEOF
f11781c5
AK
9744if ac_fn_c_try_compile "$LINENO"; then :
9745 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 done
9749 done
9750done
9751# Provide a safe default value.
9752: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9753
ad6254c5 9754fi
f11781c5
AK
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9756$as_echo "$ac_cv_func_select_args" >&6; }
9757ac_save_IFS=$IFS; IFS=','
9758set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9759IFS=$ac_save_IFS
9760shift
7a197a62 9761
f11781c5
AK
9762cat >>confdefs.h <<_ACEOF
9763#define SELECT_TYPE_ARG1 $1
9764_ACEOF
ad6254c5 9765
f11781c5
AK
9766
9767cat >>confdefs.h <<_ACEOF
9768#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9769_ACEOF
f11781c5
AK
9770
9771
9772cat >>confdefs.h <<_ACEOF
9773#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9774_ACEOF
ad6254c5 9775
f11781c5
AK
9776rm -f conftest*
9777
ad6254c5 9778fi
7a197a62 9779
f11781c5
AK
9780if test x$CLUSTER != xnone; then
9781 for ac_header in sys/socket.h sys/un.h
9782do :
9783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9784ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9786 cat >>confdefs.h <<_ACEOF
9787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788_ACEOF
ad6254c5 9789
f11781c5
AK
9790else
9791 as_fn_error $? "bailing out" "$LINENO" 5
9792fi
9793
9794done
9795
9796 for ac_func in socket
9797do :
9798 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9799if test "x$ac_cv_func_socket" = x""yes; then :
9800 cat >>confdefs.h <<_ACEOF
9801#define HAVE_SOCKET 1
9802_ACEOF
7a197a62 9803
80992638 9804else
f11781c5 9805 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9806fi
f11781c5 9807done
83912faa 9808
69792976 9809fi
f11781c5
AK
9810
9811if test x$DMEVENTD = xyes; then
9812 for ac_header in arpa/inet.h
9813do :
9814 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9815if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9816 cat >>confdefs.h <<_ACEOF
f11781c5 9817#define HAVE_ARPA_INET_H 1
ad6254c5 9818_ACEOF
69792976 9819
69792976 9820else
f11781c5 9821 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9822fi
9823
ad6254c5 9824done
69792976 9825
ad6254c5
AK
9826fi
9827
f11781c5
AK
9828if test x$HAVE_LIBDL = xyes; then
9829 for ac_header in dlfcn.h
9830do :
9831 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9832if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9833 cat >>confdefs.h <<_ACEOF
9834#define HAVE_DLFCN_H 1
a5f46f6a 9835_ACEOF
a5f46f6a 9836
f11781c5
AK
9837else
9838 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9839fi
9840
f11781c5 9841done
a5f46f6a 9842
a5f46f6a
AK
9843fi
9844
f11781c5
AK
9845if test x$INTL = xyes; then
9846 for ac_header in libintl.h
9847do :
9848 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9849if test "x$ac_cv_header_libintl_h" = x""yes; then :
9850 cat >>confdefs.h <<_ACEOF
9851#define HAVE_LIBINTL_H 1
9852_ACEOF
a5f46f6a 9853
a5f46f6a 9854else
f11781c5 9855 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9856fi
f11781c5
AK
9857
9858done
a5f46f6a
AK
9859
9860fi
f11781c5
AK
9861
9862if test x$UDEV_SYNC = xyes; then
9863 for ac_header in sys/ipc.h sys/sem.h
9864do :
9865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9866ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9867if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9868 cat >>confdefs.h <<_ACEOF
9869#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870_ACEOF
9871
9872else
f11781c5 9873 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9874fi
9875
9876done
9877
9878fi
9879
a653923f
AK
9880################################################################################
9881# Extract the first word of "modprobe", so it can be a program name with args.
9882set dummy modprobe; ac_word=$2
f11781c5 9883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9884$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9885if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9886 $as_echo_n "(cached) " >&6
72b2cb61
AK
9887else
9888 case $MODPROBE_CMD in
9889 [\\/]* | ?:[\\/]*)
9890 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9891 ;;
9892 *)
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
f11781c5 9898 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9900 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9902 break 2
9903 fi
9904done
f11781c5 9905 done
7a197a62 9906IFS=$as_save_IFS
72b2cb61
AK
9907
9908 ;;
9909esac
9910fi
9911MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9912if test -n "$MODPROBE_CMD"; then
f11781c5 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9914$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9915else
f11781c5 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9917$as_echo "no" >&6; }
72b2cb61
AK
9918fi
9919
a653923f 9920
7a197a62 9921
a653923f 9922if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9923
9924cat >>confdefs.h <<_ACEOF
9925#define MODPROBE_CMD "$MODPROBE_CMD"
9926_ACEOF
9927
a653923f
AK
9928fi
9929
b5c2529b 9930
a9b601e2
ZK
9931lvm_exec_prefix=$exec_prefix
9932test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9933test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 9934LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 9935
b5c2529b 9936cat >>confdefs.h <<_ACEOF
d2c11605 9937#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
9938_ACEOF
9939
9940
9941if test "$CLVMD" != none; then
9942 clvmd_prefix=$ac_default_prefix
d2c11605 9943 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
9944 test "$prefix" != NONE && clvmd_prefix=$prefix
9945
9946cat >>confdefs.h <<_ACEOF
d2c11605 9947#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
9948_ACEOF
9949
9950fi
9951
80992638 9952################################################################################
93bd259b
AK
9953if test "$BUILD_DMEVENTD" = yes; then
9954
9955# Check whether --with-dmeventd-pidfile was given.
f11781c5 9956if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9957 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9958else
71082be4 9959 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9960fi
9961
93bd259b 9962
71082be4
ZK
9963cat >>confdefs.h <<_ACEOF
9964#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9965_ACEOF
93bd259b 9966
71082be4 9967fi
93bd259b
AK
9968
9969if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9970
9971# Check whether --with-dmeventd-path was given.
f11781c5 9972if test "${with_dmeventd_path+set}" = set; then :
71082be4 9973 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9974else
71082be4 9975 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9976fi
9977
93bd259b 9978
71082be4
ZK
9979cat >>confdefs.h <<_ACEOF
9980#define DMEVENTD_PATH "$DMEVENTD_PATH"
9981_ACEOF
3399ae32 9982
71082be4 9983fi
3399ae32 9984
8bae0a1e
AK
9985
9986
8bae0a1e 9987# Check whether --with-default-run-dir was given.
f11781c5 9988if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9989 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9990else
9991 DEFAULT_RUN_DIR="/var/run/lvm"
9992fi
9993
9994cat >>confdefs.h <<_ACEOF
9995#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9996_ACEOF
9997
9998
71082be4 9999################################################################################
3399ae32
AK
10000
10001# Check whether --with-default-system-dir was given.
f11781c5 10002if test "${with_default_system_dir+set}" = set; then :
71082be4 10003 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10004else
71082be4 10005 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10006fi
10007
71082be4 10008
3399ae32
AK
10009cat >>confdefs.h <<_ACEOF
10010#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10011_ACEOF
10012
10013
10014
3399ae32 10015# Check whether --with-default-archive-subdir was given.
f11781c5 10016if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10017 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10018else
71082be4 10019 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10020fi
10021
71082be4 10022
3399ae32
AK
10023cat >>confdefs.h <<_ACEOF
10024#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10025_ACEOF
10026
10027
10028
3399ae32 10029# Check whether --with-default-backup-subdir was given.
f11781c5 10030if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10031 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10032else
71082be4 10033 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10034fi
10035
71082be4 10036
3399ae32
AK
10037cat >>confdefs.h <<_ACEOF
10038#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10039_ACEOF
10040
10041
10042
3399ae32 10043# Check whether --with-default-cache-subdir was given.
f11781c5 10044if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10045 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10046else
71082be4 10047 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10048fi
10049
71082be4 10050
3399ae32
AK
10051cat >>confdefs.h <<_ACEOF
10052#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10053_ACEOF
10054
10055
10056
3399ae32 10057# Check whether --with-default-locking-dir was given.
f11781c5 10058if test "${with_default_locking_dir+set}" = set; then :
71082be4 10059 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10060else
71082be4 10061 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10062fi
10063
71082be4 10064
3399ae32
AK
10065cat >>confdefs.h <<_ACEOF
10066#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10067_ACEOF
10068
10069
fea55602
DW
10070################################################################################
10071
10072# Check whether --with-default-data-alignment was given.
f11781c5 10073if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10074 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10075else
10076 DEFAULT_DATA_ALIGNMENT=1
10077fi
10078
10079
10080cat >>confdefs.h <<_ACEOF
10081#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10082_ACEOF
10083
10084
93bd259b 10085################################################################################
f11781c5 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10087$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10088
10089# Check whether --with-interface was given.
f11781c5 10090if test "${with_interface+set}" = set; then :
71082be4 10091 withval=$with_interface; interface=$withval
93bd259b 10092else
71082be4 10093 interface=ioctl
93bd259b
AK
10094fi
10095
10096if [ "x$interface" != xioctl ];
10097then
f11781c5 10098 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10099fi
f11781c5 10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10101$as_echo "$interface" >&6; }
93bd259b
AK
10102
10103################################################################################
db8b5af9 10104DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10105
10106cat >>confdefs.h <<_ACEOF
10107#define DM_LIB_VERSION $DM_LIB_VERSION
10108_ACEOF
10109
10110
db8b5af9 10111DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10112
db8b5af9 10113LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10114
db8b5af9 10115VER=`cat "$srcdir"/VERSION`
bf456146 10116LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10117VER=`echo "$VER" | $AWK '{print $1}'`
10118LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10119VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10120LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10121LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10122LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10123LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10124
80992638 10125################################################################################
fae0c576 10126
83912faa 10127
795ca3e5
AK
10128
10129
10130
10131
10132
10133
5a52dca9 10134
8ef2b021 10135
199e490e 10136
69792976
AK
10137
10138
10139
d0191583 10140
69792976 10141
8106cdd5
AK
10142
10143
10144
10145
10146
d68a82ec 10147
036f273a 10148
7d1552c9 10149
8106cdd5 10150
0a62c911 10151
8106cdd5 10152
4a7f3eb2 10153
4922197a
AK
10154
10155
d8ac0fbc 10156
1a9ea74d 10157
8a2fc586
AK
10158
10159
d0191583 10160
93bd259b
AK
10161
10162
10163
10164
10165
d0191583
JM
10166
10167
10168
10169
10170
8a2fc586 10171
19a2c6e0 10172
f7f0854e
ZK
10173
10174
3ceb7608 10175
8ce0cbda 10176
8b1a3214 10177
ec6a6fbe
AK
10178
10179
10180
10181
e2997b73
AK
10182
10183
10184
10185
10186
10187
a946372e
AK
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
ec6a6fbe 10199
cac52ca4 10200
d3c8211f 10201
7e3fe830 10202
a5f46f6a
AK
10203
10204
10205
572fefeb 10206
90c80887 10207
3399ae32
AK
10208
10209
10210
10211
10212
90c80887 10213
bf456146 10214
e1b8a236 10215
0878503f 10216
8fea97b7 10217
54b362f9 10218
b1f08e51 10219
d1e8046f 10220
fea55602 10221
c89bc357 10222
6e5c1f75 10223
3ba4a195 10224
d2c11605
ZK
10225
10226
cdd50823 10227
426fc742
PR
10228
10229
bf09a320 10230
68f2de6d
AK
10231
10232
80992638 10233################################################################################
2bc1d759 10234ac_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/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile 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 test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10235
ad6254c5 10236cat >confcache <<\_ACEOF
795ca3e5
AK
10237# This file is a shell script that caches the results of configure
10238# tests run on this system so they can be shared between configure
ad6254c5
AK
10239# scripts and configure runs, see configure's option --config-cache.
10240# It is not useful on other systems. If it contains results you don't
10241# want to keep, you may remove or edit it.
795ca3e5 10242#
ad6254c5
AK
10243# config.status only pays attention to the cache file if you give it
10244# the --recheck option to rerun configure.
795ca3e5 10245#
ad6254c5
AK
10246# `ac_cv_env_foo' variables (set or unset) will be overridden when
10247# loading this file, other *unset* `ac_cv_foo' will be assigned the
10248# following values.
10249
10250_ACEOF
10251
795ca3e5
AK
10252# The following way of writing the cache mishandles newlines in values,
10253# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10254# So, we kill variables containing newlines.
795ca3e5
AK
10255# Ultrix sh set writes to stderr and can't be redirected directly,
10256# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10257(
10258 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10259 eval ac_val=\$$ac_var
10260 case $ac_val in #(
10261 *${as_nl}*)
10262 case $ac_var in #(
f11781c5 10263 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10264$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10265 esac
10266 case $ac_var in #(
10267 _ | IFS | as_nl) ;; #(
ec6a6fbe 10268 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10269 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10270 esac ;;
10271 esac
10272 done
10273
ad6254c5 10274 (set) 2>&1 |
7a197a62
AK
10275 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10276 *${as_nl}ac_space=\ *)
f11781c5
AK
10277 # `set' does not quote correctly, so add quotes: double-quote
10278 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10279 sed -n \
8a2fc586
AK
10280 "s/'/'\\\\''/g;
10281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10282 ;; #(
ad6254c5
AK
10283 *)
10284 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10286 ;;
7a197a62
AK
10287 esac |
10288 sort
10289) |
ad6254c5 10290 sed '
7a197a62 10291 /^ac_cv_env_/b end
ad6254c5 10292 t clear
7a197a62 10293 :clear
ad6254c5
AK
10294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10295 t end
7a197a62
AK
10296 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10297 :end' >>confcache
10298if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10299 if test -w "$cache_file"; then
10300 test "x$cache_file" != "x/dev/null" &&
f11781c5 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10302$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10303 cat confcache >$cache_file
795ca3e5 10304 else
f11781c5 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10306$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10307 fi
10308fi
10309rm -f confcache
10310
795ca3e5
AK
10311test "x$prefix" = xNONE && prefix=$ac_default_prefix
10312# Let make expand exec_prefix.
10313test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10314
72b2cb61 10315DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10316
10317ac_libobjs=
10318ac_ltlibobjs=
f11781c5 10319U=
ad6254c5
AK
10320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10321 # 1. Remove the extension, and $U if already installed.
7a197a62 10322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10325 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10328done
10329LIBOBJS=$ac_libobjs
80992638 10330
ad6254c5
AK
10331LTLIBOBJS=$ac_ltlibobjs
10332
10333
10334
10335: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10336ac_write_fail=0
ad6254c5
AK
10337ac_clean_files_save=$ac_clean_files
10338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10340$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10341as_write_fail=0
10342cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10343#! $SHELL
10344# Generated by $as_me.
795ca3e5 10345# Run this file to recreate the current configuration.
795ca3e5 10346# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10347# configure, is in config.log if it exists.
10348
10349debug=false
10350ac_cs_recheck=false
10351ac_cs_silent=false
ad6254c5 10352
f11781c5
AK
10353SHELL=\${CONFIG_SHELL-$SHELL}
10354export SHELL
10355_ASEOF
10356cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10357## -------------------- ##
10358## M4sh Initialization. ##
10359## -------------------- ##
ad6254c5 10360
25fbec5b
AK
10361# Be more Bourne compatible
10362DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10364 emulate sh
10365 NULLCMD=:
ec6a6fbe 10366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10367 # is contrary to our usage. Disable this feature.
10368 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10369 setopt NO_GLOB_SUBST
10370else
f11781c5
AK
10371 case `(set -o) 2>/dev/null` in #(
10372 *posix*) :
10373 set -o posix ;; #(
10374 *) :
10375 ;;
25fbec5b 10376esac
7a197a62 10377fi
25fbec5b
AK
10378
10379
ec6a6fbe
AK
10380as_nl='
10381'
10382export as_nl
10383# Printing a long string crashes Solaris 7 /usr/bin/printf.
10384as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10386as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10387# Prefer a ksh shell builtin over an external printf program on Solaris,
10388# but without wasting forks for bash or zsh.
10389if test -z "$BASH_VERSION$ZSH_VERSION" \
10390 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10391 as_echo='print -r --'
10392 as_echo_n='print -rn --'
10393elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10394 as_echo='printf %s\n'
10395 as_echo_n='printf %s'
10396else
10397 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10398 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10399 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10400 else
ec6a6fbe
AK
10401 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10402 as_echo_n_body='eval
10403 arg=$1;
f11781c5 10404 case $arg in #(
ec6a6fbe
AK
10405 *"$as_nl"*)
10406 expr "X$arg" : "X\\(.*\\)$as_nl";
10407 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10408 esac;
10409 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10410 '
10411 export as_echo_n_body
10412 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10413 fi
ec6a6fbe
AK
10414 export as_echo_body
10415 as_echo='sh -c $as_echo_body as_echo'
10416fi
10417
10418# The user is always right.
10419if test "${PATH_SEPARATOR+set}" != set; then
10420 PATH_SEPARATOR=:
10421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10423 PATH_SEPARATOR=';'
10424 }
ad6254c5
AK
10425fi
10426
ad6254c5 10427
7a197a62
AK
10428# IFS
10429# We need space, tab and new line, in precisely that order. Quoting is
10430# there to prevent editors from complaining about space-tab.
10431# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10432# splitting by setting IFS to empty value.)
7a197a62
AK
10433IFS=" "" $as_nl"
10434
10435# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10436case $0 in #((
7a197a62
AK
10437 *[\\/]* ) as_myself=$0 ;;
10438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
f11781c5
AK
10443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10444 done
7a197a62
AK
10445IFS=$as_save_IFS
10446
10447 ;;
10448esac
10449# We did not find ourselves, most probably we were run as `sh COMMAND'
10450# in which case we are not to be found in the path.
10451if test "x$as_myself" = x; then
10452 as_myself=$0
10453fi
10454if test ! -f "$as_myself"; then
ec6a6fbe 10455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10456 exit 1
7a197a62
AK
10457fi
10458
f11781c5
AK
10459# Unset variables that we do not need and which cause bugs (e.g. in
10460# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10461# suppresses any "Segmentation fault" message there. '((' could
10462# trigger a bug in pdksh 5.2.14.
10463for as_var in BASH_ENV ENV MAIL MAILPATH
10464do eval test x\${$as_var+set} = xset \
10465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10466done
ad6254c5
AK
10467PS1='$ '
10468PS2='> '
10469PS4='+ '
10470
10471# NLS nuisances.
ec6a6fbe
AK
10472LC_ALL=C
10473export LC_ALL
10474LANGUAGE=C
10475export LANGUAGE
8106cdd5 10476
f11781c5
AK
10477# CDPATH.
10478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10479
10480
10481# as_fn_error STATUS ERROR [LINENO LOG_FD]
10482# ----------------------------------------
10483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10485# script with STATUS, using 1 if that was 0.
10486as_fn_error ()
10487{
10488 as_status=$1; test $as_status -eq 0 && as_status=1
10489 if test "$4"; then
10490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10492 fi
10493 $as_echo "$as_me: error: $2" >&2
10494 as_fn_exit $as_status
10495} # as_fn_error
10496
10497
10498# as_fn_set_status STATUS
10499# -----------------------
10500# Set $? to STATUS, without forking.
10501as_fn_set_status ()
10502{
10503 return $1
10504} # as_fn_set_status
10505
10506# as_fn_exit STATUS
10507# -----------------
10508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10509as_fn_exit ()
10510{
10511 set +e
10512 as_fn_set_status $1
10513 exit $1
10514} # as_fn_exit
10515
10516# as_fn_unset VAR
10517# ---------------
10518# Portably unset VAR.
10519as_fn_unset ()
10520{
10521 { eval $1=; unset $1;}
10522}
10523as_unset=as_fn_unset
10524# as_fn_append VAR VALUE
10525# ----------------------
10526# Append the text in VALUE to the end of the definition contained in VAR. Take
10527# advantage of any shell optimizations that allow amortized linear growth over
10528# repeated appends, instead of the typical quadratic growth present in naive
10529# implementations.
10530if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10531 eval 'as_fn_append ()
10532 {
10533 eval $1+=\$2
10534 }'
10535else
10536 as_fn_append ()
10537 {
10538 eval $1=\$$1\$2
10539 }
10540fi # as_fn_append
10541
10542# as_fn_arith ARG...
10543# ------------------
10544# Perform arithmetic evaluation on the ARGs, and store the result in the
10545# global $as_val. Take advantage of shells that can avoid forks. The arguments
10546# must be portable across $(()) and expr.
10547if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10548 eval 'as_fn_arith ()
10549 {
10550 as_val=$(( $* ))
10551 }'
10552else
10553 as_fn_arith ()
10554 {
10555 as_val=`expr "$@" || test $? -eq 1`
10556 }
10557fi # as_fn_arith
10558
10559
7a197a62
AK
10560if expr a : '\(a\)' >/dev/null 2>&1 &&
10561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10562 as_expr=expr
10563else
10564 as_expr=false
10565fi
8106cdd5 10566
7a197a62 10567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10568 as_basename=basename
10569else
10570 as_basename=false
10571fi
10572
f11781c5
AK
10573if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10574 as_dirname=dirname
10575else
10576 as_dirname=false
10577fi
ad6254c5 10578
7a197a62 10579as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10580$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10581 X"$0" : 'X\(//\)$' \| \
7a197a62 10582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10583$as_echo X/"$0" |
7a197a62
AK
10584 sed '/^.*\/\([^/][^/]*\)\/*$/{
10585 s//\1/
10586 q
10587 }
10588 /^X\/\(\/\/\)$/{
10589 s//\1/
10590 q
10591 }
10592 /^X\/\(\/\).*/{
10593 s//\1/
10594 q
10595 }
10596 s/.*/./; q'`
ad6254c5 10597
f11781c5
AK
10598# Avoid depending upon Character Ranges.
10599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10602as_cr_digits='0123456789'
10603as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10604
10605ECHO_C= ECHO_N= ECHO_T=
f11781c5 10606case `echo -n x` in #(((((
7a197a62 10607-n*)
f11781c5 10608 case `echo 'xy\c'` in
7a197a62 10609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10610 xy) ECHO_C='\c';;
10611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10612 ECHO_T=' ';;
7a197a62
AK
10613 esac;;
10614*)
10615 ECHO_N='-n';;
ad6254c5 10616esac
80992638 10617
ad6254c5 10618rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10619if test -d conf$$.dir; then
10620 rm -f conf$$.dir/conf$$.file
10621else
10622 rm -f conf$$.dir
ec6a6fbe
AK
10623 mkdir conf$$.dir 2>/dev/null
10624fi
10625if (echo >conf$$.file) 2>/dev/null; then
10626 if ln -s conf$$.file conf$$ 2>/dev/null; then
10627 as_ln_s='ln -s'
10628 # ... but there are two gotchas:
10629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10631 # In both cases, we have to default to `cp -p'.
10632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10633 as_ln_s='cp -p'
10634 elif ln conf$$.file conf$$ 2>/dev/null; then
10635 as_ln_s=ln
10636 else
ad6254c5 10637 as_ln_s='cp -p'
ec6a6fbe 10638 fi
ad6254c5
AK
10639else
10640 as_ln_s='cp -p'
10641fi
7a197a62
AK
10642rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10643rmdir conf$$.dir 2>/dev/null
8106cdd5 10644
f11781c5
AK
10645
10646# as_fn_mkdir_p
10647# -------------
10648# Create "$as_dir" as a directory, including parents if necessary.
10649as_fn_mkdir_p ()
10650{
10651
10652 case $as_dir in #(
10653 -*) as_dir=./$as_dir;;
10654 esac
10655 test -d "$as_dir" || eval $as_mkdir_p || {
10656 as_dirs=
10657 while :; do
10658 case $as_dir in #(
10659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10660 *) as_qdir=$as_dir;;
10661 esac
10662 as_dirs="'$as_qdir' $as_dirs"
10663 as_dir=`$as_dirname -- "$as_dir" ||
10664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10665 X"$as_dir" : 'X\(//\)[^/]' \| \
10666 X"$as_dir" : 'X\(//\)$' \| \
10667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10668$as_echo X"$as_dir" |
10669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10670 s//\1/
10671 q
10672 }
10673 /^X\(\/\/\)[^/].*/{
10674 s//\1/
10675 q
10676 }
10677 /^X\(\/\/\)$/{
10678 s//\1/
10679 q
10680 }
10681 /^X\(\/\).*/{
10682 s//\1/
10683 q
10684 }
10685 s/.*/./; q'`
10686 test -d "$as_dir" && break
10687 done
10688 test -z "$as_dirs" || eval "mkdir $as_dirs"
10689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10690
10691
10692} # as_fn_mkdir_p
ad6254c5 10693if mkdir -p . 2>/dev/null; then
f11781c5 10694 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10695else
8a2fc586 10696 test -d ./-p && rmdir ./-p
ad6254c5
AK
10697 as_mkdir_p=false
10698fi
10699
25fbec5b
AK
10700if test -x / >/dev/null 2>&1; then
10701 as_test_x='test -x'
7a197a62 10702else
25fbec5b
AK
10703 if ls -dL / >/dev/null 2>&1; then
10704 as_ls_L_option=L
10705 else
10706 as_ls_L_option=
10707 fi
10708 as_test_x='
10709 eval sh -c '\''
10710 if test -d "$1"; then
ec6a6fbe 10711 test -d "$1/.";
25fbec5b 10712 else
f11781c5 10713 case $1 in #(
ec6a6fbe 10714 -*)set "./$1";;
25fbec5b 10715 esac;
f11781c5 10716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10717 ???[sx]*):;;*)false;;esac;fi
10718 '\'' sh
10719 '
7a197a62 10720fi
25fbec5b 10721as_executable_p=$as_test_x
ad6254c5
AK
10722
10723# Sed expression to map a string onto a valid CPP name.
8a2fc586 10724as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10725
10726# Sed expression to map a string onto a valid variable name.
8a2fc586 10727as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10728
10729
ad6254c5 10730exec 6>&1
f11781c5
AK
10731## ----------------------------------- ##
10732## Main body of $CONFIG_STATUS script. ##
10733## ----------------------------------- ##
10734_ASEOF
10735test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10736
f11781c5
AK
10737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10738# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10739# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10740# values after options handling.
10741ac_log="
ad6254c5 10742This file was extended by $as_me, which was
f11781c5 10743generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10744
10745 CONFIG_FILES = $CONFIG_FILES
10746 CONFIG_HEADERS = $CONFIG_HEADERS
10747 CONFIG_LINKS = $CONFIG_LINKS
10748 CONFIG_COMMANDS = $CONFIG_COMMANDS
10749 $ $0 $@
10750
7a197a62
AK
10751on `(hostname || uname -n) 2>/dev/null | sed 1q`
10752"
10753
ad6254c5
AK
10754_ACEOF
10755
ec6a6fbe
AK
10756case $ac_config_files in *"
10757"*) set x $ac_config_files; shift; ac_config_files=$*;;
10758esac
10759
10760case $ac_config_headers in *"
10761"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10762esac
10763
10764
10765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10766# Files that config.status was made for.
68f2de6d
AK
10767config_files="$ac_config_files"
10768config_headers="$ac_config_headers"
ad6254c5 10769
7a197a62 10770_ACEOF
ad6254c5 10771
ec6a6fbe 10772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10773ac_cs_usage="\
f11781c5
AK
10774\`$as_me' instantiates files and other configuration actions
10775from templates according to the current configuration. Unless the files
10776and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10777
f11781c5 10778Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10779
10780 -h, --help print this help, then exit
25fbec5b 10781 -V, --version print version number and configuration settings, then exit
f11781c5 10782 --config print configuration, then exit
ec6a6fbe
AK
10783 -q, --quiet, --silent
10784 do not print progress messages
ad6254c5
AK
10785 -d, --debug don't remove temporary files
10786 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10787 --file=FILE[:TEMPLATE]
10788 instantiate the configuration file FILE
10789 --header=FILE[:TEMPLATE]
10790 instantiate the configuration header FILE
ad6254c5
AK
10791
10792Configuration files:
10793$config_files
10794
72b2cb61
AK
10795Configuration headers:
10796$config_headers
10797
f11781c5 10798Report bugs to the package provider."
ad6254c5 10799
7a197a62 10800_ACEOF
ec6a6fbe 10801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10802ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10803ac_cs_version="\\
10804config.status
f11781c5
AK
10805configured by $0, generated by GNU Autoconf 2.66,
10806 with options \\"\$ac_cs_config\\"
ad6254c5 10807
f11781c5 10808Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10809This config.status script is free software; the Free Software Foundation
10810gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10811
10812ac_pwd='$ac_pwd'
10813srcdir='$srcdir'
10814INSTALL='$INSTALL'
fddafd51 10815MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10816AWK='$AWK'
10817test -n "\$AWK" || AWK=awk
ad6254c5
AK
10818_ACEOF
10819
ec6a6fbe
AK
10820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10821# The default lists apply if the user does not specify any file.
ad6254c5
AK
10822ac_need_defaults=:
10823while test $# != 0
10824do
10825 case $1 in
10826 --*=*)
7a197a62
AK
10827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10829 ac_shift=:
10830 ;;
7a197a62 10831 *)
ad6254c5
AK
10832 ac_option=$1
10833 ac_optarg=$2
10834 ac_shift=shift
10835 ;;
ad6254c5
AK
10836 esac
10837
10838 case $ac_option in
10839 # Handling of the options.
ad6254c5
AK
10840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10841 ac_cs_recheck=: ;;
7a197a62 10842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10843 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10844 --config | --confi | --conf | --con | --co | --c )
10845 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10846 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10847 debug=: ;;
10848 --file | --fil | --fi | --f )
10849 $ac_shift
ec6a6fbe
AK
10850 case $ac_optarg in
10851 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10852 esac
f11781c5 10853 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10854 ac_need_defaults=false;;
10855 --header | --heade | --head | --hea )
10856 $ac_shift
ec6a6fbe
AK
10857 case $ac_optarg in
10858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10859 esac
f11781c5 10860 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10861 ac_need_defaults=false;;
7a197a62
AK
10862 --he | --h)
10863 # Conflict between --help and --header
f11781c5
AK
10864 as_fn_error $? "ambiguous option: \`$1'
10865Try \`$0 --help' for more information.";;
7a197a62 10866 --help | --hel | -h )
ec6a6fbe 10867 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10870 ac_cs_silent=: ;;
10871
10872 # This is an error.
f11781c5
AK
10873 -*) as_fn_error $? "unrecognized option: \`$1'
10874Try \`$0 --help' for more information." ;;
ad6254c5 10875
f11781c5 10876 *) as_fn_append ac_config_targets " $1"
7a197a62 10877 ac_need_defaults=false ;;
ad6254c5
AK
10878
10879 esac
10880 shift
10881done
10882
10883ac_configure_extra_args=
10884
10885if $ac_cs_silent; then
10886 exec 6>/dev/null
10887 ac_configure_extra_args="$ac_configure_extra_args --silent"
10888fi
10889
10890_ACEOF
ec6a6fbe 10891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10892if \$ac_cs_recheck; then
ec6a6fbe
AK
10893 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10894 shift
10895 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10896 CONFIG_SHELL='$SHELL'
7a197a62 10897 export CONFIG_SHELL
ec6a6fbe 10898 exec "\$@"
ad6254c5
AK
10899fi
10900
10901_ACEOF
ec6a6fbe 10902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10903exec 5>>config.log
10904{
10905 echo
10906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10907## Running $as_me. ##
10908_ASBOX
ec6a6fbe 10909 $as_echo "$ac_log"
7a197a62 10910} >&5
ad6254c5 10911
7a197a62 10912_ACEOF
ec6a6fbe 10913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10914_ACEOF
ad6254c5 10915
ec6a6fbe 10916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10917
10918# Handling of arguments.
ad6254c5
AK
10919for ac_config_target in $ac_config_targets
10920do
7a197a62
AK
10921 case $ac_config_target in
10922 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10923 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10924 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10925 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10926 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10927 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
13dd3138 10928 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
93bd259b
AK
10929 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10930 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10931 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10932 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 10933 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
10934 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10935 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 10936 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
cdd50823 10937 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 10938 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10939 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10940 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10941 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10942 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10943 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10944 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10945 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10946 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10947 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10948 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 10949 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 10950 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 10951 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
10952 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10953 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10954 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10955 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10956 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10957 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10958 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10959 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10960 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10961 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10962 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10963 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10964 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10965 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 10966 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 10967 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10968 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10969 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10970 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10971 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10972
f11781c5 10973 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10974 esac
ad6254c5
AK
10975done
10976
7a197a62 10977
ad6254c5
AK
10978# If the user did not use the arguments to specify the items to instantiate,
10979# then the envvar interface is used. Set only those that are not.
10980# We use the long form for the default assignment because of an extremely
10981# bizarre bug on SunOS 4.1.3.
10982if $ac_need_defaults; then
10983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10985fi
10986
10987# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10988# simply because there is no reason against having it here, and in addition,
ad6254c5 10989# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10990# Hook for its removal unless debugging.
10991# Note that there is a small window in which the directory will not be cleaned:
10992# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10993$debug ||
10994{
7a197a62
AK
10995 tmp=
10996 trap 'exit_status=$?
10997 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10998' 0
f11781c5 10999 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11000}
ad6254c5
AK
11001# Create a (secure) tmp directory for tmp files.
11002
11003{
7a197a62 11004 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11005 test -n "$tmp" && test -d "$tmp"
11006} ||
11007{
7a197a62
AK
11008 tmp=./conf$$-$RANDOM
11009 (umask 077 && mkdir "$tmp")
f11781c5 11010} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11011
ec6a6fbe
AK
11012# Set up the scripts for CONFIG_FILES section.
11013# No need to generate them if there are no CONFIG_FILES.
11014# This happens for instance with `./config.status config.h'.
1995c9ff 11015if test -n "$CONFIG_FILES"; then
7a197a62 11016
68f2de6d 11017
f11781c5
AK
11018ac_cr=`echo X | tr X '\015'`
11019# On cygwin, bash can eat \r inside `` if the user requested igncr.
11020# But we know of no other shell where ac_cr would be empty at this
11021# point, so we can use a bashism as a fallback.
11022if test "x$ac_cr" = x; then
11023 eval ac_cr=\$\'\\r\'
11024fi
ec6a6fbe
AK
11025ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11026if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11027 ac_cs_awk_cr='\\r'
11028else
11029 ac_cs_awk_cr=$ac_cr
1995c9ff 11030fi
7a197a62 11031
ec6a6fbe 11032echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11033_ACEOF
7a197a62 11034
8106cdd5 11035
ec6a6fbe
AK
11036{
11037 echo "cat >conf$$subs.awk <<_ACEOF" &&
11038 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11039 echo "_ACEOF"
11040} >conf$$subs.sh ||
f11781c5
AK
11041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11042ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11043ac_delim='%!_!# '
11044for ac_last_try in false false false false false :; do
ec6a6fbe 11045 . ./conf$$subs.sh ||
f11781c5 11046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11047
11048 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11049 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11050 break
11051 elif $ac_last_try; then
f11781c5 11052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11053 else
11054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11055 fi
11056done
ec6a6fbe
AK
11057rm -f conf$$subs.sh
11058
11059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11060cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11061_ACEOF
11062sed -n '
11063h
11064s/^/S["/; s/!.*/"]=/
11065p
11066g
11067s/^[^!]*!//
11068:repl
11069t repl
11070s/'"$ac_delim"'$//
11071t delim
11072:nl
11073h
f11781c5 11074s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11075t more1
11076s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11077p
11078n
11079b repl
11080:more1
11081s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11082p
11083g
11084s/.\{148\}//
11085t nl
11086:delim
11087h
f11781c5 11088s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11089t more2
11090s/["\\]/\\&/g; s/^/"/; s/$/"/
11091p
11092b
11093:more2
11094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11095p
11096g
11097s/.\{148\}//
11098t delim
11099' <conf$$subs.awk | sed '
11100/^[^""]/{
11101 N
11102 s/\n//
11103}
11104' >>$CONFIG_STATUS || ac_write_fail=1
11105rm -f conf$$subs.awk
11106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11107_ACAWK
11108cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11109 for (key in S) S_is_set[key] = 1
11110 FS = "\a"
7a197a62 11111
ec6a6fbe
AK
11112}
11113{
11114 line = $ 0
11115 nfields = split(line, field, "@")
11116 substed = 0
11117 len = length(field[1])
11118 for (i = 2; i < nfields; i++) {
11119 key = field[i]
11120 keylen = length(key)
11121 if (S_is_set[key]) {
11122 value = S[key]
11123 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11124 len += length(value) + length(field[++i])
11125 substed = 1
11126 } else
11127 len += 1 + keylen
11128 }
11129
11130 print line
11131}
fddafd51 11132
ec6a6fbe 11133_ACAWK
1995c9ff 11134_ACEOF
ec6a6fbe
AK
11135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11138else
11139 cat
11140fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11141 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11142_ACEOF
11143
f11781c5
AK
11144# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11145# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11146# trailing colons and then remove the whole line if VPATH becomes empty
11147# (actually we leave an empty line to preserve line numbers).
11148if test "x$srcdir" = x.; then
f11781c5
AK
11149 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11150h
11151s///
11152s/^/:/
11153s/[ ]*$/:/
11154s/:\$(srcdir):/:/g
11155s/:\${srcdir}:/:/g
11156s/:@srcdir@:/:/g
11157s/^:*//
7a197a62 11158s/:*$//
f11781c5
AK
11159x
11160s/\(=[ ]*\).*/\1/
11161G
11162s/\n//
7a197a62
AK
11163s/^[^=]*=[ ]*$//
11164}'
11165fi
11166
ec6a6fbe 11167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11168fi # test -n "$CONFIG_FILES"
11169
ec6a6fbe
AK
11170# Set up the scripts for CONFIG_HEADERS section.
11171# No need to generate them if there are no CONFIG_HEADERS.
11172# This happens for instance with `./config.status Makefile'.
11173if test -n "$CONFIG_HEADERS"; then
11174cat >"$tmp/defines.awk" <<\_ACAWK ||
11175BEGIN {
11176_ACEOF
11177
11178# Transform confdefs.h into an awk script `defines.awk', embedded as
11179# here-document in config.status, that substitutes the proper values into
11180# config.h.in to produce config.h.
11181
11182# Create a delimiter string that does not exist in confdefs.h, to ease
11183# handling of long lines.
11184ac_delim='%!_!# '
11185for ac_last_try in false false :; do
11186 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11187 if test -z "$ac_t"; then
11188 break
11189 elif $ac_last_try; then
f11781c5 11190 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11191 else
11192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11193 fi
11194done
11195
11196# For the awk script, D is an array of macro values keyed by name,
11197# likewise P contains macro parameters if any. Preserve backslash
11198# newline sequences.
11199
11200ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11201sed -n '
11202s/.\{148\}/&'"$ac_delim"'/g
11203t rset
11204:rset
11205s/^[ ]*#[ ]*define[ ][ ]*/ /
11206t def
11207d
11208:def
11209s/\\$//
11210t bsnl
11211s/["\\]/\\&/g
11212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11213D["\1"]=" \3"/p
11214s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11215d
11216:bsnl
11217s/["\\]/\\&/g
11218s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11219D["\1"]=" \3\\\\\\n"\\/p
11220t cont
11221s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11222t cont
11223d
11224:cont
11225n
11226s/.\{148\}/&'"$ac_delim"'/g
11227t clear
11228:clear
11229s/\\$//
11230t bsnlc
11231s/["\\]/\\&/g; s/^/"/; s/$/"/p
11232d
11233:bsnlc
11234s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11235b cont
11236' <confdefs.h | sed '
11237s/'"$ac_delim"'/"\\\
11238"/g' >>$CONFIG_STATUS || ac_write_fail=1
11239
11240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11241 for (key in D) D_is_set[key] = 1
11242 FS = "\a"
11243}
11244/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11245 line = \$ 0
11246 split(line, arg, " ")
11247 if (arg[1] == "#") {
11248 defundef = arg[2]
11249 mac1 = arg[3]
11250 } else {
11251 defundef = substr(arg[1], 2)
11252 mac1 = arg[2]
11253 }
11254 split(mac1, mac2, "(") #)
11255 macro = mac2[1]
11256 prefix = substr(line, 1, index(line, defundef) - 1)
11257 if (D_is_set[macro]) {
11258 # Preserve the white space surrounding the "#".
11259 print prefix "define", macro P[macro] D[macro]
11260 next
11261 } else {
11262 # Replace #undef with comments. This is necessary, for example,
11263 # in the case of _POSIX_SOURCE, which is predefined and required
11264 # on some systems where configure will not decide to define it.
11265 if (defundef == "undef") {
11266 print "/*", prefix defundef, macro, "*/"
11267 next
11268 }
11269 }
11270}
11271{ print }
11272_ACAWK
11273_ACEOF
11274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11275 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11276fi # test -n "$CONFIG_HEADERS"
11277
7a197a62 11278
ec6a6fbe
AK
11279eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11280shift
11281for ac_tag
7a197a62
AK
11282do
11283 case $ac_tag in
11284 :[FHLC]) ac_mode=$ac_tag; continue;;
11285 esac
11286 case $ac_mode$ac_tag in
11287 :[FHL]*:*);;
f11781c5 11288 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11289 :[FH]-) ac_tag=-:-;;
11290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11291 esac
11292 ac_save_IFS=$IFS
11293 IFS=:
11294 set x $ac_tag
11295 IFS=$ac_save_IFS
11296 shift
11297 ac_file=$1
11298 shift
11299
11300 case $ac_mode in
11301 :L) ac_source=$1;;
11302 :[FH])
11303 ac_file_inputs=
11304 for ac_f
11305 do
11306 case $ac_f in
11307 -) ac_f="$tmp/stdin";;
11308 *) # Look for the file first in the build tree, then in the source tree
11309 # (if the path is not absolute). The absolute path cannot be DOS-style,
11310 # because $ac_f cannot contain `:'.
11311 test -f "$ac_f" ||
11312 case $ac_f in
11313 [\\/$]*) false;;
11314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11315 esac ||
f11781c5 11316 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11317 esac
ec6a6fbe 11318 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11319 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11320 done
11321
11322 # Let's still pretend it is `configure' which instantiates (i.e., don't
11323 # use $as_me), people would be surprised to read:
11324 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11325 configure_input='Generated from '`
11326 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11327 `' by configure.'
7a197a62
AK
11328 if test x"$ac_file" != x-; then
11329 configure_input="$ac_file. $configure_input"
f11781c5 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11331$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11332 fi
ec6a6fbe
AK
11333 # Neutralize special characters interpreted by sed in replacement strings.
11334 case $configure_input in #(
11335 *\&* | *\|* | *\\* )
11336 ac_sed_conf_input=`$as_echo "$configure_input" |
11337 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11338 *) ac_sed_conf_input=$configure_input;;
11339 esac
7a197a62
AK
11340
11341 case $ac_tag in
ec6a6fbe 11342 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11344 esac
11345 ;;
80992638 11346 esac
8106cdd5 11347
7a197a62 11348 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11350 X"$ac_file" : 'X\(//\)[^/]' \| \
11351 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11353$as_echo X"$ac_file" |
7a197a62
AK
11354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11355 s//\1/
11356 q
11357 }
11358 /^X\(\/\/\)[^/].*/{
11359 s//\1/
11360 q
11361 }
11362 /^X\(\/\/\)$/{
11363 s//\1/
11364 q
11365 }
11366 /^X\(\/\).*/{
11367 s//\1/
11368 q
11369 }
11370 s/.*/./; q'`
f11781c5 11371 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11372 ac_builddir=.
11373
7a197a62
AK
11374case "$ac_dir" in
11375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11376*)
ec6a6fbe 11377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11378 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11380 case $ac_top_builddir_sub in
11381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11383 esac ;;
11384esac
11385ac_abs_top_builddir=$ac_pwd
11386ac_abs_builddir=$ac_pwd$ac_dir_suffix
11387# for backward compatibility:
11388ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11389
11390case $srcdir in
7a197a62 11391 .) # We are building in place.
ad6254c5 11392 ac_srcdir=.
7a197a62
AK
11393 ac_top_srcdir=$ac_top_builddir_sub
11394 ac_abs_top_srcdir=$ac_pwd ;;
11395 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11396 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11397 ac_top_srcdir=$srcdir
11398 ac_abs_top_srcdir=$srcdir ;;
11399 *) # Relative name.
11400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11401 ac_top_srcdir=$ac_top_build_prefix$srcdir
11402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11403esac
7a197a62 11404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11405
ad6254c5 11406
7a197a62
AK
11407 case $ac_mode in
11408 :F)
11409 #
11410 # CONFIG_FILE
11411 #
ad6254c5
AK
11412
11413 case $INSTALL in
11414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11415 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11416 esac
fddafd51
ZK
11417 ac_MKDIR_P=$MKDIR_P
11418 case $MKDIR_P in
11419 [\\/$]* | ?:[\\/]* ) ;;
11420 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11421 esac
7a197a62 11422_ACEOF
795ca3e5 11423
ec6a6fbe 11424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11425# If the template does not know about datarootdir, expand it.
11426# FIXME: This hack should be removed a few years after 2.60.
11427ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11428ac_sed_dataroot='
11429/datarootdir/ {
7a197a62
AK
11430 p
11431 q
11432}
11433/@datadir@/p
11434/@docdir@/p
11435/@infodir@/p
11436/@localedir@/p
f11781c5 11437/@mandir@/p'
ec6a6fbe 11438case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11439*datarootdir*) ac_datarootdir_seen=yes;;
11440*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11442$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11443_ACEOF
ec6a6fbe 11444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11445 ac_datarootdir_hack='
11446 s&@datadir@&$datadir&g
11447 s&@docdir@&$docdir&g
11448 s&@infodir@&$infodir&g
11449 s&@localedir@&$localedir&g
11450 s&@mandir@&$mandir&g
f11781c5 11451 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11452esac
11453_ACEOF
11454
11455# Neutralize VPATH when `$srcdir' = `.'.
11456# Shell code in configure.ac might set extrasub.
11457# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11459ac_sed_extra="$ac_vpsub
ad6254c5
AK
11460$extrasub
11461_ACEOF
ec6a6fbe 11462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11463:t
11464/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11465s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11466s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11467s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11468s&@srcdir@&$ac_srcdir&;t t
11469s&@abs_srcdir@&$ac_abs_srcdir&;t t
11470s&@top_srcdir@&$ac_top_srcdir&;t t
11471s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11472s&@builddir@&$ac_builddir&;t t
11473s&@abs_builddir@&$ac_abs_builddir&;t t
11474s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11475s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11476s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11477$ac_datarootdir_hack
ec6a6fbe
AK
11478"
11479eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11481
11482test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11483 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11484 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11486which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11487$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11488which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11489
11490 rm -f "$tmp/stdin"
72b2cb61 11491 case $ac_file in
ec6a6fbe
AK
11492 -) cat "$tmp/out" && rm -f "$tmp/out";;
11493 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11494 esac \
f11781c5 11495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11496 ;;
11497 :H)
11498 #
11499 # CONFIG_HEADER
11500 #
72b2cb61 11501 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11502 {
11503 $as_echo "/* $configure_input */" \
11504 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11505 } >"$tmp/config.h" \
f11781c5 11506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11507 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11509$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11510 else
ec6a6fbe
AK
11511 rm -f "$ac_file"
11512 mv "$tmp/config.h" "$ac_file" \
f11781c5 11513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11514 fi
11515 else
ec6a6fbe
AK
11516 $as_echo "/* $configure_input */" \
11517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11518 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11519 fi
7a197a62
AK
11520 ;;
11521
11522
11523 esac
11524
11525done # for ac_tag
795ca3e5 11526
795ca3e5 11527
f11781c5 11528as_fn_exit 0
ad6254c5 11529_ACEOF
ad6254c5
AK
11530ac_clean_files=$ac_clean_files_save
11531
ec6a6fbe 11532test $ac_write_fail = 0 ||
f11781c5 11533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11534
ad6254c5
AK
11535
11536# configure is writing to config.log, and then calls config.status.
11537# config.status does its own redirection, appending to config.log.
11538# Unfortunately, on DOS this fails, as config.log is still kept open
11539# by configure, so config.status won't be able to write to it; its
11540# output is simply discarded. So we exec the FD to /dev/null,
11541# effectively closing config.log, so it can be properly (re)opened and
11542# appended to by config.status. When coming back to configure, we
11543# need to make the FD available again.
11544if test "$no_create" != yes; then
11545 ac_cs_success=:
11546 ac_config_status_args=
11547 test "$silent" = yes &&
11548 ac_config_status_args="$ac_config_status_args --quiet"
11549 exec 5>/dev/null
11550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11551 exec 5>>config.log
11552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11553 # would make configure fail if this is the last instruction.
f11781c5 11554 $ac_cs_success || as_fn_exit 1
ad6254c5 11555fi
ec6a6fbe 11556if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11558$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11559fi
795ca3e5 11560
2dc95e1c
AK
11561
11562if test x$ODIRECT != xyes; then
f11781c5 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11564$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11565fi
This page took 1.734931 seconds and 5 git commands to generate.